ch-admin-api-client-typescript 5.37.0 → 5.37.4
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/countries-api.d.ts +324 -0
- package/lib/api/countries-api.d.ts.map +1 -1
- package/lib/api/countries-api.js +485 -0
- package/lib/api/currencies-api.d.ts +422 -0
- package/lib/api/currencies-api.d.ts.map +1 -0
- package/lib/api/currencies-api.js +764 -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/country-currencies-model.d.ts +33 -0
- package/lib/models/country-currencies-model.d.ts.map +1 -0
- package/lib/models/country-currencies-model.js +15 -0
- package/lib/models/country-currency-item-model.d.ts +55 -0
- package/lib/models/country-currency-item-model.d.ts.map +1 -0
- package/lib/models/country-currency-item-model.js +15 -0
- package/lib/models/country-currency-model.d.ts +55 -0
- package/lib/models/country-currency-model.d.ts.map +1 -0
- package/lib/models/country-currency-model.js +15 -0
- package/lib/models/create-currency-command.d.ts +37 -0
- package/lib/models/create-currency-command.d.ts.map +1 -0
- package/lib/models/create-currency-command.js +15 -0
- package/lib/models/currencies-model.d.ts +33 -0
- package/lib/models/currencies-model.d.ts.map +1 -0
- package/lib/models/currencies-model.js +15 -0
- package/lib/models/currency-item-model.d.ts +43 -0
- package/lib/models/currency-item-model.d.ts.map +1 -0
- package/lib/models/currency-item-model.js +15 -0
- package/lib/models/currency-model.d.ts +50 -0
- package/lib/models/currency-model.d.ts.map +1 -0
- package/lib/models/currency-model.js +15 -0
- package/lib/models/index.d.ts +11 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +11 -0
- package/lib/models/save-country-currency-command.d.ts +25 -0
- package/lib/models/save-country-currency-command.d.ts.map +1 -0
- package/lib/models/save-country-currency-command.js +15 -0
- package/lib/models/sort-country-currencies-command.d.ts +26 -0
- package/lib/models/sort-country-currencies-command.d.ts.map +1 -0
- package/lib/models/sort-country-currencies-command.js +15 -0
- package/lib/models/sort-currencies-command.d.ts +26 -0
- package/lib/models/sort-currencies-command.d.ts.map +1 -0
- package/lib/models/sort-currencies-command.js +15 -0
- package/lib/models/update-currency-command.d.ts +37 -0
- package/lib/models/update-currency-command.d.ts.map +1 -0
- package/lib/models/update-currency-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +12 -0
- package/src/api/countries-api.ts +570 -0
- package/src/api/currencies-api.ts +751 -0
- package/src/api.ts +1 -0
- package/src/models/country-currencies-model.ts +42 -0
- package/src/models/country-currency-item-model.ts +60 -0
- package/src/models/country-currency-model.ts +60 -0
- package/src/models/create-currency-command.ts +42 -0
- package/src/models/currencies-model.ts +42 -0
- package/src/models/currency-item-model.ts +48 -0
- package/src/models/currency-model.ts +57 -0
- package/src/models/index.ts +11 -0
- package/src/models/save-country-currency-command.ts +30 -0
- package/src/models/sort-country-currencies-command.ts +33 -0
- package/src/models/sort-currencies-command.ts +33 -0
- package/src/models/update-currency-command.ts +42 -0
package/lib/api/countries-api.js
CHANGED
|
@@ -92,6 +92,261 @@ var base_1 = require("../base");
|
|
|
92
92
|
var CountriesApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Remove currency from country language list
|
|
98
|
+
* @param {string} countryId
|
|
99
|
+
* @param {string} currencyId
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdDelete: function (countryId, currencyId, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesCurrencyIdDelete', 'countryId', countryId);
|
|
112
|
+
// verify required parameter 'currencyId' is not null or undefined
|
|
113
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesCurrencyIdDelete', 'currencyId', currencyId);
|
|
114
|
+
localVarPath = "/api/v1/countries/{countryId}/currencies/{currencyId}"
|
|
115
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)))
|
|
116
|
+
.replace("{".concat("currencyId", "}"), encodeURIComponent(String(currencyId)));
|
|
117
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
122
|
+
localVarHeaderParameter = {};
|
|
123
|
+
localVarQueryParameter = {};
|
|
124
|
+
// authentication oauth2 required
|
|
125
|
+
// oauth required
|
|
126
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
127
|
+
case 1:
|
|
128
|
+
// authentication oauth2 required
|
|
129
|
+
// oauth required
|
|
130
|
+
_a.sent();
|
|
131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
return [2 /*return*/, {
|
|
135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
}];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Get currncy of country
|
|
145
|
+
* @param {string} countryId
|
|
146
|
+
* @param {string} currencyId
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdGet: function (countryId, currencyId, options) {
|
|
151
|
+
if (options === void 0) { options = {}; }
|
|
152
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
153
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
154
|
+
return __generator(this, function (_a) {
|
|
155
|
+
switch (_a.label) {
|
|
156
|
+
case 0:
|
|
157
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
158
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesCurrencyIdGet', 'countryId', countryId);
|
|
159
|
+
// verify required parameter 'currencyId' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesCurrencyIdGet', 'currencyId', currencyId);
|
|
161
|
+
localVarPath = "/api/v1/countries/{countryId}/currencies/{currencyId}"
|
|
162
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)))
|
|
163
|
+
.replace("{".concat("currencyId", "}"), encodeURIComponent(String(currencyId)));
|
|
164
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
165
|
+
if (configuration) {
|
|
166
|
+
baseOptions = configuration.baseOptions;
|
|
167
|
+
}
|
|
168
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
169
|
+
localVarHeaderParameter = {};
|
|
170
|
+
localVarQueryParameter = {};
|
|
171
|
+
// authentication oauth2 required
|
|
172
|
+
// oauth required
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
174
|
+
case 1:
|
|
175
|
+
// authentication oauth2 required
|
|
176
|
+
// oauth required
|
|
177
|
+
_a.sent();
|
|
178
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
179
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
181
|
+
return [2 /*return*/, {
|
|
182
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
183
|
+
options: localVarRequestOptions,
|
|
184
|
+
}];
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary Add currency into country language list
|
|
192
|
+
* @param {string} countryId
|
|
193
|
+
* @param {string} currencyId
|
|
194
|
+
* @param {SaveCountryCurrencyCommand} [saveCountryCurrencyCommand]
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdPost: function (countryId, currencyId, saveCountryCurrencyCommand, options) {
|
|
199
|
+
if (options === void 0) { options = {}; }
|
|
200
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
201
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
202
|
+
return __generator(this, function (_a) {
|
|
203
|
+
switch (_a.label) {
|
|
204
|
+
case 0:
|
|
205
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
206
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesCurrencyIdPost', 'countryId', countryId);
|
|
207
|
+
// verify required parameter 'currencyId' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesCurrencyIdPost', 'currencyId', currencyId);
|
|
209
|
+
localVarPath = "/api/v1/countries/{countryId}/currencies/{currencyId}"
|
|
210
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)))
|
|
211
|
+
.replace("{".concat("currencyId", "}"), encodeURIComponent(String(currencyId)));
|
|
212
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
|
+
if (configuration) {
|
|
214
|
+
baseOptions = configuration.baseOptions;
|
|
215
|
+
}
|
|
216
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
217
|
+
localVarHeaderParameter = {};
|
|
218
|
+
localVarQueryParameter = {};
|
|
219
|
+
// authentication oauth2 required
|
|
220
|
+
// oauth required
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
222
|
+
case 1:
|
|
223
|
+
// authentication oauth2 required
|
|
224
|
+
// oauth required
|
|
225
|
+
_a.sent();
|
|
226
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
227
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
230
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveCountryCurrencyCommand, localVarRequestOptions, configuration);
|
|
231
|
+
return [2 /*return*/, {
|
|
232
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
}];
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @summary Get currencies list of country
|
|
242
|
+
* @param {string} countryId
|
|
243
|
+
* @param {string} [currencyId]
|
|
244
|
+
* @param {string} [currencyCode]
|
|
245
|
+
* @param {number} [page]
|
|
246
|
+
* @param {number} [limit]
|
|
247
|
+
* @param {Date} [lastRetrieved]
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
apiV1CountriesCountryIdCurrenciesGet: function (countryId, currencyId, currencyCode, page, limit, lastRetrieved, options) {
|
|
252
|
+
if (options === void 0) { options = {}; }
|
|
253
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
254
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
255
|
+
return __generator(this, function (_a) {
|
|
256
|
+
switch (_a.label) {
|
|
257
|
+
case 0:
|
|
258
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
259
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesGet', 'countryId', countryId);
|
|
260
|
+
localVarPath = "/api/v1/countries/{countryId}/currencies"
|
|
261
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
|
|
262
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions;
|
|
265
|
+
}
|
|
266
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
267
|
+
localVarHeaderParameter = {};
|
|
268
|
+
localVarQueryParameter = {};
|
|
269
|
+
// authentication oauth2 required
|
|
270
|
+
// oauth required
|
|
271
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
272
|
+
case 1:
|
|
273
|
+
// authentication oauth2 required
|
|
274
|
+
// oauth required
|
|
275
|
+
_a.sent();
|
|
276
|
+
if (currencyId !== undefined) {
|
|
277
|
+
localVarQueryParameter['CurrencyId'] = currencyId;
|
|
278
|
+
}
|
|
279
|
+
if (currencyCode !== undefined) {
|
|
280
|
+
localVarQueryParameter['CurrencyCode'] = currencyCode;
|
|
281
|
+
}
|
|
282
|
+
if (page !== undefined) {
|
|
283
|
+
localVarQueryParameter['page'] = page;
|
|
284
|
+
}
|
|
285
|
+
if (limit !== undefined) {
|
|
286
|
+
localVarQueryParameter['limit'] = limit;
|
|
287
|
+
}
|
|
288
|
+
if (lastRetrieved !== undefined) {
|
|
289
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
290
|
+
lastRetrieved.toISOString() :
|
|
291
|
+
lastRetrieved;
|
|
292
|
+
}
|
|
293
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
294
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
296
|
+
return [2 /*return*/, {
|
|
297
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions,
|
|
299
|
+
}];
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
},
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @summary Batch for country\'s currencies sorting
|
|
307
|
+
* @param {string} countryId
|
|
308
|
+
* @param {SortCountryCurrenciesCommand} [sortCountryCurrenciesCommand]
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
apiV1CountriesCountryIdCurrenciesSortPut: function (countryId, sortCountryCurrenciesCommand, options) {
|
|
313
|
+
if (options === void 0) { options = {}; }
|
|
314
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
315
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
316
|
+
return __generator(this, function (_a) {
|
|
317
|
+
switch (_a.label) {
|
|
318
|
+
case 0:
|
|
319
|
+
// verify required parameter 'countryId' is not null or undefined
|
|
320
|
+
(0, common_1.assertParamExists)('apiV1CountriesCountryIdCurrenciesSortPut', 'countryId', countryId);
|
|
321
|
+
localVarPath = "/api/v1/countries/{countryId}/currencies/sort"
|
|
322
|
+
.replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
|
|
323
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
324
|
+
if (configuration) {
|
|
325
|
+
baseOptions = configuration.baseOptions;
|
|
326
|
+
}
|
|
327
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
328
|
+
localVarHeaderParameter = {};
|
|
329
|
+
localVarQueryParameter = {};
|
|
330
|
+
// authentication oauth2 required
|
|
331
|
+
// oauth required
|
|
332
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
333
|
+
case 1:
|
|
334
|
+
// authentication oauth2 required
|
|
335
|
+
// oauth required
|
|
336
|
+
_a.sent();
|
|
337
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
338
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
339
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
340
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
341
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sortCountryCurrenciesCommand, localVarRequestOptions, configuration);
|
|
342
|
+
return [2 /*return*/, {
|
|
343
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
344
|
+
options: localVarRequestOptions,
|
|
345
|
+
}];
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
},
|
|
95
350
|
/**
|
|
96
351
|
*
|
|
97
352
|
* @summary Delete country.
|
|
@@ -1098,6 +1353,116 @@ exports.CountriesApiAxiosParamCreator = CountriesApiAxiosParamCreator;
|
|
|
1098
1353
|
var CountriesApiFp = function (configuration) {
|
|
1099
1354
|
var localVarAxiosParamCreator = (0, exports.CountriesApiAxiosParamCreator)(configuration);
|
|
1100
1355
|
return {
|
|
1356
|
+
/**
|
|
1357
|
+
*
|
|
1358
|
+
* @summary Remove currency from country language list
|
|
1359
|
+
* @param {string} countryId
|
|
1360
|
+
* @param {string} currencyId
|
|
1361
|
+
* @param {*} [options] Override http request option.
|
|
1362
|
+
* @throws {RequiredError}
|
|
1363
|
+
*/
|
|
1364
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdDelete: function (countryId, currencyId, options) {
|
|
1365
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1366
|
+
var localVarAxiosArgs;
|
|
1367
|
+
return __generator(this, function (_a) {
|
|
1368
|
+
switch (_a.label) {
|
|
1369
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(countryId, currencyId, options)];
|
|
1370
|
+
case 1:
|
|
1371
|
+
localVarAxiosArgs = _a.sent();
|
|
1372
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1373
|
+
}
|
|
1374
|
+
});
|
|
1375
|
+
});
|
|
1376
|
+
},
|
|
1377
|
+
/**
|
|
1378
|
+
*
|
|
1379
|
+
* @summary Get currncy of country
|
|
1380
|
+
* @param {string} countryId
|
|
1381
|
+
* @param {string} currencyId
|
|
1382
|
+
* @param {*} [options] Override http request option.
|
|
1383
|
+
* @throws {RequiredError}
|
|
1384
|
+
*/
|
|
1385
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdGet: function (countryId, currencyId, options) {
|
|
1386
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1387
|
+
var localVarAxiosArgs;
|
|
1388
|
+
return __generator(this, function (_a) {
|
|
1389
|
+
switch (_a.label) {
|
|
1390
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesCurrencyIdGet(countryId, currencyId, options)];
|
|
1391
|
+
case 1:
|
|
1392
|
+
localVarAxiosArgs = _a.sent();
|
|
1393
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
});
|
|
1397
|
+
},
|
|
1398
|
+
/**
|
|
1399
|
+
*
|
|
1400
|
+
* @summary Add currency into country language list
|
|
1401
|
+
* @param {string} countryId
|
|
1402
|
+
* @param {string} currencyId
|
|
1403
|
+
* @param {SaveCountryCurrencyCommand} [saveCountryCurrencyCommand]
|
|
1404
|
+
* @param {*} [options] Override http request option.
|
|
1405
|
+
* @throws {RequiredError}
|
|
1406
|
+
*/
|
|
1407
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdPost: function (countryId, currencyId, saveCountryCurrencyCommand, options) {
|
|
1408
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1409
|
+
var localVarAxiosArgs;
|
|
1410
|
+
return __generator(this, function (_a) {
|
|
1411
|
+
switch (_a.label) {
|
|
1412
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesCurrencyIdPost(countryId, currencyId, saveCountryCurrencyCommand, options)];
|
|
1413
|
+
case 1:
|
|
1414
|
+
localVarAxiosArgs = _a.sent();
|
|
1415
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1418
|
+
});
|
|
1419
|
+
},
|
|
1420
|
+
/**
|
|
1421
|
+
*
|
|
1422
|
+
* @summary Get currencies list of country
|
|
1423
|
+
* @param {string} countryId
|
|
1424
|
+
* @param {string} [currencyId]
|
|
1425
|
+
* @param {string} [currencyCode]
|
|
1426
|
+
* @param {number} [page]
|
|
1427
|
+
* @param {number} [limit]
|
|
1428
|
+
* @param {Date} [lastRetrieved]
|
|
1429
|
+
* @param {*} [options] Override http request option.
|
|
1430
|
+
* @throws {RequiredError}
|
|
1431
|
+
*/
|
|
1432
|
+
apiV1CountriesCountryIdCurrenciesGet: function (countryId, currencyId, currencyCode, page, limit, lastRetrieved, options) {
|
|
1433
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1434
|
+
var localVarAxiosArgs;
|
|
1435
|
+
return __generator(this, function (_a) {
|
|
1436
|
+
switch (_a.label) {
|
|
1437
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesGet(countryId, currencyId, currencyCode, page, limit, lastRetrieved, options)];
|
|
1438
|
+
case 1:
|
|
1439
|
+
localVarAxiosArgs = _a.sent();
|
|
1440
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
});
|
|
1444
|
+
},
|
|
1445
|
+
/**
|
|
1446
|
+
*
|
|
1447
|
+
* @summary Batch for country\'s currencies sorting
|
|
1448
|
+
* @param {string} countryId
|
|
1449
|
+
* @param {SortCountryCurrenciesCommand} [sortCountryCurrenciesCommand]
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
*/
|
|
1453
|
+
apiV1CountriesCountryIdCurrenciesSortPut: function (countryId, sortCountryCurrenciesCommand, options) {
|
|
1454
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1455
|
+
var localVarAxiosArgs;
|
|
1456
|
+
return __generator(this, function (_a) {
|
|
1457
|
+
switch (_a.label) {
|
|
1458
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdCurrenciesSortPut(countryId, sortCountryCurrenciesCommand, options)];
|
|
1459
|
+
case 1:
|
|
1460
|
+
localVarAxiosArgs = _a.sent();
|
|
1461
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1462
|
+
}
|
|
1463
|
+
});
|
|
1464
|
+
});
|
|
1465
|
+
},
|
|
1101
1466
|
/**
|
|
1102
1467
|
*
|
|
1103
1468
|
* @summary Delete country.
|
|
@@ -1542,6 +1907,66 @@ exports.CountriesApiFp = CountriesApiFp;
|
|
|
1542
1907
|
var CountriesApiFactory = function (configuration, basePath, axios) {
|
|
1543
1908
|
var localVarFp = (0, exports.CountriesApiFp)(configuration);
|
|
1544
1909
|
return {
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @summary Remove currency from country language list
|
|
1913
|
+
* @param {string} countryId
|
|
1914
|
+
* @param {string} currencyId
|
|
1915
|
+
* @param {*} [options] Override http request option.
|
|
1916
|
+
* @throws {RequiredError}
|
|
1917
|
+
*/
|
|
1918
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdDelete: function (countryId, currencyId, options) {
|
|
1919
|
+
return localVarFp.apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(countryId, currencyId, options).then(function (request) { return request(axios, basePath); });
|
|
1920
|
+
},
|
|
1921
|
+
/**
|
|
1922
|
+
*
|
|
1923
|
+
* @summary Get currncy of country
|
|
1924
|
+
* @param {string} countryId
|
|
1925
|
+
* @param {string} currencyId
|
|
1926
|
+
* @param {*} [options] Override http request option.
|
|
1927
|
+
* @throws {RequiredError}
|
|
1928
|
+
*/
|
|
1929
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdGet: function (countryId, currencyId, options) {
|
|
1930
|
+
return localVarFp.apiV1CountriesCountryIdCurrenciesCurrencyIdGet(countryId, currencyId, options).then(function (request) { return request(axios, basePath); });
|
|
1931
|
+
},
|
|
1932
|
+
/**
|
|
1933
|
+
*
|
|
1934
|
+
* @summary Add currency into country language list
|
|
1935
|
+
* @param {string} countryId
|
|
1936
|
+
* @param {string} currencyId
|
|
1937
|
+
* @param {SaveCountryCurrencyCommand} [saveCountryCurrencyCommand]
|
|
1938
|
+
* @param {*} [options] Override http request option.
|
|
1939
|
+
* @throws {RequiredError}
|
|
1940
|
+
*/
|
|
1941
|
+
apiV1CountriesCountryIdCurrenciesCurrencyIdPost: function (countryId, currencyId, saveCountryCurrencyCommand, options) {
|
|
1942
|
+
return localVarFp.apiV1CountriesCountryIdCurrenciesCurrencyIdPost(countryId, currencyId, saveCountryCurrencyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
1943
|
+
},
|
|
1944
|
+
/**
|
|
1945
|
+
*
|
|
1946
|
+
* @summary Get currencies list of country
|
|
1947
|
+
* @param {string} countryId
|
|
1948
|
+
* @param {string} [currencyId]
|
|
1949
|
+
* @param {string} [currencyCode]
|
|
1950
|
+
* @param {number} [page]
|
|
1951
|
+
* @param {number} [limit]
|
|
1952
|
+
* @param {Date} [lastRetrieved]
|
|
1953
|
+
* @param {*} [options] Override http request option.
|
|
1954
|
+
* @throws {RequiredError}
|
|
1955
|
+
*/
|
|
1956
|
+
apiV1CountriesCountryIdCurrenciesGet: function (countryId, currencyId, currencyCode, page, limit, lastRetrieved, options) {
|
|
1957
|
+
return localVarFp.apiV1CountriesCountryIdCurrenciesGet(countryId, currencyId, currencyCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1958
|
+
},
|
|
1959
|
+
/**
|
|
1960
|
+
*
|
|
1961
|
+
* @summary Batch for country\'s currencies sorting
|
|
1962
|
+
* @param {string} countryId
|
|
1963
|
+
* @param {SortCountryCurrenciesCommand} [sortCountryCurrenciesCommand]
|
|
1964
|
+
* @param {*} [options] Override http request option.
|
|
1965
|
+
* @throws {RequiredError}
|
|
1966
|
+
*/
|
|
1967
|
+
apiV1CountriesCountryIdCurrenciesSortPut: function (countryId, sortCountryCurrenciesCommand, options) {
|
|
1968
|
+
return localVarFp.apiV1CountriesCountryIdCurrenciesSortPut(countryId, sortCountryCurrenciesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
1969
|
+
},
|
|
1545
1970
|
/**
|
|
1546
1971
|
*
|
|
1547
1972
|
* @summary Delete country.
|
|
@@ -1790,6 +2215,66 @@ var CountriesApi = /** @class */ (function (_super) {
|
|
|
1790
2215
|
function CountriesApi() {
|
|
1791
2216
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1792
2217
|
}
|
|
2218
|
+
/**
|
|
2219
|
+
*
|
|
2220
|
+
* @summary Remove currency from country language list
|
|
2221
|
+
* @param {CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdDeleteRequest} requestParameters Request parameters.
|
|
2222
|
+
* @param {*} [options] Override http request option.
|
|
2223
|
+
* @throws {RequiredError}
|
|
2224
|
+
* @memberof CountriesApi
|
|
2225
|
+
*/
|
|
2226
|
+
CountriesApi.prototype.apiV1CountriesCountryIdCurrenciesCurrencyIdDelete = function (requestParameters, options) {
|
|
2227
|
+
var _this = this;
|
|
2228
|
+
return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdCurrenciesCurrencyIdDelete(requestParameters.countryId, requestParameters.currencyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2229
|
+
};
|
|
2230
|
+
/**
|
|
2231
|
+
*
|
|
2232
|
+
* @summary Get currncy of country
|
|
2233
|
+
* @param {CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdGetRequest} requestParameters Request parameters.
|
|
2234
|
+
* @param {*} [options] Override http request option.
|
|
2235
|
+
* @throws {RequiredError}
|
|
2236
|
+
* @memberof CountriesApi
|
|
2237
|
+
*/
|
|
2238
|
+
CountriesApi.prototype.apiV1CountriesCountryIdCurrenciesCurrencyIdGet = function (requestParameters, options) {
|
|
2239
|
+
var _this = this;
|
|
2240
|
+
return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdCurrenciesCurrencyIdGet(requestParameters.countryId, requestParameters.currencyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2241
|
+
};
|
|
2242
|
+
/**
|
|
2243
|
+
*
|
|
2244
|
+
* @summary Add currency into country language list
|
|
2245
|
+
* @param {CountriesApiApiV1CountriesCountryIdCurrenciesCurrencyIdPostRequest} requestParameters Request parameters.
|
|
2246
|
+
* @param {*} [options] Override http request option.
|
|
2247
|
+
* @throws {RequiredError}
|
|
2248
|
+
* @memberof CountriesApi
|
|
2249
|
+
*/
|
|
2250
|
+
CountriesApi.prototype.apiV1CountriesCountryIdCurrenciesCurrencyIdPost = function (requestParameters, options) {
|
|
2251
|
+
var _this = this;
|
|
2252
|
+
return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdCurrenciesCurrencyIdPost(requestParameters.countryId, requestParameters.currencyId, requestParameters.saveCountryCurrencyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2253
|
+
};
|
|
2254
|
+
/**
|
|
2255
|
+
*
|
|
2256
|
+
* @summary Get currencies list of country
|
|
2257
|
+
* @param {CountriesApiApiV1CountriesCountryIdCurrenciesGetRequest} requestParameters Request parameters.
|
|
2258
|
+
* @param {*} [options] Override http request option.
|
|
2259
|
+
* @throws {RequiredError}
|
|
2260
|
+
* @memberof CountriesApi
|
|
2261
|
+
*/
|
|
2262
|
+
CountriesApi.prototype.apiV1CountriesCountryIdCurrenciesGet = function (requestParameters, options) {
|
|
2263
|
+
var _this = this;
|
|
2264
|
+
return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdCurrenciesGet(requestParameters.countryId, requestParameters.currencyId, requestParameters.currencyCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2265
|
+
};
|
|
2266
|
+
/**
|
|
2267
|
+
*
|
|
2268
|
+
* @summary Batch for country\'s currencies sorting
|
|
2269
|
+
* @param {CountriesApiApiV1CountriesCountryIdCurrenciesSortPutRequest} requestParameters Request parameters.
|
|
2270
|
+
* @param {*} [options] Override http request option.
|
|
2271
|
+
* @throws {RequiredError}
|
|
2272
|
+
* @memberof CountriesApi
|
|
2273
|
+
*/
|
|
2274
|
+
CountriesApi.prototype.apiV1CountriesCountryIdCurrenciesSortPut = function (requestParameters, options) {
|
|
2275
|
+
var _this = this;
|
|
2276
|
+
return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdCurrenciesSortPut(requestParameters.countryId, requestParameters.sortCountryCurrenciesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2277
|
+
};
|
|
1793
2278
|
/**
|
|
1794
2279
|
*
|
|
1795
2280
|
* @summary Delete country.
|