nextemos 4.10.2 → 4.10.3

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.
@@ -1,5 +1,7 @@
1
+ import { IRequestInit } from "./response";
1
2
  export interface IService {
2
3
  Namespace: string;
3
4
  ServiceUrl: () => string;
4
5
  Prefix: string;
6
+ Url: (methodName: string, options?: IRequestInit, language?: string) => string;
5
7
  }
@@ -1,6 +1,11 @@
1
1
  import { TotalTypes } from "nextemos/enums";
2
2
  import { IAddress } from "./address";
3
3
  import { IResponse } from "./response";
4
+ export interface ITransactionResponse extends IResponse {
5
+ orderNo: string;
6
+ isCompleted: boolean;
7
+ requiredForCompletion: boolean;
8
+ }
4
9
  export interface IGetCartResponse extends IResponse {
5
10
  cart: ICart;
6
11
  isUpdated: boolean;
@@ -14,10 +19,9 @@ export interface IGetCartResponse extends IResponse {
14
19
  export interface IGetCartItemCountResponse extends IResponse {
15
20
  count: number;
16
21
  }
17
- export interface IDoTransferTransactionResponse extends IResponse {
18
- orderNo: string;
19
- isCompleted: boolean;
20
- requiredForCompletion: boolean;
22
+ export interface IDoTransferTransactionResponse extends ITransactionResponse {
23
+ }
24
+ export interface IDoCreditCardTransactionResponse extends ITransactionResponse {
21
25
  }
22
26
  export interface IGetInstallmentOptionsResponse extends IResponse {
23
27
  installmentOptions: IInstallmentOption[];
@@ -1,2 +1,2 @@
1
- import { IAddressService } from './address.types';
1
+ import { IAddressService } from "./address.types";
2
2
  export declare const AddressService: IAddressService;
@@ -37,29 +37,20 @@ const urls_1 = __importStar(require("../urls"));
37
37
  const __1 = require("../..");
38
38
  // Address Servisi
39
39
  exports.AddressService = {
40
- Namespace: process.env.MS_NAMESPACE || 'emosv2service',
41
- ServiceUrl: function () {
42
- return `http://address.${this.Namespace}.svc.cluster.local`;
43
- },
44
- Prefix: '/api/address',
45
- AddressSourceData: function (data, options) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
48
- serviceUrl: this.ServiceUrl(),
49
- prefix: this.Prefix,
50
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
51
- methodName: urls_1.default.Address.AddressSourceData.All,
52
- }), Object.assign(Object.assign({}, options), { params: data }));
53
- });
54
- },
55
- AddressSchema: function (data, options) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
58
- serviceUrl: this.ServiceUrl(),
59
- prefix: this.Prefix,
60
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
61
- methodName: urls_1.default.Address.AddressSchemaForTenants.All,
62
- }), Object.assign(Object.assign({}, options), { params: data }));
63
- });
64
- },
40
+ Namespace: process.env.MS_NAMESPACE || "emosv2service",
41
+ ServiceUrl: () => `http://address.${exports.AddressService.Namespace}.svc.cluster.local`,
42
+ Prefix: "/api/address",
43
+ Url: (methodName, options, language) => (0, urls_1.getUrl)({
44
+ serviceUrl: exports.AddressService.ServiceUrl(),
45
+ prefix: exports.AddressService.Prefix,
46
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
47
+ language,
48
+ methodName,
49
+ }),
50
+ AddressSourceData: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
51
+ return (0, __1.fetchRequest)().get(exports.AddressService.Url(urls_1.default.Address.AddressSourceData.All, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
52
+ }),
53
+ AddressSchema: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
54
+ return (0, __1.fetchRequest)().get(exports.AddressService.Url(urls_1.default.Address.AddressSchemaForTenants.All, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
55
+ }),
65
56
  };
@@ -35,66 +35,30 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.BannerService = void 0;
36
36
  const urls_1 = __importStar(require("../urls"));
