@salesforce/ui-bundle 1.117.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.
Files changed (68) hide show
  1. package/LICENSE.txt +82 -0
  2. package/README.md +3 -0
  3. package/dist/api/clients.d.ts +22 -0
  4. package/dist/api/clients.d.ts.map +1 -0
  5. package/dist/api/clients.js +84 -0
  6. package/dist/api/graphql-operations-types.d.ts +225 -0
  7. package/dist/api/graphql-operations-types.d.ts.map +1 -0
  8. package/dist/api/index.d.ts +10 -0
  9. package/dist/api/index.d.ts.map +1 -0
  10. package/dist/api/index.js +13 -0
  11. package/dist/api/utils/accounts.d.ts +33 -0
  12. package/dist/api/utils/accounts.d.ts.map +1 -0
  13. package/dist/api/utils/accounts.js +47 -0
  14. package/dist/api/utils/records.d.ts +16 -0
  15. package/dist/api/utils/records.d.ts.map +1 -0
  16. package/dist/api/utils/records.js +26 -0
  17. package/dist/api/utils/user.d.ts +17 -0
  18. package/dist/api/utils/user.d.ts.map +1 -0
  19. package/dist/api/utils/user.js +25 -0
  20. package/dist/app/index.d.ts +10 -0
  21. package/dist/app/index.d.ts.map +1 -0
  22. package/dist/app/index.js +7 -0
  23. package/dist/app/manifest.d.ts +34 -0
  24. package/dist/app/manifest.d.ts.map +1 -0
  25. package/dist/app/manifest.js +28 -0
  26. package/dist/app/org.d.ts +28 -0
  27. package/dist/app/org.d.ts.map +1 -0
  28. package/dist/app/org.js +67 -0
  29. package/dist/design/design-mode-interactions.js +761 -0
  30. package/dist/design/index.d.ts +12 -0
  31. package/dist/design/index.d.ts.map +1 -0
  32. package/dist/design/index.js +14 -0
  33. package/dist/design/interactions/communicationManager.d.ts +25 -0
  34. package/dist/design/interactions/communicationManager.d.ts.map +1 -0
  35. package/dist/design/interactions/componentMatcher.d.ts +43 -0
  36. package/dist/design/interactions/componentMatcher.d.ts.map +1 -0
  37. package/dist/design/interactions/editableManager.d.ts +25 -0
  38. package/dist/design/interactions/editableManager.d.ts.map +1 -0
  39. package/dist/design/interactions/eventHandlers.d.ts +40 -0
  40. package/dist/design/interactions/eventHandlers.d.ts.map +1 -0
  41. package/dist/design/interactions/index.d.ts +7 -0
  42. package/dist/design/interactions/index.d.ts.map +1 -0
  43. package/dist/design/interactions/interactionsController.d.ts +36 -0
  44. package/dist/design/interactions/interactionsController.d.ts.map +1 -0
  45. package/dist/design/interactions/styleManager.d.ts +49 -0
  46. package/dist/design/interactions/styleManager.d.ts.map +1 -0
  47. package/dist/design/interactions/utils/cssUtils.d.ts +54 -0
  48. package/dist/design/interactions/utils/cssUtils.d.ts.map +1 -0
  49. package/dist/design/interactions/utils/sourceUtils.d.ts +36 -0
  50. package/dist/design/interactions/utils/sourceUtils.d.ts.map +1 -0
  51. package/dist/index.d.ts +10 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +25 -0
  54. package/dist/package.json.js +4 -0
  55. package/dist/proxy/handler.d.ts +38 -0
  56. package/dist/proxy/handler.d.ts.map +1 -0
  57. package/dist/proxy/handler.js +530 -0
  58. package/dist/proxy/index.d.ts +8 -0
  59. package/dist/proxy/index.d.ts.map +1 -0
  60. package/dist/proxy/index.js +7 -0
  61. package/dist/proxy/livePreviewScript.d.ts +21 -0
  62. package/dist/proxy/livePreviewScript.d.ts.map +1 -0
  63. package/dist/proxy/livePreviewScript.js +16 -0
  64. package/dist/proxy/routing.d.ts +35 -0
  65. package/dist/proxy/routing.d.ts.map +1 -0
  66. package/dist/proxy/routing.js +83 -0
  67. package/dist/proxy/templates/livePreviewScript.js +553 -0
  68. package/package.json +65 -0
