nextemos 3.9.3 → 3.9.5
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.
|
@@ -61,25 +61,25 @@ exports.LocalizationService = {
|
|
|
61
61
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
62
62
|
});
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
AllByTagName: function (data, options) {
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
67
67
|
serviceUrl: this.ServiceUrl,
|
|
68
68
|
prefix: this.Prefix,
|
|
69
69
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
70
70
|
language: data === null || data === void 0 ? void 0 : data.language,
|
|
71
|
-
methodName: urls_1.default.Localization.
|
|
71
|
+
methodName: urls_1.default.Localization.AllByTagName,
|
|
72
72
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
73
73
|
});
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
AllByTagNameByLanguage: function (data, options) {
|
|
76
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
return yield (0, __1.fetchRequest)().get((0, urls_1.getUrl)({
|
|
78
78
|
serviceUrl: this.ServiceUrl,
|
|
79
79
|
prefix: this.Prefix,
|
|
80
80
|
isClient: options === null || options === void 0 ? void 0 : options.useClient,
|
|
81
81
|
language: data === null || data === void 0 ? void 0 : data.language,
|
|
82
|
-
methodName: urls_1.default.Localization.
|
|
82
|
+
methodName: urls_1.default.Localization.AllByTagNameByLanguage,
|
|
83
83
|
}), Object.assign(Object.assign({}, options), { params: data }));
|
|
84
84
|
});
|
|
85
85
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IApiResponse, ILocalizationAllResponse, ILocalizedTextResponse, IRequestInit } from '../..';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
2
|
+
export interface IAllByTagNameRequest {
|
|
3
|
+
tagName: string;
|
|
4
4
|
language?: string;
|
|
5
5
|
tags?: string[];
|
|
6
6
|
}
|
|
@@ -13,14 +13,14 @@ export interface IAllByLanguageRequest {
|
|
|
13
13
|
language: string;
|
|
14
14
|
tags?: string[];
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
17
|
-
|
|
16
|
+
export interface IAllByTagNameByLanguageRequest extends IAllByLanguageRequest {
|
|
17
|
+
tagName: string;
|
|
18
18
|
}
|
|
19
19
|
export interface ILocalizationService {
|
|
20
20
|
ServiceUrl: string;
|
|
21
21
|
Prefix: string;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
AllByTagName: (data: IAllByTagNameRequest, options?: IRequestInit) => Promise<IApiResponse<ILocalizationAllResponse>>;
|
|
23
|
+
AllByTagNameByLanguage: (data: IAllByTagNameByLanguageRequest, options?: IRequestInit) => Promise<IApiResponse<ILocalizationAllResponse>>;
|
|
24
24
|
All: (data?: {
|
|
25
25
|
tags?: string[];
|
|
26
26
|
language?: string;
|
package/dist/services/urls.d.ts
CHANGED
package/dist/services/urls.js
CHANGED
|
@@ -57,8 +57,8 @@ exports.default = {
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
Localization: {
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
AllByTagName: '/LocalizedText/v1/all/bytagname',
|
|
61
|
+
AllByTagNameByLanguage: '/LocalizedText/v1/{language}/all/bytagname',
|
|
62
62
|
All: '/LocalizedText/v1/all',
|
|
63
63
|
AllByLanguage: '/LocalizedText/v1/{language}/all',
|
|
64
64
|
LocalizedText: '/LocalizedText/v1/{language}',
|