@ynput/ayon-frontend-shared 0.6.0 → 0.6.1
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/ContextMenu.es.js +34 -16
- package/dist/DetailsPanel.es.js +292 -298
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +32 -35
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4451 -2965
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/chunks/Actions.es.js +9 -4
- package/dist/chunks/ColumnDropIndicator.es.js +174 -328
- package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
- package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
- package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +58 -53
- package/dist/chunks/EntityPickerDialog.es.js +24 -20
- package/dist/chunks/EntityTooltip.es.js +20 -13
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +1495 -1439
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -65
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2835 -4301
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +1532 -1594
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +457 -458
- package/dist/chunks/SimpleForm.es.js +9 -9
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +163 -154
- package/dist/chunks/TableSettingsFallback.es.js +25 -13
- package/dist/chunks/ThumbnailSimple.es.js +150 -261
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +384 -389
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +61 -16
- package/dist/chunks/getUris.es.js +737 -712
- package/dist/chunks/searchTerms.es.js +57 -56
- package/dist/chunks/useAttributeEnums.es.js +4 -4
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useHierarchySelection.es.js +24 -0
- package/dist/chunks/useLoadModule.es.js +74 -0
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
- package/dist/chunks/versionUploadHelpers.es.js +16 -42
- package/dist/chunks/viewUpdateHelper.es.js +67 -50
- package/dist/components.es.js +1425 -999
- package/dist/context.es.js +791 -80
- package/dist/hooks.es.js +115 -120
- package/dist/index.es.js +19 -23
- package/dist/types/Actions.d.ts +7 -7
- package/dist/types/ContextMenu.d.ts +11 -8
- package/dist/types/DetailsPanel.d.ts +102 -9
- package/dist/types/EntityPickerDialog.d.ts +7 -7
- package/dist/types/Feed.d.ts +11 -8
- package/dist/types/ListTable.d.ts +7 -7
- package/dist/types/NewEntity.d.ts +16 -10
- package/dist/types/ProjectTreeTable.d.ts +22 -115
- package/dist/types/RepresentationsList.d.ts +7 -7
- package/dist/types/SimpleTable.d.ts +11 -8
- package/dist/types/Slicer.d.ts +10 -7
- package/dist/types/Views.d.ts +10 -7
- package/dist/types/api.d.ts +132 -120
- package/dist/types/components.d.ts +13 -8
- package/dist/types/context.d.ts +56 -16
- package/dist/types/hooks.d.ts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/util.d.ts +12 -7
- package/dist/util.es.js +72 -71
- package/package.json +1 -1
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- package/dist/chunks/DetailsPanelContext.es.js +0 -155
- package/dist/chunks/GlobalContext.es.js +0 -52
- package/dist/chunks/NewEntityContext.es.js +0 -1242
- package/dist/chunks/ProjectFoldersContext.es.js +0 -134
- package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
- package/dist/chunks/VersionUploadContext.es.js +0 -232
- package/dist/chunks/ViewsContext.es.js +0 -878
- package/dist/chunks/uriUtils.es.js +0 -48
- package/dist/chunks/useColumnDragRestriction.es.js +0 -158
- package/dist/chunks/useLocalStorage.es.js +0 -355
- package/dist/chunks/useSessionStorage.es.js +0 -61
- /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ad as Xt, aL as Se, aF as
|
|
1
|
+
import { ad as Xt, aL as Se, aF as L, ae as Ne, a5 as D, bj as Es, az as Q, av as pt, be as F, a as Ss, bi as Ps, aH as Ls, aA as V, aq as ue, af as Pe, ag as js, ai as Fs, aj as _s, al as Rs, bd as Gs, an as Cs, aB as Ns, aD as Qs, b9 as Zt, aI as Ms, aK as Vs, aM as X, aO as Ds, aP as rt, aQ as Os, a9 as ce, ar as $s, ba as xs, bb as Us, aS as qs } from "./searchTerms.es.js";
|
|
2
2
|
import "lodash";
|
|
3
3
|
import "primereact/confirmdialog";
|
|
4
4
|
import { toast as es } from "react-toastify";
|
|
5
|
-
import { v4 as
|
|
6
|
-
import { R as
|
|
7
|
-
import { current as
|
|
5
|
+
import { v4 as Bs } from "uuid";
|
|
6
|
+
import { R as Hs, D as Ws, s as H, c as U, f as pe, d as De, a as ie, w as J, g as ts } from "./realtimeUpdatesUtils.es.js";
|
|
7
|
+
import { current as zs } from "@reduxjs/toolkit";
|
|
8
8
|
const Oe = Xt.injectEndpoints({
|
|
9
9
|
endpoints: (t) => ({
|
|
10
10
|
getProjectsAccess: t.query({
|
|
@@ -27,7 +27,7 @@ const Oe = Xt.injectEndpoints({
|
|
|
27
27
|
);
|
|
28
28
|
return await Promise.all(i), { data: r, meta: void 0, error: void 0 };
|
|
29
29
|
} catch (i) {
|
|
30
|
-
return console.error(i), { error:
|
|
30
|
+
return console.error(i), { error: L(i) };
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
providesTags: (e, s, { projects: n }) => n.map((i) => ({ type: "projectAccess", id: i }))
|
|
@@ -59,12 +59,12 @@ Oe.enhanceEndpoints({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
const {
|
|
62
|
-
useGetStudioAccessGroupsQuery:
|
|
63
|
-
useGetAccessGroupsQuery:
|
|
64
|
-
useGetAccessGroupQuery:
|
|
65
|
-
useGetAccessGroupSchemaQuery:
|
|
66
|
-
useGetProjectsAccessQuery:
|
|
67
|
-
} = Oe,
|
|
62
|
+
useGetStudioAccessGroupsQuery: kr,
|
|
63
|
+
useGetAccessGroupsQuery: Ar,
|
|
64
|
+
useGetAccessGroupQuery: wr,
|
|
65
|
+
useGetAccessGroupSchemaQuery: Er,
|
|
66
|
+
useGetProjectsAccessQuery: Sr
|
|
67
|
+
} = Oe, Ks = Oe.enhanceEndpoints({
|
|
68
68
|
endpoints: {
|
|
69
69
|
setProjectsAccess: {
|
|
70
70
|
async onQueryStarted({ payload: t }, { dispatch: e, queryFulfilled: s }) {
|
|
@@ -116,22 +116,22 @@ const {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}), {
|
|
119
|
-
useSetProjectsAccessMutation:
|
|
120
|
-
useSaveAccessGroupMutation:
|
|
121
|
-
useDeleteAccessGroupMutation:
|
|
122
|
-
} =
|
|
119
|
+
useSetProjectsAccessMutation: Pr,
|
|
120
|
+
useSaveAccessGroupMutation: Lr,
|
|
121
|
+
useDeleteAccessGroupMutation: jr
|
|
122
|
+
} = Ks, Js = Ne.enhanceEndpoints({
|
|
123
123
|
endpoints: {
|
|
124
124
|
executeAction: {},
|
|
125
125
|
listAvailableActionsForContext: {}
|
|
126
126
|
}
|
|
127
|
-
}),
|
|
127
|
+
}), Ys = Js.injectEndpoints({
|
|
128
128
|
endpoints: (t) => ({
|
|
129
129
|
getActionsFromContext: t.query({
|
|
130
130
|
queryFn: async (e, { dispatch: s }) => {
|
|
131
131
|
const n = await s(
|
|
132
132
|
Ne.endpoints.listAvailableActionsForContext.initiate(e)
|
|
133
133
|
);
|
|
134
|
-
return n.error ? { error:
|
|
134
|
+
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
135
135
|
},
|
|
136
136
|
providesTags: (e, s, n) => {
|
|
137
137
|
const i = [{ type: "actions", id: "LIST" }], r = n.actionContext.entityIds?.map((c) => ({ type: "actions", id: c })) || [], a = e?.actions?.map((c) => ({ type: "actions", id: c.identifier })) || [];
|
|
@@ -142,34 +142,34 @@ const {
|
|
|
142
142
|
getActionConfig: t.query({
|
|
143
143
|
queryFn: async (e, { dispatch: s }) => {
|
|
144
144
|
const n = await s(Ne.endpoints.configureAction.initiate(e));
|
|
145
|
-
return n.error ? { error:
|
|
145
|
+
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
146
146
|
},
|
|
147
147
|
providesTags: [{ type: "actionConfig", id: "LIST" }]
|
|
148
148
|
}),
|
|
149
149
|
setActionConfig: t.mutation({
|
|
150
150
|
queryFn: async (e, { dispatch: s }) => {
|
|
151
151
|
const n = await s(Ne.endpoints.configureAction.initiate(e));
|
|
152
|
-
return n.error ? { error:
|
|
152
|
+
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
153
153
|
},
|
|
154
154
|
invalidatesTags: [{ type: "actionConfig", id: "LIST" }]
|
|
155
155
|
})
|
|
156
156
|
// End of endpoints
|
|
157
157
|
})
|
|
158
158
|
}), {
|
|
159
|
-
useGetActionsFromContextQuery:
|
|
160
|
-
useLazyGetActionsFromContextQuery:
|
|
161
|
-
useExecuteActionMutation:
|
|
162
|
-
useGetActionConfigQuery:
|
|
163
|
-
useSetActionConfigMutation:
|
|
164
|
-
} =
|
|
159
|
+
useGetActionsFromContextQuery: Fr,
|
|
160
|
+
useLazyGetActionsFromContextQuery: _r,
|
|
161
|
+
useExecuteActionMutation: Rr,
|
|
162
|
+
useGetActionConfigQuery: Gr,
|
|
163
|
+
useSetActionConfigMutation: Cr
|
|
164
|
+
} = Ys, Xs = (t, e) => e.split(".").reduce((s, n) => s && s[n] !== void 0 ? s[n] : void 0, t), Zs = (t, e) => {
|
|
165
165
|
const s = e.split("."), n = s.pop(), i = s.reduce((r, a) => r && r[a] !== void 0 ? r[a] : void 0, t);
|
|
166
166
|
i && n && delete i[n];
|
|
167
167
|
};
|
|
168
|
-
function
|
|
168
|
+
function en(t, e) {
|
|
169
169
|
const s = { ...t };
|
|
170
170
|
for (const [n, i] of Object.entries(e)) {
|
|
171
|
-
const r =
|
|
172
|
-
r !== void 0 && (s[i] = r,
|
|
171
|
+
const r = Xs(s, n);
|
|
172
|
+
r !== void 0 && (s[i] = r, Zs(s, n));
|
|
173
173
|
}
|
|
174
174
|
return s;
|
|
175
175
|
}
|
|
@@ -179,7 +179,7 @@ const mt = (t = [], e) => {
|
|
|
179
179
|
const i = n.node;
|
|
180
180
|
if (!i)
|
|
181
181
|
return;
|
|
182
|
-
const r = i, c =
|
|
182
|
+
const r = i, c = en(
|
|
183
183
|
r,
|
|
184
184
|
{
|
|
185
185
|
"author.name": "authorName",
|
|
@@ -195,7 +195,7 @@ const mt = (t = [], e) => {
|
|
|
195
195
|
}
|
|
196
196
|
s.push(c);
|
|
197
197
|
}), { activities: s, pageInfo: e };
|
|
198
|
-
},
|
|
198
|
+
}, tn = (t) => {
|
|
199
199
|
const {
|
|
200
200
|
id: e,
|
|
201
201
|
label: s,
|
|
@@ -222,7 +222,7 @@ const mt = (t = [], e) => {
|
|
|
222
222
|
users: c?.map((p) => ({ name: p, avatarUrl: `/api/users/${p}/avatar` })) || [],
|
|
223
223
|
path: o?.path.split("/").splice(-2, 1).join("")
|
|
224
224
|
};
|
|
225
|
-
},
|
|
225
|
+
}, sn = (t) => {
|
|
226
226
|
const { id: e, name: s, status: n, thumbnailId: i, author: r, updatedAt: a, product: c } = t;
|
|
227
227
|
return {
|
|
228
228
|
id: e,
|
|
@@ -237,7 +237,7 @@ const mt = (t = [], e) => {
|
|
|
237
237
|
productType: c?.productType,
|
|
238
238
|
path: c?.folder?.path?.split("/").pop()
|
|
239
239
|
};
|
|
240
|
-
},
|
|
240
|
+
}, nn = (t) => {
|
|
241
241
|
const { id: e, name: s, label: n, status: i, thumbnailId: r, thumbnailHash: a, updatedAt: c, folderType: d, parents: u } = t || {};
|
|
242
242
|
return {
|
|
243
243
|
id: e,
|
|
@@ -253,7 +253,7 @@ const mt = (t = [], e) => {
|
|
|
253
253
|
users: [],
|
|
254
254
|
path: u?.[u.length - 2]
|
|
255
255
|
};
|
|
256
|
-
},
|
|
256
|
+
}, rn = (t) => {
|
|
257
257
|
const { id: e, name: s, status: n, thumbnailId: i, thumbnailHash: r, updatedAt: a, task: c } = t || {};
|
|
258
258
|
return {
|
|
259
259
|
id: e,
|
|
@@ -269,20 +269,20 @@ const mt = (t = [], e) => {
|
|
|
269
269
|
users: [],
|
|
270
270
|
path: c?.folder?.path?.split("/").pop()
|
|
271
271
|
};
|
|
272
|
-
},
|
|
272
|
+
}, an = (t, e) => {
|
|
273
273
|
switch (e) {
|
|
274
274
|
case "task":
|
|
275
|
-
return
|
|
275
|
+
return tn(t.task);
|
|
276
276
|
case "version":
|
|
277
|
-
return
|
|
277
|
+
return sn(t.version);
|
|
278
278
|
case "folder":
|
|
279
|
-
return
|
|
279
|
+
return nn(t.folder);
|
|
280
280
|
case "workfile":
|
|
281
|
-
return
|
|
281
|
+
return rn(t.workfile);
|
|
282
282
|
default:
|
|
283
283
|
return {};
|
|
284
284
|
}
|
|
285
|
-
},
|
|
285
|
+
}, on = (t) => {
|
|
286
286
|
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
287
|
if (!c) return a;
|
|
288
288
|
const d = c.match(/\*\s\[\s\]/g);
|
|
@@ -293,7 +293,7 @@ const mt = (t = [], e) => {
|
|
|
293
293
|
return a + (d ? d.length : 0);
|
|
294
294
|
}, 0);
|
|
295
295
|
return { total: i + r, checked: r, unChecked: i, ids: n };
|
|
296
|
-
},
|
|
296
|
+
}, cn = (t, e = "task", s = "task") => t?.length ? [
|
|
297
297
|
...t.map(({ id: n }) => ({ type: e, id: n })),
|
|
298
298
|
{ type: e, id: s.toUpperCase() + "S" },
|
|
299
299
|
{
|
|
@@ -354,7 +354,7 @@ const mt = (t = [], e) => {
|
|
|
354
354
|
"subtype.change"
|
|
355
355
|
],
|
|
356
356
|
checklists: ["checklist"]
|
|
357
|
-
},
|
|
357
|
+
}, Nr = (t) => {
|
|
358
358
|
if (typeof t == "string")
|
|
359
359
|
return t in se ? se[t] : null;
|
|
360
360
|
if (t && typeof t == "object" && t.conditions) {
|
|
@@ -365,7 +365,7 @@ const mt = (t = [], e) => {
|
|
|
365
365
|
}), s ? Array.from(new Set(e)) : se.activity;
|
|
366
366
|
}
|
|
367
367
|
return se.activity;
|
|
368
|
-
},
|
|
368
|
+
}, dn = (t) => {
|
|
369
369
|
switch (t) {
|
|
370
370
|
case "task":
|
|
371
371
|
return `
|
|
@@ -409,7 +409,7 @@ const mt = (t = [], e) => {
|
|
|
409
409
|
default:
|
|
410
410
|
return "";
|
|
411
411
|
}
|
|
412
|
-
},
|
|
412
|
+
}, un = (t) => `
|
|
413
413
|
query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
414
414
|
project(name: $projectName) {
|
|
415
415
|
${t}(id: $entityId) {
|
|
@@ -419,15 +419,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
419
419
|
thumbnailId
|
|
420
420
|
updatedAt
|
|
421
421
|
thumbnailHash
|
|
422
|
-
${
|
|
422
|
+
${dn(t)}
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
`,
|
|
426
|
+
`, ln = (t) => t.replace(/_([a-z0-9])/g, (e, s) => s.toUpperCase()), vt = {
|
|
427
427
|
task_type: "subType",
|
|
428
428
|
folder_type: "subType",
|
|
429
429
|
product_type: "subType"
|
|
430
|
-
},
|
|
430
|
+
}, fe = (t) => t in vt ? vt[t] : t.startsWith("project_attributes_") ? "attrib_" + t.slice(19) : t.startsWith("inherited_attributes_") ? "attrib_" + t.slice(21) : t.startsWith("attrib_") ? t : ln(t), pn = (t) => {
|
|
431
431
|
if (Array.isArray(t)) return t;
|
|
432
432
|
if (typeof t == "string") {
|
|
433
433
|
const e = t.trim();
|
|
@@ -439,7 +439,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
return [t];
|
|
442
|
-
},
|
|
442
|
+
}, fn = (t) => {
|
|
443
443
|
if (t == null) return;
|
|
444
444
|
let e = t;
|
|
445
445
|
if (typeof e == "string")
|
|
@@ -452,7 +452,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
452
452
|
const s = /* @__PURE__ */ new Map();
|
|
453
453
|
for (const n of e) {
|
|
454
454
|
if (!n || n.value == null) continue;
|
|
455
|
-
const i =
|
|
455
|
+
const i = pn(n.value);
|
|
456
456
|
for (const r of i) {
|
|
457
457
|
const a = String(r), c = s.get(a);
|
|
458
458
|
s.set(a, { ...n, value: a, count: (c?.count ?? 0) + (Number(n.count) || 0) });
|
|
@@ -465,7 +465,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
465
465
|
value: s,
|
|
466
466
|
count: Number(n) || 0
|
|
467
467
|
}));
|
|
468
|
-
}, ge = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0),
|
|
468
|
+
}, ge = (t, e) => t == null && e == null ? void 0 : (t ?? 0) + (e ?? 0), yn = (t, e) => t == null ? e ?? void 0 : e == null || t < e ? t : e, gn = (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, hn = (t, e) => {
|
|
469
469
|
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
470
|
let a;
|
|
471
471
|
if (t.avg != null && e.avg != null) {
|
|
@@ -484,8 +484,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
484
484
|
}
|
|
485
485
|
return {
|
|
486
486
|
columnName: t.columnName,
|
|
487
|
-
min:
|
|
488
|
-
max:
|
|
487
|
+
min: yn(t.min, e.min),
|
|
488
|
+
max: gn(t.max, e.max),
|
|
489
489
|
avg: a,
|
|
490
490
|
sum: ge(t.sum, e.sum),
|
|
491
491
|
valueFilledCount: s,
|
|
@@ -502,31 +502,31 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
502
502
|
};
|
|
503
503
|
}, ke = (t) => t.map((e) => ({
|
|
504
504
|
...e,
|
|
505
|
-
columnName:
|
|
506
|
-
distribution:
|
|
505
|
+
columnName: fe(e.columnName),
|
|
506
|
+
distribution: fn(e.distribution)
|
|
507
507
|
})), Ae = (t = [], e = []) => {
|
|
508
508
|
const s = /* @__PURE__ */ new Map();
|
|
509
|
-
for (const n of e) s.set(
|
|
509
|
+
for (const n of e) s.set(fe(n.columnName), { ...n });
|
|
510
510
|
for (const n of t) {
|
|
511
|
-
const i =
|
|
511
|
+
const i = fe(n.columnName), r = { ...s.get(i) || { columnName: n.columnName } };
|
|
512
512
|
for (const [a, c] of Object.entries(n))
|
|
513
513
|
c != null && (r[a] = c);
|
|
514
514
|
s.set(i, r);
|
|
515
515
|
}
|
|
516
516
|
return [...s.values()];
|
|
517
|
-
},
|
|
517
|
+
}, Qr = (t) => t.reduce(
|
|
518
518
|
(e, s) => Math.max(e, (s.valueFilledCount ?? 0) + (s.valueNotFilledCount ?? 0)),
|
|
519
519
|
0
|
|
520
|
-
),
|
|
520
|
+
), Mr = (t, e = []) => {
|
|
521
521
|
const s = /* @__PURE__ */ new Map();
|
|
522
|
-
for (const i of t) s.set(
|
|
522
|
+
for (const i of t) s.set(fe(i.columnName), i);
|
|
523
523
|
const n = new Map(s);
|
|
524
524
|
for (const i of e) {
|
|
525
|
-
const r =
|
|
526
|
-
n.set(r, a ?
|
|
525
|
+
const r = fe(i.columnName), a = s.get(r);
|
|
526
|
+
n.set(r, a ? hn(a, i) : i);
|
|
527
527
|
}
|
|
528
528
|
return [...n.values()];
|
|
529
|
-
}, is = [
|
|
529
|
+
}, is = [Hs, Ws], rs = (t, e, s) => {
|
|
530
530
|
if (is.includes(e))
|
|
531
531
|
return !0;
|
|
532
532
|
if (t[e] !== void 0 && t[e] !== null)
|
|
@@ -550,7 +550,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
550
550
|
return s[r];
|
|
551
551
|
}
|
|
552
552
|
return !1;
|
|
553
|
-
},
|
|
553
|
+
}, Vr = (t, e) => e.filter(
|
|
554
554
|
(n) => !is.includes(n) && t[n]
|
|
555
555
|
).length === 0 && e.includes("name") ? {
|
|
556
556
|
...t,
|
|
@@ -561,7 +561,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
561
561
|
}, at = (t, e, s) => {
|
|
562
562
|
const n = e?.[t], i = s?.[t];
|
|
563
563
|
return n === "none" || i === "none" ? !1 : n != null || i != null;
|
|
564
|
-
},
|
|
564
|
+
}, mn = (t, e, s, n) => {
|
|
565
565
|
const i = /* @__PURE__ */ new Set([
|
|
566
566
|
...Object.keys(t ?? {}),
|
|
567
567
|
...Object.keys(e ?? {})
|
|
@@ -570,12 +570,12 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
570
570
|
if (!(s && !rs(s, r, n)) && at(r, t, e))
|
|
571
571
|
return !0;
|
|
572
572
|
return !1;
|
|
573
|
-
},
|
|
573
|
+
}, Dr = (t, e, s, n) => e?.name === "none" && !mn(t, e, s, n), we = (t, e) => {
|
|
574
574
|
if (!t) return !1;
|
|
575
575
|
if (!e) return !0;
|
|
576
576
|
const s = new Set(bt(e).map((n) => n.field));
|
|
577
577
|
return bt(t).some((n) => !s.has(n.field));
|
|
578
|
-
}, He = [D.Filled, D.NotFilled],
|
|
578
|
+
}, He = [D.Filled, D.NotFilled], vn = [
|
|
579
579
|
D.Min,
|
|
580
580
|
D.Max,
|
|
581
581
|
D.Avg,
|
|
@@ -586,12 +586,12 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
586
586
|
D.Filled,
|
|
587
587
|
D.NotFilled,
|
|
588
588
|
D.Distribution
|
|
589
|
-
],
|
|
589
|
+
], bn = {
|
|
590
590
|
folder: "folder_type",
|
|
591
591
|
task: "task_type",
|
|
592
592
|
product: "product_type",
|
|
593
593
|
version: null
|
|
594
|
-
},
|
|
594
|
+
}, Or = ({
|
|
595
595
|
entity: t,
|
|
596
596
|
attribs: e,
|
|
597
597
|
columnVisibility: s,
|
|
@@ -602,7 +602,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
602
602
|
}) => {
|
|
603
603
|
const c = (y) => rs(s, y, n), d = (y) => c(y) && at(y, i, r), u = [];
|
|
604
604
|
t === "version" ? u.push({ field: "status", aggregations: d("status") ? Y : He }) : (u.push({ field: "name", aggregations: He }), 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 });
|
|
605
|
-
const o = r?.name ?? "all", l = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", p = i?.name === "breakdown" && at("name", i, r) && l, f =
|
|
605
|
+
const o = r?.name ?? "all", l = ["folder", "product"].includes(t) ? o === "all" || o === "primary" : o === "all" || o === "secondary", p = i?.name === "breakdown" && at("name", i, r) && l, f = bn[t];
|
|
606
606
|
f && (d("subType") || p) && u.push({ field: f, aggregations: Y });
|
|
607
607
|
for (const y of a)
|
|
608
608
|
u.push({ field: y, aggregations: Y });
|
|
@@ -611,38 +611,38 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
611
611
|
let h = `attrib.${y.name}`;
|
|
612
612
|
["folder", "task"].includes(t) && (h = `inherited_attributes.${y.name}`);
|
|
613
613
|
const g = y.data?.type;
|
|
614
|
-
g === "integer" || g === "float" ? u.push({ field: h, aggregations:
|
|
614
|
+
g === "integer" || g === "float" ? u.push({ field: h, aggregations: vn }) : g === "string" ? u.push({ field: h, aggregations: Es(y.data) ? Y : He }) : (g === "list_of_strings" || g === "list_of_integers") && u.push({ field: h, aggregations: Y });
|
|
615
615
|
}
|
|
616
616
|
return u;
|
|
617
617
|
}, It = [
|
|
618
618
|
D.Distribution,
|
|
619
619
|
D.Filled,
|
|
620
620
|
D.NotFilled
|
|
621
|
-
],
|
|
621
|
+
], In = {
|
|
622
622
|
status: "status",
|
|
623
623
|
assignees: "assignees",
|
|
624
624
|
tags: "tags",
|
|
625
625
|
taskType: "task_type"
|
|
626
|
-
},
|
|
626
|
+
}, Tn = {
|
|
627
627
|
status: "status",
|
|
628
628
|
tags: "tags",
|
|
629
629
|
author: "author",
|
|
630
630
|
productType: "product_type"
|
|
631
|
-
},
|
|
632
|
-
const n = (e === "version" || e === "product" ?
|
|
631
|
+
}, $r = (t, e) => {
|
|
632
|
+
const n = (e === "version" || e === "product" ? Tn : In)[t.id];
|
|
633
633
|
if (n) return { field: n, aggregations: It };
|
|
634
634
|
if (t.id.startsWith("attrib.")) {
|
|
635
635
|
const i = t.id.slice(7);
|
|
636
636
|
return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: It };
|
|
637
637
|
}
|
|
638
638
|
return null;
|
|
639
|
-
},
|
|
639
|
+
}, kn = (t) => {
|
|
640
640
|
const e = t.indexOf(".");
|
|
641
|
-
return e !== -1 ? "attrib_" + t.slice(e + 1) :
|
|
642
|
-
},
|
|
641
|
+
return e !== -1 ? "attrib_" + t.slice(e + 1) : fe(t);
|
|
642
|
+
}, xr = (t, e) => {
|
|
643
643
|
const s = /* @__PURE__ */ new Map(), n = { count: 0, percentage: 0 };
|
|
644
644
|
if (!e) return { counts: s, total: 0, ungrouped: n, complete: !1 };
|
|
645
|
-
const i =
|
|
645
|
+
const i = kn(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
646
|
for (const f of a) {
|
|
647
647
|
const y = f.count || 0, h = l > 0 ? Math.round(y / l * 100) : 0;
|
|
648
648
|
s.set(String(f.value), { count: y, percentage: h });
|
|
@@ -660,7 +660,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
660
660
|
} catch {
|
|
661
661
|
return {};
|
|
662
662
|
}
|
|
663
|
-
},
|
|
663
|
+
}, Ur = R, Tt = (t) => {
|
|
664
664
|
if (!t.project)
|
|
665
665
|
return [];
|
|
666
666
|
const e = [];
|
|
@@ -726,11 +726,11 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
726
726
|
keepUnusedDataFor: Z
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
}),
|
|
729
|
+
}), An = pt.enhanceEndpoints({
|
|
730
730
|
endpoints: {
|
|
731
731
|
searchFolders: {}
|
|
732
732
|
}
|
|
733
|
-
}), We = 100, be = {}, ze = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }),
|
|
733
|
+
}), We = 100, be = {}, ze = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), wn = (t, e) => {
|
|
734
734
|
be[t] || (be[t] = /* @__PURE__ */ new Set()), e.forEach((s) => be[t].add(s));
|
|
735
735
|
}, kt = (t) => be[t] || /* @__PURE__ */ new Set(), x = re.injectEndpoints({
|
|
736
736
|
endpoints: (t) => ({
|
|
@@ -754,7 +754,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
754
754
|
);
|
|
755
755
|
for (let E = 0; E < g.length; E += v) {
|
|
756
756
|
const P = g.slice(E, E + v);
|
|
757
|
-
let S = !0,
|
|
757
|
+
let S = !0, j, _ = 0;
|
|
758
758
|
for (; S && _ < I; ) {
|
|
759
759
|
if (_++, _ === I)
|
|
760
760
|
throw new Error(
|
|
@@ -770,7 +770,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
770
770
|
search: r,
|
|
771
771
|
showComments: !!a,
|
|
772
772
|
first: T,
|
|
773
|
-
after:
|
|
773
|
+
after: j
|
|
774
774
|
},
|
|
775
775
|
{ forceRefetch: !0 }
|
|
776
776
|
)
|
|
@@ -779,16 +779,16 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
779
779
|
const O = G.data, $ = O?.tasks || [];
|
|
780
780
|
m.push(...$);
|
|
781
781
|
const C = O?.pageInfo;
|
|
782
|
-
S = C?.hasNextPage || !1,
|
|
782
|
+
S = C?.hasNextPage || !1, j = C?.endCursor || void 0;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
|
|
785
|
+
wn(y, g);
|
|
786
786
|
const A = [...f, ...m], w = new Map(A.map((E) => [E.id, E]));
|
|
787
787
|
return {
|
|
788
788
|
data: Array.from(w.values())
|
|
789
789
|
};
|
|
790
790
|
} catch (o) {
|
|
791
|
-
return console.error(o), { error:
|
|
791
|
+
return console.error(o), { error: L(o) };
|
|
792
792
|
}
|
|
793
793
|
},
|
|
794
794
|
// keep one cache per project
|
|
@@ -812,7 +812,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
812
812
|
m.filter((w) => w.project === e).filter((w) => b.has(w.summary?.parentId)).forEach((w) => {
|
|
813
813
|
const E = w.summary?.entityId;
|
|
814
814
|
if (!E || !I.has(E)) return;
|
|
815
|
-
const P = w.topic?.split(".")[2]?.replace("_changed", ""), S =
|
|
815
|
+
const P = w.topic?.split(".")[2]?.replace("_changed", ""), S = pe(
|
|
816
816
|
P,
|
|
817
817
|
w.summary,
|
|
818
818
|
De
|
|
@@ -824,8 +824,8 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
824
824
|
}) : k.add(E);
|
|
825
825
|
}), T.length && u((w) => {
|
|
826
826
|
T.forEach(({ taskId: E, field: P, value: S }) => {
|
|
827
|
-
const
|
|
828
|
-
|
|
827
|
+
const j = w.find((_) => _.id === E);
|
|
828
|
+
j && Object.assign(j, { [P === "type" ? "taskType" : P]: S });
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
const A = Array.from(k);
|
|
@@ -845,13 +845,13 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
845
845
|
if (!v()) return;
|
|
846
846
|
const P = new Map(E.map((S) => [S.id, S]));
|
|
847
847
|
u((S) => {
|
|
848
|
-
for (const
|
|
849
|
-
const _ = S.findIndex((G) => G.id ===
|
|
850
|
-
_ > -1 ? S[_] =
|
|
848
|
+
for (const j of E) {
|
|
849
|
+
const _ = S.findIndex((G) => G.id === j.id);
|
|
850
|
+
_ > -1 ? S[_] = j : S.push(j);
|
|
851
851
|
}
|
|
852
|
-
for (const
|
|
853
|
-
if (!P.has(
|
|
854
|
-
const _ = S.findIndex((G) => G.id ===
|
|
852
|
+
for (const j of A)
|
|
853
|
+
if (!P.has(j)) {
|
|
854
|
+
const _ = S.findIndex((G) => G.id === j);
|
|
855
855
|
_ > -1 && S.splice(_, 1);
|
|
856
856
|
}
|
|
857
857
|
});
|
|
@@ -895,14 +895,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
895
895
|
async queryFn({ projectName: e, folderSearchRequest: s }, { dispatch: n }) {
|
|
896
896
|
try {
|
|
897
897
|
const i = await n(
|
|
898
|
-
|
|
898
|
+
An.endpoints.searchFolders.initiate({
|
|
899
899
|
projectName: e,
|
|
900
900
|
folderSearchRequest: s
|
|
901
901
|
})
|
|
902
902
|
);
|
|
903
|
-
return i.error ? { error:
|
|
903
|
+
return i.error ? { error: L(i.error) } : { data: i.data?.folderIds || [] };
|
|
904
904
|
} catch (i) {
|
|
905
|
-
return console.error(i), { error:
|
|
905
|
+
return console.error(i), { error: L(i) };
|
|
906
906
|
}
|
|
907
907
|
},
|
|
908
908
|
providesTags: (e, s, { projectName: n }) => [{ type: "tasksFolder", id: n }],
|
|
@@ -964,7 +964,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
964
964
|
data: g.data || m
|
|
965
965
|
};
|
|
966
966
|
} catch (i) {
|
|
967
|
-
return console.error("ERROR [getOverview]:", i, i.data?.detail), { error:
|
|
967
|
+
return console.error("ERROR [getOverview]:", i, i.data?.detail), { error: L(i) };
|
|
968
968
|
}
|
|
969
969
|
},
|
|
970
970
|
providesTags: (e, s, { projectName: n }) => ve(e?.pages.flatMap((i) => i.tasks) || [], n),
|
|
@@ -980,7 +980,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
980
980
|
l.filter((m) => m.project === e.projectName).forEach((m) => {
|
|
981
981
|
const v = m.summary?.entityId;
|
|
982
982
|
if (!v || !f.has(v)) return;
|
|
983
|
-
const b = m.topic?.split(".")[2]?.replace("_changed", ""), I =
|
|
983
|
+
const b = m.topic?.split(".")[2]?.replace("_changed", ""), I = pe(
|
|
984
984
|
b,
|
|
985
985
|
m.summary,
|
|
986
986
|
De
|
|
@@ -1151,7 +1151,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
};
|
|
1153
1153
|
} catch (l) {
|
|
1154
|
-
return console.error("ERROR [getGroupedTasksList]:", l, l.data?.detail), { error:
|
|
1154
|
+
return console.error("ERROR [getGroupedTasksList]:", l, l.data?.detail), { error: L(l) };
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
1157
1157
|
providesTags: (e, s, { projectName: n }) => ve(e?.tasks, n),
|
|
@@ -1159,15 +1159,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1159
1159
|
})
|
|
1160
1160
|
})
|
|
1161
1161
|
}), {
|
|
1162
|
-
useGetOverviewTasksByFoldersQuery:
|
|
1163
|
-
useGetSearchFoldersQuery:
|
|
1164
|
-
useGetTasksListQuery:
|
|
1165
|
-
useGetTasksListInfiniteInfiniteQuery:
|
|
1166
|
-
useLazyGetTasksByParentQuery:
|
|
1167
|
-
useGetGroupedTasksListQuery:
|
|
1168
|
-
useGetFolderColumnStatsQuery:
|
|
1169
|
-
useGetTaskColumnStatsQuery:
|
|
1170
|
-
} = x,
|
|
1162
|
+
useGetOverviewTasksByFoldersQuery: qr,
|
|
1163
|
+
useGetSearchFoldersQuery: Br,
|
|
1164
|
+
useGetTasksListQuery: Hr,
|
|
1165
|
+
useGetTasksListInfiniteInfiniteQuery: Wr,
|
|
1166
|
+
useLazyGetTasksByParentQuery: zr,
|
|
1167
|
+
useGetGroupedTasksListQuery: Kr,
|
|
1168
|
+
useGetFolderColumnStatsQuery: Jr,
|
|
1169
|
+
useGetTaskColumnStatsQuery: Yr
|
|
1170
|
+
} = x, En = Q.enhanceEndpoints({
|
|
1171
1171
|
endpoints: {
|
|
1172
1172
|
GetUpdatedAndNewFolders: {
|
|
1173
1173
|
transformResponse: (t) => t.project.folders.edges.map(({ node: e }) => ({
|
|
@@ -1182,7 +1182,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1182
1182
|
}))
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
}),
|
|
1185
|
+
}), Sn = ie, $e = pt.enhanceEndpoints({
|
|
1186
1186
|
endpoints: {
|
|
1187
1187
|
getFolderHierarchy: {
|
|
1188
1188
|
providesTags: ["hierarchy"]
|
|
@@ -1220,7 +1220,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
1222
|
if (!g.has(w)) return;
|
|
1223
|
-
const E =
|
|
1223
|
+
const E = pe(
|
|
1224
1224
|
d[A.topic],
|
|
1225
1225
|
A.summary,
|
|
1226
1226
|
c
|
|
@@ -1236,15 +1236,15 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1236
1236
|
!A || !Array.isArray(A.folders) || (A.folders = A.folders.filter((w) => !v.includes(w.id)));
|
|
1237
1237
|
}), k.length && n((A) => {
|
|
1238
1238
|
!A || !Array.isArray(A.folders) || k.forEach(({ folderId: w, field: E, value: P }) => {
|
|
1239
|
-
const S = A.folders.find((
|
|
1239
|
+
const S = A.folders.find((j) => j.id === w);
|
|
1240
1240
|
S && (S[E] = P);
|
|
1241
1241
|
});
|
|
1242
1242
|
});
|
|
1243
1243
|
const T = [.../* @__PURE__ */ new Set([...b, ...I.keys()])];
|
|
1244
|
-
if (!(T.length >
|
|
1244
|
+
if (!(T.length > Sn) && T.length) {
|
|
1245
1245
|
await J();
|
|
1246
1246
|
const A = await r(
|
|
1247
|
-
|
|
1247
|
+
En.endpoints.GetUpdatedAndNewFolders.initiate({
|
|
1248
1248
|
projectName: a,
|
|
1249
1249
|
folderIds: T,
|
|
1250
1250
|
first: T.length
|
|
@@ -1257,13 +1257,13 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1257
1257
|
const P = new Map(
|
|
1258
1258
|
A.filter(Boolean).map((S) => [S.id, S])
|
|
1259
1259
|
);
|
|
1260
|
-
E.folders.forEach((S,
|
|
1260
|
+
E.folders.forEach((S, j) => {
|
|
1261
1261
|
const _ = P.get(S.id);
|
|
1262
|
-
_ && (w.has(S.id) ? E.folders[
|
|
1262
|
+
_ && (w.has(S.id) ? E.folders[j] = { ...S, ..._ } : (I.get(S.id) || /* @__PURE__ */ new Set()).forEach((O) => {
|
|
1263
1263
|
S[O] = _[O];
|
|
1264
1264
|
}), P.delete(S.id));
|
|
1265
|
-
}), P.forEach((S,
|
|
1266
|
-
w.has(
|
|
1265
|
+
}), P.forEach((S, j) => {
|
|
1266
|
+
w.has(j) && E.folders.push(S);
|
|
1267
1267
|
});
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
@@ -1297,7 +1297,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
}), { useGetFolderHierarchyQuery:
|
|
1300
|
+
}), { useGetFolderHierarchyQuery: Xr, useGetFolderListQuery: Zr } = $e, Pn = Q.enhanceEndpoints({
|
|
1301
1301
|
endpoints: {
|
|
1302
1302
|
GetFolderDeleteInfo: {
|
|
1303
1303
|
transformResponse: (t) => (t?.project?.folders?.edges || []).map((s) => ({
|
|
@@ -1315,7 +1315,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1315
1315
|
] : [{ type: "folder", id: "DELETE_INFO" }]
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
}), { useGetFolderDeleteInfoQuery:
|
|
1318
|
+
}), { useGetFolderDeleteInfoQuery: ea, useLazyGetFolderDeleteInfoQuery: ta } = Pn, Ln = ["task", "version", "folder", "representation"], je = ({
|
|
1319
1319
|
entity: t,
|
|
1320
1320
|
entityType: e,
|
|
1321
1321
|
projectName: s
|
|
@@ -1502,12 +1502,12 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1502
1502
|
case "representation":
|
|
1503
1503
|
return "GetDetailsPanelRepresentation";
|
|
1504
1504
|
}
|
|
1505
|
-
},
|
|
1505
|
+
}, de = Ke.injectEndpoints({
|
|
1506
1506
|
endpoints: (t) => ({
|
|
1507
1507
|
getEntitiesDetailsPanel: t.query({
|
|
1508
1508
|
async queryFn({ entities: e = [], entityType: s }, { dispatch: n }) {
|
|
1509
|
-
if (!
|
|
1510
|
-
return { error:
|
|
1509
|
+
if (!Ln.includes(s))
|
|
1510
|
+
return { error: L("Entity type not supported", 400) };
|
|
1511
1511
|
try {
|
|
1512
1512
|
const i = e.map((c) => n(
|
|
1513
1513
|
Ke.endpoints[At(s)].initiate(
|
|
@@ -1520,7 +1520,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1520
1520
|
));
|
|
1521
1521
|
return { data: (await Promise.all(i)).filter((c) => !!c.data).map((c) => c.data) };
|
|
1522
1522
|
} catch (i) {
|
|
1523
|
-
return console.error(i), { error:
|
|
1523
|
+
return console.error(i), { error: L(i) };
|
|
1524
1524
|
}
|
|
1525
1525
|
},
|
|
1526
1526
|
async onCacheEntryAdded({ entityType: e }, { updateCachedData: s, cacheDataLoaded: n, cacheEntryRemoved: i, dispatch: r, getCacheEntry: a }) {
|
|
@@ -1535,7 +1535,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1535
1535
|
if (!k || !T) return;
|
|
1536
1536
|
const A = `${T}:${k}`;
|
|
1537
1537
|
if (!y.has(A)) return;
|
|
1538
|
-
const w = b.split(".")[2]?.replace("_changed", ""), E =
|
|
1538
|
+
const w = b.split(".")[2]?.replace("_changed", ""), E = pe(
|
|
1539
1539
|
w,
|
|
1540
1540
|
I.summary,
|
|
1541
1541
|
De
|
|
@@ -1632,7 +1632,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1632
1632
|
]
|
|
1633
1633
|
})
|
|
1634
1634
|
})
|
|
1635
|
-
}), { useGetEntitiesDetailsPanelQuery:
|
|
1635
|
+
}), { useGetEntitiesDetailsPanelQuery: sa, useLazyGetEntitiesDetailsPanelQuery: na } = de, jn = `
|
|
1636
1636
|
fragment taskTileFragment on TaskNode {
|
|
1637
1637
|
id
|
|
1638
1638
|
name
|
|
@@ -1649,7 +1649,7 @@ fragment taskTileFragment on TaskNode {
|
|
|
1649
1649
|
path
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
|
-
`,
|
|
1652
|
+
`, Fn = `
|
|
1653
1653
|
fragment versionTileFragment on VersionNode {
|
|
1654
1654
|
id
|
|
1655
1655
|
name: product {
|
|
@@ -1673,7 +1673,7 @@ fragment versionTileFragment on VersionNode {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
version
|
|
1675
1675
|
}
|
|
1676
|
-
`,
|
|
1676
|
+
`, _n = `
|
|
1677
1677
|
fragment productTileFragment on ProductNode {
|
|
1678
1678
|
id
|
|
1679
1679
|
name
|
|
@@ -1689,7 +1689,7 @@ fragment productTileFragment on ProductNode {
|
|
|
1689
1689
|
path
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
`,
|
|
1692
|
+
`, Rn = `
|
|
1693
1693
|
fragment folderTileFragment on FolderNode {
|
|
1694
1694
|
id
|
|
1695
1695
|
name
|
|
@@ -1702,7 +1702,7 @@ fragment folderTileFragment on FolderNode {
|
|
|
1702
1702
|
path: parent {
|
|
1703
1703
|
path
|
|
1704
1704
|
}
|
|
1705
|
-
}`,
|
|
1705
|
+
}`, Gn = (t) => `
|
|
1706
1706
|
query EventTile($projectName: String!, $id: String!) {
|
|
1707
1707
|
project(name: $projectName) {
|
|
1708
1708
|
${t}(id: $id) {
|
|
@@ -1713,7 +1713,7 @@ fragment folderTileFragment on FolderNode {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
|
-
`,
|
|
1716
|
+
`, Cn = (t) => {
|
|
1717
1717
|
let s = `
|
|
1718
1718
|
query EntityTiles($projectName: String!) {
|
|
1719
1719
|
project(name: $projectName) {
|
|
@@ -1732,10 +1732,10 @@ fragment folderTileFragment on FolderNode {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
`;
|
|
1734
1734
|
const n = {
|
|
1735
|
-
folder:
|
|
1736
|
-
product:
|
|
1737
|
-
version:
|
|
1738
|
-
task:
|
|
1735
|
+
folder: Rn,
|
|
1736
|
+
product: _n,
|
|
1737
|
+
version: Fn,
|
|
1738
|
+
task: jn
|
|
1739
1739
|
};
|
|
1740
1740
|
for (const i in t)
|
|
1741
1741
|
s += n[i];
|
|
@@ -1748,7 +1748,7 @@ function as(t) {
|
|
|
1748
1748
|
if (e.length > 0)
|
|
1749
1749
|
return as(t[e[0]]);
|
|
1750
1750
|
}
|
|
1751
|
-
const
|
|
1751
|
+
const Nn = (t, e) => {
|
|
1752
1752
|
if (Array.isArray(e)) {
|
|
1753
1753
|
const n = {};
|
|
1754
1754
|
for (const i of e)
|
|
@@ -1767,14 +1767,14 @@ const Cn = (t, e) => {
|
|
|
1767
1767
|
n.thumbnailEntityType = n.type, n.type === "product" && (n.thumbnailEntityId = n.latestVersion.thumbnailEntityId, n.thumbnailId = n.latestVersion.thumbnailId, n.thumbnailEntityType = "version");
|
|
1768
1768
|
}
|
|
1769
1769
|
return s;
|
|
1770
|
-
},
|
|
1770
|
+
}, Qn = Q.injectEndpoints({
|
|
1771
1771
|
endpoints: (t) => ({
|
|
1772
1772
|
getEventTile: t.query({
|
|
1773
1773
|
query: ({ projectName: e, id: s, type: n }) => ({
|
|
1774
1774
|
url: "/graphql",
|
|
1775
1775
|
method: "POST",
|
|
1776
1776
|
body: {
|
|
1777
|
-
query:
|
|
1777
|
+
query: Gn(n),
|
|
1778
1778
|
variables: { projectName: e, id: s }
|
|
1779
1779
|
}
|
|
1780
1780
|
}),
|
|
@@ -1785,11 +1785,11 @@ const Cn = (t, e) => {
|
|
|
1785
1785
|
url: "/graphql",
|
|
1786
1786
|
method: "POST",
|
|
1787
1787
|
body: {
|
|
1788
|
-
query:
|
|
1788
|
+
query: Cn(s),
|
|
1789
1789
|
variables: { projectName: e }
|
|
1790
1790
|
}
|
|
1791
1791
|
}),
|
|
1792
|
-
transformResponse: (e, s, { entities: n }) =>
|
|
1792
|
+
transformResponse: (e, s, { entities: n }) => Nn(e.data?.project, n)
|
|
1793
1793
|
}),
|
|
1794
1794
|
getEntity: t.query({
|
|
1795
1795
|
query: ({ projectName: e, entityType: s, entityId: n }) => ({
|
|
@@ -1799,17 +1799,17 @@ const Cn = (t, e) => {
|
|
|
1799
1799
|
})
|
|
1800
1800
|
}),
|
|
1801
1801
|
overrideExisting: !0
|
|
1802
|
-
}), me =
|
|
1802
|
+
}), me = Qn.enhanceEndpoints({
|
|
1803
1803
|
endpoints: {
|
|
1804
1804
|
GetProductVersions: {}
|
|
1805
1805
|
}
|
|
1806
1806
|
}), {
|
|
1807
|
-
useGetEventTileQuery:
|
|
1808
|
-
useGetEntityTilesQuery:
|
|
1809
|
-
useGetEntityQuery:
|
|
1810
|
-
useLazyGetEntityQuery:
|
|
1811
|
-
useGetProductVersionsQuery:
|
|
1812
|
-
useGetSearchedEntitiesInfiniteQuery:
|
|
1807
|
+
useGetEventTileQuery: ia,
|
|
1808
|
+
useGetEntityTilesQuery: ra,
|
|
1809
|
+
useGetEntityQuery: aa,
|
|
1810
|
+
useLazyGetEntityQuery: oa,
|
|
1811
|
+
useGetProductVersionsQuery: ca,
|
|
1812
|
+
useGetSearchedEntitiesInfiniteQuery: da
|
|
1813
1813
|
} = me, ee = Se.enhanceEndpoints({
|
|
1814
1814
|
endpoints: {
|
|
1815
1815
|
getProject: {
|
|
@@ -1827,7 +1827,7 @@ const Cn = (t, e) => {
|
|
|
1827
1827
|
providesTags: (t, e, { projectName: s }) => [{ type: "project", id: s }]
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
}), { useGetProjectQuery:
|
|
1830
|
+
}), { useGetProjectQuery: ua, useListProjectsQuery: la, useGetProjectAnatomyQuery: pa } = ee, wt = 2e3, Et = Q.enhanceEndpoints({
|
|
1831
1831
|
endpoints: {
|
|
1832
1832
|
GetProjects: {
|
|
1833
1833
|
transformResponse: (t) => ({
|
|
@@ -1875,7 +1875,7 @@ const Cn = (t, e) => {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
};
|
|
1877
1877
|
} catch (i) {
|
|
1878
|
-
return console.error("Error in getProjectsInfinite queryFn:", i), { error:
|
|
1878
|
+
return console.error("Error in getProjectsInfinite queryFn:", i), { error: L(i) };
|
|
1879
1879
|
}
|
|
1880
1880
|
},
|
|
1881
1881
|
providesTags: (e) => {
|
|
@@ -1888,7 +1888,7 @@ const Cn = (t, e) => {
|
|
|
1888
1888
|
})
|
|
1889
1889
|
}),
|
|
1890
1890
|
overrideExisting: !0
|
|
1891
|
-
}), { useGetProjectsInfiniteInfiniteQuery:
|
|
1891
|
+
}), { useGetProjectsInfiniteInfiniteQuery: fa } = ft, Je = (t, e) => {
|
|
1892
1892
|
for (const [s, n] of Object.entries(e)) {
|
|
1893
1893
|
if (s === "attrib" && n && typeof n == "object" && !Array.isArray(n)) {
|
|
1894
1894
|
t.attrib = {
|
|
@@ -1899,7 +1899,7 @@ const Cn = (t, e) => {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
t[s] = n;
|
|
1901
1901
|
}
|
|
1902
|
-
},
|
|
1902
|
+
}, Mn = ee.enhanceEndpoints({
|
|
1903
1903
|
endpoints: {
|
|
1904
1904
|
deployProject: {
|
|
1905
1905
|
invalidatesTags: () => [
|
|
@@ -1967,18 +1967,18 @@ const Cn = (t, e) => {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
1969
|
}), {
|
|
1970
|
-
useDeployProjectMutation:
|
|
1971
|
-
useDeleteProjectMutation:
|
|
1972
|
-
useSetProjectAnatomyMutation:
|
|
1973
|
-
useUpdateProjectMutation:
|
|
1974
|
-
useSetProjectBundleMutation:
|
|
1975
|
-
} =
|
|
1970
|
+
useDeployProjectMutation: ya,
|
|
1971
|
+
useDeleteProjectMutation: ga,
|
|
1972
|
+
useSetProjectAnatomyMutation: ha,
|
|
1973
|
+
useUpdateProjectMutation: ma,
|
|
1974
|
+
useSetProjectBundleMutation: va
|
|
1975
|
+
} = Mn, Vn = (t) => {
|
|
1976
1976
|
try {
|
|
1977
1977
|
return JSON.parse(t);
|
|
1978
1978
|
} catch {
|
|
1979
1979
|
return {};
|
|
1980
1980
|
}
|
|
1981
|
-
},
|
|
1981
|
+
}, Dn = (t) => Object.keys(t), St = (t) => t.kanban.edges.map(({ node: e }) => e).sort((e, s) => {
|
|
1982
1982
|
const n = e.label || e.name, i = s.label || s.name;
|
|
1983
1983
|
return n.localeCompare(i);
|
|
1984
1984
|
}), Pt = (t, e, s) => t?.length ? [
|
|
@@ -2026,16 +2026,16 @@ const Cn = (t, e) => {
|
|
|
2026
2026
|
if (!w || !p.includes(w)) return;
|
|
2027
2027
|
const E = A.summary?.entityId;
|
|
2028
2028
|
if (!E) return;
|
|
2029
|
-
const P = T.split(".")[2]?.replace("_changed", ""), S =
|
|
2029
|
+
const P = T.split(".")[2]?.replace("_changed", ""), S = pe(
|
|
2030
2030
|
P,
|
|
2031
2031
|
A.summary,
|
|
2032
2032
|
De
|
|
2033
2033
|
);
|
|
2034
2034
|
if (!S) return;
|
|
2035
|
-
const
|
|
2035
|
+
const j = `${w}:${E}`, _ = h.has(j), G = S.value, O = S.field === "assignees" && G.some(($) => f.includes($));
|
|
2036
2036
|
if (!(!_ && !O)) {
|
|
2037
2037
|
if (!_) {
|
|
2038
|
-
g.set(
|
|
2038
|
+
g.set(j, { taskId: E, project: w });
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
2041
|
m.push({
|
|
@@ -2048,11 +2048,11 @@ const Cn = (t, e) => {
|
|
|
2048
2048
|
}), m.length && e((T) => {
|
|
2049
2049
|
m.forEach(({ taskId: A, project: w, field: E, value: P }) => {
|
|
2050
2050
|
const S = T.find(
|
|
2051
|
-
(
|
|
2051
|
+
(j) => j.id === A && j.projectName === w
|
|
2052
2052
|
);
|
|
2053
|
-
if (S && (Object.assign(S, { [E === "type" ? "taskType" : E]: P }), E === "assignees" && f.length > 0 && !P.some((
|
|
2054
|
-
const
|
|
2055
|
-
|
|
2053
|
+
if (S && (Object.assign(S, { [E === "type" ? "taskType" : E]: P }), E === "assignees" && f.length > 0 && !P.some((j) => f.includes(j)))) {
|
|
2054
|
+
const j = T.indexOf(S);
|
|
2055
|
+
j !== -1 && T.splice(j, 1);
|
|
2056
2056
|
}
|
|
2057
2057
|
});
|
|
2058
2058
|
});
|
|
@@ -2131,8 +2131,8 @@ const Cn = (t, e) => {
|
|
|
2131
2131
|
// get all users on all selected projects
|
|
2132
2132
|
GetKanbanProjectUsers: {
|
|
2133
2133
|
transformResponse: (t, e, { projects: s } = {}) => t.users.edges.map(({ node: n }) => {
|
|
2134
|
-
const i =
|
|
2135
|
-
let a = !n.isManager && !n.isAdmin ?
|
|
2134
|
+
const i = Vn(n.accessGroups);
|
|
2135
|
+
let a = !n.isManager && !n.isAdmin ? Dn(i) : s;
|
|
2136
2136
|
(typeof a == "string" || !a) && (a = []);
|
|
2137
2137
|
const c = `/api/users/${n.name}/avatar`;
|
|
2138
2138
|
return {
|
|
@@ -2148,7 +2148,7 @@ const Cn = (t, e) => {
|
|
|
2148
2148
|
] : [{ type: "user", id: "LIST" }]
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
}), { useGetKanbanQuery:
|
|
2151
|
+
}), { useGetKanbanQuery: ba, useGetKanbanProjectUsersQuery: Ia } = yt, Ie = yt.injectEndpoints({
|
|
2152
2152
|
endpoints: (t) => ({
|
|
2153
2153
|
getProjectsInfo: t.query({
|
|
2154
2154
|
async queryFn({ projects: e = [], anatomy: s = !0 }, { dispatch: n }) {
|
|
@@ -2170,13 +2170,13 @@ const Cn = (t, e) => {
|
|
|
2170
2170
|
}
|
|
2171
2171
|
return { data: i, meta: void 0, error: void 0 };
|
|
2172
2172
|
} catch (i) {
|
|
2173
|
-
return console.error(i), { error:
|
|
2173
|
+
return console.error(i), { error: L(i) };
|
|
2174
2174
|
}
|
|
2175
2175
|
},
|
|
2176
2176
|
providesTags: (e, s, { projects: n }) => n.map((i) => ({ type: "project", id: i }))
|
|
2177
2177
|
})
|
|
2178
2178
|
})
|
|
2179
|
-
}), { useGetProjectsInfoQuery:
|
|
2179
|
+
}), { useGetProjectsInfoQuery: Ta } = Ie, On = (t, e) => {
|
|
2180
2180
|
const s = {
|
|
2181
2181
|
name: t.name,
|
|
2182
2182
|
attrib: t.attrib,
|
|
@@ -2227,7 +2227,7 @@ const Cn = (t, e) => {
|
|
|
2227
2227
|
const s = t.find((c) => c.entityId === e.id), n = s?.data;
|
|
2228
2228
|
if (!n || s.entityType === "product" || s.entityType === "workfile")
|
|
2229
2229
|
return console.warn("No operation data found or entity type not supported");
|
|
2230
|
-
const i =
|
|
2230
|
+
const i = On(n, s.entityType);
|
|
2231
2231
|
if (s.entityType === "folder" && n.name && e.path) {
|
|
2232
2232
|
const c = e.path.split("/");
|
|
2233
2233
|
c[c.length - 1] = n.name, i.path = c.join("/");
|
|
@@ -2270,7 +2270,7 @@ const Cn = (t, e) => {
|
|
|
2270
2270
|
for (const a of r)
|
|
2271
2271
|
if (a.endpointName === "getEntitiesDetailsPanel") {
|
|
2272
2272
|
const c = s(
|
|
2273
|
-
|
|
2273
|
+
de.util.updateQueryData(
|
|
2274
2274
|
"getEntitiesDetailsPanel",
|
|
2275
2275
|
a.originalArgs,
|
|
2276
2276
|
(d) => {
|
|
@@ -2298,7 +2298,7 @@ const Cn = (t, e) => {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
)
|
|
2300
2300
|
), c];
|
|
2301
|
-
},
|
|
2301
|
+
}, $n = ({
|
|
2302
2302
|
operations: t,
|
|
2303
2303
|
state: e,
|
|
2304
2304
|
dispatch: s,
|
|
@@ -2359,12 +2359,12 @@ const Cn = (t, e) => {
|
|
|
2359
2359
|
if (r === "task") {
|
|
2360
2360
|
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
2361
|
if (b && I) {
|
|
2362
|
-
const [S,
|
|
2362
|
+
const [S, j] = Ye(
|
|
2363
2363
|
{ assignees: m, projects: f },
|
|
2364
2364
|
{ newAssignees: g, taskId: s, data: n },
|
|
2365
2365
|
{ dispatch: a }
|
|
2366
2366
|
);
|
|
2367
|
-
|
|
2367
|
+
j && o.push(S), j || os({ projects: [e], taskIds: [s] }, a).then(
|
|
2368
2368
|
// use .then so that the rest of the code can run
|
|
2369
2369
|
(_) => {
|
|
2370
2370
|
let G = _.find((O) => O.id === s);
|
|
@@ -2378,9 +2378,9 @@ const Cn = (t, e) => {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
const T = [{ type: "task", id: s }];
|
|
2380
2380
|
if (g?.length) {
|
|
2381
|
-
const S = new Set(i),
|
|
2382
|
-
(C) => !
|
|
2383
|
-
), G = [...
|
|
2381
|
+
const S = new Set(i), j = new Set(g), _ = [...S].filter(
|
|
2382
|
+
(C) => !j.has(C)
|
|
2383
|
+
), G = [...j].filter(
|
|
2384
2384
|
(C) => !S.has(C)
|
|
2385
2385
|
), $ = [.../* @__PURE__ */ new Set([..._, ...G])].map((C) => ({
|
|
2386
2386
|
type: "kanban",
|
|
@@ -2398,7 +2398,7 @@ const Cn = (t, e) => {
|
|
|
2398
2398
|
const A = Ie.util.selectInvalidatedBy(u, T).filter((S) => S.endpointName === "GetKanban");
|
|
2399
2399
|
let w = [];
|
|
2400
2400
|
for (const S of A) {
|
|
2401
|
-
const [
|
|
2401
|
+
const [j, _] = Ye(
|
|
2402
2402
|
{
|
|
2403
2403
|
assignees: S.originalArgs.assignees,
|
|
2404
2404
|
projects: S.originalArgs.projects
|
|
@@ -2410,7 +2410,7 @@ const Cn = (t, e) => {
|
|
|
2410
2410
|
},
|
|
2411
2411
|
{ dispatch: a }
|
|
2412
2412
|
);
|
|
2413
|
-
_ ? o.push(
|
|
2413
|
+
_ ? o.push(j) : w.push(S);
|
|
2414
2414
|
}
|
|
2415
2415
|
const E = { projects: f, assignees: m };
|
|
2416
2416
|
w = w.filter(
|
|
@@ -2447,7 +2447,7 @@ const Cn = (t, e) => {
|
|
|
2447
2447
|
a.push(g);
|
|
2448
2448
|
}
|
|
2449
2449
|
let c = [];
|
|
2450
|
-
(s === "task" || s === "folder") && (c =
|
|
2450
|
+
(s === "task" || s === "folder") && (c = $n({ operations: e, state: r, dispatch: n, entityType: s }));
|
|
2451
2451
|
const d = [], u = e.map((p) => ({ ...p, entityId: p.id }));
|
|
2452
2452
|
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
2453
|
me.util.invalidateTags(
|
|
@@ -2457,9 +2457,9 @@ const Cn = (t, e) => {
|
|
|
2457
2457
|
(p) => p.status === "rejected" || !!p.value.error
|
|
2458
2458
|
) ? (n(
|
|
2459
2459
|
me.util.invalidateTags(e.map((p) => ({ type: "kanBanTask", id: p.id })))
|
|
2460
|
-
), c.forEach((p) => p?.undo()), d.forEach((p) => p?.undo()), { error:
|
|
2460
|
+
), c.forEach((p) => p?.undo()), d.forEach((p) => p?.undo()), { error: L("Failed to update some tasks", 400) }) : { data: e };
|
|
2461
2461
|
} catch (r) {
|
|
2462
|
-
return console.error(r), { error:
|
|
2462
|
+
return console.error(r), { error: L(r) };
|
|
2463
2463
|
}
|
|
2464
2464
|
},
|
|
2465
2465
|
invalidatesTags: (e, s, { operations: n, entityType: i }) => {
|
|
@@ -2473,7 +2473,7 @@ const Cn = (t, e) => {
|
|
|
2473
2473
|
})
|
|
2474
2474
|
}),
|
|
2475
2475
|
overrideExisting: !0
|
|
2476
|
-
}), { useUpdateEntitiesMutation:
|
|
2476
|
+
}), { useUpdateEntitiesMutation: ka, useUpdateEntityMutation: Aa } = us, Lt = (t) => [...new Set(t.map((e) => e.entityId).filter(Boolean))], xn = async ({
|
|
2477
2477
|
dispatch: t,
|
|
2478
2478
|
projectName: e,
|
|
2479
2479
|
updatedTaskIds: s,
|
|
@@ -2511,7 +2511,7 @@ const Cn = (t, e) => {
|
|
|
2511
2511
|
} catch (i) {
|
|
2512
2512
|
return console.error("Background entity refetch failed:", i), null;
|
|
2513
2513
|
}
|
|
2514
|
-
},
|
|
2514
|
+
}, Un = async ({
|
|
2515
2515
|
dispatch: t,
|
|
2516
2516
|
projectName: e,
|
|
2517
2517
|
updatedTaskIds: s,
|
|
@@ -2543,8 +2543,8 @@ const Cn = (t, e) => {
|
|
|
2543
2543
|
} catch (i) {
|
|
2544
2544
|
return console.error("Background overview tasks refetch failed:", i), null;
|
|
2545
2545
|
}
|
|
2546
|
-
}, ls = "version",
|
|
2547
|
-
version: { type: ls, list:
|
|
2546
|
+
}, ls = "version", qn = { type: ls, id: "LIST" }, ps = "product", gt = { type: ps, id: "LIST" }, Xe = {
|
|
2547
|
+
version: { type: ls, list: qn },
|
|
2548
2548
|
product: { type: ps, list: gt }
|
|
2549
2549
|
}, W = (t, e) => t ? [
|
|
2550
2550
|
...t.map(
|
|
@@ -2557,26 +2557,26 @@ const Cn = (t, e) => {
|
|
|
2557
2557
|
"product"
|
|
2558
2558
|
);
|
|
2559
2559
|
return [...e, ...s];
|
|
2560
|
-
}, xe = (t) => t ? fs(t.versions) : W(void 0, "version"),
|
|
2560
|
+
}, xe = (t) => t ? fs(t.versions) : W(void 0, "version"), Bn = (t) => t ? fs(Kn(t)) : W(void 0, "version"), Hn = (t) => {
|
|
2561
2561
|
if (!t) return [gt, ...W(void 0, "product")];
|
|
2562
|
-
const e =
|
|
2562
|
+
const e = Jn(t), s = W(e, "product"), n = W(
|
|
2563
2563
|
e.map((i) => i.featuredVersion).filter((i) => !!i),
|
|
2564
2564
|
"version"
|
|
2565
2565
|
);
|
|
2566
2566
|
return [...s, ...n];
|
|
2567
|
-
},
|
|
2567
|
+
}, Wn = (t) => {
|
|
2568
2568
|
if (!t) return [gt, ...W(void 0, "product")];
|
|
2569
2569
|
const e = W(t.products, "product"), s = W(
|
|
2570
2570
|
t.products.map((n) => n.featuredVersion).filter((n) => !!n),
|
|
2571
2571
|
"version"
|
|
2572
2572
|
);
|
|
2573
2573
|
return [...e, ...s];
|
|
2574
|
-
},
|
|
2574
|
+
}, zn = (t) => {
|
|
2575
2575
|
const e = [];
|
|
2576
2576
|
for (const { node: s } of t)
|
|
2577
2577
|
Math.sign(s.version) !== -1 && e.push(s);
|
|
2578
2578
|
return e;
|
|
2579
|
-
},
|
|
2579
|
+
}, Kn = (t) => t ? t.pages.flatMap((e) => e.versions) : [], Jn = (t) => t ? t.pages.flatMap((e) => e.products) : [], ys = (t) => {
|
|
2580
2580
|
const e = R(t.allAttrib), s = t.task ? {
|
|
2581
2581
|
...t.task,
|
|
2582
2582
|
attrib: R(t.task.allAttrib),
|
|
@@ -2596,9 +2596,9 @@ const Cn = (t, e) => {
|
|
|
2596
2596
|
product: n
|
|
2597
2597
|
};
|
|
2598
2598
|
}, jt = (t) => {
|
|
2599
|
-
const e = t.project.versions.pageInfo, n =
|
|
2599
|
+
const e = t.project.versions.pageInfo, n = zn(t.project.versions.edges).map((i) => ys(i));
|
|
2600
2600
|
return { pageInfo: e, versions: n };
|
|
2601
|
-
},
|
|
2601
|
+
}, Yn = (t) => t.featuredVersion ? ys({
|
|
2602
2602
|
...t.featuredVersion,
|
|
2603
2603
|
product: {
|
|
2604
2604
|
id: t.id,
|
|
@@ -2609,7 +2609,7 @@ const Cn = (t, e) => {
|
|
|
2609
2609
|
allAttrib: t.folder.allAttrib
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
}) : null,
|
|
2612
|
+
}) : null, Xn = (t) => {
|
|
2613
2613
|
const e = t.project.products.pageInfo, s = t.project.products.edges.map((n) => {
|
|
2614
2614
|
const i = n.node, r = R(i.allAttrib), a = {
|
|
2615
2615
|
...i.folder,
|
|
@@ -2623,7 +2623,7 @@ const Cn = (t, e) => {
|
|
|
2623
2623
|
attrib: r,
|
|
2624
2624
|
folder: a,
|
|
2625
2625
|
versions: d,
|
|
2626
|
-
featuredVersion:
|
|
2626
|
+
featuredVersion: Yn(i)
|
|
2627
2627
|
};
|
|
2628
2628
|
});
|
|
2629
2629
|
return { pageInfo: e, products: s };
|
|
@@ -2650,7 +2650,7 @@ function gs(t, e, s, n) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
return t.length;
|
|
2652
2652
|
}
|
|
2653
|
-
function
|
|
2653
|
+
function Zn(t, e, s, n, i, r) {
|
|
2654
2654
|
for (const a of t) {
|
|
2655
2655
|
const c = a[n], d = c.findIndex((u) => u.id === e);
|
|
2656
2656
|
if (d !== -1) {
|
|
@@ -2681,7 +2681,7 @@ function Qe(t, e, s, n, i, r = !0) {
|
|
|
2681
2681
|
const a = gs(t, e, n, i);
|
|
2682
2682
|
return t.splice(a, 0, e), !0;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function ei(t, e, s, n, i) {
|
|
2685
2685
|
if (s)
|
|
2686
2686
|
for (const r of t)
|
|
2687
2687
|
Qe(r.versions, e, !0, n, i, !1);
|
|
@@ -2707,8 +2707,8 @@ const z = Q.enhanceEndpoints({
|
|
|
2707
2707
|
},
|
|
2708
2708
|
// used by getProductsInfinite only
|
|
2709
2709
|
GetProducts: {
|
|
2710
|
-
transformResponse:
|
|
2711
|
-
providesTags:
|
|
2710
|
+
transformResponse: Xn,
|
|
2711
|
+
providesTags: Wn,
|
|
2712
2712
|
keepUnusedDataFor: K
|
|
2713
2713
|
},
|
|
2714
2714
|
// footer stats: `targets` excluded from cache key + responses merged,
|
|
@@ -2730,7 +2730,7 @@ const z = Q.enhanceEndpoints({
|
|
|
2730
2730
|
keepUnusedDataFor: K
|
|
2731
2731
|
}
|
|
2732
2732
|
}
|
|
2733
|
-
}), ae = 250, _t = 1e3,
|
|
2733
|
+
}), ae = 250, _t = 1e3, ti = 10, si = ["status", "tags"];
|
|
2734
2734
|
function Fe(t, e, s) {
|
|
2735
2735
|
const i = U(
|
|
2736
2736
|
async (a, c) => {
|
|
@@ -2749,7 +2749,7 @@ function Fe(t, e, s) {
|
|
|
2749
2749
|
o.add(g);
|
|
2750
2750
|
continue;
|
|
2751
2751
|
}
|
|
2752
|
-
const I =
|
|
2752
|
+
const I = pe(b, h.summary, si);
|
|
2753
2753
|
if (!I) {
|
|
2754
2754
|
l.add(g);
|
|
2755
2755
|
continue;
|
|
@@ -2851,10 +2851,10 @@ const N = z.injectEndpoints({
|
|
|
2851
2851
|
data: o.data || l
|
|
2852
2852
|
};
|
|
2853
2853
|
} catch (i) {
|
|
2854
|
-
return console.error("Error in getVersionsInfiniteQuery queryFn:", i), { error:
|
|
2854
|
+
return console.error("Error in getVersionsInfiniteQuery queryFn:", i), { error: L(i) };
|
|
2855
2855
|
}
|
|
2856
2856
|
},
|
|
2857
|
-
providesTags:
|
|
2857
|
+
providesTags: Bn,
|
|
2858
2858
|
// Subscribes to version entity changes and updates cache accordingly
|
|
2859
2859
|
// Handles: create, update, delete operations
|
|
2860
2860
|
onCacheEntryAdded: async (e, { getCacheEntry: s, updateCachedData: n, cacheEntryRemoved: i, dispatch: r }) => {
|
|
@@ -2921,7 +2921,7 @@ const N = z.injectEndpoints({
|
|
|
2921
2921
|
}
|
|
2922
2922
|
if (p)
|
|
2923
2923
|
for (const g of p)
|
|
2924
|
-
|
|
2924
|
+
ei(
|
|
2925
2925
|
y.pages,
|
|
2926
2926
|
g,
|
|
2927
2927
|
e.latestPerFolder === !0 && f?.has(g.id) === !0,
|
|
@@ -2969,7 +2969,7 @@ const N = z.injectEndpoints({
|
|
|
2969
2969
|
if (!h.data) continue;
|
|
2970
2970
|
o.push(...h.data.versions);
|
|
2971
2971
|
let g = h.data.pageInfo, m = 1;
|
|
2972
|
-
for (; g && m <
|
|
2972
|
+
for (; g && m < ti; ) {
|
|
2973
2973
|
const v = r ? g.hasPreviousPage : g.hasNextPage, b = g.endCursor;
|
|
2974
2974
|
if (!v || !b) break;
|
|
2975
2975
|
const I = await c(y, b);
|
|
@@ -3102,10 +3102,10 @@ const N = z.injectEndpoints({
|
|
|
3102
3102
|
data: i.data || l
|
|
3103
3103
|
};
|
|
3104
3104
|
} catch (r) {
|
|
3105
|
-
return console.error("Error in getProductsInfiniteQuery queryFn:", r), { error:
|
|
3105
|
+
return console.error("Error in getProductsInfiniteQuery queryFn:", r), { error: L(r) };
|
|
3106
3106
|
}
|
|
3107
3107
|
},
|
|
3108
|
-
providesTags:
|
|
3108
|
+
providesTags: Hn,
|
|
3109
3109
|
// Subscribes to product entity changes and updates cache accordingly
|
|
3110
3110
|
// Handles: create, update, delete operations
|
|
3111
3111
|
// Often triggered together with version changes (new product + version)
|
|
@@ -3145,7 +3145,7 @@ const N = z.injectEndpoints({
|
|
|
3145
3145
|
(g.data?.products || []).map((b) => [b.id, b])
|
|
3146
3146
|
);
|
|
3147
3147
|
f.forEach((b) => {
|
|
3148
|
-
|
|
3148
|
+
Zn(
|
|
3149
3149
|
m.pages,
|
|
3150
3150
|
b,
|
|
3151
3151
|
v.get(b),
|
|
@@ -3292,7 +3292,7 @@ const N = z.injectEndpoints({
|
|
|
3292
3292
|
}
|
|
3293
3293
|
};
|
|
3294
3294
|
} catch (v) {
|
|
3295
|
-
return console.error("Error in getGroupedVersionsList queryFn:", v), { error:
|
|
3295
|
+
return console.error("Error in getGroupedVersionsList queryFn:", v), { error: L(v) };
|
|
3296
3296
|
}
|
|
3297
3297
|
},
|
|
3298
3298
|
providesTags: xe,
|
|
@@ -3367,14 +3367,14 @@ const N = z.injectEndpoints({
|
|
|
3367
3367
|
})
|
|
3368
3368
|
})
|
|
3369
3369
|
}), {
|
|
3370
|
-
useGetVersionsQuery:
|
|
3371
|
-
useGetProductsColumnStatsQuery:
|
|
3372
|
-
useGetVersionsColumnStatsQuery:
|
|
3370
|
+
useGetVersionsQuery: wa,
|
|
3371
|
+
useGetProductsColumnStatsQuery: Ea,
|
|
3372
|
+
useGetVersionsColumnStatsQuery: Sa
|
|
3373
3373
|
} = z, {
|
|
3374
|
-
useGetVersionsInfiniteInfiniteQuery:
|
|
3375
|
-
useGetVersionsByProductsQuery:
|
|
3376
|
-
useGetProductsInfiniteInfiniteQuery:
|
|
3377
|
-
useGetGroupedVersionsListQuery:
|
|
3374
|
+
useGetVersionsInfiniteInfiniteQuery: Pa,
|
|
3375
|
+
useGetVersionsByProductsQuery: La,
|
|
3376
|
+
useGetProductsInfiniteInfiniteQuery: ja,
|
|
3377
|
+
useGetGroupedVersionsListQuery: Fa
|
|
3378
3378
|
} = N, Rt = (t) => [
|
|
3379
3379
|
{ type: "version", id: "LIST" },
|
|
3380
3380
|
...t.map((e) => ({ type: "version", id: e.entityId }))
|
|
@@ -3405,7 +3405,7 @@ const N = z.injectEndpoints({
|
|
|
3405
3405
|
const i = e.get(n.id);
|
|
3406
3406
|
i && hs(n, i);
|
|
3407
3407
|
});
|
|
3408
|
-
},
|
|
3408
|
+
}, ni = (t, {
|
|
3409
3409
|
state: e,
|
|
3410
3410
|
dispatch: s
|
|
3411
3411
|
}, n) => {
|
|
@@ -3463,7 +3463,7 @@ const N = z.injectEndpoints({
|
|
|
3463
3463
|
);
|
|
3464
3464
|
n?.push(c);
|
|
3465
3465
|
}
|
|
3466
|
-
},
|
|
3466
|
+
}, ii = (t, {
|
|
3467
3467
|
state: e,
|
|
3468
3468
|
dispatch: s
|
|
3469
3469
|
}, n) => {
|
|
@@ -3559,7 +3559,7 @@ const N = z.injectEndpoints({
|
|
|
3559
3559
|
}, Nt = (t) => [
|
|
3560
3560
|
{ type: "product", id: "LIST" },
|
|
3561
3561
|
...t.map((e) => ({ type: "product", id: e.entityId }))
|
|
3562
|
-
],
|
|
3562
|
+
], ri = (t, e) => {
|
|
3563
3563
|
const s = { ...t };
|
|
3564
3564
|
return Object.keys(e).forEach((n) => {
|
|
3565
3565
|
n !== "attrib" && e[n] !== void 0 && (s[n] = e[n]);
|
|
@@ -3567,7 +3567,7 @@ const N = z.injectEndpoints({
|
|
|
3567
3567
|
...s.attrib,
|
|
3568
3568
|
...e.attrib
|
|
3569
3569
|
}), s;
|
|
3570
|
-
},
|
|
3570
|
+
}, ai = (t, {
|
|
3571
3571
|
state: e,
|
|
3572
3572
|
dispatch: s
|
|
3573
3573
|
}, n) => {
|
|
@@ -3590,7 +3590,7 @@ const N = z.injectEndpoints({
|
|
|
3590
3590
|
const y = p.products[f], h = t.find(
|
|
3591
3591
|
(g) => g.entityId === y.id && g.type !== "delete"
|
|
3592
3592
|
);
|
|
3593
|
-
h?.data && (p.products[f] =
|
|
3593
|
+
h?.data && (p.products[f] = ri(y, h.data));
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
}
|
|
@@ -3642,7 +3642,7 @@ const N = z.injectEndpoints({
|
|
|
3642
3642
|
t.links = t.links.filter((i) => i.id !== n);
|
|
3643
3643
|
});
|
|
3644
3644
|
}
|
|
3645
|
-
},
|
|
3645
|
+
}, oi = (t) => [
|
|
3646
3646
|
{ type: "overviewTask", id: "LIST" },
|
|
3647
3647
|
...t.map((e) => ({ type: "overviewTask", id: e.entityId })),
|
|
3648
3648
|
// we also add the projectName so that tasks that do not exist in the cache can still invalidate
|
|
@@ -3650,21 +3650,21 @@ const N = z.injectEndpoints({
|
|
|
3650
3650
|
type: "overviewTask",
|
|
3651
3651
|
id: e.data?.projectName
|
|
3652
3652
|
}))
|
|
3653
|
-
],
|
|
3653
|
+
], ci = (t) => [
|
|
3654
3654
|
...t.map((e) => ({ type: "folder", id: e.entityId })),
|
|
3655
3655
|
// we also add the projectName so that tasks that do not exist in the cache can still invalidate
|
|
3656
3656
|
...t.filter((e) => e.data?.projectName).map((e) => ({
|
|
3657
3657
|
type: "folder",
|
|
3658
3658
|
id: e.data?.projectName
|
|
3659
3659
|
}))
|
|
3660
|
-
],
|
|
3660
|
+
], di = (t, e, s) => ({
|
|
3661
3661
|
entityId: t,
|
|
3662
3662
|
entityType: e,
|
|
3663
3663
|
type: "update",
|
|
3664
3664
|
data: { deleteLinks: s }
|
|
3665
|
-
}),
|
|
3666
|
-
(s) =>
|
|
3667
|
-
),
|
|
3665
|
+
}), _a = (t, e) => t.map(
|
|
3666
|
+
(s) => di(s.entityId, s.entityType, e)
|
|
3667
|
+
), Ra = (t, {
|
|
3668
3668
|
state: e,
|
|
3669
3669
|
dispatch: s
|
|
3670
3670
|
}, n) => {
|
|
@@ -3674,7 +3674,7 @@ const N = z.injectEndpoints({
|
|
|
3674
3674
|
state: e,
|
|
3675
3675
|
dispatch: s
|
|
3676
3676
|
}, n) => {
|
|
3677
|
-
const i =
|
|
3677
|
+
const i = oi(t), r = x.util.selectInvalidatedBy(e, i), a = new Set(
|
|
3678
3678
|
t.filter((d) => d.type === "delete" && d.entityId).map((d) => d.entityId)
|
|
3679
3679
|
), c = (d) => {
|
|
3680
3680
|
for (let u = d.length - 1; u >= 0; u--)
|
|
@@ -3734,7 +3734,7 @@ const N = z.injectEndpoints({
|
|
|
3734
3734
|
state: e,
|
|
3735
3735
|
dispatch: s
|
|
3736
3736
|
}, n) => {
|
|
3737
|
-
const i = $e.util.selectInvalidatedBy(e,
|
|
3737
|
+
const i = $e.util.selectInvalidatedBy(e, ci(t)).filter((a) => a.endpointName === "getFolderList"), r = new Set(
|
|
3738
3738
|
t.filter((a) => a.type === "delete" && a.entityId).map((a) => a.entityId)
|
|
3739
3739
|
);
|
|
3740
3740
|
for (const a of i) {
|
|
@@ -3762,7 +3762,7 @@ const N = z.injectEndpoints({
|
|
|
3762
3762
|
);
|
|
3763
3763
|
n?.push(c);
|
|
3764
3764
|
}
|
|
3765
|
-
},
|
|
3765
|
+
}, ui = (t, {
|
|
3766
3766
|
state: e,
|
|
3767
3767
|
dispatch: s
|
|
3768
3768
|
}, n) => {
|
|
@@ -3802,21 +3802,21 @@ const N = z.injectEndpoints({
|
|
|
3802
3802
|
endpoints: {
|
|
3803
3803
|
operations: {}
|
|
3804
3804
|
}
|
|
3805
|
-
}),
|
|
3805
|
+
}), li = Vt.injectEndpoints({
|
|
3806
3806
|
endpoints: (t) => ({
|
|
3807
3807
|
updateOverviewEntities: t.mutation({
|
|
3808
3808
|
async queryFn(e, { dispatch: s }) {
|
|
3809
3809
|
try {
|
|
3810
3810
|
const n = await s(Vt.endpoints.operations.initiate(e));
|
|
3811
3811
|
if (n.error)
|
|
3812
|
-
return { error:
|
|
3812
|
+
return { error: L(n.error) };
|
|
3813
3813
|
const i = n.data, r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
3814
3814
|
for (const c of i?.operations || [])
|
|
3815
3815
|
c.success === !1 && c.detail && (r.has(c.detail) || r.add(c.detail), a.has(c.errorCode) || a.add(c.errorCode));
|
|
3816
3816
|
if (r.size > 0) {
|
|
3817
3817
|
const c = Array.from(r).join(", ");
|
|
3818
3818
|
return {
|
|
3819
|
-
error:
|
|
3819
|
+
error: L({
|
|
3820
3820
|
status: 400,
|
|
3821
3821
|
data: {
|
|
3822
3822
|
code: 400,
|
|
@@ -3828,7 +3828,7 @@ const N = z.injectEndpoints({
|
|
|
3828
3828
|
} else
|
|
3829
3829
|
return { data: i };
|
|
3830
3830
|
} catch (n) {
|
|
3831
|
-
return console.error(n), { error:
|
|
3831
|
+
return console.error(n), { error: L(n) };
|
|
3832
3832
|
}
|
|
3833
3833
|
},
|
|
3834
3834
|
async onQueryStarted({ operationsRequestModel: e, patchOperations: s = [], projectName: n }, { dispatch: i, queryFulfilled: r, getState: a }) {
|
|
@@ -3857,28 +3857,28 @@ const N = z.injectEndpoints({
|
|
|
3857
3857
|
qe([...I, ...v], { state: u, dispatch: i }, o);
|
|
3858
3858
|
}
|
|
3859
3859
|
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),
|
|
3860
|
+
l.length && Ee(l, { state: u, dispatch: i }, o), p.length && qe(p, { state: u, dispatch: i }, o), ni(
|
|
3861
3861
|
[...c, ...s],
|
|
3862
3862
|
{ state: u, dispatch: i },
|
|
3863
3863
|
o
|
|
3864
|
-
),
|
|
3864
|
+
), ui([...c, ...s], { state: u, dispatch: i }, o), d.version?.length && ii(d.version, { state: u, dispatch: i }, o), d.product?.length && ai(d.product, { state: u, dispatch: i }, o);
|
|
3865
3865
|
const f = c.map((v) => ({
|
|
3866
3866
|
id: v.entityId,
|
|
3867
3867
|
type: v.entityType
|
|
3868
3868
|
})), y = f.map((v) => ({
|
|
3869
3869
|
type: "entities",
|
|
3870
3870
|
id: v.id
|
|
3871
|
-
})), h = () => i(
|
|
3871
|
+
})), h = () => i(de.util.invalidateTags(y)), g = de.util.selectInvalidatedBy(
|
|
3872
3872
|
u,
|
|
3873
3873
|
f
|
|
3874
|
-
), m =
|
|
3874
|
+
), m = de.util.selectInvalidatedBy(
|
|
3875
3875
|
u,
|
|
3876
3876
|
y
|
|
3877
3877
|
);
|
|
3878
3878
|
for (const v of m) {
|
|
3879
3879
|
if (v.endpointName !== "getEntitiesDetailsPanel") continue;
|
|
3880
3880
|
const b = i(
|
|
3881
|
-
|
|
3881
|
+
de.util.updateQueryData(
|
|
3882
3882
|
v.endpointName,
|
|
3883
3883
|
v.originalArgs,
|
|
3884
3884
|
(I) => {
|
|
@@ -3905,7 +3905,7 @@ const N = z.injectEndpoints({
|
|
|
3905
3905
|
const T = Lt(v), A = Lt(b), w = T.map((P) => ({ type: "overviewTask", id: P })), E = x.util.selectInvalidatedBy(u, w).filter((P) => P.endpointName === "getTasksListInfinite");
|
|
3906
3906
|
if (T.length > 0 && n) {
|
|
3907
3907
|
for (const S of E)
|
|
3908
|
-
await
|
|
3908
|
+
await xn({
|
|
3909
3909
|
dispatch: i,
|
|
3910
3910
|
projectName: n,
|
|
3911
3911
|
updatedTaskIds: T,
|
|
@@ -3913,7 +3913,7 @@ const N = z.injectEndpoints({
|
|
|
3913
3913
|
});
|
|
3914
3914
|
const P = x.util.selectInvalidatedBy(u, w).filter((S) => S.endpointName === "getOverviewTasksByFolders");
|
|
3915
3915
|
for (const S of P)
|
|
3916
|
-
await
|
|
3916
|
+
await Un({
|
|
3917
3917
|
dispatch: i,
|
|
3918
3918
|
projectName: n,
|
|
3919
3919
|
updatedTaskIds: T,
|
|
@@ -3952,7 +3952,7 @@ const N = z.injectEndpoints({
|
|
|
3952
3952
|
}
|
|
3953
3953
|
})
|
|
3954
3954
|
})
|
|
3955
|
-
}), { useUpdateOverviewEntitiesMutation:
|
|
3955
|
+
}), { useUpdateOverviewEntitiesMutation: Ga } = li, Dt = (t) => {
|
|
3956
3956
|
if (t)
|
|
3957
3957
|
return t.label;
|
|
3958
3958
|
}, Ot = {
|
|
@@ -3969,7 +3969,7 @@ const N = z.injectEndpoints({
|
|
|
3969
3969
|
version: "versions",
|
|
3970
3970
|
representation: "representations",
|
|
3971
3971
|
workfile: "workfiles"
|
|
3972
|
-
},
|
|
3972
|
+
}, le = pt.injectEndpoints({
|
|
3973
3973
|
endpoints: (t) => ({
|
|
3974
3974
|
getEntityLinks: t.query({
|
|
3975
3975
|
queryFn: async ({ projectName: e, entityIds: s, entityType: n }, { getState: i, dispatch: r, queryCacheKey: a, forced: c }) => {
|
|
@@ -4015,7 +4015,7 @@ const N = z.injectEndpoints({
|
|
|
4015
4015
|
};
|
|
4016
4016
|
}) || [] };
|
|
4017
4017
|
} catch (d) {
|
|
4018
|
-
return console.error(`Error in getEntityLinks queryFn for ${n}:`, d), es.error(`Error fetching ${n} links`), { error:
|
|
4018
|
+
return console.error(`Error in getEntityLinks queryFn for ${n}:`, d), es.error(`Error fetching ${n} links`), { error: L(d) };
|
|
4019
4019
|
}
|
|
4020
4020
|
},
|
|
4021
4021
|
// 2. We should not create new caches when the entityIds argument changes.
|
|
@@ -4104,7 +4104,7 @@ const N = z.injectEndpoints({
|
|
|
4104
4104
|
}
|
|
4105
4105
|
})
|
|
4106
4106
|
})
|
|
4107
|
-
}), { useGetEntityLinksQuery:
|
|
4107
|
+
}), { useGetEntityLinksQuery: Ca } = le, ne = 10, xt = (t) => {
|
|
4108
4108
|
if (!t) return {};
|
|
4109
4109
|
try {
|
|
4110
4110
|
return typeof t != "string" ? t ?? {} : JSON.parse(t);
|
|
@@ -4173,7 +4173,7 @@ const N = z.injectEndpoints({
|
|
|
4173
4173
|
}, a = await n.dispatch(
|
|
4174
4174
|
Re.endpoints.GetLists.initiate(r, { forceRefetch: !0 })
|
|
4175
4175
|
);
|
|
4176
|
-
return a.error ? { error:
|
|
4176
|
+
return a.error ? { error: L(a.error) } : {
|
|
4177
4177
|
data: a.data || {
|
|
4178
4178
|
lists: [],
|
|
4179
4179
|
pageInfo: {
|
|
@@ -4185,7 +4185,7 @@ const N = z.injectEndpoints({
|
|
|
4185
4185
|
}
|
|
4186
4186
|
};
|
|
4187
4187
|
} catch (i) {
|
|
4188
|
-
return console.error("Error in getListsInfinite queryFn:", i), { error:
|
|
4188
|
+
return console.error("Error in getListsInfinite queryFn:", i), { error: L(i) };
|
|
4189
4189
|
}
|
|
4190
4190
|
},
|
|
4191
4191
|
providesTags: (e) => {
|
|
@@ -4283,7 +4283,7 @@ const N = z.injectEndpoints({
|
|
|
4283
4283
|
forceRefetch: !0
|
|
4284
4284
|
})
|
|
4285
4285
|
);
|
|
4286
|
-
return u.error ? { error:
|
|
4286
|
+
return u.error ? { error: L(u.error) } : {
|
|
4287
4287
|
data: u.data || {
|
|
4288
4288
|
items: [],
|
|
4289
4289
|
pageInfo: {
|
|
@@ -4295,7 +4295,7 @@ const N = z.injectEndpoints({
|
|
|
4295
4295
|
}
|
|
4296
4296
|
};
|
|
4297
4297
|
} catch (i) {
|
|
4298
|
-
return console.error("Error in getListsInfinite queryFn:", i), { error:
|
|
4298
|
+
return console.error("Error in getListsInfinite queryFn:", i), { error: L(i) };
|
|
4299
4299
|
}
|
|
4300
4300
|
},
|
|
4301
4301
|
providesTags: (e, s, { listId: n, projectName: i }) => [
|
|
@@ -4377,7 +4377,7 @@ const N = z.injectEndpoints({
|
|
|
4377
4377
|
forceRefetch: !0
|
|
4378
4378
|
})
|
|
4379
4379
|
);
|
|
4380
|
-
return a.error ? { error:
|
|
4380
|
+
return a.error ? { error: L(a.error) } : {
|
|
4381
4381
|
data: a.data || {
|
|
4382
4382
|
lists: [],
|
|
4383
4383
|
pageInfo: {
|
|
@@ -4389,7 +4389,7 @@ const N = z.injectEndpoints({
|
|
|
4389
4389
|
}
|
|
4390
4390
|
};
|
|
4391
4391
|
} catch (i) {
|
|
4392
|
-
return console.error("Error in getListsInfinite queryFn:", i), { error:
|
|
4392
|
+
return console.error("Error in getListsInfinite queryFn:", i), { error: L(i) };
|
|
4393
4393
|
}
|
|
4394
4394
|
},
|
|
4395
4395
|
providesTags: (e) => [
|
|
@@ -4402,7 +4402,7 @@ const N = z.injectEndpoints({
|
|
|
4402
4402
|
keepUnusedDataFor: ne
|
|
4403
4403
|
})
|
|
4404
4404
|
})
|
|
4405
|
-
}),
|
|
4405
|
+
}), pi = ue.enhanceEndpoints({
|
|
4406
4406
|
endpoints: {
|
|
4407
4407
|
getEntityList: {
|
|
4408
4408
|
providesTags: (t, e, { listId: s, projectName: n }) => [
|
|
@@ -4420,12 +4420,12 @@ const N = z.injectEndpoints({
|
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
4422
|
}), {
|
|
4423
|
-
useGetListsInfiniteInfiniteQuery:
|
|
4424
|
-
useGetListItemsInfiniteInfiniteQuery:
|
|
4425
|
-
useGetListsItemsForReviewSessionInfiniteQuery:
|
|
4426
|
-
useLazyGetListsItemsForReviewSessionQuery:
|
|
4427
|
-
useLazyGetListItemsQuery:
|
|
4428
|
-
} = q, { useGetEntityListQuery:
|
|
4423
|
+
useGetListsInfiniteInfiniteQuery: Na,
|
|
4424
|
+
useGetListItemsInfiniteInfiniteQuery: Qa,
|
|
4425
|
+
useGetListsItemsForReviewSessionInfiniteQuery: Ma,
|
|
4426
|
+
useLazyGetListsItemsForReviewSessionQuery: Va,
|
|
4427
|
+
useLazyGetListItemsQuery: Da
|
|
4428
|
+
} = q, { useGetEntityListQuery: Oa } = pi, fi = ue.enhanceEndpoints({
|
|
4429
4429
|
endpoints: {
|
|
4430
4430
|
// LIST MUTATIONS
|
|
4431
4431
|
createEntityList: {
|
|
@@ -4450,10 +4450,10 @@ const N = z.injectEndpoints({
|
|
|
4450
4450
|
);
|
|
4451
4451
|
d.push(l);
|
|
4452
4452
|
}
|
|
4453
|
-
const u =
|
|
4453
|
+
const u = ue.util.selectInvalidatedBy(r, a).filter((o) => o.endpointName === "getEntityList" && o.originalArgs.listId === t);
|
|
4454
4454
|
for (const o of u) {
|
|
4455
4455
|
const l = s(
|
|
4456
|
-
|
|
4456
|
+
ue.util.updateQueryData("getEntityList", o.originalArgs, (p) => {
|
|
4457
4457
|
Object.assign(p, {
|
|
4458
4458
|
...p,
|
|
4459
4459
|
...e
|
|
@@ -4608,7 +4608,7 @@ const N = z.injectEndpoints({
|
|
|
4608
4608
|
]
|
|
4609
4609
|
}
|
|
4610
4610
|
}
|
|
4611
|
-
}),
|
|
4611
|
+
}), yi = fi.injectEndpoints({
|
|
4612
4612
|
endpoints: (t) => ({
|
|
4613
4613
|
createSessionFromList: t.mutation({
|
|
4614
4614
|
query: (e) => ({
|
|
@@ -4621,21 +4621,21 @@ const N = z.injectEndpoints({
|
|
|
4621
4621
|
})
|
|
4622
4622
|
}), {
|
|
4623
4623
|
// LIST MUTATIONS
|
|
4624
|
-
useCreateEntityListMutation:
|
|
4625
|
-
useUpdateEntityListMutation:
|
|
4626
|
-
useDeleteEntityListMutation:
|
|
4624
|
+
useCreateEntityListMutation: $a,
|
|
4625
|
+
useUpdateEntityListMutation: xa,
|
|
4626
|
+
useDeleteEntityListMutation: Ua,
|
|
4627
4627
|
// LIST ITEM MUTATIONS
|
|
4628
|
-
useUpdateEntityListItemsMutation:
|
|
4629
|
-
useUpdateEntityListItemMutation:
|
|
4630
|
-
useCreateEntityListItemMutation:
|
|
4631
|
-
useDeleteEntityListItemMutation:
|
|
4628
|
+
useUpdateEntityListItemsMutation: qa,
|
|
4629
|
+
useUpdateEntityListItemMutation: Ba,
|
|
4630
|
+
useCreateEntityListItemMutation: Ha,
|
|
4631
|
+
useDeleteEntityListItemMutation: Wa,
|
|
4632
4632
|
// REVIEW SESSION MUTATIONS
|
|
4633
|
-
useCreateSessionFromListMutation:
|
|
4634
|
-
} =
|
|
4633
|
+
useCreateSessionFromListMutation: za
|
|
4634
|
+
} = yi, qt = 5, Te = (t) => (t || "").replace(/-/g, ""), gi = (t, e, s) => {
|
|
4635
4635
|
Array.isArray(t.latestComments) || (t.latestComments = []);
|
|
4636
4636
|
const n = t.latestComments, i = Te(e.activityId), r = n.findIndex((a) => Te(a.activityId) === i);
|
|
4637
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 > qt && n.splice(qt));
|
|
4638
|
-
},
|
|
4638
|
+
}, hi = [
|
|
4639
4639
|
{
|
|
4640
4640
|
api: x,
|
|
4641
4641
|
tag: "overviewTask",
|
|
@@ -4662,7 +4662,7 @@ const N = z.injectEndpoints({
|
|
|
4662
4662
|
getProductsInfinite: (t) => (t?.pages?.flatMap((e) => e.products ?? []) ?? []).map((e) => e.featuredVersion).filter(Boolean)
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
|
-
],
|
|
4665
|
+
], mi = (t, { dispatch: e, getState: s }, n) => {
|
|
4666
4666
|
const { patch: i } = t, r = t.entityId ?? i?.entityId, a = i?.activityId ?? t.activityId;
|
|
4667
4667
|
if (!r || !a) return [];
|
|
4668
4668
|
if (n === "create" && !(i?.activityType === "comment" && i?.referenceType === "origin"))
|
|
@@ -4675,7 +4675,7 @@ const N = z.injectEndpoints({
|
|
|
4675
4675
|
author: i?.authorName ?? null,
|
|
4676
4676
|
createdAt: i?.createdAt ?? ""
|
|
4677
4677
|
}, d = s(), u = Te(r), o = [];
|
|
4678
|
-
for (const { api: l, tag: p, selectors: f } of
|
|
4678
|
+
for (const { api: l, tag: p, selectors: f } of hi) {
|
|
4679
4679
|
const y = l.util.selectInvalidatedBy(d, [{ type: p, id: r }]);
|
|
4680
4680
|
for (const { endpointName: h, originalArgs: g } of y) {
|
|
4681
4681
|
const m = f[h];
|
|
@@ -4683,14 +4683,14 @@ const N = z.injectEndpoints({
|
|
|
4683
4683
|
e(
|
|
4684
4684
|
l.util.updateQueryData(h, g, (v) => {
|
|
4685
4685
|
for (const b of m(v))
|
|
4686
|
-
(Te(b?.id) === u || Te(b?.entityId) === u) &&
|
|
4686
|
+
(Te(b?.id) === u || Te(b?.entityId) === u) && gi(b, c, n);
|
|
4687
4687
|
})
|
|
4688
4688
|
)
|
|
4689
4689
|
);
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
4692
4692
|
return o;
|
|
4693
|
-
},
|
|
4693
|
+
}, vi = (t) => t ? t.includes("* [ ]") || t.includes("* [x]") : !1, bi = async (t, {
|
|
4694
4694
|
updateCachedData: e,
|
|
4695
4695
|
cacheDataLoaded: s,
|
|
4696
4696
|
cacheEntryRemoved: n,
|
|
@@ -4741,8 +4741,8 @@ const N = z.injectEndpoints({
|
|
|
4741
4741
|
);
|
|
4742
4742
|
e((E) => {
|
|
4743
4743
|
w.forEach((P, S) => {
|
|
4744
|
-
const
|
|
4745
|
-
if (P.activityType === "comment" &&
|
|
4744
|
+
const j = [P.activityType];
|
|
4745
|
+
if (P.activityType === "comment" && vi(P.body || "") && j.push("checklist"), h.length > 0 && !h.some(($) => j.includes($)))
|
|
4746
4746
|
return;
|
|
4747
4747
|
let _ = !1;
|
|
4748
4748
|
if (E.pages?.forEach(($) => {
|
|
@@ -4812,7 +4812,7 @@ const N = z.injectEndpoints({
|
|
|
4812
4812
|
transformResponse: (t) => mt(t.project.activities.edges, t.project.activities.pageInfo)
|
|
4813
4813
|
},
|
|
4814
4814
|
GetEntitiesChecklists: {
|
|
4815
|
-
transformResponse: (t) =>
|
|
4815
|
+
transformResponse: (t) => on(t),
|
|
4816
4816
|
providesTags: (t, e, { entityIds: s }) => t ? [
|
|
4817
4817
|
{ type: "activity", id: "LIST" },
|
|
4818
4818
|
...t.ids.map((n) => ({ type: "activity", id: "checklist-" + n })),
|
|
@@ -4827,7 +4827,7 @@ const N = z.injectEndpoints({
|
|
|
4827
4827
|
providesTags: (t) => t?.length ? [{ type: "user", id: "LIST" }, ...t.map(({ name: e }) => ({ type: "user", id: e }))] : [{ type: "user", id: "LIST" }]
|
|
4828
4828
|
}
|
|
4829
4829
|
}
|
|
4830
|
-
}), Bt = 30,
|
|
4830
|
+
}), Bt = 30, ye = tt.injectEndpoints({
|
|
4831
4831
|
endpoints: (t) => ({
|
|
4832
4832
|
getActivitiesInfinite: t.infiniteQuery({
|
|
4833
4833
|
infiniteQueryOptions: {
|
|
@@ -4867,11 +4867,11 @@ const N = z.injectEndpoints({
|
|
|
4867
4867
|
data: c.data || d
|
|
4868
4868
|
};
|
|
4869
4869
|
} catch (i) {
|
|
4870
|
-
return console.error("Error in getActivitiesInfinite queryFn:", i), { error:
|
|
4870
|
+
return console.error("Error in getActivitiesInfinite queryFn:", i), { error: L(i) };
|
|
4871
4871
|
}
|
|
4872
4872
|
},
|
|
4873
4873
|
async onCacheEntryAdded(e, { updateCachedData: s, cacheDataLoaded: n, cacheEntryRemoved: i, dispatch: r, getCacheEntry: a }) {
|
|
4874
|
-
await
|
|
4874
|
+
await bi(e, {
|
|
4875
4875
|
updateCachedData: s,
|
|
4876
4876
|
cacheDataLoaded: n,
|
|
4877
4877
|
cacheEntryRemoved: i,
|
|
@@ -4888,24 +4888,24 @@ const N = z.injectEndpoints({
|
|
|
4888
4888
|
url: "/graphql",
|
|
4889
4889
|
method: "POST",
|
|
4890
4890
|
body: {
|
|
4891
|
-
query:
|
|
4891
|
+
query: un(n),
|
|
4892
4892
|
variables: { projectName: e, entityId: s }
|
|
4893
4893
|
}
|
|
4894
4894
|
}),
|
|
4895
|
-
transformResponse: (e, s, { entityType: n }) =>
|
|
4896
|
-
providesTags: (e, s, { entityType: n }) =>
|
|
4895
|
+
transformResponse: (e, s, { entityType: n }) => an(e?.data?.project, n),
|
|
4896
|
+
providesTags: (e, s, { entityType: n }) => cn([e], "task", n)
|
|
4897
4897
|
})
|
|
4898
4898
|
}),
|
|
4899
4899
|
overrideExisting: !0
|
|
4900
4900
|
}), {
|
|
4901
|
-
useGetEntityTooltipQuery:
|
|
4902
|
-
useGetActivitiesByIdQuery:
|
|
4903
|
-
useLazyGetActivitiesByIdQuery:
|
|
4904
|
-
useGetEntitiesChecklistsQuery:
|
|
4905
|
-
useGetActivitiesQuery:
|
|
4906
|
-
useGetActivitiesInfiniteInfiniteQuery:
|
|
4907
|
-
useGetActivityUsersQuery:
|
|
4908
|
-
} =
|
|
4901
|
+
useGetEntityTooltipQuery: Ka,
|
|
4902
|
+
useGetActivitiesByIdQuery: Ja,
|
|
4903
|
+
useLazyGetActivitiesByIdQuery: Ya,
|
|
4904
|
+
useGetEntitiesChecklistsQuery: Xa,
|
|
4905
|
+
useGetActivitiesQuery: Za,
|
|
4906
|
+
useGetActivitiesInfiniteInfiniteQuery: eo,
|
|
4907
|
+
useGetActivityUsersQuery: to
|
|
4908
|
+
} = ye, Ii = (t, e, s) => {
|
|
4909
4909
|
if (s)
|
|
4910
4910
|
for (const n of t.pages) {
|
|
4911
4911
|
const i = n.activities.findIndex((r) => r.activityId === e.activityId);
|
|
@@ -4925,23 +4925,23 @@ const N = z.injectEndpoints({
|
|
|
4925
4925
|
}
|
|
4926
4926
|
!n && t.pages.length > 0 && t.pages[0].activities.unshift(e);
|
|
4927
4927
|
}
|
|
4928
|
-
},
|
|
4928
|
+
}, Ti = (t) => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), st = async ({ patch: t, entityIds: e = [], filter: s, refs: n = [], ...i }, r, a) => {
|
|
4929
4929
|
const { dispatch: c, queryFulfilled: d, getState: u } = r, o = n.map((g) => g.id) || [];
|
|
4930
|
-
|
|
4930
|
+
Ti(s);
|
|
4931
4931
|
const l = [...e, ...o].map((g) => ({
|
|
4932
4932
|
type: "entityActivities",
|
|
4933
4933
|
id: g + "-" + ss(s)
|
|
4934
|
-
})), p = u(), f =
|
|
4934
|
+
})), p = u(), f = ye.util.selectInvalidatedBy(p, l);
|
|
4935
4935
|
a !== "delete" && t.data && (t.activityData = { ...t.activityData, ...t.data });
|
|
4936
4936
|
const y = f.map(
|
|
4937
4937
|
({ originalArgs: g }) => c(
|
|
4938
|
-
|
|
4938
|
+
ye.util.updateQueryData(
|
|
4939
4939
|
"getActivitiesInfinite",
|
|
4940
4940
|
g,
|
|
4941
|
-
(m) =>
|
|
4941
|
+
(m) => Ii(m, t, a === "delete")
|
|
4942
4942
|
)
|
|
4943
4943
|
)
|
|
4944
|
-
), h =
|
|
4944
|
+
), h = mi(
|
|
4945
4945
|
{ patch: t, ...i },
|
|
4946
4946
|
r,
|
|
4947
4947
|
a
|
|
@@ -4958,7 +4958,7 @@ const N = z.injectEndpoints({
|
|
|
4958
4958
|
id: t + "-" + i
|
|
4959
4959
|
}));
|
|
4960
4960
|
return n.push({ type: "activity", id: "LIST" }), n.push({ type: "watchers", id: t }), n;
|
|
4961
|
-
},
|
|
4961
|
+
}, ki = ye.injectEndpoints({
|
|
4962
4962
|
endpoints: (t) => ({
|
|
4963
4963
|
createEntityActivity: t.mutation({
|
|
4964
4964
|
query: ({ projectName: e, entityType: s, entityId: n, data: i = {} }) => ({
|
|
@@ -4999,14 +4999,14 @@ const N = z.injectEndpoints({
|
|
|
4999
4999
|
}),
|
|
5000
5000
|
overrideExisting: !0
|
|
5001
5001
|
}), {
|
|
5002
|
-
useCreateEntityActivityMutation:
|
|
5003
|
-
useDeleteActivityMutation:
|
|
5004
|
-
useUpdateActivityMutation:
|
|
5005
|
-
} =
|
|
5002
|
+
useCreateEntityActivityMutation: so,
|
|
5003
|
+
useDeleteActivityMutation: no,
|
|
5004
|
+
useUpdateActivityMutation: io
|
|
5005
|
+
} = ki, Ht = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
|
|
5006
5006
|
const a = [{ type: "activity", id: t }];
|
|
5007
|
-
return
|
|
5007
|
+
return ye.util.selectInvalidatedBy(n(), a).map((d) => i(
|
|
5008
5008
|
// @ts-ignore
|
|
5009
|
-
|
|
5009
|
+
ye.util.updateQueryData(
|
|
5010
5010
|
"getActivitiesInfinite",
|
|
5011
5011
|
d.originalArgs,
|
|
5012
5012
|
(u) => {
|
|
@@ -5040,7 +5040,7 @@ const N = z.injectEndpoints({
|
|
|
5040
5040
|
}
|
|
5041
5041
|
)
|
|
5042
5042
|
));
|
|
5043
|
-
},
|
|
5043
|
+
}, Ai = Pe.enhanceEndpoints({
|
|
5044
5044
|
endpoints: {
|
|
5045
5045
|
createReactionToActivity: {
|
|
5046
5046
|
async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
|
|
@@ -5079,23 +5079,23 @@ const N = z.injectEndpoints({
|
|
|
5079
5079
|
}
|
|
5080
5080
|
}
|
|
5081
5081
|
}
|
|
5082
|
-
}), { useCreateReactionToActivityMutation:
|
|
5082
|
+
}), { useCreateReactionToActivityMutation: ro, useDeleteReactionToActivityMutation: ao } = Ai, Wt = Pe.enhanceEndpoints({
|
|
5083
5083
|
endpoints: {
|
|
5084
5084
|
suggestEntityMention: {}
|
|
5085
5085
|
}
|
|
5086
|
-
}),
|
|
5086
|
+
}), wi = Wt.injectEndpoints({
|
|
5087
5087
|
endpoints: (t) => ({
|
|
5088
5088
|
getEntityMentions: t.query({
|
|
5089
5089
|
queryFn: async (e, { dispatch: s }) => {
|
|
5090
5090
|
const n = await s(
|
|
5091
5091
|
Wt.endpoints.suggestEntityMention.initiate(e)
|
|
5092
5092
|
);
|
|
5093
|
-
return n.error ? { error:
|
|
5093
|
+
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
5094
5094
|
},
|
|
5095
5095
|
providesTags: [{ type: "team", id: "LIST" }]
|
|
5096
5096
|
})
|
|
5097
5097
|
})
|
|
5098
|
-
}), { useGetEntityMentionsQuery:
|
|
5098
|
+
}), { useGetEntityMentionsQuery: oo } = wi, ot = { type: "category", id: "LIST" }, ct = { type: "addonSettings", id: "powerpack" }, dt = Pe.enhanceEndpoints({
|
|
5099
5099
|
endpoints: {
|
|
5100
5100
|
getActivityCategories: {
|
|
5101
5101
|
transformResponse: (t) => t.categories,
|
|
@@ -5106,7 +5106,7 @@ const N = z.injectEndpoints({
|
|
|
5106
5106
|
] : [ot, ct]
|
|
5107
5107
|
}
|
|
5108
5108
|
}
|
|
5109
|
-
}),
|
|
5109
|
+
}), Ei = dt.injectEndpoints({
|
|
5110
5110
|
endpoints: (t) => ({
|
|
5111
5111
|
getProjectsCategories: t.query({
|
|
5112
5112
|
async queryFn({ projects: e = [] }, { dispatch: s }) {
|
|
@@ -5127,13 +5127,13 @@ const N = z.injectEndpoints({
|
|
|
5127
5127
|
providesTags: [ot, ct]
|
|
5128
5128
|
})
|
|
5129
5129
|
})
|
|
5130
|
-
}), { useGetActivityCategoriesQuery:
|
|
5130
|
+
}), { useGetActivityCategoriesQuery: co } = dt, { useGetProjectsCategoriesQuery: uo } = Ei, ms = js.enhanceEndpoints({
|
|
5131
5131
|
endpoints: {
|
|
5132
5132
|
listAddons: {
|
|
5133
5133
|
providesTags: ["addonList"]
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
|
-
}), { useListAddonsQuery:
|
|
5136
|
+
}), { useListAddonsQuery: lo } = ms, vs = ms.injectEndpoints({
|
|
5137
5137
|
endpoints: (t) => ({
|
|
5138
5138
|
// Return a list of addons which have project-scoped frontend
|
|
5139
5139
|
getProjectAddons: t.query({
|
|
@@ -5206,7 +5206,7 @@ const N = z.injectEndpoints({
|
|
|
5206
5206
|
})
|
|
5207
5207
|
}),
|
|
5208
5208
|
overrideExisting: !0
|
|
5209
|
-
}), { useGetProjectAddonsQuery:
|
|
5209
|
+
}), { useGetProjectAddonsQuery: po, useGetSettingsAddonsQuery: fo, useGetDashboardAddonsQuery: yo } = vs, it = vs.enhanceEndpoints({
|
|
5210
5210
|
endpoints: {
|
|
5211
5211
|
deleteAddonVersion: {
|
|
5212
5212
|
invalidatesTags: ["addonList"]
|
|
@@ -5240,7 +5240,7 @@ const N = z.injectEndpoints({
|
|
|
5240
5240
|
try {
|
|
5241
5241
|
return await Promise.all(n), { data: void 0 };
|
|
5242
5242
|
} catch (i) {
|
|
5243
|
-
return { error:
|
|
5243
|
+
return { error: L(i) };
|
|
5244
5244
|
}
|
|
5245
5245
|
}
|
|
5246
5246
|
}),
|
|
@@ -5262,7 +5262,7 @@ const N = z.injectEndpoints({
|
|
|
5262
5262
|
return { data: (await Promise.allSettled(i)).filter((c) => c.status === "fulfilled").flatMap((c) => c.value.data?.eventId ? [c.value.data.eventId] : []) };
|
|
5263
5263
|
} catch (r) {
|
|
5264
5264
|
return {
|
|
5265
|
-
error:
|
|
5265
|
+
error: L(r)
|
|
5266
5266
|
};
|
|
5267
5267
|
}
|
|
5268
5268
|
}
|
|
@@ -5270,7 +5270,7 @@ const N = z.injectEndpoints({
|
|
|
5270
5270
|
}),
|
|
5271
5271
|
// endpoints
|
|
5272
5272
|
overrideExisting: !0
|
|
5273
|
-
}), { useDeleteAddonVersionsMutation:
|
|
5273
|
+
}), { useDeleteAddonVersionsMutation: go, useDownloadAddonsMutation: ho } = bs, Is = Fs.enhanceEndpoints({
|
|
5274
5274
|
endpoints: {
|
|
5275
5275
|
getAttributeList: {
|
|
5276
5276
|
transformResponse: (t) => t.attributes || [],
|
|
@@ -5283,7 +5283,7 @@ const N = z.injectEndpoints({
|
|
|
5283
5283
|
]
|
|
5284
5284
|
}
|
|
5285
5285
|
}
|
|
5286
|
-
}), { useGetAttributeListQuery:
|
|
5286
|
+
}), { useGetAttributeListQuery: mo, useGetAttributeConfigQuery: vo } = Is, Si = Is.enhanceEndpoints({
|
|
5287
5287
|
endpoints: {
|
|
5288
5288
|
setAttributeList: {
|
|
5289
5289
|
invalidatesTags: ["attribute"]
|
|
@@ -5295,21 +5295,21 @@ const N = z.injectEndpoints({
|
|
|
5295
5295
|
invalidatesTags: (t, e, { attributeName: s }) => [{ type: "attribute", id: s }]
|
|
5296
5296
|
}
|
|
5297
5297
|
}
|
|
5298
|
-
}), { useSetAttributeListMutation:
|
|
5298
|
+
}), { useSetAttributeListMutation: bo, usePatchAttributeConfigMutation: Io } = Si, Pi = _s.enhanceEndpoints({
|
|
5299
5299
|
endpoints: {
|
|
5300
5300
|
createSession: {},
|
|
5301
5301
|
getUserPools: {
|
|
5302
5302
|
providesTags: [{ type: "userPool", id: "LIST" }]
|
|
5303
5303
|
}
|
|
5304
5304
|
}
|
|
5305
|
-
}), { useCreateSessionMutation:
|
|
5305
|
+
}), { useCreateSessionMutation: To, useGetUserPoolsQuery: ko } = Pi, ut = Rs.enhanceEndpoints({
|
|
5306
5306
|
endpoints: {
|
|
5307
5307
|
listBundles: {
|
|
5308
5308
|
providesTags: () => [{ type: "bundleList" }]
|
|
5309
5309
|
},
|
|
5310
5310
|
checkBundleCompatibility: {}
|
|
5311
5311
|
}
|
|
5312
|
-
}),
|
|
5312
|
+
}), Li = Se.enhanceEndpoints({
|
|
5313
5313
|
endpoints: {
|
|
5314
5314
|
getProjectBundleInfo: {
|
|
5315
5315
|
providesTags: (t, e, { projectName: s }) => [
|
|
@@ -5318,7 +5318,7 @@ const N = z.injectEndpoints({
|
|
|
5318
5318
|
]
|
|
5319
5319
|
}
|
|
5320
5320
|
}
|
|
5321
|
-
}), { useListBundlesQuery:
|
|
5321
|
+
}), { useListBundlesQuery: Ao, useLazyListBundlesQuery: wo, useCheckBundleCompatibilityQuery: Eo } = ut, { useGetProjectBundleInfoQuery: So } = Li, ji = ut.enhanceEndpoints({
|
|
5322
5322
|
endpoints: {
|
|
5323
5323
|
migrateSettingsByBundle: {
|
|
5324
5324
|
invalidatesTags: () => [
|
|
@@ -5353,7 +5353,7 @@ const N = z.injectEndpoints({
|
|
|
5353
5353
|
]
|
|
5354
5354
|
}
|
|
5355
5355
|
}
|
|
5356
|
-
}),
|
|
5356
|
+
}), Fi = Se.enhanceEndpoints({
|
|
5357
5357
|
endpoints: {
|
|
5358
5358
|
unsetProjectBundle: {
|
|
5359
5359
|
invalidatesTags: (t, e, { projectName: s }) => [
|
|
@@ -5366,7 +5366,7 @@ const N = z.injectEndpoints({
|
|
|
5366
5366
|
]
|
|
5367
5367
|
}
|
|
5368
5368
|
}
|
|
5369
|
-
}),
|
|
5369
|
+
}), _i = ji.injectEndpoints({
|
|
5370
5370
|
endpoints: (t) => ({
|
|
5371
5371
|
deleteBundle: t.mutation({
|
|
5372
5372
|
query: ({ name: e }) => ({
|
|
@@ -5420,12 +5420,12 @@ const N = z.injectEndpoints({
|
|
|
5420
5420
|
// endpoints
|
|
5421
5421
|
overrideExisting: !0
|
|
5422
5422
|
}), {
|
|
5423
|
-
useDeleteBundleMutation:
|
|
5424
|
-
useCreateBundleMutation:
|
|
5425
|
-
usePromoteBundleMutation:
|
|
5426
|
-
useMigrateSettingsByBundleMutation:
|
|
5427
|
-
useUpdateBundleMutation:
|
|
5428
|
-
} =
|
|
5423
|
+
useDeleteBundleMutation: Po,
|
|
5424
|
+
useCreateBundleMutation: Lo,
|
|
5425
|
+
usePromoteBundleMutation: jo,
|
|
5426
|
+
useMigrateSettingsByBundleMutation: Fo,
|
|
5427
|
+
useUpdateBundleMutation: _o
|
|
5428
|
+
} = _i, { useUnsetProjectBundleMutation: Ro } = Fi, Ri = Gs.enhanceEndpoints({
|
|
5429
5429
|
endpoints: {
|
|
5430
5430
|
getYnputCloudInfo: {
|
|
5431
5431
|
providesTags: ["connections"]
|
|
@@ -5441,11 +5441,11 @@ const N = z.injectEndpoints({
|
|
|
5441
5441
|
}
|
|
5442
5442
|
}
|
|
5443
5443
|
}), {
|
|
5444
|
-
useGetYnputCloudInfoQuery:
|
|
5445
|
-
useSetYnputCloudKeyMutation:
|
|
5446
|
-
useDeleteYnputCloudKeyMutation:
|
|
5447
|
-
useGetFeedbackVerificationQuery:
|
|
5448
|
-
} =
|
|
5444
|
+
useGetYnputCloudInfoQuery: Go,
|
|
5445
|
+
useSetYnputCloudKeyMutation: Co,
|
|
5446
|
+
useDeleteYnputCloudKeyMutation: No,
|
|
5447
|
+
useGetFeedbackVerificationQuery: Qo
|
|
5448
|
+
} = Ri, Ts = Cs.enhanceEndpoints({
|
|
5449
5449
|
endpoints: {
|
|
5450
5450
|
getServerConfig: {
|
|
5451
5451
|
providesTags: ["config"]
|
|
@@ -5459,17 +5459,17 @@ const N = z.injectEndpoints({
|
|
|
5459
5459
|
}
|
|
5460
5460
|
}
|
|
5461
5461
|
}), {
|
|
5462
|
-
useGetServerConfigQuery:
|
|
5463
|
-
useGetServerConfigOverridesQuery:
|
|
5464
|
-
useGetServerConfigSchemaQuery:
|
|
5465
|
-
useGetConfigValueQuery:
|
|
5466
|
-
} = Ts,
|
|
5462
|
+
useGetServerConfigQuery: Mo,
|
|
5463
|
+
useGetServerConfigOverridesQuery: Vo,
|
|
5464
|
+
useGetServerConfigSchemaQuery: Do,
|
|
5465
|
+
useGetConfigValueQuery: Oo
|
|
5466
|
+
} = Ts, Gi = Ts.enhanceEndpoints({
|
|
5467
5467
|
endpoints: {
|
|
5468
5468
|
setServerConfig: {
|
|
5469
5469
|
invalidatesTags: ["config"]
|
|
5470
5470
|
}
|
|
5471
5471
|
}
|
|
5472
|
-
}), { useSetServerConfigMutation:
|
|
5472
|
+
}), { useSetServerConfigMutation: $o } = Gi, lt = ue.enhanceEndpoints({
|
|
5473
5473
|
endpoints: {
|
|
5474
5474
|
getEntityListAttributesDefinition: {
|
|
5475
5475
|
providesTags: (t, e, { listId: s }) => t ? [
|
|
@@ -5478,7 +5478,7 @@ const N = z.injectEndpoints({
|
|
|
5478
5478
|
] : [{ type: "entityListAttribute", id: "LIST" }]
|
|
5479
5479
|
}
|
|
5480
5480
|
}
|
|
5481
|
-
}), { useGetEntityListAttributesDefinitionQuery:
|
|
5481
|
+
}), { useGetEntityListAttributesDefinitionQuery: xo } = lt, Ci = (t) => t.startsWith("attrib.") ? `_all_attrib.${t.slice(7)}` : t.startsWith("inherited_attributes.") ? `_all_attrib.${t.slice(21)}` : `_entity_${t}`, Ni = (t) => t.startsWith("_all_attrib_") ? `attrib_${t.slice(12)}` : t.startsWith("_entity_") ? t.slice(8) : t, Uo = (t) => t.map((e) => ({ ...e, field: Ci(e.field) })), Qi = Q.enhanceEndpoints({
|
|
5482
5482
|
endpoints: {
|
|
5483
5483
|
// same caching as the other column stats endpoints: `targets` excluded
|
|
5484
5484
|
// from the cache key, responses merged, only added targets refetch
|
|
@@ -5486,7 +5486,7 @@ const N = z.injectEndpoints({
|
|
|
5486
5486
|
transformResponse: (t) => {
|
|
5487
5487
|
const e = t?.project?.entityLists?.edges?.[0]?.node?.items?.fieldStats ?? [];
|
|
5488
5488
|
return ke(
|
|
5489
|
-
e.map((s) => ({ ...s, columnName:
|
|
5489
|
+
e.map((s) => ({ ...s, columnName: Ni(s.columnName) }))
|
|
5490
5490
|
);
|
|
5491
5491
|
},
|
|
5492
5492
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
@@ -5498,7 +5498,7 @@ const N = z.injectEndpoints({
|
|
|
5498
5498
|
]
|
|
5499
5499
|
}
|
|
5500
5500
|
}
|
|
5501
|
-
}), { useGetListItemsColumnStatsQuery:
|
|
5501
|
+
}), { useGetListItemsColumnStatsQuery: qo } = Qi, Mi = lt.enhanceEndpoints({
|
|
5502
5502
|
endpoints: {
|
|
5503
5503
|
setEntityListAttributesDefinition: {
|
|
5504
5504
|
onQueryStarted: async (t, { dispatch: e, queryFulfilled: s }) => {
|
|
@@ -5518,7 +5518,7 @@ const N = z.injectEndpoints({
|
|
|
5518
5518
|
invalidatesTags: (t, e, { listId: s }) => [{ type: "entityListAttribute", id: s }]
|
|
5519
5519
|
}
|
|
5520
5520
|
}
|
|
5521
|
-
}), { useSetEntityListAttributesDefinitionMutation:
|
|
5521
|
+
}), { useSetEntityListAttributesDefinitionMutation: Bo } = Mi, Ge = { type: "entityListFolder", id: "LIST" }, Me = ue.enhanceEndpoints({
|
|
5522
5522
|
endpoints: {
|
|
5523
5523
|
getEntityListFolders: {
|
|
5524
5524
|
transformResponse: (t) => t.folders || [],
|
|
@@ -5606,15 +5606,15 @@ const N = z.injectEndpoints({
|
|
|
5606
5606
|
}
|
|
5607
5607
|
}
|
|
5608
5608
|
}), {
|
|
5609
|
-
useGetEntityListFoldersQuery:
|
|
5610
|
-
useCreateEntityListFolderMutation:
|
|
5611
|
-
useDeleteEntityListFolderMutation:
|
|
5612
|
-
useUpdateEntityListFolderMutation:
|
|
5613
|
-
} = Me,
|
|
5609
|
+
useGetEntityListFoldersQuery: Ho,
|
|
5610
|
+
useCreateEntityListFolderMutation: Wo,
|
|
5611
|
+
useDeleteEntityListFolderMutation: zo,
|
|
5612
|
+
useUpdateEntityListFolderMutation: Ko
|
|
5613
|
+
} = Me, Vi = Ns.enhanceEndpoints({
|
|
5614
5614
|
endpoints: {
|
|
5615
5615
|
getEntityGroups: {}
|
|
5616
5616
|
}
|
|
5617
|
-
}), { useGetEntityGroupsQuery:
|
|
5617
|
+
}), { useGetEntityGroupsQuery: Jo } = Vi, zt = async (t, e, s, n) => {
|
|
5618
5618
|
switch (t) {
|
|
5619
5619
|
case "task":
|
|
5620
5620
|
return (await n(
|
|
@@ -5674,14 +5674,14 @@ const N = z.injectEndpoints({
|
|
|
5674
5674
|
dispatch: d
|
|
5675
5675
|
}, u = []) => {
|
|
5676
5676
|
const o = (p, f, y) => {
|
|
5677
|
-
const g =
|
|
5677
|
+
const g = le.util.selectCachedArgsForQuery(c, "getEntityLinks").filter(
|
|
5678
5678
|
(v) => v.projectName === t && v.entityType === p.entityType
|
|
5679
5679
|
);
|
|
5680
5680
|
let m = !1;
|
|
5681
5681
|
for (const v of g)
|
|
5682
5682
|
try {
|
|
5683
5683
|
const b = d(
|
|
5684
|
-
|
|
5684
|
+
le.util.updateQueryData(
|
|
5685
5685
|
"getEntityLinks",
|
|
5686
5686
|
v,
|
|
5687
5687
|
(I) => {
|
|
@@ -5711,7 +5711,7 @@ const N = z.injectEndpoints({
|
|
|
5711
5711
|
A !== -1 ? k.links[A] = T : (console.log(
|
|
5712
5712
|
`Adding new link to ${p.entityType} links cache`,
|
|
5713
5713
|
T,
|
|
5714
|
-
|
|
5714
|
+
zs(k)
|
|
5715
5715
|
), k.links.push(T));
|
|
5716
5716
|
}
|
|
5717
5717
|
}
|
|
@@ -5724,7 +5724,7 @@ const N = z.injectEndpoints({
|
|
|
5724
5724
|
m || (p.entityId === e.entityId ? (console.warn(
|
|
5725
5725
|
`Source ${p.entityType} ${p.entityId} not in cache - invalidating to refresh UI`
|
|
5726
5726
|
), d(
|
|
5727
|
-
|
|
5727
|
+
le.util.invalidateTags([
|
|
5728
5728
|
{ type: "link", id: `${t}-${p.entityType}` }
|
|
5729
5729
|
])
|
|
5730
5730
|
)) : console.log(
|
|
@@ -5732,7 +5732,7 @@ const N = z.injectEndpoints({
|
|
|
5732
5732
|
));
|
|
5733
5733
|
};
|
|
5734
5734
|
o(e, s, r), o(s, e, r === "in" ? "out" : "in");
|
|
5735
|
-
},
|
|
5735
|
+
}, Di = Qs.enhanceEndpoints({
|
|
5736
5736
|
endpoints: {
|
|
5737
5737
|
deleteEntityLink: {
|
|
5738
5738
|
async onQueryStarted({ linkId: t, projectName: e, patch: s }, { dispatch: n, getState: i, queryFulfilled: r }) {
|
|
@@ -5759,7 +5759,7 @@ const N = z.injectEndpoints({
|
|
|
5759
5759
|
for (const f of c)
|
|
5760
5760
|
f.undo();
|
|
5761
5761
|
n(
|
|
5762
|
-
|
|
5762
|
+
le.util.invalidateTags([
|
|
5763
5763
|
{ type: "link", id: `${e}-${d.entityType}` },
|
|
5764
5764
|
{ type: "link", id: `${e}-${u.entityType}` }
|
|
5765
5765
|
])
|
|
@@ -5825,7 +5825,7 @@ const N = z.injectEndpoints({
|
|
|
5825
5825
|
for (const b of u)
|
|
5826
5826
|
b.undo();
|
|
5827
5827
|
o && f && n(
|
|
5828
|
-
|
|
5828
|
+
le.util.invalidateTags([
|
|
5829
5829
|
{ type: "link", id: `${t}-${o.entityType}` },
|
|
5830
5830
|
{ type: "link", id: `${t}-${f.entityType}` }
|
|
5831
5831
|
])
|
|
@@ -5834,7 +5834,7 @@ const N = z.injectEndpoints({
|
|
|
5834
5834
|
}
|
|
5835
5835
|
}
|
|
5836
5836
|
}
|
|
5837
|
-
}), { useDeleteEntityLinkMutation:
|
|
5837
|
+
}), { useDeleteEntityLinkMutation: Yo, useCreateEntityLinkMutation: Xo } = Di, Oi = 50, he = (t, e) => e ? { entityType: t, entityId: e.id, thumbnailHash: e.thumbnailHash || void 0 } : void 0, $i = V.injectEndpoints({
|
|
5838
5838
|
endpoints: (t) => ({
|
|
5839
5839
|
getSearchedEntitiesLinks: t.infiniteQuery({
|
|
5840
5840
|
infiniteQueryOptions: {
|
|
@@ -5851,7 +5851,7 @@ const N = z.injectEndpoints({
|
|
|
5851
5851
|
try {
|
|
5852
5852
|
const { projectName: i, entityType: r, search: a, parentIds: c, hasReviewables: d, includeTask: u } = e, { cursor: o } = s, l = {
|
|
5853
5853
|
projectName: i,
|
|
5854
|
-
first:
|
|
5854
|
+
first: Oi
|
|
5855
5855
|
};
|
|
5856
5856
|
o && (l.after = o), l.search = a || "", l.parentIds = c, l.hasReviewables = d, l.includeTask = !!u;
|
|
5857
5857
|
let p;
|
|
@@ -5984,12 +5984,12 @@ const N = z.injectEndpoints({
|
|
|
5984
5984
|
}
|
|
5985
5985
|
};
|
|
5986
5986
|
} catch (i) {
|
|
5987
|
-
return console.error("Error in getSearchedEntitiesLinks queryFn:", i), { error:
|
|
5987
|
+
return console.error("Error in getSearchedEntitiesLinks queryFn:", i), { error: L(i) };
|
|
5988
5988
|
}
|
|
5989
5989
|
}
|
|
5990
5990
|
})
|
|
5991
5991
|
})
|
|
5992
|
-
}), { useGetSearchedEntitiesLinksInfiniteQuery:
|
|
5992
|
+
}), { useGetSearchedEntitiesLinksInfiniteQuery: Zo } = $i, xi = Zt.enhanceEndpoints({
|
|
5993
5993
|
endpoints: {
|
|
5994
5994
|
getMyPermissions: {
|
|
5995
5995
|
providesTags: (t) => [{ type: "userPermissions" }]
|
|
@@ -5998,13 +5998,13 @@ const N = z.injectEndpoints({
|
|
|
5998
5998
|
providesTags: (t, e, s) => [{ type: "userProjectPermissions" }]
|
|
5999
5999
|
}
|
|
6000
6000
|
}
|
|
6001
|
-
}), { useGetMyPermissionsQuery:
|
|
6001
|
+
}), { useGetMyPermissionsQuery: ec, useGetMyProjectPermissionsQuery: tc } = xi, ks = Ms.enhanceEndpoints({
|
|
6002
6002
|
endpoints: {
|
|
6003
6003
|
getProductTypes: {
|
|
6004
6004
|
providesTags: (t, e, s) => [{ type: "productType", id: "LIST" }]
|
|
6005
6005
|
}
|
|
6006
6006
|
}
|
|
6007
|
-
}), { useGetProductTypesQuery:
|
|
6007
|
+
}), { useGetProductTypesQuery: sc } = ks, Ui = ks.enhanceEndpoints({
|
|
6008
6008
|
endpoints: {
|
|
6009
6009
|
createProduct: {
|
|
6010
6010
|
invalidatesTags: (t, e, { productPostModel: s }) => [
|
|
@@ -6012,7 +6012,7 @@ const N = z.injectEndpoints({
|
|
|
6012
6012
|
]
|
|
6013
6013
|
}
|
|
6014
6014
|
}
|
|
6015
|
-
}), { useCreateProductMutation:
|
|
6015
|
+
}), { useCreateProductMutation: nc } = Ui, qi = Q.enhanceEndpoints({
|
|
6016
6016
|
endpoints: {
|
|
6017
6017
|
GetFolderProducts: {
|
|
6018
6018
|
transformResponse: (t) => (t?.project?.products?.edges || []).map((s) => ({
|
|
@@ -6036,7 +6036,7 @@ const N = z.injectEndpoints({
|
|
|
6036
6036
|
] : [{ type: "product", id: s }]
|
|
6037
6037
|
}
|
|
6038
6038
|
}
|
|
6039
|
-
}), { useGetFolderProductsQuery:
|
|
6039
|
+
}), { useGetFolderProductsQuery: ic } = qi, oe = { type: "projectFolder", id: "LIST" }, Ve = Vs.enhanceEndpoints({
|
|
6040
6040
|
endpoints: {
|
|
6041
6041
|
getProjectFolders: {
|
|
6042
6042
|
transformResponse: (t) => t.folders || [],
|
|
@@ -6165,12 +6165,12 @@ const N = z.injectEndpoints({
|
|
|
6165
6165
|
}
|
|
6166
6166
|
}
|
|
6167
6167
|
}), {
|
|
6168
|
-
useGetProjectFoldersQuery:
|
|
6169
|
-
useCreateProjectFolderMutation:
|
|
6170
|
-
useDeleteProjectFolderMutation:
|
|
6171
|
-
useUpdateProjectFolderMutation:
|
|
6172
|
-
useSetProjectFoldersOrderMutation:
|
|
6173
|
-
useAssignProjectsToFolderMutation:
|
|
6168
|
+
useGetProjectFoldersQuery: rc,
|
|
6169
|
+
useCreateProjectFolderMutation: ac,
|
|
6170
|
+
useDeleteProjectFolderMutation: oc,
|
|
6171
|
+
useUpdateProjectFolderMutation: cc,
|
|
6172
|
+
useSetProjectFoldersOrderMutation: dc,
|
|
6173
|
+
useAssignProjectsToFolderMutation: uc
|
|
6174
6174
|
} = Ve, As = (t, {
|
|
6175
6175
|
productId: e,
|
|
6176
6176
|
taskId: s,
|
|
@@ -6206,7 +6206,7 @@ const N = z.injectEndpoints({
|
|
|
6206
6206
|
a.push(...u);
|
|
6207
6207
|
}
|
|
6208
6208
|
return a;
|
|
6209
|
-
},
|
|
6209
|
+
}, Bi = X.enhanceEndpoints({
|
|
6210
6210
|
endpoints: {
|
|
6211
6211
|
getReviewablesForVersion: {
|
|
6212
6212
|
keepUnusedDataFor: 1,
|
|
@@ -6269,7 +6269,7 @@ const N = z.injectEndpoints({
|
|
|
6269
6269
|
}
|
|
6270
6270
|
}
|
|
6271
6271
|
}
|
|
6272
|
-
}), ht =
|
|
6272
|
+
}), ht = Bi.injectEndpoints({
|
|
6273
6273
|
endpoints: (t) => ({
|
|
6274
6274
|
// custom endpoint to get reviewables from product/task/folder
|
|
6275
6275
|
// utilizes getReviewablesForProduct, getReviewablesForTask, getReviewablesForFolder
|
|
@@ -6299,10 +6299,10 @@ const N = z.injectEndpoints({
|
|
|
6299
6299
|
)
|
|
6300
6300
|
)).error), !a)
|
|
6301
6301
|
return {
|
|
6302
|
-
error:
|
|
6302
|
+
error: L("No query found", 400)
|
|
6303
6303
|
};
|
|
6304
6304
|
const c = await r(a);
|
|
6305
|
-
return c.error ? { error:
|
|
6305
|
+
return c.error ? { error: L(c.error) } : { data: c.data };
|
|
6306
6306
|
},
|
|
6307
6307
|
providesTags: (e, s, n) => As(e, n, !0),
|
|
6308
6308
|
async onCacheEntryAdded({ productId: e, taskId: s, folderId: n }, { cacheDataLoaded: i, cacheEntryRemoved: r, dispatch: a, getCacheEntry: c }) {
|
|
@@ -6336,10 +6336,10 @@ const N = z.injectEndpoints({
|
|
|
6336
6336
|
})
|
|
6337
6337
|
})
|
|
6338
6338
|
}), {
|
|
6339
|
-
useGetViewerReviewablesQuery:
|
|
6340
|
-
useGetReviewablesForVersionQuery:
|
|
6341
|
-
useHasTranscoderQuery:
|
|
6342
|
-
} = ht,
|
|
6339
|
+
useGetViewerReviewablesQuery: lc,
|
|
6340
|
+
useGetReviewablesForVersionQuery: pc,
|
|
6341
|
+
useHasTranscoderQuery: fc
|
|
6342
|
+
} = ht, Hi = ht.injectEndpoints({
|
|
6343
6343
|
endpoints: (t) => ({
|
|
6344
6344
|
deleteReviewable: t.mutation(
|
|
6345
6345
|
{
|
|
@@ -6348,16 +6348,16 @@ const N = z.injectEndpoints({
|
|
|
6348
6348
|
const n = await s(
|
|
6349
6349
|
Pe.endpoints.deleteProjectActivity.initiate(e)
|
|
6350
6350
|
);
|
|
6351
|
-
return n.error ? { error:
|
|
6351
|
+
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
6352
6352
|
} catch (n) {
|
|
6353
|
-
return { error:
|
|
6353
|
+
return { error: L(n) };
|
|
6354
6354
|
}
|
|
6355
6355
|
},
|
|
6356
6356
|
invalidatesTags: (e, s, n) => [{ type: "review", id: n.activityId }]
|
|
6357
6357
|
}
|
|
6358
6358
|
)
|
|
6359
6359
|
})
|
|
6360
|
-
}),
|
|
6360
|
+
}), Wi = Hi.enhanceEndpoints({
|
|
6361
6361
|
endpoints: {
|
|
6362
6362
|
// reviewables list is updated optimistically
|
|
6363
6363
|
sortVersionReviewables: {
|
|
@@ -6390,16 +6390,16 @@ const N = z.injectEndpoints({
|
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
6392
|
}), {
|
|
6393
|
-
useDeleteReviewableMutation:
|
|
6394
|
-
useSortVersionReviewablesMutation:
|
|
6395
|
-
useUpdateReviewableMutation:
|
|
6396
|
-
} =
|
|
6393
|
+
useDeleteReviewableMutation: yc,
|
|
6394
|
+
useSortVersionReviewablesMutation: gc,
|
|
6395
|
+
useUpdateReviewableMutation: hc
|
|
6396
|
+
} = Wi, Jt = (t) => {
|
|
6397
6397
|
const e = [{ type: "shared", id: "LIST" }];
|
|
6398
6398
|
return t && e.push({
|
|
6399
6399
|
type: "shared",
|
|
6400
6400
|
id: t.toUpperCase()
|
|
6401
6401
|
}), e;
|
|
6402
|
-
},
|
|
6402
|
+
}, zi = (t) => {
|
|
6403
6403
|
const e = [];
|
|
6404
6404
|
for (const s of t) {
|
|
6405
6405
|
const n = { type: "shared", id: s.value };
|
|
@@ -6425,14 +6425,14 @@ const N = z.injectEndpoints({
|
|
|
6425
6425
|
}
|
|
6426
6426
|
}
|
|
6427
6427
|
return e;
|
|
6428
|
-
},
|
|
6428
|
+
}, Ki = Xt.enhanceEndpoints({
|
|
6429
6429
|
endpoints: {
|
|
6430
6430
|
getShareOptions: {
|
|
6431
6431
|
transformResponse: (t) => t?.options || [],
|
|
6432
|
-
providesTags: (t, e, { projectName: s }) => t ? [...
|
|
6432
|
+
providesTags: (t, e, { projectName: s }) => t ? [...zi(t), ...Jt(s)] : Jt(s)
|
|
6433
6433
|
}
|
|
6434
6434
|
}
|
|
6435
|
-
}), { useGetShareOptionsQuery:
|
|
6435
|
+
}), { useGetShareOptionsQuery: mc } = Ki, Ji = Ds.enhanceEndpoints({
|
|
6436
6436
|
endpoints: {
|
|
6437
6437
|
getSiteInfo: {
|
|
6438
6438
|
providesTags: (t) => t ? [
|
|
@@ -6449,7 +6449,7 @@ const N = z.injectEndpoints({
|
|
|
6449
6449
|
providesTags: ["info"]
|
|
6450
6450
|
}
|
|
6451
6451
|
}
|
|
6452
|
-
}), { useGetSiteInfoQuery:
|
|
6452
|
+
}), { useGetSiteInfoQuery: vc, useLazyGetSiteInfoQuery: bc, useListFrontendModulesQuery: Ic } = Ji, Yi = rt.enhanceEndpoints({
|
|
6453
6453
|
endpoints: {
|
|
6454
6454
|
getTask: {
|
|
6455
6455
|
providesTags: (t, e, { taskId: s }) => [
|
|
@@ -6457,7 +6457,7 @@ const N = z.injectEndpoints({
|
|
|
6457
6457
|
]
|
|
6458
6458
|
}
|
|
6459
6459
|
}
|
|
6460
|
-
}), { useGetTaskQuery:
|
|
6460
|
+
}), { useGetTaskQuery: Tc } = Yi, Xi = (t, e, { state: s, dispatch: n }, i) => {
|
|
6461
6461
|
const r = [{ type: "entityListItem", id: t }], a = q.util.selectInvalidatedBy(s, r).filter((c) => c.endpointName === "getListItemsInfinite");
|
|
6462
6462
|
for (const c of a) {
|
|
6463
6463
|
const d = n(
|
|
@@ -6473,7 +6473,7 @@ const N = z.injectEndpoints({
|
|
|
6473
6473
|
);
|
|
6474
6474
|
i.push(d);
|
|
6475
6475
|
}
|
|
6476
|
-
},
|
|
6476
|
+
}, Zi = rt.injectEndpoints({
|
|
6477
6477
|
endpoints: (t) => ({
|
|
6478
6478
|
updateSubtasks: t.mutation({
|
|
6479
6479
|
queryFn: async ({ projectName: e, taskId: s, subtasks: n }, { dispatch: i }) => {
|
|
@@ -6488,7 +6488,7 @@ const N = z.injectEndpoints({
|
|
|
6488
6488
|
})
|
|
6489
6489
|
).unwrap(), { data: void 0 };
|
|
6490
6490
|
} catch (r) {
|
|
6491
|
-
return { error:
|
|
6491
|
+
return { error: L(r) };
|
|
6492
6492
|
}
|
|
6493
6493
|
},
|
|
6494
6494
|
async onQueryStarted({ taskId: e, subtasks: s }, { dispatch: n, queryFulfilled: i, getState: r }) {
|
|
@@ -6499,7 +6499,7 @@ const N = z.injectEndpoints({
|
|
|
6499
6499
|
data: { subtasks: s }
|
|
6500
6500
|
}
|
|
6501
6501
|
];
|
|
6502
|
-
Ee(d, { state: a, dispatch: n }, c), ds(d, { state: a, dispatch: n }, c),
|
|
6502
|
+
Ee(d, { state: a, dispatch: n }, c), ds(d, { state: a, dispatch: n }, c), Xi(e, s, { state: a, dispatch: n }, c);
|
|
6503
6503
|
try {
|
|
6504
6504
|
await i;
|
|
6505
6505
|
} catch {
|
|
@@ -6508,51 +6508,51 @@ const N = z.injectEndpoints({
|
|
|
6508
6508
|
}
|
|
6509
6509
|
})
|
|
6510
6510
|
})
|
|
6511
|
-
}), { useUpdateSubtasksMutation:
|
|
6511
|
+
}), { useUpdateSubtasksMutation: kc } = Zi, te = { type: "team", id: "LIST" }, er = Os.enhanceEndpoints({
|
|
6512
6512
|
endpoints: {
|
|
6513
6513
|
getTeams: {
|
|
6514
6514
|
providesTags: (t) => t ? [te, ...t.map((e) => ({ type: "team", id: e.name }))] : [te]
|
|
6515
6515
|
},
|
|
6516
6516
|
updateTeams: {
|
|
6517
|
-
invalidatesTags: [te, ...
|
|
6517
|
+
invalidatesTags: [te, ...ce]
|
|
6518
6518
|
},
|
|
6519
6519
|
saveTeam: {
|
|
6520
6520
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6521
6521
|
te,
|
|
6522
6522
|
{ type: "team", id: s },
|
|
6523
|
-
...
|
|
6523
|
+
...ce
|
|
6524
6524
|
]
|
|
6525
6525
|
},
|
|
6526
6526
|
deleteTeam: {
|
|
6527
6527
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6528
6528
|
te,
|
|
6529
6529
|
{ type: "team", id: s },
|
|
6530
|
-
...
|
|
6530
|
+
...ce
|
|
6531
6531
|
]
|
|
6532
6532
|
},
|
|
6533
6533
|
saveTeamMember: {
|
|
6534
6534
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6535
6535
|
te,
|
|
6536
6536
|
{ type: "team", id: s },
|
|
6537
|
-
...
|
|
6537
|
+
...ce
|
|
6538
6538
|
]
|
|
6539
6539
|
},
|
|
6540
6540
|
deleteTeamMember: {
|
|
6541
6541
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6542
6542
|
te,
|
|
6543
6543
|
{ type: "team", id: s },
|
|
6544
|
-
...
|
|
6544
|
+
...ce
|
|
6545
6545
|
]
|
|
6546
6546
|
}
|
|
6547
6547
|
}
|
|
6548
6548
|
}), {
|
|
6549
|
-
useGetTeamsQuery:
|
|
6550
|
-
useUpdateTeamsMutation:
|
|
6551
|
-
useSaveTeamMutation:
|
|
6552
|
-
useDeleteTeamMutation:
|
|
6553
|
-
useSaveTeamMemberMutation:
|
|
6554
|
-
useDeleteTeamMemberMutation:
|
|
6555
|
-
} =
|
|
6549
|
+
useGetTeamsQuery: Ac,
|
|
6550
|
+
useUpdateTeamsMutation: wc,
|
|
6551
|
+
useSaveTeamMutation: Ec,
|
|
6552
|
+
useDeleteTeamMutation: Sc,
|
|
6553
|
+
useSaveTeamMemberMutation: Pc,
|
|
6554
|
+
useDeleteTeamMemberMutation: Lc
|
|
6555
|
+
} = er, tr = `
|
|
6556
6556
|
query UserList($name:String!) {
|
|
6557
6557
|
users(name: $name) {
|
|
6558
6558
|
edges {
|
|
@@ -6574,7 +6574,7 @@ const N = z.injectEndpoints({
|
|
|
6574
6574
|
}
|
|
6575
6575
|
}
|
|
6576
6576
|
}
|
|
6577
|
-
`,
|
|
6577
|
+
`, sr = `
|
|
6578
6578
|
query UserList {
|
|
6579
6579
|
users(last: 5000, isSupport: false) {
|
|
6580
6580
|
edges {
|
|
@@ -6602,7 +6602,7 @@ const N = z.injectEndpoints({
|
|
|
6602
6602
|
}
|
|
6603
6603
|
}
|
|
6604
6604
|
}
|
|
6605
|
-
`,
|
|
6605
|
+
`, nr = `
|
|
6606
6606
|
query Assignees($names: [String!]!){
|
|
6607
6607
|
users(names: $names, isSupport: false) {
|
|
6608
6608
|
edges {
|
|
@@ -6614,7 +6614,7 @@ query Assignees($names: [String!]!){
|
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
6616
6616
|
}
|
|
6617
|
-
}`,
|
|
6617
|
+
}`, ir = `
|
|
6618
6618
|
query Assignees($projectName: String) {
|
|
6619
6619
|
users(last: 5000, projectName: $projectName, isSupport: false) {
|
|
6620
6620
|
edges {
|
|
@@ -6626,7 +6626,15 @@ query Assignees($projectName: String) {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
}`,
|
|
6629
|
+
}`, rr = (t) => {
|
|
6630
|
+
const e = String(t.value);
|
|
6631
|
+
return {
|
|
6632
|
+
name: e,
|
|
6633
|
+
fullName: t.label,
|
|
6634
|
+
avatarUrl: `/api/users/${e}/avatar`,
|
|
6635
|
+
hidden: t.hidden
|
|
6636
|
+
};
|
|
6637
|
+
}, ar = Zt.enhanceEndpoints({
|
|
6630
6638
|
endpoints: {
|
|
6631
6639
|
getCurrentUser: {
|
|
6632
6640
|
providesTags: [{ type: "user", id: "LIST" }]
|
|
@@ -6639,14 +6647,14 @@ query Assignees($projectName: String) {
|
|
|
6639
6647
|
providesTags: (t, e, { userName: s }) => [{ type: "session", id: s }]
|
|
6640
6648
|
}
|
|
6641
6649
|
}
|
|
6642
|
-
}),
|
|
6650
|
+
}), or = Q.injectEndpoints({
|
|
6643
6651
|
endpoints: (t) => ({
|
|
6644
6652
|
getUsers: t.query({
|
|
6645
6653
|
query: () => ({
|
|
6646
6654
|
url: "/graphql",
|
|
6647
6655
|
method: "POST",
|
|
6648
6656
|
body: {
|
|
6649
|
-
query:
|
|
6657
|
+
query: sr,
|
|
6650
6658
|
variables: {}
|
|
6651
6659
|
}
|
|
6652
6660
|
}),
|
|
@@ -6668,7 +6676,7 @@ query Assignees($projectName: String) {
|
|
|
6668
6676
|
url: "/graphql",
|
|
6669
6677
|
method: "POST",
|
|
6670
6678
|
body: {
|
|
6671
|
-
query:
|
|
6679
|
+
query: tr,
|
|
6672
6680
|
variables: { name: e }
|
|
6673
6681
|
}
|
|
6674
6682
|
}),
|
|
@@ -6680,31 +6688,48 @@ query Assignees($projectName: String) {
|
|
|
6680
6688
|
providesTags: (e) => e ? [...e.map((s) => ({ type: "user", id: s.name })), { type: "user", id: "LIST" }] : ["user", { type: "user", id: "LIST" }]
|
|
6681
6689
|
}),
|
|
6682
6690
|
getUsersAssignee: t.query({
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6691
|
+
async queryFn({ names: e, projectName: s }, n, i, r) {
|
|
6692
|
+
if (!e && s) {
|
|
6693
|
+
const d = await n.dispatch(
|
|
6694
|
+
$s.endpoints.getEnumOptions.initiate(
|
|
6695
|
+
{
|
|
6696
|
+
enumName: "users",
|
|
6697
|
+
params: { project_name: s, mode: "users", hide_inactive: !0 }
|
|
6698
|
+
},
|
|
6699
|
+
{ subscribe: !1, forceRefetch: n.forced }
|
|
6700
|
+
)
|
|
6701
|
+
).unwrap();
|
|
6702
|
+
return d.error ? { error: L(d.error) } : { data: d.items.map(rr) };
|
|
6689
6703
|
}
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6704
|
+
const a = await r({
|
|
6705
|
+
url: "/graphql",
|
|
6706
|
+
method: "POST",
|
|
6707
|
+
body: {
|
|
6708
|
+
query: e ? nr : ir,
|
|
6709
|
+
variables: { names: e, projectName: s }
|
|
6710
|
+
}
|
|
6711
|
+
});
|
|
6712
|
+
return a.error ? { error: L(a.error) } : {
|
|
6713
|
+
data: (a.data?.data?.users.edges ?? []).flatMap(
|
|
6714
|
+
(d) => d.node ? [
|
|
6715
|
+
{
|
|
6716
|
+
name: d.node.name,
|
|
6717
|
+
fullName: d.node.attrib?.fullName ?? void 0,
|
|
6718
|
+
avatarUrl: `/api/users/${d.node.name}/avatar`
|
|
6719
|
+
}
|
|
6720
|
+
] : []
|
|
6721
|
+
)
|
|
6698
6722
|
};
|
|
6699
|
-
}
|
|
6700
|
-
providesTags: (e) =>
|
|
6701
|
-
...e.map((s) => ({ type: "user", id: s.name })),
|
|
6702
|
-
{ type: "user", id: "LIST" }
|
|
6703
|
-
|
|
6723
|
+
},
|
|
6724
|
+
providesTags: (e) => [
|
|
6725
|
+
...(e || []).map((s) => ({ type: "user", id: s.name })),
|
|
6726
|
+
{ type: "user", id: "LIST" },
|
|
6727
|
+
...ce
|
|
6728
|
+
]
|
|
6704
6729
|
})
|
|
6705
6730
|
}),
|
|
6706
6731
|
overrideExisting: !0
|
|
6707
|
-
}),
|
|
6732
|
+
}), cr = or.enhanceEndpoints({
|
|
6708
6733
|
endpoints: {
|
|
6709
6734
|
GetAllProjectUsersAsAssignee: {
|
|
6710
6735
|
transformResponse: (t) => t.users.edges.map((e) => ({
|
|
@@ -6728,14 +6753,14 @@ query Assignees($projectName: String) {
|
|
|
6728
6753
|
}
|
|
6729
6754
|
}
|
|
6730
6755
|
}), {
|
|
6731
|
-
useGetAllProjectUsersAsAssigneeQuery:
|
|
6732
|
-
useLazyGetAllProjectUsersAsAssigneeQuery:
|
|
6733
|
-
useGetActiveUsersCountQuery:
|
|
6734
|
-
useGetAllAssigneesQuery:
|
|
6735
|
-
useGetUsersQuery:
|
|
6736
|
-
useGetUserByNameQuery:
|
|
6737
|
-
useGetUsersAssigneeQuery:
|
|
6738
|
-
} =
|
|
6756
|
+
useGetAllProjectUsersAsAssigneeQuery: jc,
|
|
6757
|
+
useLazyGetAllProjectUsersAsAssigneeQuery: Fc,
|
|
6758
|
+
useGetActiveUsersCountQuery: _c,
|
|
6759
|
+
useGetAllAssigneesQuery: Rc,
|
|
6760
|
+
useGetUsersQuery: Gc,
|
|
6761
|
+
useGetUserByNameQuery: Cc,
|
|
6762
|
+
useGetUsersAssigneeQuery: Nc
|
|
6763
|
+
} = cr, { useGetUserSessionsQuery: Qc, useGetCurrentUserQuery: Mc, useGetUserQuery: Vc } = ar, dr = Se.enhanceEndpoints({
|
|
6739
6764
|
endpoints: {
|
|
6740
6765
|
listGuestUsers: {
|
|
6741
6766
|
providesTags: (t) => t?.users ? [
|
|
@@ -6750,7 +6775,7 @@ query Assignees($projectName: String) {
|
|
|
6750
6775
|
invalidatesTags: (t, e, s) => [{ type: "guest", id: s.email }]
|
|
6751
6776
|
}
|
|
6752
6777
|
}
|
|
6753
|
-
}), { useListGuestUsersQuery:
|
|
6778
|
+
}), { useListGuestUsersQuery: Dc, useAddGuestUserMutation: Oc, useRemoveGuestUserMutation: $c } = dr, ur = Q.enhanceEndpoints({
|
|
6754
6779
|
endpoints: {
|
|
6755
6780
|
GetLatestProductVersion: {
|
|
6756
6781
|
transformResponse: (t) => t.project.versions.edges[0]?.node,
|
|
@@ -6760,7 +6785,7 @@ query Assignees($projectName: String) {
|
|
|
6760
6785
|
] : [{ type: "product", id: s }]
|
|
6761
6786
|
}
|
|
6762
6787
|
}
|
|
6763
|
-
}), { useGetLatestProductVersionQuery:
|
|
6788
|
+
}), { useGetLatestProductVersionQuery: xc } = ur, lr = xs.enhanceEndpoints({
|
|
6764
6789
|
endpoints: {
|
|
6765
6790
|
getVersion: {},
|
|
6766
6791
|
createVersion: {
|
|
@@ -6779,10 +6804,10 @@ query Assignees($projectName: String) {
|
|
|
6779
6804
|
]
|
|
6780
6805
|
}
|
|
6781
6806
|
}
|
|
6782
|
-
}), { useGetVersionQuery:
|
|
6807
|
+
}), { useGetVersionQuery: Uc, useCreateVersionMutation: qc, useDeleteVersionMutation: Bc } = lr, B = (t, e) => ({
|
|
6783
6808
|
type: "view",
|
|
6784
6809
|
id: `${t.toUpperCase()}${e ? `:${e.toUpperCase()}` : ""}`
|
|
6785
|
-
}), Ce = { type: "view", id: "LIST" }, M =
|
|
6810
|
+
}), Ce = { type: "view", id: "LIST" }, M = Us.enhanceEndpoints({
|
|
6786
6811
|
endpoints: {
|
|
6787
6812
|
listViews: {
|
|
6788
6813
|
transformResponse: (t) => t?.views || [],
|
|
@@ -6810,12 +6835,12 @@ query Assignees($projectName: String) {
|
|
|
6810
6835
|
}
|
|
6811
6836
|
}
|
|
6812
6837
|
}), {
|
|
6813
|
-
useListViewsQuery:
|
|
6814
|
-
useGetWorkingViewQuery:
|
|
6815
|
-
useGetViewQuery:
|
|
6816
|
-
useGetDefaultViewQuery:
|
|
6817
|
-
useGetBaseViewQuery:
|
|
6818
|
-
} = M,
|
|
6838
|
+
useListViewsQuery: Hc,
|
|
6839
|
+
useGetWorkingViewQuery: Wc,
|
|
6840
|
+
useGetViewQuery: zc,
|
|
6841
|
+
useGetDefaultViewQuery: Kc,
|
|
6842
|
+
useGetBaseViewQuery: Jc
|
|
6843
|
+
} = M, pr = M.enhanceEndpoints({
|
|
6819
6844
|
endpoints: {
|
|
6820
6845
|
createView: {
|
|
6821
6846
|
onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
|
|
@@ -6869,7 +6894,7 @@ query Assignees($projectName: String) {
|
|
|
6869
6894
|
let u;
|
|
6870
6895
|
if (i.label === "__base__") {
|
|
6871
6896
|
const o = {
|
|
6872
|
-
id:
|
|
6897
|
+
id: Bs(),
|
|
6873
6898
|
...i,
|
|
6874
6899
|
working: !1,
|
|
6875
6900
|
scope: t.projectName ? "project" : "studio",
|
|
@@ -7048,11 +7073,11 @@ query Assignees($projectName: String) {
|
|
|
7048
7073
|
}
|
|
7049
7074
|
}
|
|
7050
7075
|
}), {
|
|
7051
|
-
useCreateViewMutation:
|
|
7052
|
-
useUpdateViewMutation:
|
|
7053
|
-
useDeleteViewMutation:
|
|
7054
|
-
useSetDefaultViewMutation:
|
|
7055
|
-
} =
|
|
7076
|
+
useCreateViewMutation: Yc,
|
|
7077
|
+
useUpdateViewMutation: Xc,
|
|
7078
|
+
useDeleteViewMutation: Zc,
|
|
7079
|
+
useSetDefaultViewMutation: ed
|
|
7080
|
+
} = pr, Be = Pe.enhanceEndpoints({
|
|
7056
7081
|
endpoints: {
|
|
7057
7082
|
getEntityWatchers: {},
|
|
7058
7083
|
setEntityWatchers: {}
|
|
@@ -7075,7 +7100,7 @@ query Assignees($projectName: String) {
|
|
|
7075
7100
|
})
|
|
7076
7101
|
) };
|
|
7077
7102
|
} catch (n) {
|
|
7078
|
-
return console.error(n), { error:
|
|
7103
|
+
return console.error(n), { error: L(n) };
|
|
7079
7104
|
}
|
|
7080
7105
|
},
|
|
7081
7106
|
providesTags: (e, s, { entities: n }) => n.flatMap((i) => [
|
|
@@ -7084,7 +7109,7 @@ query Assignees($projectName: String) {
|
|
|
7084
7109
|
])
|
|
7085
7110
|
})
|
|
7086
7111
|
})
|
|
7087
|
-
}),
|
|
7112
|
+
}), fr = Yt.injectEndpoints({
|
|
7088
7113
|
endpoints: (t) => ({
|
|
7089
7114
|
setEntitiesWatchers: t.mutation({
|
|
7090
7115
|
async queryFn({ entities: e = [] }, { dispatch: s }) {
|
|
@@ -7102,7 +7127,7 @@ query Assignees($projectName: String) {
|
|
|
7102
7127
|
try {
|
|
7103
7128
|
return await Promise.all(n), { data: void 0 };
|
|
7104
7129
|
} catch (i) {
|
|
7105
|
-
return { error:
|
|
7130
|
+
return { error: L(i) };
|
|
7106
7131
|
}
|
|
7107
7132
|
},
|
|
7108
7133
|
async onQueryStarted({ entities: e }, { dispatch: s, queryFulfilled: n, getState: i }) {
|
|
@@ -7136,293 +7161,293 @@ query Assignees($projectName: String) {
|
|
|
7136
7161
|
invalidatesTags: (e, s, { entities: n }) => n.some((i) => i.entityType === "task") ? [{ type: "watchers", id: "VERSION-LIST" }] : []
|
|
7137
7162
|
})
|
|
7138
7163
|
})
|
|
7139
|
-
}), { useGetEntitiesWatchersQuery:
|
|
7164
|
+
}), { useGetEntitiesWatchersQuery: td, useSetEntitiesWatchersMutation: sd } = fr, yr = qs.enhanceEndpoints({
|
|
7140
7165
|
endpoints: {
|
|
7141
7166
|
resolveUris: {}
|
|
7142
7167
|
}
|
|
7143
|
-
}), { useResolveUrisMutation:
|
|
7168
|
+
}), { useResolveUrisMutation: nd } = yr;
|
|
7144
7169
|
export {
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7170
|
+
wi as $,
|
|
7171
|
+
yi as A,
|
|
7172
|
+
zn as B,
|
|
7148
7173
|
se as C,
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7174
|
+
Jn as D,
|
|
7175
|
+
Oi as E,
|
|
7176
|
+
Rn as F,
|
|
7177
|
+
Kn as G,
|
|
7153
7178
|
$e as H,
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7179
|
+
Nn as I,
|
|
7180
|
+
ye as J,
|
|
7181
|
+
Nr as K,
|
|
7157
7182
|
Ut as L,
|
|
7158
|
-
|
|
7183
|
+
Sn as M,
|
|
7159
7184
|
os as N,
|
|
7160
|
-
|
|
7161
|
-
|
|
7185
|
+
pi as O,
|
|
7186
|
+
_n as P,
|
|
7162
7187
|
ft as Q,
|
|
7163
7188
|
ht as R,
|
|
7164
7189
|
B as S,
|
|
7165
7190
|
We as T,
|
|
7166
7191
|
M as U,
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7192
|
+
Fn as V,
|
|
7193
|
+
$r as W,
|
|
7194
|
+
Vi as X,
|
|
7170
7195
|
we as Y,
|
|
7171
7196
|
N as Z,
|
|
7172
7197
|
at as _,
|
|
7173
7198
|
et as a,
|
|
7174
|
-
|
|
7199
|
+
yc as a$,
|
|
7175
7200
|
Ae as a0,
|
|
7176
7201
|
ke as a1,
|
|
7177
|
-
|
|
7202
|
+
Ur as a2,
|
|
7178
7203
|
Ft as a3,
|
|
7179
7204
|
R as a4,
|
|
7180
7205
|
ds as a5,
|
|
7181
7206
|
cs as a6,
|
|
7182
|
-
|
|
7183
|
-
|
|
7207
|
+
Xi as a7,
|
|
7208
|
+
Ra as a8,
|
|
7184
7209
|
qe as a9,
|
|
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
|
-
|
|
7210
|
+
Oc as aA,
|
|
7211
|
+
uc as aB,
|
|
7212
|
+
Eo as aC,
|
|
7213
|
+
Lo as aD,
|
|
7214
|
+
so as aE,
|
|
7215
|
+
Xo as aF,
|
|
7216
|
+
Wo as aG,
|
|
7217
|
+
Ha as aH,
|
|
7218
|
+
$a as aI,
|
|
7219
|
+
nc as aJ,
|
|
7220
|
+
ac as aK,
|
|
7221
|
+
ro as aL,
|
|
7222
|
+
za as aM,
|
|
7223
|
+
To as aN,
|
|
7224
|
+
qc as aO,
|
|
7225
|
+
Yc as aP,
|
|
7226
|
+
jr as aQ,
|
|
7227
|
+
no as aR,
|
|
7228
|
+
go as aS,
|
|
7229
|
+
Po as aT,
|
|
7230
|
+
Yo as aU,
|
|
7231
|
+
zo as aV,
|
|
7232
|
+
Wa as aW,
|
|
7233
|
+
Ua as aX,
|
|
7234
|
+
oc as aY,
|
|
7235
|
+
ga as aZ,
|
|
7236
|
+
ao as a_,
|
|
7212
7237
|
Ee as aa,
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7238
|
+
ni as ab,
|
|
7239
|
+
ai as ac,
|
|
7240
|
+
ii as ad,
|
|
7241
|
+
xi as ae,
|
|
7217
7242
|
gt as af,
|
|
7218
7243
|
ee as ag,
|
|
7219
7244
|
W as ah,
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7245
|
+
Hn as ai,
|
|
7246
|
+
Wn as aj,
|
|
7247
|
+
Bn as ak,
|
|
7223
7248
|
xe as al,
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7249
|
+
Ai as am,
|
|
7250
|
+
Wi as an,
|
|
7251
|
+
xr as ao,
|
|
7252
|
+
Ki as ap,
|
|
7253
|
+
Dr as aq,
|
|
7254
|
+
Ji as ar,
|
|
7255
|
+
kn as as,
|
|
7256
|
+
er as at,
|
|
7257
|
+
Uo as au,
|
|
7258
|
+
Qr as av,
|
|
7234
7259
|
je as aw,
|
|
7235
|
-
|
|
7260
|
+
Xn as ax,
|
|
7236
7261
|
ys as ay,
|
|
7237
7262
|
jt as az,
|
|
7238
7263
|
wt as b,
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
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
|
-
|
|
7264
|
+
pa as b$,
|
|
7265
|
+
Lc as b0,
|
|
7266
|
+
Sc as b1,
|
|
7267
|
+
Bc as b2,
|
|
7268
|
+
Zc as b3,
|
|
7269
|
+
No as b4,
|
|
7270
|
+
ya as b5,
|
|
7271
|
+
ho as b6,
|
|
7272
|
+
Rr as b7,
|
|
7273
|
+
wr as b8,
|
|
7274
|
+
Er as b9,
|
|
7275
|
+
oo as bA,
|
|
7276
|
+
aa as bB,
|
|
7277
|
+
ra as bC,
|
|
7278
|
+
Ka as bD,
|
|
7279
|
+
ia as bE,
|
|
7280
|
+
Qo as bF,
|
|
7281
|
+
Jr as bG,
|
|
7282
|
+
ea as bH,
|
|
7283
|
+
Xr as bI,
|
|
7284
|
+
Zr as bJ,
|
|
7285
|
+
ic as bK,
|
|
7286
|
+
Kr as bL,
|
|
7287
|
+
Fa as bM,
|
|
7288
|
+
Ia as bN,
|
|
7289
|
+
ba as bO,
|
|
7290
|
+
xc as bP,
|
|
7291
|
+
qo as bQ,
|
|
7292
|
+
Qa as bR,
|
|
7293
|
+
Na as bS,
|
|
7294
|
+
Ma as bT,
|
|
7295
|
+
ec as bU,
|
|
7296
|
+
tc as bV,
|
|
7297
|
+
qr as bW,
|
|
7298
|
+
ca as bX,
|
|
7299
|
+
Ea as bY,
|
|
7300
|
+
ja as bZ,
|
|
7301
|
+
po as b_,
|
|
7302
|
+
Ar as ba,
|
|
7303
|
+
Gr as bb,
|
|
7304
|
+
Fr as bc,
|
|
7305
|
+
_c as bd,
|
|
7306
|
+
Ja as be,
|
|
7307
|
+
eo as bf,
|
|
7308
|
+
Za as bg,
|
|
7309
|
+
co as bh,
|
|
7310
|
+
to as bi,
|
|
7311
|
+
Rc as bj,
|
|
7312
|
+
jc as bk,
|
|
7313
|
+
vo as bl,
|
|
7314
|
+
mo as bm,
|
|
7315
|
+
Jc as bn,
|
|
7316
|
+
Oo as bo,
|
|
7317
|
+
Mc as bp,
|
|
7318
|
+
yo as bq,
|
|
7319
|
+
Kc as br,
|
|
7320
|
+
Xa as bs,
|
|
7321
|
+
sa as bt,
|
|
7322
|
+
td as bu,
|
|
7323
|
+
Jo as bv,
|
|
7324
|
+
Ca as bw,
|
|
7325
|
+
xo as bx,
|
|
7326
|
+
Ho as by,
|
|
7327
|
+
Oa as bz,
|
|
7328
|
+
jn as c,
|
|
7329
|
+
Ec as c$,
|
|
7330
|
+
So as c0,
|
|
7331
|
+
rc as c1,
|
|
7332
|
+
ua as c2,
|
|
7333
|
+
Sr as c3,
|
|
7334
|
+
uo as c4,
|
|
7335
|
+
fa as c5,
|
|
7336
|
+
Ta as c6,
|
|
7337
|
+
pc as c7,
|
|
7338
|
+
Br as c8,
|
|
7339
|
+
da as c9,
|
|
7340
|
+
Wc as cA,
|
|
7341
|
+
Go as cB,
|
|
7342
|
+
fc as cC,
|
|
7343
|
+
_r as cD,
|
|
7344
|
+
Ya as cE,
|
|
7345
|
+
Fc as cF,
|
|
7346
|
+
na as cG,
|
|
7347
|
+
oa as cH,
|
|
7348
|
+
ta as cI,
|
|
7349
|
+
Da as cJ,
|
|
7350
|
+
Va as cK,
|
|
7351
|
+
bc as cL,
|
|
7352
|
+
zr as cM,
|
|
7353
|
+
wo as cN,
|
|
7354
|
+
lo as cO,
|
|
7355
|
+
Ao as cP,
|
|
7356
|
+
Ic as cQ,
|
|
7357
|
+
Dc as cR,
|
|
7358
|
+
la as cS,
|
|
7359
|
+
Hc as cT,
|
|
7360
|
+
Fo as cU,
|
|
7361
|
+
Io as cV,
|
|
7362
|
+
jo as cW,
|
|
7363
|
+
$c as cX,
|
|
7364
|
+
nd as cY,
|
|
7365
|
+
Lr as cZ,
|
|
7366
|
+
Pc as c_,
|
|
7367
|
+
Zo as ca,
|
|
7368
|
+
Vo as cb,
|
|
7369
|
+
Mo as cc,
|
|
7370
|
+
Do as cd,
|
|
7371
|
+
fo as ce,
|
|
7372
|
+
mc as cf,
|
|
7373
|
+
vc as cg,
|
|
7374
|
+
kr as ch,
|
|
7375
|
+
Yr as ci,
|
|
7376
|
+
Tc as cj,
|
|
7377
|
+
Wr as ck,
|
|
7378
|
+
Hr as cl,
|
|
7379
|
+
Ac as cm,
|
|
7380
|
+
Cc as cn,
|
|
7381
|
+
ko as co,
|
|
7382
|
+
Vc as cp,
|
|
7383
|
+
Qc as cq,
|
|
7384
|
+
Nc as cr,
|
|
7385
|
+
Gc as cs,
|
|
7386
|
+
Uc as ct,
|
|
7387
|
+
La as cu,
|
|
7388
|
+
Sa as cv,
|
|
7389
|
+
Pa as cw,
|
|
7390
|
+
wa as cx,
|
|
7391
|
+
zc as cy,
|
|
7392
|
+
lc as cz,
|
|
7368
7393
|
ae as d,
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7394
|
+
Cr as d0,
|
|
7395
|
+
bo as d1,
|
|
7396
|
+
ed as d2,
|
|
7397
|
+
sd as d3,
|
|
7398
|
+
Bo as d4,
|
|
7399
|
+
ha as d5,
|
|
7400
|
+
va as d6,
|
|
7401
|
+
dc as d7,
|
|
7402
|
+
Pr as d8,
|
|
7403
|
+
$o as d9,
|
|
7404
|
+
Vr as dA,
|
|
7380
7405
|
is as dB,
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7406
|
+
Co as da,
|
|
7407
|
+
gc as db,
|
|
7408
|
+
Ro as dc,
|
|
7409
|
+
io as dd,
|
|
7410
|
+
_o as de,
|
|
7411
|
+
ka as df,
|
|
7412
|
+
Ko as dg,
|
|
7413
|
+
Ba as dh,
|
|
7414
|
+
qa as di,
|
|
7415
|
+
xa as dj,
|
|
7416
|
+
Aa as dk,
|
|
7417
|
+
Ga as dl,
|
|
7418
|
+
cc as dm,
|
|
7419
|
+
ma as dn,
|
|
7420
|
+
hc as dp,
|
|
7421
|
+
kc as dq,
|
|
7422
|
+
wc as dr,
|
|
7423
|
+
Xc as ds,
|
|
7424
|
+
qn as dt,
|
|
7425
|
+
lr as du,
|
|
7426
|
+
pr as dv,
|
|
7427
|
+
fr as dw,
|
|
7428
|
+
Ri as dx,
|
|
7429
|
+
sc as dy,
|
|
7405
7430
|
rs as dz,
|
|
7406
|
-
|
|
7431
|
+
ki as e,
|
|
7407
7432
|
bs as f,
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7433
|
+
mn as g,
|
|
7434
|
+
Si as h,
|
|
7435
|
+
Ys as i,
|
|
7436
|
+
Pi as j,
|
|
7437
|
+
Or as k,
|
|
7438
|
+
_i as l,
|
|
7439
|
+
fe as m,
|
|
7440
|
+
Mr as n,
|
|
7441
|
+
Gi as o,
|
|
7442
|
+
di as p,
|
|
7418
7443
|
Ie as q,
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7444
|
+
_a as r,
|
|
7445
|
+
Ln as s,
|
|
7446
|
+
de as t,
|
|
7447
|
+
Ks as u,
|
|
7423
7448
|
z as v,
|
|
7424
7449
|
us as w,
|
|
7425
|
-
|
|
7426
|
-
|
|
7450
|
+
le as x,
|
|
7451
|
+
Mi as y,
|
|
7427
7452
|
q as z
|
|
7428
7453
|
};
|