ch-admin-api-client-typescript 5.36.31 → 5.36.33
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/promotions-api.d.ts +430 -0
- package/lib/api/promotions-api.d.ts.map +1 -0
- package/lib/api/promotions-api.js +719 -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/create-promotion-command.d.ts +93 -0
- package/lib/models/create-promotion-command.d.ts.map +1 -0
- package/lib/models/create-promotion-command.js +15 -0
- package/lib/models/index.d.ts +6 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +6 -0
- package/lib/models/promotion-item-model.d.ts +92 -0
- package/lib/models/promotion-item-model.d.ts.map +1 -0
- package/lib/models/promotion-item-model.js +15 -0
- package/lib/models/promotion-model.d.ts +99 -0
- package/lib/models/promotion-model.d.ts.map +1 -0
- package/lib/models/promotion-model.js +15 -0
- package/lib/models/promotion-type.d.ts +23 -0
- package/lib/models/promotion-type.d.ts.map +1 -0
- package/lib/models/promotion-type.js +26 -0
- package/lib/models/promotions-model.d.ts +33 -0
- package/lib/models/promotions-model.d.ts.map +1 -0
- package/lib/models/promotions-model.js +15 -0
- package/lib/models/update-promotion-command.d.ts +87 -0
- package/lib/models/update-promotion-command.d.ts.map +1 -0
- package/lib/models/update-promotion-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +7 -0
- package/src/api/promotions-api.ts +754 -0
- package/src/api.ts +1 -0
- package/src/models/create-promotion-command.ts +102 -0
- package/src/models/index.ts +6 -0
- package/src/models/promotion-item-model.ts +99 -0
- package/src/models/promotion-model.ts +108 -0
- package/src/models/promotion-type.ts +32 -0
- package/src/models/promotions-model.ts +42 -0
- package/src/models/update-promotion-command.ts +96 -0
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CloudHospital Admin Api
|
|
6
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: developer@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* PromotionsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var PromotionsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Get promotions
|
|
98
|
+
* @param {string} [languageCode]
|
|
99
|
+
* @param {string} [hospitalId]
|
|
100
|
+
* @param {PromotionType} [promotionType]
|
|
101
|
+
* @param {boolean} [showHidden]
|
|
102
|
+
* @param {boolean} [isActivated]
|
|
103
|
+
* @param {Date} [start]
|
|
104
|
+
* @param {Date} [end]
|
|
105
|
+
* @param {number} [page]
|
|
106
|
+
* @param {number} [limit]
|
|
107
|
+
* @param {Date} [lastRetrieved]
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
apiV1PromotionsGet: function (languageCode, hospitalId, promotionType, showHidden, isActivated, start, end, page, limit, lastRetrieved, options) {
|
|
112
|
+
if (options === void 0) { options = {}; }
|
|
113
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
114
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
115
|
+
return __generator(this, function (_a) {
|
|
116
|
+
switch (_a.label) {
|
|
117
|
+
case 0:
|
|
118
|
+
localVarPath = "/api/v1/promotions";
|
|
119
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
|
+
if (configuration) {
|
|
121
|
+
baseOptions = configuration.baseOptions;
|
|
122
|
+
}
|
|
123
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
124
|
+
localVarHeaderParameter = {};
|
|
125
|
+
localVarQueryParameter = {};
|
|
126
|
+
// authentication oauth2 required
|
|
127
|
+
// oauth required
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
129
|
+
case 1:
|
|
130
|
+
// authentication oauth2 required
|
|
131
|
+
// oauth required
|
|
132
|
+
_a.sent();
|
|
133
|
+
if (languageCode !== undefined) {
|
|
134
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
135
|
+
}
|
|
136
|
+
if (hospitalId !== undefined) {
|
|
137
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
138
|
+
}
|
|
139
|
+
if (promotionType !== undefined) {
|
|
140
|
+
localVarQueryParameter['PromotionType'] = promotionType;
|
|
141
|
+
}
|
|
142
|
+
if (showHidden !== undefined) {
|
|
143
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
144
|
+
}
|
|
145
|
+
if (isActivated !== undefined) {
|
|
146
|
+
localVarQueryParameter['IsActivated'] = isActivated;
|
|
147
|
+
}
|
|
148
|
+
if (start !== undefined) {
|
|
149
|
+
localVarQueryParameter['Start'] = (start instanceof Date) ?
|
|
150
|
+
start.toISOString() :
|
|
151
|
+
start;
|
|
152
|
+
}
|
|
153
|
+
if (end !== undefined) {
|
|
154
|
+
localVarQueryParameter['End'] = (end instanceof Date) ?
|
|
155
|
+
end.toISOString() :
|
|
156
|
+
end;
|
|
157
|
+
}
|
|
158
|
+
if (page !== undefined) {
|
|
159
|
+
localVarQueryParameter['page'] = page;
|
|
160
|
+
}
|
|
161
|
+
if (limit !== undefined) {
|
|
162
|
+
localVarQueryParameter['limit'] = limit;
|
|
163
|
+
}
|
|
164
|
+
if (lastRetrieved !== undefined) {
|
|
165
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
166
|
+
lastRetrieved.toISOString() :
|
|
167
|
+
lastRetrieved;
|
|
168
|
+
}
|
|
169
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
170
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
172
|
+
return [2 /*return*/, {
|
|
173
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
174
|
+
options: localVarRequestOptions,
|
|
175
|
+
}];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @summary Create promotion
|
|
183
|
+
* @param {CreatePromotionCommand} [createPromotionCommand]
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
apiV1PromotionsPost: function (createPromotionCommand, options) {
|
|
188
|
+
if (options === void 0) { options = {}; }
|
|
189
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
190
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
191
|
+
return __generator(this, function (_a) {
|
|
192
|
+
switch (_a.label) {
|
|
193
|
+
case 0:
|
|
194
|
+
localVarPath = "/api/v1/promotions";
|
|
195
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
196
|
+
if (configuration) {
|
|
197
|
+
baseOptions = configuration.baseOptions;
|
|
198
|
+
}
|
|
199
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
200
|
+
localVarHeaderParameter = {};
|
|
201
|
+
localVarQueryParameter = {};
|
|
202
|
+
// authentication oauth2 required
|
|
203
|
+
// oauth required
|
|
204
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
205
|
+
case 1:
|
|
206
|
+
// authentication oauth2 required
|
|
207
|
+
// oauth required
|
|
208
|
+
_a.sent();
|
|
209
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
211
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
213
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPromotionCommand, localVarRequestOptions, configuration);
|
|
214
|
+
return [2 /*return*/, {
|
|
215
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
216
|
+
options: localVarRequestOptions,
|
|
217
|
+
}];
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Delete promotion
|
|
225
|
+
* @param {string} promotionId
|
|
226
|
+
* @param {boolean} [isPermanent]
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
apiV1PromotionsPromotionIdDelete: function (promotionId, isPermanent, options) {
|
|
231
|
+
if (options === void 0) { options = {}; }
|
|
232
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
233
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
234
|
+
return __generator(this, function (_a) {
|
|
235
|
+
switch (_a.label) {
|
|
236
|
+
case 0:
|
|
237
|
+
// verify required parameter 'promotionId' is not null or undefined
|
|
238
|
+
(0, common_1.assertParamExists)('apiV1PromotionsPromotionIdDelete', 'promotionId', promotionId);
|
|
239
|
+
localVarPath = "/api/v1/promotions/{promotionId}"
|
|
240
|
+
.replace("{".concat("promotionId", "}"), encodeURIComponent(String(promotionId)));
|
|
241
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
}
|
|
245
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
246
|
+
localVarHeaderParameter = {};
|
|
247
|
+
localVarQueryParameter = {};
|
|
248
|
+
// authentication oauth2 required
|
|
249
|
+
// oauth required
|
|
250
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
251
|
+
case 1:
|
|
252
|
+
// authentication oauth2 required
|
|
253
|
+
// oauth required
|
|
254
|
+
_a.sent();
|
|
255
|
+
if (isPermanent !== undefined) {
|
|
256
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
257
|
+
}
|
|
258
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
259
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
261
|
+
return [2 /*return*/, {
|
|
262
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
263
|
+
options: localVarRequestOptions,
|
|
264
|
+
}];
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @summary Get promotion
|
|
272
|
+
* @param {string} promotionId
|
|
273
|
+
* @param {string} [languageCode]
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
apiV1PromotionsPromotionIdGet: function (promotionId, languageCode, options) {
|
|
278
|
+
if (options === void 0) { options = {}; }
|
|
279
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
280
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
281
|
+
return __generator(this, function (_a) {
|
|
282
|
+
switch (_a.label) {
|
|
283
|
+
case 0:
|
|
284
|
+
// verify required parameter 'promotionId' is not null or undefined
|
|
285
|
+
(0, common_1.assertParamExists)('apiV1PromotionsPromotionIdGet', 'promotionId', promotionId);
|
|
286
|
+
localVarPath = "/api/v1/promotions/{promotionId}"
|
|
287
|
+
.replace("{".concat("promotionId", "}"), encodeURIComponent(String(promotionId)));
|
|
288
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
289
|
+
if (configuration) {
|
|
290
|
+
baseOptions = configuration.baseOptions;
|
|
291
|
+
}
|
|
292
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
293
|
+
localVarHeaderParameter = {};
|
|
294
|
+
localVarQueryParameter = {};
|
|
295
|
+
// authentication oauth2 required
|
|
296
|
+
// oauth required
|
|
297
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
298
|
+
case 1:
|
|
299
|
+
// authentication oauth2 required
|
|
300
|
+
// oauth required
|
|
301
|
+
_a.sent();
|
|
302
|
+
if (languageCode !== undefined) {
|
|
303
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
304
|
+
}
|
|
305
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
307
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
308
|
+
return [2 /*return*/, {
|
|
309
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
310
|
+
options: localVarRequestOptions,
|
|
311
|
+
}];
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @summary Update promotion
|
|
319
|
+
* @param {string} promotionId
|
|
320
|
+
* @param {UpdatePromotionCommand} [updatePromotionCommand]
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
apiV1PromotionsPromotionIdPut: function (promotionId, updatePromotionCommand, options) {
|
|
325
|
+
if (options === void 0) { options = {}; }
|
|
326
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
327
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
328
|
+
return __generator(this, function (_a) {
|
|
329
|
+
switch (_a.label) {
|
|
330
|
+
case 0:
|
|
331
|
+
// verify required parameter 'promotionId' is not null or undefined
|
|
332
|
+
(0, common_1.assertParamExists)('apiV1PromotionsPromotionIdPut', 'promotionId', promotionId);
|
|
333
|
+
localVarPath = "/api/v1/promotions/{promotionId}"
|
|
334
|
+
.replace("{".concat("promotionId", "}"), encodeURIComponent(String(promotionId)));
|
|
335
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
336
|
+
if (configuration) {
|
|
337
|
+
baseOptions = configuration.baseOptions;
|
|
338
|
+
}
|
|
339
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
340
|
+
localVarHeaderParameter = {};
|
|
341
|
+
localVarQueryParameter = {};
|
|
342
|
+
// authentication oauth2 required
|
|
343
|
+
// oauth required
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
345
|
+
case 1:
|
|
346
|
+
// authentication oauth2 required
|
|
347
|
+
// oauth required
|
|
348
|
+
_a.sent();
|
|
349
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
350
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
351
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
352
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
353
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePromotionCommand, localVarRequestOptions, configuration);
|
|
354
|
+
return [2 /*return*/, {
|
|
355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
}];
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
});
|
|
361
|
+
},
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @summary Reactivate promotion
|
|
365
|
+
* @param {string} promotionId
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
apiV1PromotionsPromotionIdReactivatePut: function (promotionId, options) {
|
|
370
|
+
if (options === void 0) { options = {}; }
|
|
371
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
372
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
373
|
+
return __generator(this, function (_a) {
|
|
374
|
+
switch (_a.label) {
|
|
375
|
+
case 0:
|
|
376
|
+
// verify required parameter 'promotionId' is not null or undefined
|
|
377
|
+
(0, common_1.assertParamExists)('apiV1PromotionsPromotionIdReactivatePut', 'promotionId', promotionId);
|
|
378
|
+
localVarPath = "/api/v1/promotions/{promotionId}/reactivate"
|
|
379
|
+
.replace("{".concat("promotionId", "}"), encodeURIComponent(String(promotionId)));
|
|
380
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
381
|
+
if (configuration) {
|
|
382
|
+
baseOptions = configuration.baseOptions;
|
|
383
|
+
}
|
|
384
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
385
|
+
localVarHeaderParameter = {};
|
|
386
|
+
localVarQueryParameter = {};
|
|
387
|
+
// authentication oauth2 required
|
|
388
|
+
// oauth required
|
|
389
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
390
|
+
case 1:
|
|
391
|
+
// authentication oauth2 required
|
|
392
|
+
// oauth required
|
|
393
|
+
_a.sent();
|
|
394
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
395
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
396
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
397
|
+
return [2 /*return*/, {
|
|
398
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
399
|
+
options: localVarRequestOptions,
|
|
400
|
+
}];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
exports.PromotionsApiAxiosParamCreator = PromotionsApiAxiosParamCreator;
|
|
408
|
+
/**
|
|
409
|
+
* PromotionsApi - functional programming interface
|
|
410
|
+
* @export
|
|
411
|
+
*/
|
|
412
|
+
var PromotionsApiFp = function (configuration) {
|
|
413
|
+
var localVarAxiosParamCreator = (0, exports.PromotionsApiAxiosParamCreator)(configuration);
|
|
414
|
+
return {
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @summary Get promotions
|
|
418
|
+
* @param {string} [languageCode]
|
|
419
|
+
* @param {string} [hospitalId]
|
|
420
|
+
* @param {PromotionType} [promotionType]
|
|
421
|
+
* @param {boolean} [showHidden]
|
|
422
|
+
* @param {boolean} [isActivated]
|
|
423
|
+
* @param {Date} [start]
|
|
424
|
+
* @param {Date} [end]
|
|
425
|
+
* @param {number} [page]
|
|
426
|
+
* @param {number} [limit]
|
|
427
|
+
* @param {Date} [lastRetrieved]
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
*/
|
|
431
|
+
apiV1PromotionsGet: function (languageCode, hospitalId, promotionType, showHidden, isActivated, start, end, page, limit, lastRetrieved, options) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
433
|
+
var localVarAxiosArgs;
|
|
434
|
+
return __generator(this, function (_a) {
|
|
435
|
+
switch (_a.label) {
|
|
436
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PromotionsGet(languageCode, hospitalId, promotionType, showHidden, isActivated, start, end, page, limit, lastRetrieved, options)];
|
|
437
|
+
case 1:
|
|
438
|
+
localVarAxiosArgs = _a.sent();
|
|
439
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
});
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @summary Create promotion
|
|
447
|
+
* @param {CreatePromotionCommand} [createPromotionCommand]
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
apiV1PromotionsPost: function (createPromotionCommand, options) {
|
|
452
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
453
|
+
var localVarAxiosArgs;
|
|
454
|
+
return __generator(this, function (_a) {
|
|
455
|
+
switch (_a.label) {
|
|
456
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PromotionsPost(createPromotionCommand, options)];
|
|
457
|
+
case 1:
|
|
458
|
+
localVarAxiosArgs = _a.sent();
|
|
459
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary Delete promotion
|
|
467
|
+
* @param {string} promotionId
|
|
468
|
+
* @param {boolean} [isPermanent]
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
apiV1PromotionsPromotionIdDelete: function (promotionId, isPermanent, options) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
474
|
+
var localVarAxiosArgs;
|
|
475
|
+
return __generator(this, function (_a) {
|
|
476
|
+
switch (_a.label) {
|
|
477
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PromotionsPromotionIdDelete(promotionId, isPermanent, options)];
|
|
478
|
+
case 1:
|
|
479
|
+
localVarAxiosArgs = _a.sent();
|
|
480
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
});
|
|
484
|
+
},
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* @summary Get promotion
|
|
488
|
+
* @param {string} promotionId
|
|
489
|
+
* @param {string} [languageCode]
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
apiV1PromotionsPromotionIdGet: function (promotionId, languageCode, options) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
495
|
+
var localVarAxiosArgs;
|
|
496
|
+
return __generator(this, function (_a) {
|
|
497
|
+
switch (_a.label) {
|
|
498
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PromotionsPromotionIdGet(promotionId, languageCode, options)];
|
|
499
|
+
case 1:
|
|
500
|
+
localVarAxiosArgs = _a.sent();
|
|
501
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
},
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @summary Update promotion
|
|
509
|
+
* @param {string} promotionId
|
|
510
|
+
* @param {UpdatePromotionCommand} [updatePromotionCommand]
|
|
511
|
+
* @param {*} [options] Override http request option.
|
|
512
|
+
* @throws {RequiredError}
|
|
513
|
+
*/
|
|
514
|
+
apiV1PromotionsPromotionIdPut: function (promotionId, updatePromotionCommand, 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.apiV1PromotionsPromotionIdPut(promotionId, updatePromotionCommand, 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 Reactivate promotion
|
|
530
|
+
* @param {string} promotionId
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
apiV1PromotionsPromotionIdReactivatePut: function (promotionId, options) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
536
|
+
var localVarAxiosArgs;
|
|
537
|
+
return __generator(this, function (_a) {
|
|
538
|
+
switch (_a.label) {
|
|
539
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PromotionsPromotionIdReactivatePut(promotionId, options)];
|
|
540
|
+
case 1:
|
|
541
|
+
localVarAxiosArgs = _a.sent();
|
|
542
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
});
|
|
546
|
+
},
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
exports.PromotionsApiFp = PromotionsApiFp;
|
|
550
|
+
/**
|
|
551
|
+
* PromotionsApi - factory interface
|
|
552
|
+
* @export
|
|
553
|
+
*/
|
|
554
|
+
var PromotionsApiFactory = function (configuration, basePath, axios) {
|
|
555
|
+
var localVarFp = (0, exports.PromotionsApiFp)(configuration);
|
|
556
|
+
return {
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @summary Get promotions
|
|
560
|
+
* @param {string} [languageCode]
|
|
561
|
+
* @param {string} [hospitalId]
|
|
562
|
+
* @param {PromotionType} [promotionType]
|
|
563
|
+
* @param {boolean} [showHidden]
|
|
564
|
+
* @param {boolean} [isActivated]
|
|
565
|
+
* @param {Date} [start]
|
|
566
|
+
* @param {Date} [end]
|
|
567
|
+
* @param {number} [page]
|
|
568
|
+
* @param {number} [limit]
|
|
569
|
+
* @param {Date} [lastRetrieved]
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
apiV1PromotionsGet: function (languageCode, hospitalId, promotionType, showHidden, isActivated, start, end, page, limit, lastRetrieved, options) {
|
|
574
|
+
return localVarFp.apiV1PromotionsGet(languageCode, hospitalId, promotionType, showHidden, isActivated, start, end, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
575
|
+
},
|
|
576
|
+
/**
|
|
577
|
+
*
|
|
578
|
+
* @summary Create promotion
|
|
579
|
+
* @param {CreatePromotionCommand} [createPromotionCommand]
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
apiV1PromotionsPost: function (createPromotionCommand, options) {
|
|
584
|
+
return localVarFp.apiV1PromotionsPost(createPromotionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
585
|
+
},
|
|
586
|
+
/**
|
|
587
|
+
*
|
|
588
|
+
* @summary Delete promotion
|
|
589
|
+
* @param {string} promotionId
|
|
590
|
+
* @param {boolean} [isPermanent]
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
*/
|
|
594
|
+
apiV1PromotionsPromotionIdDelete: function (promotionId, isPermanent, options) {
|
|
595
|
+
return localVarFp.apiV1PromotionsPromotionIdDelete(promotionId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
596
|
+
},
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @summary Get promotion
|
|
600
|
+
* @param {string} promotionId
|
|
601
|
+
* @param {string} [languageCode]
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
*/
|
|
605
|
+
apiV1PromotionsPromotionIdGet: function (promotionId, languageCode, options) {
|
|
606
|
+
return localVarFp.apiV1PromotionsPromotionIdGet(promotionId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @summary Update promotion
|
|
611
|
+
* @param {string} promotionId
|
|
612
|
+
* @param {UpdatePromotionCommand} [updatePromotionCommand]
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
apiV1PromotionsPromotionIdPut: function (promotionId, updatePromotionCommand, options) {
|
|
617
|
+
return localVarFp.apiV1PromotionsPromotionIdPut(promotionId, updatePromotionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @summary Reactivate promotion
|
|
622
|
+
* @param {string} promotionId
|
|
623
|
+
* @param {*} [options] Override http request option.
|
|
624
|
+
* @throws {RequiredError}
|
|
625
|
+
*/
|
|
626
|
+
apiV1PromotionsPromotionIdReactivatePut: function (promotionId, options) {
|
|
627
|
+
return localVarFp.apiV1PromotionsPromotionIdReactivatePut(promotionId, options).then(function (request) { return request(axios, basePath); });
|
|
628
|
+
},
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
exports.PromotionsApiFactory = PromotionsApiFactory;
|
|
632
|
+
/**
|
|
633
|
+
* PromotionsApi - object-oriented interface
|
|
634
|
+
* @export
|
|
635
|
+
* @class PromotionsApi
|
|
636
|
+
* @extends {BaseAPI}
|
|
637
|
+
*/
|
|
638
|
+
var PromotionsApi = /** @class */ (function (_super) {
|
|
639
|
+
__extends(PromotionsApi, _super);
|
|
640
|
+
function PromotionsApi() {
|
|
641
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @summary Get promotions
|
|
646
|
+
* @param {PromotionsApiApiV1PromotionsGetRequest} requestParameters Request parameters.
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
* @memberof PromotionsApi
|
|
650
|
+
*/
|
|
651
|
+
PromotionsApi.prototype.apiV1PromotionsGet = function (requestParameters, options) {
|
|
652
|
+
var _this = this;
|
|
653
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
654
|
+
return (0, exports.PromotionsApiFp)(this.configuration).apiV1PromotionsGet(requestParameters.languageCode, requestParameters.hospitalId, requestParameters.promotionType, requestParameters.showHidden, requestParameters.isActivated, requestParameters.start, requestParameters.end, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
655
|
+
};
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @summary Create promotion
|
|
659
|
+
* @param {PromotionsApiApiV1PromotionsPostRequest} requestParameters Request parameters.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof PromotionsApi
|
|
663
|
+
*/
|
|
664
|
+
PromotionsApi.prototype.apiV1PromotionsPost = function (requestParameters, options) {
|
|
665
|
+
var _this = this;
|
|
666
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
667
|
+
return (0, exports.PromotionsApiFp)(this.configuration).apiV1PromotionsPost(requestParameters.createPromotionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @summary Delete promotion
|
|
672
|
+
* @param {PromotionsApiApiV1PromotionsPromotionIdDeleteRequest} requestParameters Request parameters.
|
|
673
|
+
* @param {*} [options] Override http request option.
|
|
674
|
+
* @throws {RequiredError}
|
|
675
|
+
* @memberof PromotionsApi
|
|
676
|
+
*/
|
|
677
|
+
PromotionsApi.prototype.apiV1PromotionsPromotionIdDelete = function (requestParameters, options) {
|
|
678
|
+
var _this = this;
|
|
679
|
+
return (0, exports.PromotionsApiFp)(this.configuration).apiV1PromotionsPromotionIdDelete(requestParameters.promotionId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
* @summary Get promotion
|
|
684
|
+
* @param {PromotionsApiApiV1PromotionsPromotionIdGetRequest} requestParameters Request parameters.
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
* @memberof PromotionsApi
|
|
688
|
+
*/
|
|
689
|
+
PromotionsApi.prototype.apiV1PromotionsPromotionIdGet = function (requestParameters, options) {
|
|
690
|
+
var _this = this;
|
|
691
|
+
return (0, exports.PromotionsApiFp)(this.configuration).apiV1PromotionsPromotionIdGet(requestParameters.promotionId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
692
|
+
};
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @summary Update promotion
|
|
696
|
+
* @param {PromotionsApiApiV1PromotionsPromotionIdPutRequest} requestParameters Request parameters.
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
* @memberof PromotionsApi
|
|
700
|
+
*/
|
|
701
|
+
PromotionsApi.prototype.apiV1PromotionsPromotionIdPut = function (requestParameters, options) {
|
|
702
|
+
var _this = this;
|
|
703
|
+
return (0, exports.PromotionsApiFp)(this.configuration).apiV1PromotionsPromotionIdPut(requestParameters.promotionId, requestParameters.updatePromotionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @summary Reactivate promotion
|
|
708
|
+
* @param {PromotionsApiApiV1PromotionsPromotionIdReactivatePutRequest} requestParameters Request parameters.
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
* @memberof PromotionsApi
|
|
712
|
+
*/
|
|
713
|
+
PromotionsApi.prototype.apiV1PromotionsPromotionIdReactivatePut = function (requestParameters, options) {
|
|
714
|
+
var _this = this;
|
|
715
|
+
return (0, exports.PromotionsApiFp)(this.configuration).apiV1PromotionsPromotionIdReactivatePut(requestParameters.promotionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
716
|
+
};
|
|
717
|
+
return PromotionsApi;
|
|
718
|
+
}(base_1.BaseAPI));
|
|
719
|
+
exports.PromotionsApi = PromotionsApi;
|