37
37
  const __1 = require("../..");
38
- // Banner servisi, banner ve banner konteyner verilerini alır.
39
38
  exports.BannerService = {
40
39
  Namespace: process.env.MS_NAMESPACE || 'emosv2service',
41
- ServiceUrl: function () {
42
- return `http://banner.${this.Namespace}.svc.cluster.local`;
43
- },
40
+ ServiceUrl: () => `http://banner.${exports.BannerService.Namespace}.svc.cluster.local`,
44
41
  Prefix: '/api/banner',
45
- GetBannerById: function (data, options) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
48
- serviceUrl: this.ServiceUrl(),
49
- prefix: this.Prefix,
50
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
51
- language: data === null || data === void 0 ? void 0 : data.language,
52
- methodName: urls_1.default.Banner.GetBannerById,
53
- }), Object.assign(Object.assign({}, options), { params: data }));
54
- });
55
- },
56
- GetBannerByName: function (data, options) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
59
- serviceUrl: this.ServiceUrl(),
60
- prefix: this.Prefix,
61
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
62
- language: data === null || data === void 0 ? void 0 : data.language,
63
- methodName: urls_1.default.Banner.GetBannerByName,
64
- }), Object.assign(Object.assign({}, options), { params: data }));
65
- });
66
- },
67
- GetBannerByKey: function (data, options) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
70
- serviceUrl: this.ServiceUrl(),
71
- prefix: this.Prefix,
72
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
73
- language: data === null || data === void 0 ? void 0 : data.language,
74
- methodName: urls_1.default.Banner.GetBannerByKey,
75
- }), Object.assign(Object.assign({}, options), { params: data }));
76
- });
77
- },
78
- GetBannerList: function (data, options) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
81
- serviceUrl: this.ServiceUrl(),
82
- prefix: this.Prefix,
83
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
84
- language: data === null || data === void 0 ? void 0 : data.language,
85
- methodName: urls_1.default.Banner.GetBannerList,
86
- }), Object.assign(Object.assign({}, options), { params: data }));
87
- });
88
- },
89
- GetBannerContainerList: function (data, options) {
90
- return __awaiter(this, void 0, void 0, function* () {
91
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
92
- serviceUrl: this.ServiceUrl(),
93
- prefix: this.Prefix,
94
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
95
- language: data === null || data === void 0 ? void 0 : data.language,
96
- methodName: urls_1.default.Banner.GetBannerContainerList,
97
- }), Object.assign(Object.assign({}, options), { params: data }));
98
- });
99
- },
42
+ Url: (methodName, options, language) => (0, urls_1.getUrl)({
43
+ serviceUrl: exports.BannerService.ServiceUrl(),
44
+ prefix: exports.BannerService.Prefix,
45
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
46
+ language,
47
+ methodName,
48
+ }),
49
+ GetBannerById: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
50
+ return (0, __1.fetchRequest)().get(exports.BannerService.Url(urls_1.default.Banner.GetBannerById, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
51
+ }),
52
+ GetBannerByName: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
53
+ return (0, __1.fetchRequest)().get(exports.BannerService.Url(urls_1.default.Banner.GetBannerByName, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
54
+ }),
55
+ GetBannerByKey: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
56
+ return (0, __1.fetchRequest)().get(exports.BannerService.Url(urls_1.default.Banner.GetBannerByKey, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
57
+ }),
58
+ GetBannerList: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
59
+ return (0, __1.fetchRequest)().get(exports.BannerService.Url(urls_1.default.Banner.GetBannerList, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
60
+ }),
61
+ GetBannerContainerList: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
62
+ return (0, __1.fetchRequest)().get(exports.BannerService.Url(urls_1.default.Banner.GetBannerContainerList, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
63
+ }),
100
64
  };
@@ -35,99 +35,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.BlogService = void 0;
36
36
  const urls_1 = __importStar(require("../urls"));