package/LICENSE.txt ADDED
@@ -0,0 +1,82 @@
1
+ Terms of Use
2
+
3
+ Copyright 2026 Salesforce, Inc. All rights reserved.
4
+
5
+ These Terms of Use govern the download, installation, and/or use of this
6
+ software provided by Salesforce, Inc. ("Salesforce") (the "Software"), were
7
+ last updated on April 15, 2025, and constitute a legally binding
8
+ agreement between you and Salesforce. If you do not agree to these Terms of
9
+ Use, do not install or use the Software.
10
+
11
+ Salesforce grants you a worldwide, non-exclusive, no-charge, royalty-free
12
+ copyright license to reproduce, prepare derivative works of, publicly
13
+ display, publicly perform, sublicense, and distribute the Software and
14
+ derivative works subject to these Terms. These Terms shall be included in
15
+ all copies or substantial portions of the Software.
16
+
17
+ Subject to the limited rights expressly granted hereunder, Salesforce
18
+ reserves all rights, title, and interest in and to all intellectual
19
+ property subsisting in the Software. No rights are granted to you hereunder
20
+ other than as expressly set forth herein. Users residing in countries on
21
+ the United States Office of Foreign Assets Control sanction list, or which
22
+ are otherwise subject to a US export embargo, may not use the Software.
23
+
24
+ Implementation of the Software may require development work, for which you
25
+ are responsible. The Software may contain bugs, errors and
26
+ incompatibilities and is made available on an AS IS basis without support,
27
+ updates, or service level commitments.
28
+
29
+ Salesforce reserves the right at any time to modify, suspend, or
30
+ discontinue, the Software (or any part thereof) with or without notice. You
31
+ agree that Salesforce shall not be liable to you or to any third party for
32
+ any modification, suspension, or discontinuance.
33
+
34
+ You agree to defend Salesforce against any claim, demand, suit or
35
+ proceeding made or brought against Salesforce by a third party arising out
36
+ of or accruing from (a) your use of the Software, and (b) any application
37
+ you develop with the Software that infringes any copyright, trademark,
38
+ trade secret, trade dress, patent, or other intellectual property right of
39
+ any person or defames any person or violates their rights of publicity or
40
+ privacy (each a "Claim Against Salesforce"), and will indemnify Salesforce
41
+ from any damages, attorney fees, and costs finally awarded against
42
+ Salesforce as a result of, or for any amounts paid by Salesforce under a
43
+ settlement approved by you in writing of, a Claim Against Salesforce,
44
+ provided Salesforce (x) promptly gives you written notice of the Claim
45
+ Against Salesforce, (y) gives you sole control of the defense and
46
+ settlement of the Claim Against Salesforce (except that you may not settle
47
+ any Claim Against Salesforce unless it unconditionally releases Salesforce
48
+ of all liability), and (z) gives you all reasonable assistance, at your
49
+ expense.
50
+
51
+ WITHOUT LIMITING THE GENERALITY OF THE FOREGOING, THE SOFTWARE IS NOT
52
+ SUPPORTED AND IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
53
+ IMPLIED. IN NO EVENT SHALL SALESFORCE HAVE ANY LIABILITY FOR ANY DAMAGES,
54
+ INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL, INCIDENTAL,
55
+ PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR DAMAGES BASED ON LOST PROFITS, DATA,
56
+ OR USE, IN CONNECTION WITH THE SOFTWARE, HOWEVER CAUSED AND WHETHER IN
57
+ CONTRACT, TORT, OR UNDER ANY OTHER THEORY OF LIABILITY, WHETHER OR NOT YOU
58
+ HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
59
+
60
+ These Terms of Use shall be governed exclusively by the internal laws of
61
+ the State of California, without regard to its conflicts of laws
62
+ rules. Each party hereby consents to the exclusive jurisdiction of the
63
+ state and federal courts located in San Francisco County, California to
64
+ adjudicate any dispute arising out of or relating to these Terms of Use and
65
+ the download, installation, and/or use of the Software. Except as expressly
66
+ stated herein, these Terms of Use constitute the entire agreement between
67
+ the parties, and supersede all prior and contemporaneous agreements,
68
+ proposals, or representations, written or oral, concerning their subject
69
+ matter. No modification, amendment, or waiver of any provision of these
70
+ Terms of Use shall be effective unless it is by an update to these Terms of
71
+ Use that Salesforce makes available, or is in writing and signed by the
72
+ party against whom the modification, amendment, or waiver is to be
73
+ asserted.
74
+
75
+ Data Privacy: Salesforce may collect, process, and store device,
76
+ system, and other information related to your use of the Software. This
77
+ information includes, but is not limited to, IP address, user metrics, and
78
+ other data ("Usage Data"). Salesforce may use Usage Data for analytics,
79
+ product development, and marketing purposes. You acknowledge that files
80
+ generated in conjunction with the Software may contain sensitive or
81
+ confidential data, and you are solely responsible for anonymizing and
82
+ protecting such data.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @salesforce/ui-bundle
2
+
3
+ Core package for Salesforce UI Bundles
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ export declare const API_VERSION: string;
7
+ declare class ApiClient {
8
+ private readonly baseURL;
9
+ private readonly defaultOptions;
10
+ constructor(baseURL: string);
11
+ private isJsonContentType;
12
+ private fetch;
13
+ private processBody;
14
+ post(url: string, body?: unknown, options?: RequestInit): Promise<Response>;
15
+ get(url: string, options?: RequestInit): Promise<Response>;
16
+ put(url: string, body?: unknown, options?: RequestInit): Promise<Response>;
17
+ patch(url: string, body?: unknown, options?: RequestInit): Promise<Response>;
18
+ delete(url: string, options?: RequestInit): Promise<Response>;
19
+ }
20
+ export declare const uiApiClient: ApiClient;
21
+ export {};
22
+ //# sourceMappingURL=clients.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../src/api/clients.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,eAAO,MAAM,WAAW,QAA0E,CAAC;AAQnG,cAAM,SAAS;IACd,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAK7B;gBAEU,OAAO,EAAE,MAAM;IAI3B,OAAO,CAAC,iBAAiB;YASX,KAAK;IAgBnB,OAAO,CAAC,WAAW;IAgBb,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQ/E,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI9D,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQ9E,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAQhF,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAGvE;AAGD,eAAO,MAAM,WAAW,WAA4B,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { createDataSDK } from "@salesforce/sdk-data";
2
+ const API_VERSION = typeof __SF_API_VERSION__ !== "undefined" ? __SF_API_VERSION__ : "65.0";
3
+ const BASE_DATA_URL = `/services/data/v${API_VERSION}`;
4
+ const UI_API_URL = `${BASE_DATA_URL}/ui-api`;
5
+ const MIME_TYPE_JSON = "application/json";
6
+ const HEADER_CONTENT_TYPE = "Content-Type";
7
+ class ApiClient {
8
+ baseURL;
9
+ defaultOptions = {
10
+ headers: {
11
+ [HEADER_CONTENT_TYPE]: MIME_TYPE_JSON,
12
+ Accept: MIME_TYPE_JSON
13
+ }
14
+ };
15
+ constructor(baseURL) {
16
+ this.baseURL = baseURL;
17
+ }
18
+ isJsonContentType(headers) {
19
+ if (!headers) return true;
20
+ const headersObj = new Headers(headers);
21
+ const contentType = headersObj.get(HEADER_CONTENT_TYPE);
22
+ return !contentType || contentType.includes(MIME_TYPE_JSON);
23
+ }
24
+ async fetch(info, options = {}) {
25
+ const fullURL = info instanceof URL || info.startsWith("http") ? info : `${this.baseURL}${info}`;
26
+ const mergedOptions = {
27
+ ...this.defaultOptions,
28
+ ...options,
29
+ headers: {
30
+ ...this.defaultOptions.headers,
31
+ ...options.headers || {}
32
+ }
33
+ };
34
+ const sdk = await createDataSDK();
35
+ return await sdk.fetch(fullURL, mergedOptions);
36
+ }
37
+ processBody(body, options) {
38
+ if (body === void 0 || body === null) {
39
+ return void 0;
40
+ }
41
+ if (body instanceof FormData) {
42
+ return body;
43
+ }
44
+ if (typeof body === "string") {
45
+ return body;
46
+ }
47
+ if (typeof body === "object" && this.isJsonContentType(options.headers)) {
48
+ return JSON.stringify(body);
49
+ }
50
+ return void 0;
51
+ }
52
+ async post(url, body, options = {}) {
53
+ return this.fetch(url, {
54
+ ...options,
55
+ method: "POST",
56
+ body: this.processBody(body, options)
57
+ });
58
+ }
59
+ async get(url, options = {}) {
60
+ return this.fetch(url, { ...options, method: "GET" });
61
+ }
62
+ async put(url, body, options = {}) {
63
+ return this.fetch(url, {
64
+ ...options,
65
+ method: "PUT",
66
+ body: this.processBody(body, options)
67
+ });
68
+ }
69
+ async patch(url, body, options = {}) {
70
+ return this.fetch(url, {
71
+ ...options,
72
+ method: "PATCH",
73
+ body: this.processBody(body, options)
74
+ });
75
+ }
76
+ async delete(url, options = {}) {
77
+ return this.fetch(url, { ...options, method: "DELETE" });
78
+ }
79
+ }
80
+ const uiApiClient = new ApiClient(UI_API_URL);
81
+ export {
82
+ API_VERSION,
83
+ uiApiClient
84
+ };
@@ -0,0 +1,225 @@
1
+ export type Maybe<T> = T | null;
2
+ export type InputMaybe<T> = Maybe<T>;
3
+ export type Exact<T extends {
4
+ [key: string]: unknown;
5
+ }> = {
6
+ [K in keyof T]: T[K];
7
+ };
8
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
+ [SubKey in K]?: Maybe<T[SubKey]>;
10
+ };
11
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
+ [SubKey in K]: Maybe<T[SubKey]>;
13
+ };
14
+ export type MakeEmpty<T extends {
15
+ [key: string]: unknown;
16
+ }, K extends keyof T> = {
17
+ [_ in K]?: never;
18
+ };
19
+ export type Incremental<T> = T | {
20
+ [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
21
+ };
22
+ /** All built-in and custom scalars, mapped to their actual values */
23
+ export type Scalars = {
24
+ ID: {
25
+ input: string;
26
+ output: string;
27
+ };
28
+ String: {
29
+ input: string;
30
+ output: string;
31
+ };
32
+ Boolean: {
33
+ input: boolean;
34
+ output: boolean;
35
+ };
36
+ Int: {
37
+ input: number;
38
+ output: number;
39
+ };
40
+ Float: {
41
+ input: number;
42
+ output: number;
43
+ };
44
+ Base64: {
45
+ input: any;
46
+ output: any;
47
+ };
48
+ /** An arbitrary precision signed decimal */
49
+ BigDecimal: {
50
+ input: any;
51
+ output: any;
52
+ };
53
+ /** An arbitrary precision signed integer */
54
+ BigInteger: {
55
+ input: any;
56
+ output: any;
57
+ };
58
+ /** An 8-bit signed integer */
59
+ Byte: {
60
+ input: any;
61
+ output: any;
62
+ };
63
+ /** A UTF-16 code unit; a character on Unicode's BMP */
64
+ Char: {
65
+ input: any;
66
+ output: any;
67
+ };
68
+ Currency: {
69
+ input: any;
70
+ output: any;
71
+ };
72
+ Date: {
73
+ input: any;
74
+ output: any;
75
+ };
76
+ DateTime: {
77
+ input: any;
78
+ output: any;
79
+ };
80
+ Double: {
81
+ input: any;
82
+ output: any;
83
+ };
84
+ Email: {
85
+ input: any;
86
+ output: any;
87
+ };
88
+ EncryptedString: {
89
+ input: any;
90
+ output: any;
91
+ };
92
+ /** Can be set to an ID or a Reference to the result of another mutation operation. */
93
+ IdOrRef: {
94
+ input: any;
95
+ output: any;
96
+ };
97
+ JSON: {
98
+ input: any;
99
+ output: any;
100
+ };
101
+ Latitude: {
102
+ input: any;
103
+ output: any;
104
+ };
105
+ /** A 64-bit signed integer */
106
+ Long: {
107
+ input: any;
108
+ output: any;
109
+ };
110
+ LongTextArea: {
111
+ input: any;
112
+ output: any;
113
+ };
114
+ Longitude: {
115
+ input: any;
116
+ output: any;
117
+ };
118
+ MultiPicklist: {
119
+ input: any;
120
+ output: any;
121
+ };
122
+ Percent: {
123
+ input: any;
124
+ output: any;
125
+ };
126
+ PhoneNumber: {
127
+ input: any;
128
+ output: any;
129
+ };
130
+ Picklist: {
131
+ input: any;
132
+ output: any;
133
+ };
134
+ RichTextArea: {
135
+ input: any;
136
+ output: any;
137
+ };
138
+ /** A 16-bit signed integer */
139
+ Short: {
140
+ input: any;
141
+ output: any;
142
+ };
143
+ TextArea: {
144
+ input: any;
145
+ output: any;
146
+ };
147
+ Time: {
148
+ input: any;
149
+ output: any;
150
+ };
151
+ Url: {
152
+ input: any;
153
+ output: any;
154
+ };
155
+ };
156
+ export declare enum DataType {
157
+ Address = "ADDRESS",
158
+ Anytype = "ANYTYPE",
159
+ Base64 = "BASE64",
160
+ Boolean = "BOOLEAN",
161
+ Combobox = "COMBOBOX",
162
+ Complexvalue = "COMPLEXVALUE",
163
+ Currency = "CURRENCY",
164
+ Date = "DATE",
165
+ Datetime = "DATETIME",
166
+ Double = "DOUBLE",
167
+ Email = "EMAIL",
168
+ Encryptedstring = "ENCRYPTEDSTRING",
169
+ Int = "INT",
170
+ Json = "JSON",
171
+ Junctionidlist = "JUNCTIONIDLIST",
172
+ Location = "LOCATION",
173
+ Long = "LONG",
174
+ Multipicklist = "MULTIPICKLIST",
175
+ Percent = "PERCENT",
176
+ Phone = "PHONE",
177
+ Picklist = "PICKLIST",
178
+ Reference = "REFERENCE",
179
+ String = "STRING",
180
+ Textarea = "TEXTAREA",
181
+ Time = "TIME",
182
+ Url = "URL"
183
+ }
184
+ export declare enum FieldExtraTypeInfo {
185
+ ExternalLookup = "EXTERNAL_LOOKUP",
186
+ ImageUrl = "IMAGE_URL",
187
+ IndirectLookup = "INDIRECT_LOOKUP",
188
+ Personname = "PERSONNAME",
189
+ Plaintextarea = "PLAINTEXTAREA",
190
+ Richtextarea = "RICHTEXTAREA",
191
+ SwitchablePersonname = "SWITCHABLE_PERSONNAME"
192
+ }
193
+ export declare enum ResultOrder {
194
+ Asc = "ASC",
195
+ Desc = "DESC"
196
+ }
197
+ export type GetHighRevenueAccountsQueryVariables = Exact<{
198
+ minRevenue?: InputMaybe<Scalars["Currency"]["input"]>;
199
+ }>;
200
+ export type GetHighRevenueAccountsQuery = {
201
+ uiapi: {
202
+ query: {
203
+ Account?: {
204
+ edges?: Array<{
205
+ node?: {
206
+ Id: string;
207
+ Name?: {
208
+ value?: string | null;
209
+ } | null;
210
+ AnnualRevenue?: {
211
+ value?: any | null;
212
+ } | null;
213
+ Industry?: {
214
+ value?: any | null;
215
+ } | null;
216
+ Website?: {
217
+ value?: any | null;
218
+ } | null;
219
+ } | null;
220
+ } | null> | null;
221
+ } | null;
222
+ };
223
+ };
224
+ };
225
+ //# sourceMappingURL=graphql-operations-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql-operations-types.d.ts","sourceRoot":"","sources":["../../src/api/graphql-operations-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAChC,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AACrC,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AACnF,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;KAAG,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;CAAE,CAAC;AACnG,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;KAAG,MAAM,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;CAAE,CAAC;AAC/F,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI;KAC/E,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK;CAChB,CAAC;AACF,MAAM,MAAM,WAAW,CAAC,CAAC,IACtB,CAAC,GACD;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAA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B,YAAY,iBAAiB;IAC7B,oBAAoB,0BAA0B;CAC9C;AAED,oBAAY,WAAW;IACtB,GAAG,QAAQ;IACX,IAAI,SAAS;CACb;AAED,MAAM,MAAM,oCAAoC,GAAG,KAAK,CAAC;IACxD,UAAU,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;CACtD,CAAC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG;IACzC,KAAK,EAAE;QACN,KAAK,EAAE;YACN,OAAO,CAAC,EAAE;gBACT,KAAK,CAAC,EAAE,KAAK,CAAC;oBACb,IAAI,CAAC,EAAE;wBACN,EAAE,EAAE,MAAM,CAAC;wBACX,IAAI,CAAC,EAAE;4BAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;yBAAE,GAAG,IAAI,CAAC;wBACxC,aAAa,CAAC,EAAE;4BAAE,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;yBAAE,GAAG,IAAI,CAAC;wBAC9C,QAAQ,CAAC,EAAE;4BAAE,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;yBAAE,GAAG,IAAI,CAAC;wBACzC,OAAO,CAAC,EAAE;4BAAE,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,CAAA;yBAAE,GAAG,IAAI,CAAC;qBACxC,GAAG,IAAI,CAAC;iBACT,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;aACjB,GAAG,IAAI,CAAC;SACT,CAAC;KACF,CAAC;CACF,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ export { uiApiClient } from './clients';
7
+ export { getHighRevenueAccounts, type Account } from './utils/accounts';
8
+ export { getRecord, createRecord, updateRecord, deleteRecord } from './utils/records';
9
+ export { getCurrentUser } from './utils/user';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,EAAE,sBAAsB,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { uiApiClient } from "./clients.js";
2
+ import { getHighRevenueAccounts } from "./utils/accounts.js";
3
+ import { createRecord, deleteRecord, getRecord, updateRecord } from "./utils/records.js";
4
+ import { getCurrentUser } from "./utils/user.js";
5
+ export {
6
+ createRecord,
7
+ deleteRecord,
8
+ getCurrentUser,
9
+ getHighRevenueAccounts,
10
+ getRecord,
11
+ uiApiClient,
12
+ updateRecord
13
+ };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ /** Variables for the GetHighRevenueAccounts query */
7
+ export type GetHighRevenueAccountsVariables = {
8
+ minRevenue?: number | null;
9
+ };
10
+ /** Shape of an Account node returned by the query */
11
+ export interface Account {
12
+ Id: string;
13
+ Name?: {
14
+ value?: string | null;
15
+ } | null;
16
+ AnnualRevenue?: {
17
+ value?: number | null;
18
+ } | null;
19
+ Industry?: {
20
+ value?: string | null;
21
+ } | null;
22
+ Website?: {
23
+ value?: string | null;
24
+ } | null;
25
+ }
26
+ /**
27
+ * Fetch accounts with annual revenue greater than the specified amount
28
+ *
29
+ * @param variables - Query variables including minRevenue threshold
30
+ * @returns Array of accounts matching the criteria
31
+ */
32
+ export declare function getHighRevenueAccounts(variables: GetHighRevenueAccountsVariables): Promise<(Account | null | undefined)[]>;
33
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/api/utils/accounts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAcH,qDAAqD;AAErD,MAAM,MAAM,+BAA+B,GAAG;IAC7C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,qDAAqD;AACrD,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CAC3C;AA6CD;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC3C,SAAS,EAAE,+BAA+B,GACxC,OAAO,CAAC,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC,CAazC"}
@@ -0,0 +1,47 @@
1
+ import { createDataSDK } from "@salesforce/sdk-data";
2
+ const HIGH_REVENUE_ACCOUNTS_QUERY = (
3
+ /* GraphQL */
4
+ `
5
+ query GetHighRevenueAccounts($minRevenue: Currency) {
6
+ uiapi {
7
+ query {
8
+ Account(
9
+ where: { AnnualRevenue: { gt: $minRevenue } }
10
+ orderBy: { AnnualRevenue: { order: DESC } }
11
+ first: 50
12
+ ) {
13
+ edges {
14
+ node {
15
+ Id
16
+ Name {
17
+ value
18
+ }
19
+ AnnualRevenue {
20
+ value
21
+ }
22
+ Industry {
23
+ value
24
+ }
25
+ Website {
26
+ value
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ `
35
+ );
36
+ async function getHighRevenueAccounts(variables) {
37
+ const data = await createDataSDK();
38
+ const response = await data.graphql?.(HIGH_REVENUE_ACCOUNTS_QUERY, variables);
39
+ if (response?.errors?.length) {
40
+ const errorMessages = response.errors.map((e) => e.message).join("; ");
41
+ throw new Error(`GraphQL Error: ${errorMessages}`);
42
+ }
43
+ return response?.data?.uiapi?.query?.Account?.edges?.map((edge) => edge?.node) || [];
44
+ }
45
+ export {
46
+ getHighRevenueAccounts
47
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ interface RecordResponse {
7
+ fields: Record<string, {
8
+ value: string;
9
+ }>;
10
+ }
11
+ export declare function getRecord(recordId: string, params?: Record<string, string>): Promise<RecordResponse>;
12
+ export declare function createRecord(apiName: string, fields: Record<string, unknown>): Promise<RecordResponse>;
13
+ export declare function updateRecord(recordId: string, fields: Record<string, unknown>): Promise<RecordResponse>;
14
+ export declare function deleteRecord(recordId: string): Promise<boolean>;
15
+ export {};
16
+ //# sourceMappingURL=records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../../src/api/utils/records.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,UAAU,cAAc;IACvB,MAAM,EAAE,MAAM,CACb,MAAM,EACN;QACC,KAAK,EAAE,MAAM,CAAC;KACd,CACD,CAAC;CACF;AAED,wBAAsB,SAAS,CAC9B,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACjC,OAAO,CAAC,cAAc,CAAC,CAOzB;AAED,wBAAsB,YAAY,CACjC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,cAAc,CAAC,CAGzB;AAED,wBAAsB,YAAY,CACjC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,cAAc,CAAC,CAGzB;AAED,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAGrE"}
@@ -0,0 +1,26 @@
1
+ import { uiApiClient } from "../clients.js";
2
+ async function getRecord(recordId, params = {}) {
3
+ const searchParams = new URLSearchParams(params);
4
+ const queryString = searchParams.toString();
5
+ const url = `/records/${recordId}${queryString ? `?${queryString}` : ""}`;
6
+ const response = await uiApiClient.get(url);
7
+ return response.json();
8
+ }
9
+ async function createRecord(apiName, fields) {
10
+ const response = await uiApiClient.post(`/records`, { apiName, fields });
11
+ return response.json();
12
+ }
13
+ async function updateRecord(recordId, fields) {
14
+ const response = await uiApiClient.patch(`/records/${recordId}`, { fields });
15
+ return response.json();
16
+ }
17
+ async function deleteRecord(recordId) {
18
+ await uiApiClient.delete(`/records/${recordId}`);
19
+ return true;
20
+ }
21
+ export {
22
+ createRecord,
23
+ deleteRecord,
24
+ getRecord,
25
+ updateRecord
26
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ interface User {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ /**
11
+ * Fetch current user information from Salesforce
12
+ * Uses Chatter API to get current user details
13
+ * @returns User info or null if no session
14
+ */
15
+ export declare function getCurrentUser(): Promise<User | null>;
16
+ export {};
17
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/utils/user.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,UAAU,IAAI;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACb;AASD;;;;GAIG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAuB3D"}
@@ -0,0 +1,25 @@
1
+ import { createDataSDK } from "@salesforce/sdk-data";
2
+ import { API_VERSION } from "../clients.js";
3
+ async function getCurrentUser() {
4
+ try {
5
+ const sdk = await createDataSDK();
6
+ const response = await sdk.fetch(`/services/data/v${API_VERSION}/chatter/users/me`);
7
+ if (!response.ok) {
8
+ throw new Error(`HTTP ${response.status}`);
9
+ }
10
+ const userData = await response.json();
11
+ if (!userData || !userData.id) {
12
+ throw new Error("No user data found in Chatter API response");
13
+ }
14
+ return {
15
+ id: userData.id,
16
+ name: userData.name || "User"
17
+ };
18
+ } catch (error) {
19
+ console.error("Error fetching user data:", error);
20
+ throw error;
21
+ }
22
+ }
23
+ export {
24
+ getCurrentUser
25
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ export type { OrgInfo } from './org';
7
+ export { getOrgInfo, refreshOrgAuth } from './org';
8
+ export type { UIBundleManifest, RoutingConfig, RewriteRule, RedirectRule } from './manifest';
9
+ export { loadManifest } from './manifest';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { getOrgInfo, refreshOrgAuth } from "./org.js";
2
+ import { loadManifest } from "./manifest.js";
3
+ export {
4
+ getOrgInfo,
5
+ loadManifest,
6
+ refreshOrgAuth
7
+ };