tradly 1.1.91 → 1.1.92
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/Roots/App.js +26 -0
- package/package.json +1 -1
package/Roots/App.js
CHANGED
|
@@ -1758,6 +1758,32 @@ class App {
|
|
|
1758
1758
|
return error;
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
|
+
async getUserAttributeValues(param = { bodyParam, authKey }) {
|
|
1762
|
+
let url =
|
|
1763
|
+
param.bodyParam == undefined || param.bodyParam == ""
|
|
1764
|
+
? ""
|
|
1765
|
+
: `?${serialization(param.bodyParam)}`;
|
|
1766
|
+
try {
|
|
1767
|
+
const [error, responseJson] = await network.networkCall({
|
|
1768
|
+
path:
|
|
1769
|
+
ATTRIBUTE +
|
|
1770
|
+
`/${param.id}` +
|
|
1771
|
+
"/user_attributes_values" +
|
|
1772
|
+
url,
|
|
1773
|
+
method: Method.GET,
|
|
1774
|
+
authKey: param.authKey,
|
|
1775
|
+
currency: param.currency,
|
|
1776
|
+
language: param.language,
|
|
1777
|
+
});
|
|
1778
|
+
if (error) {
|
|
1779
|
+
return error;
|
|
1780
|
+
} else {
|
|
1781
|
+
return responseJson;
|
|
1782
|
+
}
|
|
1783
|
+
} catch (error) {
|
|
1784
|
+
return error;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1761
1787
|
async getAttributesGrouped(param = { bodyParam, authKey }) {
|
|
1762
1788
|
let url =
|
|
1763
1789
|
param.bodyParam == undefined || param.bodyParam == ""
|