@salesforce/webapp-template-base-react-app-experimental 1.58.1 → 1.58.2
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/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/src/force-app/main/default/webapplications/base-react-app/src/api/graphql-operations-types.ts +0 -116
- package/src/force-app/main/default/webapplications/base-react-app/src/api/utils/accounts.ts +0 -41
- package/src/force-app/main/default/webapplications/base-react-app/src/api/utils/query/highRevenueAccountsQuery.graphql +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.58.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.58.1...v1.58.2) (2026-02-26)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- moving all sdk usages from api to sdk-data @W-21338965 ([#173](https://github.com/salesforce-experience-platform-emu/webapps/issues/173)) ([23c9479](https://github.com/salesforce-experience-platform-emu/webapps/commit/23c94794e0c72e30d85313f908b52274e4a59979))
|
|
11
|
+
|
|
6
12
|
## [1.58.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.58.0...v1.58.1) (2026-02-26)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @salesforce/webapp-template-base-react-app-experimental
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-base-react-app-experimental",
|
|
3
|
-
"version": "1.58.
|
|
3
|
+
"version": "1.58.2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"test:coverage": "npm run test",
|
|
16
16
|
"test:e2e": "cd src/force-app/main/default/webapplications/base-react-app && rm -rf node_modules && npm install && npx playwright install chromium && npm run build:e2e && npx playwright test"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "0dda7fdd05f5b8fd9870e57cc796663555166a90"
|
|
19
19
|
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
export type Maybe<T> = T | null;
|
|
2
|
-
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
-
export type Exact<T extends { [key: string]: unknown }> = {
|
|
4
|
-
[K in keyof T]: T[K];
|
|
5
|
-
};
|
|
6
|
-
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
7
|
-
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
8
|
-
};
|
|
9
|
-
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
-
[SubKey in K]: Maybe<T[SubKey]>;
|
|
11
|
-
};
|
|
12
|
-
export type MakeEmpty<
|
|
13
|
-
T extends { [key: string]: unknown },
|
|
14
|
-
K extends keyof T,
|
|
15
|
-
> = { [_ in K]?: never };
|
|
16
|
-
export type Incremental<T> =
|
|
17
|
-
| T
|
|
18
|
-
| {
|
|
19
|
-
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
20
|
-
};
|
|
21
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
22
|
-
export type Scalars = {
|
|
23
|
-
ID: { input: string; output: string };
|
|
24
|
-
String: { input: string; output: string };
|
|
25
|
-
Boolean: { input: boolean; output: boolean };
|
|
26
|
-
Int: { input: number; output: number };
|
|
27
|
-
Float: { input: number; output: number };
|
|
28
|
-
Base64: { input: string; output: string };
|
|
29
|
-
Currency: { input: number | string; output: number };
|
|
30
|
-
Date: { input: string; output: string };
|
|
31
|
-
DateTime: { input: string; output: string };
|
|
32
|
-
Double: { input: number | string; output: number };
|
|
33
|
-
Email: { input: string; output: string };
|
|
34
|
-
EncryptedString: { input: string; output: string };
|
|
35
|
-
/** Can be set to an ID or a Reference to the result of another mutation operation. */
|
|
36
|
-
IdOrRef: { input: string; output: string };
|
|
37
|
-
Latitude: { input: number | string; output: number };
|
|
38
|
-
/** A 64-bit signed integer */
|
|
39
|
-
Long: { input: number; output: number };
|
|
40
|
-
LongTextArea: { input: string; output: string };
|
|
41
|
-
Longitude: { input: number | string; output: number };
|
|
42
|
-
MultiPicklist: { input: string; output: string };
|
|
43
|
-
Percent: { input: number | string; output: number };
|
|
44
|
-
PhoneNumber: { input: string; output: string };
|
|
45
|
-
Picklist: { input: string; output: string };
|
|
46
|
-
RichTextArea: { input: string; output: string };
|
|
47
|
-
TextArea: { input: string; output: string };
|
|
48
|
-
Time: { input: string; output: string };
|
|
49
|
-
Url: { input: string; output: string };
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export enum DataType {
|
|
53
|
-
Address = 'ADDRESS',
|
|
54
|
-
Anytype = 'ANYTYPE',
|
|
55
|
-
Base64 = 'BASE64',
|
|
56
|
-
Boolean = 'BOOLEAN',
|
|
57
|
-
Combobox = 'COMBOBOX',
|
|
58
|
-
Complexvalue = 'COMPLEXVALUE',
|
|
59
|
-
Currency = 'CURRENCY',
|
|
60
|
-
Date = 'DATE',
|
|
61
|
-
Datetime = 'DATETIME',
|
|
62
|
-
Double = 'DOUBLE',
|
|
63
|
-
Email = 'EMAIL',
|
|
64
|
-
Encryptedstring = 'ENCRYPTEDSTRING',
|
|
65
|
-
Int = 'INT',
|
|
66
|
-
Json = 'JSON',
|
|
67
|
-
Junctionidlist = 'JUNCTIONIDLIST',
|
|
68
|
-
Location = 'LOCATION',
|
|
69
|
-
Long = 'LONG',
|
|
70
|
-
Multipicklist = 'MULTIPICKLIST',
|
|
71
|
-
Percent = 'PERCENT',
|
|
72
|
-
Phone = 'PHONE',
|
|
73
|
-
Picklist = 'PICKLIST',
|
|
74
|
-
Reference = 'REFERENCE',
|
|
75
|
-
String = 'STRING',
|
|
76
|
-
Textarea = 'TEXTAREA',
|
|
77
|
-
Time = 'TIME',
|
|
78
|
-
Url = 'URL',
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export enum FieldExtraTypeInfo {
|
|
82
|
-
ExternalLookup = 'EXTERNAL_LOOKUP',
|
|
83
|
-
ImageUrl = 'IMAGE_URL',
|
|
84
|
-
IndirectLookup = 'INDIRECT_LOOKUP',
|
|
85
|
-
Personname = 'PERSONNAME',
|
|
86
|
-
Plaintextarea = 'PLAINTEXTAREA',
|
|
87
|
-
Richtextarea = 'RICHTEXTAREA',
|
|
88
|
-
SwitchablePersonname = 'SWITCHABLE_PERSONNAME',
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export enum ResultOrder {
|
|
92
|
-
Asc = 'ASC',
|
|
93
|
-
Desc = 'DESC',
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type GetHighRevenueAccountsQueryVariables = Exact<{
|
|
97
|
-
minRevenue?: InputMaybe<Scalars['Currency']['input']>;
|
|
98
|
-
}>;
|
|
99
|
-
|
|
100
|
-
export type GetHighRevenueAccountsQuery = {
|
|
101
|
-
uiapi: {
|
|
102
|
-
query: {
|
|
103
|
-
Account?: {
|
|
104
|
-
edges?: Array<{
|
|
105
|
-
node?: {
|
|
106
|
-
Id: string;
|
|
107
|
-
Name?: { value?: string | null } | null;
|
|
108
|
-
AnnualRevenue?: { value?: number | null } | null;
|
|
109
|
-
Industry?: { value?: string | null } | null;
|
|
110
|
-
Website?: { value?: string | null } | null;
|
|
111
|
-
} | null;
|
|
112
|
-
} | null> | null;
|
|
113
|
-
} | null;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { getDataSDK } from '@salesforce/webapp-experimental/api';
|
|
2
|
-
import HIGH_REVENUE_ACCOUNTS_QUERY from './query/highRevenueAccountsQuery.graphql?raw';
|
|
3
|
-
import type {
|
|
4
|
-
GetHighRevenueAccountsQuery,
|
|
5
|
-
GetHighRevenueAccountsQueryVariables,
|
|
6
|
-
} from '../graphql-operations-types';
|
|
7
|
-
|
|
8
|
-
type AccountNode = NonNullable<
|
|
9
|
-
NonNullable<
|
|
10
|
-
NonNullable<
|
|
11
|
-
NonNullable<
|
|
12
|
-
GetHighRevenueAccountsQuery['uiapi']['query']['Account']
|
|
13
|
-
>['edges']
|
|
14
|
-
>[number]
|
|
15
|
-
>['node']
|
|
16
|
-
>;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Fetch accounts with annual revenue greater than the specified amount
|
|
20
|
-
*
|
|
21
|
-
* @param minRevenue - Minimum annual revenue threshold (default: 100000)
|
|
22
|
-
* @returns Array of accounts matching the criteria
|
|
23
|
-
*/
|
|
24
|
-
export async function getHighRevenueAccounts(
|
|
25
|
-
variables: GetHighRevenueAccountsQueryVariables
|
|
26
|
-
): Promise<(AccountNode | null | undefined)[]> {
|
|
27
|
-
const data = await getDataSDK();
|
|
28
|
-
const response = await data.graphql?.<
|
|
29
|
-
GetHighRevenueAccountsQuery,
|
|
30
|
-
GetHighRevenueAccountsQueryVariables
|
|
31
|
-
>(HIGH_REVENUE_ACCOUNTS_QUERY, variables);
|
|
32
|
-
|
|
33
|
-
if (response?.errors?.length) {
|
|
34
|
-
const errorMessages = response.errors.map(e => e.message).join('; ');
|
|
35
|
-
throw new Error(`GraphQL Error: ${errorMessages}`);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return (
|
|
39
|
-
response?.data?.uiapi?.query?.Account?.edges?.map(edge => edge?.node) || []
|
|
40
|
-
);
|
|
41
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
query GetHighRevenueAccounts($minRevenue: Currency) {
|
|
2
|
-
uiapi {
|
|
3
|
-
query {
|
|
4
|
-
Account(
|
|
5
|
-
where: { AnnualRevenue: { gt: $minRevenue } }
|
|
6
|
-
orderBy: { AnnualRevenue: { order: DESC } }
|
|
7
|
-
first: 50
|
|
8
|
-
) {
|
|
9
|
-
edges {
|
|
10
|
-
node {
|
|
11
|
-
Id
|
|
12
|
-
Name {
|
|
13
|
-
value
|
|
14
|
-
}
|
|
15
|
-
AnnualRevenue {
|
|
16
|
-
value
|
|
17
|
-
}
|
|
18
|
-
Industry {
|
|
19
|
-
value
|
|
20
|
-
}
|
|
21
|
-
Website {
|
|
22
|
-
value
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|