tradly 1.0.80 → 1.0.81
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/Constants/PathConstant.js +2 -0
- package/Roots/App.js +22 -0
- package/package.json +1 -1
|
@@ -88,3 +88,5 @@ export const LAYER = "/v1/layers";
|
|
|
88
88
|
|
|
89
89
|
export const CLIENTTRANSLATION_GROUPS = "/v1/client_translations/groups";
|
|
90
90
|
export const CLIENTTRANSLATION_VALUES = "/v1/client_translations/values";
|
|
91
|
+
export const CLIENTTRANSLATION_VALUES_GROUP =
|
|
92
|
+
"v1/client_translations/values_grouped";
|
package/Roots/App.js
CHANGED
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
TENANTLANGUAGES,
|
|
52
52
|
CLIENTTRANSLATION_GROUPS,
|
|
53
53
|
CLIENTTRANSLATION_VALUES,
|
|
54
|
+
CLIENTTRANSLATION_VALUES_GROUP,
|
|
54
55
|
} from "./../Constants/PathConstant.js";
|
|
55
56
|
import serialization from "../Helper/Serialization.js";
|
|
56
57
|
import { ImageConfig } from "../Helper/APIParam.js";
|
|
@@ -1938,6 +1939,27 @@ class App {
|
|
|
1938
1939
|
return error;
|
|
1939
1940
|
}
|
|
1940
1941
|
}
|
|
1942
|
+
|
|
1943
|
+
async getClientTranslationsValuesGroup(param = { bodyParam, authKey }) {
|
|
1944
|
+
let url =
|
|
1945
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
1946
|
+
? ""
|
|
1947
|
+
: `?${serialization(param.bodyParam)}`;
|
|
1948
|
+
try {
|
|
1949
|
+
const [error, responseJson] = await network.networkCall({
|
|
1950
|
+
path: CLIENTTRANSLATION_VALUES_GROUP + url,
|
|
1951
|
+
method: Method.GET,
|
|
1952
|
+
authKey: param.authKey,
|
|
1953
|
+
});
|
|
1954
|
+
if (error) {
|
|
1955
|
+
return error;
|
|
1956
|
+
} else {
|
|
1957
|
+
return responseJson;
|
|
1958
|
+
}
|
|
1959
|
+
} catch (error) {
|
|
1960
|
+
return error;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1941
1963
|
}
|
|
1942
1964
|
const app = new App();
|
|
1943
1965
|
export default app;
|