37
37
  const __1 = require("../..");
38
- // BlogService adlı nesneyi oluşturur ve IBlogService arayüzünü uygular
39
38
  exports.BlogService = {
40
39
  Namespace: process.env.MS_NAMESPACE || 'emosv2service',
41
- ServiceUrl: function () {
42
- return `http://blog.${this.Namespace}.svc.cluster.local`;
43
- },
40
+ ServiceUrl: () => `http://blog.${exports.BlogService.Namespace}.svc.cluster.local`,
44
41
  Prefix: '/api/blog',
45
- GetBlogPostsRequest: function () {
46
- return __awaiter(this, arguments, void 0, function* (data = {}, options) {
47
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
48
- serviceUrl: this.ServiceUrl(),
49
- prefix: this.Prefix,
50
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
51
- language: data === null || data === void 0 ? void 0 : data.language,
52
- methodName: urls_1.default.Blog.GetBlogPostsRequest,
53
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
54
- });
55
- },
56
- GetBlogPostRequest: function (data, options) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
59
- serviceUrl: this.ServiceUrl(),
60
- prefix: this.Prefix,
61
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
62
- language: data === null || data === void 0 ? void 0 : data.language,
63
- methodName: urls_1.default.Blog.GetBlogPostRequest,
64
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
65
- });
66
- },
67
- GetBlogCategoriesRequest: function () {
68
- return __awaiter(this, arguments, void 0, function* (data = {}, options) {
69
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
70
- serviceUrl: this.ServiceUrl(),
71
- prefix: this.Prefix,
72
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
73
- language: data === null || data === void 0 ? void 0 : data.language,
74
- methodName: urls_1.default.Blog.GetBlogCategoriesRequest,
75
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
76
- });
77
- },
78
- GetBlogCategoryRequest: function (data, options) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
81
- serviceUrl: this.ServiceUrl(),
82
- prefix: this.Prefix,
83
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
84
- language: data === null || data === void 0 ? void 0 : data.language,
85
- methodName: urls_1.default.Blog.GetBlogCategoryRequest,
86
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
87
- });
88
- },
89
- GetBlogCategoryHierarchyRequest: function (data, options) {
90
- return __awaiter(this, void 0, void 0, function* () {
91
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
92
- serviceUrl: this.ServiceUrl(),
93
- prefix: this.Prefix,
94
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
95
- language: data === null || data === void 0 ? void 0 : data.language,
96
- methodName: urls_1.default.Blog.GetBlogCategoryHierarchyRequest,
97
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
98
- });
99
- },
100
- GetBlogCategoryTreeRequest: function (data, options) {
101
- return __awaiter(this, void 0, void 0, function* () {
102
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
103
- serviceUrl: this.ServiceUrl(),
104
- prefix: this.Prefix,
105
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
106
- language: data === null || data === void 0 ? void 0 : data.language,
107
- methodName: urls_1.default.Blog.GetBlogCategoryTreeRequest,
108
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
109
- });
110
- },
111
- GetBlogTagRequest: function (data, options) {
112
- return __awaiter(this, void 0, void 0, function* () {
113
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
114
- serviceUrl: this.ServiceUrl(),
115
- prefix: this.Prefix,
116
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
117
- language: data === null || data === void 0 ? void 0 : data.language,
118
- methodName: urls_1.default.Blog.GetBlogTagRequest,
119
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
120
- });
121
- },
122
- GetBlogTagsRequest: function (data, options) {
123
- return __awaiter(this, void 0, void 0, function* () {
124
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
125
- serviceUrl: this.ServiceUrl(),
126
- prefix: this.Prefix,
127
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
128
- language: data === null || data === void 0 ? void 0 : data.language,
129
- methodName: urls_1.default.Blog.GetBlogTagsRequest,
130
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
131
- });
132
- },
42
+ Url: (methodName, options, language) => (0, urls_1.getUrl)({
43
+ serviceUrl: exports.BlogService.ServiceUrl(),
44
+ prefix: exports.BlogService.Prefix,
45
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
46
+ language,
47
+ methodName,
48
+ }),
49
+ GetBlogPostsRequest: (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (data = {}, options) {
50
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogPostsRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
51
+ }),
52
+ GetBlogPostRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
53
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogPostRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
54
+ }),
55
+ GetBlogCategoriesRequest: (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (data = {}, options) {
56
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogCategoriesRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
57
+ }),
58
+ GetBlogCategoryRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
59
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogCategoryRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
60
+ }),
61
+ GetBlogCategoryHierarchyRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
62
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogCategoryHierarchyRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
63
+ }),
64
+ GetBlogCategoryTreeRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
65
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogCategoryTreeRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
66
+ }),
67
+ GetBlogTagRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
68
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogTagRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
69
+ }),
70
+ GetBlogTagsRequest: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
71
+ return (0, __1.fetchRequest)().post(exports.BlogService.Url(urls_1.default.Blog.GetBlogTagsRequest, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
72
+ }),
133
73
  };
