@ynput/ayon-frontend-shared 0.6.4 → 0.6.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/DetailsPanel.es.js +480 -477
- package/dist/ListTable.es.js +24 -25
- package/dist/NewEntity.es.js +6 -7
- package/dist/ProjectTreeTable.es.js +2016 -1996
- package/dist/Views.es.js +28 -28
- package/dist/api.es.js +291 -289
- package/dist/chunks/Actions.es.js +12 -12
- package/dist/chunks/ColumnDropIndicator.es.js +8 -9
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +31 -25
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +1 -1
- package/dist/chunks/DetailsDialog.es.js +1 -1
- package/dist/chunks/EmptyPlaceholder.es.js +13 -12
- package/dist/chunks/EntityPath.es.js +67 -67
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/EntityTooltip.es.js +8 -8
- package/dist/chunks/Feed.es.js +75 -76
- package/dist/chunks/MetaWidget.es.js +1283 -1279
- package/dist/chunks/PlayableIcon.es.js +458 -451
- package/dist/chunks/ProjectContext.es.js +20 -20
- package/dist/chunks/RepresentationsList.es.js +9 -9
- package/dist/chunks/ReviewablesSelector.es.js +1504 -1374
- package/dist/chunks/Slicer.es.js +68 -69
- package/dist/chunks/ThumbnailSimple.es.js +4 -4
- package/dist/chunks/Watchers.es.js +104 -105
- package/dist/chunks/activeEntities.es.js +58 -0
- package/dist/chunks/columnConfigConverter.es.js +57 -63
- package/dist/chunks/getUris.es.js +886 -831
- package/dist/chunks/iconUtils.es.js +151 -0
- package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
- package/dist/chunks/searchTerms.es.js +329 -247
- package/dist/chunks/useAttributeEnums.es.js +34 -34
- package/dist/chunks/viewUpdateHelper.es.js +11 -11
- package/dist/components.es.js +340 -337
- package/dist/context.es.js +48 -48
- package/dist/hooks.es.js +34 -34
- package/dist/index.es.js +1 -1
- package/dist/types/ContextMenu.d.ts +1 -1
- package/dist/types/Feed.d.ts +1 -1
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +4 -1
- package/dist/types/SimpleTable.d.ts +1 -1
- package/dist/types/Slicer.d.ts +5 -5
- package/dist/types/Views.d.ts +4 -4
- package/dist/types/api.d.ts +545 -171
- package/dist/types/components.d.ts +64 -9
- package/dist/types/context.d.ts +5 -5
- package/dist/types/util.d.ts +237 -2
- package/dist/util.es.js +127 -114
- package/package.json +1 -1
- package/dist/chunks/extractEntityHierarchyFromParents.es.js +0 -28
- package/dist/chunks/parseHtmlToPlainTextWithLinks.es.js +0 -138
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ad as
|
|
1
|
+
import { ad as Zt, aL as Se, aF as L, ae as Ne, a5 as D, bj as Ss, az as Q, av as yt, be as F, a as Ps, bi as Ls, aH as js, aA as M, aq as ue, af as Pe, ag as Fs, ai as _s, aj as Rs, al as Gs, bd as Cs, an as Ns, aB as Qs, aD as Ms, b9 as es, aI as Vs, aK as Ds, aM as X, aO as Os, aP as at, aQ as $s, a9 as ce, ar as xs, ba as Us, bb as qs, aS as Bs } from "./searchTerms.es.js";
|
|
2
2
|
import "lodash";
|
|
3
3
|
import "primereact/confirmdialog";
|
|
4
|
-
import { toast as
|
|
5
|
-
import { v4 as
|
|
6
|
-
import { R as
|
|
7
|
-
import
|
|
8
|
-
|
|
4
|
+
import { toast as ts } from "react-toastify";
|
|
5
|
+
import { v4 as Hs } from "uuid";
|
|
6
|
+
import { R as Ws, D as zs, j as H, c as U, i as pe, d as De, a as ie, w as J, h as He, g as ss } from "./realtimeUpdatesUtils.es.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import { current as Ks } from "@reduxjs/toolkit";
|
|
9
|
+
const Oe = Zt.injectEndpoints({
|
|
9
10
|
endpoints: (t) => ({
|
|
10
11
|
getProjectsAccess: t.query({
|
|
11
12
|
async queryFn({ projects: e = [] }, { dispatch: s, forced: n }) {
|
|
@@ -59,12 +60,12 @@ Oe.enhanceEndpoints({
|
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
62
|
const {
|
|
62
|
-
useGetStudioAccessGroupsQuery:
|
|
63
|
-
useGetAccessGroupsQuery:
|
|
64
|
-
useGetAccessGroupQuery:
|
|
65
|
-
useGetAccessGroupSchemaQuery:
|
|
66
|
-
useGetProjectsAccessQuery:
|
|
67
|
-
} = Oe,
|
|
63
|
+
useGetStudioAccessGroupsQuery: Pr,
|
|
64
|
+
useGetAccessGroupsQuery: Lr,
|
|
65
|
+
useGetAccessGroupQuery: jr,
|
|
66
|
+
useGetAccessGroupSchemaQuery: Fr,
|
|
67
|
+
useGetProjectsAccessQuery: _r
|
|
68
|
+
} = Oe, Js = Oe.enhanceEndpoints({
|
|
68
69
|
endpoints: {
|
|
69
70
|
setProjectsAccess: {
|
|
70
71
|
async onQueryStarted({ payload: t }, { dispatch: e, queryFulfilled: s }) {
|
|
@@ -116,15 +117,15 @@ const {
|
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
}), {
|
|
119
|
-
useSetProjectsAccessMutation:
|
|
120
|
-
useSaveAccessGroupMutation:
|
|
121
|
-
useDeleteAccessGroupMutation:
|
|
122
|
-
} =
|
|
120
|
+
useSetProjectsAccessMutation: Rr,
|
|
121
|
+
useSaveAccessGroupMutation: Gr,
|
|
122
|
+
useDeleteAccessGroupMutation: Cr
|
|
123
|
+
} = Js, Ys = Ne.enhanceEndpoints({
|
|
123
124
|
endpoints: {
|
|
124
125
|
executeAction: {},
|
|
125
126
|
listAvailableActionsForContext: {}
|
|
126
127
|
}
|
|
127
|
-
}),
|
|
128
|
+
}), Xs = Ys.injectEndpoints({
|
|
128
129
|
endpoints: (t) => ({
|
|
129
130
|
getActionsFromContext: t.query({
|
|
130
131
|
queryFn: async (e, { dispatch: s }) => {
|
|
@@ -156,30 +157,30 @@ const {
|
|
|
156
157
|
// End of endpoints
|
|
157
158
|
})
|
|
158
159
|
}), {
|
|
159
|
-
useGetActionsFromContextQuery:
|
|
160
|
-
useLazyGetActionsFromContextQuery:
|
|
161
|
-
useExecuteActionMutation:
|
|
162
|
-
useGetActionConfigQuery:
|
|
163
|
-
useSetActionConfigMutation:
|
|
164
|
-
} =
|
|
160
|
+
useGetActionsFromContextQuery: Nr,
|
|
161
|
+
useLazyGetActionsFromContextQuery: Qr,
|
|
162
|
+
useExecuteActionMutation: Mr,
|
|
163
|
+
useGetActionConfigQuery: Vr,
|
|
164
|
+
useSetActionConfigMutation: Dr
|
|
165
|
+
} = Xs, Zs = (t, e) => e.split(".").reduce((s, n) => s && s[n] !== void 0 ? s[n] : void 0, t), en = (t, e) => {
|
|
165
166
|
const s = e.split("."), n = s.pop(), i = s.reduce((r, a) => r && r[a] !== void 0 ? r[a] : void 0, t);
|
|
166
167
|
i && n && delete i[n];
|
|
167
168
|
};
|
|
168
|
-
function
|
|
169
|
+
function tn(t, e) {
|
|
169
170
|
const s = { ...t };
|
|
170
171
|
for (const [n, i] of Object.entries(e)) {
|
|
171
|
-
const r =
|
|
172
|
-
r !== void 0 && (s[i] = r,
|
|
172
|
+
const r = Zs(s, n);
|
|
173
|
+
r !== void 0 && (s[i] = r, en(s, n));
|
|
173
174
|
}
|
|
174
175
|
return s;
|
|
175
176
|
}
|
|
176
|
-
const
|
|
177
|
+
const bt = (t = [], e) => {
|
|
177
178
|
const s = [];
|
|
178
179
|
return t.forEach((n) => {
|
|
179
180
|
const i = n.node;
|
|
180
181
|
if (!i)
|
|
181
182
|
return;
|
|
182
|
-
const r = i, c =
|
|
183
|
+
const r = i, c = tn(
|
|
183
184
|
r,
|
|
184
185
|
{
|
|
185
186
|
"author.name": "authorName",
|
|
@@ -195,7 +196,7 @@ const mt = (t = [], e) => {
|
|
|
195
196
|
}
|
|
196
197
|
s.push(c);
|
|
197
198
|
}), { activities: s, pageInfo: e };
|
|
198
|
-
},
|
|
199
|
+
}, sn = (t) => {
|
|
199
200
|
const {
|
|
200
201
|
id: e,
|
|
201
202
|
label: s,
|
|
@@ -222,7 +223,7 @@ const mt = (t = [], e) => {
|
|
|
222
223
|
users: c?.map((p) => ({ name: p, avatarUrl: `/api/users/${p}/avatar` })) || [],
|
|
223
224
|
path: o?.path.split("/").splice(-2, 1).join("")
|
|
224
225
|
};
|
|
225
|
-
},
|
|
226
|
+
}, nn = (t) => {
|
|
226
227
|
const { id: e, name: s, status: n, thumbnailId: i, author: r, updatedAt: a, product: c } = t;
|
|
227
228
|
return {
|
|
228
229
|
id: e,
|
|
@@ -237,7 +238,7 @@ const mt = (t = [], e) => {
|
|
|
237
238
|
productType: c?.productType,
|
|
238
239
|
path: c?.folder?.path?.split("/").pop()
|
|
239
240
|
};
|
|
240
|
-
},
|
|
241
|
+
}, rn = (t) => {
|
|
241
242
|
const { id: e, name: s, label: n, status: i, thumbnailId: r, thumbnailHash: a, updatedAt: c, folderType: d, parents: u } = t || {};
|
|
242
243
|
return {
|
|
243
244
|
id: e,
|
|
@@ -253,7 +254,7 @@ const mt = (t = [], e) => {
|
|
|
253
254
|
users: [],
|
|
254
255
|
path: u?.[u.length - 2]
|
|
255
256
|
};
|
|
256
|
-
},
|
|
257
|
+
}, an = (t) => {
|
|
257
258
|
const { id: e, name: s, status: n, thumbnailId: i, thumbnailHash: r, updatedAt: a, task: c } = t || {};
|
|
258
259
|
return {
|
|
259
260
|
id: e,
|
|
@@ -269,20 +270,20 @@ const mt = (t = [], e) => {
|
|
|
269
270
|
users: [],
|
|
270
271
|
path: c?.folder?.path?.split("/").pop()
|
|
271
272
|
};
|
|
272
|
-
},
|
|
273
|
+
}, on = (t, e) => {
|
|
273
274
|
switch (e) {
|
|
274
275
|
case "task":
|
|
275
|
-
return
|
|
276
|
+
return sn(t.task);
|
|
276
277
|
case "version":
|
|
277
|
-
return
|
|
278
|
+
return nn(t.version);
|
|
278
279
|
case "folder":
|
|
279
|
-
return
|
|
280
|
+
return rn(t.folder);
|
|
280
281
|
case "workfile":
|
|
281
|
-
return
|
|
282
|
+
return an(t.workfile);
|
|
282
283
|
default:
|
|
283
284
|
return {};
|
|
284
285
|
}
|
|
285
|
-
},
|
|
286
|
+
}, cn = (t) => {
|
|
286
287
|
const e = t?.project?.activities?.edges?.map((a) => a?.node), s = e.map((a) => a.body), n = e.map((a) => a.activityId), i = s.reduce((a, c) => {
|
|
287
288
|
if (!c) return a;
|
|
288
289
|
const d = c.match(/\*\s\[\s\]/g);
|
|
@@ -293,21 +294,21 @@ const mt = (t = [], e) => {
|
|
|
293
294
|
return a + (d ? d.length : 0);
|
|
294
295
|
}, 0);
|
|
295
296
|
return { total: i + r, checked: r, unChecked: i, ids: n };
|
|
296
|
-
},
|
|
297
|
+
}, dn = (t, e = "task", s = "task") => t?.length ? [
|
|
297
298
|
...t.map(({ id: n }) => ({ type: e, id: n })),
|
|
298
299
|
{ type: e, id: s.toUpperCase() + "S" },
|
|
299
300
|
{
|
|
300
301
|
type: `kanBan${s.charAt(0).toUpperCase() + s.slice(1)}`,
|
|
301
302
|
id: s.toUpperCase() + "S"
|
|
302
303
|
}
|
|
303
|
-
] : [{ type: e, id: s.toUpperCase() + "S" }],
|
|
304
|
+
] : [{ type: e, id: s.toUpperCase() + "S" }], ns = (t) => {
|
|
304
305
|
if (typeof t == "string") return t;
|
|
305
306
|
try {
|
|
306
307
|
return JSON.stringify(t) ?? "";
|
|
307
308
|
} catch {
|
|
308
309
|
return "";
|
|
309
310
|
}
|
|
310
|
-
},
|
|
311
|
+
}, is = (t, e, s) => {
|
|
311
312
|
if (!t)
|
|
312
313
|
return [{ type: "activity", id: "LIST" }];
|
|
313
314
|
const { entityIds: n, activityTypes: i, filter: r } = s, a = (o) => (Array.isArray(o) ? o : [o]).filter(Boolean), c = a(n), d = a(i), u = t.pages ? t.pages.flatMap((o) => o.activities) : t.activities || [];
|
|
@@ -323,7 +324,7 @@ const mt = (t = [], e) => {
|
|
|
323
324
|
// Filtered Entity Activity Tags
|
|
324
325
|
...c.map((o) => ({
|
|
325
326
|
type: "entityActivities",
|
|
326
|
-
id: `${o}-${
|
|
327
|
+
id: `${o}-${ns(r)}`
|
|
327
328
|
})),
|
|
328
329
|
// Published Version Tags
|
|
329
330
|
...u.filter((o) => o.activityType === "version.publish").map((o) => ({
|
|
@@ -354,7 +355,7 @@ const mt = (t = [], e) => {
|
|
|
354
355
|
"subtype.change"
|
|
355
356
|
],
|
|
356
357
|
checklists: ["checklist"]
|
|
357
|
-
},
|
|
358
|
+
}, Or = (t) => {
|
|
358
359
|
if (typeof t == "string")
|
|
359
360
|
return t in se ? se[t] : null;
|
|
360
361
|
if (t && typeof t == "object" && t.conditions) {
|
|
@@ -365,7 +366,7 @@ const mt = (t = [], e) => {
|
|
|
365
366
|
}), s ? Array.from(new Set(e)) : se.activity;
|
|
366
367
|
}
|
|
367
368
|
return se.activity;
|
|
368
|
-
},
|
|
369
|
+
}, un = (t) => {
|
|
369
370
|
switch (t) {
|
|
370
371
|
case "task":
|
|
371
372
|
return `
|
|
@@ -409,7 +410,7 @@ const mt = (t = [], e) => {
|
|
|
409
410
|
default:
|
|
410
411
|
return "";
|
|
411
412
|
}
|
|
412
|
-
},
|
|
413
|
+
}, ln = (t) => `
|
|
413
414
|
query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
414
415
|
project(name: $projectName) {
|
|
415
416
|
${t}(id: $entityId) {
|
|
@@ -419,15 +420,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
419
420
|
thumbnailId
|
|
420
421
|
updatedAt
|
|
421
422
|
thumbnailHash
|
|
422
|
-
${
|
|
423
|
+
${un(t)}
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
426
|
}
|
|
426
|
-
`,
|
|
427
|
+
`, pn = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), It = {
|
|
427
428
|
task_type: "subType",
|
|
428
429
|
folder_type: "subType",
|
|
429
430
|
product_type: "subType"
|
|
430
|
-
}, fe = (t) => t in
|
|
431
|
+
}, fe = (t) => t in It ? It[t] : t.startsWith("project_attributes_") ? "attrib_" + t.slice(19) : t.startsWith("inherited_attributes_") ? "attrib_" + t.slice(21) : t.startsWith("attrib_") ? t : pn(t), fn = (t) => {
|
|
431
432
|
if (Array.isArray(t)) return t;
|
|
432
433
|
if (typeof t == "string") {
|
|
433
434
|
const e = t.trim();
|
|
@@ -439,7 +440,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
439
440
|
}
|
|
440
441
|
}
|
|
441
442
|
return [t];
|
|
442
|
-
},
|
|
443
|
+
}, yn = (t) => {
|
|
443
444
|
if (t == null) return;
|
|
444
445
|
let e = t;
|
|
445
446
|
if (typeof e == "string")
|
|
@@ -452,7 +453,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
452
453
|
const s = /* @__PURE__ */ new Map();
|
|
453
454
|
for (const n of e) {
|
|
454
455
|
if (!n || n.value == null) continue;
|
|
455
|
-
const i =
|
|
456
|
+
const i = fn(n.value);
|
|
456
457
|
for (const r of i) {
|
|
457
458
|
const a = String(r), c = s.get(a);
|
|
458
459
|
s.set(a, { ...n, value: a, count: (c?.count ?? 0) + (Number(n.count) || 0) });
|
|
@@ -465,7 +466,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
465
466
|
value: s,
|
|
466
467
|
count: Number(n) || 0
|
|
467
468
|
}));
|
|
468
|
-
}, ge = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0),
|
|
469
|
+
}, ge = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0), gn = (t, e) => t == null ? e ?? void 0 : e == null || t < e ? t : e, hn = (t, e) => t == null ? e ?? void 0 : e == null || t > e ? t : e, Le = (t, e) => t != null && e != null && t + e > 0 ? Math.round(t / (t + e) * 1e4) / 100 : void 0, mn = (t, e) => {
|
|
469
470
|
const s = ge(t.valueFilledCount, e.valueFilledCount), n = ge(t.valueNotFilledCount, e.valueNotFilledCount), i = ge(t.checkedCount, e.checkedCount), r = ge(t.notCheckedCount, e.notCheckedCount);
|
|
470
471
|
let a;
|
|
471
472
|
if (t.avg != null && e.avg != null) {
|
|
@@ -484,8 +485,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
484
485
|
}
|
|
485
486
|
return {
|
|
486
487
|
columnName: t.columnName,
|
|
487
|
-
min:
|
|
488
|
-
max:
|
|
488
|
+
min: gn(t.min, e.min),
|
|
489
|
+
max: hn(t.max, e.max),
|
|
489
490
|
avg: a,
|
|
490
491
|
sum: ge(t.sum, e.sum),
|
|
491
492
|
valueFilledCount: s,
|
|
@@ -503,7 +504,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
503
504
|
}, ke = (t) => t.map((e) => ({
|
|
504
505
|
...e,
|
|
505
506
|
columnName: fe(e.columnName),
|
|
506
|
-
distribution:
|
|
507
|
+
distribution: yn(e.distribution)
|
|
507
508
|
})), Ae = (t = [], e = []) => {
|
|
508
509
|
const s = /* @__PURE__ */ new Map();
|
|
509
510
|
for (const n of e) s.set(fe(n.columnName), { ...n });
|
|
@@ -514,20 +515,20 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
514
515
|
s.set(i, r);
|
|
515
516
|
}
|
|
516
517
|
return [...s.values()];
|
|
517
|
-
},
|
|
518
|
+
}, $r = (t) => t.reduce(
|
|
518
519
|
(e, s) => Math.max(e, (s.valueFilledCount ?? 0) + (s.valueNotFilledCount ?? 0)),
|
|
519
520
|
0
|
|
520
|
-
),
|
|
521
|
+
), xr = (t, e = []) => {
|
|
521
522
|
const s = /* @__PURE__ */ new Map();
|
|
522
523
|
for (const i of t) s.set(fe(i.columnName), i);
|
|
523
524
|
const n = new Map(s);
|
|
524
525
|
for (const i of e) {
|
|
525
526
|
const r = fe(i.columnName), a = s.get(r);
|
|
526
|
-
n.set(r, a ?
|
|
527
|
+
n.set(r, a ? mn(a, i) : i);
|
|
527
528
|
}
|
|
528
529
|
return [...n.values()];
|
|
529
|
-
},
|
|
530
|
-
if (
|
|
530
|
+
}, rs = [Ws, zs], as = (t, e, s) => {
|
|
531
|
+
if (rs.includes(e))
|
|
531
532
|
return !0;
|
|
532
533
|
if (t[e] !== void 0 && t[e] !== null)
|
|
533
534
|
return t[e];
|
|
@@ -550,32 +551,32 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
550
551
|
return s[r];
|
|
551
552
|
}
|
|
552
553
|
return !1;
|
|
553
|
-
},
|
|
554
|
-
(n) => !
|
|
554
|
+
}, Ur = (t, e) => e.filter(
|
|
555
|
+
(n) => !rs.includes(n) && t[n]
|
|
555
556
|
).length === 0 && e.includes("name") ? {
|
|
556
557
|
...t,
|
|
557
558
|
name: !0
|
|
558
|
-
} : t,
|
|
559
|
+
} : t, Tt = (t) => {
|
|
559
560
|
const e = t?.targets;
|
|
560
561
|
return Array.isArray(e) ? e : e ? [e] : [];
|
|
561
|
-
},
|
|
562
|
+
}, ot = (t, e, s) => {
|
|
562
563
|
const n = e?.[t], i = s?.[t];
|
|
563
564
|
return n === "none" || i === "none" ? !1 : n != null || i != null;
|
|
564
|
-
},
|
|
565
|
+
}, vn = (t, e, s, n) => {
|
|
565
566
|
const i = /* @__PURE__ */ new Set([
|
|
566
567
|
...Object.keys(t ?? {}),
|
|
567
568
|
...Object.keys(e ?? {})
|
|
568
569
|
]);
|
|
569
570
|
for (const r of i)
|
|
570
|
-
if (!(s && !
|
|
571
|
+
if (!(s && !as(s, r, n)) && ot(r, t, e))
|
|
571
572
|
return !0;
|
|
572
573
|
return !1;
|
|
573
|
-
},
|
|
574
|
+
}, qr = (t, e, s, n) => e?.name === "none" && !vn(t, e, s, n), we = (t, e) => {
|
|
574
575
|
if (!t) return !1;
|
|
575
576
|
if (!e) return !0;
|
|
576
|
-
const s = new Set(
|
|
577
|
-
return
|
|
578
|
-
},
|
|
577
|
+
const s = new Set(Tt(e).map((n) => n.field));
|
|
578
|
+
return Tt(t).some((n) => !s.has(n.field));
|
|
579
|
+
}, We = [D.Filled, D.NotFilled], bn = [
|
|
579
580
|
D.Min,
|
|
580
581
|
D.Max,
|
|
581
582
|
D.Avg,
|
|
@@ -586,12 +587,12 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
586
587
|
D.Filled,
|
|
587
588
|
D.NotFilled,
|
|
588
589
|
D.Distribution
|
|
589
|
-
],
|
|
590
|
+
], In = {
|
|
590
591
|
folder: "folder_type",
|
|
591
592
|
task: "task_type",
|
|
592
593
|
product: "product_type",
|
|
593
594
|
version: null
|
|
594
|
-
},
|
|
595
|
+
}, Br = ({
|
|
595
596
|
entity: t,
|
|
596
597
|
attribs: e,
|
|
597
598
|
columnVisibility: s,
|
|
@@ -600,9 +601,9 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
600
601
|
columnSummaryScopes: r,
|
|
601
602
|
extraFields: a = []
|
|
602
603
|
}) => {
|
|
603
|
-
const c = (y) =>
|
|
604
|
-
t === "version" ? u.push({ field: "status", aggregations: d("status") ? Y :
|
|
605
|
-
const o = r?.name ?? "all", l = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", p = i?.name === "breakdown" &&
|
|
604
|
+
const c = (y) => as(s, y, n), d = (y) => c(y) && ot(y, i, r), u = [];
|
|
605
|
+
t === "version" ? u.push({ field: "status", aggregations: d("status") ? Y : We }) : (u.push({ field: "name", aggregations: We }), d("status") && u.push({ field: "status", aggregations: Y })), d("tags") && u.push({ field: "tags", aggregations: Y }), t === "task" && d("assignees") && u.push({ field: "assignees", aggregations: Y });
|
|
606
|
+
const o = r?.name ?? "all", l = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", p = i?.name === "breakdown" && ot("name", i, r) && l, f = In[t];
|
|
606
607
|
f && (d("subType") || p) && u.push({ field: f, aggregations: Y });
|
|
607
608
|
for (const y of a)
|
|
608
609
|
u.push({ field: y, aggregations: Y });
|
|
@@ -611,38 +612,38 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
611
612
|
let h = `attrib.${y.name}`;
|
|
612
613
|
["folder", "task"].includes(t) && (h = `inherited_attributes.${y.name}`);
|
|
613
614
|
const g = y.data?.type;
|
|
614
|
-
g === "integer" || g === "float" ? u.push({ field: h, aggregations:
|
|
615
|
+
g === "integer" || g === "float" ? u.push({ field: h, aggregations: bn }) : g === "string" ? u.push({ field: h, aggregations: Ss(y.data) ? Y : We }) : (g === "list_of_strings" || g === "list_of_integers") && u.push({ field: h, aggregations: Y });
|
|
615
616
|
}
|
|
616
617
|
return u;
|
|
617
|
-
},
|
|
618
|
+
}, kt = [
|
|
618
619
|
D.Distribution,
|
|
619
620
|
D.Filled,
|
|
620
621
|
D.NotFilled
|
|
621
|
-
],
|
|
622
|
+
], Tn = {
|
|
622
623
|
status: "status",
|
|
623
624
|
assignees: "assignees",
|
|
624
625
|
tags: "tags",
|
|
625
626
|
taskType: "task_type"
|
|
626
|
-
},
|
|
627
|
+
}, kn = {
|
|
627
628
|
status: "status",
|
|
628
629
|
tags: "tags",
|
|
629
630
|
author: "author",
|
|
630
631
|
productType: "product_type"
|
|
631
|
-
},
|
|
632
|
-
const n = (e === "version" || e === "product" ?
|
|
633
|
-
if (n) return { field: n, aggregations:
|
|
632
|
+
}, Hr = (t, e) => {
|
|
633
|
+
const n = (e === "version" || e === "product" ? kn : Tn)[t.id];
|
|
634
|
+
if (n) return { field: n, aggregations: kt };
|
|
634
635
|
if (t.id.startsWith("attrib.")) {
|
|
635
636
|
const i = t.id.slice(7);
|
|
636
|
-
return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations:
|
|
637
|
+
return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: kt };
|
|
637
638
|
}
|
|
638
639
|
return null;
|
|
639
|
-
},
|
|
640
|
+
}, An = (t) => {
|
|
640
641
|
const e = t.indexOf(".");
|
|
641
642
|
return e !== -1 ? "attrib_" + t.slice(e + 1) : fe(t);
|
|
642
|
-
},
|
|
643
|
+
}, Wr = (t, e) => {
|
|
643
644
|
const s = /* @__PURE__ */ new Map(), n = { count: 0, percentage: 0 };
|
|
644
645
|
if (!e) return { counts: s, total: 0, ungrouped: n, complete: !1 };
|
|
645
|
-
const i =
|
|
646
|
+
const i = An(e.field), r = t.find((f) => f.columnName === i), a = r?.distribution || [], c = r?.valueNotFilledCount ?? 0, d = r?.valueFilledCount ?? 0, u = !!r && (a.length > 0 || d === 0), o = a.reduce((f, y) => f + (y.count || 0), 0), l = d ? d + c : o + c;
|
|
646
647
|
for (const f of a) {
|
|
647
648
|
const y = f.count || 0, h = l > 0 ? Math.round(y / l * 100) : 0;
|
|
648
649
|
s.set(String(f.value), { count: y, percentage: h });
|
|
@@ -660,7 +661,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
660
661
|
} catch {
|
|
661
662
|
return {};
|
|
662
663
|
}
|
|
663
|
-
},
|
|
664
|
+
}, zr = R, At = (t) => {
|
|
664
665
|
if (!t.project)
|
|
665
666
|
return [];
|
|
666
667
|
const e = [];
|
|
@@ -694,14 +695,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
694
695
|
GetTasksByParent: {
|
|
695
696
|
transformResponse: (t) => ({
|
|
696
697
|
pageInfo: t?.project?.tasks?.pageInfo ?? { hasNextPage: !1, endCursor: null },
|
|
697
|
-
tasks:
|
|
698
|
+
tasks: At(t)
|
|
698
699
|
}),
|
|
699
700
|
providesTags: (t, e, { parentIds: s, projectName: n }) => ve(t?.tasks || [], n, s),
|
|
700
701
|
keepUnusedDataFor: Z
|
|
701
702
|
},
|
|
702
703
|
GetTasksList: {
|
|
703
704
|
transformResponse: (t) => ({
|
|
704
|
-
tasks:
|
|
705
|
+
tasks: At(t),
|
|
705
706
|
pageInfo: t.project.tasks.pageInfo
|
|
706
707
|
}),
|
|
707
708
|
providesTags: (t, e, { projectName: s }) => ve(t?.tasks || [], s),
|
|
@@ -726,13 +727,13 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
726
727
|
keepUnusedDataFor: Z
|
|
727
728
|
}
|
|
728
729
|
}
|
|
729
|
-
}),
|
|
730
|
+
}), wn = yt.enhanceEndpoints({
|
|
730
731
|
endpoints: {
|
|
731
732
|
searchFolders: {}
|
|
732
733
|
}
|
|
733
|
-
}),
|
|
734
|
+
}), ze = 100, be = {}, Ke = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), En = (t, e) => {
|
|
734
735
|
be[t] || (be[t] = /* @__PURE__ */ new Set()), e.forEach((s) => be[t].add(s));
|
|
735
|
-
},
|
|
736
|
+
}, wt = (t) => be[t] || /* @__PURE__ */ new Set(), x = re.injectEndpoints({
|
|
736
737
|
endpoints: (t) => ({
|
|
737
738
|
// Each project has one cache for all the tasks of the expanded folders
|
|
738
739
|
// Changing the expanded folders will trigger a refetch but not a new cache
|
|
@@ -744,7 +745,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
744
745
|
try {
|
|
745
746
|
const o = d(), l = { projectName: e, filter: n, folderFilter: i, search: r, showComments: a }, f = x.endpoints.getOverviewTasksByFolders.select(
|
|
746
747
|
l
|
|
747
|
-
)(o)?.data || [], y =
|
|
748
|
+
)(o)?.data || [], y = Ke(e, n, i, r, a), h = wt(y), g = u ? s : s.filter((E) => !h.has(E));
|
|
748
749
|
if (g.length === 0)
|
|
749
750
|
return { data: f };
|
|
750
751
|
const m = [], v = 100, b = 20, I = 10, k = 1e3, T = v * b;
|
|
@@ -782,7 +783,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
782
783
|
S = C?.hasNextPage || !1, j = C?.endCursor || void 0;
|
|
783
784
|
}
|
|
784
785
|
}
|
|
785
|
-
|
|
786
|
+
En(y, g);
|
|
786
787
|
const A = [...f, ...m], w = new Map(A.map((E) => [E.id, E]));
|
|
787
788
|
return {
|
|
788
789
|
data: Array.from(w.values())
|
|
@@ -804,8 +805,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
804
805
|
let p;
|
|
805
806
|
const y = U(
|
|
806
807
|
async (m, v) => {
|
|
807
|
-
const b =
|
|
808
|
-
|
|
808
|
+
const b = wt(
|
|
809
|
+
Ke(e, n, i, r, a)
|
|
809
810
|
), I = new Set(
|
|
810
811
|
l().data?.map((w) => w.id) || []
|
|
811
812
|
), k = /* @__PURE__ */ new Set(), T = [];
|
|
@@ -884,7 +885,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
884
885
|
} catch {
|
|
885
886
|
}
|
|
886
887
|
await d, y.clear();
|
|
887
|
-
const g =
|
|
888
|
+
const g = Ke(e, n, i, r, a);
|
|
888
889
|
delete be[g], p && F.unsubscribe(p), h && h();
|
|
889
890
|
},
|
|
890
891
|
keepUnusedDataFor: Z
|
|
@@ -895,7 +896,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
895
896
|
async queryFn({ projectName: e, folderSearchRequest: s }, { dispatch: n }) {
|
|
896
897
|
try {
|
|
897
898
|
const i = await n(
|
|
898
|
-
|
|
899
|
+
wn.endpoints.searchFolders.initiate({
|
|
899
900
|
projectName: e,
|
|
900
901
|
folderSearchRequest: s
|
|
901
902
|
})
|
|
@@ -946,7 +947,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
946
947
|
includeFolderChildren: f !== !1
|
|
947
948
|
// default to true
|
|
948
949
|
};
|
|
949
|
-
o ? (h.sortBy = o, l ? (h.before = y || void 0, h.last =
|
|
950
|
+
o ? (h.sortBy = o, l ? (h.before = y || void 0, h.last = ze) : (h.after = y || void 0, h.first = ze)) : (h.after = y || void 0, h.first = ze);
|
|
950
951
|
const g = await n.dispatch(
|
|
951
952
|
re.endpoints.GetTasksList.initiate(h, { forceRefetch: !0 })
|
|
952
953
|
);
|
|
@@ -1159,15 +1160,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1159
1160
|
})
|
|
1160
1161
|
})
|
|
1161
1162
|
}), {
|
|
1162
|
-
useGetOverviewTasksByFoldersQuery:
|
|
1163
|
-
useGetSearchFoldersQuery:
|
|
1164
|
-
useGetTasksListQuery:
|
|
1165
|
-
useGetTasksListInfiniteInfiniteQuery:
|
|
1166
|
-
useLazyGetTasksByParentQuery:
|
|
1167
|
-
useGetGroupedTasksListQuery:
|
|
1168
|
-
useGetFolderColumnStatsQuery:
|
|
1169
|
-
useGetTaskColumnStatsQuery:
|
|
1170
|
-
} = x,
|
|
1163
|
+
useGetOverviewTasksByFoldersQuery: Kr,
|
|
1164
|
+
useGetSearchFoldersQuery: Jr,
|
|
1165
|
+
useGetTasksListQuery: Yr,
|
|
1166
|
+
useGetTasksListInfiniteInfiniteQuery: Xr,
|
|
1167
|
+
useLazyGetTasksByParentQuery: Zr,
|
|
1168
|
+
useGetGroupedTasksListQuery: ea,
|
|
1169
|
+
useGetFolderColumnStatsQuery: ta,
|
|
1170
|
+
useGetTaskColumnStatsQuery: sa
|
|
1171
|
+
} = x, Sn = Q.enhanceEndpoints({
|
|
1171
1172
|
endpoints: {
|
|
1172
1173
|
GetUpdatedAndNewFolders: {
|
|
1173
1174
|
transformResponse: (t) => t.project.folders.edges.map(({ node: e }) => ({
|
|
@@ -1182,7 +1183,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1182
1183
|
}))
|
|
1183
1184
|
}
|
|
1184
1185
|
}
|
|
1185
|
-
}),
|
|
1186
|
+
}), Pn = ie, $e = yt.enhanceEndpoints({
|
|
1186
1187
|
endpoints: {
|
|
1187
1188
|
getFolderHierarchy: {
|
|
1188
1189
|
providesTags: ["hierarchy"]
|
|
@@ -1241,10 +1242,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1241
1242
|
});
|
|
1242
1243
|
});
|
|
1243
1244
|
const T = [.../* @__PURE__ */ new Set([...b, ...I.keys()])];
|
|
1244
|
-
if (!(T.length >
|
|
1245
|
+
if (!(T.length > Pn) && T.length) {
|
|
1245
1246
|
await J();
|
|
1246
1247
|
const A = await r(
|
|
1247
|
-
|
|
1248
|
+
Sn.endpoints.GetUpdatedAndNewFolders.initiate({
|
|
1248
1249
|
projectName: a,
|
|
1249
1250
|
folderIds: T,
|
|
1250
1251
|
first: T.length
|
|
@@ -1297,7 +1298,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1297
1298
|
}
|
|
1298
1299
|
}
|
|
1299
1300
|
}
|
|
1300
|
-
}), { useGetFolderHierarchyQuery:
|
|
1301
|
+
}), { useGetFolderHierarchyQuery: na, useGetFolderListQuery: ia } = $e, Ln = Q.enhanceEndpoints({
|
|
1301
1302
|
endpoints: {
|
|
1302
1303
|
GetFolderDeleteInfo: {
|
|
1303
1304
|
transformResponse: (t) => (t?.project?.folders?.edges || []).map((s) => ({
|
|
@@ -1315,7 +1316,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1315
1316
|
] : [{ type: "folder", id: "DELETE_INFO" }]
|
|
1316
1317
|
}
|
|
1317
1318
|
}
|
|
1318
|
-
}), { useGetFolderDeleteInfoQuery:
|
|
1319
|
+
}), { useGetFolderDeleteInfoQuery: ra, useLazyGetFolderDeleteInfoQuery: aa } = Ln, jn = ["task", "version", "folder", "representation"], je = ({
|
|
1319
1320
|
entity: t,
|
|
1320
1321
|
entityType: e,
|
|
1321
1322
|
projectName: s
|
|
@@ -1448,7 +1449,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1448
1449
|
representations: void 0
|
|
1449
1450
|
};
|
|
1450
1451
|
}
|
|
1451
|
-
},
|
|
1452
|
+
}, Je = Q.enhanceEndpoints({
|
|
1452
1453
|
endpoints: {
|
|
1453
1454
|
GetDetailsPanelFolder: {
|
|
1454
1455
|
transformResponse: (t, e, s) => {
|
|
@@ -1491,7 +1492,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1491
1492
|
}
|
|
1492
1493
|
}
|
|
1493
1494
|
}
|
|
1494
|
-
}),
|
|
1495
|
+
}), Et = (t) => {
|
|
1495
1496
|
switch (t) {
|
|
1496
1497
|
case "task":
|
|
1497
1498
|
return "GetDetailsPanelTask";
|
|
@@ -1502,15 +1503,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1502
1503
|
case "representation":
|
|
1503
1504
|
return "GetDetailsPanelRepresentation";
|
|
1504
1505
|
}
|
|
1505
|
-
}, de =
|
|
1506
|
+
}, de = Je.injectEndpoints({
|
|
1506
1507
|
endpoints: (t) => ({
|
|
1507
1508
|
getEntitiesDetailsPanel: t.query({
|
|
1508
1509
|
async queryFn({ entities: e = [], entityType: s }, { dispatch: n }) {
|
|
1509
|
-
if (!
|
|
1510
|
+
if (!jn.includes(s))
|
|
1510
1511
|
return { error: L("Entity type not supported", 400) };
|
|
1511
1512
|
try {
|
|
1512
1513
|
const i = e.map((c) => n(
|
|
1513
|
-
|
|
1514
|
+
Je.endpoints[Et(s)].initiate(
|
|
1514
1515
|
{
|
|
1515
1516
|
projectName: c.projectName,
|
|
1516
1517
|
entityId: c.id
|
|
@@ -1565,7 +1566,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1565
1566
|
m.map(async (b) => {
|
|
1566
1567
|
try {
|
|
1567
1568
|
const I = await r(
|
|
1568
|
-
|
|
1569
|
+
Je.endpoints[Et(e)].initiate(
|
|
1569
1570
|
{
|
|
1570
1571
|
projectName: b.projectName,
|
|
1571
1572
|
entityId: b.id
|
|
@@ -1632,7 +1633,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1632
1633
|
]
|
|
1633
1634
|
})
|
|
1634
1635
|
})
|
|
1635
|
-
}), { useGetEntitiesDetailsPanelQuery:
|
|
1636
|
+
}), { useGetEntitiesDetailsPanelQuery: oa, useLazyGetEntitiesDetailsPanelQuery: ca } = de, Fn = `
|
|
1636
1637
|
fragment taskTileFragment on TaskNode {
|
|
1637
1638
|
id
|
|
1638
1639
|
name
|
|
@@ -1649,7 +1650,7 @@ fragment taskTileFragment on TaskNode {
|
|
|
1649
1650
|
path
|
|
1650
1651
|
}
|
|
1651
1652
|
}
|
|
1652
|
-
`,
|
|
1653
|
+
`, _n = `
|
|
1653
1654
|
fragment versionTileFragment on VersionNode {
|
|
1654
1655
|
id
|
|
1655
1656
|
name: product {
|
|
@@ -1673,7 +1674,7 @@ fragment versionTileFragment on VersionNode {
|
|
|
1673
1674
|
}
|
|
1674
1675
|
version
|
|
1675
1676
|
}
|
|
1676
|
-
`,
|
|
1677
|
+
`, Rn = `
|
|
1677
1678
|
fragment productTileFragment on ProductNode {
|
|
1678
1679
|
id
|
|
1679
1680
|
name
|
|
@@ -1689,7 +1690,7 @@ fragment productTileFragment on ProductNode {
|
|
|
1689
1690
|
path
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
|
-
`,
|
|
1693
|
+
`, Gn = `
|
|
1693
1694
|
fragment folderTileFragment on FolderNode {
|
|
1694
1695
|
id
|
|
1695
1696
|
name
|
|
@@ -1702,7 +1703,7 @@ fragment folderTileFragment on FolderNode {
|
|
|
1702
1703
|
path: parent {
|
|
1703
1704
|
path
|
|
1704
1705
|
}
|
|
1705
|
-
}`,
|
|
1706
|
+
}`, Cn = (t) => `
|
|
1706
1707
|
query EventTile($projectName: String!, $id: String!) {
|
|
1707
1708
|
project(name: $projectName) {
|
|
1708
1709
|
${t}(id: $id) {
|
|
@@ -1713,7 +1714,7 @@ fragment folderTileFragment on FolderNode {
|
|
|
1713
1714
|
}
|
|
1714
1715
|
}
|
|
1715
1716
|
}
|
|
1716
|
-
`,
|
|
1717
|
+
`, Nn = (t) => {
|
|
1717
1718
|
let s = `
|
|
1718
1719
|
query EntityTiles($projectName: String!) {
|
|
1719
1720
|
project(name: $projectName) {
|
|
@@ -1732,23 +1733,23 @@ fragment folderTileFragment on FolderNode {
|
|
|
1732
1733
|
}
|
|
1733
1734
|
`;
|
|
1734
1735
|
const n = {
|
|
1735
|
-
folder:
|
|
1736
|
-
product:
|
|
1737
|
-
version:
|
|
1738
|
-
task:
|
|
1736
|
+
folder: Gn,
|
|
1737
|
+
product: Rn,
|
|
1738
|
+
version: _n,
|
|
1739
|
+
task: Fn
|
|
1739
1740
|
};
|
|
1740
1741
|
for (const i in t)
|
|
1741
1742
|
s += n[i];
|
|
1742
1743
|
return s;
|
|
1743
1744
|
};
|
|
1744
|
-
function
|
|
1745
|
+
function os(t) {
|
|
1745
1746
|
if (typeof t != "object" || t === null)
|
|
1746
1747
|
return t;
|
|
1747
1748
|
let e = Object.keys(t);
|
|
1748
1749
|
if (e.length > 0)
|
|
1749
|
-
return
|
|
1750
|
+
return os(t[e[0]]);
|
|
1750
1751
|
}
|
|
1751
|
-
const
|
|
1752
|
+
const Qn = (t, e) => {
|
|
1752
1753
|
if (Array.isArray(e)) {
|
|
1753
1754
|
const n = {};
|
|
1754
1755
|
for (const i of e)
|
|
@@ -1763,18 +1764,18 @@ const Nn = (t, e) => {
|
|
|
1763
1764
|
}
|
|
1764
1765
|
for (const n of s) {
|
|
1765
1766
|
for (const i in n)
|
|
1766
|
-
n[i] && (Array.isArray(n[i]) ? n[i] = n[i][0] : typeof n[i] == "object" && (n[i] =
|
|
1767
|
+
n[i] && (Array.isArray(n[i]) ? n[i] = n[i][0] : typeof n[i] == "object" && (n[i] = os(Object.values(n[i])[0])), n.type === "version" && i === "version" && (n[i] = "v" + n[i].toString().padStart(3, "0")));
|
|
1767
1768
|
n.thumbnailEntityType = n.type, n.type === "product" && (n.thumbnailEntityId = n.latestVersion.thumbnailEntityId, n.thumbnailId = n.latestVersion.thumbnailId, n.thumbnailEntityType = "version");
|
|
1768
1769
|
}
|
|
1769
1770
|
return s;
|
|
1770
|
-
},
|
|
1771
|
+
}, Mn = Q.injectEndpoints({
|
|
1771
1772
|
endpoints: (t) => ({
|
|
1772
1773
|
getEventTile: t.query({
|
|
1773
1774
|
query: ({ projectName: e, id: s, type: n }) => ({
|
|
1774
1775
|
url: "/graphql",
|
|
1775
1776
|
method: "POST",
|
|
1776
1777
|
body: {
|
|
1777
|
-
query:
|
|
1778
|
+
query: Cn(n),
|
|
1778
1779
|
variables: { projectName: e, id: s }
|
|
1779
1780
|
}
|
|
1780
1781
|
}),
|
|
@@ -1785,11 +1786,11 @@ const Nn = (t, e) => {
|
|
|
1785
1786
|
url: "/graphql",
|
|
1786
1787
|
method: "POST",
|
|
1787
1788
|
body: {
|
|
1788
|
-
query:
|
|
1789
|
+
query: Nn(s),
|
|
1789
1790
|
variables: { projectName: e }
|
|
1790
1791
|
}
|
|
1791
1792
|
}),
|
|
1792
|
-
transformResponse: (e, s, { entities: n }) =>
|
|
1793
|
+
transformResponse: (e, s, { entities: n }) => Qn(e.data?.project, n)
|
|
1793
1794
|
}),
|
|
1794
1795
|
getEntity: t.query({
|
|
1795
1796
|
query: ({ projectName: e, entityType: s, entityId: n }) => ({
|
|
@@ -1799,17 +1800,17 @@ const Nn = (t, e) => {
|
|
|
1799
1800
|
})
|
|
1800
1801
|
}),
|
|
1801
1802
|
overrideExisting: !0
|
|
1802
|
-
}), me =
|
|
1803
|
+
}), me = Mn.enhanceEndpoints({
|
|
1803
1804
|
endpoints: {
|
|
1804
1805
|
GetProductVersions: {}
|
|
1805
1806
|
}
|
|
1806
1807
|
}), {
|
|
1807
|
-
useGetEventTileQuery:
|
|
1808
|
-
useGetEntityTilesQuery:
|
|
1809
|
-
useGetEntityQuery:
|
|
1810
|
-
useLazyGetEntityQuery:
|
|
1811
|
-
useGetProductVersionsQuery:
|
|
1812
|
-
useGetSearchedEntitiesInfiniteQuery:
|
|
1808
|
+
useGetEventTileQuery: da,
|
|
1809
|
+
useGetEntityTilesQuery: ua,
|
|
1810
|
+
useGetEntityQuery: la,
|
|
1811
|
+
useLazyGetEntityQuery: pa,
|
|
1812
|
+
useGetProductVersionsQuery: fa,
|
|
1813
|
+
useGetSearchedEntitiesInfiniteQuery: ya
|
|
1813
1814
|
} = me, ee = Se.enhanceEndpoints({
|
|
1814
1815
|
endpoints: {
|
|
1815
1816
|
getProject: {
|
|
@@ -1827,7 +1828,7 @@ const Nn = (t, e) => {
|
|
|
1827
1828
|
providesTags: (t, e, { projectName: s }) => [{ type: "project", id: s }]
|
|
1828
1829
|
}
|
|
1829
1830
|
}
|
|
1830
|
-
}), { useGetProjectQuery:
|
|
1831
|
+
}), { useGetProjectQuery: ga, useListProjectsQuery: ha, useGetProjectAnatomyQuery: ma } = ee, St = 2e3, Pt = Q.enhanceEndpoints({
|
|
1831
1832
|
endpoints: {
|
|
1832
1833
|
GetProjects: {
|
|
1833
1834
|
transformResponse: (t) => ({
|
|
@@ -1839,17 +1840,17 @@ const Nn = (t, e) => {
|
|
|
1839
1840
|
})
|
|
1840
1841
|
}
|
|
1841
1842
|
}
|
|
1842
|
-
}),
|
|
1843
|
+
}), gt = Pt.injectEndpoints({
|
|
1843
1844
|
endpoints: (t) => ({
|
|
1844
1845
|
getProjectsInfinite: t.infiniteQuery({
|
|
1845
1846
|
infiniteQueryOptions: {
|
|
1846
|
-
initialPageParam: { cursor: "", first:
|
|
1847
|
+
initialPageParam: { cursor: "", first: St },
|
|
1847
1848
|
getNextPageParam: (e) => {
|
|
1848
1849
|
const { pageInfo: s } = e;
|
|
1849
1850
|
if (!(!s.hasNextPage || !s.endCursor))
|
|
1850
1851
|
return {
|
|
1851
1852
|
cursor: s.endCursor,
|
|
1852
|
-
first:
|
|
1853
|
+
first: St
|
|
1853
1854
|
};
|
|
1854
1855
|
}
|
|
1855
1856
|
},
|
|
@@ -1860,7 +1861,7 @@ const Nn = (t, e) => {
|
|
|
1860
1861
|
after: s?.cursor || void 0,
|
|
1861
1862
|
first: s?.first
|
|
1862
1863
|
}, r = await n.dispatch(
|
|
1863
|
-
|
|
1864
|
+
Pt.endpoints.GetProjects.initiate(i, { forceRefetch: !0 })
|
|
1864
1865
|
);
|
|
1865
1866
|
if (r.error) throw r.error;
|
|
1866
1867
|
return {
|
|
@@ -1888,7 +1889,7 @@ const Nn = (t, e) => {
|
|
|
1888
1889
|
})
|
|
1889
1890
|
}),
|
|
1890
1891
|
overrideExisting: !0
|
|
1891
|
-
}), { useGetProjectsInfiniteInfiniteQuery:
|
|
1892
|
+
}), { useGetProjectsInfiniteInfiniteQuery: va } = gt, Ye = (t, e) => {
|
|
1892
1893
|
for (const [s, n] of Object.entries(e)) {
|
|
1893
1894
|
if (s === "attrib" && n && typeof n == "object" && !Array.isArray(n)) {
|
|
1894
1895
|
t.attrib = {
|
|
@@ -1899,7 +1900,7 @@ const Nn = (t, e) => {
|
|
|
1899
1900
|
}
|
|
1900
1901
|
t[s] = n;
|
|
1901
1902
|
}
|
|
1902
|
-
},
|
|
1903
|
+
}, Vn = ee.enhanceEndpoints({
|
|
1903
1904
|
endpoints: {
|
|
1904
1905
|
deployProject: {
|
|
1905
1906
|
invalidatesTags: () => [
|
|
@@ -1934,20 +1935,20 @@ const Nn = (t, e) => {
|
|
|
1934
1935
|
s(
|
|
1935
1936
|
ee.util.updateQueryData("listProjects", { active: !0 }, (r) => {
|
|
1936
1937
|
const a = r.find((c) => c.name === t);
|
|
1937
|
-
a &&
|
|
1938
|
+
a && Ye(a, e);
|
|
1938
1939
|
})
|
|
1939
1940
|
),
|
|
1940
1941
|
s(
|
|
1941
1942
|
ee.util.updateQueryData("listProjects", { active: void 0 }, (r) => {
|
|
1942
1943
|
const a = r.find((c) => c.name === t);
|
|
1943
|
-
a &&
|
|
1944
|
+
a && Ye(a, e);
|
|
1944
1945
|
})
|
|
1945
1946
|
),
|
|
1946
1947
|
s(
|
|
1947
|
-
|
|
1948
|
+
gt.util.updateQueryData("getProjectsInfinite", {}, (r) => {
|
|
1948
1949
|
for (const a of r.pages) {
|
|
1949
1950
|
const c = a.projects.find((d) => d.name === t);
|
|
1950
|
-
c &&
|
|
1951
|
+
c && Ye(c, e);
|
|
1951
1952
|
}
|
|
1952
1953
|
})
|
|
1953
1954
|
)
|
|
@@ -1967,21 +1968,21 @@ const Nn = (t, e) => {
|
|
|
1967
1968
|
}
|
|
1968
1969
|
}
|
|
1969
1970
|
}), {
|
|
1970
|
-
useDeployProjectMutation:
|
|
1971
|
-
useDeleteProjectMutation:
|
|
1972
|
-
useSetProjectAnatomyMutation:
|
|
1973
|
-
useUpdateProjectMutation:
|
|
1974
|
-
useSetProjectBundleMutation:
|
|
1975
|
-
} =
|
|
1971
|
+
useDeployProjectMutation: ba,
|
|
1972
|
+
useDeleteProjectMutation: Ia,
|
|
1973
|
+
useSetProjectAnatomyMutation: Ta,
|
|
1974
|
+
useUpdateProjectMutation: ka,
|
|
1975
|
+
useSetProjectBundleMutation: Aa
|
|
1976
|
+
} = Vn, Dn = (t) => {
|
|
1976
1977
|
try {
|
|
1977
1978
|
return JSON.parse(t);
|
|
1978
1979
|
} catch {
|
|
1979
1980
|
return {};
|
|
1980
1981
|
}
|
|
1981
|
-
},
|
|
1982
|
+
}, On = (t) => Object.keys(t), Lt = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
|
|
1982
1983
|
const n = e.label || e.name, i = s.label || s.name;
|
|
1983
1984
|
return n.localeCompare(i);
|
|
1984
|
-
}),
|
|
1985
|
+
}), jt = (t, e, s) => t?.length ? [
|
|
1985
1986
|
{ type: "kanBanTask", id: "LIST" },
|
|
1986
1987
|
...t.flatMap(({ id: n, projectName: i, assignees: r = [] }) => [
|
|
1987
1988
|
{ type: "task", id: n },
|
|
@@ -1993,14 +1994,14 @@ const Nn = (t, e) => {
|
|
|
1993
1994
|
})),
|
|
1994
1995
|
{ type: "kanban", id: JSON.stringify(s) }
|
|
1995
1996
|
])
|
|
1996
|
-
] : [{ type: "kanBanTask", id: "LIST" }],
|
|
1997
|
+
] : [{ type: "kanBanTask", id: "LIST" }], cs = async ({
|
|
1997
1998
|
projects: t = [],
|
|
1998
1999
|
taskIds: e = []
|
|
1999
2000
|
}, s) => {
|
|
2000
2001
|
try {
|
|
2001
2002
|
t = t ?? [], e = e ?? [];
|
|
2002
2003
|
const n = await s(
|
|
2003
|
-
|
|
2004
|
+
ht.endpoints.GetKanbanTasks.initiate(
|
|
2004
2005
|
{ projects: t, taskIds: e },
|
|
2005
2006
|
{ forceRefetch: !0 }
|
|
2006
2007
|
)
|
|
@@ -2011,11 +2012,11 @@ const Nn = (t, e) => {
|
|
|
2011
2012
|
} catch (n) {
|
|
2012
2013
|
return console.error(n), [];
|
|
2013
2014
|
}
|
|
2014
|
-
},
|
|
2015
|
+
}, ht = Q.enhanceEndpoints({
|
|
2015
2016
|
endpoints: {
|
|
2016
2017
|
GetKanban: {
|
|
2017
|
-
transformResponse:
|
|
2018
|
-
providesTags:
|
|
2018
|
+
transformResponse: Lt,
|
|
2019
|
+
providesTags: jt,
|
|
2019
2020
|
async onCacheEntryAdded(t = {}, { updateCachedData: e, cacheDataLoaded: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) {
|
|
2020
2021
|
let a, c;
|
|
2021
2022
|
const u = U(
|
|
@@ -2059,7 +2060,7 @@ const Nn = (t, e) => {
|
|
|
2059
2060
|
const v = Array.from(g.values());
|
|
2060
2061
|
if (!v.length || v.length > ie) return;
|
|
2061
2062
|
await J();
|
|
2062
|
-
const b = await
|
|
2063
|
+
const b = await cs(
|
|
2063
2064
|
{
|
|
2064
2065
|
projects: [...new Set(v.map(({ project: T }) => T))],
|
|
2065
2066
|
taskIds: [...new Set(v.map(({ taskId: T }) => T))]
|
|
@@ -2125,14 +2126,14 @@ const Nn = (t, e) => {
|
|
|
2125
2126
|
// same query as GetKanban but for specific tasks
|
|
2126
2127
|
// used mainly for patching tasks into the kanban cache
|
|
2127
2128
|
GetKanbanTasks: {
|
|
2128
|
-
transformResponse:
|
|
2129
|
-
providesTags:
|
|
2129
|
+
transformResponse: Lt,
|
|
2130
|
+
providesTags: jt
|
|
2130
2131
|
},
|
|
2131
2132
|
// get all users on all selected projects
|
|
2132
2133
|
GetKanbanProjectUsers: {
|
|
2133
2134
|
transformResponse: (t, e, { projects: s } = {}) => t.users.edges.map(({ node: n }) => {
|
|
2134
|
-
const i =
|
|
2135
|
-
let a = !n.isManager && !n.isAdmin ?
|
|
2135
|
+
const i = Dn(n.accessGroups);
|
|
2136
|
+
let a = !n.isManager && !n.isAdmin ? On(i) : s;
|
|
2136
2137
|
(typeof a == "string" || !a) && (a = []);
|
|
2137
2138
|
const c = `/api/users/${n.name}/avatar`;
|
|
2138
2139
|
return {
|
|
@@ -2148,7 +2149,7 @@ const Nn = (t, e) => {
|
|
|
2148
2149
|
] : [{ type: "user", id: "LIST" }]
|
|
2149
2150
|
}
|
|
2150
2151
|
}
|
|
2151
|
-
}), { useGetKanbanQuery:
|
|
2152
|
+
}), { useGetKanbanQuery: wa, useGetKanbanProjectUsersQuery: Ea } = ht, Ie = ht.injectEndpoints({
|
|
2152
2153
|
endpoints: (t) => ({
|
|
2153
2154
|
getProjectsInfo: t.query({
|
|
2154
2155
|
async queryFn({ projects: e = [], anatomy: s = !0 }, { dispatch: n }) {
|
|
@@ -2176,7 +2177,7 @@ const Nn = (t, e) => {
|
|
|
2176
2177
|
providesTags: (e, s, { projects: n }) => n.map((i) => ({ type: "project", id: i }))
|
|
2177
2178
|
})
|
|
2178
2179
|
})
|
|
2179
|
-
}), { useGetProjectsInfoQuery:
|
|
2180
|
+
}), { useGetProjectsInfoQuery: Sa } = Ie, $n = (t, e) => {
|
|
2180
2181
|
const s = {
|
|
2181
2182
|
name: t.name,
|
|
2182
2183
|
attrib: t.attrib,
|
|
@@ -2223,11 +2224,11 @@ const Nn = (t, e) => {
|
|
|
2223
2224
|
...s
|
|
2224
2225
|
};
|
|
2225
2226
|
}
|
|
2226
|
-
},
|
|
2227
|
+
}, ds = (t = [], e) => {
|
|
2227
2228
|
const s = t.find((c) => c.entityId === e.id), n = s?.data;
|
|
2228
2229
|
if (!n || s.entityType === "product" || s.entityType === "workfile")
|
|
2229
2230
|
return console.warn("No operation data found or entity type not supported");
|
|
2230
|
-
const i =
|
|
2231
|
+
const i = $n(n, s.entityType);
|
|
2231
2232
|
if (s.entityType === "folder" && n.name && e.path) {
|
|
2232
2233
|
const c = e.path.split("/");
|
|
2233
2234
|
c[c.length - 1] = n.name, i.path = c.join("/");
|
|
@@ -2259,14 +2260,14 @@ const Nn = (t, e) => {
|
|
|
2259
2260
|
}
|
|
2260
2261
|
};
|
|
2261
2262
|
Object.assign(e, a);
|
|
2262
|
-
},
|
|
2263
|
+
}, us = (t, {
|
|
2263
2264
|
state: e,
|
|
2264
2265
|
dispatch: s
|
|
2265
2266
|
}, n) => {
|
|
2266
2267
|
const i = t.map((a) => ({
|
|
2267
2268
|
type: "entities",
|
|
2268
2269
|
id: a.entityId
|
|
2269
|
-
})), r =
|
|
2270
|
+
})), r = Ps.util.selectInvalidatedBy(e, i);
|
|
2270
2271
|
for (const a of r)
|
|
2271
2272
|
if (a.endpointName === "getEntitiesDetailsPanel") {
|
|
2272
2273
|
const c = s(
|
|
@@ -2275,13 +2276,13 @@ const Nn = (t, e) => {
|
|
|
2275
2276
|
a.originalArgs,
|
|
2276
2277
|
(d) => {
|
|
2277
2278
|
for (const u of d)
|
|
2278
|
-
|
|
2279
|
+
ds(t, u);
|
|
2279
2280
|
}
|
|
2280
2281
|
)
|
|
2281
2282
|
);
|
|
2282
2283
|
c && n?.push(c);
|
|
2283
2284
|
}
|
|
2284
|
-
},
|
|
2285
|
+
}, Xe = ({ assignees: t, projects: e }, { newAssignees: s, taskId: n, data: i, taskData: r }, { dispatch: a }) => {
|
|
2285
2286
|
let c = !1;
|
|
2286
2287
|
return [a(
|
|
2287
2288
|
Ie.util.updateQueryData(
|
|
@@ -2298,7 +2299,7 @@ const Nn = (t, e) => {
|
|
|
2298
2299
|
}
|
|
2299
2300
|
)
|
|
2300
2301
|
), c];
|
|
2301
|
-
},
|
|
2302
|
+
}, xn = ({
|
|
2302
2303
|
operations: t,
|
|
2303
2304
|
state: e,
|
|
2304
2305
|
dispatch: s,
|
|
@@ -2341,7 +2342,7 @@ const Nn = (t, e) => {
|
|
|
2341
2342
|
} catch (a) {
|
|
2342
2343
|
return console.error(a), s(Q.util.invalidateTags(i)), [];
|
|
2343
2344
|
}
|
|
2344
|
-
},
|
|
2345
|
+
}, ls = me.injectEndpoints({
|
|
2345
2346
|
endpoints: (t) => ({
|
|
2346
2347
|
updateEntity: t.mutation({
|
|
2347
2348
|
query: ({ projectName: e, entityId: s, data: n, entityType: i }) => ({
|
|
@@ -2359,16 +2360,16 @@ const Nn = (t, e) => {
|
|
|
2359
2360
|
if (r === "task") {
|
|
2360
2361
|
const p = d(), f = p.dashboard?.selectedProjects || [], y = p.dashboard?.tasks?.assignees || [], h = p.dashboard?.tasks?.assigneesFilter === "me", g = n.assignees, m = h ? p.user?.name ? [p.user.name] : [] : y, b = [.../* @__PURE__ */ new Set([...i, ...g || []])].some((S) => m.includes(S)), I = f.some((S) => S === e);
|
|
2361
2362
|
if (b && I) {
|
|
2362
|
-
const [S, j] =
|
|
2363
|
+
const [S, j] = Xe(
|
|
2363
2364
|
{ assignees: m, projects: f },
|
|
2364
2365
|
{ newAssignees: g, taskId: s, data: n },
|
|
2365
2366
|
{ dispatch: a }
|
|
2366
2367
|
);
|
|
2367
|
-
j && o.push(S), j ||
|
|
2368
|
+
j && o.push(S), j || cs({ projects: [e], taskIds: [s] }, a).then(
|
|
2368
2369
|
// use .then so that the rest of the code can run
|
|
2369
2370
|
(_) => {
|
|
2370
2371
|
let G = _.find((O) => O.id === s);
|
|
2371
|
-
G && (G = { ...G, assignees: g ?? G.assignees },
|
|
2372
|
+
G && (G = { ...G, assignees: g ?? G.assignees }, Xe(
|
|
2372
2373
|
{ assignees: m, projects: f },
|
|
2373
2374
|
{ newAssignees: g, taskId: s, taskData: G },
|
|
2374
2375
|
{ dispatch: a }
|
|
@@ -2398,7 +2399,7 @@ const Nn = (t, e) => {
|
|
|
2398
2399
|
const A = Ie.util.selectInvalidatedBy(u, T).filter((S) => S.endpointName === "GetKanban");
|
|
2399
2400
|
let w = [];
|
|
2400
2401
|
for (const S of A) {
|
|
2401
|
-
const [j, _] =
|
|
2402
|
+
const [j, _] = Xe(
|
|
2402
2403
|
{
|
|
2403
2404
|
assignees: S.originalArgs.assignees,
|
|
2404
2405
|
projects: S.originalArgs.projects
|
|
@@ -2422,11 +2423,11 @@ const Nn = (t, e) => {
|
|
|
2422
2423
|
}));
|
|
2423
2424
|
l.push(...P);
|
|
2424
2425
|
}
|
|
2425
|
-
|
|
2426
|
+
us([{ entityId: s, data: n, entityType: r }], { state: u, dispatch: a }, o);
|
|
2426
2427
|
try {
|
|
2427
2428
|
await c, l.length && a(Ie.util.invalidateTags(l));
|
|
2428
2429
|
} catch (p) {
|
|
2429
|
-
|
|
2430
|
+
ts.error(Ls(p) || "Failed to update task"), o.forEach((f) => f?.undo());
|
|
2430
2431
|
}
|
|
2431
2432
|
}
|
|
2432
2433
|
}),
|
|
@@ -2436,7 +2437,7 @@ const Nn = (t, e) => {
|
|
|
2436
2437
|
const r = i(), a = [];
|
|
2437
2438
|
for (const { projectName: p, data: f, id: y, currentAssignees: h = [] } of e) {
|
|
2438
2439
|
const g = n(
|
|
2439
|
-
|
|
2440
|
+
ls.endpoints.updateEntity.initiate({
|
|
2440
2441
|
projectName: p,
|
|
2441
2442
|
entityId: y,
|
|
2442
2443
|
data: f,
|
|
@@ -2447,7 +2448,7 @@ const Nn = (t, e) => {
|
|
|
2447
2448
|
a.push(g);
|
|
2448
2449
|
}
|
|
2449
2450
|
let c = [];
|
|
2450
|
-
(s === "task" || s === "folder") && (c =
|
|
2451
|
+
(s === "task" || s === "folder") && (c = xn({ operations: e, state: r, dispatch: n, entityType: s }));
|
|
2451
2452
|
const d = [], u = e.map((p) => ({ ...p, entityId: p.id }));
|
|
2452
2453
|
return (s === "task" || s === "folder") && (s === "task" && Ee(u, { state: r, dispatch: n }, d), s === "folder" && (qe(u, { state: r, dispatch: n }, d), console.log("invalidate overview folders"), n(me.util.invalidateTags([{ type: "folder", id: "LIST" }])), n(
|
|
2453
2454
|
me.util.invalidateTags(
|
|
@@ -2473,7 +2474,7 @@ const Nn = (t, e) => {
|
|
|
2473
2474
|
})
|
|
2474
2475
|
}),
|
|
2475
2476
|
overrideExisting: !0
|
|
2476
|
-
}), { useUpdateEntitiesMutation:
|
|
2477
|
+
}), { useUpdateEntitiesMutation: Pa, useUpdateEntityMutation: La } = ls, Ft = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], Un = async ({
|
|
2477
2478
|
dispatch: t,
|
|
2478
2479
|
projectName: e,
|
|
2479
2480
|
updatedTaskIds: s,
|
|
@@ -2511,7 +2512,7 @@ const Nn = (t, e) => {
|
|
|
2511
2512
|
} catch (i) {
|
|
2512
2513
|
return console.error("Background entity refetch failed:", i), null;
|
|
2513
2514
|
}
|
|
2514
|
-
},
|
|
2515
|
+
}, qn = async ({
|
|
2515
2516
|
dispatch: t,
|
|
2516
2517
|
projectName: e,
|
|
2517
2518
|
updatedTaskIds: s,
|
|
@@ -2543,40 +2544,40 @@ const Nn = (t, e) => {
|
|
|
2543
2544
|
} catch (i) {
|
|
2544
2545
|
return console.error("Background overview tasks refetch failed:", i), null;
|
|
2545
2546
|
}
|
|
2546
|
-
},
|
|
2547
|
-
version: { type:
|
|
2548
|
-
product: { type:
|
|
2547
|
+
}, ps = "version", Bn = { type: ps, id: "LIST" }, fs = "product", mt = { type: fs, id: "LIST" }, Ze = {
|
|
2548
|
+
version: { type: ps, list: Bn },
|
|
2549
|
+
product: { type: fs, list: mt }
|
|
2549
2550
|
}, W = (t, e) => t ? [
|
|
2550
2551
|
...t.map(
|
|
2551
|
-
(s) => ({ type:
|
|
2552
|
+
(s) => ({ type: Ze[e].type, id: s.id })
|
|
2552
2553
|
),
|
|
2553
|
-
|
|
2554
|
-
] : [
|
|
2554
|
+
Ze[e].list
|
|
2555
|
+
] : [Ze[e].list], ys = (t) => {
|
|
2555
2556
|
const e = W(t, "version"), s = W(
|
|
2556
2557
|
t.map((n) => n.product).filter((n) => !!n),
|
|
2557
2558
|
"product"
|
|
2558
2559
|
);
|
|
2559
2560
|
return [...e, ...s];
|
|
2560
|
-
}, xe = (t) => t ?
|
|
2561
|
-
if (!t) return [
|
|
2562
|
-
const e =
|
|
2561
|
+
}, xe = (t) => t ? ys(t.versions) : W(void 0, "version"), Hn = (t) => t ? ys(Jn(t)) : W(void 0, "version"), Wn = (t) => {
|
|
2562
|
+
if (!t) return [mt, ...W(void 0, "product")];
|
|
2563
|
+
const e = Yn(t), s = W(e, "product"), n = W(
|
|
2563
2564
|
e.map((i) => i.featuredVersion).filter((i) => !!i),
|
|
2564
2565
|
"version"
|
|
2565
2566
|
);
|
|
2566
2567
|
return [...s, ...n];
|
|
2567
|
-
},
|
|
2568
|
-
if (!t) return [
|
|
2568
|
+
}, zn = (t) => {
|
|
2569
|
+
if (!t) return [mt, ...W(void 0, "product")];
|
|
2569
2570
|
const e = W(t.products, "product"), s = W(
|
|
2570
2571
|
t.products.map((n) => n.featuredVersion).filter((n) => !!n),
|
|
2571
2572
|
"version"
|
|
2572
2573
|
);
|
|
2573
2574
|
return [...e, ...s];
|
|
2574
|
-
},
|
|
2575
|
+
}, Kn = (t) => {
|
|
2575
2576
|
const e = [];
|
|
2576
2577
|
for (const { node: s } of t)
|
|
2577
2578
|
Math.sign(s.version) !== -1 && e.push(s);
|
|
2578
2579
|
return e;
|
|
2579
|
-
},
|
|
2580
|
+
}, Jn = (t) => t ? t.pages.flatMap((e) => e.versions) : [], Yn = (t) => t ? t.pages.flatMap((e) => e.products) : [], gs = (t) => {
|
|
2580
2581
|
const e = R(t.allAttrib), s = t.task ? {
|
|
2581
2582
|
...t.task,
|
|
2582
2583
|
attrib: R(t.task.allAttrib),
|
|
@@ -2595,10 +2596,10 @@ const Nn = (t, e) => {
|
|
|
2595
2596
|
task: s,
|
|
2596
2597
|
product: n
|
|
2597
2598
|
};
|
|
2598
|
-
},
|
|
2599
|
-
const e = t.project.versions.pageInfo, n =
|
|
2599
|
+
}, _t = (t) => {
|
|
2600
|
+
const e = t.project.versions.pageInfo, n = Kn(t.project.versions.edges).map((i) => gs(i));
|
|
2600
2601
|
return { pageInfo: e, versions: n };
|
|
2601
|
-
},
|
|
2602
|
+
}, Xn = (t) => t.featuredVersion ? gs({
|
|
2602
2603
|
...t.featuredVersion,
|
|
2603
2604
|
product: {
|
|
2604
2605
|
id: t.id,
|
|
@@ -2609,7 +2610,7 @@ const Nn = (t, e) => {
|
|
|
2609
2610
|
allAttrib: t.folder.allAttrib
|
|
2610
2611
|
}
|
|
2611
2612
|
}
|
|
2612
|
-
}) : null,
|
|
2613
|
+
}) : null, Zn = (t) => {
|
|
2613
2614
|
const e = t.project.products.pageInfo, s = t.project.products.edges.map((n) => {
|
|
2614
2615
|
const i = n.node, r = R(i.allAttrib), a = {
|
|
2615
2616
|
...i.folder,
|
|
@@ -2623,11 +2624,11 @@ const Nn = (t, e) => {
|
|
|
2623
2624
|
attrib: r,
|
|
2624
2625
|
folder: a,
|
|
2625
2626
|
versions: d,
|
|
2626
|
-
featuredVersion:
|
|
2627
|
+
featuredVersion: Xn(i)
|
|
2627
2628
|
};
|
|
2628
2629
|
});
|
|
2629
2630
|
return { pageInfo: e, products: s };
|
|
2630
|
-
},
|
|
2631
|
+
}, Rt = (t) => {
|
|
2631
2632
|
try {
|
|
2632
2633
|
const e = t.match(/:\s*({.*})$/);
|
|
2633
2634
|
if (!e)
|
|
@@ -2642,7 +2643,7 @@ const Nn = (t, e) => {
|
|
|
2642
2643
|
return t.split(":")[0] || t;
|
|
2643
2644
|
}
|
|
2644
2645
|
}, K = 10;
|
|
2645
|
-
function
|
|
2646
|
+
function hs(t, e, s, n) {
|
|
2646
2647
|
for (let i = 0; i < t.length; i++) {
|
|
2647
2648
|
const r = e[s], a = t[i][s];
|
|
2648
2649
|
if (n ? r > a : r < a)
|
|
@@ -2650,7 +2651,7 @@ function gs(t, e, s, n) {
|
|
|
2650
2651
|
}
|
|
2651
2652
|
return t.length;
|
|
2652
2653
|
}
|
|
2653
|
-
function
|
|
2654
|
+
function ei(t, e, s, n, i, r) {
|
|
2654
2655
|
for (const a of t) {
|
|
2655
2656
|
const c = a[n], d = c.findIndex((u) => u.id === e);
|
|
2656
2657
|
if (d !== -1) {
|
|
@@ -2659,7 +2660,7 @@ function Zn(t, e, s, n, i, r) {
|
|
|
2659
2660
|
}
|
|
2660
2661
|
}
|
|
2661
2662
|
if (s && t.length > 0) {
|
|
2662
|
-
const a = t[0][n], c =
|
|
2663
|
+
const a = t[0][n], c = hs(a, s, i, r);
|
|
2663
2664
|
a.splice(c, 0, s);
|
|
2664
2665
|
}
|
|
2665
2666
|
}
|
|
@@ -2678,10 +2679,10 @@ function Qe(t, e, s, n, i, r = !0) {
|
|
|
2678
2679
|
return t[c] = e, !0;
|
|
2679
2680
|
if (!r) return !1;
|
|
2680
2681
|
}
|
|
2681
|
-
const a =
|
|
2682
|
+
const a = hs(t, e, n, i);
|
|
2682
2683
|
return t.splice(a, 0, e), !0;
|
|
2683
2684
|
}
|
|
2684
|
-
function
|
|
2685
|
+
function ti(t, e, s, n, i) {
|
|
2685
2686
|
if (s)
|
|
2686
2687
|
for (const r of t)
|
|
2687
2688
|
Qe(r.versions, e, !0, n, i, !1);
|
|
@@ -2695,20 +2696,20 @@ const z = Q.enhanceEndpoints({
|
|
|
2695
2696
|
endpoints: {
|
|
2696
2697
|
// used by both stacked and non-stacked views
|
|
2697
2698
|
GetVersions: {
|
|
2698
|
-
transformResponse:
|
|
2699
|
+
transformResponse: _t,
|
|
2699
2700
|
providesTags: xe,
|
|
2700
2701
|
keepUnusedDataFor: K
|
|
2701
2702
|
},
|
|
2702
2703
|
// used by getVersionsByProducts only
|
|
2703
2704
|
GetVersionsByProductId: {
|
|
2704
|
-
transformResponse:
|
|
2705
|
+
transformResponse: _t,
|
|
2705
2706
|
providesTags: xe,
|
|
2706
2707
|
keepUnusedDataFor: K
|
|
2707
2708
|
},
|
|
2708
2709
|
// used by getProductsInfinite only
|
|
2709
2710
|
GetProducts: {
|
|
2710
|
-
transformResponse:
|
|
2711
|
-
providesTags:
|
|
2711
|
+
transformResponse: Zn,
|
|
2712
|
+
providesTags: zn,
|
|
2712
2713
|
keepUnusedDataFor: K
|
|
2713
2714
|
},
|
|
2714
2715
|
// footer stats: `targets` excluded from cache key + responses merged,
|
|
@@ -2730,7 +2731,7 @@ const z = Q.enhanceEndpoints({
|
|
|
2730
2731
|
keepUnusedDataFor: K
|
|
2731
2732
|
}
|
|
2732
2733
|
}
|
|
2733
|
-
}), ae = 250,
|
|
2734
|
+
}), ae = 250, Gt = 1e3, si = 10, ni = ["status", "tags"];
|
|
2734
2735
|
function Fe(t, e, s) {
|
|
2735
2736
|
const i = U(
|
|
2736
2737
|
async (a, c) => {
|
|
@@ -2749,7 +2750,7 @@ function Fe(t, e, s) {
|
|
|
2749
2750
|
o.add(g);
|
|
2750
2751
|
continue;
|
|
2751
2752
|
}
|
|
2752
|
-
const I = pe(b, h.summary,
|
|
2753
|
+
const I = pe(b, h.summary, ni);
|
|
2753
2754
|
if (!I) {
|
|
2754
2755
|
l.add(g);
|
|
2755
2756
|
continue;
|
|
@@ -2854,7 +2855,7 @@ const N = z.injectEndpoints({
|
|
|
2854
2855
|
return console.error("Error in getVersionsInfiniteQuery queryFn:", i), { error: L(i) };
|
|
2855
2856
|
}
|
|
2856
2857
|
},
|
|
2857
|
-
providesTags:
|
|
2858
|
+
providesTags: Hn,
|
|
2858
2859
|
// Subscribes to version entity changes and updates cache accordingly
|
|
2859
2860
|
// Handles: create, update, delete operations
|
|
2860
2861
|
onCacheEntryAdded: async (e, { getCacheEntry: s, updateCachedData: n, cacheEntryRemoved: i, dispatch: r }) => {
|
|
@@ -2921,11 +2922,11 @@ const N = z.injectEndpoints({
|
|
|
2921
2922
|
}
|
|
2922
2923
|
if (p)
|
|
2923
2924
|
for (const g of p)
|
|
2924
|
-
|
|
2925
|
+
ti(
|
|
2925
2926
|
y.pages,
|
|
2926
2927
|
g,
|
|
2927
2928
|
e.latestPerFolder === !0 && f?.has(g.id) === !0,
|
|
2928
|
-
e.sortBy || "createdAt",
|
|
2929
|
+
He(e.sortBy) || "createdAt",
|
|
2929
2930
|
e.desc || !1
|
|
2930
2931
|
);
|
|
2931
2932
|
}
|
|
@@ -2945,7 +2946,7 @@ const N = z.injectEndpoints({
|
|
|
2945
2946
|
...a,
|
|
2946
2947
|
productIds: [p]
|
|
2947
2948
|
};
|
|
2948
|
-
return r ? (f && (y.before = f), y.last =
|
|
2949
|
+
return r ? (f && (y.before = f), y.last = Gt) : (f && (y.after = f), y.first = Gt), s(
|
|
2949
2950
|
z.endpoints.GetVersionsByProductId.initiate(y, {
|
|
2950
2951
|
forceRefetch: n
|
|
2951
2952
|
})
|
|
@@ -2954,7 +2955,7 @@ const N = z.injectEndpoints({
|
|
|
2954
2955
|
for (let p = 0; p < u.length; p++) {
|
|
2955
2956
|
const f = u[p], y = i[p];
|
|
2956
2957
|
if (f.status === "rejected") {
|
|
2957
|
-
console.error(`Error fetching versions for product ${y}:`, f.reason), l.push({ productId: y, error:
|
|
2958
|
+
console.error(`Error fetching versions for product ${y}:`, f.reason), l.push({ productId: y, error: Rt(f.reason) });
|
|
2958
2959
|
continue;
|
|
2959
2960
|
}
|
|
2960
2961
|
const h = f.value;
|
|
@@ -2962,14 +2963,14 @@ const N = z.injectEndpoints({
|
|
|
2962
2963
|
console.error(`Error fetching versions for product ${y}:`, h.error), l.push({
|
|
2963
2964
|
productId: y,
|
|
2964
2965
|
// @ts-expect-error - message
|
|
2965
|
-
error:
|
|
2966
|
+
error: Rt(h.error?.message || "Unknown error")
|
|
2966
2967
|
});
|
|
2967
2968
|
continue;
|
|
2968
2969
|
}
|
|
2969
2970
|
if (!h.data) continue;
|
|
2970
2971
|
o.push(...h.data.versions);
|
|
2971
2972
|
let g = h.data.pageInfo, m = 1;
|
|
2972
|
-
for (; g && m <
|
|
2973
|
+
for (; g && m < si; ) {
|
|
2973
2974
|
const v = r ? g.hasPreviousPage : g.hasNextPage, b = g.endCursor;
|
|
2974
2975
|
if (!v || !b) break;
|
|
2975
2976
|
const I = await c(y, b);
|
|
@@ -3052,7 +3053,7 @@ const N = z.injectEndpoints({
|
|
|
3052
3053
|
f.versions,
|
|
3053
3054
|
y,
|
|
3054
3055
|
e.latestPerFolder === !0 && p?.has(y.id) === !0,
|
|
3055
|
-
e.sortBy || "createdAt",
|
|
3056
|
+
He(e.sortBy) || "createdAt",
|
|
3056
3057
|
e.desc || !1
|
|
3057
3058
|
);
|
|
3058
3059
|
});
|
|
@@ -3105,7 +3106,7 @@ const N = z.injectEndpoints({
|
|
|
3105
3106
|
return console.error("Error in getProductsInfiniteQuery queryFn:", r), { error: L(r) };
|
|
3106
3107
|
}
|
|
3107
3108
|
},
|
|
3108
|
-
providesTags:
|
|
3109
|
+
providesTags: Wn,
|
|
3109
3110
|
// Subscribes to product entity changes and updates cache accordingly
|
|
3110
3111
|
// Handles: create, update, delete operations
|
|
3111
3112
|
// Often triggered together with version changes (new product + version)
|
|
@@ -3145,12 +3146,12 @@ const N = z.injectEndpoints({
|
|
|
3145
3146
|
(g.data?.products || []).map((b) => [b.id, b])
|
|
3146
3147
|
);
|
|
3147
3148
|
f.forEach((b) => {
|
|
3148
|
-
|
|
3149
|
+
ei(
|
|
3149
3150
|
m.pages,
|
|
3150
3151
|
b,
|
|
3151
3152
|
v.get(b),
|
|
3152
3153
|
"products",
|
|
3153
|
-
e.sortBy || "createdAt",
|
|
3154
|
+
He(e.sortBy) || "createdAt",
|
|
3154
3155
|
e.desc || !1
|
|
3155
3156
|
);
|
|
3156
3157
|
});
|
|
@@ -3367,15 +3368,15 @@ const N = z.injectEndpoints({
|
|
|
3367
3368
|
})
|
|
3368
3369
|
})
|
|
3369
3370
|
}), {
|
|
3370
|
-
useGetVersionsQuery:
|
|
3371
|
-
useGetProductsColumnStatsQuery:
|
|
3372
|
-
useGetVersionsColumnStatsQuery:
|
|
3371
|
+
useGetVersionsQuery: ja,
|
|
3372
|
+
useGetProductsColumnStatsQuery: Fa,
|
|
3373
|
+
useGetVersionsColumnStatsQuery: _a
|
|
3373
3374
|
} = z, {
|
|
3374
|
-
useGetVersionsInfiniteInfiniteQuery:
|
|
3375
|
-
useGetVersionsByProductsQuery:
|
|
3376
|
-
useGetProductsInfiniteInfiniteQuery:
|
|
3377
|
-
useGetGroupedVersionsListQuery:
|
|
3378
|
-
} = N,
|
|
3375
|
+
useGetVersionsInfiniteInfiniteQuery: Ra,
|
|
3376
|
+
useGetVersionsByProductsQuery: Ga,
|
|
3377
|
+
useGetProductsInfiniteInfiniteQuery: Ca,
|
|
3378
|
+
useGetGroupedVersionsListQuery: Na
|
|
3379
|
+
} = N, Ct = (t) => [
|
|
3379
3380
|
{ type: "version", id: "LIST" },
|
|
3380
3381
|
...t.map((e) => ({ type: "version", id: e.entityId }))
|
|
3381
3382
|
], _e = (t, e) => {
|
|
@@ -3386,26 +3387,26 @@ const N = z.injectEndpoints({
|
|
|
3386
3387
|
...s.attrib,
|
|
3387
3388
|
...e.attrib
|
|
3388
3389
|
}), s;
|
|
3389
|
-
},
|
|
3390
|
+
}, ms = (t, e) => {
|
|
3390
3391
|
e.data && (Object.entries(e.data).forEach(([s, n]) => {
|
|
3391
3392
|
s !== "attrib" && (t[s] = n);
|
|
3392
3393
|
}), e.data.attrib && (t.attrib = { ...t.attrib, ...e.data.attrib }));
|
|
3393
|
-
},
|
|
3394
|
+
}, Nt = (t, e) => {
|
|
3394
3395
|
t.forEach((s) => {
|
|
3395
3396
|
[s.task, s.product, s.product?.folder].forEach((i) => {
|
|
3396
3397
|
if (!i) return;
|
|
3397
3398
|
const r = e.get(i.id);
|
|
3398
|
-
r &&
|
|
3399
|
+
r && ms(i, r);
|
|
3399
3400
|
});
|
|
3400
3401
|
});
|
|
3401
|
-
},
|
|
3402
|
+
}, Qt = (t, e) => {
|
|
3402
3403
|
t.forEach((s) => {
|
|
3403
3404
|
const n = s.folder;
|
|
3404
3405
|
if (!n) return;
|
|
3405
3406
|
const i = e.get(n.id);
|
|
3406
|
-
i &&
|
|
3407
|
+
i && ms(n, i);
|
|
3407
3408
|
});
|
|
3408
|
-
},
|
|
3409
|
+
}, ii = (t, {
|
|
3409
3410
|
state: e,
|
|
3410
3411
|
dispatch: s
|
|
3411
3412
|
}, n) => {
|
|
@@ -3427,7 +3428,7 @@ const N = z.injectEndpoints({
|
|
|
3427
3428
|
a.originalArgs,
|
|
3428
3429
|
(d) => {
|
|
3429
3430
|
for (const u of d.pages)
|
|
3430
|
-
|
|
3431
|
+
Nt(u.versions, i);
|
|
3431
3432
|
}
|
|
3432
3433
|
)
|
|
3433
3434
|
);
|
|
@@ -3439,7 +3440,7 @@ const N = z.injectEndpoints({
|
|
|
3439
3440
|
a.originalArgs,
|
|
3440
3441
|
(d) => {
|
|
3441
3442
|
for (const u of d.pages)
|
|
3442
|
-
|
|
3443
|
+
Qt(u.products, i);
|
|
3443
3444
|
}
|
|
3444
3445
|
)
|
|
3445
3446
|
);
|
|
@@ -3449,7 +3450,7 @@ const N = z.injectEndpoints({
|
|
|
3449
3450
|
N.util.updateQueryData(
|
|
3450
3451
|
a.endpointName,
|
|
3451
3452
|
a.originalArgs,
|
|
3452
|
-
(d) =>
|
|
3453
|
+
(d) => Nt(d.versions, i)
|
|
3453
3454
|
)
|
|
3454
3455
|
);
|
|
3455
3456
|
n?.push(c);
|
|
@@ -3458,17 +3459,17 @@ const N = z.injectEndpoints({
|
|
|
3458
3459
|
N.util.updateQueryData(
|
|
3459
3460
|
a.endpointName,
|
|
3460
3461
|
a.originalArgs,
|
|
3461
|
-
(d) =>
|
|
3462
|
+
(d) => Qt(d.products, i)
|
|
3462
3463
|
)
|
|
3463
3464
|
);
|
|
3464
3465
|
n?.push(c);
|
|
3465
3466
|
}
|
|
3466
|
-
},
|
|
3467
|
+
}, ri = (t, {
|
|
3467
3468
|
state: e,
|
|
3468
3469
|
dispatch: s
|
|
3469
3470
|
}, n) => {
|
|
3470
3471
|
if (!t.length) return;
|
|
3471
|
-
const i =
|
|
3472
|
+
const i = Ct(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((d) => d.type === "delete").map((d) => d.entityId));
|
|
3472
3473
|
for (const d of r)
|
|
3473
3474
|
if (d.endpointName === "getVersionsInfinite") {
|
|
3474
3475
|
const u = s(
|
|
@@ -3555,11 +3556,11 @@ const N = z.injectEndpoints({
|
|
|
3555
3556
|
n?.push(u);
|
|
3556
3557
|
}
|
|
3557
3558
|
const c = t.filter((d) => d.type !== "delete");
|
|
3558
|
-
c.length > 0 && s(N.util.invalidateTags(
|
|
3559
|
-
},
|
|
3559
|
+
c.length > 0 && s(N.util.invalidateTags(Ct(c)));
|
|
3560
|
+
}, Mt = (t) => [
|
|
3560
3561
|
{ type: "product", id: "LIST" },
|
|
3561
3562
|
...t.map((e) => ({ type: "product", id: e.entityId }))
|
|
3562
|
-
],
|
|
3563
|
+
], ai = (t, e) => {
|
|
3563
3564
|
const s = { ...t };
|
|
3564
3565
|
return Object.keys(e).forEach((n) => {
|
|
3565
3566
|
n !== "attrib" && e[n] !== void 0 && (s[n] = e[n]);
|
|
@@ -3567,12 +3568,12 @@ const N = z.injectEndpoints({
|
|
|
3567
3568
|
...s.attrib,
|
|
3568
3569
|
...e.attrib
|
|
3569
3570
|
}), s;
|
|
3570
|
-
},
|
|
3571
|
+
}, oi = (t, {
|
|
3571
3572
|
state: e,
|
|
3572
3573
|
dispatch: s
|
|
3573
3574
|
}, n) => {
|
|
3574
3575
|
if (!t.length) return;
|
|
3575
|
-
const i =
|
|
3576
|
+
const i = Mt(t), r = N.util.selectInvalidatedBy(e, i), a = new Set(t.filter((u) => u.type === "delete").map((u) => u.entityId)), c = (u) => {
|
|
3576
3577
|
for (let o = u.length - 1; o >= 0; o--)
|
|
3577
3578
|
a.has(u[o].product?.id) && u.splice(o, 1);
|
|
3578
3579
|
};
|
|
@@ -3590,7 +3591,7 @@ const N = z.injectEndpoints({
|
|
|
3590
3591
|
const y = p.products[f], h = t.find(
|
|
3591
3592
|
(g) => g.entityId === y.id && g.type !== "delete"
|
|
3592
3593
|
);
|
|
3593
|
-
h?.data && (p.products[f] =
|
|
3594
|
+
h?.data && (p.products[f] = ai(y, h.data));
|
|
3594
3595
|
}
|
|
3595
3596
|
}
|
|
3596
3597
|
}
|
|
@@ -3622,7 +3623,7 @@ const N = z.injectEndpoints({
|
|
|
3622
3623
|
n?.push(o);
|
|
3623
3624
|
}
|
|
3624
3625
|
const d = t.filter((u) => u.type !== "delete");
|
|
3625
|
-
d.length > 0 && s(N.util.invalidateTags(
|
|
3626
|
+
d.length > 0 && s(N.util.invalidateTags(Mt(d)));
|
|
3626
3627
|
}, Ue = (t, e) => {
|
|
3627
3628
|
if (Object.keys(e).forEach((s) => {
|
|
3628
3629
|
s === "attrib" || s === "links" || s === "deleteLinks" || (t[s] = e[s]);
|
|
@@ -3642,7 +3643,7 @@ const N = z.injectEndpoints({
|
|
|
3642
3643
|
t.links = t.links.filter((i) => i.id !== n);
|
|
3643
3644
|
});
|
|
3644
3645
|
}
|
|
3645
|
-
},
|
|
3646
|
+
}, ci = (t) => [
|
|
3646
3647
|
{ type: "overviewTask", id: "LIST" },
|
|
3647
3648
|
...t.map((e) => ({ type: "overviewTask", id: e.entityId })),
|
|
3648
3649
|
// we also add the projectName so that tasks that do not exist in the cache can still invalidate
|
|
@@ -3650,21 +3651,21 @@ const N = z.injectEndpoints({
|
|
|
3650
3651
|
type: "overviewTask",
|
|
3651
3652
|
id: e.data?.projectName
|
|
3652
3653
|
}))
|
|
3653
|
-
],
|
|
3654
|
+
], di = (t) => [
|
|
3654
3655
|
...t.map((e) => ({ type: "folder", id: e.entityId })),
|
|
3655
3656
|
// we also add the projectName so that tasks that do not exist in the cache can still invalidate
|
|
3656
3657
|
...t.filter((e) => e.data?.projectName).map((e) => ({
|
|
3657
3658
|
type: "folder",
|
|
3658
3659
|
id: e.data?.projectName
|
|
3659
3660
|
}))
|
|
3660
|
-
],
|
|
3661
|
+
], ui = (t, e, s) => ({
|
|
3661
3662
|
entityId: t,
|
|
3662
3663
|
entityType: e,
|
|
3663
3664
|
type: "update",
|
|
3664
3665
|
data: { deleteLinks: s }
|
|
3665
|
-
}),
|
|
3666
|
-
(s) =>
|
|
3667
|
-
),
|
|
3666
|
+
}), Qa = (t, e) => t.map(
|
|
3667
|
+
(s) => ui(s.entityId, s.entityType, e)
|
|
3668
|
+
), Ma = (t, {
|
|
3668
3669
|
state: e,
|
|
3669
3670
|
dispatch: s
|
|
3670
3671
|
}, n) => {
|
|
@@ -3674,7 +3675,7 @@ const N = z.injectEndpoints({
|
|
|
3674
3675
|
state: e,
|
|
3675
3676
|
dispatch: s
|
|
3676
3677
|
}, n) => {
|
|
3677
|
-
const i =
|
|
3678
|
+
const i = ci(t), r = x.util.selectInvalidatedBy(e, i), a = new Set(
|
|
3678
3679
|
t.filter((d) => d.type === "delete" && d.entityId).map((d) => d.entityId)
|
|
3679
3680
|
), c = (d) => {
|
|
3680
3681
|
for (let u = d.length - 1; u >= 0; u--)
|
|
@@ -3720,12 +3721,12 @@ const N = z.injectEndpoints({
|
|
|
3720
3721
|
);
|
|
3721
3722
|
n?.push(u);
|
|
3722
3723
|
}
|
|
3723
|
-
},
|
|
3724
|
-
const n = `${e}:${s.join()}`, i =
|
|
3725
|
-
i && clearTimeout(i),
|
|
3724
|
+
}, et = /* @__PURE__ */ new Map(), Vt = (t, e, s) => {
|
|
3725
|
+
const n = `${e}:${s.join()}`, i = et.get(n);
|
|
3726
|
+
i && clearTimeout(i), et.set(
|
|
3726
3727
|
n,
|
|
3727
3728
|
setTimeout(() => {
|
|
3728
|
-
|
|
3729
|
+
et.delete(n), t(
|
|
3729
3730
|
x.util.invalidateTags(s.map((r) => ({ type: r, id: e })))
|
|
3730
3731
|
);
|
|
3731
3732
|
}, 500)
|
|
@@ -3734,7 +3735,7 @@ const N = z.injectEndpoints({
|
|
|
3734
3735
|
state: e,
|
|
3735
3736
|
dispatch: s
|
|
3736
3737
|
}, n) => {
|
|
3737
|
-
const i = $e.util.selectInvalidatedBy(e,
|
|
3738
|
+
const i = $e.util.selectInvalidatedBy(e, di(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
|
|
3738
3739
|
t.filter((a) => a.type === "delete" && a.entityId).map((a) => a.entityId)
|
|
3739
3740
|
);
|
|
3740
3741
|
for (const a of i) {
|
|
@@ -3762,7 +3763,7 @@ const N = z.injectEndpoints({
|
|
|
3762
3763
|
);
|
|
3763
3764
|
n?.push(c);
|
|
3764
3765
|
}
|
|
3765
|
-
},
|
|
3766
|
+
}, li = (t, {
|
|
3766
3767
|
state: e,
|
|
3767
3768
|
dispatch: s
|
|
3768
3769
|
}, n) => {
|
|
@@ -3791,23 +3792,23 @@ const N = z.injectEndpoints({
|
|
|
3791
3792
|
);
|
|
3792
3793
|
n?.push(d);
|
|
3793
3794
|
}
|
|
3794
|
-
},
|
|
3795
|
+
}, Dt = (t) => t.reduce(
|
|
3795
3796
|
(e, s) => (e[s.type].push(s), e),
|
|
3796
3797
|
{
|
|
3797
3798
|
create: [],
|
|
3798
3799
|
update: [],
|
|
3799
3800
|
delete: []
|
|
3800
3801
|
}
|
|
3801
|
-
),
|
|
3802
|
+
), Ot = js.enhanceEndpoints({
|
|
3802
3803
|
endpoints: {
|
|
3803
3804
|
operations: {}
|
|
3804
3805
|
}
|
|
3805
|
-
}),
|
|
3806
|
+
}), pi = Ot.injectEndpoints({
|
|
3806
3807
|
endpoints: (t) => ({
|
|
3807
3808
|
updateOverviewEntities: t.mutation({
|
|
3808
3809
|
async queryFn(e, { dispatch: s }) {
|
|
3809
3810
|
try {
|
|
3810
|
-
const n = await s(
|
|
3811
|
+
const n = await s(Ot.endpoints.operations.initiate(e));
|
|
3811
3812
|
if (n.error)
|
|
3812
3813
|
return { error: L(n.error) };
|
|
3813
3814
|
const i = n.data, r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
@@ -3845,23 +3846,23 @@ const N = z.injectEndpoints({
|
|
|
3845
3846
|
}
|
|
3846
3847
|
), u = a(), o = [];
|
|
3847
3848
|
if (d.task?.length) {
|
|
3848
|
-
const { delete: v, update: b } =
|
|
3849
|
+
const { delete: v, update: b } = Dt(d.task), I = b.filter(
|
|
3849
3850
|
(k) => !s.some((T) => T.entityId === k.entityId)
|
|
3850
3851
|
);
|
|
3851
3852
|
Ee([...I, ...v], { state: u, dispatch: i }, o);
|
|
3852
3853
|
}
|
|
3853
3854
|
if (d.folder?.length) {
|
|
3854
|
-
const { delete: v, update: b } =
|
|
3855
|
+
const { delete: v, update: b } = Dt(d.folder), I = b.filter(
|
|
3855
3856
|
(k) => !s.some((T) => T.entityId === k.entityId)
|
|
3856
3857
|
);
|
|
3857
3858
|
qe([...I, ...v], { state: u, dispatch: i }, o);
|
|
3858
3859
|
}
|
|
3859
3860
|
const l = s.filter((v) => v.entityType === "task"), p = s.filter((v) => v.entityType === "folder");
|
|
3860
|
-
l.length && Ee(l, { state: u, dispatch: i }, o), p.length && qe(p, { state: u, dispatch: i }, o),
|
|
3861
|
+
l.length && Ee(l, { state: u, dispatch: i }, o), p.length && qe(p, { state: u, dispatch: i }, o), ii(
|
|
3861
3862
|
[...c, ...s],
|
|
3862
3863
|
{ state: u, dispatch: i },
|
|
3863
3864
|
o
|
|
3864
|
-
),
|
|
3865
|
+
), li([...c, ...s], { state: u, dispatch: i }, o), d.version?.length && ri(d.version, { state: u, dispatch: i }, o), d.product?.length && oi(d.product, { state: u, dispatch: i }, o);
|
|
3865
3866
|
const f = c.map((v) => ({
|
|
3866
3867
|
id: v.entityId,
|
|
3867
3868
|
type: v.entityType
|
|
@@ -3883,7 +3884,7 @@ const N = z.injectEndpoints({
|
|
|
3883
3884
|
v.originalArgs,
|
|
3884
3885
|
(I) => {
|
|
3885
3886
|
for (const k of I)
|
|
3886
|
-
|
|
3887
|
+
ds(c, k);
|
|
3887
3888
|
}
|
|
3888
3889
|
)
|
|
3889
3890
|
);
|
|
@@ -3892,20 +3893,20 @@ const N = z.injectEndpoints({
|
|
|
3892
3893
|
try {
|
|
3893
3894
|
await r;
|
|
3894
3895
|
const v = d.task || [], b = d.folder || [], I = d.version || [], k = d.product || [];
|
|
3895
|
-
if (n && ((v.length || b.length) &&
|
|
3896
|
+
if (n && ((v.length || b.length) && Vt(i, n, [
|
|
3896
3897
|
"folderColumnStats",
|
|
3897
3898
|
"taskColumnStats",
|
|
3898
3899
|
"entityListItemsColumnStats"
|
|
3899
|
-
]), (I.length || k.length) &&
|
|
3900
|
+
]), (I.length || k.length) && Vt(i, n, [
|
|
3900
3901
|
"productColumnStats",
|
|
3901
3902
|
"versionColumnStats",
|
|
3902
3903
|
"entityListItemsColumnStats"
|
|
3903
3904
|
])), v.length === 0 && b.length === 0)
|
|
3904
3905
|
return;
|
|
3905
|
-
const T =
|
|
3906
|
+
const T = Ft(v), A = Ft(b), w = T.map((P) => ({ type: "overviewTask", id: P })), E = x.util.selectInvalidatedBy(u, w).filter((P) => P.endpointName === "getTasksListInfinite");
|
|
3906
3907
|
if (T.length > 0 && n) {
|
|
3907
3908
|
for (const S of E)
|
|
3908
|
-
await
|
|
3909
|
+
await Un({
|
|
3909
3910
|
dispatch: i,
|
|
3910
3911
|
projectName: n,
|
|
3911
3912
|
updatedTaskIds: T,
|
|
@@ -3913,7 +3914,7 @@ const N = z.injectEndpoints({
|
|
|
3913
3914
|
});
|
|
3914
3915
|
const P = x.util.selectInvalidatedBy(u, w).filter((S) => S.endpointName === "getOverviewTasksByFolders");
|
|
3915
3916
|
for (const S of P)
|
|
3916
|
-
await
|
|
3917
|
+
await qn({
|
|
3917
3918
|
dispatch: i,
|
|
3918
3919
|
projectName: n,
|
|
3919
3920
|
updatedTaskIds: T,
|
|
@@ -3952,24 +3953,24 @@ const N = z.injectEndpoints({
|
|
|
3952
3953
|
}
|
|
3953
3954
|
})
|
|
3954
3955
|
})
|
|
3955
|
-
}), { useUpdateOverviewEntitiesMutation:
|
|
3956
|
+
}), { useUpdateOverviewEntitiesMutation: Va } = pi, ct = (t) => {
|
|
3956
3957
|
if (t)
|
|
3957
3958
|
return t.label;
|
|
3958
|
-
},
|
|
3959
|
+
}, $t = {
|
|
3959
3960
|
folder: "GetFoldersLinks",
|
|
3960
3961
|
task: "GetTasksLinks",
|
|
3961
3962
|
product: "GetProductsLinks",
|
|
3962
3963
|
version: "GetVersionsLinks",
|
|
3963
3964
|
representation: "GetRepresentationsLinks",
|
|
3964
3965
|
workfile: "GetWorkfilesLinks"
|
|
3965
|
-
},
|
|
3966
|
+
}, xt = {
|
|
3966
3967
|
folder: "folders",
|
|
3967
3968
|
task: "tasks",
|
|
3968
3969
|
product: "products",
|
|
3969
3970
|
version: "versions",
|
|
3970
3971
|
representation: "representations",
|
|
3971
3972
|
workfile: "workfiles"
|
|
3972
|
-
}, le =
|
|
3973
|
+
}, le = yt.injectEndpoints({
|
|
3973
3974
|
endpoints: (t) => ({
|
|
3974
3975
|
getEntityLinks: t.query({
|
|
3975
3976
|
queryFn: async ({ projectName: e, entityIds: s, entityType: n }, { getState: i, dispatch: r, queryCacheKey: a, forced: c }) => {
|
|
@@ -3977,9 +3978,9 @@ const N = z.injectEndpoints({
|
|
|
3977
3978
|
const d = i(), u = JSON.stringify({ projectName: e, entityType: n }), l = d.restApi?.queries?.[a || `getEntityLinks(${u})`]?.data || [], p = new Set(l.map((v) => v.id)), f = s.filter((v) => !p?.has(v) || c);
|
|
3978
3979
|
if (f.length === 0)
|
|
3979
3980
|
return { data: l };
|
|
3980
|
-
const y =
|
|
3981
|
+
const y = $t[n], h = xt[n];
|
|
3981
3982
|
return { data: (await r(
|
|
3982
|
-
|
|
3983
|
+
M.endpoints[y].initiate(
|
|
3983
3984
|
{ projectName: e, entityIds: f },
|
|
3984
3985
|
{ forceRefetch: !0 }
|
|
3985
3986
|
)
|
|
@@ -4001,7 +4002,7 @@ const N = z.injectEndpoints({
|
|
|
4001
4002
|
node: {
|
|
4002
4003
|
id: I.node.id,
|
|
4003
4004
|
name: I.node.name,
|
|
4004
|
-
label:
|
|
4005
|
+
label: ct(I.node),
|
|
4005
4006
|
parents: I.node.parents || [],
|
|
4006
4007
|
subType: "subType" in I.node ? I.node.subType : void 0
|
|
4007
4008
|
},
|
|
@@ -4015,7 +4016,7 @@ const N = z.injectEndpoints({
|
|
|
4015
4016
|
};
|
|
4016
4017
|
}) || [] };
|
|
4017
4018
|
} catch (d) {
|
|
4018
|
-
return console.error(`Error in getEntityLinks queryFn for ${n}:`, d),
|
|
4019
|
+
return console.error(`Error in getEntityLinks queryFn for ${n}:`, d), ts.error(`Error fetching ${n} links`), { error: L(d) };
|
|
4019
4020
|
}
|
|
4020
4021
|
},
|
|
4021
4022
|
// 2. We should not create new caches when the entityIds argument changes.
|
|
@@ -4050,11 +4051,11 @@ const N = z.injectEndpoints({
|
|
|
4050
4051
|
let c;
|
|
4051
4052
|
const d = U(
|
|
4052
4053
|
async (u, o) => {
|
|
4053
|
-
const l =
|
|
4054
|
+
const l = $t[s], p = xt[s];
|
|
4054
4055
|
try {
|
|
4055
4056
|
await J();
|
|
4056
4057
|
const f = await a(
|
|
4057
|
-
|
|
4058
|
+
M.endpoints[l].initiate(
|
|
4058
4059
|
{ projectName: e, entityIds: u.map(({ entityId: h }) => h) },
|
|
4059
4060
|
{ forceRefetch: !0 }
|
|
4060
4061
|
)
|
|
@@ -4067,7 +4068,7 @@ const N = z.injectEndpoints({
|
|
|
4067
4068
|
node: {
|
|
4068
4069
|
id: g.node.id,
|
|
4069
4070
|
name: g.node.name,
|
|
4070
|
-
label:
|
|
4071
|
+
label: ct(g.node),
|
|
4071
4072
|
parents: g.node.parents || [],
|
|
4072
4073
|
subType: "subType" in g.node ? g.node.subType : void 0
|
|
4073
4074
|
},
|
|
@@ -4104,22 +4105,22 @@ const N = z.injectEndpoints({
|
|
|
4104
4105
|
}
|
|
4105
4106
|
})
|
|
4106
4107
|
})
|
|
4107
|
-
}), { useGetEntityLinksQuery:
|
|
4108
|
+
}), { useGetEntityLinksQuery: Da } = le, ne = 10, Ut = (t) => {
|
|
4108
4109
|
if (!t) return {};
|
|
4109
4110
|
try {
|
|
4110
4111
|
return typeof t != "string" ? t ?? {} : JSON.parse(t);
|
|
4111
4112
|
} catch (e) {
|
|
4112
4113
|
return console.warn("Failed to parse entity list data field:", e, t), {};
|
|
4113
4114
|
}
|
|
4114
|
-
},
|
|
4115
|
+
}, qt = 1e4, tt = 100, Re = Q.enhanceEndpoints({
|
|
4115
4116
|
endpoints: {
|
|
4116
4117
|
GetLists: {
|
|
4117
4118
|
transformResponse: (t) => ({
|
|
4118
4119
|
// @ts-expect-error - entityType is string
|
|
4119
4120
|
lists: t.project.entityLists.edges.map((e) => ({
|
|
4120
4121
|
...e.node,
|
|
4121
|
-
data:
|
|
4122
|
-
attrib:
|
|
4122
|
+
data: Ut(e.node.data),
|
|
4123
|
+
attrib: Ut(e.node.allAttrib)
|
|
4123
4124
|
})),
|
|
4124
4125
|
pageInfo: t.project.entityLists.pageInfo
|
|
4125
4126
|
}),
|
|
@@ -4168,7 +4169,7 @@ const N = z.injectEndpoints({
|
|
|
4168
4169
|
try {
|
|
4169
4170
|
const { cursor: i } = s, r = {
|
|
4170
4171
|
...e,
|
|
4171
|
-
first:
|
|
4172
|
+
first: qt,
|
|
4172
4173
|
after: i || void 0
|
|
4173
4174
|
}, a = await n.dispatch(
|
|
4174
4175
|
Re.endpoints.GetLists.initiate(r, { forceRefetch: !0 })
|
|
@@ -4274,10 +4275,10 @@ const N = z.injectEndpoints({
|
|
|
4274
4275
|
try {
|
|
4275
4276
|
const { sortBy: i, desc: r, ...a } = e, { cursor: c } = s, d = {
|
|
4276
4277
|
...a,
|
|
4277
|
-
first:
|
|
4278
|
+
first: tt,
|
|
4278
4279
|
after: c || void 0
|
|
4279
4280
|
};
|
|
4280
|
-
d.after = c || void 0, d.first =
|
|
4281
|
+
d.after = c || void 0, d.first = tt, i && (d.sortBy = i, r && (d.before = c || void 0, d.after = void 0, d.last = tt, d.first = void 0));
|
|
4281
4282
|
const u = await n.dispatch(
|
|
4282
4283
|
Re.endpoints.GetListItems.initiate(d, {
|
|
4283
4284
|
forceRefetch: !0
|
|
@@ -4370,7 +4371,7 @@ const N = z.injectEndpoints({
|
|
|
4370
4371
|
try {
|
|
4371
4372
|
const { cursor: i } = s, r = {
|
|
4372
4373
|
...e,
|
|
4373
|
-
first:
|
|
4374
|
+
first: qt,
|
|
4374
4375
|
after: i || void 0
|
|
4375
4376
|
}, a = await n.dispatch(
|
|
4376
4377
|
Re.endpoints.GetListsItemsForReviewSession.initiate(r, {
|
|
@@ -4402,7 +4403,7 @@ const N = z.injectEndpoints({
|
|
|
4402
4403
|
keepUnusedDataFor: ne
|
|
4403
4404
|
})
|
|
4404
4405
|
})
|
|
4405
|
-
}),
|
|
4406
|
+
}), fi = ue.enhanceEndpoints({
|
|
4406
4407
|
endpoints: {
|
|
4407
4408
|
getEntityList: {
|
|
4408
4409
|
providesTags: (t, e, { listId: s, projectName: n }) => [
|
|
@@ -4420,12 +4421,12 @@ const N = z.injectEndpoints({
|
|
|
4420
4421
|
}
|
|
4421
4422
|
}
|
|
4422
4423
|
}), {
|
|
4423
|
-
useGetListsInfiniteInfiniteQuery:
|
|
4424
|
-
useGetListItemsInfiniteInfiniteQuery:
|
|
4425
|
-
useGetListsItemsForReviewSessionInfiniteQuery:
|
|
4426
|
-
useLazyGetListsItemsForReviewSessionQuery:
|
|
4427
|
-
useLazyGetListItemsQuery:
|
|
4428
|
-
} = q, { useGetEntityListQuery:
|
|
4424
|
+
useGetListsInfiniteInfiniteQuery: Oa,
|
|
4425
|
+
useGetListItemsInfiniteInfiniteQuery: $a,
|
|
4426
|
+
useGetListsItemsForReviewSessionInfiniteQuery: xa,
|
|
4427
|
+
useLazyGetListsItemsForReviewSessionQuery: Ua,
|
|
4428
|
+
useLazyGetListItemsQuery: qa
|
|
4429
|
+
} = q, { useGetEntityListQuery: Ba } = fi, yi = ue.enhanceEndpoints({
|
|
4429
4430
|
endpoints: {
|
|
4430
4431
|
// LIST MUTATIONS
|
|
4431
4432
|
createEntityList: {
|
|
@@ -4608,7 +4609,7 @@ const N = z.injectEndpoints({
|
|
|
4608
4609
|
]
|
|
4609
4610
|
}
|
|
4610
4611
|
}
|
|
4611
|
-
}),
|
|
4612
|
+
}), gi = yi.injectEndpoints({
|
|
4612
4613
|
endpoints: (t) => ({
|
|
4613
4614
|
createSessionFromList: t.mutation({
|
|
4614
4615
|
query: (e) => ({
|
|
@@ -4621,21 +4622,21 @@ const N = z.injectEndpoints({
|
|
|
4621
4622
|
})
|
|
4622
4623
|
}), {
|
|
4623
4624
|
// LIST MUTATIONS
|
|
4624
|
-
useCreateEntityListMutation:
|
|
4625
|
-
useUpdateEntityListMutation:
|
|
4626
|
-
useDeleteEntityListMutation:
|
|
4625
|
+
useCreateEntityListMutation: Ha,
|
|
4626
|
+
useUpdateEntityListMutation: Wa,
|
|
4627
|
+
useDeleteEntityListMutation: za,
|
|
4627
4628
|
// LIST ITEM MUTATIONS
|
|
4628
|
-
useUpdateEntityListItemsMutation:
|
|
4629
|
-
useUpdateEntityListItemMutation:
|
|
4630
|
-
useCreateEntityListItemMutation:
|
|
4631
|
-
useDeleteEntityListItemMutation:
|
|
4629
|
+
useUpdateEntityListItemsMutation: Ka,
|
|
4630
|
+
useUpdateEntityListItemMutation: Ja,
|
|
4631
|
+
useCreateEntityListItemMutation: Ya,
|
|
4632
|
+
useDeleteEntityListItemMutation: Xa,
|
|
4632
4633
|
// REVIEW SESSION MUTATIONS
|
|
4633
|
-
useCreateSessionFromListMutation:
|
|
4634
|
-
} =
|
|
4634
|
+
useCreateSessionFromListMutation: Za
|
|
4635
|
+
} = gi, Bt = 5, Te = (t) => (t || "").replace(/-/g, ""), hi = (t, e, s) => {
|
|
4635
4636
|
Array.isArray(t.latestComments) || (t.latestComments = []);
|
|
4636
4637
|
const n = t.latestComments, i = Te(e.activityId), r = n.findIndex((a) => Te(a.activityId) === i);
|
|
4637
|
-
s === "delete" ? r !== -1 && n.splice(r, 1) : s === "update" ? r !== -1 && (n[r].body = e.body) : (r !== -1 && n.splice(r, 1), n.unshift(e), n.length >
|
|
4638
|
-
},
|
|
4638
|
+
s === "delete" ? r !== -1 && n.splice(r, 1) : s === "update" ? r !== -1 && (n[r].body = e.body) : (r !== -1 && n.splice(r, 1), n.unshift(e), n.length > Bt && n.splice(Bt));
|
|
4639
|
+
}, mi = [
|
|
4639
4640
|
{
|
|
4640
4641
|
api: x,
|
|
4641
4642
|
tag: "overviewTask",
|
|
@@ -4662,7 +4663,7 @@ const N = z.injectEndpoints({
|
|
|
4662
4663
|
getProductsInfinite: (t) => (t?.pages?.flatMap((e) => e.products ?? []) ?? []).map((e) => e.featuredVersion).filter(Boolean)
|
|
4663
4664
|
}
|
|
4664
4665
|
}
|
|
4665
|
-
],
|
|
4666
|
+
], vi = (t, { dispatch: e, getState: s }, n) => {
|
|
4666
4667
|
const { patch: i } = t, r = t.entityId ?? i?.entityId, a = i?.activityId ?? t.activityId;
|
|
4667
4668
|
if (!r || !a) return [];
|
|
4668
4669
|
if (n === "create" && !(i?.activityType === "comment" && i?.referenceType === "origin"))
|
|
@@ -4675,7 +4676,7 @@ const N = z.injectEndpoints({
|
|
|
4675
4676
|
author: i?.authorName ?? null,
|
|
4676
4677
|
createdAt: i?.createdAt ?? ""
|
|
4677
4678
|
}, d = s(), u = Te(r), o = [];
|
|
4678
|
-
for (const { api: l, tag: p, selectors: f } of
|
|
4679
|
+
for (const { api: l, tag: p, selectors: f } of mi) {
|
|
4679
4680
|
const y = l.util.selectInvalidatedBy(d, [{ type: p, id: r }]);
|
|
4680
4681
|
for (const { endpointName: h, originalArgs: g } of y) {
|
|
4681
4682
|
const m = f[h];
|
|
@@ -4683,14 +4684,14 @@ const N = z.injectEndpoints({
|
|
|
4683
4684
|
e(
|
|
4684
4685
|
l.util.updateQueryData(h, g, (v) => {
|
|
4685
4686
|
for (const b of m(v))
|
|
4686
|
-
(Te(b?.id) === u || Te(b?.entityId) === u) &&
|
|
4687
|
+
(Te(b?.id) === u || Te(b?.entityId) === u) && hi(b, c, n);
|
|
4687
4688
|
})
|
|
4688
4689
|
)
|
|
4689
4690
|
);
|
|
4690
4691
|
}
|
|
4691
4692
|
}
|
|
4692
4693
|
return o;
|
|
4693
|
-
},
|
|
4694
|
+
}, bi = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, Ii = async (t, {
|
|
4694
4695
|
updateCachedData: e,
|
|
4695
4696
|
cacheDataLoaded: s,
|
|
4696
4697
|
cacheEntryRemoved: n,
|
|
@@ -4742,12 +4743,12 @@ const N = z.injectEndpoints({
|
|
|
4742
4743
|
e((E) => {
|
|
4743
4744
|
w.forEach((P, S) => {
|
|
4744
4745
|
const j = [P.activityType];
|
|
4745
|
-
if (P.activityType === "comment" &&
|
|
4746
|
+
if (P.activityType === "comment" && bi(P.body || "") && j.push("checklist"), h.length > 0 && !h.some(($) => j.includes($)))
|
|
4746
4747
|
return;
|
|
4747
4748
|
let _ = !1;
|
|
4748
4749
|
if (E.pages?.forEach(($) => {
|
|
4749
4750
|
const C = $.activities?.findIndex(
|
|
4750
|
-
(
|
|
4751
|
+
(Es) => Es.activityId === S
|
|
4751
4752
|
);
|
|
4752
4753
|
C !== void 0 && C !== -1 && $.activities && ($.activities[C] = P, _ = !0);
|
|
4753
4754
|
}), !_ && m.get(S) === "activity.created" && E.pages?.[0]?.activities?.unshift(P), P.activityType !== "status.change" || P.origin?.type !== "version")
|
|
@@ -4801,18 +4802,18 @@ const N = z.injectEndpoints({
|
|
|
4801
4802
|
console.error("[Activity RT] Error in activity real-time handler setup:", o);
|
|
4802
4803
|
}
|
|
4803
4804
|
await n, c && F.unsubscribe(c), d && d(), u.clear();
|
|
4804
|
-
},
|
|
4805
|
+
}, st = Q.enhanceEndpoints({
|
|
4805
4806
|
endpoints: {
|
|
4806
4807
|
// Only used by the infinite query below
|
|
4807
4808
|
GetActivities: {
|
|
4808
|
-
transformResponse: (t) =>
|
|
4809
|
-
providesTags:
|
|
4809
|
+
transformResponse: (t) => bt(t.project.activities.edges, t.project.activities.pageInfo),
|
|
4810
|
+
providesTags: is
|
|
4810
4811
|
},
|
|
4811
4812
|
GetActivitiesById: {
|
|
4812
|
-
transformResponse: (t) =>
|
|
4813
|
+
transformResponse: (t) => bt(t.project.activities.edges, t.project.activities.pageInfo)
|
|
4813
4814
|
},
|
|
4814
4815
|
GetEntitiesChecklists: {
|
|
4815
|
-
transformResponse: (t) =>
|
|
4816
|
+
transformResponse: (t) => cn(t),
|
|
4816
4817
|
providesTags: (t, e, { entityIds: s }) => t ? [
|
|
4817
4818
|
{ type: "activity", id: "LIST" },
|
|
4818
4819
|
...t.ids.map((n) => ({ type: "activity", id: "checklist-" + n })),
|
|
@@ -4827,18 +4828,18 @@ const N = z.injectEndpoints({
|
|
|
4827
4828
|
providesTags: (t) => t?.length ? [{ type: "user", id: "LIST" }, ...t.map(({ name: e }) => ({ type: "user", id: e }))] : [{ type: "user", id: "LIST" }]
|
|
4828
4829
|
}
|
|
4829
4830
|
}
|
|
4830
|
-
}),
|
|
4831
|
+
}), Ht = 30, ye = st.injectEndpoints({
|
|
4831
4832
|
endpoints: (t) => ({
|
|
4832
4833
|
getActivitiesInfinite: t.infiniteQuery({
|
|
4833
4834
|
infiniteQueryOptions: {
|
|
4834
|
-
initialPageParam: { cursor: "", last:
|
|
4835
|
+
initialPageParam: { cursor: "", last: Ht },
|
|
4835
4836
|
// Calculate the next page param based on current page response and params
|
|
4836
4837
|
getNextPageParam: (e) => {
|
|
4837
4838
|
const s = e.pageInfo;
|
|
4838
4839
|
if (!(!s.hasPreviousPage || !s.endCursor))
|
|
4839
4840
|
return {
|
|
4840
4841
|
cursor: s.endCursor,
|
|
4841
|
-
last:
|
|
4842
|
+
last: Ht
|
|
4842
4843
|
};
|
|
4843
4844
|
}
|
|
4844
4845
|
},
|
|
@@ -4849,7 +4850,7 @@ const N = z.injectEndpoints({
|
|
|
4849
4850
|
before: s?.cursor,
|
|
4850
4851
|
last: s?.last
|
|
4851
4852
|
}, c = await n.dispatch(
|
|
4852
|
-
|
|
4853
|
+
st.endpoints.GetActivities.initiate(a, {
|
|
4853
4854
|
forceRefetch: !0
|
|
4854
4855
|
})
|
|
4855
4856
|
);
|
|
@@ -4871,16 +4872,16 @@ const N = z.injectEndpoints({
|
|
|
4871
4872
|
}
|
|
4872
4873
|
},
|
|
4873
4874
|
async onCacheEntryAdded(e, { updateCachedData: s, cacheDataLoaded: n, cacheEntryRemoved: i, dispatch: r, getCacheEntry: a }) {
|
|
4874
|
-
await
|
|
4875
|
+
await Ii(e, {
|
|
4875
4876
|
updateCachedData: s,
|
|
4876
4877
|
cacheDataLoaded: n,
|
|
4877
4878
|
cacheEntryRemoved: i,
|
|
4878
4879
|
dispatch: r,
|
|
4879
4880
|
getCacheEntry: a,
|
|
4880
|
-
gqlApi:
|
|
4881
|
+
gqlApi: st
|
|
4881
4882
|
});
|
|
4882
4883
|
},
|
|
4883
|
-
providesTags:
|
|
4884
|
+
providesTags: is
|
|
4884
4885
|
}),
|
|
4885
4886
|
// get data for a reference tooltip based on type,id and projectName
|
|
4886
4887
|
getEntityTooltip: t.query({
|
|
@@ -4888,24 +4889,24 @@ const N = z.injectEndpoints({
|
|
|
4888
4889
|
url: "/graphql",
|
|
4889
4890
|
method: "POST",
|
|
4890
4891
|
body: {
|
|
4891
|
-
query:
|
|
4892
|
+
query: ln(n),
|
|
4892
4893
|
variables: { projectName: e, entityId: s }
|
|
4893
4894
|
}
|
|
4894
4895
|
}),
|
|
4895
|
-
transformResponse: (e, s, { entityType: n }) =>
|
|
4896
|
-
providesTags: (e, s, { entityType: n }) =>
|
|
4896
|
+
transformResponse: (e, s, { entityType: n }) => on(e?.data?.project, n),
|
|
4897
|
+
providesTags: (e, s, { entityType: n }) => dn([e], "task", n)
|
|
4897
4898
|
})
|
|
4898
4899
|
}),
|
|
4899
4900
|
overrideExisting: !0
|
|
4900
4901
|
}), {
|
|
4901
|
-
useGetEntityTooltipQuery:
|
|
4902
|
-
useGetActivitiesByIdQuery:
|
|
4903
|
-
useLazyGetActivitiesByIdQuery:
|
|
4904
|
-
useGetEntitiesChecklistsQuery:
|
|
4905
|
-
useGetActivitiesQuery:
|
|
4906
|
-
useGetActivitiesInfiniteInfiniteQuery:
|
|
4907
|
-
useGetActivityUsersQuery:
|
|
4908
|
-
} = ye,
|
|
4902
|
+
useGetEntityTooltipQuery: eo,
|
|
4903
|
+
useGetActivitiesByIdQuery: to,
|
|
4904
|
+
useLazyGetActivitiesByIdQuery: so,
|
|
4905
|
+
useGetEntitiesChecklistsQuery: no,
|
|
4906
|
+
useGetActivitiesQuery: io,
|
|
4907
|
+
useGetActivitiesInfiniteInfiniteQuery: ro,
|
|
4908
|
+
useGetActivityUsersQuery: ao
|
|
4909
|
+
} = ye, Ti = (t, e, s) => {
|
|
4909
4910
|
if (s)
|
|
4910
4911
|
for (const n of t.pages) {
|
|
4911
4912
|
const i = n.activities.findIndex((r) => r.activityId === e.activityId);
|
|
@@ -4925,12 +4926,12 @@ const N = z.injectEndpoints({
|
|
|
4925
4926
|
}
|
|
4926
4927
|
!n && t.pages.length > 0 && t.pages[0].activities.unshift(e);
|
|
4927
4928
|
}
|
|
4928
|
-
},
|
|
4929
|
+
}, ki = (t) => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), nt = async ({ patch: t, entityIds: e = [], filter: s, refs: n = [], ...i }, r, a) => {
|
|
4929
4930
|
const { dispatch: c, queryFulfilled: d, getState: u } = r, o = n.map((g) => g.id) || [];
|
|
4930
|
-
|
|
4931
|
+
ki(s);
|
|
4931
4932
|
const l = [...e, ...o].map((g) => ({
|
|
4932
4933
|
type: "entityActivities",
|
|
4933
|
-
id: g + "-" +
|
|
4934
|
+
id: g + "-" + ns(s)
|
|
4934
4935
|
})), p = u(), f = ye.util.selectInvalidatedBy(p, l);
|
|
4935
4936
|
a !== "delete" && t.data && (t.activityData = { ...t.activityData, ...t.data });
|
|
4936
4937
|
const y = f.map(
|
|
@@ -4938,10 +4939,10 @@ const N = z.injectEndpoints({
|
|
|
4938
4939
|
ye.util.updateQueryData(
|
|
4939
4940
|
"getActivitiesInfinite",
|
|
4940
4941
|
g,
|
|
4941
|
-
(m) =>
|
|
4942
|
+
(m) => Ti(m, t, a === "delete")
|
|
4942
4943
|
)
|
|
4943
4944
|
)
|
|
4944
|
-
), h =
|
|
4945
|
+
), h = vi(
|
|
4945
4946
|
{ patch: t, ...i },
|
|
4946
4947
|
r,
|
|
4947
4948
|
a
|
|
@@ -4952,13 +4953,13 @@ const N = z.injectEndpoints({
|
|
|
4952
4953
|
for (const m of [...y, ...h])
|
|
4953
4954
|
m?.undo();
|
|
4954
4955
|
}
|
|
4955
|
-
},
|
|
4956
|
+
}, it = ({ entityId: t, filter: e }) => {
|
|
4956
4957
|
const n = Object.keys(se).filter((i) => i !== e).map((i) => ({
|
|
4957
4958
|
type: "entityActivities",
|
|
4958
4959
|
id: t + "-" + i
|
|
4959
4960
|
}));
|
|
4960
4961
|
return n.push({ type: "activity", id: "LIST" }), n.push({ type: "watchers", id: t }), n;
|
|
4961
|
-
},
|
|
4962
|
+
}, Ai = ye.injectEndpoints({
|
|
4962
4963
|
endpoints: (t) => ({
|
|
4963
4964
|
createEntityActivity: t.mutation({
|
|
4964
4965
|
query: ({ projectName: e, entityType: s, entityId: n, data: i = {} }) => ({
|
|
@@ -4968,10 +4969,10 @@ const N = z.injectEndpoints({
|
|
|
4968
4969
|
body: i
|
|
4969
4970
|
}),
|
|
4970
4971
|
async onQueryStarted(e, s) {
|
|
4971
|
-
|
|
4972
|
+
nt(e, s, "create");
|
|
4972
4973
|
},
|
|
4973
4974
|
// invalidate other filters that might be affected by this new activity (comments, checklists, etc)
|
|
4974
|
-
invalidatesTags: (e, s, { entityId: n, filter: i }) =>
|
|
4975
|
+
invalidatesTags: (e, s, { entityId: n, filter: i }) => it({ entityId: n, filter: i })
|
|
4975
4976
|
}),
|
|
4976
4977
|
updateActivity: t.mutation({
|
|
4977
4978
|
query: ({ projectName: e, activityId: s, data: n }) => ({
|
|
@@ -4980,10 +4981,10 @@ const N = z.injectEndpoints({
|
|
|
4980
4981
|
body: n
|
|
4981
4982
|
}),
|
|
4982
4983
|
async onQueryStarted(e, s) {
|
|
4983
|
-
|
|
4984
|
+
nt(e, s, "update");
|
|
4984
4985
|
},
|
|
4985
4986
|
// invalidate other filters that might be affected by this new activity (comments, checklists, etc)
|
|
4986
|
-
invalidatesTags: (e, s, { entityId: n, filter: i }) =>
|
|
4987
|
+
invalidatesTags: (e, s, { entityId: n, filter: i }) => it({ entityId: n, filter: i })
|
|
4987
4988
|
}),
|
|
4988
4989
|
deleteActivity: t.mutation({
|
|
4989
4990
|
query: ({ projectName: e, activityId: s }) => ({
|
|
@@ -4991,18 +4992,18 @@ const N = z.injectEndpoints({
|
|
|
4991
4992
|
method: "DELETE"
|
|
4992
4993
|
}),
|
|
4993
4994
|
async onQueryStarted(e, s) {
|
|
4994
|
-
|
|
4995
|
+
nt(e, s, "delete");
|
|
4995
4996
|
},
|
|
4996
4997
|
// invalidate other filters that might be affected by this new activity (comments, checklists, etc)
|
|
4997
|
-
invalidatesTags: (e, s, { entityId: n, filter: i }) =>
|
|
4998
|
+
invalidatesTags: (e, s, { entityId: n, filter: i }) => it({ entityId: n, filter: i })
|
|
4998
4999
|
})
|
|
4999
5000
|
}),
|
|
5000
5001
|
overrideExisting: !0
|
|
5001
5002
|
}), {
|
|
5002
|
-
useCreateEntityActivityMutation:
|
|
5003
|
-
useDeleteActivityMutation:
|
|
5004
|
-
useUpdateActivityMutation:
|
|
5005
|
-
} =
|
|
5003
|
+
useCreateEntityActivityMutation: oo,
|
|
5004
|
+
useDeleteActivityMutation: co,
|
|
5005
|
+
useUpdateActivityMutation: uo
|
|
5006
|
+
} = Ai, Wt = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
|
|
5006
5007
|
const a = [{ type: "activity", id: t }];
|
|
5007
5008
|
return ye.util.selectInvalidatedBy(n(), a).map((d) => i(
|
|
5008
5009
|
// @ts-ignore
|
|
@@ -5040,11 +5041,11 @@ const N = z.injectEndpoints({
|
|
|
5040
5041
|
}
|
|
5041
5042
|
)
|
|
5042
5043
|
));
|
|
5043
|
-
},
|
|
5044
|
+
}, wi = Pe.enhanceEndpoints({
|
|
5044
5045
|
endpoints: {
|
|
5045
5046
|
createReactionToActivity: {
|
|
5046
5047
|
async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
|
|
5047
|
-
const i =
|
|
5048
|
+
const i = Wt(
|
|
5048
5049
|
{
|
|
5049
5050
|
activityId: t.activityId,
|
|
5050
5051
|
// @ts-ignore
|
|
@@ -5064,7 +5065,7 @@ const N = z.injectEndpoints({
|
|
|
5064
5065
|
},
|
|
5065
5066
|
deleteReactionToActivity: {
|
|
5066
5067
|
async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
|
|
5067
|
-
const i =
|
|
5068
|
+
const i = Wt(
|
|
5068
5069
|
// @ts-ignore
|
|
5069
5070
|
{ activityId: t.activityId, userName: t.userName, reaction: t.reaction },
|
|
5070
5071
|
{ getState: e, dispatch: s },
|
|
@@ -5079,34 +5080,34 @@ const N = z.injectEndpoints({
|
|
|
5079
5080
|
}
|
|
5080
5081
|
}
|
|
5081
5082
|
}
|
|
5082
|
-
}), { useCreateReactionToActivityMutation:
|
|
5083
|
+
}), { useCreateReactionToActivityMutation: lo, useDeleteReactionToActivityMutation: po } = wi, zt = Pe.enhanceEndpoints({
|
|
5083
5084
|
endpoints: {
|
|
5084
5085
|
suggestEntityMention: {}
|
|
5085
5086
|
}
|
|
5086
|
-
}),
|
|
5087
|
+
}), Ei = zt.injectEndpoints({
|
|
5087
5088
|
endpoints: (t) => ({
|
|
5088
5089
|
getEntityMentions: t.query({
|
|
5089
5090
|
queryFn: async (e, { dispatch: s }) => {
|
|
5090
5091
|
const n = await s(
|
|
5091
|
-
|
|
5092
|
+
zt.endpoints.suggestEntityMention.initiate(e)
|
|
5092
5093
|
);
|
|
5093
5094
|
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
5094
5095
|
},
|
|
5095
5096
|
providesTags: [{ type: "team", id: "LIST" }]
|
|
5096
5097
|
})
|
|
5097
5098
|
})
|
|
5098
|
-
}), { useGetEntityMentionsQuery:
|
|
5099
|
+
}), { useGetEntityMentionsQuery: fo } = Ei, dt = { type: "category", id: "LIST" }, ut = { type: "addonSettings", id: "powerpack" }, lt = Pe.enhanceEndpoints({
|
|
5099
5100
|
endpoints: {
|
|
5100
5101
|
getActivityCategories: {
|
|
5101
5102
|
transformResponse: (t) => t.categories,
|
|
5102
5103
|
providesTags: (t) => t ? [
|
|
5103
5104
|
...t.map(({ name: e }) => ({ type: "category", id: e })),
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
] : [
|
|
5105
|
+
dt,
|
|
5106
|
+
ut
|
|
5107
|
+
] : [dt, ut]
|
|
5107
5108
|
}
|
|
5108
5109
|
}
|
|
5109
|
-
}),
|
|
5110
|
+
}), Si = lt.injectEndpoints({
|
|
5110
5111
|
endpoints: (t) => ({
|
|
5111
5112
|
getProjectsCategories: t.query({
|
|
5112
5113
|
async queryFn({ projects: e = [] }, { dispatch: s }) {
|
|
@@ -5114,7 +5115,7 @@ const N = z.injectEndpoints({
|
|
|
5114
5115
|
e.map(async (i) => {
|
|
5115
5116
|
try {
|
|
5116
5117
|
const r = await s(
|
|
5117
|
-
|
|
5118
|
+
lt.endpoints.getActivityCategories.initiate({ projectName: i })
|
|
5118
5119
|
).unwrap();
|
|
5119
5120
|
return [i, r];
|
|
5120
5121
|
} catch {
|
|
@@ -5124,16 +5125,16 @@ const N = z.injectEndpoints({
|
|
|
5124
5125
|
);
|
|
5125
5126
|
return { data: Object.fromEntries(n) };
|
|
5126
5127
|
},
|
|
5127
|
-
providesTags: [
|
|
5128
|
+
providesTags: [dt, ut]
|
|
5128
5129
|
})
|
|
5129
5130
|
})
|
|
5130
|
-
}), { useGetActivityCategoriesQuery:
|
|
5131
|
+
}), { useGetActivityCategoriesQuery: yo } = lt, { useGetProjectsCategoriesQuery: go } = Si, vs = Fs.enhanceEndpoints({
|
|
5131
5132
|
endpoints: {
|
|
5132
5133
|
listAddons: {
|
|
5133
5134
|
providesTags: ["addonList"]
|
|
5134
5135
|
}
|
|
5135
5136
|
}
|
|
5136
|
-
}), { useListAddonsQuery:
|
|
5137
|
+
}), { useListAddonsQuery: ho } = vs, bs = vs.injectEndpoints({
|
|
5137
5138
|
endpoints: (t) => ({
|
|
5138
5139
|
// Return a list of addons which have project-scoped frontend
|
|
5139
5140
|
getProjectAddons: t.query({
|
|
@@ -5206,7 +5207,7 @@ const N = z.injectEndpoints({
|
|
|
5206
5207
|
})
|
|
5207
5208
|
}),
|
|
5208
5209
|
overrideExisting: !0
|
|
5209
|
-
}), { useGetProjectAddonsQuery:
|
|
5210
|
+
}), { useGetProjectAddonsQuery: mo, useGetSettingsAddonsQuery: vo, useGetDashboardAddonsQuery: bo } = bs, rt = bs.enhanceEndpoints({
|
|
5210
5211
|
endpoints: {
|
|
5211
5212
|
deleteAddonVersion: {
|
|
5212
5213
|
invalidatesTags: ["addonList"]
|
|
@@ -5222,7 +5223,7 @@ const N = z.injectEndpoints({
|
|
|
5222
5223
|
]
|
|
5223
5224
|
}
|
|
5224
5225
|
}
|
|
5225
|
-
}),
|
|
5226
|
+
}), Is = rt.injectEndpoints({
|
|
5226
5227
|
endpoints: (t) => ({
|
|
5227
5228
|
// delete multiple addon versions at once
|
|
5228
5229
|
deleteAddonVersions: t.mutation({
|
|
@@ -5231,7 +5232,7 @@ const N = z.injectEndpoints({
|
|
|
5231
5232
|
for (const i of e)
|
|
5232
5233
|
!i.name || !i.version || n.push(
|
|
5233
5234
|
s(
|
|
5234
|
-
|
|
5235
|
+
rt.endpoints.deleteAddonVersion.initiate({
|
|
5235
5236
|
addonName: i.name,
|
|
5236
5237
|
addonVersion: i.version
|
|
5237
5238
|
})
|
|
@@ -5251,7 +5252,7 @@ const N = z.injectEndpoints({
|
|
|
5251
5252
|
for (const r of n)
|
|
5252
5253
|
!r.url || !r.name || !r.version || i.push(
|
|
5253
5254
|
s(
|
|
5254
|
-
|
|
5255
|
+
rt.endpoints.uploadAddonZipFile.initiate({
|
|
5255
5256
|
url: r.url,
|
|
5256
5257
|
addonName: r.name,
|
|
5257
5258
|
addonVersion: r.version
|
|
@@ -5270,7 +5271,7 @@ const N = z.injectEndpoints({
|
|
|
5270
5271
|
}),
|
|
5271
5272
|
// endpoints
|
|
5272
5273
|
overrideExisting: !0
|
|
5273
|
-
}), { useDeleteAddonVersionsMutation:
|
|
5274
|
+
}), { useDeleteAddonVersionsMutation: Io, useDownloadAddonsMutation: To } = Is, Ts = _s.enhanceEndpoints({
|
|
5274
5275
|
endpoints: {
|
|
5275
5276
|
getAttributeList: {
|
|
5276
5277
|
transformResponse: (t) => t.attributes || [],
|
|
@@ -5283,7 +5284,7 @@ const N = z.injectEndpoints({
|
|
|
5283
5284
|
]
|
|
5284
5285
|
}
|
|
5285
5286
|
}
|
|
5286
|
-
}), { useGetAttributeListQuery:
|
|
5287
|
+
}), { useGetAttributeListQuery: ko, useGetAttributeConfigQuery: Ao } = Ts, Pi = Ts.enhanceEndpoints({
|
|
5287
5288
|
endpoints: {
|
|
5288
5289
|
setAttributeList: {
|
|
5289
5290
|
invalidatesTags: ["attribute"]
|
|
@@ -5295,21 +5296,21 @@ const N = z.injectEndpoints({
|
|
|
5295
5296
|
invalidatesTags: (t, e, { attributeName: s }) => [{ type: "attribute", id: s }]
|
|
5296
5297
|
}
|
|
5297
5298
|
}
|
|
5298
|
-
}), { useSetAttributeListMutation:
|
|
5299
|
+
}), { useSetAttributeListMutation: wo, usePatchAttributeConfigMutation: Eo } = Pi, Li = Rs.enhanceEndpoints({
|
|
5299
5300
|
endpoints: {
|
|
5300
5301
|
createSession: {},
|
|
5301
5302
|
getUserPools: {
|
|
5302
5303
|
providesTags: [{ type: "userPool", id: "LIST" }]
|
|
5303
5304
|
}
|
|
5304
5305
|
}
|
|
5305
|
-
}), { useCreateSessionMutation:
|
|
5306
|
+
}), { useCreateSessionMutation: So, useGetUserPoolsQuery: Po } = Li, pt = Gs.enhanceEndpoints({
|
|
5306
5307
|
endpoints: {
|
|
5307
5308
|
listBundles: {
|
|
5308
5309
|
providesTags: () => [{ type: "bundleList" }]
|
|
5309
5310
|
},
|
|
5310
5311
|
checkBundleCompatibility: {}
|
|
5311
5312
|
}
|
|
5312
|
-
}),
|
|
5313
|
+
}), ji = Se.enhanceEndpoints({
|
|
5313
5314
|
endpoints: {
|
|
5314
5315
|
getProjectBundleInfo: {
|
|
5315
5316
|
providesTags: (t, e, { projectName: s }) => [
|
|
@@ -5318,7 +5319,7 @@ const N = z.injectEndpoints({
|
|
|
5318
5319
|
]
|
|
5319
5320
|
}
|
|
5320
5321
|
}
|
|
5321
|
-
}), { useListBundlesQuery:
|
|
5322
|
+
}), { useListBundlesQuery: Lo, useLazyListBundlesQuery: jo, useCheckBundleCompatibilityQuery: Fo } = pt, { useGetProjectBundleInfoQuery: _o } = ji, Fi = pt.enhanceEndpoints({
|
|
5322
5323
|
endpoints: {
|
|
5323
5324
|
migrateSettingsByBundle: {
|
|
5324
5325
|
invalidatesTags: () => [
|
|
@@ -5331,7 +5332,7 @@ const N = z.injectEndpoints({
|
|
|
5331
5332
|
// optimisticUpdate bundleList to update bundle
|
|
5332
5333
|
onQueryStarted: async ({ bundleName: t, archived: e = !0, patch: s }, { dispatch: n, queryFulfilled: i }) => {
|
|
5333
5334
|
const r = n(
|
|
5334
|
-
|
|
5335
|
+
pt.util.updateQueryData("listBundles", { archived: e }, (a) => {
|
|
5335
5336
|
if (!s || !a?.bundles) return;
|
|
5336
5337
|
const c = a.bundles.findIndex((d) => d.name === t);
|
|
5337
5338
|
if (c === -1) throw new Error("bundle not found");
|
|
@@ -5353,7 +5354,7 @@ const N = z.injectEndpoints({
|
|
|
5353
5354
|
]
|
|
5354
5355
|
}
|
|
5355
5356
|
}
|
|
5356
|
-
}),
|
|
5357
|
+
}), _i = Se.enhanceEndpoints({
|
|
5357
5358
|
endpoints: {
|
|
5358
5359
|
unsetProjectBundle: {
|
|
5359
5360
|
invalidatesTags: (t, e, { projectName: s }) => [
|
|
@@ -5366,7 +5367,7 @@ const N = z.injectEndpoints({
|
|
|
5366
5367
|
]
|
|
5367
5368
|
}
|
|
5368
5369
|
}
|
|
5369
|
-
}),
|
|
5370
|
+
}), Ri = Fi.injectEndpoints({
|
|
5370
5371
|
endpoints: (t) => ({
|
|
5371
5372
|
deleteBundle: t.mutation({
|
|
5372
5373
|
query: ({ name: e }) => ({
|
|
@@ -5420,12 +5421,12 @@ const N = z.injectEndpoints({
|
|
|
5420
5421
|
// endpoints
|
|
5421
5422
|
overrideExisting: !0
|
|
5422
5423
|
}), {
|
|
5423
|
-
useDeleteBundleMutation:
|
|
5424
|
-
useCreateBundleMutation:
|
|
5425
|
-
usePromoteBundleMutation:
|
|
5426
|
-
useMigrateSettingsByBundleMutation:
|
|
5427
|
-
useUpdateBundleMutation:
|
|
5428
|
-
} =
|
|
5424
|
+
useDeleteBundleMutation: Ro,
|
|
5425
|
+
useCreateBundleMutation: Go,
|
|
5426
|
+
usePromoteBundleMutation: Co,
|
|
5427
|
+
useMigrateSettingsByBundleMutation: No,
|
|
5428
|
+
useUpdateBundleMutation: Qo
|
|
5429
|
+
} = Ri, { useUnsetProjectBundleMutation: Mo } = _i, Gi = Cs.enhanceEndpoints({
|
|
5429
5430
|
endpoints: {
|
|
5430
5431
|
getYnputCloudInfo: {
|
|
5431
5432
|
providesTags: ["connections"]
|
|
@@ -5441,11 +5442,11 @@ const N = z.injectEndpoints({
|
|
|
5441
5442
|
}
|
|
5442
5443
|
}
|
|
5443
5444
|
}), {
|
|
5444
|
-
useGetYnputCloudInfoQuery:
|
|
5445
|
-
useSetYnputCloudKeyMutation:
|
|
5446
|
-
useDeleteYnputCloudKeyMutation:
|
|
5447
|
-
useGetFeedbackVerificationQuery:
|
|
5448
|
-
} =
|
|
5445
|
+
useGetYnputCloudInfoQuery: Vo,
|
|
5446
|
+
useSetYnputCloudKeyMutation: Do,
|
|
5447
|
+
useDeleteYnputCloudKeyMutation: Oo,
|
|
5448
|
+
useGetFeedbackVerificationQuery: $o
|
|
5449
|
+
} = Gi, ks = Ns.enhanceEndpoints({
|
|
5449
5450
|
endpoints: {
|
|
5450
5451
|
getServerConfig: {
|
|
5451
5452
|
providesTags: ["config"]
|
|
@@ -5459,17 +5460,17 @@ const N = z.injectEndpoints({
|
|
|
5459
5460
|
}
|
|
5460
5461
|
}
|
|
5461
5462
|
}), {
|
|
5462
|
-
useGetServerConfigQuery:
|
|
5463
|
-
useGetServerConfigOverridesQuery:
|
|
5464
|
-
useGetServerConfigSchemaQuery:
|
|
5465
|
-
useGetConfigValueQuery:
|
|
5466
|
-
} =
|
|
5463
|
+
useGetServerConfigQuery: xo,
|
|
5464
|
+
useGetServerConfigOverridesQuery: Uo,
|
|
5465
|
+
useGetServerConfigSchemaQuery: qo,
|
|
5466
|
+
useGetConfigValueQuery: Bo
|
|
5467
|
+
} = ks, Ci = ks.enhanceEndpoints({
|
|
5467
5468
|
endpoints: {
|
|
5468
5469
|
setServerConfig: {
|
|
5469
5470
|
invalidatesTags: ["config"]
|
|
5470
5471
|
}
|
|
5471
5472
|
}
|
|
5472
|
-
}), { useSetServerConfigMutation:
|
|
5473
|
+
}), { useSetServerConfigMutation: Ho } = Ci, ft = ue.enhanceEndpoints({
|
|
5473
5474
|
endpoints: {
|
|
5474
5475
|
getEntityListAttributesDefinition: {
|
|
5475
5476
|
providesTags: (t, e, { listId: s }) => t ? [
|
|
@@ -5478,7 +5479,7 @@ const N = z.injectEndpoints({
|
|
|
5478
5479
|
] : [{ type: "entityListAttribute", id: "LIST" }]
|
|
5479
5480
|
}
|
|
5480
5481
|
}
|
|
5481
|
-
}), { useGetEntityListAttributesDefinitionQuery:
|
|
5482
|
+
}), { useGetEntityListAttributesDefinitionQuery: Wo } = ft, Ni = (t) => t.startsWith("attrib.") ? `_all_attrib.${t.slice(7)}` : t.startsWith("inherited_attributes.") ? `_all_attrib.${t.slice(21)}` : `_entity_${t}`, Qi = (t) => t.startsWith("_all_attrib_") ? `attrib_${t.slice(12)}` : t.startsWith("_entity_") ? t.slice(8) : t, zo = (t) => t.map((e) => ({ ...e, field: Ni(e.field) })), Mi = Q.enhanceEndpoints({
|
|
5482
5483
|
endpoints: {
|
|
5483
5484
|
// same caching as the other column stats endpoints: `targets` excluded
|
|
5484
5485
|
// from the cache key, responses merged, only added targets refetch
|
|
@@ -5486,7 +5487,7 @@ const N = z.injectEndpoints({
|
|
|
5486
5487
|
transformResponse: (t) => {
|
|
5487
5488
|
const e = t?.project?.entityLists?.edges?.[0]?.node?.items?.fieldStats ?? [];
|
|
5488
5489
|
return ke(
|
|
5489
|
-
e.map((s) => ({ ...s, columnName:
|
|
5490
|
+
e.map((s) => ({ ...s, columnName: Qi(s.columnName) }))
|
|
5490
5491
|
);
|
|
5491
5492
|
},
|
|
5492
5493
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
@@ -5498,12 +5499,12 @@ const N = z.injectEndpoints({
|
|
|
5498
5499
|
]
|
|
5499
5500
|
}
|
|
5500
5501
|
}
|
|
5501
|
-
}), { useGetListItemsColumnStatsQuery:
|
|
5502
|
+
}), { useGetListItemsColumnStatsQuery: Ko } = Mi, Vi = ft.enhanceEndpoints({
|
|
5502
5503
|
endpoints: {
|
|
5503
5504
|
setEntityListAttributesDefinition: {
|
|
5504
5505
|
onQueryStarted: async (t, { dispatch: e, queryFulfilled: s }) => {
|
|
5505
5506
|
const { listId: n, projectName: i, payload: r } = t, a = e(
|
|
5506
|
-
|
|
5507
|
+
ft.util.updateQueryData(
|
|
5507
5508
|
"getEntityListAttributesDefinition",
|
|
5508
5509
|
{ listId: n, projectName: i },
|
|
5509
5510
|
(c) => r
|
|
@@ -5518,7 +5519,7 @@ const N = z.injectEndpoints({
|
|
|
5518
5519
|
invalidatesTags: (t, e, { listId: s }) => [{ type: "entityListAttribute", id: s }]
|
|
5519
5520
|
}
|
|
5520
5521
|
}
|
|
5521
|
-
}), { useSetEntityListAttributesDefinitionMutation:
|
|
5522
|
+
}), { useSetEntityListAttributesDefinitionMutation: Jo } = Vi, Ge = { type: "entityListFolder", id: "LIST" }, Me = ue.enhanceEndpoints({
|
|
5522
5523
|
endpoints: {
|
|
5523
5524
|
getEntityListFolders: {
|
|
5524
5525
|
transformResponse: (t) => t.folders || [],
|
|
@@ -5536,7 +5537,7 @@ const N = z.injectEndpoints({
|
|
|
5536
5537
|
(r) => {
|
|
5537
5538
|
const a = {
|
|
5538
5539
|
...e,
|
|
5539
|
-
id: e.id ||
|
|
5540
|
+
id: e.id || ss()
|
|
5540
5541
|
};
|
|
5541
5542
|
r.push(a);
|
|
5542
5543
|
}
|
|
@@ -5606,54 +5607,54 @@ const N = z.injectEndpoints({
|
|
|
5606
5607
|
}
|
|
5607
5608
|
}
|
|
5608
5609
|
}), {
|
|
5609
|
-
useGetEntityListFoldersQuery:
|
|
5610
|
-
useCreateEntityListFolderMutation:
|
|
5611
|
-
useDeleteEntityListFolderMutation:
|
|
5612
|
-
useUpdateEntityListFolderMutation:
|
|
5613
|
-
} = Me,
|
|
5610
|
+
useGetEntityListFoldersQuery: Yo,
|
|
5611
|
+
useCreateEntityListFolderMutation: Xo,
|
|
5612
|
+
useDeleteEntityListFolderMutation: Zo,
|
|
5613
|
+
useUpdateEntityListFolderMutation: ec
|
|
5614
|
+
} = Me, Di = Qs.enhanceEndpoints({
|
|
5614
5615
|
endpoints: {
|
|
5615
5616
|
getEntityGroups: {}
|
|
5616
5617
|
}
|
|
5617
|
-
}), { useGetEntityGroupsQuery:
|
|
5618
|
+
}), { useGetEntityGroupsQuery: tc } = Di, Kt = async (t, e, s, n) => {
|
|
5618
5619
|
switch (t) {
|
|
5619
5620
|
case "task":
|
|
5620
5621
|
return (await n(
|
|
5621
|
-
|
|
5622
|
+
M.endpoints.GetTaskLinkData.initiate({
|
|
5622
5623
|
projectName: s,
|
|
5623
5624
|
taskId: e
|
|
5624
5625
|
})
|
|
5625
5626
|
).unwrap())?.project.task;
|
|
5626
5627
|
case "folder":
|
|
5627
5628
|
return (await n(
|
|
5628
|
-
|
|
5629
|
+
M.endpoints.GetFolderLinkData.initiate({
|
|
5629
5630
|
projectName: s,
|
|
5630
5631
|
folderId: e
|
|
5631
5632
|
})
|
|
5632
5633
|
).unwrap())?.project.folder;
|
|
5633
5634
|
case "product":
|
|
5634
5635
|
return (await n(
|
|
5635
|
-
|
|
5636
|
+
M.endpoints.GetProductLinkData.initiate({
|
|
5636
5637
|
projectName: s,
|
|
5637
5638
|
productId: e
|
|
5638
5639
|
})
|
|
5639
5640
|
).unwrap())?.project.product;
|
|
5640
5641
|
case "version":
|
|
5641
5642
|
return (await n(
|
|
5642
|
-
|
|
5643
|
+
M.endpoints.GetVersionLinkData.initiate({
|
|
5643
5644
|
projectName: s,
|
|
5644
5645
|
versionId: e
|
|
5645
5646
|
})
|
|
5646
5647
|
).unwrap())?.project.version;
|
|
5647
5648
|
case "representation":
|
|
5648
5649
|
return (await n(
|
|
5649
|
-
|
|
5650
|
+
M.endpoints.GetRepresentationLinkData.initiate({
|
|
5650
5651
|
projectName: s,
|
|
5651
5652
|
representationId: e
|
|
5652
5653
|
})
|
|
5653
5654
|
).unwrap())?.project.representation;
|
|
5654
5655
|
case "workfile":
|
|
5655
5656
|
return (await n(
|
|
5656
|
-
|
|
5657
|
+
M.endpoints.GetWorkfileLinkData.initiate({
|
|
5657
5658
|
projectName: s,
|
|
5658
5659
|
workfileId: e
|
|
5659
5660
|
})
|
|
@@ -5661,7 +5662,7 @@ const N = z.injectEndpoints({
|
|
|
5661
5662
|
default:
|
|
5662
5663
|
throw new Error(`Unknown entity type: ${t}`);
|
|
5663
5664
|
}
|
|
5664
|
-
},
|
|
5665
|
+
}, Jt = ({
|
|
5665
5666
|
projectName: t,
|
|
5666
5667
|
sourceEntity: e,
|
|
5667
5668
|
targetEntity: s,
|
|
@@ -5711,7 +5712,7 @@ const N = z.injectEndpoints({
|
|
|
5711
5712
|
A !== -1 ? k.links[A] = T : (console.log(
|
|
5712
5713
|
`Adding new link to ${p.entityType} links cache`,
|
|
5713
5714
|
T,
|
|
5714
|
-
|
|
5715
|
+
Ks(k)
|
|
5715
5716
|
), k.links.push(T));
|
|
5716
5717
|
}
|
|
5717
5718
|
}
|
|
@@ -5732,7 +5733,7 @@ const N = z.injectEndpoints({
|
|
|
5732
5733
|
));
|
|
5733
5734
|
};
|
|
5734
5735
|
o(e, s, r), o(s, e, r === "in" ? "out" : "in");
|
|
5735
|
-
},
|
|
5736
|
+
}, Oi = Ms.enhanceEndpoints({
|
|
5736
5737
|
endpoints: {
|
|
5737
5738
|
deleteEntityLink: {
|
|
5738
5739
|
async onQueryStarted({ linkId: t, projectName: e, patch: s }, { dispatch: n, getState: i, queryFulfilled: r }) {
|
|
@@ -5741,7 +5742,7 @@ const N = z.injectEndpoints({
|
|
|
5741
5742
|
const d = s?.source, u = s?.target, o = s?.linkType || "", l = s?.direction || "out";
|
|
5742
5743
|
if (d && u)
|
|
5743
5744
|
try {
|
|
5744
|
-
|
|
5745
|
+
Jt(
|
|
5745
5746
|
{
|
|
5746
5747
|
projectName: e,
|
|
5747
5748
|
sourceEntity: d,
|
|
@@ -5776,12 +5777,12 @@ const N = z.injectEndpoints({
|
|
|
5776
5777
|
const o = s?.source, l = o?.entityType, p = o?.entityId, f = s?.target, y = f?.entityType, h = f?.entityId, g = s?.direction || "out", m = a?.split("|")[0];
|
|
5777
5778
|
try {
|
|
5778
5779
|
if (o && o.entityType && f) {
|
|
5779
|
-
const v =
|
|
5780
|
+
const v = Kt(
|
|
5780
5781
|
l,
|
|
5781
5782
|
p,
|
|
5782
5783
|
t,
|
|
5783
5784
|
n
|
|
5784
|
-
), b =
|
|
5785
|
+
), b = Kt(
|
|
5785
5786
|
y,
|
|
5786
5787
|
h,
|
|
5787
5788
|
t,
|
|
@@ -5806,7 +5807,7 @@ const N = z.injectEndpoints({
|
|
|
5806
5807
|
parents: T.parents || [],
|
|
5807
5808
|
subType: "subType" in T ? T.subType : void 0
|
|
5808
5809
|
};
|
|
5809
|
-
|
|
5810
|
+
Jt(
|
|
5810
5811
|
{
|
|
5811
5812
|
projectName: t,
|
|
5812
5813
|
sourceEntity: A,
|
|
@@ -5834,7 +5835,7 @@ const N = z.injectEndpoints({
|
|
|
5834
5835
|
}
|
|
5835
5836
|
}
|
|
5836
5837
|
}
|
|
5837
|
-
}), { useDeleteEntityLinkMutation:
|
|
5838
|
+
}), { useDeleteEntityLinkMutation: sc, useCreateEntityLinkMutation: nc } = Oi, $i = 50, he = (t, e) => e ? { entityType: t, entityId: e.id, thumbnailHash: e.thumbnailHash || void 0 } : void 0, xi = M.injectEndpoints({
|
|
5838
5839
|
endpoints: (t) => ({
|
|
5839
5840
|
getSearchedEntitiesLinks: t.infiniteQuery({
|
|
5840
5841
|
infiniteQueryOptions: {
|
|
@@ -5851,49 +5852,49 @@ const N = z.injectEndpoints({
|
|
|
5851
5852
|
try {
|
|
5852
5853
|
const { projectName: i, entityType: r, search: a, parentIds: c, hasReviewables: d, includeTask: u } = e, { cursor: o } = s, l = {
|
|
5853
5854
|
projectName: i,
|
|
5854
|
-
first:
|
|
5855
|
+
first: $i
|
|
5855
5856
|
};
|
|
5856
5857
|
o && (l.after = o), l.search = a || "", l.parentIds = c, l.hasReviewables = d, l.includeTask = !!u;
|
|
5857
5858
|
let p;
|
|
5858
5859
|
switch (r) {
|
|
5859
5860
|
case "folder":
|
|
5860
5861
|
p = await n.dispatch(
|
|
5861
|
-
|
|
5862
|
+
M.endpoints.GetSearchedFolders.initiate(l, {
|
|
5862
5863
|
forceRefetch: !0
|
|
5863
5864
|
})
|
|
5864
5865
|
).unwrap();
|
|
5865
5866
|
break;
|
|
5866
5867
|
case "product":
|
|
5867
5868
|
p = await n.dispatch(
|
|
5868
|
-
|
|
5869
|
+
M.endpoints.GetSearchedProducts.initiate(l, {
|
|
5869
5870
|
forceRefetch: !0
|
|
5870
5871
|
})
|
|
5871
5872
|
).unwrap();
|
|
5872
5873
|
break;
|
|
5873
5874
|
case "task":
|
|
5874
5875
|
p = await n.dispatch(
|
|
5875
|
-
|
|
5876
|
+
M.endpoints.GetSearchedTasks.initiate(l, {
|
|
5876
5877
|
forceRefetch: !0
|
|
5877
5878
|
})
|
|
5878
5879
|
).unwrap();
|
|
5879
5880
|
break;
|
|
5880
5881
|
case "version":
|
|
5881
5882
|
p = await n.dispatch(
|
|
5882
|
-
|
|
5883
|
+
M.endpoints.GetSearchedVersions.initiate(l, {
|
|
5883
5884
|
forceRefetch: !0
|
|
5884
5885
|
})
|
|
5885
5886
|
).unwrap();
|
|
5886
5887
|
break;
|
|
5887
5888
|
case "representation":
|
|
5888
5889
|
p = await n.dispatch(
|
|
5889
|
-
|
|
5890
|
+
M.endpoints.GetSearchedRepresentations.initiate(l, {
|
|
5890
5891
|
forceRefetch: !0
|
|
5891
5892
|
})
|
|
5892
5893
|
).unwrap();
|
|
5893
5894
|
break;
|
|
5894
5895
|
case "workfile":
|
|
5895
5896
|
p = await n.dispatch(
|
|
5896
|
-
|
|
5897
|
+
M.endpoints.GetSearchedWorkfiles.initiate(l, {
|
|
5897
5898
|
forceRefetch: !0
|
|
5898
5899
|
})
|
|
5899
5900
|
).unwrap();
|
|
@@ -5989,7 +5990,59 @@ const N = z.injectEndpoints({
|
|
|
5989
5990
|
}
|
|
5990
5991
|
})
|
|
5991
5992
|
})
|
|
5992
|
-
}), { useGetSearchedEntitiesLinksInfiniteQuery:
|
|
5993
|
+
}), { useGetSearchedEntitiesLinksInfiniteQuery: ic } = xi, Ui = 5e3, qi = 5e4, Bi = M.injectEndpoints({
|
|
5994
|
+
endpoints: (t) => ({
|
|
5995
|
+
/**
|
|
5996
|
+
* All links into or out of a set of entities, grouped by entity like
|
|
5997
|
+
* getEntityLinks. Uses the project-level links query, so it is one request
|
|
5998
|
+
* for any number of entities and not limited to 100 links per entity.
|
|
5999
|
+
* Cached per set of arguments, no realtime updates.
|
|
6000
|
+
*/
|
|
6001
|
+
getLinksOfEntities: t.query({
|
|
6002
|
+
queryFn: async ({ projectName: e, entityIds: s, direction: n }, { dispatch: i }) => {
|
|
6003
|
+
if (!s.length) return { data: { entities: [], truncated: !1 } };
|
|
6004
|
+
const r = n === "in" ? "GetLinksIntoEntities" : "GetLinksFromEntities", a = new Map(s.map((o) => [o, []]));
|
|
6005
|
+
let c, d = 0, u = !1;
|
|
6006
|
+
try {
|
|
6007
|
+
do {
|
|
6008
|
+
const o = await i(
|
|
6009
|
+
M.endpoints[r].initiate(
|
|
6010
|
+
{ projectName: e, entityIds: s, first: Ui, after: c },
|
|
6011
|
+
{ forceRefetch: !0, subscribe: !1 }
|
|
6012
|
+
)
|
|
6013
|
+
).unwrap(), { edges: l, pageInfo: p } = o.project.links;
|
|
6014
|
+
for (const f of l) {
|
|
6015
|
+
const y = n === "in" ? f.outputId : f.inputId, h = n === "in" ? f.inputType : f.outputType, g = f.node;
|
|
6016
|
+
a.get(y)?.push({
|
|
6017
|
+
id: f.id,
|
|
6018
|
+
direction: n,
|
|
6019
|
+
linkType: f.linkType,
|
|
6020
|
+
entityType: h,
|
|
6021
|
+
// a node the user may not see is null
|
|
6022
|
+
node: g && {
|
|
6023
|
+
...g,
|
|
6024
|
+
label: ct(g),
|
|
6025
|
+
parents: g.parents || [],
|
|
6026
|
+
subType: "subType" in g ? g.subType : void 0
|
|
6027
|
+
},
|
|
6028
|
+
isRestricted: !g
|
|
6029
|
+
});
|
|
6030
|
+
}
|
|
6031
|
+
d += l.length, c = p.hasNextPage ? p.endCursor : void 0, u = !!c && d >= qi;
|
|
6032
|
+
} while (c && !u);
|
|
6033
|
+
} catch (o) {
|
|
6034
|
+
return { error: L(o) };
|
|
6035
|
+
}
|
|
6036
|
+
return {
|
|
6037
|
+
data: {
|
|
6038
|
+
entities: [...a].map(([o, l]) => ({ id: o, links: l })),
|
|
6039
|
+
truncated: u
|
|
6040
|
+
}
|
|
6041
|
+
};
|
|
6042
|
+
}
|
|
6043
|
+
})
|
|
6044
|
+
})
|
|
6045
|
+
}), { useGetLinksOfEntitiesQuery: rc } = Bi, Hi = es.enhanceEndpoints({
|
|
5993
6046
|
endpoints: {
|
|
5994
6047
|
getMyPermissions: {
|
|
5995
6048
|
providesTags: (t) => [{ type: "userPermissions" }]
|
|
@@ -5998,13 +6051,13 @@ const N = z.injectEndpoints({
|
|
|
5998
6051
|
providesTags: (t, e, s) => [{ type: "userProjectPermissions" }]
|
|
5999
6052
|
}
|
|
6000
6053
|
}
|
|
6001
|
-
}), { useGetMyPermissionsQuery:
|
|
6054
|
+
}), { useGetMyPermissionsQuery: ac, useGetMyProjectPermissionsQuery: oc } = Hi, As = Vs.enhanceEndpoints({
|
|
6002
6055
|
endpoints: {
|
|
6003
6056
|
getProductTypes: {
|
|
6004
6057
|
providesTags: (t, e, s) => [{ type: "productType", id: "LIST" }]
|
|
6005
6058
|
}
|
|
6006
6059
|
}
|
|
6007
|
-
}), { useGetProductTypesQuery:
|
|
6060
|
+
}), { useGetProductTypesQuery: cc } = As, Wi = As.enhanceEndpoints({
|
|
6008
6061
|
endpoints: {
|
|
6009
6062
|
createProduct: {
|
|
6010
6063
|
invalidatesTags: (t, e, { productPostModel: s }) => [
|
|
@@ -6012,7 +6065,7 @@ const N = z.injectEndpoints({
|
|
|
6012
6065
|
]
|
|
6013
6066
|
}
|
|
6014
6067
|
}
|
|
6015
|
-
}), { useCreateProductMutation:
|
|
6068
|
+
}), { useCreateProductMutation: dc } = Wi, zi = Q.enhanceEndpoints({
|
|
6016
6069
|
endpoints: {
|
|
6017
6070
|
GetFolderProducts: {
|
|
6018
6071
|
transformResponse: (t) => (t?.project?.products?.edges || []).map((s) => ({
|
|
@@ -6036,7 +6089,7 @@ const N = z.injectEndpoints({
|
|
|
6036
6089
|
] : [{ type: "product", id: s }]
|
|
6037
6090
|
}
|
|
6038
6091
|
}
|
|
6039
|
-
}), { useGetFolderProductsQuery:
|
|
6092
|
+
}), { useGetFolderProductsQuery: uc } = zi, oe = { type: "projectFolder", id: "LIST" }, Ve = Ds.enhanceEndpoints({
|
|
6040
6093
|
endpoints: {
|
|
6041
6094
|
getProjectFolders: {
|
|
6042
6095
|
transformResponse: (t) => t.folders || [],
|
|
@@ -6054,7 +6107,7 @@ const N = z.injectEndpoints({
|
|
|
6054
6107
|
(i) => {
|
|
6055
6108
|
const r = {
|
|
6056
6109
|
...t,
|
|
6057
|
-
id: t.id ||
|
|
6110
|
+
id: t.id || ss()
|
|
6058
6111
|
};
|
|
6059
6112
|
i.push(r);
|
|
6060
6113
|
}
|
|
@@ -6143,7 +6196,7 @@ const N = z.injectEndpoints({
|
|
|
6143
6196
|
})
|
|
6144
6197
|
),
|
|
6145
6198
|
e(
|
|
6146
|
-
|
|
6199
|
+
gt.util.updateQueryData("getProjectsInfinite", {}, (a) => {
|
|
6147
6200
|
for (const c of a.pages)
|
|
6148
6201
|
c.projects.forEach((d) => {
|
|
6149
6202
|
n.includes(d.name) && (d.projectFolder = i || void 0);
|
|
@@ -6165,13 +6218,13 @@ const N = z.injectEndpoints({
|
|
|
6165
6218
|
}
|
|
6166
6219
|
}
|
|
6167
6220
|
}), {
|
|
6168
|
-
useGetProjectFoldersQuery:
|
|
6169
|
-
useCreateProjectFolderMutation:
|
|
6170
|
-
useDeleteProjectFolderMutation:
|
|
6171
|
-
useUpdateProjectFolderMutation:
|
|
6172
|
-
useSetProjectFoldersOrderMutation:
|
|
6173
|
-
useAssignProjectsToFolderMutation:
|
|
6174
|
-
} = Ve,
|
|
6221
|
+
useGetProjectFoldersQuery: lc,
|
|
6222
|
+
useCreateProjectFolderMutation: pc,
|
|
6223
|
+
useDeleteProjectFolderMutation: fc,
|
|
6224
|
+
useUpdateProjectFolderMutation: yc,
|
|
6225
|
+
useSetProjectFoldersOrderMutation: gc,
|
|
6226
|
+
useAssignProjectsToFolderMutation: hc
|
|
6227
|
+
} = Ve, ws = (t, {
|
|
6175
6228
|
productId: e,
|
|
6176
6229
|
taskId: s,
|
|
6177
6230
|
folderId: n,
|
|
@@ -6206,11 +6259,11 @@ const N = z.injectEndpoints({
|
|
|
6206
6259
|
a.push(...u);
|
|
6207
6260
|
}
|
|
6208
6261
|
return a;
|
|
6209
|
-
},
|
|
6262
|
+
}, Ki = X.enhanceEndpoints({
|
|
6210
6263
|
endpoints: {
|
|
6211
6264
|
getReviewablesForVersion: {
|
|
6212
6265
|
keepUnusedDataFor: 1,
|
|
6213
|
-
providesTags: (t, e, { versionId: s }) =>
|
|
6266
|
+
providesTags: (t, e, { versionId: s }) => ws([t], { versionId: s, productId: t?.productId }),
|
|
6214
6267
|
async onCacheEntryAdded({ versionId: t }, { updateCachedData: e, cacheDataLoaded: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) {
|
|
6215
6268
|
let a;
|
|
6216
6269
|
const c = U(
|
|
@@ -6269,7 +6322,7 @@ const N = z.injectEndpoints({
|
|
|
6269
6322
|
}
|
|
6270
6323
|
}
|
|
6271
6324
|
}
|
|
6272
|
-
}),
|
|
6325
|
+
}), vt = Ki.injectEndpoints({
|
|
6273
6326
|
endpoints: (t) => ({
|
|
6274
6327
|
// custom endpoint to get reviewables from product/task/folder
|
|
6275
6328
|
// utilizes getReviewablesForProduct, getReviewablesForTask, getReviewablesForFolder
|
|
@@ -6304,7 +6357,7 @@ const N = z.injectEndpoints({
|
|
|
6304
6357
|
const c = await r(a);
|
|
6305
6358
|
return c.error ? { error: L(c.error) } : { data: c.data };
|
|
6306
6359
|
},
|
|
6307
|
-
providesTags: (e, s, n) =>
|
|
6360
|
+
providesTags: (e, s, n) => ws(e, n, !0),
|
|
6308
6361
|
async onCacheEntryAdded({ productId: e, taskId: s, folderId: n }, { cacheDataLoaded: i, cacheEntryRemoved: r, dispatch: a, getCacheEntry: c }) {
|
|
6309
6362
|
let d;
|
|
6310
6363
|
const u = U(
|
|
@@ -6330,16 +6383,16 @@ const N = z.injectEndpoints({
|
|
|
6330
6383
|
}),
|
|
6331
6384
|
hasTranscoder: t.query({
|
|
6332
6385
|
queryFn: async (e, { dispatch: s }) => {
|
|
6333
|
-
const n = await s(
|
|
6386
|
+
const n = await s(Is.endpoints.listAddons.initiate({ details: !1 }));
|
|
6334
6387
|
return n.data ? { data: n.data.addons.some((r) => r.name === "transcoder") } : n.error ? { data: !1 } : { data: !1 };
|
|
6335
6388
|
}
|
|
6336
6389
|
})
|
|
6337
6390
|
})
|
|
6338
6391
|
}), {
|
|
6339
|
-
useGetViewerReviewablesQuery:
|
|
6340
|
-
useGetReviewablesForVersionQuery:
|
|
6341
|
-
useHasTranscoderQuery:
|
|
6342
|
-
} =
|
|
6392
|
+
useGetViewerReviewablesQuery: mc,
|
|
6393
|
+
useGetReviewablesForVersionQuery: vc,
|
|
6394
|
+
useHasTranscoderQuery: bc
|
|
6395
|
+
} = vt, Ji = vt.injectEndpoints({
|
|
6343
6396
|
endpoints: (t) => ({
|
|
6344
6397
|
deleteReviewable: t.mutation(
|
|
6345
6398
|
{
|
|
@@ -6357,13 +6410,13 @@ const N = z.injectEndpoints({
|
|
|
6357
6410
|
}
|
|
6358
6411
|
)
|
|
6359
6412
|
})
|
|
6360
|
-
}),
|
|
6413
|
+
}), Yi = Ji.enhanceEndpoints({
|
|
6361
6414
|
endpoints: {
|
|
6362
6415
|
// reviewables list is updated optimistically
|
|
6363
6416
|
sortVersionReviewables: {
|
|
6364
6417
|
async onQueryStarted({ projectName: t, versionId: e, sortReviewablesRequest: s }, { dispatch: n, queryFulfilled: i }) {
|
|
6365
6418
|
const r = n(
|
|
6366
|
-
|
|
6419
|
+
vt.util.updateQueryData(
|
|
6367
6420
|
"getReviewablesForVersion",
|
|
6368
6421
|
{ projectName: t, versionId: e },
|
|
6369
6422
|
(a) => {
|
|
@@ -6390,16 +6443,16 @@ const N = z.injectEndpoints({
|
|
|
6390
6443
|
}
|
|
6391
6444
|
}
|
|
6392
6445
|
}), {
|
|
6393
|
-
useDeleteReviewableMutation:
|
|
6394
|
-
useSortVersionReviewablesMutation:
|
|
6395
|
-
useUpdateReviewableMutation:
|
|
6396
|
-
} =
|
|
6446
|
+
useDeleteReviewableMutation: Ic,
|
|
6447
|
+
useSortVersionReviewablesMutation: Tc,
|
|
6448
|
+
useUpdateReviewableMutation: kc
|
|
6449
|
+
} = Yi, Yt = (t) => {
|
|
6397
6450
|
const e = [{ type: "shared", id: "LIST" }];
|
|
6398
6451
|
return t && e.push({
|
|
6399
6452
|
type: "shared",
|
|
6400
6453
|
id: t.toUpperCase()
|
|
6401
6454
|
}), e;
|
|
6402
|
-
},
|
|
6455
|
+
}, Xi = (t) => {
|
|
6403
6456
|
const e = [];
|
|
6404
6457
|
for (const s of t) {
|
|
6405
6458
|
const n = { type: "shared", id: s.value };
|
|
@@ -6425,14 +6478,14 @@ const N = z.injectEndpoints({
|
|
|
6425
6478
|
}
|
|
6426
6479
|
}
|
|
6427
6480
|
return e;
|
|
6428
|
-
},
|
|
6481
|
+
}, Zi = Zt.enhanceEndpoints({
|
|
6429
6482
|
endpoints: {
|
|
6430
6483
|
getShareOptions: {
|
|
6431
6484
|
transformResponse: (t) => t?.options || [],
|
|
6432
|
-
providesTags: (t, e, { projectName: s }) => t ? [...
|
|
6485
|
+
providesTags: (t, e, { projectName: s }) => t ? [...Xi(t), ...Yt(s)] : Yt(s)
|
|
6433
6486
|
}
|
|
6434
6487
|
}
|
|
6435
|
-
}), { useGetShareOptionsQuery:
|
|
6488
|
+
}), { useGetShareOptionsQuery: Ac } = Zi, er = Os.enhanceEndpoints({
|
|
6436
6489
|
endpoints: {
|
|
6437
6490
|
getSiteInfo: {
|
|
6438
6491
|
providesTags: (t) => t ? [
|
|
@@ -6449,7 +6502,7 @@ const N = z.injectEndpoints({
|
|
|
6449
6502
|
providesTags: ["info"]
|
|
6450
6503
|
}
|
|
6451
6504
|
}
|
|
6452
|
-
}), { useGetSiteInfoQuery:
|
|
6505
|
+
}), { useGetSiteInfoQuery: wc, useLazyGetSiteInfoQuery: Ec, useListFrontendModulesQuery: Sc } = er, tr = at.enhanceEndpoints({
|
|
6453
6506
|
endpoints: {
|
|
6454
6507
|
getTask: {
|
|
6455
6508
|
providesTags: (t, e, { taskId: s }) => [
|
|
@@ -6457,7 +6510,7 @@ const N = z.injectEndpoints({
|
|
|
6457
6510
|
]
|
|
6458
6511
|
}
|
|
6459
6512
|
}
|
|
6460
|
-
}), { useGetTaskQuery:
|
|
6513
|
+
}), { useGetTaskQuery: Pc } = tr, sr = (t, e, { state: s, dispatch: n }, i) => {
|
|
6461
6514
|
const r = [{ type: "entityListItem", id: t }], a = q.util.selectInvalidatedBy(s, r).filter((c) => c.endpointName === "getListItemsInfinite");
|
|
6462
6515
|
for (const c of a) {
|
|
6463
6516
|
const d = n(
|
|
@@ -6473,13 +6526,13 @@ const N = z.injectEndpoints({
|
|
|
6473
6526
|
);
|
|
6474
6527
|
i.push(d);
|
|
6475
6528
|
}
|
|
6476
|
-
},
|
|
6529
|
+
}, nr = at.injectEndpoints({
|
|
6477
6530
|
endpoints: (t) => ({
|
|
6478
6531
|
updateSubtasks: t.mutation({
|
|
6479
6532
|
queryFn: async ({ projectName: e, taskId: s, subtasks: n }, { dispatch: i }) => {
|
|
6480
6533
|
try {
|
|
6481
6534
|
return await i(
|
|
6482
|
-
|
|
6535
|
+
at.endpoints.updateTask.initiate({
|
|
6483
6536
|
projectName: e,
|
|
6484
6537
|
taskId: s,
|
|
6485
6538
|
taskPatchModel: {
|
|
@@ -6499,7 +6552,7 @@ const N = z.injectEndpoints({
|
|
|
6499
6552
|
data: { subtasks: s }
|
|
6500
6553
|
}
|
|
6501
6554
|
];
|
|
6502
|
-
Ee(d, { state: a, dispatch: n }, c),
|
|
6555
|
+
Ee(d, { state: a, dispatch: n }, c), us(d, { state: a, dispatch: n }, c), sr(e, s, { state: a, dispatch: n }, c);
|
|
6503
6556
|
try {
|
|
6504
6557
|
await i;
|
|
6505
6558
|
} catch {
|
|
@@ -6508,7 +6561,7 @@ const N = z.injectEndpoints({
|
|
|
6508
6561
|
}
|
|
6509
6562
|
})
|
|
6510
6563
|
})
|
|
6511
|
-
}), { useUpdateSubtasksMutation:
|
|
6564
|
+
}), { useUpdateSubtasksMutation: Lc } = nr, te = { type: "team", id: "LIST" }, ir = $s.enhanceEndpoints({
|
|
6512
6565
|
endpoints: {
|
|
6513
6566
|
getTeams: {
|
|
6514
6567
|
providesTags: (t) => t ? [te, ...t.map((e) => ({ type: "team", id: e.name }))] : [te]
|
|
@@ -6546,13 +6599,13 @@ const N = z.injectEndpoints({
|
|
|
6546
6599
|
}
|
|
6547
6600
|
}
|
|
6548
6601
|
}), {
|
|
6549
|
-
useGetTeamsQuery:
|
|
6550
|
-
useUpdateTeamsMutation:
|
|
6551
|
-
useSaveTeamMutation:
|
|
6552
|
-
useDeleteTeamMutation:
|
|
6553
|
-
useSaveTeamMemberMutation:
|
|
6554
|
-
useDeleteTeamMemberMutation:
|
|
6555
|
-
} =
|
|
6602
|
+
useGetTeamsQuery: jc,
|
|
6603
|
+
useUpdateTeamsMutation: Fc,
|
|
6604
|
+
useSaveTeamMutation: _c,
|
|
6605
|
+
useDeleteTeamMutation: Rc,
|
|
6606
|
+
useSaveTeamMemberMutation: Gc,
|
|
6607
|
+
useDeleteTeamMemberMutation: Cc
|
|
6608
|
+
} = ir, rr = `
|
|
6556
6609
|
query UserList($name:String!) {
|
|
6557
6610
|
users(name: $name) {
|
|
6558
6611
|
edges {
|
|
@@ -6574,7 +6627,7 @@ const N = z.injectEndpoints({
|
|
|
6574
6627
|
}
|
|
6575
6628
|
}
|
|
6576
6629
|
}
|
|
6577
|
-
`,
|
|
6630
|
+
`, ar = `
|
|
6578
6631
|
query UserList {
|
|
6579
6632
|
users(last: 5000, isSupport: false) {
|
|
6580
6633
|
edges {
|
|
@@ -6602,7 +6655,7 @@ const N = z.injectEndpoints({
|
|
|
6602
6655
|
}
|
|
6603
6656
|
}
|
|
6604
6657
|
}
|
|
6605
|
-
`,
|
|
6658
|
+
`, or = `
|
|
6606
6659
|
query Assignees($names: [String!]!){
|
|
6607
6660
|
users(names: $names, isSupport: false) {
|
|
6608
6661
|
edges {
|
|
@@ -6614,7 +6667,7 @@ query Assignees($names: [String!]!){
|
|
|
6614
6667
|
}
|
|
6615
6668
|
}
|
|
6616
6669
|
}
|
|
6617
|
-
}`,
|
|
6670
|
+
}`, cr = `
|
|
6618
6671
|
query Assignees($projectName: String) {
|
|
6619
6672
|
users(last: 5000, projectName: $projectName, isSupport: false) {
|
|
6620
6673
|
edges {
|
|
@@ -6626,7 +6679,7 @@ query Assignees($projectName: String) {
|
|
|
6626
6679
|
}
|
|
6627
6680
|
}
|
|
6628
6681
|
}
|
|
6629
|
-
}`,
|
|
6682
|
+
}`, dr = (t) => {
|
|
6630
6683
|
const e = String(t.value);
|
|
6631
6684
|
return {
|
|
6632
6685
|
name: e,
|
|
@@ -6634,7 +6687,7 @@ query Assignees($projectName: String) {
|
|
|
6634
6687
|
avatarUrl: `/api/users/${e}/avatar`,
|
|
6635
6688
|
hidden: t.hidden
|
|
6636
6689
|
};
|
|
6637
|
-
},
|
|
6690
|
+
}, ur = es.enhanceEndpoints({
|
|
6638
6691
|
endpoints: {
|
|
6639
6692
|
getCurrentUser: {
|
|
6640
6693
|
providesTags: [{ type: "user", id: "LIST" }]
|
|
@@ -6647,14 +6700,14 @@ query Assignees($projectName: String) {
|
|
|
6647
6700
|
providesTags: (t, e, { userName: s }) => [{ type: "session", id: s }]
|
|
6648
6701
|
}
|
|
6649
6702
|
}
|
|
6650
|
-
}),
|
|
6703
|
+
}), lr = Q.injectEndpoints({
|
|
6651
6704
|
endpoints: (t) => ({
|
|
6652
6705
|
getUsers: t.query({
|
|
6653
6706
|
query: () => ({
|
|
6654
6707
|
url: "/graphql",
|
|
6655
6708
|
method: "POST",
|
|
6656
6709
|
body: {
|
|
6657
|
-
query:
|
|
6710
|
+
query: ar,
|
|
6658
6711
|
variables: {}
|
|
6659
6712
|
}
|
|
6660
6713
|
}),
|
|
@@ -6676,7 +6729,7 @@ query Assignees($projectName: String) {
|
|
|
6676
6729
|
url: "/graphql",
|
|
6677
6730
|
method: "POST",
|
|
6678
6731
|
body: {
|
|
6679
|
-
query:
|
|
6732
|
+
query: rr,
|
|
6680
6733
|
variables: { name: e }
|
|
6681
6734
|
}
|
|
6682
6735
|
}),
|
|
@@ -6691,7 +6744,7 @@ query Assignees($projectName: String) {
|
|
|
6691
6744
|
async queryFn({ names: e, projectName: s }, n, i, r) {
|
|
6692
6745
|
if (!e && s) {
|
|
6693
6746
|
const d = await n.dispatch(
|
|
6694
|
-
|
|
6747
|
+
xs.endpoints.getEnumOptions.initiate(
|
|
6695
6748
|
{
|
|
6696
6749
|
enumName: "users",
|
|
6697
6750
|
params: { project_name: s, mode: "users", hide_inactive: !0 }
|
|
@@ -6699,13 +6752,13 @@ query Assignees($projectName: String) {
|
|
|
6699
6752
|
{ subscribe: !1, forceRefetch: n.forced }
|
|
6700
6753
|
)
|
|
6701
6754
|
).unwrap();
|
|
6702
|
-
return d.error ? { error: L(d.error) } : { data: d.items.map(
|
|
6755
|
+
return d.error ? { error: L(d.error) } : { data: d.items.map(dr) };
|
|
6703
6756
|
}
|
|
6704
6757
|
const a = await r({
|
|
6705
6758
|
url: "/graphql",
|
|
6706
6759
|
method: "POST",
|
|
6707
6760
|
body: {
|
|
6708
|
-
query: e ?
|
|
6761
|
+
query: e ? or : cr,
|
|
6709
6762
|
variables: { names: e, projectName: s }
|
|
6710
6763
|
}
|
|
6711
6764
|
});
|
|
@@ -6729,7 +6782,7 @@ query Assignees($projectName: String) {
|
|
|
6729
6782
|
})
|
|
6730
6783
|
}),
|
|
6731
6784
|
overrideExisting: !0
|
|
6732
|
-
}),
|
|
6785
|
+
}), pr = lr.enhanceEndpoints({
|
|
6733
6786
|
endpoints: {
|
|
6734
6787
|
GetAllProjectUsersAsAssignee: {
|
|
6735
6788
|
transformResponse: (t) => t.users.edges.map((e) => ({
|
|
@@ -6753,14 +6806,14 @@ query Assignees($projectName: String) {
|
|
|
6753
6806
|
}
|
|
6754
6807
|
}
|
|
6755
6808
|
}), {
|
|
6756
|
-
useGetAllProjectUsersAsAssigneeQuery:
|
|
6757
|
-
useLazyGetAllProjectUsersAsAssigneeQuery:
|
|
6758
|
-
useGetActiveUsersCountQuery:
|
|
6759
|
-
useGetAllAssigneesQuery:
|
|
6760
|
-
useGetUsersQuery:
|
|
6761
|
-
useGetUserByNameQuery:
|
|
6762
|
-
useGetUsersAssigneeQuery:
|
|
6763
|
-
} =
|
|
6809
|
+
useGetAllProjectUsersAsAssigneeQuery: Nc,
|
|
6810
|
+
useLazyGetAllProjectUsersAsAssigneeQuery: Qc,
|
|
6811
|
+
useGetActiveUsersCountQuery: Mc,
|
|
6812
|
+
useGetAllAssigneesQuery: Vc,
|
|
6813
|
+
useGetUsersQuery: Dc,
|
|
6814
|
+
useGetUserByNameQuery: Oc,
|
|
6815
|
+
useGetUsersAssigneeQuery: $c
|
|
6816
|
+
} = pr, { useGetUserSessionsQuery: xc, useGetCurrentUserQuery: Uc, useGetUserQuery: qc } = ur, fr = Se.enhanceEndpoints({
|
|
6764
6817
|
endpoints: {
|
|
6765
6818
|
listGuestUsers: {
|
|
6766
6819
|
providesTags: (t) => t?.users ? [
|
|
@@ -6775,7 +6828,7 @@ query Assignees($projectName: String) {
|
|
|
6775
6828
|
invalidatesTags: (t, e, s) => [{ type: "guest", id: s.email }]
|
|
6776
6829
|
}
|
|
6777
6830
|
}
|
|
6778
|
-
}), { useListGuestUsersQuery:
|
|
6831
|
+
}), { useListGuestUsersQuery: Bc, useAddGuestUserMutation: Hc, useRemoveGuestUserMutation: Wc } = fr, yr = Q.enhanceEndpoints({
|
|
6779
6832
|
endpoints: {
|
|
6780
6833
|
GetLatestProductVersion: {
|
|
6781
6834
|
transformResponse: (t) => t.project.versions.edges[0]?.node,
|
|
@@ -6785,7 +6838,7 @@ query Assignees($projectName: String) {
|
|
|
6785
6838
|
] : [{ type: "product", id: s }]
|
|
6786
6839
|
}
|
|
6787
6840
|
}
|
|
6788
|
-
}), { useGetLatestProductVersionQuery:
|
|
6841
|
+
}), { useGetLatestProductVersionQuery: zc } = yr, gr = Us.enhanceEndpoints({
|
|
6789
6842
|
endpoints: {
|
|
6790
6843
|
getVersion: {},
|
|
6791
6844
|
createVersion: {
|
|
@@ -6804,10 +6857,10 @@ query Assignees($projectName: String) {
|
|
|
6804
6857
|
]
|
|
6805
6858
|
}
|
|
6806
6859
|
}
|
|
6807
|
-
}), { useGetVersionQuery:
|
|
6860
|
+
}), { useGetVersionQuery: Kc, useCreateVersionMutation: Jc, useDeleteVersionMutation: Yc } = gr, B = (t, e) => ({
|
|
6808
6861
|
type: "view",
|
|
6809
6862
|
id: `${t.toUpperCase()}${e ? `:${e.toUpperCase()}` : ""}`
|
|
6810
|
-
}), Ce = { type: "view", id: "LIST" },
|
|
6863
|
+
}), Ce = { type: "view", id: "LIST" }, V = qs.enhanceEndpoints({
|
|
6811
6864
|
endpoints: {
|
|
6812
6865
|
listViews: {
|
|
6813
6866
|
transformResponse: (t) => t?.views || [],
|
|
@@ -6835,17 +6888,17 @@ query Assignees($projectName: String) {
|
|
|
6835
6888
|
}
|
|
6836
6889
|
}
|
|
6837
6890
|
}), {
|
|
6838
|
-
useListViewsQuery:
|
|
6839
|
-
useGetWorkingViewQuery:
|
|
6840
|
-
useGetViewQuery:
|
|
6841
|
-
useGetDefaultViewQuery:
|
|
6842
|
-
useGetBaseViewQuery:
|
|
6843
|
-
} =
|
|
6891
|
+
useListViewsQuery: Xc,
|
|
6892
|
+
useGetWorkingViewQuery: Zc,
|
|
6893
|
+
useGetViewQuery: ed,
|
|
6894
|
+
useGetDefaultViewQuery: td,
|
|
6895
|
+
useGetBaseViewQuery: sd
|
|
6896
|
+
} = V, hr = V.enhanceEndpoints({
|
|
6844
6897
|
endpoints: {
|
|
6845
6898
|
createView: {
|
|
6846
6899
|
onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
|
|
6847
6900
|
const { payload: i } = t, a = n().user?.name, c = e(
|
|
6848
|
-
|
|
6901
|
+
V.util.updateQueryData(
|
|
6849
6902
|
"listViews",
|
|
6850
6903
|
{ viewType: t.viewType, projectName: t.projectName },
|
|
6851
6904
|
(o) => {
|
|
@@ -6874,7 +6927,7 @@ query Assignees($projectName: String) {
|
|
|
6874
6927
|
);
|
|
6875
6928
|
let d;
|
|
6876
6929
|
i.working && (d = e(
|
|
6877
|
-
|
|
6930
|
+
V.util.updateQueryData(
|
|
6878
6931
|
"getWorkingView",
|
|
6879
6932
|
{ viewType: t.viewType, projectName: t.projectName },
|
|
6880
6933
|
(o) => {
|
|
@@ -6894,7 +6947,7 @@ query Assignees($projectName: String) {
|
|
|
6894
6947
|
let u;
|
|
6895
6948
|
if (i.label === "__base__") {
|
|
6896
6949
|
const o = {
|
|
6897
|
-
id:
|
|
6950
|
+
id: Hs(),
|
|
6898
6951
|
...i,
|
|
6899
6952
|
working: !1,
|
|
6900
6953
|
scope: t.projectName ? "project" : "studio",
|
|
@@ -6904,7 +6957,7 @@ query Assignees($projectName: String) {
|
|
|
6904
6957
|
position: 0
|
|
6905
6958
|
};
|
|
6906
6959
|
u = e(
|
|
6907
|
-
|
|
6960
|
+
V.util.updateQueryData(
|
|
6908
6961
|
"getBaseView",
|
|
6909
6962
|
{ viewType: t.viewType, projectName: t.projectName },
|
|
6910
6963
|
(l) => {
|
|
@@ -6912,7 +6965,7 @@ query Assignees($projectName: String) {
|
|
|
6912
6965
|
}
|
|
6913
6966
|
)
|
|
6914
6967
|
), u?.patches?.length || e(
|
|
6915
|
-
|
|
6968
|
+
V.util.upsertQueryData(
|
|
6916
6969
|
"getBaseView",
|
|
6917
6970
|
{ viewType: t.viewType, projectName: t.projectName },
|
|
6918
6971
|
o
|
|
@@ -6936,14 +6989,14 @@ query Assignees($projectName: String) {
|
|
|
6936
6989
|
const { viewId: n, payload: i, viewType: r, projectName: a } = t, c = [];
|
|
6937
6990
|
c.push(
|
|
6938
6991
|
e(
|
|
6939
|
-
|
|
6992
|
+
V.util.updateQueryData("listViews", { viewType: r, projectName: a }, (d) => {
|
|
6940
6993
|
const u = d.find((o) => o.id === n);
|
|
6941
6994
|
u && Object.assign(u, i);
|
|
6942
6995
|
})
|
|
6943
6996
|
)
|
|
6944
6997
|
), c.push(
|
|
6945
6998
|
e(
|
|
6946
|
-
|
|
6999
|
+
V.util.updateQueryData(
|
|
6947
7000
|
"getWorkingView",
|
|
6948
7001
|
{ viewType: r, projectName: a },
|
|
6949
7002
|
(d) => {
|
|
@@ -6953,7 +7006,7 @@ query Assignees($projectName: String) {
|
|
|
6953
7006
|
)
|
|
6954
7007
|
), c.push(
|
|
6955
7008
|
e(
|
|
6956
|
-
|
|
7009
|
+
V.util.updateQueryData(
|
|
6957
7010
|
"getDefaultView",
|
|
6958
7011
|
{ viewType: r, projectName: a },
|
|
6959
7012
|
(d) => {
|
|
@@ -6963,7 +7016,7 @@ query Assignees($projectName: String) {
|
|
|
6963
7016
|
)
|
|
6964
7017
|
), c.push(
|
|
6965
7018
|
e(
|
|
6966
|
-
|
|
7019
|
+
V.util.updateQueryData(
|
|
6967
7020
|
"getView",
|
|
6968
7021
|
{ viewType: r, viewId: n, projectName: a },
|
|
6969
7022
|
(d) => {
|
|
@@ -6996,7 +7049,7 @@ query Assignees($projectName: String) {
|
|
|
6996
7049
|
const { viewId: i, projectName: r, viewType: a } = t, c = n(), d = [];
|
|
6997
7050
|
d.push(
|
|
6998
7051
|
e(
|
|
6999
|
-
|
|
7052
|
+
V.util.updateQueryData("listViews", { viewType: a, projectName: r }, (l) => l.filter((p) => p.id !== i))
|
|
7000
7053
|
)
|
|
7001
7054
|
);
|
|
7002
7055
|
const u = [
|
|
@@ -7006,13 +7059,13 @@ query Assignees($projectName: String) {
|
|
|
7006
7059
|
], o = ["getBaseView", "getDefaultView"];
|
|
7007
7060
|
for (const l of u)
|
|
7008
7061
|
for (const p of o) {
|
|
7009
|
-
const f =
|
|
7062
|
+
const f = V.endpoints[p].select({
|
|
7010
7063
|
viewType: a,
|
|
7011
7064
|
projectName: l.projectName
|
|
7012
7065
|
})(c);
|
|
7013
7066
|
f?.isSuccess && f.data?.id === i && d.push(
|
|
7014
7067
|
e(
|
|
7015
|
-
|
|
7068
|
+
V.util.updateQueryData(
|
|
7016
7069
|
p,
|
|
7017
7070
|
{ viewType: a, projectName: l.projectName },
|
|
7018
7071
|
() => null
|
|
@@ -7035,18 +7088,18 @@ query Assignees($projectName: String) {
|
|
|
7035
7088
|
},
|
|
7036
7089
|
setDefaultView: {
|
|
7037
7090
|
onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
|
|
7038
|
-
const { setDefaultViewRequestModel: i, projectName: r, viewType: a } = t, { viewId: c } = i, d = n(), u =
|
|
7091
|
+
const { setDefaultViewRequestModel: i, projectName: r, viewType: a } = t, { viewId: c } = i, d = n(), u = V.endpoints.getDefaultView.select({
|
|
7039
7092
|
viewType: a,
|
|
7040
7093
|
projectName: r
|
|
7041
7094
|
})(d);
|
|
7042
7095
|
if (u?.isSuccess && u.data?.id) {
|
|
7043
7096
|
const o = e(
|
|
7044
|
-
|
|
7097
|
+
V.util.updateQueryData(
|
|
7045
7098
|
"getDefaultView",
|
|
7046
7099
|
{ viewType: a, projectName: r },
|
|
7047
7100
|
(l) => {
|
|
7048
7101
|
if (l) {
|
|
7049
|
-
const f =
|
|
7102
|
+
const f = V.endpoints.listViews.select({
|
|
7050
7103
|
viewType: a,
|
|
7051
7104
|
projectName: r
|
|
7052
7105
|
})(d)?.data?.find((y) => y.id === c);
|
|
@@ -7073,16 +7126,16 @@ query Assignees($projectName: String) {
|
|
|
7073
7126
|
}
|
|
7074
7127
|
}
|
|
7075
7128
|
}), {
|
|
7076
|
-
useCreateViewMutation:
|
|
7077
|
-
useUpdateViewMutation:
|
|
7078
|
-
useDeleteViewMutation:
|
|
7079
|
-
useSetDefaultViewMutation:
|
|
7080
|
-
} =
|
|
7129
|
+
useCreateViewMutation: nd,
|
|
7130
|
+
useUpdateViewMutation: id,
|
|
7131
|
+
useDeleteViewMutation: rd,
|
|
7132
|
+
useSetDefaultViewMutation: ad
|
|
7133
|
+
} = hr, Be = Pe.enhanceEndpoints({
|
|
7081
7134
|
endpoints: {
|
|
7082
7135
|
getEntityWatchers: {},
|
|
7083
7136
|
setEntityWatchers: {}
|
|
7084
7137
|
}
|
|
7085
|
-
}),
|
|
7138
|
+
}), Xt = Be.injectEndpoints({
|
|
7086
7139
|
endpoints: (t) => ({
|
|
7087
7140
|
getEntitiesWatchers: t.query({
|
|
7088
7141
|
async queryFn({ entities: e = [] }, { dispatch: s }) {
|
|
@@ -7109,7 +7162,7 @@ query Assignees($projectName: String) {
|
|
|
7109
7162
|
])
|
|
7110
7163
|
})
|
|
7111
7164
|
})
|
|
7112
|
-
}),
|
|
7165
|
+
}), mr = Xt.injectEndpoints({
|
|
7113
7166
|
endpoints: (t) => ({
|
|
7114
7167
|
setEntitiesWatchers: t.mutation({
|
|
7115
7168
|
async queryFn({ entities: e = [] }, { dispatch: s }) {
|
|
@@ -7136,7 +7189,7 @@ query Assignees($projectName: String) {
|
|
|
7136
7189
|
try {
|
|
7137
7190
|
c.forEach((u) => {
|
|
7138
7191
|
const o = s(
|
|
7139
|
-
|
|
7192
|
+
Xt.util.updateQueryData(
|
|
7140
7193
|
"getEntitiesWatchers",
|
|
7141
7194
|
u.originalArgs,
|
|
7142
7195
|
(l) => {
|
|
@@ -7161,293 +7214,295 @@ query Assignees($projectName: String) {
|
|
|
7161
7214
|
invalidatesTags: (e, s, { entities: n }) => n.some((i) => i.entityType === "task") ? [{ type: "watchers", id: "VERSION-LIST" }] : []
|
|
7162
7215
|
})
|
|
7163
7216
|
})
|
|
7164
|
-
}), { useGetEntitiesWatchersQuery:
|
|
7217
|
+
}), { useGetEntitiesWatchersQuery: od, useSetEntitiesWatchersMutation: cd } = mr, vr = Bs.enhanceEndpoints({
|
|
7165
7218
|
endpoints: {
|
|
7166
7219
|
resolveUris: {}
|
|
7167
7220
|
}
|
|
7168
|
-
}), { useResolveUrisMutation:
|
|
7221
|
+
}), { useResolveUrisMutation: dd } = vr;
|
|
7169
7222
|
export {
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7223
|
+
ot as $,
|
|
7224
|
+
q as A,
|
|
7225
|
+
gi as B,
|
|
7226
|
+
Kn as C,
|
|
7227
|
+
se as D,
|
|
7228
|
+
$i as E,
|
|
7229
|
+
Gn as F,
|
|
7230
|
+
Yn as G,
|
|
7231
|
+
Jn as H,
|
|
7232
|
+
$e as I,
|
|
7233
|
+
Qn as J,
|
|
7234
|
+
ye as K,
|
|
7235
|
+
qt as L,
|
|
7236
|
+
Pn as M,
|
|
7237
|
+
Or as N,
|
|
7238
|
+
cs as O,
|
|
7239
|
+
Rn as P,
|
|
7240
|
+
fi as Q,
|
|
7241
|
+
gt as R,
|
|
7242
|
+
vt as S,
|
|
7243
|
+
ze as T,
|
|
7244
|
+
B as U,
|
|
7245
|
+
_n as V,
|
|
7246
|
+
V as W,
|
|
7247
|
+
Hr as X,
|
|
7248
|
+
Di as Y,
|
|
7249
|
+
we as Z,
|
|
7250
|
+
N as _,
|
|
7251
|
+
tt as a,
|
|
7252
|
+
po as a$,
|
|
7253
|
+
Ei as a0,
|
|
7254
|
+
Ae as a1,
|
|
7255
|
+
ke as a2,
|
|
7256
|
+
zr as a3,
|
|
7257
|
+
Rt as a4,
|
|
7258
|
+
R as a5,
|
|
7259
|
+
us as a6,
|
|
7260
|
+
ds as a7,
|
|
7261
|
+
sr as a8,
|
|
7262
|
+
Ma as a9,
|
|
7263
|
+
_t as aA,
|
|
7264
|
+
Hc as aB,
|
|
7265
|
+
hc as aC,
|
|
7266
|
+
Fo as aD,
|
|
7267
|
+
Go as aE,
|
|
7268
|
+
oo as aF,
|
|
7269
|
+
nc as aG,
|
|
7270
|
+
Xo as aH,
|
|
7271
|
+
Ya as aI,
|
|
7272
|
+
Ha as aJ,
|
|
7273
|
+
dc as aK,
|
|
7274
|
+
pc as aL,
|
|
7275
|
+
lo as aM,
|
|
7276
|
+
Za as aN,
|
|
7277
|
+
So as aO,
|
|
7278
|
+
Jc as aP,
|
|
7279
|
+
nd as aQ,
|
|
7280
|
+
Cr as aR,
|
|
7281
|
+
co as aS,
|
|
7282
|
+
Io as aT,
|
|
7283
|
+
Ro as aU,
|
|
7284
|
+
sc as aV,
|
|
7285
|
+
Zo as aW,
|
|
7286
|
+
Xa as aX,
|
|
7287
|
+
za as aY,
|
|
7288
|
+
fc as aZ,
|
|
7289
|
+
Ia as a_,
|
|
7290
|
+
qe as aa,
|
|
7291
|
+
Ee as ab,
|
|
7292
|
+
ii as ac,
|
|
7293
|
+
oi as ad,
|
|
7294
|
+
ri as ae,
|
|
7295
|
+
Hi as af,
|
|
7296
|
+
mt as ag,
|
|
7297
|
+
ee as ah,
|
|
7298
|
+
W as ai,
|
|
7246
7299
|
Wn as aj,
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7300
|
+
zn as ak,
|
|
7301
|
+
Hn as al,
|
|
7302
|
+
xe as am,
|
|
7303
|
+
wi as an,
|
|
7304
|
+
Yi as ao,
|
|
7305
|
+
Wr as ap,
|
|
7306
|
+
Zi as aq,
|
|
7307
|
+
qr as ar,
|
|
7308
|
+
er as as,
|
|
7309
|
+
An as at,
|
|
7310
|
+
ir as au,
|
|
7311
|
+
zo as av,
|
|
7312
|
+
$r as aw,
|
|
7313
|
+
je as ax,
|
|
7314
|
+
Zn as ay,
|
|
7315
|
+
gs as az,
|
|
7316
|
+
qi as b,
|
|
7317
|
+
Ca as b$,
|
|
7318
|
+
Ic as b0,
|
|
7319
|
+
Cc as b1,
|
|
7320
|
+
Rc as b2,
|
|
7321
|
+
Yc as b3,
|
|
7322
|
+
rd as b4,
|
|
7323
|
+
Oo as b5,
|
|
7324
|
+
ba as b6,
|
|
7325
|
+
To as b7,
|
|
7326
|
+
Mr as b8,
|
|
7327
|
+
jr as b9,
|
|
7328
|
+
Ba as bA,
|
|
7329
|
+
fo as bB,
|
|
7330
|
+
la as bC,
|
|
7331
|
+
ua as bD,
|
|
7332
|
+
eo as bE,
|
|
7333
|
+
da as bF,
|
|
7334
|
+
$o as bG,
|
|
7335
|
+
ta as bH,
|
|
7336
|
+
ra as bI,
|
|
7337
|
+
na as bJ,
|
|
7338
|
+
ia as bK,
|
|
7339
|
+
uc as bL,
|
|
7340
|
+
ea as bM,
|
|
7341
|
+
Na as bN,
|
|
7342
|
+
Ea as bO,
|
|
7343
|
+
wa as bP,
|
|
7344
|
+
zc as bQ,
|
|
7345
|
+
rc as bR,
|
|
7346
|
+
Ko as bS,
|
|
7347
|
+
$a as bT,
|
|
7348
|
+
Oa as bU,
|
|
7349
|
+
xa as bV,
|
|
7350
|
+
ac as bW,
|
|
7351
|
+
oc as bX,
|
|
7352
|
+
Kr as bY,
|
|
7353
|
+
fa as bZ,
|
|
7354
|
+
Fa as b_,
|
|
7355
|
+
Fr as ba,
|
|
7356
|
+
Lr as bb,
|
|
7357
|
+
Vr as bc,
|
|
7358
|
+
Nr as bd,
|
|
7359
|
+
Mc as be,
|
|
7360
|
+
to as bf,
|
|
7361
|
+
ro as bg,
|
|
7362
|
+
io as bh,
|
|
7363
|
+
yo as bi,
|
|
7364
|
+
ao as bj,
|
|
7365
|
+
Vc as bk,
|
|
7366
|
+
Nc as bl,
|
|
7367
|
+
Ao as bm,
|
|
7368
|
+
ko as bn,
|
|
7369
|
+
sd as bo,
|
|
7370
|
+
Bo as bp,
|
|
7371
|
+
Uc as bq,
|
|
7372
|
+
bo as br,
|
|
7373
|
+
td as bs,
|
|
7374
|
+
no as bt,
|
|
7375
|
+
oa as bu,
|
|
7376
|
+
od as bv,
|
|
7377
|
+
tc as bw,
|
|
7378
|
+
Da as bx,
|
|
7379
|
+
Wo as by,
|
|
7380
|
+
Yo as bz,
|
|
7381
|
+
St as c,
|
|
7382
|
+
Gr as c$,
|
|
7383
|
+
mo as c0,
|
|
7384
|
+
ma as c1,
|
|
7385
|
+
_o as c2,
|
|
7386
|
+
lc as c3,
|
|
7387
|
+
ga as c4,
|
|
7388
|
+
_r as c5,
|
|
7389
|
+
go as c6,
|
|
7390
|
+
va as c7,
|
|
7391
|
+
Sa as c8,
|
|
7392
|
+
vc as c9,
|
|
7393
|
+
ed as cA,
|
|
7394
|
+
mc as cB,
|
|
7395
|
+
Zc as cC,
|
|
7396
|
+
Vo as cD,
|
|
7397
|
+
bc as cE,
|
|
7398
|
+
Qr as cF,
|
|
7399
|
+
so as cG,
|
|
7400
|
+
Qc as cH,
|
|
7401
|
+
ca as cI,
|
|
7402
|
+
pa as cJ,
|
|
7403
|
+
aa as cK,
|
|
7404
|
+
qa as cL,
|
|
7405
|
+
Ua as cM,
|
|
7406
|
+
Ec as cN,
|
|
7407
|
+
Zr as cO,
|
|
7408
|
+
jo as cP,
|
|
7409
|
+
ho as cQ,
|
|
7410
|
+
Lo as cR,
|
|
7411
|
+
Sc as cS,
|
|
7412
|
+
Bc as cT,
|
|
7413
|
+
ha as cU,
|
|
7414
|
+
Xc as cV,
|
|
7415
|
+
No as cW,
|
|
7416
|
+
Eo as cX,
|
|
7417
|
+
Co as cY,
|
|
7418
|
+
Wc as cZ,
|
|
7419
|
+
dd as c_,
|
|
7420
|
+
Jr as ca,
|
|
7421
|
+
ya as cb,
|
|
7422
|
+
ic as cc,
|
|
7423
|
+
Uo as cd,
|
|
7424
|
+
xo as ce,
|
|
7425
|
+
qo as cf,
|
|
7426
|
+
vo as cg,
|
|
7427
|
+
Ac as ch,
|
|
7428
|
+
wc as ci,
|
|
7429
|
+
Pr as cj,
|
|
7430
|
+
sa as ck,
|
|
7431
|
+
Pc as cl,
|
|
7432
|
+
Xr as cm,
|
|
7433
|
+
Yr as cn,
|
|
7434
|
+
jc as co,
|
|
7435
|
+
Oc as cp,
|
|
7436
|
+
Po as cq,
|
|
7437
|
+
qc as cr,
|
|
7438
|
+
xc as cs,
|
|
7439
|
+
$c as ct,
|
|
7440
|
+
Dc as cu,
|
|
7441
|
+
Kc as cv,
|
|
7442
|
+
Ga as cw,
|
|
7443
|
+
_a as cx,
|
|
7444
|
+
Ra as cy,
|
|
7445
|
+
ja as cz,
|
|
7446
|
+
Fn as d,
|
|
7447
|
+
Gc as d0,
|
|
7448
|
+
_c as d1,
|
|
7449
|
+
Dr as d2,
|
|
7450
|
+
wo as d3,
|
|
7451
|
+
ad as d4,
|
|
7452
|
+
cd as d5,
|
|
7453
|
+
Jo as d6,
|
|
7454
|
+
Ta as d7,
|
|
7455
|
+
Aa as d8,
|
|
7456
|
+
gc as d9,
|
|
7457
|
+
cc as dA,
|
|
7458
|
+
as as dB,
|
|
7459
|
+
Ur as dC,
|
|
7460
|
+
rs as dD,
|
|
7461
|
+
Rr as da,
|
|
7462
|
+
Ho as db,
|
|
7463
|
+
Do as dc,
|
|
7464
|
+
Tc as dd,
|
|
7465
|
+
Mo as de,
|
|
7466
|
+
uo as df,
|
|
7467
|
+
Qo as dg,
|
|
7468
|
+
Pa as dh,
|
|
7469
|
+
ec as di,
|
|
7470
|
+
Ja as dj,
|
|
7471
|
+
Ka as dk,
|
|
7472
|
+
Wa as dl,
|
|
7473
|
+
La as dm,
|
|
7474
|
+
Va as dn,
|
|
7475
|
+
yc as dp,
|
|
7476
|
+
ka as dq,
|
|
7477
|
+
kc as dr,
|
|
7478
|
+
Lc as ds,
|
|
7479
|
+
Fc as dt,
|
|
7480
|
+
id as du,
|
|
7481
|
+
Bn as dv,
|
|
7482
|
+
gr as dw,
|
|
7483
|
+
hr as dx,
|
|
7484
|
+
mr as dy,
|
|
7485
|
+
Gi as dz,
|
|
7486
|
+
ae as e,
|
|
7487
|
+
Ai as f,
|
|
7488
|
+
Is as g,
|
|
7489
|
+
vn as h,
|
|
7490
|
+
Xs as i,
|
|
7436
7491
|
Pi as j,
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7492
|
+
Li as k,
|
|
7493
|
+
Br as l,
|
|
7494
|
+
Ri as m,
|
|
7495
|
+
fe as n,
|
|
7496
|
+
xr as o,
|
|
7497
|
+
Ci as p,
|
|
7498
|
+
ui as q,
|
|
7499
|
+
Ie as r,
|
|
7500
|
+
Qa as s,
|
|
7501
|
+
jn as t,
|
|
7502
|
+
Js as u,
|
|
7503
|
+
de as v,
|
|
7504
|
+
z as w,
|
|
7505
|
+
ls as x,
|
|
7506
|
+
le as y,
|
|
7507
|
+
Vi as z
|
|
7453
7508
|
};
|