ch-admin-api-client-typescript 5.82.1 → 5.83.1

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.
@@ -484,34 +484,35 @@ var CountriesApiAxiosParamCreator = function (configuration) {
484
484
  },
485
485
  /**
486
486
  *
487
- * @summary Get languages list of country (Auth policies: RequireManagerRole)
487
+ * @summary Remove language from country language list (Auth policies: RequireManagerRole)
488
488
  * @param {string} countryId
489
- * @param {number} [page]
490
- * @param {number} [limit]
491
- * @param {Date} [lastRetrieved]
489
+ * @param {string} code
492
490
  * @param {*} [options] Override http request option.
493
491
  * @throws {RequiredError}
494
492
  */
495
- apiV1CountriesCountryIdLanguagesGet: function (countryId_1, page_1, limit_1, lastRetrieved_1) {
493
+ apiV1CountriesCountryIdLanguagesCodeDelete: function (countryId_1, code_1) {
496
494
  var args_1 = [];
497
- for (var _i = 4; _i < arguments.length; _i++) {
498
- args_1[_i - 4] = arguments[_i];
495
+ for (var _i = 2; _i < arguments.length; _i++) {
496
+ args_1[_i - 2] = arguments[_i];
499
497
  }
500
- return __awaiter(_this, __spreadArray([countryId_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (countryId, page, limit, lastRetrieved, options) {
498
+ return __awaiter(_this, __spreadArray([countryId_1, code_1], args_1, true), void 0, function (countryId, code, options) {
501
499
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
502
500
  if (options === void 0) { options = {}; }
503
501
  return __generator(this, function (_a) {
504
502
  switch (_a.label) {
505
503
  case 0:
506
504
  // verify required parameter 'countryId' is not null or undefined
507
- (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesGet', 'countryId', countryId);
508
- localVarPath = "/api/v1/countries/{countryId}/languages"
509
- .replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
505
+ (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesCodeDelete', 'countryId', countryId);
506
+ // verify required parameter 'code' is not null or undefined
507
+ (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesCodeDelete', 'code', code);
508
+ localVarPath = "/api/v1/countries/{countryId}/languages/{code}"
509
+ .replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)))
510
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
510
511
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
511
512
  if (configuration) {
512
513
  baseOptions = configuration.baseOptions;
513
514
  }
514
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
515
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
515
516
  localVarHeaderParameter = {};
516
517
  localVarQueryParameter = {};
517
518
  // authentication oauth2 required
@@ -521,17 +522,6 @@ var CountriesApiAxiosParamCreator = function (configuration) {
521
522
  // authentication oauth2 required
522
523
  // oauth required
523
524
  _a.sent();
524
- if (page !== undefined) {
525
- localVarQueryParameter['page'] = page;
526
- }
527
- if (limit !== undefined) {
528
- localVarQueryParameter['limit'] = limit;
529
- }
530
- if (lastRetrieved !== undefined) {
531
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
532
- lastRetrieved.toISOString() :
533
- lastRetrieved;
534
- }
535
525
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
536
526
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
527
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -545,35 +535,36 @@ var CountriesApiAxiosParamCreator = function (configuration) {
545
535
  },
546
536
  /**
547
537
  *
548
- * @summary Remove language from country language list (Auth policies: RequireManagerRole)
538
+ * @summary Get language of country (Auth policies: RequireManagerRole)
549
539
  * @param {string} countryId
550
- * @param {string} languageCode
540
+ * @param {string} code
541
+ * @param {string} [languageCode] LanguageCode for selecting translation value
551
542
  * @param {*} [options] Override http request option.
552
543
  * @throws {RequiredError}
553
544
  */
554
- apiV1CountriesCountryIdLanguagesLanguageCodeDelete: function (countryId_1, languageCode_1) {
545
+ apiV1CountriesCountryIdLanguagesCodeGet: function (countryId_1, code_1, languageCode_1) {
555
546
  var args_1 = [];
556
- for (var _i = 2; _i < arguments.length; _i++) {
557
- args_1[_i - 2] = arguments[_i];
547
+ for (var _i = 3; _i < arguments.length; _i++) {
548
+ args_1[_i - 3] = arguments[_i];
558
549
  }
559
- return __awaiter(_this, __spreadArray([countryId_1, languageCode_1], args_1, true), void 0, function (countryId, languageCode, options) {
550
+ return __awaiter(_this, __spreadArray([countryId_1, code_1, languageCode_1], args_1, true), void 0, function (countryId, code, languageCode, options) {
560
551
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
561
552
  if (options === void 0) { options = {}; }
562
553
  return __generator(this, function (_a) {
563
554
  switch (_a.label) {
564
555
  case 0:
565
556
  // verify required parameter 'countryId' is not null or undefined
566
- (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesLanguageCodeDelete', 'countryId', countryId);
567
- // verify required parameter 'languageCode' is not null or undefined
568
- (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesLanguageCodeDelete', 'languageCode', languageCode);
569
- localVarPath = "/api/v1/countries/{countryId}/languages/{languageCode}"
557
+ (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesCodeGet', 'countryId', countryId);
558
+ // verify required parameter 'code' is not null or undefined
559
+ (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesCodeGet', 'code', code);
560
+ localVarPath = "/api/v1/countries/{countryId}/languages/{code}"
570
561
  .replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)))
571
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
562
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
572
563
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
573
564
  if (configuration) {
574
565
  baseOptions = configuration.baseOptions;
575
566
  }
576
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
567
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
577
568
  localVarHeaderParameter = {};
578
569
  localVarQueryParameter = {};
579
570
  // authentication oauth2 required
@@ -583,6 +574,9 @@ var CountriesApiAxiosParamCreator = function (configuration) {
583
574
  // authentication oauth2 required
584
575
  // oauth required
585
576
  _a.sent();
577
+ if (languageCode !== undefined) {
578
+ localVarQueryParameter['languageCode'] = languageCode;
579
+ }
586
580
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
587
581
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
588
582
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -596,35 +590,36 @@ var CountriesApiAxiosParamCreator = function (configuration) {
596
590
  },
597
591
  /**
598
592
  *
599
- * @summary Get language of country (Auth policies: RequireManagerRole)
593
+ * @summary Add language into country language list (Auth policies: RequireManagerRole)
600
594
  * @param {string} countryId
601
- * @param {string} languageCode
595
+ * @param {string} code
596
+ * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
602
597
  * @param {*} [options] Override http request option.
603
598
  * @throws {RequiredError}
604
599
  */
605
- apiV1CountriesCountryIdLanguagesLanguageCodeGet: function (countryId_1, languageCode_1) {
600
+ apiV1CountriesCountryIdLanguagesCodePost: function (countryId_1, code_1, saveCountryLanguageCommand_1) {
606
601
  var args_1 = [];
607
- for (var _i = 2; _i < arguments.length; _i++) {
608
- args_1[_i - 2] = arguments[_i];
602
+ for (var _i = 3; _i < arguments.length; _i++) {
603
+ args_1[_i - 3] = arguments[_i];
609
604
  }
610
- return __awaiter(_this, __spreadArray([countryId_1, languageCode_1], args_1, true), void 0, function (countryId, languageCode, options) {
605
+ return __awaiter(_this, __spreadArray([countryId_1, code_1, saveCountryLanguageCommand_1], args_1, true), void 0, function (countryId, code, saveCountryLanguageCommand, options) {
611
606
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
612
607
  if (options === void 0) { options = {}; }
613
608
  return __generator(this, function (_a) {
614
609
  switch (_a.label) {
615
610
  case 0:
616
611
  // verify required parameter 'countryId' is not null or undefined
617
- (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesLanguageCodeGet', 'countryId', countryId);
618
- // verify required parameter 'languageCode' is not null or undefined
619
- (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesLanguageCodeGet', 'languageCode', languageCode);
620
- localVarPath = "/api/v1/countries/{countryId}/languages/{languageCode}"
612
+ (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesCodePost', 'countryId', countryId);
613
+ // verify required parameter 'code' is not null or undefined
614
+ (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesCodePost', 'code', code);
615
+ localVarPath = "/api/v1/countries/{countryId}/languages/{code}"
621
616
  .replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)))
622
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
617
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
623
618
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
624
619
  if (configuration) {
625
620
  baseOptions = configuration.baseOptions;
626
621
  }
627
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
622
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
628
623
  localVarHeaderParameter = {};
629
624
  localVarQueryParameter = {};
630
625
  // authentication oauth2 required
@@ -634,9 +629,11 @@ var CountriesApiAxiosParamCreator = function (configuration) {
634
629
  // authentication oauth2 required
635
630
  // oauth required
636
631
  _a.sent();
632
+ localVarHeaderParameter['Content-Type'] = 'application/json';
637
633
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
638
634
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
639
635
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
636
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveCountryLanguageCommand, localVarRequestOptions, configuration);
640
637
  return [2 /*return*/, {
641
638
  url: (0, common_1.toPathString)(localVarUrlObj),
642
639
  options: localVarRequestOptions,
@@ -647,36 +644,35 @@ var CountriesApiAxiosParamCreator = function (configuration) {
647
644
  },
648
645
  /**
649
646
  *
650
- * @summary Add language into country language list (Auth policies: RequireManagerRole)
647
+ * @summary Get languages list of country (Auth policies: RequireManagerRole)
651
648
  * @param {string} countryId
652
- * @param {string} languageCode
653
- * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
649
+ * @param {string} [languageCode]
650
+ * @param {number} [page]
651
+ * @param {number} [limit]
652
+ * @param {Date} [lastRetrieved]
654
653
  * @param {*} [options] Override http request option.
655
654
  * @throws {RequiredError}
656
655
  */
657
- apiV1CountriesCountryIdLanguagesLanguageCodePost: function (countryId_1, languageCode_1, saveCountryLanguageCommand_1) {
656
+ apiV1CountriesCountryIdLanguagesGet: function (countryId_1, languageCode_1, page_1, limit_1, lastRetrieved_1) {
658
657
  var args_1 = [];
659
- for (var _i = 3; _i < arguments.length; _i++) {
660
- args_1[_i - 3] = arguments[_i];
658
+ for (var _i = 5; _i < arguments.length; _i++) {
659
+ args_1[_i - 5] = arguments[_i];
661
660
  }
662
- return __awaiter(_this, __spreadArray([countryId_1, languageCode_1, saveCountryLanguageCommand_1], args_1, true), void 0, function (countryId, languageCode, saveCountryLanguageCommand, options) {
661
+ return __awaiter(_this, __spreadArray([countryId_1, languageCode_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (countryId, languageCode, page, limit, lastRetrieved, options) {
663
662
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
664
663
  if (options === void 0) { options = {}; }
665
664
  return __generator(this, function (_a) {
666
665
  switch (_a.label) {
667
666
  case 0:
668
667
  // verify required parameter 'countryId' is not null or undefined
669
- (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesLanguageCodePost', 'countryId', countryId);
670
- // verify required parameter 'languageCode' is not null or undefined
671
- (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesLanguageCodePost', 'languageCode', languageCode);
672
- localVarPath = "/api/v1/countries/{countryId}/languages/{languageCode}"
673
- .replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)))
674
- .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
668
+ (0, common_1.assertParamExists)('apiV1CountriesCountryIdLanguagesGet', 'countryId', countryId);
669
+ localVarPath = "/api/v1/countries/{countryId}/languages"
670
+ .replace("{".concat("countryId", "}"), encodeURIComponent(String(countryId)));
675
671
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
676
672
  if (configuration) {
677
673
  baseOptions = configuration.baseOptions;
678
674
  }
679
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
675
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
680
676
  localVarHeaderParameter = {};
681
677
  localVarQueryParameter = {};
682
678
  // authentication oauth2 required
@@ -686,11 +682,23 @@ var CountriesApiAxiosParamCreator = function (configuration) {
686
682
  // authentication oauth2 required
687
683
  // oauth required
688
684
  _a.sent();
689
- localVarHeaderParameter['Content-Type'] = 'application/json';
685
+ if (languageCode !== undefined) {
686
+ localVarQueryParameter['languageCode'] = languageCode;
687
+ }
688
+ if (page !== undefined) {
689
+ localVarQueryParameter['page'] = page;
690
+ }
691
+ if (limit !== undefined) {
692
+ localVarQueryParameter['limit'] = limit;
693
+ }
694
+ if (lastRetrieved !== undefined) {
695
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
696
+ lastRetrieved.toISOString() :
697
+ lastRetrieved;
698
+ }
690
699
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
691
700
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
692
701
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
693
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveCountryLanguageCommand, localVarRequestOptions, configuration);
694
702
  return [2 /*return*/, {
695
703
  url: (0, common_1.toPathString)(localVarUrlObj),
696
704
  options: localVarRequestOptions,
@@ -1617,20 +1625,18 @@ var CountriesApiFp = function (configuration) {
1617
1625
  },
1618
1626
  /**
1619
1627
  *
1620
- * @summary Get languages list of country (Auth policies: RequireManagerRole)
1628
+ * @summary Remove language from country language list (Auth policies: RequireManagerRole)
1621
1629
  * @param {string} countryId
1622
- * @param {number} [page]
1623
- * @param {number} [limit]
1624
- * @param {Date} [lastRetrieved]
1630
+ * @param {string} code
1625
1631
  * @param {*} [options] Override http request option.
1626
1632
  * @throws {RequiredError}
1627
1633
  */
1628
- apiV1CountriesCountryIdLanguagesGet: function (countryId, page, limit, lastRetrieved, options) {
1634
+ apiV1CountriesCountryIdLanguagesCodeDelete: function (countryId, code, options) {
1629
1635
  return __awaiter(this, void 0, void 0, function () {
1630
1636
  var localVarAxiosArgs;
1631
1637
  return __generator(this, function (_a) {
1632
1638
  switch (_a.label) {
1633
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesGet(countryId, page, limit, lastRetrieved, options)];
1639
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesCodeDelete(countryId, code, options)];
1634
1640
  case 1:
1635
1641
  localVarAxiosArgs = _a.sent();
1636
1642
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1640,18 +1646,19 @@ var CountriesApiFp = function (configuration) {
1640
1646
  },
1641
1647
  /**
1642
1648
  *
1643
- * @summary Remove language from country language list (Auth policies: RequireManagerRole)
1649
+ * @summary Get language of country (Auth policies: RequireManagerRole)
1644
1650
  * @param {string} countryId
1645
- * @param {string} languageCode
1651
+ * @param {string} code
1652
+ * @param {string} [languageCode] LanguageCode for selecting translation value
1646
1653
  * @param {*} [options] Override http request option.
1647
1654
  * @throws {RequiredError}
1648
1655
  */
1649
- apiV1CountriesCountryIdLanguagesLanguageCodeDelete: function (countryId, languageCode, options) {
1656
+ apiV1CountriesCountryIdLanguagesCodeGet: function (countryId, code, languageCode, options) {
1650
1657
  return __awaiter(this, void 0, void 0, function () {
1651
1658
  var localVarAxiosArgs;
1652
1659
  return __generator(this, function (_a) {
1653
1660
  switch (_a.label) {
1654
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesLanguageCodeDelete(countryId, languageCode, options)];
1661
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesCodeGet(countryId, code, languageCode, options)];
1655
1662
  case 1:
1656
1663
  localVarAxiosArgs = _a.sent();
1657
1664
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1661,18 +1668,19 @@ var CountriesApiFp = function (configuration) {
1661
1668
  },
1662
1669
  /**
1663
1670
  *
1664
- * @summary Get language of country (Auth policies: RequireManagerRole)
1671
+ * @summary Add language into country language list (Auth policies: RequireManagerRole)
1665
1672
  * @param {string} countryId
1666
- * @param {string} languageCode
1673
+ * @param {string} code
1674
+ * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
1667
1675
  * @param {*} [options] Override http request option.
1668
1676
  * @throws {RequiredError}
1669
1677
  */
1670
- apiV1CountriesCountryIdLanguagesLanguageCodeGet: function (countryId, languageCode, options) {
1678
+ apiV1CountriesCountryIdLanguagesCodePost: function (countryId, code, saveCountryLanguageCommand, options) {
1671
1679
  return __awaiter(this, void 0, void 0, function () {
1672
1680
  var localVarAxiosArgs;
1673
1681
  return __generator(this, function (_a) {
1674
1682
  switch (_a.label) {
1675
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesLanguageCodeGet(countryId, languageCode, options)];
1683
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesCodePost(countryId, code, saveCountryLanguageCommand, options)];
1676
1684
  case 1:
1677
1685
  localVarAxiosArgs = _a.sent();
1678
1686
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -1682,19 +1690,21 @@ var CountriesApiFp = function (configuration) {
1682
1690
  },
1683
1691
  /**
1684
1692
  *
1685
- * @summary Add language into country language list (Auth policies: RequireManagerRole)
1693
+ * @summary Get languages list of country (Auth policies: RequireManagerRole)
1686
1694
  * @param {string} countryId
1687
- * @param {string} languageCode
1688
- * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
1695
+ * @param {string} [languageCode]
1696
+ * @param {number} [page]
1697
+ * @param {number} [limit]
1698
+ * @param {Date} [lastRetrieved]
1689
1699
  * @param {*} [options] Override http request option.
1690
1700
  * @throws {RequiredError}
1691
1701
  */
1692
- apiV1CountriesCountryIdLanguagesLanguageCodePost: function (countryId, languageCode, saveCountryLanguageCommand, options) {
1702
+ apiV1CountriesCountryIdLanguagesGet: function (countryId, languageCode, page, limit, lastRetrieved, options) {
1693
1703
  return __awaiter(this, void 0, void 0, function () {
1694
1704
  var localVarAxiosArgs;
1695
1705
  return __generator(this, function (_a) {
1696
1706
  switch (_a.label) {
1697
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesLanguageCodePost(countryId, languageCode, saveCountryLanguageCommand, options)];
1707
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdLanguagesGet(countryId, languageCode, page, limit, lastRetrieved, options)];
1698
1708
  case 1:
1699
1709
  localVarAxiosArgs = _a.sent();
1700
1710
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2101,50 +2111,52 @@ var CountriesApiFactory = function (configuration, basePath, axios) {
2101
2111
  },
2102
2112
  /**
2103
2113
  *
2104
- * @summary Get languages list of country (Auth policies: RequireManagerRole)
2114
+ * @summary Remove language from country language list (Auth policies: RequireManagerRole)
2105
2115
  * @param {string} countryId
2106
- * @param {number} [page]
2107
- * @param {number} [limit]
2108
- * @param {Date} [lastRetrieved]
2116
+ * @param {string} code
2109
2117
  * @param {*} [options] Override http request option.
2110
2118
  * @throws {RequiredError}
2111
2119
  */
2112
- apiV1CountriesCountryIdLanguagesGet: function (countryId, page, limit, lastRetrieved, options) {
2113
- return localVarFp.apiV1CountriesCountryIdLanguagesGet(countryId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
2120
+ apiV1CountriesCountryIdLanguagesCodeDelete: function (countryId, code, options) {
2121
+ return localVarFp.apiV1CountriesCountryIdLanguagesCodeDelete(countryId, code, options).then(function (request) { return request(axios, basePath); });
2114
2122
  },
2115
2123
  /**
2116
2124
  *
2117
- * @summary Remove language from country language list (Auth policies: RequireManagerRole)
2125
+ * @summary Get language of country (Auth policies: RequireManagerRole)
2118
2126
  * @param {string} countryId
2119
- * @param {string} languageCode
2127
+ * @param {string} code
2128
+ * @param {string} [languageCode] LanguageCode for selecting translation value
2120
2129
  * @param {*} [options] Override http request option.
2121
2130
  * @throws {RequiredError}
2122
2131
  */
2123
- apiV1CountriesCountryIdLanguagesLanguageCodeDelete: function (countryId, languageCode, options) {
2124
- return localVarFp.apiV1CountriesCountryIdLanguagesLanguageCodeDelete(countryId, languageCode, options).then(function (request) { return request(axios, basePath); });
2132
+ apiV1CountriesCountryIdLanguagesCodeGet: function (countryId, code, languageCode, options) {
2133
+ return localVarFp.apiV1CountriesCountryIdLanguagesCodeGet(countryId, code, languageCode, options).then(function (request) { return request(axios, basePath); });
2125
2134
  },
2126
2135
  /**
2127
2136
  *
2128
- * @summary Get language of country (Auth policies: RequireManagerRole)
2137
+ * @summary Add language into country language list (Auth policies: RequireManagerRole)
2129
2138
  * @param {string} countryId
2130
- * @param {string} languageCode
2139
+ * @param {string} code
2140
+ * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
2131
2141
  * @param {*} [options] Override http request option.
2132
2142
  * @throws {RequiredError}
2133
2143
  */
2134
- apiV1CountriesCountryIdLanguagesLanguageCodeGet: function (countryId, languageCode, options) {
2135
- return localVarFp.apiV1CountriesCountryIdLanguagesLanguageCodeGet(countryId, languageCode, options).then(function (request) { return request(axios, basePath); });
2144
+ apiV1CountriesCountryIdLanguagesCodePost: function (countryId, code, saveCountryLanguageCommand, options) {
2145
+ return localVarFp.apiV1CountriesCountryIdLanguagesCodePost(countryId, code, saveCountryLanguageCommand, options).then(function (request) { return request(axios, basePath); });
2136
2146
  },
2137
2147
  /**
2138
2148
  *
2139
- * @summary Add language into country language list (Auth policies: RequireManagerRole)
2149
+ * @summary Get languages list of country (Auth policies: RequireManagerRole)
2140
2150
  * @param {string} countryId
2141
- * @param {string} languageCode
2142
- * @param {SaveCountryLanguageCommand} [saveCountryLanguageCommand]
2151
+ * @param {string} [languageCode]
2152
+ * @param {number} [page]
2153
+ * @param {number} [limit]
2154
+ * @param {Date} [lastRetrieved]
2143
2155
  * @param {*} [options] Override http request option.
2144
2156
  * @throws {RequiredError}
2145
2157
  */
2146
- apiV1CountriesCountryIdLanguagesLanguageCodePost: function (countryId, languageCode, saveCountryLanguageCommand, options) {
2147
- return localVarFp.apiV1CountriesCountryIdLanguagesLanguageCodePost(countryId, languageCode, saveCountryLanguageCommand, options).then(function (request) { return request(axios, basePath); });
2158
+ apiV1CountriesCountryIdLanguagesGet: function (countryId, languageCode, page, limit, lastRetrieved, options) {
2159
+ return localVarFp.apiV1CountriesCountryIdLanguagesGet(countryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
2148
2160
  },
2149
2161
  /**
2150
2162
  *
@@ -2410,51 +2422,51 @@ var CountriesApi = /** @class */ (function (_super) {
2410
2422
  };
2411
2423
  /**
2412
2424
  *
2413
- * @summary Get languages list of country (Auth policies: RequireManagerRole)
2414
- * @param {CountriesApiApiV1CountriesCountryIdLanguagesGetRequest} requestParameters Request parameters.
2425
+ * @summary Remove language from country language list (Auth policies: RequireManagerRole)
2426
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesCodeDeleteRequest} requestParameters Request parameters.
2415
2427
  * @param {*} [options] Override http request option.
2416
2428
  * @throws {RequiredError}
2417
2429
  * @memberof CountriesApi
2418
2430
  */
2419
- CountriesApi.prototype.apiV1CountriesCountryIdLanguagesGet = function (requestParameters, options) {
2431
+ CountriesApi.prototype.apiV1CountriesCountryIdLanguagesCodeDelete = function (requestParameters, options) {
2420
2432
  var _this = this;
2421
- return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesGet(requestParameters.countryId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
2433
+ return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesCodeDelete(requestParameters.countryId, requestParameters.code, options).then(function (request) { return request(_this.axios, _this.basePath); });
2422
2434
  };
2423
2435
  /**
2424
2436
  *
2425
- * @summary Remove language from country language list (Auth policies: RequireManagerRole)
2426
- * @param {CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeDeleteRequest} requestParameters Request parameters.
2437
+ * @summary Get language of country (Auth policies: RequireManagerRole)
2438
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesCodeGetRequest} requestParameters Request parameters.
2427
2439
  * @param {*} [options] Override http request option.
2428
2440
  * @throws {RequiredError}
2429
2441
  * @memberof CountriesApi
2430
2442
  */
2431
- CountriesApi.prototype.apiV1CountriesCountryIdLanguagesLanguageCodeDelete = function (requestParameters, options) {
2443
+ CountriesApi.prototype.apiV1CountriesCountryIdLanguagesCodeGet = function (requestParameters, options) {
2432
2444
  var _this = this;
2433
- return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesLanguageCodeDelete(requestParameters.countryId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
2445
+ return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesCodeGet(requestParameters.countryId, requestParameters.code, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
2434
2446
  };
2435
2447
  /**
2436
2448
  *
2437
- * @summary Get language of country (Auth policies: RequireManagerRole)
2438
- * @param {CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodeGetRequest} requestParameters Request parameters.
2449
+ * @summary Add language into country language list (Auth policies: RequireManagerRole)
2450
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesCodePostRequest} requestParameters Request parameters.
2439
2451
  * @param {*} [options] Override http request option.
2440
2452
  * @throws {RequiredError}
2441
2453
  * @memberof CountriesApi
2442
2454
  */
2443
- CountriesApi.prototype.apiV1CountriesCountryIdLanguagesLanguageCodeGet = function (requestParameters, options) {
2455
+ CountriesApi.prototype.apiV1CountriesCountryIdLanguagesCodePost = function (requestParameters, options) {
2444
2456
  var _this = this;
2445
- return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesLanguageCodeGet(requestParameters.countryId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
2457
+ return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesCodePost(requestParameters.countryId, requestParameters.code, requestParameters.saveCountryLanguageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
2446
2458
  };
2447
2459
  /**
2448
2460
  *
2449
- * @summary Add language into country language list (Auth policies: RequireManagerRole)
2450
- * @param {CountriesApiApiV1CountriesCountryIdLanguagesLanguageCodePostRequest} requestParameters Request parameters.
2461
+ * @summary Get languages list of country (Auth policies: RequireManagerRole)
2462
+ * @param {CountriesApiApiV1CountriesCountryIdLanguagesGetRequest} requestParameters Request parameters.
2451
2463
  * @param {*} [options] Override http request option.
2452
2464
  * @throws {RequiredError}
2453
2465
  * @memberof CountriesApi
2454
2466
  */
2455
- CountriesApi.prototype.apiV1CountriesCountryIdLanguagesLanguageCodePost = function (requestParameters, options) {
2467
+ CountriesApi.prototype.apiV1CountriesCountryIdLanguagesGet = function (requestParameters, options) {
2456
2468
  var _this = this;
2457
- return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesLanguageCodePost(requestParameters.countryId, requestParameters.languageCode, requestParameters.saveCountryLanguageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
2469
+ return (0, exports.CountriesApiFp)(this.configuration).apiV1CountriesCountryIdLanguagesGet(requestParameters.countryId, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
2458
2470
  };
2459
2471
  /**
2460
2472
  *