@@ -35,44 +35,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.EnvironmentService = void 0;
36
36
  const urls_1 = __importStar(require("../urls"));
37
37
  const __1 = require("../..");
38
- // Environment servisi
39
38
  exports.EnvironmentService = {
40
39
  Namespace: process.env.MS_NAMESPACE || 'emosv2service',
41
- ServiceUrl: function () {
42
- return `http://environment.${this.Namespace}.svc.cluster.local`;
43
- },
40
+ ServiceUrl: () => `http://environment.${exports.EnvironmentService.Namespace}.svc.cluster.local`,
44
41
  Prefix: '/api/environment',
45
- Init: function (data, options) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
48
- serviceUrl: this.ServiceUrl(),
49
- prefix: this.Prefix,
50
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
51
- language: data === null || data === void 0 ? void 0 : data.language,
52
- methodName: urls_1.default.Environment.Init,
53
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
54
- });
55
- },
56
- Read: function (data, options) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
59
- serviceUrl: this.ServiceUrl(),
60
- prefix: this.Prefix,
61
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
62
- language: data === null || data === void 0 ? void 0 : data.language,
63
- methodName: urls_1.default.Environment.Read,
64
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
65
- });
66
- },
67
- Update: function (data, options) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- return yield (0, __1.fetchRequest)().post((0, urls_1.getUrl)({
70
- serviceUrl: this.ServiceUrl(),
71
- prefix: this.Prefix,
72
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
73
- language: data === null || data === void 0 ? void 0 : data.language,
74
- methodName: urls_1.default.Environment.Update,
75
- }), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
76
- });
77
- },
42
+ Url: (methodName, options, language) => (0, urls_1.getUrl)({
43
+ serviceUrl: exports.EnvironmentService.ServiceUrl(),
44
+ prefix: exports.EnvironmentService.Prefix,
45
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
46
+ language,
47
+ methodName,
48
+ }),
49
+ Init: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
50
+ return (0, __1.fetchRequest)().post(exports.EnvironmentService.Url(urls_1.default.Environment.Init, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
51
+ }),
52
+ Read: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
53
+ return (0, __1.fetchRequest)().post(exports.EnvironmentService.Url(urls_1.default.Environment.Read, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
54
+ }),
55
+ Update: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
56
+ return (0, __1.fetchRequest)().post(exports.EnvironmentService.Url(urls_1.default.Environment.Update, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { body: JSON.stringify(data) }));
57
+ }),
78
58
  };
@@ -38,63 +38,28 @@ const __1 = require("../..");
38
38
  // Route servisi, Common page, redirects, rewrite ve content pageler ile ilgili servis.
