@ynput/ayon-frontend-shared 0.5.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 +307 -311
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +99 -92
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4459 -2959
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/api.es.js +331 -329
- package/dist/chunks/Actions.es.js +32 -27
- 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/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +74 -69
- package/dist/chunks/EntityPickerDialog.es.js +25 -21
- package/dist/chunks/EntityTooltip.es.js +29 -22
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +2321 -2668
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -256
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2895 -4919
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +4215 -1179
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +4 -4
- package/dist/chunks/ReviewablesSelector.es.js +468 -460
- package/dist/chunks/SimpleForm.es.js +18 -18
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +109 -98
- package/dist/chunks/TableSettingsFallback.es.js +22 -10
- package/dist/chunks/ThumbnailSimple.es.js +290 -52
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +669 -644
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/expandRelativeDates.es.js +27 -0
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getUris.es.js +737 -710
- package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
- package/dist/chunks/searchTerms.es.js +179 -174
- package/dist/chunks/useAttributeEnums.es.js +9 -9
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useDateRangeFilter.es.js +3 -3
- 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 +74 -57
- package/dist/components.es.js +1432 -1001
- package/dist/context.es.js +791 -78
- package/dist/hooks.es.js +95 -94
- package/dist/index.es.js +27 -26
- package/dist/types/Actions.d.ts +15 -15
- package/dist/types/ContextMenu.d.ts +19 -16
- package/dist/types/DetailsPanel.d.ts +110 -17
- package/dist/types/EntityPickerDialog.d.ts +15 -15
- package/dist/types/Feed.d.ts +19 -16
- package/dist/types/ListTable.d.ts +15 -15
- package/dist/types/NewEntity.d.ts +24 -18
- package/dist/types/ProjectTreeTable.d.ts +34 -123
- package/dist/types/RepresentationsList.d.ts +15 -15
- package/dist/types/SimpleTable.d.ts +19 -16
- package/dist/types/Slicer.d.ts +18 -15
- package/dist/types/Views.d.ts +19 -16
- package/dist/types/api.d.ts +515 -207
- package/dist/types/components.d.ts +84 -20
- package/dist/types/context.d.ts +108 -25
- package/dist/types/hooks.d.ts +15 -15
- package/dist/types/index.d.ts +15 -15
- package/dist/types/util.d.ts +20 -15
- package/dist/util.es.js +117 -105
- package/package.json +16 -4
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- 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/mentionTypeOptions.es.js +0 -15
- package/dist/chunks/useColumnDragRestriction.es.js +0 -148
- package/dist/chunks/useLocalStorage.es.js +0 -355
- /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ad as Xt,
|
|
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,23 +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
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
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) => {
|
|
4908
4909
|
if (s)
|
|
4909
4910
|
for (const n of t.pages) {
|
|
4910
4911
|
const i = n.activities.findIndex((r) => r.activityId === e.activityId);
|
|
@@ -4924,23 +4925,23 @@ const N = z.injectEndpoints({
|
|
|
4924
4925
|
}
|
|
4925
4926
|
!n && t.pages.length > 0 && t.pages[0].activities.unshift(e);
|
|
4926
4927
|
}
|
|
4927
|
-
},
|
|
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) => {
|
|
4928
4929
|
const { dispatch: c, queryFulfilled: d, getState: u } = r, o = n.map((g) => g.id) || [];
|
|
4929
|
-
|
|
4930
|
+
Ti(s);
|
|
4930
4931
|
const l = [...e, ...o].map((g) => ({
|
|
4931
4932
|
type: "entityActivities",
|
|
4932
4933
|
id: g + "-" + ss(s)
|
|
4933
|
-
})), p = u(), f =
|
|
4934
|
+
})), p = u(), f = ye.util.selectInvalidatedBy(p, l);
|
|
4934
4935
|
a !== "delete" && t.data && (t.activityData = { ...t.activityData, ...t.data });
|
|
4935
4936
|
const y = f.map(
|
|
4936
4937
|
({ originalArgs: g }) => c(
|
|
4937
|
-
|
|
4938
|
+
ye.util.updateQueryData(
|
|
4938
4939
|
"getActivitiesInfinite",
|
|
4939
4940
|
g,
|
|
4940
|
-
(m) =>
|
|
4941
|
+
(m) => Ii(m, t, a === "delete")
|
|
4941
4942
|
)
|
|
4942
4943
|
)
|
|
4943
|
-
), h =
|
|
4944
|
+
), h = mi(
|
|
4944
4945
|
{ patch: t, ...i },
|
|
4945
4946
|
r,
|
|
4946
4947
|
a
|
|
@@ -4957,7 +4958,7 @@ const N = z.injectEndpoints({
|
|
|
4957
4958
|
id: t + "-" + i
|
|
4958
4959
|
}));
|
|
4959
4960
|
return n.push({ type: "activity", id: "LIST" }), n.push({ type: "watchers", id: t }), n;
|
|
4960
|
-
},
|
|
4961
|
+
}, ki = ye.injectEndpoints({
|
|
4961
4962
|
endpoints: (t) => ({
|
|
4962
4963
|
createEntityActivity: t.mutation({
|
|
4963
4964
|
query: ({ projectName: e, entityType: s, entityId: n, data: i = {} }) => ({
|
|
@@ -4998,14 +4999,14 @@ const N = z.injectEndpoints({
|
|
|
4998
4999
|
}),
|
|
4999
5000
|
overrideExisting: !0
|
|
5000
5001
|
}), {
|
|
5001
|
-
useCreateEntityActivityMutation:
|
|
5002
|
-
useDeleteActivityMutation:
|
|
5003
|
-
useUpdateActivityMutation:
|
|
5004
|
-
} =
|
|
5002
|
+
useCreateEntityActivityMutation: so,
|
|
5003
|
+
useDeleteActivityMutation: no,
|
|
5004
|
+
useUpdateActivityMutation: io
|
|
5005
|
+
} = ki, Ht = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
|
|
5005
5006
|
const a = [{ type: "activity", id: t }];
|
|
5006
|
-
return
|
|
5007
|
+
return ye.util.selectInvalidatedBy(n(), a).map((d) => i(
|
|
5007
5008
|
// @ts-ignore
|
|
5008
|
-
|
|
5009
|
+
ye.util.updateQueryData(
|
|
5009
5010
|
"getActivitiesInfinite",
|
|
5010
5011
|
d.originalArgs,
|
|
5011
5012
|
(u) => {
|
|
@@ -5039,7 +5040,7 @@ const N = z.injectEndpoints({
|
|
|
5039
5040
|
}
|
|
5040
5041
|
)
|
|
5041
5042
|
));
|
|
5042
|
-
},
|
|
5043
|
+
}, Ai = Pe.enhanceEndpoints({
|
|
5043
5044
|
endpoints: {
|
|
5044
5045
|
createReactionToActivity: {
|
|
5045
5046
|
async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
|
|
@@ -5078,23 +5079,23 @@ const N = z.injectEndpoints({
|
|
|
5078
5079
|
}
|
|
5079
5080
|
}
|
|
5080
5081
|
}
|
|
5081
|
-
}), { useCreateReactionToActivityMutation:
|
|
5082
|
+
}), { useCreateReactionToActivityMutation: ro, useDeleteReactionToActivityMutation: ao } = Ai, Wt = Pe.enhanceEndpoints({
|
|
5082
5083
|
endpoints: {
|
|
5083
5084
|
suggestEntityMention: {}
|
|
5084
5085
|
}
|
|
5085
|
-
}),
|
|
5086
|
+
}), wi = Wt.injectEndpoints({
|
|
5086
5087
|
endpoints: (t) => ({
|
|
5087
5088
|
getEntityMentions: t.query({
|
|
5088
5089
|
queryFn: async (e, { dispatch: s }) => {
|
|
5089
5090
|
const n = await s(
|
|
5090
5091
|
Wt.endpoints.suggestEntityMention.initiate(e)
|
|
5091
5092
|
);
|
|
5092
|
-
return n.error ? { error:
|
|
5093
|
+
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
5093
5094
|
},
|
|
5094
5095
|
providesTags: [{ type: "team", id: "LIST" }]
|
|
5095
5096
|
})
|
|
5096
5097
|
})
|
|
5097
|
-
}), { useGetEntityMentionsQuery:
|
|
5098
|
+
}), { useGetEntityMentionsQuery: oo } = wi, ot = { type: "category", id: "LIST" }, ct = { type: "addonSettings", id: "powerpack" }, dt = Pe.enhanceEndpoints({
|
|
5098
5099
|
endpoints: {
|
|
5099
5100
|
getActivityCategories: {
|
|
5100
5101
|
transformResponse: (t) => t.categories,
|
|
@@ -5105,7 +5106,7 @@ const N = z.injectEndpoints({
|
|
|
5105
5106
|
] : [ot, ct]
|
|
5106
5107
|
}
|
|
5107
5108
|
}
|
|
5108
|
-
}),
|
|
5109
|
+
}), Ei = dt.injectEndpoints({
|
|
5109
5110
|
endpoints: (t) => ({
|
|
5110
5111
|
getProjectsCategories: t.query({
|
|
5111
5112
|
async queryFn({ projects: e = [] }, { dispatch: s }) {
|
|
@@ -5126,13 +5127,13 @@ const N = z.injectEndpoints({
|
|
|
5126
5127
|
providesTags: [ot, ct]
|
|
5127
5128
|
})
|
|
5128
5129
|
})
|
|
5129
|
-
}), { useGetActivityCategoriesQuery:
|
|
5130
|
+
}), { useGetActivityCategoriesQuery: co } = dt, { useGetProjectsCategoriesQuery: uo } = Ei, ms = js.enhanceEndpoints({
|
|
5130
5131
|
endpoints: {
|
|
5131
5132
|
listAddons: {
|
|
5132
5133
|
providesTags: ["addonList"]
|
|
5133
5134
|
}
|
|
5134
5135
|
}
|
|
5135
|
-
}), { useListAddonsQuery:
|
|
5136
|
+
}), { useListAddonsQuery: lo } = ms, vs = ms.injectEndpoints({
|
|
5136
5137
|
endpoints: (t) => ({
|
|
5137
5138
|
// Return a list of addons which have project-scoped frontend
|
|
5138
5139
|
getProjectAddons: t.query({
|
|
@@ -5205,7 +5206,7 @@ const N = z.injectEndpoints({
|
|
|
5205
5206
|
})
|
|
5206
5207
|
}),
|
|
5207
5208
|
overrideExisting: !0
|
|
5208
|
-
}), { useGetProjectAddonsQuery:
|
|
5209
|
+
}), { useGetProjectAddonsQuery: po, useGetSettingsAddonsQuery: fo, useGetDashboardAddonsQuery: yo } = vs, it = vs.enhanceEndpoints({
|
|
5209
5210
|
endpoints: {
|
|
5210
5211
|
deleteAddonVersion: {
|
|
5211
5212
|
invalidatesTags: ["addonList"]
|
|
@@ -5239,7 +5240,7 @@ const N = z.injectEndpoints({
|
|
|
5239
5240
|
try {
|
|
5240
5241
|
return await Promise.all(n), { data: void 0 };
|
|
5241
5242
|
} catch (i) {
|
|
5242
|
-
return { error:
|
|
5243
|
+
return { error: L(i) };
|
|
5243
5244
|
}
|
|
5244
5245
|
}
|
|
5245
5246
|
}),
|
|
@@ -5261,7 +5262,7 @@ const N = z.injectEndpoints({
|
|
|
5261
5262
|
return { data: (await Promise.allSettled(i)).filter((c) => c.status === "fulfilled").flatMap((c) => c.value.data?.eventId ? [c.value.data.eventId] : []) };
|
|
5262
5263
|
} catch (r) {
|
|
5263
5264
|
return {
|
|
5264
|
-
error:
|
|
5265
|
+
error: L(r)
|
|
5265
5266
|
};
|
|
5266
5267
|
}
|
|
5267
5268
|
}
|
|
@@ -5269,7 +5270,7 @@ const N = z.injectEndpoints({
|
|
|
5269
5270
|
}),
|
|
5270
5271
|
// endpoints
|
|
5271
5272
|
overrideExisting: !0
|
|
5272
|
-
}), { useDeleteAddonVersionsMutation:
|
|
5273
|
+
}), { useDeleteAddonVersionsMutation: go, useDownloadAddonsMutation: ho } = bs, Is = Fs.enhanceEndpoints({
|
|
5273
5274
|
endpoints: {
|
|
5274
5275
|
getAttributeList: {
|
|
5275
5276
|
transformResponse: (t) => t.attributes || [],
|
|
@@ -5282,7 +5283,7 @@ const N = z.injectEndpoints({
|
|
|
5282
5283
|
]
|
|
5283
5284
|
}
|
|
5284
5285
|
}
|
|
5285
|
-
}), { useGetAttributeListQuery:
|
|
5286
|
+
}), { useGetAttributeListQuery: mo, useGetAttributeConfigQuery: vo } = Is, Si = Is.enhanceEndpoints({
|
|
5286
5287
|
endpoints: {
|
|
5287
5288
|
setAttributeList: {
|
|
5288
5289
|
invalidatesTags: ["attribute"]
|
|
@@ -5294,21 +5295,21 @@ const N = z.injectEndpoints({
|
|
|
5294
5295
|
invalidatesTags: (t, e, { attributeName: s }) => [{ type: "attribute", id: s }]
|
|
5295
5296
|
}
|
|
5296
5297
|
}
|
|
5297
|
-
}), { useSetAttributeListMutation:
|
|
5298
|
+
}), { useSetAttributeListMutation: bo, usePatchAttributeConfigMutation: Io } = Si, Pi = _s.enhanceEndpoints({
|
|
5298
5299
|
endpoints: {
|
|
5299
5300
|
createSession: {},
|
|
5300
5301
|
getUserPools: {
|
|
5301
5302
|
providesTags: [{ type: "userPool", id: "LIST" }]
|
|
5302
5303
|
}
|
|
5303
5304
|
}
|
|
5304
|
-
}), { useCreateSessionMutation:
|
|
5305
|
+
}), { useCreateSessionMutation: To, useGetUserPoolsQuery: ko } = Pi, ut = Rs.enhanceEndpoints({
|
|
5305
5306
|
endpoints: {
|
|
5306
5307
|
listBundles: {
|
|
5307
5308
|
providesTags: () => [{ type: "bundleList" }]
|
|
5308
5309
|
},
|
|
5309
5310
|
checkBundleCompatibility: {}
|
|
5310
5311
|
}
|
|
5311
|
-
}),
|
|
5312
|
+
}), Li = Se.enhanceEndpoints({
|
|
5312
5313
|
endpoints: {
|
|
5313
5314
|
getProjectBundleInfo: {
|
|
5314
5315
|
providesTags: (t, e, { projectName: s }) => [
|
|
@@ -5317,7 +5318,7 @@ const N = z.injectEndpoints({
|
|
|
5317
5318
|
]
|
|
5318
5319
|
}
|
|
5319
5320
|
}
|
|
5320
|
-
}), { useListBundlesQuery:
|
|
5321
|
+
}), { useListBundlesQuery: Ao, useLazyListBundlesQuery: wo, useCheckBundleCompatibilityQuery: Eo } = ut, { useGetProjectBundleInfoQuery: So } = Li, ji = ut.enhanceEndpoints({
|
|
5321
5322
|
endpoints: {
|
|
5322
5323
|
migrateSettingsByBundle: {
|
|
5323
5324
|
invalidatesTags: () => [
|
|
@@ -5352,7 +5353,7 @@ const N = z.injectEndpoints({
|
|
|
5352
5353
|
]
|
|
5353
5354
|
}
|
|
5354
5355
|
}
|
|
5355
|
-
}),
|
|
5356
|
+
}), Fi = Se.enhanceEndpoints({
|
|
5356
5357
|
endpoints: {
|
|
5357
5358
|
unsetProjectBundle: {
|
|
5358
5359
|
invalidatesTags: (t, e, { projectName: s }) => [
|
|
@@ -5365,7 +5366,7 @@ const N = z.injectEndpoints({
|
|
|
5365
5366
|
]
|
|
5366
5367
|
}
|
|
5367
5368
|
}
|
|
5368
|
-
}),
|
|
5369
|
+
}), _i = ji.injectEndpoints({
|
|
5369
5370
|
endpoints: (t) => ({
|
|
5370
5371
|
deleteBundle: t.mutation({
|
|
5371
5372
|
query: ({ name: e }) => ({
|
|
@@ -5419,12 +5420,12 @@ const N = z.injectEndpoints({
|
|
|
5419
5420
|
// endpoints
|
|
5420
5421
|
overrideExisting: !0
|
|
5421
5422
|
}), {
|
|
5422
|
-
useDeleteBundleMutation:
|
|
5423
|
-
useCreateBundleMutation:
|
|
5424
|
-
usePromoteBundleMutation:
|
|
5425
|
-
useMigrateSettingsByBundleMutation:
|
|
5426
|
-
useUpdateBundleMutation:
|
|
5427
|
-
} =
|
|
5423
|
+
useDeleteBundleMutation: Po,
|
|
5424
|
+
useCreateBundleMutation: Lo,
|
|
5425
|
+
usePromoteBundleMutation: jo,
|
|
5426
|
+
useMigrateSettingsByBundleMutation: Fo,
|
|
5427
|
+
useUpdateBundleMutation: _o
|
|
5428
|
+
} = _i, { useUnsetProjectBundleMutation: Ro } = Fi, Ri = Gs.enhanceEndpoints({
|
|
5428
5429
|
endpoints: {
|
|
5429
5430
|
getYnputCloudInfo: {
|
|
5430
5431
|
providesTags: ["connections"]
|
|
@@ -5440,11 +5441,11 @@ const N = z.injectEndpoints({
|
|
|
5440
5441
|
}
|
|
5441
5442
|
}
|
|
5442
5443
|
}), {
|
|
5443
|
-
useGetYnputCloudInfoQuery:
|
|
5444
|
-
useSetYnputCloudKeyMutation:
|
|
5445
|
-
useDeleteYnputCloudKeyMutation:
|
|
5446
|
-
useGetFeedbackVerificationQuery:
|
|
5447
|
-
} =
|
|
5444
|
+
useGetYnputCloudInfoQuery: Go,
|
|
5445
|
+
useSetYnputCloudKeyMutation: Co,
|
|
5446
|
+
useDeleteYnputCloudKeyMutation: No,
|
|
5447
|
+
useGetFeedbackVerificationQuery: Qo
|
|
5448
|
+
} = Ri, Ts = Cs.enhanceEndpoints({
|
|
5448
5449
|
endpoints: {
|
|
5449
5450
|
getServerConfig: {
|
|
5450
5451
|
providesTags: ["config"]
|
|
@@ -5458,17 +5459,17 @@ const N = z.injectEndpoints({
|
|
|
5458
5459
|
}
|
|
5459
5460
|
}
|
|
5460
5461
|
}), {
|
|
5461
|
-
useGetServerConfigQuery:
|
|
5462
|
-
useGetServerConfigOverridesQuery:
|
|
5463
|
-
useGetServerConfigSchemaQuery:
|
|
5464
|
-
useGetConfigValueQuery:
|
|
5465
|
-
} = Ts,
|
|
5462
|
+
useGetServerConfigQuery: Mo,
|
|
5463
|
+
useGetServerConfigOverridesQuery: Vo,
|
|
5464
|
+
useGetServerConfigSchemaQuery: Do,
|
|
5465
|
+
useGetConfigValueQuery: Oo
|
|
5466
|
+
} = Ts, Gi = Ts.enhanceEndpoints({
|
|
5466
5467
|
endpoints: {
|
|
5467
5468
|
setServerConfig: {
|
|
5468
5469
|
invalidatesTags: ["config"]
|
|
5469
5470
|
}
|
|
5470
5471
|
}
|
|
5471
|
-
}), { useSetServerConfigMutation:
|
|
5472
|
+
}), { useSetServerConfigMutation: $o } = Gi, lt = ue.enhanceEndpoints({
|
|
5472
5473
|
endpoints: {
|
|
5473
5474
|
getEntityListAttributesDefinition: {
|
|
5474
5475
|
providesTags: (t, e, { listId: s }) => t ? [
|
|
@@ -5477,7 +5478,7 @@ const N = z.injectEndpoints({
|
|
|
5477
5478
|
] : [{ type: "entityListAttribute", id: "LIST" }]
|
|
5478
5479
|
}
|
|
5479
5480
|
}
|
|
5480
|
-
}), { 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({
|
|
5481
5482
|
endpoints: {
|
|
5482
5483
|
// same caching as the other column stats endpoints: `targets` excluded
|
|
5483
5484
|
// from the cache key, responses merged, only added targets refetch
|
|
@@ -5485,7 +5486,7 @@ const N = z.injectEndpoints({
|
|
|
5485
5486
|
transformResponse: (t) => {
|
|
5486
5487
|
const e = t?.project?.entityLists?.edges?.[0]?.node?.items?.fieldStats ?? [];
|
|
5487
5488
|
return ke(
|
|
5488
|
-
e.map((s) => ({ ...s, columnName:
|
|
5489
|
+
e.map((s) => ({ ...s, columnName: Ni(s.columnName) }))
|
|
5489
5490
|
);
|
|
5490
5491
|
},
|
|
5491
5492
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
@@ -5497,7 +5498,7 @@ const N = z.injectEndpoints({
|
|
|
5497
5498
|
]
|
|
5498
5499
|
}
|
|
5499
5500
|
}
|
|
5500
|
-
}), { useGetListItemsColumnStatsQuery:
|
|
5501
|
+
}), { useGetListItemsColumnStatsQuery: qo } = Qi, Mi = lt.enhanceEndpoints({
|
|
5501
5502
|
endpoints: {
|
|
5502
5503
|
setEntityListAttributesDefinition: {
|
|
5503
5504
|
onQueryStarted: async (t, { dispatch: e, queryFulfilled: s }) => {
|
|
@@ -5517,7 +5518,7 @@ const N = z.injectEndpoints({
|
|
|
5517
5518
|
invalidatesTags: (t, e, { listId: s }) => [{ type: "entityListAttribute", id: s }]
|
|
5518
5519
|
}
|
|
5519
5520
|
}
|
|
5520
|
-
}), { useSetEntityListAttributesDefinitionMutation:
|
|
5521
|
+
}), { useSetEntityListAttributesDefinitionMutation: Bo } = Mi, Ge = { type: "entityListFolder", id: "LIST" }, Me = ue.enhanceEndpoints({
|
|
5521
5522
|
endpoints: {
|
|
5522
5523
|
getEntityListFolders: {
|
|
5523
5524
|
transformResponse: (t) => t.folders || [],
|
|
@@ -5605,15 +5606,15 @@ const N = z.injectEndpoints({
|
|
|
5605
5606
|
}
|
|
5606
5607
|
}
|
|
5607
5608
|
}), {
|
|
5608
|
-
useGetEntityListFoldersQuery:
|
|
5609
|
-
useCreateEntityListFolderMutation:
|
|
5610
|
-
useDeleteEntityListFolderMutation:
|
|
5611
|
-
useUpdateEntityListFolderMutation:
|
|
5612
|
-
} = Me,
|
|
5609
|
+
useGetEntityListFoldersQuery: Ho,
|
|
5610
|
+
useCreateEntityListFolderMutation: Wo,
|
|
5611
|
+
useDeleteEntityListFolderMutation: zo,
|
|
5612
|
+
useUpdateEntityListFolderMutation: Ko
|
|
5613
|
+
} = Me, Vi = Ns.enhanceEndpoints({
|
|
5613
5614
|
endpoints: {
|
|
5614
5615
|
getEntityGroups: {}
|
|
5615
5616
|
}
|
|
5616
|
-
}), { useGetEntityGroupsQuery:
|
|
5617
|
+
}), { useGetEntityGroupsQuery: Jo } = Vi, zt = async (t, e, s, n) => {
|
|
5617
5618
|
switch (t) {
|
|
5618
5619
|
case "task":
|
|
5619
5620
|
return (await n(
|
|
@@ -5673,14 +5674,14 @@ const N = z.injectEndpoints({
|
|
|
5673
5674
|
dispatch: d
|
|
5674
5675
|
}, u = []) => {
|
|
5675
5676
|
const o = (p, f, y) => {
|
|
5676
|
-
const g =
|
|
5677
|
+
const g = le.util.selectCachedArgsForQuery(c, "getEntityLinks").filter(
|
|
5677
5678
|
(v) => v.projectName === t && v.entityType === p.entityType
|
|
5678
5679
|
);
|
|
5679
5680
|
let m = !1;
|
|
5680
5681
|
for (const v of g)
|
|
5681
5682
|
try {
|
|
5682
5683
|
const b = d(
|
|
5683
|
-
|
|
5684
|
+
le.util.updateQueryData(
|
|
5684
5685
|
"getEntityLinks",
|
|
5685
5686
|
v,
|
|
5686
5687
|
(I) => {
|
|
@@ -5710,7 +5711,7 @@ const N = z.injectEndpoints({
|
|
|
5710
5711
|
A !== -1 ? k.links[A] = T : (console.log(
|
|
5711
5712
|
`Adding new link to ${p.entityType} links cache`,
|
|
5712
5713
|
T,
|
|
5713
|
-
|
|
5714
|
+
zs(k)
|
|
5714
5715
|
), k.links.push(T));
|
|
5715
5716
|
}
|
|
5716
5717
|
}
|
|
@@ -5723,7 +5724,7 @@ const N = z.injectEndpoints({
|
|
|
5723
5724
|
m || (p.entityId === e.entityId ? (console.warn(
|
|
5724
5725
|
`Source ${p.entityType} ${p.entityId} not in cache - invalidating to refresh UI`
|
|
5725
5726
|
), d(
|
|
5726
|
-
|
|
5727
|
+
le.util.invalidateTags([
|
|
5727
5728
|
{ type: "link", id: `${t}-${p.entityType}` }
|
|
5728
5729
|
])
|
|
5729
5730
|
)) : console.log(
|
|
@@ -5731,7 +5732,7 @@ const N = z.injectEndpoints({
|
|
|
5731
5732
|
));
|
|
5732
5733
|
};
|
|
5733
5734
|
o(e, s, r), o(s, e, r === "in" ? "out" : "in");
|
|
5734
|
-
},
|
|
5735
|
+
}, Di = Qs.enhanceEndpoints({
|
|
5735
5736
|
endpoints: {
|
|
5736
5737
|
deleteEntityLink: {
|
|
5737
5738
|
async onQueryStarted({ linkId: t, projectName: e, patch: s }, { dispatch: n, getState: i, queryFulfilled: r }) {
|
|
@@ -5758,7 +5759,7 @@ const N = z.injectEndpoints({
|
|
|
5758
5759
|
for (const f of c)
|
|
5759
5760
|
f.undo();
|
|
5760
5761
|
n(
|
|
5761
|
-
|
|
5762
|
+
le.util.invalidateTags([
|
|
5762
5763
|
{ type: "link", id: `${e}-${d.entityType}` },
|
|
5763
5764
|
{ type: "link", id: `${e}-${u.entityType}` }
|
|
5764
5765
|
])
|
|
@@ -5824,7 +5825,7 @@ const N = z.injectEndpoints({
|
|
|
5824
5825
|
for (const b of u)
|
|
5825
5826
|
b.undo();
|
|
5826
5827
|
o && f && n(
|
|
5827
|
-
|
|
5828
|
+
le.util.invalidateTags([
|
|
5828
5829
|
{ type: "link", id: `${t}-${o.entityType}` },
|
|
5829
5830
|
{ type: "link", id: `${t}-${f.entityType}` }
|
|
5830
5831
|
])
|
|
@@ -5833,7 +5834,7 @@ const N = z.injectEndpoints({
|
|
|
5833
5834
|
}
|
|
5834
5835
|
}
|
|
5835
5836
|
}
|
|
5836
|
-
}), { 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({
|
|
5837
5838
|
endpoints: (t) => ({
|
|
5838
5839
|
getSearchedEntitiesLinks: t.infiniteQuery({
|
|
5839
5840
|
infiniteQueryOptions: {
|
|
@@ -5850,7 +5851,7 @@ const N = z.injectEndpoints({
|
|
|
5850
5851
|
try {
|
|
5851
5852
|
const { projectName: i, entityType: r, search: a, parentIds: c, hasReviewables: d, includeTask: u } = e, { cursor: o } = s, l = {
|
|
5852
5853
|
projectName: i,
|
|
5853
|
-
first:
|
|
5854
|
+
first: Oi
|
|
5854
5855
|
};
|
|
5855
5856
|
o && (l.after = o), l.search = a || "", l.parentIds = c, l.hasReviewables = d, l.includeTask = !!u;
|
|
5856
5857
|
let p;
|
|
@@ -5983,12 +5984,12 @@ const N = z.injectEndpoints({
|
|
|
5983
5984
|
}
|
|
5984
5985
|
};
|
|
5985
5986
|
} catch (i) {
|
|
5986
|
-
return console.error("Error in getSearchedEntitiesLinks queryFn:", i), { error:
|
|
5987
|
+
return console.error("Error in getSearchedEntitiesLinks queryFn:", i), { error: L(i) };
|
|
5987
5988
|
}
|
|
5988
5989
|
}
|
|
5989
5990
|
})
|
|
5990
5991
|
})
|
|
5991
|
-
}), { useGetSearchedEntitiesLinksInfiniteQuery:
|
|
5992
|
+
}), { useGetSearchedEntitiesLinksInfiniteQuery: Zo } = $i, xi = Zt.enhanceEndpoints({
|
|
5992
5993
|
endpoints: {
|
|
5993
5994
|
getMyPermissions: {
|
|
5994
5995
|
providesTags: (t) => [{ type: "userPermissions" }]
|
|
@@ -5997,13 +5998,13 @@ const N = z.injectEndpoints({
|
|
|
5997
5998
|
providesTags: (t, e, s) => [{ type: "userProjectPermissions" }]
|
|
5998
5999
|
}
|
|
5999
6000
|
}
|
|
6000
|
-
}), { useGetMyPermissionsQuery:
|
|
6001
|
+
}), { useGetMyPermissionsQuery: ec, useGetMyProjectPermissionsQuery: tc } = xi, ks = Ms.enhanceEndpoints({
|
|
6001
6002
|
endpoints: {
|
|
6002
6003
|
getProductTypes: {
|
|
6003
6004
|
providesTags: (t, e, s) => [{ type: "productType", id: "LIST" }]
|
|
6004
6005
|
}
|
|
6005
6006
|
}
|
|
6006
|
-
}), { useGetProductTypesQuery:
|
|
6007
|
+
}), { useGetProductTypesQuery: sc } = ks, Ui = ks.enhanceEndpoints({
|
|
6007
6008
|
endpoints: {
|
|
6008
6009
|
createProduct: {
|
|
6009
6010
|
invalidatesTags: (t, e, { productPostModel: s }) => [
|
|
@@ -6011,7 +6012,7 @@ const N = z.injectEndpoints({
|
|
|
6011
6012
|
]
|
|
6012
6013
|
}
|
|
6013
6014
|
}
|
|
6014
|
-
}), { useCreateProductMutation:
|
|
6015
|
+
}), { useCreateProductMutation: nc } = Ui, qi = Q.enhanceEndpoints({
|
|
6015
6016
|
endpoints: {
|
|
6016
6017
|
GetFolderProducts: {
|
|
6017
6018
|
transformResponse: (t) => (t?.project?.products?.edges || []).map((s) => ({
|
|
@@ -6035,7 +6036,7 @@ const N = z.injectEndpoints({
|
|
|
6035
6036
|
] : [{ type: "product", id: s }]
|
|
6036
6037
|
}
|
|
6037
6038
|
}
|
|
6038
|
-
}), { useGetFolderProductsQuery:
|
|
6039
|
+
}), { useGetFolderProductsQuery: ic } = qi, oe = { type: "projectFolder", id: "LIST" }, Ve = Vs.enhanceEndpoints({
|
|
6039
6040
|
endpoints: {
|
|
6040
6041
|
getProjectFolders: {
|
|
6041
6042
|
transformResponse: (t) => t.folders || [],
|
|
@@ -6164,12 +6165,12 @@ const N = z.injectEndpoints({
|
|
|
6164
6165
|
}
|
|
6165
6166
|
}
|
|
6166
6167
|
}), {
|
|
6167
|
-
useGetProjectFoldersQuery:
|
|
6168
|
-
useCreateProjectFolderMutation:
|
|
6169
|
-
useDeleteProjectFolderMutation:
|
|
6170
|
-
useUpdateProjectFolderMutation:
|
|
6171
|
-
useSetProjectFoldersOrderMutation:
|
|
6172
|
-
useAssignProjectsToFolderMutation:
|
|
6168
|
+
useGetProjectFoldersQuery: rc,
|
|
6169
|
+
useCreateProjectFolderMutation: ac,
|
|
6170
|
+
useDeleteProjectFolderMutation: oc,
|
|
6171
|
+
useUpdateProjectFolderMutation: cc,
|
|
6172
|
+
useSetProjectFoldersOrderMutation: dc,
|
|
6173
|
+
useAssignProjectsToFolderMutation: uc
|
|
6173
6174
|
} = Ve, As = (t, {
|
|
6174
6175
|
productId: e,
|
|
6175
6176
|
taskId: s,
|
|
@@ -6205,7 +6206,7 @@ const N = z.injectEndpoints({
|
|
|
6205
6206
|
a.push(...u);
|
|
6206
6207
|
}
|
|
6207
6208
|
return a;
|
|
6208
|
-
},
|
|
6209
|
+
}, Bi = X.enhanceEndpoints({
|
|
6209
6210
|
endpoints: {
|
|
6210
6211
|
getReviewablesForVersion: {
|
|
6211
6212
|
keepUnusedDataFor: 1,
|
|
@@ -6268,7 +6269,7 @@ const N = z.injectEndpoints({
|
|
|
6268
6269
|
}
|
|
6269
6270
|
}
|
|
6270
6271
|
}
|
|
6271
|
-
}), ht =
|
|
6272
|
+
}), ht = Bi.injectEndpoints({
|
|
6272
6273
|
endpoints: (t) => ({
|
|
6273
6274
|
// custom endpoint to get reviewables from product/task/folder
|
|
6274
6275
|
// utilizes getReviewablesForProduct, getReviewablesForTask, getReviewablesForFolder
|
|
@@ -6298,10 +6299,10 @@ const N = z.injectEndpoints({
|
|
|
6298
6299
|
)
|
|
6299
6300
|
)).error), !a)
|
|
6300
6301
|
return {
|
|
6301
|
-
error:
|
|
6302
|
+
error: L("No query found", 400)
|
|
6302
6303
|
};
|
|
6303
6304
|
const c = await r(a);
|
|
6304
|
-
return c.error ? { error:
|
|
6305
|
+
return c.error ? { error: L(c.error) } : { data: c.data };
|
|
6305
6306
|
},
|
|
6306
6307
|
providesTags: (e, s, n) => As(e, n, !0),
|
|
6307
6308
|
async onCacheEntryAdded({ productId: e, taskId: s, folderId: n }, { cacheDataLoaded: i, cacheEntryRemoved: r, dispatch: a, getCacheEntry: c }) {
|
|
@@ -6335,10 +6336,10 @@ const N = z.injectEndpoints({
|
|
|
6335
6336
|
})
|
|
6336
6337
|
})
|
|
6337
6338
|
}), {
|
|
6338
|
-
useGetViewerReviewablesQuery:
|
|
6339
|
-
useGetReviewablesForVersionQuery:
|
|
6340
|
-
useHasTranscoderQuery:
|
|
6341
|
-
} = ht,
|
|
6339
|
+
useGetViewerReviewablesQuery: lc,
|
|
6340
|
+
useGetReviewablesForVersionQuery: pc,
|
|
6341
|
+
useHasTranscoderQuery: fc
|
|
6342
|
+
} = ht, Hi = ht.injectEndpoints({
|
|
6342
6343
|
endpoints: (t) => ({
|
|
6343
6344
|
deleteReviewable: t.mutation(
|
|
6344
6345
|
{
|
|
@@ -6347,16 +6348,16 @@ const N = z.injectEndpoints({
|
|
|
6347
6348
|
const n = await s(
|
|
6348
6349
|
Pe.endpoints.deleteProjectActivity.initiate(e)
|
|
6349
6350
|
);
|
|
6350
|
-
return n.error ? { error:
|
|
6351
|
+
return n.error ? { error: L(n.error) } : { data: n.data };
|
|
6351
6352
|
} catch (n) {
|
|
6352
|
-
return { error:
|
|
6353
|
+
return { error: L(n) };
|
|
6353
6354
|
}
|
|
6354
6355
|
},
|
|
6355
6356
|
invalidatesTags: (e, s, n) => [{ type: "review", id: n.activityId }]
|
|
6356
6357
|
}
|
|
6357
6358
|
)
|
|
6358
6359
|
})
|
|
6359
|
-
}),
|
|
6360
|
+
}), Wi = Hi.enhanceEndpoints({
|
|
6360
6361
|
endpoints: {
|
|
6361
6362
|
// reviewables list is updated optimistically
|
|
6362
6363
|
sortVersionReviewables: {
|
|
@@ -6389,16 +6390,16 @@ const N = z.injectEndpoints({
|
|
|
6389
6390
|
}
|
|
6390
6391
|
}
|
|
6391
6392
|
}), {
|
|
6392
|
-
useDeleteReviewableMutation:
|
|
6393
|
-
useSortVersionReviewablesMutation:
|
|
6394
|
-
useUpdateReviewableMutation:
|
|
6395
|
-
} =
|
|
6393
|
+
useDeleteReviewableMutation: yc,
|
|
6394
|
+
useSortVersionReviewablesMutation: gc,
|
|
6395
|
+
useUpdateReviewableMutation: hc
|
|
6396
|
+
} = Wi, Jt = (t) => {
|
|
6396
6397
|
const e = [{ type: "shared", id: "LIST" }];
|
|
6397
6398
|
return t && e.push({
|
|
6398
6399
|
type: "shared",
|
|
6399
6400
|
id: t.toUpperCase()
|
|
6400
6401
|
}), e;
|
|
6401
|
-
},
|
|
6402
|
+
}, zi = (t) => {
|
|
6402
6403
|
const e = [];
|
|
6403
6404
|
for (const s of t) {
|
|
6404
6405
|
const n = { type: "shared", id: s.value };
|
|
@@ -6424,14 +6425,14 @@ const N = z.injectEndpoints({
|
|
|
6424
6425
|
}
|
|
6425
6426
|
}
|
|
6426
6427
|
return e;
|
|
6427
|
-
},
|
|
6428
|
+
}, Ki = Xt.enhanceEndpoints({
|
|
6428
6429
|
endpoints: {
|
|
6429
6430
|
getShareOptions: {
|
|
6430
6431
|
transformResponse: (t) => t?.options || [],
|
|
6431
|
-
providesTags: (t, e, { projectName: s }) => t ? [...
|
|
6432
|
+
providesTags: (t, e, { projectName: s }) => t ? [...zi(t), ...Jt(s)] : Jt(s)
|
|
6432
6433
|
}
|
|
6433
6434
|
}
|
|
6434
|
-
}), { useGetShareOptionsQuery:
|
|
6435
|
+
}), { useGetShareOptionsQuery: mc } = Ki, Ji = Ds.enhanceEndpoints({
|
|
6435
6436
|
endpoints: {
|
|
6436
6437
|
getSiteInfo: {
|
|
6437
6438
|
providesTags: (t) => t ? [
|
|
@@ -6448,7 +6449,7 @@ const N = z.injectEndpoints({
|
|
|
6448
6449
|
providesTags: ["info"]
|
|
6449
6450
|
}
|
|
6450
6451
|
}
|
|
6451
|
-
}), { useGetSiteInfoQuery:
|
|
6452
|
+
}), { useGetSiteInfoQuery: vc, useLazyGetSiteInfoQuery: bc, useListFrontendModulesQuery: Ic } = Ji, Yi = rt.enhanceEndpoints({
|
|
6452
6453
|
endpoints: {
|
|
6453
6454
|
getTask: {
|
|
6454
6455
|
providesTags: (t, e, { taskId: s }) => [
|
|
@@ -6456,7 +6457,7 @@ const N = z.injectEndpoints({
|
|
|
6456
6457
|
]
|
|
6457
6458
|
}
|
|
6458
6459
|
}
|
|
6459
|
-
}), { useGetTaskQuery:
|
|
6460
|
+
}), { useGetTaskQuery: Tc } = Yi, Xi = (t, e, { state: s, dispatch: n }, i) => {
|
|
6460
6461
|
const r = [{ type: "entityListItem", id: t }], a = q.util.selectInvalidatedBy(s, r).filter((c) => c.endpointName === "getListItemsInfinite");
|
|
6461
6462
|
for (const c of a) {
|
|
6462
6463
|
const d = n(
|
|
@@ -6472,7 +6473,7 @@ const N = z.injectEndpoints({
|
|
|
6472
6473
|
);
|
|
6473
6474
|
i.push(d);
|
|
6474
6475
|
}
|
|
6475
|
-
},
|
|
6476
|
+
}, Zi = rt.injectEndpoints({
|
|
6476
6477
|
endpoints: (t) => ({
|
|
6477
6478
|
updateSubtasks: t.mutation({
|
|
6478
6479
|
queryFn: async ({ projectName: e, taskId: s, subtasks: n }, { dispatch: i }) => {
|
|
@@ -6487,7 +6488,7 @@ const N = z.injectEndpoints({
|
|
|
6487
6488
|
})
|
|
6488
6489
|
).unwrap(), { data: void 0 };
|
|
6489
6490
|
} catch (r) {
|
|
6490
|
-
return { error:
|
|
6491
|
+
return { error: L(r) };
|
|
6491
6492
|
}
|
|
6492
6493
|
},
|
|
6493
6494
|
async onQueryStarted({ taskId: e, subtasks: s }, { dispatch: n, queryFulfilled: i, getState: r }) {
|
|
@@ -6498,7 +6499,7 @@ const N = z.injectEndpoints({
|
|
|
6498
6499
|
data: { subtasks: s }
|
|
6499
6500
|
}
|
|
6500
6501
|
];
|
|
6501
|
-
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);
|
|
6502
6503
|
try {
|
|
6503
6504
|
await i;
|
|
6504
6505
|
} catch {
|
|
@@ -6507,51 +6508,51 @@ const N = z.injectEndpoints({
|
|
|
6507
6508
|
}
|
|
6508
6509
|
})
|
|
6509
6510
|
})
|
|
6510
|
-
}), { useUpdateSubtasksMutation:
|
|
6511
|
+
}), { useUpdateSubtasksMutation: kc } = Zi, te = { type: "team", id: "LIST" }, er = Os.enhanceEndpoints({
|
|
6511
6512
|
endpoints: {
|
|
6512
6513
|
getTeams: {
|
|
6513
6514
|
providesTags: (t) => t ? [te, ...t.map((e) => ({ type: "team", id: e.name }))] : [te]
|
|
6514
6515
|
},
|
|
6515
6516
|
updateTeams: {
|
|
6516
|
-
invalidatesTags: [te, ...
|
|
6517
|
+
invalidatesTags: [te, ...ce]
|
|
6517
6518
|
},
|
|
6518
6519
|
saveTeam: {
|
|
6519
6520
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6520
6521
|
te,
|
|
6521
6522
|
{ type: "team", id: s },
|
|
6522
|
-
...
|
|
6523
|
+
...ce
|
|
6523
6524
|
]
|
|
6524
6525
|
},
|
|
6525
6526
|
deleteTeam: {
|
|
6526
6527
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6527
6528
|
te,
|
|
6528
6529
|
{ type: "team", id: s },
|
|
6529
|
-
...
|
|
6530
|
+
...ce
|
|
6530
6531
|
]
|
|
6531
6532
|
},
|
|
6532
6533
|
saveTeamMember: {
|
|
6533
6534
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6534
6535
|
te,
|
|
6535
6536
|
{ type: "team", id: s },
|
|
6536
|
-
...
|
|
6537
|
+
...ce
|
|
6537
6538
|
]
|
|
6538
6539
|
},
|
|
6539
6540
|
deleteTeamMember: {
|
|
6540
6541
|
invalidatesTags: (t, e, { teamName: s }) => [
|
|
6541
6542
|
te,
|
|
6542
6543
|
{ type: "team", id: s },
|
|
6543
|
-
...
|
|
6544
|
+
...ce
|
|
6544
6545
|
]
|
|
6545
6546
|
}
|
|
6546
6547
|
}
|
|
6547
6548
|
}), {
|
|
6548
|
-
useGetTeamsQuery:
|
|
6549
|
-
useUpdateTeamsMutation:
|
|
6550
|
-
useSaveTeamMutation:
|
|
6551
|
-
useDeleteTeamMutation:
|
|
6552
|
-
useSaveTeamMemberMutation:
|
|
6553
|
-
useDeleteTeamMemberMutation:
|
|
6554
|
-
} =
|
|
6549
|
+
useGetTeamsQuery: Ac,
|
|
6550
|
+
useUpdateTeamsMutation: wc,
|
|
6551
|
+
useSaveTeamMutation: Ec,
|
|
6552
|
+
useDeleteTeamMutation: Sc,
|
|
6553
|
+
useSaveTeamMemberMutation: Pc,
|
|
6554
|
+
useDeleteTeamMemberMutation: Lc
|
|
6555
|
+
} = er, tr = `
|
|
6555
6556
|
query UserList($name:String!) {
|
|
6556
6557
|
users(name: $name) {
|
|
6557
6558
|
edges {
|
|
@@ -6573,7 +6574,7 @@ const N = z.injectEndpoints({
|
|
|
6573
6574
|
}
|
|
6574
6575
|
}
|
|
6575
6576
|
}
|
|
6576
|
-
`,
|
|
6577
|
+
`, sr = `
|
|
6577
6578
|
query UserList {
|
|
6578
6579
|
users(last: 5000, isSupport: false) {
|
|
6579
6580
|
edges {
|
|
@@ -6601,7 +6602,7 @@ const N = z.injectEndpoints({
|
|
|
6601
6602
|
}
|
|
6602
6603
|
}
|
|
6603
6604
|
}
|
|
6604
|
-
`,
|
|
6605
|
+
`, nr = `
|
|
6605
6606
|
query Assignees($names: [String!]!){
|
|
6606
6607
|
users(names: $names, isSupport: false) {
|
|
6607
6608
|
edges {
|
|
@@ -6613,7 +6614,7 @@ query Assignees($names: [String!]!){
|
|
|
6613
6614
|
}
|
|
6614
6615
|
}
|
|
6615
6616
|
}
|
|
6616
|
-
}`,
|
|
6617
|
+
}`, ir = `
|
|
6617
6618
|
query Assignees($projectName: String) {
|
|
6618
6619
|
users(last: 5000, projectName: $projectName, isSupport: false) {
|
|
6619
6620
|
edges {
|
|
@@ -6625,7 +6626,15 @@ query Assignees($projectName: String) {
|
|
|
6625
6626
|
}
|
|
6626
6627
|
}
|
|
6627
6628
|
}
|
|
6628
|
-
}`,
|
|
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({
|
|
6629
6638
|
endpoints: {
|
|
6630
6639
|
getCurrentUser: {
|
|
6631
6640
|
providesTags: [{ type: "user", id: "LIST" }]
|
|
@@ -6638,14 +6647,14 @@ query Assignees($projectName: String) {
|
|
|
6638
6647
|
providesTags: (t, e, { userName: s }) => [{ type: "session", id: s }]
|
|
6639
6648
|
}
|
|
6640
6649
|
}
|
|
6641
|
-
}),
|
|
6650
|
+
}), or = Q.injectEndpoints({
|
|
6642
6651
|
endpoints: (t) => ({
|
|
6643
6652
|
getUsers: t.query({
|
|
6644
6653
|
query: () => ({
|
|
6645
6654
|
url: "/graphql",
|
|
6646
6655
|
method: "POST",
|
|
6647
6656
|
body: {
|
|
6648
|
-
query:
|
|
6657
|
+
query: sr,
|
|
6649
6658
|
variables: {}
|
|
6650
6659
|
}
|
|
6651
6660
|
}),
|
|
@@ -6667,7 +6676,7 @@ query Assignees($projectName: String) {
|
|
|
6667
6676
|
url: "/graphql",
|
|
6668
6677
|
method: "POST",
|
|
6669
6678
|
body: {
|
|
6670
|
-
query:
|
|
6679
|
+
query: tr,
|
|
6671
6680
|
variables: { name: e }
|
|
6672
6681
|
}
|
|
6673
6682
|
}),
|
|
@@ -6679,31 +6688,48 @@ query Assignees($projectName: String) {
|
|
|
6679
6688
|
providesTags: (e) => e ? [...e.map((s) => ({ type: "user", id: s.name })), { type: "user", id: "LIST" }] : ["user", { type: "user", id: "LIST" }]
|
|
6680
6689
|
}),
|
|
6681
6690
|
getUsersAssignee: t.query({
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
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) };
|
|
6688
6703
|
}
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
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
|
+
)
|
|
6697
6722
|
};
|
|
6698
|
-
}
|
|
6699
|
-
providesTags: (e) =>
|
|
6700
|
-
...e.map((s) => ({ type: "user", id: s.name })),
|
|
6701
|
-
{ type: "user", id: "LIST" }
|
|
6702
|
-
|
|
6723
|
+
},
|
|
6724
|
+
providesTags: (e) => [
|
|
6725
|
+
...(e || []).map((s) => ({ type: "user", id: s.name })),
|
|
6726
|
+
{ type: "user", id: "LIST" },
|
|
6727
|
+
...ce
|
|
6728
|
+
]
|
|
6703
6729
|
})
|
|
6704
6730
|
}),
|
|
6705
6731
|
overrideExisting: !0
|
|
6706
|
-
}),
|
|
6732
|
+
}), cr = or.enhanceEndpoints({
|
|
6707
6733
|
endpoints: {
|
|
6708
6734
|
GetAllProjectUsersAsAssignee: {
|
|
6709
6735
|
transformResponse: (t) => t.users.edges.map((e) => ({
|
|
@@ -6727,14 +6753,14 @@ query Assignees($projectName: String) {
|
|
|
6727
6753
|
}
|
|
6728
6754
|
}
|
|
6729
6755
|
}), {
|
|
6730
|
-
useGetAllProjectUsersAsAssigneeQuery:
|
|
6731
|
-
useLazyGetAllProjectUsersAsAssigneeQuery:
|
|
6732
|
-
useGetActiveUsersCountQuery:
|
|
6733
|
-
useGetAllAssigneesQuery:
|
|
6734
|
-
useGetUsersQuery:
|
|
6735
|
-
useGetUserByNameQuery:
|
|
6736
|
-
useGetUsersAssigneeQuery:
|
|
6737
|
-
} =
|
|
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({
|
|
6738
6764
|
endpoints: {
|
|
6739
6765
|
listGuestUsers: {
|
|
6740
6766
|
providesTags: (t) => t?.users ? [
|
|
@@ -6749,7 +6775,7 @@ query Assignees($projectName: String) {
|
|
|
6749
6775
|
invalidatesTags: (t, e, s) => [{ type: "guest", id: s.email }]
|
|
6750
6776
|
}
|
|
6751
6777
|
}
|
|
6752
|
-
}), { useListGuestUsersQuery:
|
|
6778
|
+
}), { useListGuestUsersQuery: Dc, useAddGuestUserMutation: Oc, useRemoveGuestUserMutation: $c } = dr, ur = Q.enhanceEndpoints({
|
|
6753
6779
|
endpoints: {
|
|
6754
6780
|
GetLatestProductVersion: {
|
|
6755
6781
|
transformResponse: (t) => t.project.versions.edges[0]?.node,
|
|
@@ -6759,7 +6785,7 @@ query Assignees($projectName: String) {
|
|
|
6759
6785
|
] : [{ type: "product", id: s }]
|
|
6760
6786
|
}
|
|
6761
6787
|
}
|
|
6762
|
-
}), { useGetLatestProductVersionQuery:
|
|
6788
|
+
}), { useGetLatestProductVersionQuery: xc } = ur, lr = xs.enhanceEndpoints({
|
|
6763
6789
|
endpoints: {
|
|
6764
6790
|
getVersion: {},
|
|
6765
6791
|
createVersion: {
|
|
@@ -6778,10 +6804,10 @@ query Assignees($projectName: String) {
|
|
|
6778
6804
|
]
|
|
6779
6805
|
}
|
|
6780
6806
|
}
|
|
6781
|
-
}), { useGetVersionQuery:
|
|
6807
|
+
}), { useGetVersionQuery: Uc, useCreateVersionMutation: qc, useDeleteVersionMutation: Bc } = lr, B = (t, e) => ({
|
|
6782
6808
|
type: "view",
|
|
6783
6809
|
id: `${t.toUpperCase()}${e ? `:${e.toUpperCase()}` : ""}`
|
|
6784
|
-
}), Ce = { type: "view", id: "LIST" }, M =
|
|
6810
|
+
}), Ce = { type: "view", id: "LIST" }, M = Us.enhanceEndpoints({
|
|
6785
6811
|
endpoints: {
|
|
6786
6812
|
listViews: {
|
|
6787
6813
|
transformResponse: (t) => t?.views || [],
|
|
@@ -6809,12 +6835,12 @@ query Assignees($projectName: String) {
|
|
|
6809
6835
|
}
|
|
6810
6836
|
}
|
|
6811
6837
|
}), {
|
|
6812
|
-
useListViewsQuery:
|
|
6813
|
-
useGetWorkingViewQuery:
|
|
6814
|
-
useGetViewQuery:
|
|
6815
|
-
useGetDefaultViewQuery:
|
|
6816
|
-
useGetBaseViewQuery:
|
|
6817
|
-
} = M,
|
|
6838
|
+
useListViewsQuery: Hc,
|
|
6839
|
+
useGetWorkingViewQuery: Wc,
|
|
6840
|
+
useGetViewQuery: zc,
|
|
6841
|
+
useGetDefaultViewQuery: Kc,
|
|
6842
|
+
useGetBaseViewQuery: Jc
|
|
6843
|
+
} = M, pr = M.enhanceEndpoints({
|
|
6818
6844
|
endpoints: {
|
|
6819
6845
|
createView: {
|
|
6820
6846
|
onQueryStarted: async (t, { dispatch: e, queryFulfilled: s, getState: n }) => {
|
|
@@ -6868,7 +6894,7 @@ query Assignees($projectName: String) {
|
|
|
6868
6894
|
let u;
|
|
6869
6895
|
if (i.label === "__base__") {
|
|
6870
6896
|
const o = {
|
|
6871
|
-
id:
|
|
6897
|
+
id: Bs(),
|
|
6872
6898
|
...i,
|
|
6873
6899
|
working: !1,
|
|
6874
6900
|
scope: t.projectName ? "project" : "studio",
|
|
@@ -7047,11 +7073,11 @@ query Assignees($projectName: String) {
|
|
|
7047
7073
|
}
|
|
7048
7074
|
}
|
|
7049
7075
|
}), {
|
|
7050
|
-
useCreateViewMutation:
|
|
7051
|
-
useUpdateViewMutation:
|
|
7052
|
-
useDeleteViewMutation:
|
|
7053
|
-
useSetDefaultViewMutation:
|
|
7054
|
-
} =
|
|
7076
|
+
useCreateViewMutation: Yc,
|
|
7077
|
+
useUpdateViewMutation: Xc,
|
|
7078
|
+
useDeleteViewMutation: Zc,
|
|
7079
|
+
useSetDefaultViewMutation: ed
|
|
7080
|
+
} = pr, Be = Pe.enhanceEndpoints({
|
|
7055
7081
|
endpoints: {
|
|
7056
7082
|
getEntityWatchers: {},
|
|
7057
7083
|
setEntityWatchers: {}
|
|
@@ -7074,7 +7100,7 @@ query Assignees($projectName: String) {
|
|
|
7074
7100
|
})
|
|
7075
7101
|
) };
|
|
7076
7102
|
} catch (n) {
|
|
7077
|
-
return console.error(n), { error:
|
|
7103
|
+
return console.error(n), { error: L(n) };
|
|
7078
7104
|
}
|
|
7079
7105
|
},
|
|
7080
7106
|
providesTags: (e, s, { entities: n }) => n.flatMap((i) => [
|
|
@@ -7083,7 +7109,7 @@ query Assignees($projectName: String) {
|
|
|
7083
7109
|
])
|
|
7084
7110
|
})
|
|
7085
7111
|
})
|
|
7086
|
-
}),
|
|
7112
|
+
}), fr = Yt.injectEndpoints({
|
|
7087
7113
|
endpoints: (t) => ({
|
|
7088
7114
|
setEntitiesWatchers: t.mutation({
|
|
7089
7115
|
async queryFn({ entities: e = [] }, { dispatch: s }) {
|
|
@@ -7101,7 +7127,7 @@ query Assignees($projectName: String) {
|
|
|
7101
7127
|
try {
|
|
7102
7128
|
return await Promise.all(n), { data: void 0 };
|
|
7103
7129
|
} catch (i) {
|
|
7104
|
-
return { error:
|
|
7130
|
+
return { error: L(i) };
|
|
7105
7131
|
}
|
|
7106
7132
|
},
|
|
7107
7133
|
async onQueryStarted({ entities: e }, { dispatch: s, queryFulfilled: n, getState: i }) {
|
|
@@ -7135,292 +7161,293 @@ query Assignees($projectName: String) {
|
|
|
7135
7161
|
invalidatesTags: (e, s, { entities: n }) => n.some((i) => i.entityType === "task") ? [{ type: "watchers", id: "VERSION-LIST" }] : []
|
|
7136
7162
|
})
|
|
7137
7163
|
})
|
|
7138
|
-
}), { useGetEntitiesWatchersQuery:
|
|
7164
|
+
}), { useGetEntitiesWatchersQuery: td, useSetEntitiesWatchersMutation: sd } = fr, yr = qs.enhanceEndpoints({
|
|
7139
7165
|
endpoints: {
|
|
7140
7166
|
resolveUris: {}
|
|
7141
7167
|
}
|
|
7142
|
-
}), { useResolveUrisMutation:
|
|
7168
|
+
}), { useResolveUrisMutation: nd } = yr;
|
|
7143
7169
|
export {
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7170
|
+
wi as $,
|
|
7171
|
+
yi as A,
|
|
7172
|
+
zn as B,
|
|
7147
7173
|
se as C,
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7174
|
+
Jn as D,
|
|
7175
|
+
Oi as E,
|
|
7176
|
+
Rn as F,
|
|
7177
|
+
Kn as G,
|
|
7152
7178
|
$e as H,
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7179
|
+
Nn as I,
|
|
7180
|
+
ye as J,
|
|
7181
|
+
Nr as K,
|
|
7156
7182
|
Ut as L,
|
|
7157
|
-
|
|
7183
|
+
Sn as M,
|
|
7158
7184
|
os as N,
|
|
7159
|
-
|
|
7160
|
-
|
|
7185
|
+
pi as O,
|
|
7186
|
+
_n as P,
|
|
7161
7187
|
ft as Q,
|
|
7162
7188
|
ht as R,
|
|
7163
7189
|
B as S,
|
|
7164
7190
|
We as T,
|
|
7165
7191
|
M as U,
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7192
|
+
Fn as V,
|
|
7193
|
+
$r as W,
|
|
7194
|
+
Vi as X,
|
|
7169
7195
|
we as Y,
|
|
7170
7196
|
N as Z,
|
|
7171
7197
|
at as _,
|
|
7172
7198
|
et as a,
|
|
7173
|
-
|
|
7199
|
+
yc as a$,
|
|
7174
7200
|
Ae as a0,
|
|
7175
7201
|
ke as a1,
|
|
7176
|
-
|
|
7202
|
+
Ur as a2,
|
|
7177
7203
|
Ft as a3,
|
|
7178
7204
|
R as a4,
|
|
7179
7205
|
ds as a5,
|
|
7180
7206
|
cs as a6,
|
|
7181
|
-
|
|
7182
|
-
|
|
7207
|
+
Xi as a7,
|
|
7208
|
+
Ra as a8,
|
|
7183
7209
|
qe as a9,
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
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_,
|
|
7211
7237
|
Ee as aa,
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7238
|
+
ni as ab,
|
|
7239
|
+
ai as ac,
|
|
7240
|
+
ii as ad,
|
|
7241
|
+
xi as ae,
|
|
7216
7242
|
gt as af,
|
|
7217
7243
|
ee as ag,
|
|
7218
7244
|
W as ah,
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7245
|
+
Hn as ai,
|
|
7246
|
+
Wn as aj,
|
|
7247
|
+
Bn as ak,
|
|
7222
7248
|
xe as al,
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
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,
|
|
7233
7259
|
je as aw,
|
|
7234
|
-
|
|
7260
|
+
Xn as ax,
|
|
7235
7261
|
ys as ay,
|
|
7236
7262
|
jt as az,
|
|
7237
7263
|
wt as b,
|
|
7238
|
-
|
|
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
|
-
|
|
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,
|
|
7267
7293
|
Na as bS,
|
|
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
|
-
|
|
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,
|
|
7367
7393
|
ae as d,
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7394
|
+
Cr as d0,
|
|
7395
|
+
bo as d1,
|
|
7396
|
+
ed as d2,
|
|
7397
|
+
sd as d3,
|
|
7398
|
+
Bo as d4,
|
|
7373
7399
|
ha as d5,
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
lr as
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7400
|
+
va as d6,
|
|
7401
|
+
dc as d7,
|
|
7402
|
+
Pr as d8,
|
|
7403
|
+
$o as d9,
|
|
7404
|
+
Vr as dA,
|
|
7405
|
+
is as dB,
|
|
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,
|
|
7430
|
+
rs as dz,
|
|
7431
|
+
ki as e,
|
|
7405
7432
|
bs as f,
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
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,
|
|
7416
7443
|
Ie as q,
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7444
|
+
_a as r,
|
|
7445
|
+
Ln as s,
|
|
7446
|
+
de as t,
|
|
7447
|
+
Ks as u,
|
|
7421
7448
|
z as v,
|
|
7422
7449
|
us as w,
|
|
7423
|
-
|
|
7424
|
-
|
|
7450
|
+
le as x,
|
|
7451
|
+
Mi as y,
|
|
7425
7452
|
q as z
|
|
7426
7453
|
};
|