@salesforce/sdk-data 1.97.2 → 1.98.0
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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -110
- package/dist/webapp/index.d.ts +1 -1
- package/dist/webapp/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIhE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IACjD,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC9B;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAe9E;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMhE;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAc3E;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS;IAC3C,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC;CAC3B,GAAG,IAAI,GACL,CAAC,SAAS;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,IAAI,GAClC,CAAC,GACD,KAAK,GACN,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIhE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IACjD,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC9B;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAe9E;AAED,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMhE;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAc3E;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS;IAC3C,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC;CAC3B,GAAG,IAAI,GACL,CAAC,SAAS;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,IAAI,GAClC,CAAC,GACD,KAAK,GACN,KAAK,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { getSurface as
|
|
2
|
-
const
|
|
3
|
-
class
|
|
4
|
-
async graphql(e,
|
|
5
|
-
return (await window.openai.callTool(
|
|
1
|
+
import { getSurface as S, Surface as h } from "@salesforce/sdk-core";
|
|
2
|
+
const T = "salesforce_graphql";
|
|
3
|
+
class b {
|
|
4
|
+
async graphql(e, r) {
|
|
5
|
+
return (await window.openai.callTool(T, {
|
|
6
6
|
query: e,
|
|
7
|
-
...
|
|
7
|
+
...r != null ? { variables: r } : {}
|
|
8
8
|
})).structuredContent;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
function u(
|
|
12
|
-
return v(
|
|
13
|
-
then: (e,
|
|
11
|
+
function u(t) {
|
|
12
|
+
return v(t) ? t.then((e) => e) : {
|
|
13
|
+
then: (e, r) => {
|
|
14
14
|
try {
|
|
15
|
-
return u(e(
|
|
15
|
+
return u(e(t));
|
|
16
16
|
} catch (n) {
|
|
17
|
-
return e === void 0 ? u(
|
|
17
|
+
return e === void 0 ? u(t) : P(n);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function P(
|
|
23
|
-
return v(
|
|
24
|
-
then: (e,
|
|
25
|
-
if (typeof
|
|
22
|
+
function P(t) {
|
|
23
|
+
return v(t) ? t.then((e) => e) : {
|
|
24
|
+
then: (e, r) => {
|
|
25
|
+
if (typeof r == "function")
|
|
26
26
|
try {
|
|
27
|
-
return u(t
|
|
27
|
+
return u(r(t));
|
|
28
28
|
} catch (n) {
|
|
29
29
|
return P(n);
|
|
30
30
|
}
|
|
31
|
-
return P(
|
|
31
|
+
return P(t);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
function v(
|
|
36
|
-
return typeof
|
|
35
|
+
function v(t) {
|
|
36
|
+
return typeof t?.then == "function";
|
|
37
37
|
}
|
|
38
|
-
function I(
|
|
38
|
+
function I(t = {
|
|
39
39
|
request: [],
|
|
40
40
|
retry: void 0,
|
|
41
41
|
response: [],
|
|
@@ -44,16 +44,16 @@ function I(r = {
|
|
|
44
44
|
return {
|
|
45
45
|
type: "fetch",
|
|
46
46
|
version: "1.0",
|
|
47
|
-
service: function(...
|
|
47
|
+
service: function(...r) {
|
|
48
48
|
var n;
|
|
49
|
-
const s = (n =
|
|
49
|
+
const s = (n = t.createContext) == null ? void 0 : n.call(t), {
|
|
50
50
|
request: a = [],
|
|
51
51
|
retry: c = void 0,
|
|
52
52
|
response: o = [],
|
|
53
53
|
finally: y = []
|
|
54
|
-
} =
|
|
54
|
+
} = t, p = a.reduce(
|
|
55
55
|
(i, l) => i.then((w) => l(w, s)),
|
|
56
|
-
u(
|
|
56
|
+
u(r)
|
|
57
57
|
);
|
|
58
58
|
return Promise.resolve(p).then((i) => c ? c(i, e, s) : e ? e.applyRetry(() => fetch(...i)) : fetch(...i)).then((i) => o.reduce(
|
|
59
59
|
(l, w) => l.then((C) => w(C, s)),
|
|
@@ -68,47 +68,47 @@ function I(r = {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function E(t, e, [r, n = {}], {
|
|
72
72
|
throwOnExisting: s = !1,
|
|
73
|
-
errorMessage: a = `Unexpected ${
|
|
73
|
+
errorMessage: a = `Unexpected ${t} header encountered`
|
|
74
74
|
} = {}) {
|
|
75
75
|
let c = !1;
|
|
76
|
-
if (
|
|
77
|
-
if (s &&
|
|
76
|
+
if (r instanceof Request && !n?.headers) {
|
|
77
|
+
if (s && r.headers.has(t))
|
|
78
78
|
throw new Error(a);
|
|
79
|
-
|
|
79
|
+
r.headers.set(t, e), c = !0;
|
|
80
80
|
}
|
|
81
81
|
if (n?.headers instanceof Headers) {
|
|
82
|
-
if (s && n.headers.has(
|
|
82
|
+
if (s && n.headers.has(t))
|
|
83
83
|
throw new Error(a);
|
|
84
|
-
n.headers.set(
|
|
84
|
+
n.headers.set(t, e);
|
|
85
85
|
} else {
|
|
86
|
-
if (s && n?.headers && Reflect.has(n.headers,
|
|
86
|
+
if (s && n?.headers && Reflect.has(n.headers, t))
|
|
87
87
|
throw new Error(a);
|
|
88
88
|
c || (n.headers = {
|
|
89
89
|
...n?.headers,
|
|
90
|
-
[
|
|
90
|
+
[t]: e
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
return [
|
|
93
|
+
return [r, n];
|
|
94
94
|
}
|
|
95
|
-
class
|
|
95
|
+
class D {
|
|
96
96
|
constructor(e) {
|
|
97
97
|
this.defaultRetryPolicy = e;
|
|
98
98
|
}
|
|
99
|
-
applyRetry(e,
|
|
100
|
-
return this.retry(e,
|
|
99
|
+
applyRetry(e, r) {
|
|
100
|
+
return this.retry(e, r || this.defaultRetryPolicy);
|
|
101
101
|
}
|
|
102
|
-
async retry(e,
|
|
102
|
+
async retry(e, r) {
|
|
103
103
|
const n = Date.now();
|
|
104
104
|
let s = 0, a = await e(), c = {
|
|
105
105
|
attempt: s,
|
|
106
106
|
totalElapsedMs: Date.now() - n,
|
|
107
107
|
lastResult: a
|
|
108
108
|
};
|
|
109
|
-
for (; await
|
|
110
|
-
const o = await
|
|
111
|
-
await this.delay(o),
|
|
109
|
+
for (; await r.shouldRetry(a, c); ) {
|
|
110
|
+
const o = await r.calculateDelay(a, c);
|
|
111
|
+
await this.delay(o), r.prepareRetry && await r.prepareRetry(a, c), s++, a = await e(), c = {
|
|
112
112
|
attempt: s,
|
|
113
113
|
totalElapsedMs: Date.now() - n,
|
|
114
114
|
lastResult: a
|
|
@@ -117,62 +117,62 @@ class A {
|
|
|
117
117
|
return a;
|
|
118
118
|
}
|
|
119
119
|
delay(e) {
|
|
120
|
-
return new Promise((
|
|
121
|
-
setTimeout(
|
|
120
|
+
return new Promise((r) => {
|
|
121
|
+
setTimeout(r, e);
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
class
|
|
125
|
+
class A {
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function g(t) {
|
|
128
128
|
return {
|
|
129
129
|
version: "1.0",
|
|
130
|
-
service: new
|
|
130
|
+
service: new D(t),
|
|
131
131
|
type: "retry"
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
const { protectedUrls:
|
|
134
|
+
const m = "X-CSRF-Token";
|
|
135
|
+
function $(t, e = {}) {
|
|
136
|
+
const { protectedUrls: r = [], alwaysProtectedUrls: n = [] } = e;
|
|
137
137
|
return async (s) => {
|
|
138
138
|
const [a, c] = s, o = new Request(a, c);
|
|
139
|
-
if (!o.headers.has(
|
|
140
|
-
const p = await
|
|
141
|
-
s =
|
|
139
|
+
if (!o.headers.has(m) && (_(n, o.url) || q(o.method) && _(r, o.url))) {
|
|
140
|
+
const p = await t.getToken();
|
|
141
|
+
s = E(m, p, s);
|
|
142
142
|
}
|
|
143
143
|
return u(s);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const e =
|
|
146
|
+
function q(t) {
|
|
147
|
+
const e = t.toLowerCase();
|
|
148
148
|
return e === "post" || e === "put" || e === "patch" || e === "delete";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
const
|
|
152
|
-
return
|
|
150
|
+
function _(t, e) {
|
|
151
|
+
const r = new URL(e);
|
|
152
|
+
return t.some((n) => r.pathname.includes(n));
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const
|
|
154
|
+
function U(t, e = {}) {
|
|
155
|
+
const r = $(t, e);
|
|
156
156
|
async function n(s) {
|
|
157
|
-
const a = await
|
|
157
|
+
const a = await r(s);
|
|
158
158
|
return fetch(a[0], a[1]);
|
|
159
159
|
}
|
|
160
160
|
return (s, a) => a ? a.applyRetry(async () => n(s)) : n(s);
|
|
161
161
|
}
|
|
162
|
-
class
|
|
162
|
+
class M extends A {
|
|
163
163
|
constructor(e) {
|
|
164
164
|
super(e), this.csrfTokenManager = e;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Determines if a failed request should be retried due to CSRF token issues.
|
|
168
168
|
*/
|
|
169
|
-
async shouldRetry(e,
|
|
170
|
-
return
|
|
169
|
+
async shouldRetry(e, r) {
|
|
170
|
+
return r.attempt >= 1 || e.status !== 400 ? !1 : await F(e);
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* CSRF token refresh should happen immediately with no delay.
|
|
174
174
|
*/
|
|
175
|
-
async calculateDelay(e,
|
|
175
|
+
async calculateDelay(e, r) {
|
|
176
176
|
return 0;
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
@@ -181,20 +181,20 @@ class $ extends D {
|
|
|
181
181
|
* @param _result - The failed response that triggered the retry (unused, already validated)
|
|
182
182
|
* @param _context - Current retry context (unused but part of interface)
|
|
183
183
|
*/
|
|
184
|
-
async prepareRetry(e,
|
|
184
|
+
async prepareRetry(e, r) {
|
|
185
185
|
await this.csrfTokenManager.refreshToken();
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
async function F(
|
|
188
|
+
async function F(t) {
|
|
189
189
|
try {
|
|
190
|
-
return (await
|
|
190
|
+
return (await t.clone().json())[0]?.errorCode === "INVALID_ACCESS_TOKEN";
|
|
191
191
|
} catch {
|
|
192
192
|
return !1;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
class N {
|
|
196
|
-
constructor(e,
|
|
197
|
-
this.endpoint = e, this.cacheName =
|
|
196
|
+
constructor(e, r) {
|
|
197
|
+
this.endpoint = e, this.cacheName = r, this.tokenPromise = this.obtainToken();
|
|
198
198
|
}
|
|
199
199
|
tokenPromise;
|
|
200
200
|
/**
|
|
@@ -217,10 +217,10 @@ class N {
|
|
|
217
217
|
* @returns Promise that resolves to the CSRF token string
|
|
218
218
|
*/
|
|
219
219
|
async obtainToken() {
|
|
220
|
-
let e = await this.withCache((s) => s.match(this.endpoint)),
|
|
221
|
-
e || (e = await fetch(this.endpoint, { method: "get" }),
|
|
220
|
+
let e = await this.withCache((s) => s.match(this.endpoint)), r = !1;
|
|
221
|
+
e || (e = await fetch(this.endpoint, { method: "get" }), r = !0);
|
|
222
222
|
const n = (await e.clone().json()).csrfToken;
|
|
223
|
-
return
|
|
223
|
+
return r && await this.withCache((s) => s.put(this.endpoint, e)), n;
|
|
224
224
|
}
|
|
225
225
|
/**
|
|
226
226
|
* Provides a safe way to interact with the Cache API with fallback for unsupported environments.
|
|
@@ -230,52 +230,48 @@ class N {
|
|
|
230
230
|
*/
|
|
231
231
|
async withCache(e) {
|
|
232
232
|
if (this.cacheName && caches) {
|
|
233
|
-
const
|
|
234
|
-
return e(
|
|
233
|
+
const r = await caches.open(this.cacheName);
|
|
234
|
+
return e(r);
|
|
235
235
|
} else
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
function O(
|
|
240
|
-
const e =
|
|
239
|
+
function O(t) {
|
|
240
|
+
const e = t.csrf, r = new N(e.endpoint, e.cacheName);
|
|
241
241
|
return I(
|
|
242
|
-
{ retry:
|
|
243
|
-
|
|
242
|
+
{ retry: U(r, e) },
|
|
243
|
+
g(new M(r)).service
|
|
244
244
|
).service;
|
|
245
245
|
}
|
|
246
|
-
const H = 1,
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
const e = (t) => (t.startsWith("/") || (t = `/${t}`), t.endsWith("/") && (t = t.slice(0, -1)), t);
|
|
250
|
-
return e(r.basePath) + e(r.apiPath);
|
|
251
|
-
})();
|
|
252
|
-
class K {
|
|
253
|
-
base;
|
|
246
|
+
const H = 1, x = `@salesforce/sdk-data_v${H}`, L = typeof __SF_API_VERSION__ < "u" ? __SF_API_VERSION__ : "65.0", R = `/services/data/v${L}`, j = `${R}/ui-api`;
|
|
247
|
+
class W {
|
|
248
|
+
baseUrl;
|
|
254
249
|
clientFetch;
|
|
255
250
|
on401;
|
|
256
251
|
on403;
|
|
257
252
|
constructor(e) {
|
|
258
|
-
|
|
253
|
+
const r = K();
|
|
254
|
+
this.baseUrl = k(e?.basePath ?? r.basePath) + k(e?.apiPath ?? r.apiPath), this.on401 = e?.on401, this.on403 = e?.on403, this.clientFetch = O({
|
|
259
255
|
csrf: {
|
|
260
|
-
endpoint: `${this.
|
|
261
|
-
cacheName:
|
|
262
|
-
protectedUrls: ["
|
|
263
|
-
alwaysProtectedUrls: ["
|
|
256
|
+
endpoint: `${this.baseUrl}${j}/session/csrf`,
|
|
257
|
+
cacheName: x,
|
|
258
|
+
protectedUrls: ["services/data/v", "services/apexrest"],
|
|
259
|
+
alwaysProtectedUrls: ["services/apexrest"]
|
|
264
260
|
}
|
|
265
261
|
});
|
|
266
262
|
}
|
|
267
|
-
async graphql(e,
|
|
268
|
-
return (await this.fetch(`${
|
|
263
|
+
async graphql(e, r) {
|
|
264
|
+
return (await this.fetch(`${R}/graphql`, {
|
|
269
265
|
method: "POST",
|
|
270
|
-
body: JSON.stringify({ query: e, variables:
|
|
266
|
+
body: JSON.stringify({ query: e, variables: r }),
|
|
271
267
|
headers: {
|
|
272
268
|
"Content-Type": "application/json",
|
|
273
269
|
Accept: "application/json"
|
|
274
270
|
}
|
|
275
271
|
})).json();
|
|
276
272
|
}
|
|
277
|
-
async fetch(e,
|
|
278
|
-
const n = this.applySalesforceBase(e), s = await this.clientFetch(n,
|
|
273
|
+
async fetch(e, r) {
|
|
274
|
+
const n = this.applySalesforceBase(e), s = await this.clientFetch(n, r);
|
|
279
275
|
switch (s.status) {
|
|
280
276
|
case 401:
|
|
281
277
|
await this.on401?.();
|
|
@@ -291,22 +287,40 @@ class K {
|
|
|
291
287
|
* Builder deployments structure the url for Salesforce
|
|
292
288
|
*/
|
|
293
289
|
applySalesforceBase(e) {
|
|
294
|
-
|
|
290
|
+
if (typeof e == "string") {
|
|
291
|
+
if (e.startsWith("http"))
|
|
292
|
+
return e;
|
|
293
|
+
const r = e.startsWith("/") ? e : `/${e}`;
|
|
294
|
+
return `${this.baseUrl}${r}`;
|
|
295
|
+
}
|
|
296
|
+
return e;
|
|
295
297
|
}
|
|
296
298
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
+
function K() {
|
|
300
|
+
const t = globalThis.SFDC_ENV;
|
|
301
|
+
return {
|
|
302
|
+
basePath: t?.basePath,
|
|
303
|
+
apiPath: t?.apiPath
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function k(t) {
|
|
307
|
+
if (!t || t === "/") return "";
|
|
308
|
+
let e = t;
|
|
309
|
+
return e.startsWith("/") || (e = `/${e}`), e.endsWith("/") && (e = e.slice(0, -1)), e;
|
|
310
|
+
}
|
|
311
|
+
function z(t, ...e) {
|
|
312
|
+
let r = t[0] ?? "";
|
|
299
313
|
for (let n = 0; n < e.length; n += 1)
|
|
300
|
-
|
|
301
|
-
return
|
|
314
|
+
r += String(e[n]) + (t[n + 1] ?? "");
|
|
315
|
+
return r;
|
|
302
316
|
}
|
|
303
|
-
async function
|
|
304
|
-
switch (
|
|
317
|
+
async function V(t) {
|
|
318
|
+
switch (S(t?.surface)) {
|
|
305
319
|
case h.OpenAI:
|
|
306
|
-
return new
|
|
320
|
+
return new b();
|
|
307
321
|
case h.WebApp:
|
|
308
322
|
case h.MicroFrontend:
|
|
309
|
-
return new
|
|
323
|
+
return new W(t?.webapp);
|
|
310
324
|
case h.SalesforceACC:
|
|
311
325
|
return {};
|
|
312
326
|
case h.MCPApps:
|
|
@@ -316,10 +330,10 @@ async function W(r) {
|
|
|
316
330
|
}
|
|
317
331
|
}
|
|
318
332
|
let f = null, d = null;
|
|
319
|
-
async function
|
|
333
|
+
async function J(t) {
|
|
320
334
|
if (f)
|
|
321
335
|
return f;
|
|
322
|
-
d || (d =
|
|
336
|
+
d || (d = V(t));
|
|
323
337
|
try {
|
|
324
338
|
return f = await d, f;
|
|
325
339
|
} catch (e) {
|
|
@@ -327,7 +341,7 @@ async function z(r) {
|
|
|
327
341
|
}
|
|
328
342
|
}
|
|
329
343
|
export {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
344
|
+
V as createDataSDK,
|
|
345
|
+
J as getDataSDK,
|
|
346
|
+
z as gql
|
|
333
347
|
};
|
package/dist/webapp/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const API_VERSION: string;
|
|
|
5
5
|
* Data SDK implementation for web apps, which is based on making `fetch` calls to REST endpoints
|
|
6
6
|
*/
|
|
7
7
|
export declare class WebAppDataSDK implements DataSDK {
|
|
8
|
-
private readonly
|
|
8
|
+
private readonly baseUrl;
|
|
9
9
|
private readonly clientFetch;
|
|
10
10
|
private readonly on401?;
|
|
11
11
|
private readonly on403?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webapp/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAMrD,eAAO,MAAM,WAAW,QAA0E,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webapp/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAMrD,eAAO,MAAM,WAAW,QAA0E,CAAC;AAInG;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC5C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAe;IAC3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAgC;IACvD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAgC;gBAE3C,OAAO,CAAC,EAAE,oBAAoB;IAoBpC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAaxE,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAiBjF;;;OAGG;IACH,OAAO,CAAC,mBAAmB;CAa3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/sdk-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.98.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@conduit-client/service-fetch-network": "3.17.0",
|
|
30
30
|
"@conduit-client/utils": "3.17.0",
|
|
31
|
-
"@salesforce/sdk-core": "^1.
|
|
31
|
+
"@salesforce/sdk-core": "^1.98.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"vite": "^7.3.1",
|