39
39
  exports.LocalizationService = {
40
40
  Namespace: process.env.MS_NAMESPACE || 'emosv2service',
41
- ServiceUrl: function () {
42
- return `http://localization.${this.Namespace}.svc.cluster.local`;
43
- },
41
+ ServiceUrl: () => `http://localization.${exports.LocalizationService.Namespace}.svc.cluster.local`,
44
42
  Prefix: '/api/localization',
45
- All: function () {
46
- return __awaiter(this, arguments, void 0, function* (data = {}, options) {
47
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
48
- serviceUrl: this.ServiceUrl(),
49
- prefix: this.Prefix,
50
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
51
- language: data === null || data === void 0 ? void 0 : data.language,
52
- methodName: urls_1.default.Localization.All,
53
- }), Object.assign(Object.assign({}, options), { params: data }));
54
- });
55
- },
56
- AllByLanguage: function (data, options) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
59
- serviceUrl: this.ServiceUrl(),
60
- prefix: this.Prefix,
61
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
62
- language: data === null || data === void 0 ? void 0 : data.language,
63
- methodName: urls_1.default.Localization.AllByLanguage,
64
- }), Object.assign(Object.assign({}, options), { params: data }));
65
- });
66
- },
67
- AllByTagName: function (data, options) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
70
- serviceUrl: this.ServiceUrl(),
71
- prefix: this.Prefix,
72
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
73
- language: data === null || data === void 0 ? void 0 : data.language,
74
- methodName: urls_1.default.Localization.AllByTagName,
75
- }), Object.assign(Object.assign({}, options), { params: data }));
76
- });
77
- },
78
- AllByTagNameByLanguage: function (data, options) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
81
- serviceUrl: this.ServiceUrl(),
82
- prefix: this.Prefix,
83
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
84
- language: data === null || data === void 0 ? void 0 : data.language,
85
- methodName: urls_1.default.Localization.AllByTagNameByLanguage,
86
- }), Object.assign(Object.assign({}, options), { params: data }));
87
- });
88
- },
89
- LocalizedText: function (data, options) {
90
- return __awaiter(this, void 0, void 0, function* () {
91
- return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
92
- serviceUrl: this.ServiceUrl(),
93
- prefix: this.Prefix,
94
- isClient: options === null || options === void 0 ? void 0 : options.useClient,
95
- language: data === null || data === void 0 ? void 0 : data.language,
96
- methodName: urls_1.default.Localization.LocalizedText,
97
- }), Object.assign(Object.assign({}, options), { params: data }));
98
- });
99
- },
43
+ Url: (methodName, options, language) => (0, urls_1.getUrl)({
44
+ serviceUrl: exports.LocalizationService.ServiceUrl(),
45
+ prefix: exports.LocalizationService.Prefix,
46
+ isClient: options === null || options === void 0 ? void 0 : options.useClient,
47
+ language,
48
+ methodName,
49
+ }),
50
+ All: (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (data = {}, options) {
51
+ return (0, __1.fetchRequest)().get(exports.LocalizationService.Url(urls_1.default.Localization.All, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
52
+ }),
53
+ AllByLanguage: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
54
+ return (0, __1.fetchRequest)().get(exports.LocalizationService.Url(urls_1.default.Localization.AllByLanguage, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
55
+ }),
56
+ AllByTagName: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
57
+ return (0, __1.fetchRequest)().get(exports.LocalizationService.Url(urls_1.default.Localization.AllByTagName, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
58
+ }),
59
+ AllByTagNameByLanguage: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
60
+ return (0, __1.fetchRequest)().get(exports.LocalizationService.Url(urls_1.default.Localization.AllByTagNameByLanguage, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
61
+ }),
62
+ LocalizedText: (data, options) => __awaiter(void 0, void 0, void 0, function* () {
63
+ return (0, __1.fetchRequest)().get(exports.LocalizationService.Url(urls_1.default.Localization.LocalizedText, options, data === null || data === void 0 ? void 0 : data.language), Object.assign(Object.assign({}, options), { params: data }));
64
+ }),
100
65
  };