@salesforce/platform-sdk 11.68.4 → 11.68.5
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/core/data.d.ts +15 -0
- package/dist/core/data.d.ts.map +1 -1
- package/dist/data/extensions/index.js +7 -7
- package/dist/data/extensions/labels/query.d.ts.map +1 -1
- package/dist/data/index.js +132 -121
- package/dist/data/shared/graphql/cache/command.d.ts.map +1 -1
- package/dist/data/shared/graphql/cache/invoker.d.ts +1 -1
- package/dist/data/shared/graphql/cache/invoker.d.ts.map +1 -1
- package/dist/data/shared/graphql/graphql-parse.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/core/data.d.ts
CHANGED
|
@@ -14,6 +14,21 @@ export interface GraphQLError {
|
|
|
14
14
|
column: number;
|
|
15
15
|
}[];
|
|
16
16
|
path?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Open, free-form error metadata map — the GraphQL `extensions` slot. Kept as
|
|
19
|
+
* an unconstrained `Record` (matching the wire's own `GraphQLErrorShape`) so
|
|
20
|
+
* the public type mirrors the pass-through behavior: server-returned errors
|
|
21
|
+
* carry whatever `extensions` the resolver attached, verbatim, with no key or
|
|
22
|
+
* value shape assumed.
|
|
23
|
+
*
|
|
24
|
+
* The one entry the SDK itself sets is `code: "CACHE_MISS"`, synthesized for a
|
|
25
|
+
* cache-control `only-if-cached` miss (see `invokeResourceGraphQL`). Callers
|
|
26
|
+
* discriminate with `errors?.[0]?.extensions?.code === "CACHE_MISS"`. Every
|
|
27
|
+
* other SDK-synthesized failure (invalid operation kind, malformed query,
|
|
28
|
+
* non-serializable variables, network failure) sets no `code` and must be told
|
|
29
|
+
* apart by `message` text.
|
|
30
|
+
*/
|
|
31
|
+
extensions?: Record<string, unknown>;
|
|
17
32
|
}
|
|
18
33
|
/**
|
|
19
34
|
* The raw GraphQL response envelope containing data and optional errors.
|
package/dist/core/data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/core/data.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src/core/data.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACxB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yCAAyC;IACzC,OAAO,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;GAEG;AACH,MAAM,M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AYG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC;CAChC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9F;AAED;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACvB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACrB"}
|
|
@@ -17,7 +17,7 @@ function L(n) {
|
|
|
17
17
|
}
|
|
18
18
|
function d(n) {
|
|
19
19
|
const e = n.extensions?.code;
|
|
20
|
-
return e
|
|
20
|
+
return typeof e == "string" && E.has(e) && L(n);
|
|
21
21
|
}
|
|
22
22
|
const h = 100;
|
|
23
23
|
function y(n, e) {
|
|
@@ -26,7 +26,7 @@ function y(n, e) {
|
|
|
26
26
|
l.push(s.slice(r, r + e));
|
|
27
27
|
return l;
|
|
28
28
|
}
|
|
29
|
-
async function
|
|
29
|
+
async function g(n, e, s, l, r) {
|
|
30
30
|
const t = { names: s, fallback: r };
|
|
31
31
|
e != null && (t.namespace = e), l != null && (t.locale = l);
|
|
32
32
|
const a = await n.query({
|
|
@@ -43,9 +43,9 @@ async function A(n, e, s, l, r) {
|
|
|
43
43
|
);
|
|
44
44
|
return c;
|
|
45
45
|
}
|
|
46
|
-
async function
|
|
46
|
+
async function A(n, e, s, l, r) {
|
|
47
47
|
const t = y(s, h), a = await Promise.all(
|
|
48
|
-
t.map((c) =>
|
|
48
|
+
t.map((c) => g(n, e, c, l, r))
|
|
49
49
|
), o = {};
|
|
50
50
|
for (const c of a)
|
|
51
51
|
for (const i of c)
|
|
@@ -56,7 +56,7 @@ function u(n) {
|
|
|
56
56
|
const e = n?.trim();
|
|
57
57
|
return e || void 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function _(n = {}) {
|
|
60
60
|
const e = { ...n };
|
|
61
61
|
return b({
|
|
62
62
|
name: "labels",
|
|
@@ -66,7 +66,7 @@ function g(n = {}) {
|
|
|
66
66
|
return {};
|
|
67
67
|
const r = async (t, a) => {
|
|
68
68
|
const o = u(a?.namespace) ?? u(e.namespace), c = u(a?.locale) ?? u(e.locale), i = a?.fallback ?? e.fallback ?? m;
|
|
69
|
-
return
|
|
69
|
+
return A(l, o, t, c, i);
|
|
70
70
|
};
|
|
71
71
|
return {
|
|
72
72
|
async get(t, a) {
|
|
@@ -80,5 +80,5 @@ function g(n = {}) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
_ as labels
|
|
84
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/data/extensions/labels/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,eAAe,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,MAAM,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/data/extensions/labels/query.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,eAAe,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,MAAM,CAAC;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,aAA4B,CAAC;AAuHlE,oEAAoE;AACpE,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AA6D/C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,aAAa,CAClC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,QAAQ,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAuBjC"}
|
package/dist/data/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as U, S as y } from "../surface-Dd2tqrPi.js";
|
|
2
2
|
import { w as Q } from "../sdk-promise-D0sy7OW1.js";
|
|
3
3
|
import { c as V } from "../extension-factory-CJkfM4km.js";
|
|
4
|
-
import { buildServiceDescriptor as
|
|
4
|
+
import { buildServiceDescriptor as R, setHeader as b } from "@conduit-client/service-fetch-network/v1";
|
|
5
5
|
import { resolvedPromiseLike as u, ok as C, err as D, stableJSONStringify as K, DataNotFoundError as j, UserVisibleError as z, deepFreeze as w, isUserVisibleError as W } from "@conduit-client/utils";
|
|
6
6
|
import { print as q, parse as J } from "@conduit-client/onestore-graphql-parser/v1";
|
|
7
7
|
import { RetryPolicy as B, buildServiceDescriptor as X } from "@conduit-client/service-retry/v1";
|
|
@@ -25,7 +25,7 @@ function se(t) {
|
|
|
25
25
|
}
|
|
26
26
|
function ae(t, e) {
|
|
27
27
|
const r = [];
|
|
28
|
-
return t && r.push(ne(t)), e && r.push(se(e)),
|
|
28
|
+
return t && r.push(ne(t)), e && r.push(se(e)), R({
|
|
29
29
|
request: r
|
|
30
30
|
}).service;
|
|
31
31
|
}
|
|
@@ -46,9 +46,9 @@ function $(t, e) {
|
|
|
46
46
|
const r = { ...t }, n = /* @__PURE__ */ new Map();
|
|
47
47
|
for (const a of Object.keys(r)) n.set(a.toLowerCase(), a);
|
|
48
48
|
const s = /* @__PURE__ */ new Set();
|
|
49
|
-
for (const [a,
|
|
50
|
-
const
|
|
51
|
-
c === void 0 ? (r[a] =
|
|
49
|
+
for (const [a, o] of ie(e)) {
|
|
50
|
+
const i = a.toLowerCase(), c = n.get(i);
|
|
51
|
+
c === void 0 ? (r[a] = o, n.set(i, a), s.add(i)) : s.has(i) ? r[c] = `${r[c]}, ${o}` : (r[c] = o, s.add(i));
|
|
52
52
|
}
|
|
53
53
|
return r;
|
|
54
54
|
}
|
|
@@ -66,7 +66,7 @@ const ue = 512;
|
|
|
66
66
|
function he(t) {
|
|
67
67
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
68
68
|
}
|
|
69
|
-
class
|
|
69
|
+
class A extends Error {
|
|
70
70
|
status;
|
|
71
71
|
url;
|
|
72
72
|
constructor(e) {
|
|
@@ -82,10 +82,10 @@ async function M(t, e, r) {
|
|
|
82
82
|
try {
|
|
83
83
|
s = JSON.parse(n);
|
|
84
84
|
} catch (a) {
|
|
85
|
-
throw new
|
|
85
|
+
throw new A({ surface: e, url: r, status: t.status, body: n, cause: a });
|
|
86
86
|
}
|
|
87
87
|
if (s === null || typeof s != "object")
|
|
88
|
-
throw new
|
|
88
|
+
throw new A({
|
|
89
89
|
surface: e,
|
|
90
90
|
url: r,
|
|
91
91
|
status: t.status,
|
|
@@ -94,7 +94,7 @@ async function M(t, e, r) {
|
|
|
94
94
|
});
|
|
95
95
|
return s;
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const S = () => {
|
|
98
98
|
}, O = async () => {
|
|
99
99
|
};
|
|
100
100
|
function N(t) {
|
|
@@ -118,22 +118,22 @@ function p(t) {
|
|
|
118
118
|
}
|
|
119
119
|
return t instanceof Error ? [{ message: t.message }] : typeof t == "string" ? [{ message: t }] : [{ message: "Unknown error" }];
|
|
120
120
|
}
|
|
121
|
-
async function
|
|
121
|
+
async function I(t, { mutation: e, variables: r, operationName: n, headers: s }) {
|
|
122
122
|
const a = N(e);
|
|
123
123
|
if (a.isErr()) return { data: void 0, errors: a.error };
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
124
|
+
const o = a.value, i = k(o, n);
|
|
125
|
+
if (i !== "mutation")
|
|
126
126
|
return {
|
|
127
127
|
data: void 0,
|
|
128
128
|
errors: [
|
|
129
129
|
{
|
|
130
|
-
message: `DataSDK.graphql.mutate() requires a GraphQL mutation, received ${
|
|
130
|
+
message: `DataSDK.graphql.mutate() requires a GraphQL mutation, received ${i}.`
|
|
131
131
|
}
|
|
132
132
|
]
|
|
133
133
|
};
|
|
134
134
|
try {
|
|
135
135
|
const c = await t({
|
|
136
|
-
query: q(
|
|
136
|
+
query: q(o),
|
|
137
137
|
variables: r,
|
|
138
138
|
operationName: n,
|
|
139
139
|
headers: s
|
|
@@ -146,36 +146,36 @@ async function G(t, { mutation: e, variables: r, operationName: n, headers: s })
|
|
|
146
146
|
return { data: void 0, errors: p(c) };
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
function e(n, s, a,
|
|
149
|
+
function G(t) {
|
|
150
|
+
function e(n, s, a, o) {
|
|
151
151
|
return t({
|
|
152
152
|
query: q(n),
|
|
153
153
|
variables: s,
|
|
154
154
|
operationName: a,
|
|
155
|
-
headers:
|
|
155
|
+
headers: o
|
|
156
156
|
}).then(
|
|
157
|
-
(
|
|
158
|
-
data:
|
|
159
|
-
errors:
|
|
157
|
+
(i) => ({
|
|
158
|
+
data: i.data ?? void 0,
|
|
159
|
+
errors: i.errors
|
|
160
160
|
}),
|
|
161
|
-
(
|
|
161
|
+
(i) => ({ data: void 0, errors: p(i) })
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
async function r({
|
|
165
165
|
query: n,
|
|
166
166
|
variables: s,
|
|
167
167
|
operationName: a,
|
|
168
|
-
headers:
|
|
168
|
+
headers: o
|
|
169
169
|
}) {
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
170
|
+
const i = N(n);
|
|
171
|
+
if (i.isErr())
|
|
172
172
|
return {
|
|
173
173
|
data: void 0,
|
|
174
|
-
errors:
|
|
175
|
-
subscribe: () =>
|
|
174
|
+
errors: i.error,
|
|
175
|
+
subscribe: () => S,
|
|
176
176
|
refresh: O
|
|
177
177
|
};
|
|
178
|
-
const c =
|
|
178
|
+
const c = i.value, l = k(c, a);
|
|
179
179
|
if (l !== "query")
|
|
180
180
|
return {
|
|
181
181
|
data: void 0,
|
|
@@ -184,10 +184,10 @@ function I(t) {
|
|
|
184
184
|
message: `DataSDK.graphql.query() requires a GraphQL query, received ${l}.`
|
|
185
185
|
}
|
|
186
186
|
],
|
|
187
|
-
subscribe: () =>
|
|
187
|
+
subscribe: () => S,
|
|
188
188
|
refresh: O
|
|
189
189
|
};
|
|
190
|
-
const h = /* @__PURE__ */ new Set(), f = s, m = await e(c, f, a,
|
|
190
|
+
const h = /* @__PURE__ */ new Set(), f = s, m = await e(c, f, a, o);
|
|
191
191
|
return {
|
|
192
192
|
data: m.data,
|
|
193
193
|
errors: m.errors,
|
|
@@ -197,18 +197,18 @@ function I(t) {
|
|
|
197
197
|
};
|
|
198
198
|
},
|
|
199
199
|
async refresh() {
|
|
200
|
-
const d = await e(c, f, a,
|
|
201
|
-
for (const
|
|
200
|
+
const d = await e(c, f, a, o);
|
|
201
|
+
for (const v of h) v(d);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
return {
|
|
206
206
|
query: r,
|
|
207
|
-
mutate: (n) =>
|
|
207
|
+
mutate: (n) => I(t, n)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
const le = typeof __SF_API_VERSION__ < "u" ? __SF_API_VERSION__ : "65.0";
|
|
211
|
-
function
|
|
211
|
+
function H(t = le) {
|
|
212
212
|
return `/services/data/v${t}`;
|
|
213
213
|
}
|
|
214
214
|
const de = {
|
|
@@ -221,7 +221,7 @@ class pe {
|
|
|
221
221
|
graphql;
|
|
222
222
|
constructor(e) {
|
|
223
223
|
const r = fe(), n = me(e?.instanceUrl ?? r.instanceUrl), s = e?.accessToken ?? r.accessToken;
|
|
224
|
-
this.pathData =
|
|
224
|
+
this.pathData = H(e?.apiVersion ?? r.apiVersion), this.clientFetch = ae(n || void 0, s), this.graphql = G(this.executeRawGraphQL.bind(this));
|
|
225
225
|
}
|
|
226
226
|
async executeRawGraphQL({
|
|
227
227
|
query: e,
|
|
@@ -229,12 +229,12 @@ class pe {
|
|
|
229
229
|
operationName: n,
|
|
230
230
|
headers: s
|
|
231
231
|
}) {
|
|
232
|
-
const a = `${this.pathData}/graphql`,
|
|
232
|
+
const a = `${this.pathData}/graphql`, o = await this.clientFetch(a, {
|
|
233
233
|
method: "POST",
|
|
234
234
|
body: JSON.stringify({ query: e, variables: r, operationName: n }),
|
|
235
235
|
headers: $(de, s)
|
|
236
236
|
});
|
|
237
|
-
return M(
|
|
237
|
+
return M(o, "Mosaic", a);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function fe() {
|
|
@@ -254,7 +254,7 @@ const ye = "graphqlQuery";
|
|
|
254
254
|
class be {
|
|
255
255
|
graphql;
|
|
256
256
|
constructor() {
|
|
257
|
-
this.graphql =
|
|
257
|
+
this.graphql = G(this.executeRawGraphQL.bind(this));
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
260
|
* The `headers` request option is intentionally not forwarded: this surface
|
|
@@ -273,21 +273,21 @@ class be {
|
|
|
273
273
|
})).structuredContent;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
const
|
|
276
|
+
const E = "Accept-Language", we = (t) => {
|
|
277
277
|
const e = globalThis.SFDC_ENV?.language;
|
|
278
278
|
if (!e)
|
|
279
279
|
return u(t);
|
|
280
280
|
const [r, n] = t;
|
|
281
|
-
return (r instanceof Request && !n?.headers ? r.headers.has(
|
|
282
|
-
},
|
|
283
|
-
let e = b(
|
|
284
|
-
return e = b(
|
|
281
|
+
return (r instanceof Request && !n?.headers ? r.headers.has(E) : new Headers(n?.headers).has(E)) ? u(t) : u(b(E, e, t));
|
|
282
|
+
}, Se = "X-SFDC-Client-Name", ve = "X-SFDC-Client-Version", Ee = "@salesforce/platform-sdk", ge = "11.68.5", Ce = (t) => {
|
|
283
|
+
let e = b(Se, Ee, t);
|
|
284
|
+
return e = b(ve, ge, e), u(e);
|
|
285
285
|
}, De = "X-CSRF-Token";
|
|
286
286
|
function Oe(t, e = {}) {
|
|
287
287
|
const { protectedUrls: r = [], alwaysProtectedUrls: n = [] } = e;
|
|
288
288
|
return async (s) => {
|
|
289
|
-
const [a,
|
|
290
|
-
if (
|
|
289
|
+
const [a, o] = s, i = a instanceof Request ? a.url : a instanceof URL ? a.href : a, c = o?.method ?? (a instanceof Request ? a.method : void 0) ?? "GET";
|
|
290
|
+
if (_(n, i) || qe(c) && _(r, i)) {
|
|
291
291
|
const h = await t.getToken();
|
|
292
292
|
s = b(De, h, s);
|
|
293
293
|
}
|
|
@@ -298,7 +298,7 @@ function qe(t) {
|
|
|
298
298
|
const e = t.toLowerCase();
|
|
299
299
|
return e === "post" || e === "put" || e === "patch" || e === "delete";
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function _(t, e) {
|
|
302
302
|
const r = new URL(e, globalThis.location?.href ?? "http://localhost");
|
|
303
303
|
return t.some((n) => r.pathname.includes(n));
|
|
304
304
|
}
|
|
@@ -311,7 +311,7 @@ function Ne(t, e = {}) {
|
|
|
311
311
|
return (s, a) => a ? a.applyRetry(async () => n(s)) : n(s);
|
|
312
312
|
}
|
|
313
313
|
const ke = [400, 401, 403];
|
|
314
|
-
class
|
|
314
|
+
class Ae extends B {
|
|
315
315
|
constructor(e) {
|
|
316
316
|
super(e), this.csrfTokenManager = e;
|
|
317
317
|
}
|
|
@@ -337,7 +337,7 @@ class Pe extends B {
|
|
|
337
337
|
await this.csrfTokenManager.refreshToken();
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
class
|
|
340
|
+
class _e {
|
|
341
341
|
constructor(e, r) {
|
|
342
342
|
this.endpoint = e, this.cacheName = r, this.tokenPromise = this.obtainToken();
|
|
343
343
|
}
|
|
@@ -385,29 +385,29 @@ class Te {
|
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const P = /* @__PURE__ */ new Map();
|
|
389
|
+
function Pe(t) {
|
|
390
390
|
const { endpoint: e, cacheName: r, ...n } = t.csrf;
|
|
391
|
-
let s =
|
|
392
|
-
return s || (s = new
|
|
391
|
+
let s = P.get(e);
|
|
392
|
+
return s || (s = new _e(e, r), P.set(e, s)), R(
|
|
393
393
|
{
|
|
394
394
|
retry: Ne(s, n),
|
|
395
395
|
request: [Ce, we]
|
|
396
396
|
},
|
|
397
|
-
X(new
|
|
397
|
+
X(new Ae(s)).service
|
|
398
398
|
).service;
|
|
399
399
|
}
|
|
400
|
-
const
|
|
401
|
-
function
|
|
402
|
-
let e =
|
|
400
|
+
const T = /* @__PURE__ */ new Map();
|
|
401
|
+
function Te(t) {
|
|
402
|
+
let e = T.get(t);
|
|
403
403
|
if (!e) {
|
|
404
404
|
const r = Y().service, n = ee(r).service, s = Z(r, n).service, a = te().service;
|
|
405
|
-
e = { cache: r, cacheController: s, pubSub: a },
|
|
405
|
+
e = { cache: r, cacheController: s, pubSub: a }, T.set(t, e);
|
|
406
406
|
}
|
|
407
407
|
return e;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
const r =
|
|
409
|
+
function xe(t, e) {
|
|
410
|
+
const r = Te(t);
|
|
411
411
|
return {
|
|
412
412
|
shared: r,
|
|
413
413
|
services: {
|
|
@@ -417,8 +417,8 @@ function Re(t, e) {
|
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
const
|
|
421
|
-
function
|
|
420
|
+
const x = 300;
|
|
421
|
+
function Re(t, e) {
|
|
422
422
|
try {
|
|
423
423
|
return JSON.parse(JSON.stringify(t));
|
|
424
424
|
} catch (r) {
|
|
@@ -431,13 +431,13 @@ function _e(t, e) {
|
|
|
431
431
|
function $e(t) {
|
|
432
432
|
if (typeof t == "object" && t.type === "max-age") {
|
|
433
433
|
const e = t.maxAge;
|
|
434
|
-
return Number.isFinite(e) && e >= 0 ? e :
|
|
434
|
+
return Number.isFinite(e) && e >= 0 ? e : x;
|
|
435
435
|
}
|
|
436
|
-
return
|
|
436
|
+
return x;
|
|
437
437
|
}
|
|
438
438
|
class Le extends re {
|
|
439
439
|
constructor(e, r, n) {
|
|
440
|
-
super(r), this.url = n, this.query = e.query, this.normalizedOperationName = e.operationName ?? "", this.normalizedVariables =
|
|
440
|
+
super(r), this.url = n, this.query = e.query, this.normalizedOperationName = e.operationName ?? "", this.normalizedVariables = Re(
|
|
441
441
|
e.variables ?? {},
|
|
442
442
|
this.normalizedOperationName
|
|
443
443
|
), this.cacheControl = e.cacheControl, this.resolvedMaxAge = $e(e.cacheControl), this.headers = e.headers, this.headersKey = ce(e.headers);
|
|
@@ -486,7 +486,9 @@ class Le extends re {
|
|
|
486
486
|
*/
|
|
487
487
|
readFromCache(e) {
|
|
488
488
|
const r = this.buildKey(), n = e.get(r)?.value;
|
|
489
|
-
return n === void 0 ? u(
|
|
489
|
+
return n === void 0 ? u(
|
|
490
|
+
D(new j("No cached entry found for this query."))
|
|
491
|
+
) : u(C(n));
|
|
490
492
|
}
|
|
491
493
|
writeToCache(e, r) {
|
|
492
494
|
if (r.isOk() && r.value.data != null && Object.keys(r.value.data).length > 0) {
|
|
@@ -519,52 +521,61 @@ class Le extends re {
|
|
|
519
521
|
return this.responseHasErrors(e) ? D(new z(e)) : C(e);
|
|
520
522
|
}
|
|
521
523
|
}
|
|
522
|
-
|
|
524
|
+
const Me = "CACHE_MISS";
|
|
525
|
+
function Ie() {
|
|
526
|
+
return [
|
|
527
|
+
{
|
|
528
|
+
message: "No cached entry found for this query (cacheControl: 'only-if-cached').",
|
|
529
|
+
extensions: { code: Me }
|
|
530
|
+
}
|
|
531
|
+
];
|
|
532
|
+
}
|
|
533
|
+
function F(t) {
|
|
523
534
|
if (W(t) && t.data && typeof t.data == "object") {
|
|
524
535
|
const e = t.data;
|
|
525
536
|
if (e.data != null)
|
|
526
537
|
return e.data;
|
|
527
538
|
}
|
|
528
539
|
}
|
|
529
|
-
function
|
|
540
|
+
function Ge(t) {
|
|
530
541
|
return (e) => {
|
|
531
542
|
if (e.isOk()) {
|
|
532
543
|
const r = e.value;
|
|
533
544
|
w(r), t({ data: r, errors: void 0 });
|
|
534
545
|
} else {
|
|
535
|
-
const r =
|
|
546
|
+
const r = F(e.error);
|
|
536
547
|
r && w(r), t({ data: r, errors: p(e.error) });
|
|
537
548
|
}
|
|
538
549
|
};
|
|
539
550
|
}
|
|
540
|
-
async function
|
|
541
|
-
let
|
|
551
|
+
async function He(t, e = !1) {
|
|
552
|
+
let r, n, s;
|
|
542
553
|
try {
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
} catch (
|
|
546
|
-
|
|
554
|
+
const a = await t.execute();
|
|
555
|
+
a.isOk() ? (r = a.value.data, w(r), s = (o) => a.value.subscribe(o)) : (r = F(a.error.failure), r && w(r), n = e && r === void 0 ? Ie() : p(a.error.failure), s = (o) => a.error.subscribe(o));
|
|
556
|
+
} catch (a) {
|
|
557
|
+
n = p(a);
|
|
547
558
|
}
|
|
548
559
|
return {
|
|
549
|
-
data:
|
|
550
|
-
errors:
|
|
551
|
-
subscribe(
|
|
552
|
-
return
|
|
560
|
+
data: r,
|
|
561
|
+
errors: n,
|
|
562
|
+
subscribe(a) {
|
|
563
|
+
return s ? s(Ge(a)) : S;
|
|
553
564
|
},
|
|
554
565
|
async refresh() {
|
|
555
566
|
await t.refresh();
|
|
556
567
|
}
|
|
557
568
|
};
|
|
558
569
|
}
|
|
559
|
-
function
|
|
570
|
+
function g(t) {
|
|
560
571
|
return {
|
|
561
572
|
data: void 0,
|
|
562
573
|
errors: t,
|
|
563
|
-
subscribe: () =>
|
|
574
|
+
subscribe: () => S,
|
|
564
575
|
refresh: O
|
|
565
576
|
};
|
|
566
577
|
}
|
|
567
|
-
function
|
|
578
|
+
function Fe({
|
|
568
579
|
bundle: t,
|
|
569
580
|
url: e,
|
|
570
581
|
executeRaw: r
|
|
@@ -572,16 +583,16 @@ function Ie({
|
|
|
572
583
|
const { services: n } = t;
|
|
573
584
|
async function s({
|
|
574
585
|
query: a,
|
|
575
|
-
variables:
|
|
576
|
-
operationName:
|
|
586
|
+
variables: o,
|
|
587
|
+
operationName: i,
|
|
577
588
|
cacheControl: c,
|
|
578
589
|
headers: l
|
|
579
590
|
}) {
|
|
580
591
|
const h = N(a);
|
|
581
|
-
if (h.isErr()) return
|
|
582
|
-
const f = h.value, m = k(f,
|
|
592
|
+
if (h.isErr()) return g(h.error);
|
|
593
|
+
const f = h.value, m = k(f, i);
|
|
583
594
|
if (m !== "query")
|
|
584
|
-
return
|
|
595
|
+
return g([
|
|
585
596
|
{
|
|
586
597
|
message: `DataSDK.graphql.query() requires a GraphQL query, received ${m}.`
|
|
587
598
|
}
|
|
@@ -591,46 +602,46 @@ function Ie({
|
|
|
591
602
|
d = new Le(
|
|
592
603
|
{
|
|
593
604
|
query: q(f),
|
|
594
|
-
variables:
|
|
595
|
-
operationName:
|
|
605
|
+
variables: o,
|
|
606
|
+
operationName: i,
|
|
596
607
|
cacheControl: c,
|
|
597
608
|
headers: l
|
|
598
609
|
},
|
|
599
610
|
n,
|
|
600
611
|
e
|
|
601
612
|
);
|
|
602
|
-
} catch (
|
|
603
|
-
return
|
|
613
|
+
} catch (v) {
|
|
614
|
+
return g(p(v));
|
|
604
615
|
}
|
|
605
|
-
return
|
|
616
|
+
return He(d, c === "only-if-cached");
|
|
606
617
|
}
|
|
607
618
|
return {
|
|
608
619
|
query: s,
|
|
609
|
-
mutate: (a) =>
|
|
620
|
+
mutate: (a) => I(r, a)
|
|
610
621
|
};
|
|
611
622
|
}
|
|
612
|
-
const
|
|
613
|
-
class
|
|
623
|
+
const Ue = 1, Qe = `@salesforce/platform-sdk-data_v${Ue}`;
|
|
624
|
+
class Ve {
|
|
614
625
|
baseUrl;
|
|
615
626
|
pathData;
|
|
616
627
|
clientFetch;
|
|
617
628
|
onStatus;
|
|
618
629
|
graphql;
|
|
619
630
|
constructor(e) {
|
|
620
|
-
const r =
|
|
621
|
-
this.baseUrl =
|
|
631
|
+
const r = Ke();
|
|
632
|
+
this.baseUrl = je(e?.basePath ?? r.apiPath), this.pathData = H(e?.apiVersion);
|
|
622
633
|
const n = `${this.pathData}/ui-api`, s = `${this.pathData}/graphql`;
|
|
623
|
-
this.onStatus = e?.onStatus ?? {}, this.clientFetch =
|
|
634
|
+
this.onStatus = e?.onStatus ?? {}, this.clientFetch = Pe({
|
|
624
635
|
csrf: {
|
|
625
636
|
endpoint: `${this.baseUrl}${n}/session/csrf`,
|
|
626
|
-
cacheName:
|
|
637
|
+
cacheName: Qe,
|
|
627
638
|
protectedUrls: ["services/data/v", "services/apexrest"],
|
|
628
639
|
alwaysProtectedUrls: ["services/apexrest"]
|
|
629
640
|
}
|
|
630
641
|
});
|
|
631
|
-
const a = (
|
|
632
|
-
this.graphql =
|
|
633
|
-
bundle:
|
|
642
|
+
const a = (i, c) => this.fetch(i, c), o = xe(`${this.baseUrl}${this.pathData}`, a);
|
|
643
|
+
this.graphql = Fe({
|
|
644
|
+
bundle: o,
|
|
634
645
|
url: s,
|
|
635
646
|
executeRaw: this.executeRawGraphQL.bind(this)
|
|
636
647
|
});
|
|
@@ -651,12 +662,12 @@ class Ue {
|
|
|
651
662
|
operationName: n,
|
|
652
663
|
headers: s
|
|
653
664
|
}) {
|
|
654
|
-
const a = `${this.pathData}/graphql`,
|
|
665
|
+
const a = `${this.pathData}/graphql`, o = await this.fetch(a, {
|
|
655
666
|
method: "POST",
|
|
656
667
|
body: JSON.stringify({ query: e, variables: r, operationName: n }),
|
|
657
668
|
headers: L(s)
|
|
658
669
|
});
|
|
659
|
-
return M(
|
|
670
|
+
return M(o, "WebApp", a);
|
|
660
671
|
}
|
|
661
672
|
/**
|
|
662
673
|
* If the url is relative, convert to it to an absolute Salesforce URL. This is due to the way Code
|
|
@@ -672,17 +683,17 @@ class Ue {
|
|
|
672
683
|
return e;
|
|
673
684
|
}
|
|
674
685
|
}
|
|
675
|
-
function
|
|
686
|
+
function Ke() {
|
|
676
687
|
return {
|
|
677
688
|
apiPath: globalThis.SFDC_ENV?.apiPath
|
|
678
689
|
};
|
|
679
690
|
}
|
|
680
|
-
function
|
|
691
|
+
function je(t) {
|
|
681
692
|
if (!t || t === "/") return "";
|
|
682
693
|
let e = t;
|
|
683
694
|
return e.startsWith("/") || (e = `/${e}`), e.endsWith("/") && (e = e.slice(0, -1)), e;
|
|
684
695
|
}
|
|
685
|
-
function
|
|
696
|
+
function ze(t) {
|
|
686
697
|
const e = typeof t == "object" && t !== null && "setup" in t, r = e ? t : t.extension, n = e ? r?.name : t.as;
|
|
687
698
|
if (typeof r?.setup != "function")
|
|
688
699
|
throw new Error("Extension entry cannot attach: it is missing a setup function.");
|
|
@@ -692,7 +703,7 @@ function Ke(t) {
|
|
|
692
703
|
);
|
|
693
704
|
return { extension: r, mountName: n };
|
|
694
705
|
}
|
|
695
|
-
async function
|
|
706
|
+
async function We(t, e) {
|
|
696
707
|
if (e.length === 0)
|
|
697
708
|
return t;
|
|
698
709
|
if ("ext" in t)
|
|
@@ -707,18 +718,18 @@ async function je(t, e) {
|
|
|
707
718
|
configurable: !1
|
|
708
719
|
});
|
|
709
720
|
for (const s of e) {
|
|
710
|
-
const { extension: a, mountName:
|
|
711
|
-
if (Object.hasOwn(n,
|
|
721
|
+
const { extension: a, mountName: o } = ze(s), i = o === a.name ? `"${a.name}"` : `"${a.name}" (aliased as "${o}")`;
|
|
722
|
+
if (Object.hasOwn(n, o))
|
|
712
723
|
throw new Error(
|
|
713
|
-
`Extension ${
|
|
724
|
+
`Extension ${i} cannot attach: "${o}" is already defined by another extension.`
|
|
714
725
|
);
|
|
715
726
|
let c;
|
|
716
727
|
try {
|
|
717
728
|
c = await a.setup(r);
|
|
718
729
|
} catch (l) {
|
|
719
|
-
throw new Error(`Extension ${
|
|
730
|
+
throw new Error(`Extension ${i} failed during setup.`, { cause: l });
|
|
720
731
|
}
|
|
721
|
-
Object.defineProperty(n,
|
|
732
|
+
Object.defineProperty(n, o, {
|
|
722
733
|
value: c,
|
|
723
734
|
enumerable: !0,
|
|
724
735
|
writable: !0,
|
|
@@ -727,21 +738,21 @@ async function je(t, e) {
|
|
|
727
738
|
}
|
|
728
739
|
return r;
|
|
729
740
|
}
|
|
730
|
-
function
|
|
741
|
+
function ct(t, ...e) {
|
|
731
742
|
let r = t[0] ?? "";
|
|
732
743
|
for (let n = 0; n < e.length; n += 1)
|
|
733
744
|
r += String(e[n]) + (t[n + 1] ?? "");
|
|
734
745
|
return r;
|
|
735
746
|
}
|
|
736
|
-
const
|
|
737
|
-
async function
|
|
747
|
+
const ut = V();
|
|
748
|
+
async function Je(t) {
|
|
738
749
|
try {
|
|
739
750
|
switch (await U(t?.surface)) {
|
|
740
751
|
case y.OpenAI:
|
|
741
752
|
return new be();
|
|
742
753
|
case y.WebApp:
|
|
743
754
|
case y.MicroFrontend:
|
|
744
|
-
return new
|
|
755
|
+
return new Ve(t?.webapp);
|
|
745
756
|
case y.Mosaic:
|
|
746
757
|
return new pe(t?.mosaic);
|
|
747
758
|
case y.MCPApps:
|
|
@@ -753,17 +764,17 @@ async function ze(t) {
|
|
|
753
764
|
return {};
|
|
754
765
|
}
|
|
755
766
|
}
|
|
756
|
-
function
|
|
767
|
+
function ht(t) {
|
|
757
768
|
return Q(
|
|
758
769
|
(async () => {
|
|
759
|
-
const e = await
|
|
760
|
-
return
|
|
770
|
+
const e = await Je(t);
|
|
771
|
+
return We(e, t?.extensions ?? []);
|
|
761
772
|
})(),
|
|
762
773
|
"createDataSDK"
|
|
763
774
|
);
|
|
764
775
|
}
|
|
765
776
|
export {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
777
|
+
ht as createDataSDK,
|
|
778
|
+
ut as defineDataExtension,
|
|
779
|
+
ct as gql
|
|
769
780
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/data/shared/graphql/cache/command.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,KAAK,EACX,0BAA0B,EAC1B,2BAA2B,EAC3B,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAON,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAuBjF,MAAM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AC,KAAK,CAAC,CAAC;IAYtE,OAAO,CAAC,QAAQ,CAAC,GAAG;IAXrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA0B;IAC9D,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAS;IACjD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA2B;IACxD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqC;gBAG/D,MAAM,EAAE,4BAA4B,EACpC,QAAQ,EAAE,QAAQ,EACD,GAAG,EAAE,MAAM;IAe7B,SAAS,KAAK,WAAW,IAAI,UAAU,CAAC,YAAY,CAAC,CAapD;IAED,QAAQ,IAAI,MAAM;IAelB;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAetE,YAAY,CACX,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAClD,WAAW,CAAC,IAAI,CAAC;IAqBpB,SAAS,KAAK,0BAA0B,IAAI,0BAA0B,CAarE;IAED,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC;cAIrC,uBAAuB,CACzC,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,GAC1B,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;CAMxC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HttpGraphQLResourceCacheControlCommand } from './command';
|
|
2
2
|
import { QueryResult } from '../../../../core/data';
|
|
3
|
-
export declare function invokeResourceGraphQL<T>(command: HttpGraphQLResourceCacheControlCommand<Record<string, unknown
|
|
3
|
+
export declare function invokeResourceGraphQL<T>(command: HttpGraphQLResourceCacheControlCommand<Record<string, unknown>>, onlyIfCached?: boolean): Promise<QueryResult<T>>;
|
|
4
4
|
//# sourceMappingURL=invoker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoker.d.ts","sourceRoot":"","sources":["../../../../../src/data/shared/graphql/cache/invoker.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"invoker.d.ts","sourceRoot":"","sources":["../../../../../src/data/shared/graphql/cache/invoker.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,KAAK,EAAgB,WAAW,EAAmB,MAAM,uBAAuB,CAAC;AAuDxF,wBAAsB,qBAAqB,CAAC,CAAC,EAC5C,OAAO,EAAE,sCAAsC,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACxE,YAAY,UAAQ,GAClB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAuCzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-parse.d.ts","sourceRoot":"","sources":["../../../../src/data/shared/graphql/graphql-parse.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAGN,KAAK,YAAY,EAEjB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EACX,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,cAAc,EACd,WAAW,EACX,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,UAAU,EAAE,WAExB,CAAC;AAEF,eAAO,MAAM,YAAY,QAAa,OAAO,CAAC,IAAI,CAEjD,CAAC;AAEF;;;;GAIG;AACH,w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AAC,CAAC,CAAC,CAAC,CAAC;AAEjC,wBAAsB,aAAa,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjE,UAAU,EAAE,kBAAkB,EAC9B,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,GACjF,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CA8B5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/platform-sdk",
|
|
3
|
-
"version": "11.68.
|
|
3
|
+
"version": "11.68.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@conduit-client/service-pubsub": "3.19.6",
|
|
135
135
|
"@conduit-client/service-retry": "3.19.6",
|
|
136
136
|
"@conduit-client/utils": "3.19.6",
|
|
137
|
-
"@salesforce/jsonrpc": "^11.68.
|
|
137
|
+
"@salesforce/jsonrpc": "^11.68.5",
|
|
138
138
|
"@salesforce/sf-embedding-bridge": "2.2.5-rc.2"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|