@salesforce/ui-bundle 7.1.0 → 8.0.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.
|
@@ -35,12 +35,12 @@ const HIGH_REVENUE_ACCOUNTS_QUERY = (
|
|
|
35
35
|
);
|
|
36
36
|
async function getHighRevenueAccounts(variables) {
|
|
37
37
|
const data = await createDataSDK();
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
const errorMessages =
|
|
38
|
+
const result = await data.graphql.query({ query: HIGH_REVENUE_ACCOUNTS_QUERY, variables });
|
|
39
|
+
if (result.errors?.length) {
|
|
40
|
+
const errorMessages = result.errors.map((e) => e.message).join("; ");
|
|
41
41
|
throw new Error(`GraphQL Error: ${errorMessages}`);
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return result.data?.uiapi?.query?.Account?.edges?.map((edge) => edge?.node) || [];
|
|
44
44
|
}
|
|
45
45
|
export {
|
|
46
46
|
getHighRevenueAccounts
|
package/dist/package.json.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle",
|
|
3
3
|
"description": "Core package for Salesforce UI Bundles",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.1",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@salesforce/core": "^8.23.4",
|
|
47
|
-
"@salesforce/platform-sdk": "^
|
|
47
|
+
"@salesforce/platform-sdk": "^8.0.1",
|
|
48
48
|
"micromatch": "^4.0.8",
|
|
49
49
|
"path-to-regexp": "^8.3.0"
|
|
50
50
|
},
|