@burdenoff/fe-libs 2026.601.6 → 2026.601.7
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/chrome/ProductSideNav.d.ts.map +1 -1
- package/dist/chrome/SideNavigation.d.ts.map +1 -1
- package/dist/chrome/sideNavigation/NavItemRenderer.d.ts.map +1 -1
- package/dist/shared/components/PWAInstallBanner.d.ts.map +1 -1
- package/dist/shared/graphql/client.d.ts.map +1 -1
- package/dist/shared/graphql/client.js +61 -61
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.js +120 -120
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.js +204 -169
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts +1 -1
- package/dist/shared/providers/shell/ProfileStorageManager.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileStorageManager.js +110 -102
- package/dist/shared/providers/shell/authProvider/useAuthActions.d.ts.map +1 -1
- package/dist/shared/providers/shell/authProvider/useAuthActions.js +12 -10
- package/dist/shared/providers/shell/authProvider/useTokenExpiryTimer.d.ts.map +1 -1
- package/dist/shared/providers/shell/authProvider/useTokenExpiryTimer.js +8 -8
- package/dist/shared/utils/apollo.js +1 -1
- package/dist/shared/utils/authErrorHandling.d.ts.map +1 -1
- package/dist/shared/utils/authErrorHandling.js +23 -8
- package/dist/shared/utils/backendErrors.d.ts +23 -0
- package/dist/shared/utils/backendErrors.d.ts.map +1 -1
- package/dist/shared/utils/backendErrors.js +113 -39
- package/dist/shared/utils/index.d.ts +2 -2
- package/dist/shared/utils/index.d.ts.map +1 -1
- package/dist/shared-utils.js +12 -12
- package/dist/shared.js +97 -97
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ import { getActiveWorkspaceToken as n, resolveActiveProfileId as r, setProfileWo
|
|
|
4
4
|
import { readActiveContextValueWithUrlPrecedence as a } from "../providers/shell/ActiveContextStorage.js";
|
|
5
5
|
import { getValidAccessTokenFromStorage as o, sanitizeExtraHeaders as s, sanitizeGeography as c, validateGatewayBaseUrl as l } from "./security.js";
|
|
6
6
|
import { isWorkspaceTokenValidForContext as u } from "./workspaceToken.js";
|
|
7
|
-
import { dispatchBackendErrorEvent as d } from "../utils/backendErrors.js";
|
|
7
|
+
import { dispatchBackendErrorEvent as d, markConnectionHealthy as f } from "../utils/backendErrors.js";
|
|
8
8
|
//#region src/shared/graphql/fetch.ts
|
|
9
|
-
var
|
|
10
|
-
function
|
|
9
|
+
var p = "\n mutation IssueWorkspaceToken($input: IssueWorkspaceTokenInput!) {\n issueWorkspaceToken(input: $input) {\n success\n token\n workspaceId\n error {\n message\n }\n }\n }\n", m = /* @__PURE__ */ new Map();
|
|
10
|
+
function h() {
|
|
11
11
|
try {
|
|
12
12
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
13
13
|
return e ? o(localStorage.getItem(`bf-p-${e}-tokens`)) : null;
|
|
@@ -15,21 +15,21 @@ function m() {
|
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function g() {
|
|
19
19
|
try {
|
|
20
20
|
return n();
|
|
21
21
|
} catch {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function _() {
|
|
26
26
|
try {
|
|
27
27
|
return sessionStorage.getItem("bf-active-profile");
|
|
28
28
|
} catch {
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function v(e) {
|
|
33
33
|
try {
|
|
34
34
|
let [, t] = e.split(".");
|
|
35
35
|
if (!t || typeof globalThis.atob != "function") return null;
|
|
@@ -39,11 +39,11 @@ function _(e) {
|
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
let t =
|
|
42
|
+
function y(e) {
|
|
43
|
+
let t = v(e)?.exp;
|
|
44
44
|
return typeof t == "number" ? t * 1e3 <= Date.now() + 3e4 : !1;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function b() {
|
|
47
47
|
try {
|
|
48
48
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
49
49
|
if (e) {
|
|
@@ -56,7 +56,7 @@ function y() {
|
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function x() {
|
|
60
60
|
try {
|
|
61
61
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
62
62
|
if (e) {
|
|
@@ -68,53 +68,53 @@ function b() {
|
|
|
68
68
|
return "en";
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function S() {
|
|
72
72
|
return a("workspace");
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function C() {
|
|
75
75
|
return a("organization");
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function w() {
|
|
78
78
|
return a("tenant");
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function T() {
|
|
81
81
|
return a("project");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function E() {
|
|
84
84
|
try {
|
|
85
85
|
return typeof window > "u" ? null : new URLSearchParams(window.location.search).get("org");
|
|
86
86
|
} catch {
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function D(e) {
|
|
91
91
|
return {
|
|
92
|
-
workspaceId: typeof e.workspaceId == "string" ? e.workspaceId :
|
|
93
|
-
organizationId: typeof e.organizationId == "string" ? e.organizationId :
|
|
94
|
-
tenantId: typeof e.tenantId == "string" ? e.tenantId :
|
|
95
|
-
projectId: typeof e.projectId == "string" ? e.projectId :
|
|
92
|
+
workspaceId: typeof e.workspaceId == "string" ? e.workspaceId : S() || void 0,
|
|
93
|
+
organizationId: typeof e.organizationId == "string" ? e.organizationId : C() || E() || void 0,
|
|
94
|
+
tenantId: typeof e.tenantId == "string" ? e.tenantId : w() || void 0,
|
|
95
|
+
projectId: typeof e.projectId == "string" ? e.projectId : T() || void 0
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function O(e, t, n) {
|
|
99
99
|
try {
|
|
100
|
-
let a = r() ??
|
|
100
|
+
let a = r() ?? _();
|
|
101
101
|
if (!a) return;
|
|
102
102
|
i(a, t), sessionStorage.setItem("burdenoff-active-context-workspace", e), n && sessionStorage.setItem("burdenoff-active-context-organization", n);
|
|
103
103
|
} catch {}
|
|
104
104
|
}
|
|
105
|
-
async function
|
|
105
|
+
async function k(e) {
|
|
106
106
|
let { url: t, authToken: n, workspaceId: r, organizationId: i, projectId: a, locale: o, signal: s, currentQuery: c } = e;
|
|
107
107
|
if (!n || c.includes("issueWorkspaceToken")) return null;
|
|
108
|
-
let l = r ||
|
|
108
|
+
let l = r || S();
|
|
109
109
|
if (!l) return null;
|
|
110
|
-
let d =
|
|
111
|
-
if (d &&
|
|
110
|
+
let d = g(), f = S(), h = i || C() || E();
|
|
111
|
+
if (d && f === l && u(d, {
|
|
112
112
|
workspaceId: l,
|
|
113
|
-
organizationId:
|
|
113
|
+
organizationId: h,
|
|
114
114
|
projectId: a
|
|
115
115
|
})) return d;
|
|
116
|
-
if (!
|
|
117
|
-
let _ = `${
|
|
116
|
+
if (!h) return null;
|
|
117
|
+
let _ = `${h}:${l}:${a ?? ""}`, v = m.get(_);
|
|
118
118
|
if (v) return v;
|
|
119
119
|
let y = fetch(t, {
|
|
120
120
|
method: "POST",
|
|
@@ -124,9 +124,9 @@ async function O(e) {
|
|
|
124
124
|
...o ? { "Accept-Language": o } : {}
|
|
125
125
|
},
|
|
126
126
|
body: JSON.stringify({
|
|
127
|
-
query:
|
|
127
|
+
query: p,
|
|
128
128
|
variables: { input: {
|
|
129
|
-
organizationId:
|
|
129
|
+
organizationId: h,
|
|
130
130
|
workspaceId: l,
|
|
131
131
|
...a ? { projectId: a } : {}
|
|
132
132
|
} }
|
|
@@ -134,76 +134,76 @@ async function O(e) {
|
|
|
134
134
|
signal: s
|
|
135
135
|
}).then(async (e) => {
|
|
136
136
|
let t = (await e.json()).data?.issueWorkspaceToken;
|
|
137
|
-
return t?.success && t.token ? (
|
|
137
|
+
return t?.success && t.token ? (O(t.workspaceId || l, t.token, h), t.token) : null;
|
|
138
138
|
}).catch(() => null).finally(() => {
|
|
139
|
-
|
|
139
|
+
m.delete(_);
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return m.set(_, y), y;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function A(e, n) {
|
|
144
144
|
let r = t[e], i = n || r.defaultBaseUrl;
|
|
145
145
|
return `${i.endsWith("/") ? i.slice(0, -1) : i}${r.graphql}`;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function j() {
|
|
148
148
|
return globalThis;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
let e =
|
|
150
|
+
function M() {
|
|
151
|
+
let e = j();
|
|
152
152
|
return e.__graphqlFetchQueues ||= /* @__PURE__ */ new Map(), e.__graphqlFetchQueues;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
let e =
|
|
154
|
+
function N() {
|
|
155
|
+
let e = j();
|
|
156
156
|
return e.__graphqlFetchResponseCache ||= /* @__PURE__ */ new Map(), e.__graphqlFetchResponseCache;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
let e =
|
|
158
|
+
function P() {
|
|
159
|
+
let e = j();
|
|
160
160
|
return e.__graphqlFetchPendingResponses ||= /* @__PURE__ */ new Map(), e.__graphqlFetchPendingResponses;
|
|
161
161
|
}
|
|
162
|
-
var
|
|
162
|
+
var F = 10, I = 2500, L = 100, R = 1e4, z = 15e3, B = new Set([
|
|
163
163
|
"traceparent",
|
|
164
164
|
"tracestate",
|
|
165
165
|
"baggage"
|
|
166
166
|
]);
|
|
167
|
-
function
|
|
168
|
-
if (typeof performance > "u") return
|
|
169
|
-
let e =
|
|
170
|
-
return e.__graphqlFetchBurstStartedAt ??= performance.now(), performance.now() - e.__graphqlFetchBurstStartedAt <
|
|
167
|
+
function V() {
|
|
168
|
+
if (typeof performance > "u") return L;
|
|
169
|
+
let e = j();
|
|
170
|
+
return e.__graphqlFetchBurstStartedAt ??= performance.now(), performance.now() - e.__graphqlFetchBurstStartedAt < R ? I : L;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function H(e) {
|
|
173
173
|
return typeof e.query == "string" ? /^\s*query\b/.test(e.query) : !1;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function U(e) {
|
|
176
176
|
return typeof e.operationName == "string" && e.operationName.length > 0 ? {
|
|
177
177
|
operationName: e.operationName,
|
|
178
178
|
variables: e.variables ?? null
|
|
179
179
|
} : e;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function W(e) {
|
|
182
182
|
let t = /* @__PURE__ */ new Map();
|
|
183
183
|
for (let [n, r] of Object.entries(e)) {
|
|
184
184
|
let e = n.toLowerCase();
|
|
185
|
-
|
|
185
|
+
B.has(e) || t.set(e, r);
|
|
186
186
|
}
|
|
187
187
|
return Object.fromEntries(Array.from(t.entries()).sort(([e], [t]) => e.localeCompare(t)));
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function G(t) {
|
|
190
190
|
let n = e();
|
|
191
191
|
return {
|
|
192
192
|
...t,
|
|
193
193
|
traceparent: n.traceparent
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
function G(e) {
|
|
197
|
-
return q(e) && Array.isArray(e.errors);
|
|
198
|
-
}
|
|
199
196
|
function K(e) {
|
|
197
|
+
return J(e) && Array.isArray(e.errors);
|
|
198
|
+
}
|
|
199
|
+
function q(e) {
|
|
200
200
|
let t = e.status;
|
|
201
201
|
return t === 401 ? "Invalid email or password." : t === 403 ? "You do not have permission to do that." : t === 404 ? "We could not find what you were looking for." : t === 408 || t === 504 ? "The server took too long to respond. Please try again." : t === 429 ? "Too many requests. Please wait a moment and try again." : t >= 500 && t < 600 ? "The server is having trouble right now. Please try again in a moment." : t >= 400 && t < 500 ? "The request could not be processed. Please refresh and try again." : "We could not reach the server. Please check your connection and try again.";
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function J(e) {
|
|
204
204
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
205
205
|
}
|
|
206
|
-
async function
|
|
206
|
+
async function Y(e) {
|
|
207
207
|
let t = await e.text();
|
|
208
208
|
if (!t) return null;
|
|
209
209
|
try {
|
|
@@ -212,21 +212,21 @@ async function J(e) {
|
|
|
212
212
|
return t;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
async function
|
|
215
|
+
async function X(e, t, n) {
|
|
216
216
|
if (n.length === 1) {
|
|
217
217
|
let r = n[0];
|
|
218
218
|
try {
|
|
219
219
|
let n = await fetch(e, {
|
|
220
220
|
method: "POST",
|
|
221
|
-
headers:
|
|
221
|
+
headers: G(t),
|
|
222
222
|
credentials: "include",
|
|
223
223
|
body: JSON.stringify(r.body),
|
|
224
224
|
signal: r.signal
|
|
225
|
-
}), i = await
|
|
226
|
-
if (!n.ok && !
|
|
227
|
-
r.cacheKey &&
|
|
225
|
+
}), i = await Y(n);
|
|
226
|
+
if (!n.ok && !K(i)) throw Error(q(n));
|
|
227
|
+
r.cacheKey && N().set(r.cacheKey, {
|
|
228
228
|
value: i,
|
|
229
|
-
expiresAt: Date.now() +
|
|
229
|
+
expiresAt: Date.now() + z
|
|
230
230
|
}), r.resolve(i);
|
|
231
231
|
} catch (e) {
|
|
232
232
|
r.reject(e);
|
|
@@ -237,41 +237,41 @@ async function Y(e, t, n) {
|
|
|
237
237
|
try {
|
|
238
238
|
let i = await fetch(e, {
|
|
239
239
|
method: "POST",
|
|
240
|
-
headers:
|
|
240
|
+
headers: G(t),
|
|
241
241
|
credentials: "include",
|
|
242
242
|
body: JSON.stringify(r)
|
|
243
|
-
}), a = await
|
|
244
|
-
if (!i.ok && !
|
|
243
|
+
}), a = await Y(i);
|
|
244
|
+
if (!i.ok && !K(a)) throw Error(q(i));
|
|
245
245
|
Array.isArray(a) ? a.forEach((e, t) => {
|
|
246
246
|
let r = n[t];
|
|
247
|
-
r && (r.cacheKey &&
|
|
247
|
+
r && (r.cacheKey && N().set(r.cacheKey, {
|
|
248
248
|
value: e,
|
|
249
|
-
expiresAt: Date.now() +
|
|
249
|
+
expiresAt: Date.now() + z
|
|
250
250
|
}), r.resolve(e));
|
|
251
251
|
}) : n.forEach((e) => {
|
|
252
|
-
e.cacheKey &&
|
|
252
|
+
e.cacheKey && N().set(e.cacheKey, {
|
|
253
253
|
value: a,
|
|
254
|
-
expiresAt: Date.now() +
|
|
254
|
+
expiresAt: Date.now() + z
|
|
255
255
|
}), e.resolve(a);
|
|
256
256
|
});
|
|
257
257
|
} catch (e) {
|
|
258
258
|
n.forEach((t) => t.reject(e));
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
let a =
|
|
261
|
+
function Z(e, t, n, r, i) {
|
|
262
|
+
let a = W(t), o = Math.max(1, i?.batchMax ?? F), s = Math.max(0, i?.batchInterval ?? V()), c = `${e}|${JSON.stringify(a)}`, l = H(n) ? `${c}|${JSON.stringify(U(n))}` : void 0;
|
|
263
263
|
if (l) {
|
|
264
|
-
let e =
|
|
264
|
+
let e = N(), t = e.get(l);
|
|
265
265
|
if (t) {
|
|
266
266
|
if (t.expiresAt > Date.now()) return Promise.resolve(t.value);
|
|
267
267
|
e.delete(l);
|
|
268
268
|
}
|
|
269
|
-
let n =
|
|
269
|
+
let n = P().get(l);
|
|
270
270
|
if (n) return n;
|
|
271
271
|
}
|
|
272
272
|
let u = new Promise((t, i) => {
|
|
273
273
|
if (o <= 1) {
|
|
274
|
-
|
|
274
|
+
X(e, a, [{
|
|
275
275
|
body: n,
|
|
276
276
|
resolve: t,
|
|
277
277
|
reject: i,
|
|
@@ -280,7 +280,7 @@ function X(e, t, n, r, i) {
|
|
|
280
280
|
}]);
|
|
281
281
|
return;
|
|
282
282
|
}
|
|
283
|
-
let u =
|
|
283
|
+
let u = M(), d = u.get(c);
|
|
284
284
|
if (d || (d = {
|
|
285
285
|
requests: [],
|
|
286
286
|
timer: null,
|
|
@@ -293,64 +293,64 @@ function X(e, t, n, r, i) {
|
|
|
293
293
|
signal: r,
|
|
294
294
|
cacheKey: l
|
|
295
295
|
}), d.requests.length >= d.batchMax) {
|
|
296
|
-
|
|
296
|
+
Q(e, a, c);
|
|
297
297
|
return;
|
|
298
298
|
}
|
|
299
|
-
d.timer ||= setTimeout(() =>
|
|
299
|
+
d.timer ||= setTimeout(() => Q(e, a, c), d.batchInterval);
|
|
300
300
|
});
|
|
301
|
-
return l && (
|
|
302
|
-
|
|
301
|
+
return l && (P().set(l, u), u.finally(() => {
|
|
302
|
+
P().delete(l);
|
|
303
303
|
}).catch(() => {})), u;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
let r =
|
|
307
|
-
i && (r.delete(n), i.timer &&= (clearTimeout(i.timer), null),
|
|
305
|
+
function Q(e, t, n) {
|
|
306
|
+
let r = M(), i = r.get(n);
|
|
307
|
+
i && (r.delete(n), i.timer &&= (clearTimeout(i.timer), null), X(e, t, i.requests));
|
|
308
308
|
}
|
|
309
|
-
async function
|
|
310
|
-
let { gateway: t, query: n, variables: r, operationName: i, authToken: a, workspaceToken: o, workspaceId: c, organizationId:
|
|
309
|
+
async function $(e) {
|
|
310
|
+
let { gateway: t, query: n, variables: r, operationName: i, authToken: a, workspaceToken: o, workspaceId: c, organizationId: p, tenantId: m, projectId: _, locale: v, baseUrl: S, extraHeaders: C, signal: T } = e, E = l(A(t, S)), O = a && !y(a) ? a : h(), j = v ?? x(), M = D({
|
|
311
311
|
workspaceId: c,
|
|
312
|
-
organizationId:
|
|
313
|
-
tenantId:
|
|
314
|
-
projectId:
|
|
315
|
-
}),
|
|
316
|
-
|
|
317
|
-
let
|
|
318
|
-
if (
|
|
319
|
-
let e = typeof o == "string" ? o :
|
|
320
|
-
e && !u(e,
|
|
321
|
-
url:
|
|
322
|
-
authToken:
|
|
323
|
-
workspaceId:
|
|
324
|
-
organizationId:
|
|
325
|
-
projectId:
|
|
326
|
-
locale:
|
|
327
|
-
signal:
|
|
312
|
+
organizationId: p,
|
|
313
|
+
tenantId: m,
|
|
314
|
+
projectId: _
|
|
315
|
+
}), N = { "Content-Type": "application/json" };
|
|
316
|
+
O && (N.Authorization = `Bearer ${O}`), j && (N["Accept-Language"] = j);
|
|
317
|
+
let P = b();
|
|
318
|
+
if (P?.country && (N["X-Geo-Country"] = P.country), P?.currency && (N["X-Geo-Currency"] = P.currency), P?.timezone && (N["X-Geo-Timezone"] = P.timezone), t === "workspace" ? o !== !1 : o) {
|
|
319
|
+
let e = typeof o == "string" ? o : g();
|
|
320
|
+
e && !u(e, M) && (e = null), !e && o === !0 && /^\s*mutation\b/.test(n) && (e = await k({
|
|
321
|
+
url: E,
|
|
322
|
+
authToken: O,
|
|
323
|
+
workspaceId: M.workspaceId,
|
|
324
|
+
organizationId: M.organizationId,
|
|
325
|
+
projectId: M.projectId,
|
|
326
|
+
locale: j,
|
|
327
|
+
signal: T,
|
|
328
328
|
currentQuery: n
|
|
329
|
-
})), e && (
|
|
329
|
+
})), e && (N["X-Workspace-Authorization"] = `Bearer ${e}`);
|
|
330
330
|
}
|
|
331
331
|
if (t === "workspace" || c) {
|
|
332
|
-
let e =
|
|
333
|
-
e && (
|
|
332
|
+
let e = M.workspaceId;
|
|
333
|
+
e && (N["x-workspace-id"] = e);
|
|
334
334
|
}
|
|
335
|
-
if (t === "global" ||
|
|
336
|
-
let e =
|
|
337
|
-
e && (
|
|
335
|
+
if (t === "global" || p) {
|
|
336
|
+
let e = M.organizationId;
|
|
337
|
+
e && (N["x-org-id"] = e);
|
|
338
338
|
}
|
|
339
|
-
if (
|
|
340
|
-
let e = typeof
|
|
341
|
-
e && (
|
|
339
|
+
if (m) {
|
|
340
|
+
let e = typeof m == "string" ? m : w();
|
|
341
|
+
e && (N["x-tenant-id"] = e);
|
|
342
342
|
}
|
|
343
|
-
if (t === "workspace" ||
|
|
344
|
-
let e =
|
|
345
|
-
e && (
|
|
343
|
+
if (t === "workspace" || _) {
|
|
344
|
+
let e = M.projectId;
|
|
345
|
+
e && (N["x-project-id"] = e);
|
|
346
346
|
}
|
|
347
|
-
let
|
|
348
|
-
|
|
349
|
-
let
|
|
350
|
-
r && (
|
|
347
|
+
let F = s(C);
|
|
348
|
+
F && Object.assign(N, F);
|
|
349
|
+
let I = { query: n };
|
|
350
|
+
r && (I.variables = r), i && (I.operationName = i);
|
|
351
351
|
try {
|
|
352
|
-
let e = await
|
|
353
|
-
return e.errors?.length && d({ errors: e.errors }, { operationName: i }), e;
|
|
352
|
+
let e = await Z(E, N, I, T);
|
|
353
|
+
return f(), e.errors?.length && d({ errors: e.errors }, { operationName: i }), e;
|
|
354
354
|
} catch (e) {
|
|
355
355
|
throw d(e, {
|
|
356
356
|
operationName: i,
|
|
@@ -359,4 +359,4 @@ async function Q(e) {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
//#endregion
|
|
362
|
-
export {
|
|
362
|
+
export { Z as enqueueGraphQLFetch, h as getStoredAuthToken, x as getStoredLocale, C as getStoredOrganizationId, T as getStoredProjectId, S as getStoredWorkspaceId, g as getStoredWorkspaceToken, $ as graphqlFetch, A as resolveGatewayUrl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/providers/AppShellProvider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAa1F,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAYlE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,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