@ynput/ayon-frontend-shared 0.6.5 → 0.6.6
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/ProjectTreeTable.es.js +645 -653
- package/dist/chunks/Feed.es.js +1742 -1733
- package/dist/chunks/Menu.es.js +168 -166
- package/dist/chunks/MenuItem.es.js +112 -77
- package/dist/chunks/SimpleForm.es.js +78 -75
- package/dist/chunks/getUris.es.js +171 -172
- package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
- package/dist/chunks/searchTerms.es.js +3 -0
- package/dist/types/Feed.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +3 -5
- package/dist/types/Slicer.d.ts +1 -1
- package/dist/types/Views.d.ts +2 -2
- package/dist/types/api.d.ts +9 -5
- package/dist/types/components.d.ts +9 -2
- package/dist/types/context.d.ts +2 -2
- package/dist/types/util.d.ts +1 -1
- package/package.json +1 -1
|
@@ -505,7 +505,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
505
505
|
...e,
|
|
506
506
|
columnName: fe(e.columnName),
|
|
507
507
|
distribution: yn(e.distribution)
|
|
508
|
-
})),
|
|
508
|
+
})), we = (t = [], e = []) => {
|
|
509
509
|
const s = /* @__PURE__ */ new Map();
|
|
510
510
|
for (const n of e) s.set(fe(n.columnName), { ...n });
|
|
511
511
|
for (const n of t) {
|
|
@@ -571,7 +571,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
571
571
|
if (!(s && !as(s, r, n)) && ot(r, t, e))
|
|
572
572
|
return !0;
|
|
573
573
|
return !1;
|
|
574
|
-
}, qr = (t, e, s, n) => e?.name === "none" && !vn(t, e, s, n),
|
|
574
|
+
}, qr = (t, e, s, n) => e?.name === "none" && !vn(t, e, s, n), Ae = (t, e) => {
|
|
575
575
|
if (!t) return !1;
|
|
576
576
|
if (!e) return !0;
|
|
577
577
|
const s = new Set(Tt(e).map((n) => n.field));
|
|
@@ -637,13 +637,13 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
637
637
|
return { field: e === "task" || e === "folder" ? `inherited_attributes.${i}` : `attrib.${i}`, aggregations: kt };
|
|
638
638
|
}
|
|
639
639
|
return null;
|
|
640
|
-
},
|
|
640
|
+
}, wn = (t) => {
|
|
641
641
|
const e = t.indexOf(".");
|
|
642
642
|
return e !== -1 ? "attrib_" + t.slice(e + 1) : fe(t);
|
|
643
643
|
}, Wr = (t, e) => {
|
|
644
644
|
const s = /* @__PURE__ */ new Map(), n = { count: 0, percentage: 0 };
|
|
645
645
|
if (!e) return { counts: s, total: 0, ungrouped: n, complete: !1 };
|
|
646
|
-
const i =
|
|
646
|
+
const i = wn(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;
|
|
647
647
|
for (const f of a) {
|
|
648
648
|
const y = f.count || 0, h = l > 0 ? Math.round(y / l * 100) : 0;
|
|
649
649
|
s.set(String(f.value), { count: y, percentage: h });
|
|
@@ -661,7 +661,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
661
661
|
} catch {
|
|
662
662
|
return {};
|
|
663
663
|
}
|
|
664
|
-
}, zr = R,
|
|
664
|
+
}, zr = R, wt = (t) => {
|
|
665
665
|
if (!t.project)
|
|
666
666
|
return [];
|
|
667
667
|
const e = [];
|
|
@@ -695,14 +695,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
695
695
|
GetTasksByParent: {
|
|
696
696
|
transformResponse: (t) => ({
|
|
697
697
|
pageInfo: t?.project?.tasks?.pageInfo ?? { hasNextPage: !1, endCursor: null },
|
|
698
|
-
tasks:
|
|
698
|
+
tasks: wt(t)
|
|
699
699
|
}),
|
|
700
700
|
providesTags: (t, e, { parentIds: s, projectName: n }) => ve(t?.tasks || [], n, s),
|
|
701
701
|
keepUnusedDataFor: Z
|
|
702
702
|
},
|
|
703
703
|
GetTasksList: {
|
|
704
704
|
transformResponse: (t) => ({
|
|
705
|
-
tasks:
|
|
705
|
+
tasks: wt(t),
|
|
706
706
|
pageInfo: t.project.tasks.pageInfo
|
|
707
707
|
}),
|
|
708
708
|
providesTags: (t, e, { projectName: s }) => ve(t?.tasks || [], s),
|
|
@@ -713,27 +713,27 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
713
713
|
GetFolderColumnStats: {
|
|
714
714
|
transformResponse: (t) => ke(t?.project?.folders?.fieldStats ?? []),
|
|
715
715
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
716
|
-
merge: (t, e) =>
|
|
717
|
-
forceRefetch: ({ currentArg: t, previousArg: e }) =>
|
|
716
|
+
merge: (t, e) => we(e, t),
|
|
717
|
+
forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
|
|
718
718
|
providesTags: (t, e, { projectName: s }) => [{ type: "folderColumnStats", id: s }],
|
|
719
719
|
keepUnusedDataFor: Z
|
|
720
720
|
},
|
|
721
721
|
GetTaskColumnStats: {
|
|
722
722
|
transformResponse: (t) => ke(t?.project?.tasks?.fieldStats ?? []),
|
|
723
723
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
724
|
-
merge: (t, e) =>
|
|
725
|
-
forceRefetch: ({ currentArg: t, previousArg: e }) =>
|
|
724
|
+
merge: (t, e) => we(e, t),
|
|
725
|
+
forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
|
|
726
726
|
providesTags: (t, e, { projectName: s }) => [{ type: "taskColumnStats", id: s }],
|
|
727
727
|
keepUnusedDataFor: Z
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
}),
|
|
730
|
+
}), An = yt.enhanceEndpoints({
|
|
731
731
|
endpoints: {
|
|
732
732
|
searchFolders: {}
|
|
733
733
|
}
|
|
734
734
|
}), ze = 100, be = {}, Ke = (t, e, s, n, i) => JSON.stringify({ projectName: t, filter: e, folderFilter: s, search: n, showComments: i }), En = (t, e) => {
|
|
735
735
|
be[t] || (be[t] = /* @__PURE__ */ new Set()), e.forEach((s) => be[t].add(s));
|
|
736
|
-
},
|
|
736
|
+
}, At = (t) => be[t] || /* @__PURE__ */ new Set(), x = re.injectEndpoints({
|
|
737
737
|
endpoints: (t) => ({
|
|
738
738
|
// Each project has one cache for all the tasks of the expanded folders
|
|
739
739
|
// Changing the expanded folders will trigger a refetch but not a new cache
|
|
@@ -745,7 +745,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
745
745
|
try {
|
|
746
746
|
const o = d(), l = { projectName: e, filter: n, folderFilter: i, search: r, showComments: a }, f = x.endpoints.getOverviewTasksByFolders.select(
|
|
747
747
|
l
|
|
748
|
-
)(o)?.data || [], y = Ke(e, n, i, r, a), h =
|
|
748
|
+
)(o)?.data || [], y = Ke(e, n, i, r, a), h = At(y), g = u ? s : s.filter((E) => !h.has(E));
|
|
749
749
|
if (g.length === 0)
|
|
750
750
|
return { data: f };
|
|
751
751
|
const m = [], v = 100, b = 20, I = 10, k = 1e3, T = v * b;
|
|
@@ -784,9 +784,9 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
En(y, g);
|
|
787
|
-
const
|
|
787
|
+
const w = [...f, ...m], A = new Map(w.map((E) => [E.id, E]));
|
|
788
788
|
return {
|
|
789
|
-
data: Array.from(
|
|
789
|
+
data: Array.from(A.values())
|
|
790
790
|
};
|
|
791
791
|
} catch (o) {
|
|
792
792
|
return console.error(o), { error: L(o) };
|
|
@@ -805,17 +805,17 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
805
805
|
let p;
|
|
806
806
|
const y = U(
|
|
807
807
|
async (m, v) => {
|
|
808
|
-
const b =
|
|
808
|
+
const b = At(
|
|
809
809
|
Ke(e, n, i, r, a)
|
|
810
810
|
), I = new Set(
|
|
811
|
-
l().data?.map((
|
|
811
|
+
l().data?.map((A) => A.id) || []
|
|
812
812
|
), k = /* @__PURE__ */ new Set(), T = [];
|
|
813
|
-
m.filter((
|
|
814
|
-
const E =
|
|
813
|
+
m.filter((A) => A.project === e).filter((A) => b.has(A.summary?.parentId)).forEach((A) => {
|
|
814
|
+
const E = A.summary?.entityId;
|
|
815
815
|
if (!E || !I.has(E)) return;
|
|
816
|
-
const P =
|
|
816
|
+
const P = A.topic?.split(".")[2]?.replace("_changed", ""), S = pe(
|
|
817
817
|
P,
|
|
818
|
-
|
|
818
|
+
A.summary,
|
|
819
819
|
De
|
|
820
820
|
);
|
|
821
821
|
S ? T.push({
|
|
@@ -823,21 +823,21 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
823
823
|
field: S.field,
|
|
824
824
|
value: S.value
|
|
825
825
|
}) : k.add(E);
|
|
826
|
-
}), T.length && u((
|
|
826
|
+
}), T.length && u((A) => {
|
|
827
827
|
T.forEach(({ taskId: E, field: P, value: S }) => {
|
|
828
|
-
const j =
|
|
828
|
+
const j = A.find((_) => _.id === E);
|
|
829
829
|
j && Object.assign(j, { [P === "type" ? "taskType" : P]: S });
|
|
830
830
|
});
|
|
831
831
|
});
|
|
832
|
-
const
|
|
833
|
-
if (!(!
|
|
832
|
+
const w = Array.from(k);
|
|
833
|
+
if (!(!w.length || w.length > ie))
|
|
834
834
|
try {
|
|
835
835
|
await J();
|
|
836
836
|
const E = (await o(
|
|
837
837
|
re.endpoints.GetTasksList.initiate(
|
|
838
838
|
{
|
|
839
839
|
projectName: e,
|
|
840
|
-
taskIds:
|
|
840
|
+
taskIds: w,
|
|
841
841
|
showComments: !!a
|
|
842
842
|
},
|
|
843
843
|
{ forceRefetch: !0 }
|
|
@@ -850,14 +850,14 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
850
850
|
const _ = S.findIndex((G) => G.id === j.id);
|
|
851
851
|
_ > -1 ? S[_] = j : S.push(j);
|
|
852
852
|
}
|
|
853
|
-
for (const j of
|
|
853
|
+
for (const j of w)
|
|
854
854
|
if (!P.has(j)) {
|
|
855
855
|
const _ = S.findIndex((G) => G.id === j);
|
|
856
856
|
_ > -1 && S.splice(_, 1);
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
|
-
} catch (
|
|
860
|
-
console.error("Realtime overview batch update failed",
|
|
859
|
+
} catch (A) {
|
|
860
|
+
console.error("Realtime overview batch update failed", A);
|
|
861
861
|
}
|
|
862
862
|
},
|
|
863
863
|
(m) => `${m.project ?? e}:${m.summary?.entityId}:${m.topic}`
|
|
@@ -896,7 +896,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
896
896
|
async queryFn({ projectName: e, folderSearchRequest: s }, { dispatch: n }) {
|
|
897
897
|
try {
|
|
898
898
|
const i = await n(
|
|
899
|
-
|
|
899
|
+
An.endpoints.searchFolders.initiate({
|
|
900
900
|
projectName: e,
|
|
901
901
|
folderSearchRequest: s
|
|
902
902
|
})
|
|
@@ -994,7 +994,7 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
994
994
|
}), h.length && i((m) => {
|
|
995
995
|
h.forEach(({ taskId: v, field: b, value: I }) => {
|
|
996
996
|
for (const k of m.pages) {
|
|
997
|
-
const T = k.tasks.find((
|
|
997
|
+
const T = k.tasks.find((w) => w.id === v);
|
|
998
998
|
if (T) {
|
|
999
999
|
Object.assign(T, { [b === "type" ? "taskType" : b]: I });
|
|
1000
1000
|
break;
|
|
@@ -1022,10 +1022,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1022
1022
|
i((I) => {
|
|
1023
1023
|
for (const k of v) {
|
|
1024
1024
|
let T = !1;
|
|
1025
|
-
for (const
|
|
1026
|
-
const
|
|
1027
|
-
if (
|
|
1028
|
-
|
|
1025
|
+
for (const w of I.pages) {
|
|
1026
|
+
const A = w.tasks.findIndex((E) => E.id === k.id);
|
|
1027
|
+
if (A !== -1) {
|
|
1028
|
+
w.tasks[A] = k, T = !0;
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
@@ -1042,9 +1042,9 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1042
1042
|
for (const k of g)
|
|
1043
1043
|
if (!b.has(k))
|
|
1044
1044
|
for (const T of I.pages) {
|
|
1045
|
-
const
|
|
1046
|
-
if (
|
|
1047
|
-
T.tasks.splice(
|
|
1045
|
+
const w = T.tasks.findIndex((A) => A.id === k);
|
|
1046
|
+
if (w !== -1) {
|
|
1047
|
+
T.tasks.splice(w, 1);
|
|
1048
1048
|
break;
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
@@ -1104,10 +1104,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1104
1104
|
let m = h.filter, v = i;
|
|
1105
1105
|
if (h.filter)
|
|
1106
1106
|
try {
|
|
1107
|
-
const k = JSON.parse(h.filter), T = k.conditions || [],
|
|
1108
|
-
if (
|
|
1109
|
-
m =
|
|
1110
|
-
const E = i ? JSON.parse(i) : null, S = [...E && Array.isArray(E.conditions) ? E.conditions : [], ...
|
|
1107
|
+
const k = JSON.parse(h.filter), T = k.conditions || [], w = T.filter((E) => !p.has(E.key)), A = T.filter((E) => p.has(E.key));
|
|
1108
|
+
if (A.length > 0) {
|
|
1109
|
+
m = w.length ? JSON.stringify({ ...k, conditions: w }) : void 0;
|
|
1110
|
+
const E = i ? JSON.parse(i) : null, S = [...E && Array.isArray(E.conditions) ? E.conditions : [], ...A];
|
|
1111
1111
|
v = JSON.stringify(
|
|
1112
1112
|
E ? { ...E, conditions: S } : { conditions: S }
|
|
1113
1113
|
);
|
|
@@ -1207,44 +1207,44 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1207
1207
|
async (y, h) => {
|
|
1208
1208
|
if (!a) return;
|
|
1209
1209
|
const g = /* @__PURE__ */ new Set(), m = i().data;
|
|
1210
|
-
m && Array.isArray(m.folders) && m.folders.forEach((
|
|
1210
|
+
m && Array.isArray(m.folders) && m.folders.forEach((w) => g.add(w.id));
|
|
1211
1211
|
const v = [], b = [], I = /* @__PURE__ */ new Map(), k = [];
|
|
1212
|
-
y.forEach((
|
|
1213
|
-
const
|
|
1214
|
-
if (!
|
|
1215
|
-
if (
|
|
1216
|
-
v.push(
|
|
1212
|
+
y.forEach((w) => {
|
|
1213
|
+
const A = w.summary?.entityId;
|
|
1214
|
+
if (!A) return;
|
|
1215
|
+
if (w.topic === "entity.folder.deleted") {
|
|
1216
|
+
v.push(A);
|
|
1217
1217
|
return;
|
|
1218
1218
|
}
|
|
1219
|
-
if (
|
|
1220
|
-
b.push(
|
|
1219
|
+
if (w.topic === "entity.folder.created") {
|
|
1220
|
+
b.push(A);
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
|
-
if (!g.has(
|
|
1223
|
+
if (!g.has(A)) return;
|
|
1224
1224
|
const E = pe(
|
|
1225
|
-
d[
|
|
1226
|
-
|
|
1225
|
+
d[w.topic],
|
|
1226
|
+
w.summary,
|
|
1227
1227
|
c
|
|
1228
1228
|
);
|
|
1229
|
-
if (E) k.push({ folderId:
|
|
1229
|
+
if (E) k.push({ folderId: A, ...E });
|
|
1230
1230
|
else {
|
|
1231
|
-
const P = d[
|
|
1231
|
+
const P = d[w.topic];
|
|
1232
1232
|
if (!P) return;
|
|
1233
|
-
const S = I.get(
|
|
1234
|
-
S.add(P), I.set(
|
|
1233
|
+
const S = I.get(A) || /* @__PURE__ */ new Set();
|
|
1234
|
+
S.add(P), I.set(A, S);
|
|
1235
1235
|
}
|
|
1236
|
-
}), v.length && n((
|
|
1237
|
-
!
|
|
1238
|
-
}), k.length && n((
|
|
1239
|
-
!
|
|
1240
|
-
const S =
|
|
1236
|
+
}), v.length && n((w) => {
|
|
1237
|
+
!w || !Array.isArray(w.folders) || (w.folders = w.folders.filter((A) => !v.includes(A.id)));
|
|
1238
|
+
}), k.length && n((w) => {
|
|
1239
|
+
!w || !Array.isArray(w.folders) || k.forEach(({ folderId: A, field: E, value: P }) => {
|
|
1240
|
+
const S = w.folders.find((j) => j.id === A);
|
|
1241
1241
|
S && (S[E] = P);
|
|
1242
1242
|
});
|
|
1243
1243
|
});
|
|
1244
1244
|
const T = [.../* @__PURE__ */ new Set([...b, ...I.keys()])];
|
|
1245
1245
|
if (!(T.length > Pn) && T.length) {
|
|
1246
1246
|
await J();
|
|
1247
|
-
const
|
|
1247
|
+
const w = await r(
|
|
1248
1248
|
Sn.endpoints.GetUpdatedAndNewFolders.initiate({
|
|
1249
1249
|
projectName: a,
|
|
1250
1250
|
folderIds: T,
|
|
@@ -1252,19 +1252,19 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1252
1252
|
})
|
|
1253
1253
|
).unwrap().catch(() => []);
|
|
1254
1254
|
if (!h()) return;
|
|
1255
|
-
const
|
|
1255
|
+
const A = new Set(b);
|
|
1256
1256
|
n((E) => {
|
|
1257
1257
|
if (!E || !Array.isArray(E.folders)) return;
|
|
1258
1258
|
const P = new Map(
|
|
1259
|
-
|
|
1259
|
+
w.filter(Boolean).map((S) => [S.id, S])
|
|
1260
1260
|
);
|
|
1261
1261
|
E.folders.forEach((S, j) => {
|
|
1262
1262
|
const _ = P.get(S.id);
|
|
1263
|
-
_ && (
|
|
1263
|
+
_ && (A.has(S.id) ? E.folders[j] = { ...S, ..._ } : (I.get(S.id) || /* @__PURE__ */ new Set()).forEach((O) => {
|
|
1264
1264
|
S[O] = _[O];
|
|
1265
1265
|
}), P.delete(S.id));
|
|
1266
1266
|
}), P.forEach((S, j) => {
|
|
1267
|
-
|
|
1267
|
+
A.has(j) && E.folders.push(S);
|
|
1268
1268
|
});
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
@@ -1534,10 +1534,10 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1534
1534
|
l.forEach(({ topic: b, message: I }) => {
|
|
1535
1535
|
const k = I.summary?.entityId, T = I.project;
|
|
1536
1536
|
if (!k || !T) return;
|
|
1537
|
-
const
|
|
1538
|
-
if (!y.has(
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1537
|
+
const w = `${T}:${k}`;
|
|
1538
|
+
if (!y.has(w)) return;
|
|
1539
|
+
const A = b.split(".")[2]?.replace("_changed", ""), E = pe(
|
|
1540
|
+
A,
|
|
1541
1541
|
I.summary,
|
|
1542
1542
|
De
|
|
1543
1543
|
);
|
|
@@ -1546,16 +1546,16 @@ query EntityTooltip($projectName: String!, $entityId: String!) {
|
|
|
1546
1546
|
projectName: T,
|
|
1547
1547
|
field: E.field,
|
|
1548
1548
|
value: E.value
|
|
1549
|
-
}) : h.set(
|
|
1549
|
+
}) : h.set(w, { id: k, projectName: T });
|
|
1550
1550
|
}), g.length && s((b) => {
|
|
1551
|
-
g.forEach(({ id: I, projectName: k, field: T, value:
|
|
1552
|
-
const
|
|
1551
|
+
g.forEach(({ id: I, projectName: k, field: T, value: w }) => {
|
|
1552
|
+
const A = b.find(
|
|
1553
1553
|
(E) => E.id === I && E.projectName === k
|
|
1554
1554
|
);
|
|
1555
|
-
|
|
1556
|
-
...T === "status" || T === "tags" ? { [T]:
|
|
1557
|
-
...T === "type" ? { entitySubType:
|
|
1558
|
-
}), T === "assignees" &&
|
|
1555
|
+
A && (Object.assign(A, {
|
|
1556
|
+
...T === "status" || T === "tags" ? { [T]: w } : {},
|
|
1557
|
+
...T === "type" ? { entitySubType: w } : {}
|
|
1558
|
+
}), T === "assignees" && A.task && (A.task.assignees = w), T === "type" && A.task && (A.task.taskType = w));
|
|
1559
1559
|
});
|
|
1560
1560
|
});
|
|
1561
1561
|
const m = Array.from(h.values());
|
|
@@ -1972,7 +1972,7 @@ const Qn = (t, e) => {
|
|
|
1972
1972
|
useDeleteProjectMutation: Ia,
|
|
1973
1973
|
useSetProjectAnatomyMutation: Ta,
|
|
1974
1974
|
useUpdateProjectMutation: ka,
|
|
1975
|
-
useSetProjectBundleMutation:
|
|
1975
|
+
useSetProjectBundleMutation: wa
|
|
1976
1976
|
} = Vn, Dn = (t) => {
|
|
1977
1977
|
try {
|
|
1978
1978
|
return JSON.parse(t);
|
|
@@ -2022,34 +2022,34 @@ const Qn = (t, e) => {
|
|
|
2022
2022
|
const u = U(
|
|
2023
2023
|
async (o, l) => {
|
|
2024
2024
|
const p = Array.isArray(t?.projects) ? t.projects : [], f = Array.isArray(t?.assignees) ? t.assignees : [], y = r().data ?? [], h = new Set(y.map((T) => `${T.projectName}:${T.id}`)), g = /* @__PURE__ */ new Map(), m = [];
|
|
2025
|
-
o.forEach(({ topic: T, message:
|
|
2026
|
-
const
|
|
2027
|
-
if (!
|
|
2028
|
-
const E =
|
|
2025
|
+
o.forEach(({ topic: T, message: w }) => {
|
|
2026
|
+
const A = w.project;
|
|
2027
|
+
if (!A || !p.includes(A)) return;
|
|
2028
|
+
const E = w.summary?.entityId;
|
|
2029
2029
|
if (!E) return;
|
|
2030
2030
|
const P = T.split(".")[2]?.replace("_changed", ""), S = pe(
|
|
2031
2031
|
P,
|
|
2032
|
-
|
|
2032
|
+
w.summary,
|
|
2033
2033
|
De
|
|
2034
2034
|
);
|
|
2035
2035
|
if (!S) return;
|
|
2036
|
-
const j = `${
|
|
2036
|
+
const j = `${A}:${E}`, _ = h.has(j), G = S.value, O = S.field === "assignees" && G.some(($) => f.includes($));
|
|
2037
2037
|
if (!(!_ && !O)) {
|
|
2038
2038
|
if (!_) {
|
|
2039
|
-
g.set(j, { taskId: E, project:
|
|
2039
|
+
g.set(j, { taskId: E, project: A });
|
|
2040
2040
|
return;
|
|
2041
2041
|
}
|
|
2042
2042
|
m.push({
|
|
2043
2043
|
taskId: E,
|
|
2044
|
-
project:
|
|
2044
|
+
project: A,
|
|
2045
2045
|
field: S.field,
|
|
2046
2046
|
value: S.value
|
|
2047
2047
|
});
|
|
2048
2048
|
}
|
|
2049
2049
|
}), m.length && e((T) => {
|
|
2050
|
-
m.forEach(({ taskId:
|
|
2050
|
+
m.forEach(({ taskId: w, project: A, field: E, value: P }) => {
|
|
2051
2051
|
const S = T.find(
|
|
2052
|
-
(j) => j.id ===
|
|
2052
|
+
(j) => j.id === w && j.projectName === A
|
|
2053
2053
|
);
|
|
2054
2054
|
if (S && (Object.assign(S, { [E === "type" ? "taskType" : E]: P }), E === "assignees" && f.length > 0 && !P.some((j) => f.includes(j)))) {
|
|
2055
2055
|
const j = T.indexOf(S);
|
|
@@ -2069,17 +2069,17 @@ const Qn = (t, e) => {
|
|
|
2069
2069
|
);
|
|
2070
2070
|
if (!l()) return;
|
|
2071
2071
|
const I = b.filter(
|
|
2072
|
-
(T) => !f.length || (T.assignees ?? []).some((
|
|
2072
|
+
(T) => !f.length || (T.assignees ?? []).some((w) => f.includes(w))
|
|
2073
2073
|
), k = b.filter(
|
|
2074
|
-
(T) => f.length > 0 && !(T.assignees ?? []).some((
|
|
2074
|
+
(T) => f.length > 0 && !(T.assignees ?? []).some((w) => f.includes(w))
|
|
2075
2075
|
);
|
|
2076
2076
|
e((T) => {
|
|
2077
|
-
I.forEach((
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2080
|
-
}), k.forEach((
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2077
|
+
I.forEach((w) => {
|
|
2078
|
+
const A = T.findIndex((E) => E.id === w.id);
|
|
2079
|
+
A === -1 ? T.push(w) : T[A] = w;
|
|
2080
|
+
}), k.forEach((w) => {
|
|
2081
|
+
const A = T.findIndex((E) => E.id === w.id);
|
|
2082
|
+
A !== -1 && T.splice(A, 1);
|
|
2083
2083
|
});
|
|
2084
2084
|
});
|
|
2085
2085
|
},
|
|
@@ -2149,7 +2149,7 @@ const Qn = (t, e) => {
|
|
|
2149
2149
|
] : [{ type: "user", id: "LIST" }]
|
|
2150
2150
|
}
|
|
2151
2151
|
}
|
|
2152
|
-
}), { useGetKanbanQuery:
|
|
2152
|
+
}), { useGetKanbanQuery: Aa, useGetKanbanProjectUsersQuery: Ea } = ht, Ie = ht.injectEndpoints({
|
|
2153
2153
|
endpoints: (t) => ({
|
|
2154
2154
|
getProjectsInfo: t.query({
|
|
2155
2155
|
async queryFn({ projects: e = [], anatomy: s = !0 }, { dispatch: n }) {
|
|
@@ -2396,9 +2396,9 @@ const Qn = (t, e) => {
|
|
|
2396
2396
|
])
|
|
2397
2397
|
);
|
|
2398
2398
|
}
|
|
2399
|
-
const
|
|
2400
|
-
let
|
|
2401
|
-
for (const S of
|
|
2399
|
+
const w = Ie.util.selectInvalidatedBy(u, T).filter((S) => S.endpointName === "GetKanban");
|
|
2400
|
+
let A = [];
|
|
2401
|
+
for (const S of w) {
|
|
2402
2402
|
const [j, _] = Xe(
|
|
2403
2403
|
{
|
|
2404
2404
|
assignees: S.originalArgs.assignees,
|
|
@@ -2411,13 +2411,13 @@ const Qn = (t, e) => {
|
|
|
2411
2411
|
},
|
|
2412
2412
|
{ dispatch: a }
|
|
2413
2413
|
);
|
|
2414
|
-
_ ? o.push(j) :
|
|
2414
|
+
_ ? o.push(j) : A.push(S);
|
|
2415
2415
|
}
|
|
2416
2416
|
const E = { projects: f, assignees: m };
|
|
2417
|
-
|
|
2417
|
+
A = A.filter(
|
|
2418
2418
|
(S) => JSON.stringify(S.originalArgs) !== JSON.stringify(E)
|
|
2419
2419
|
);
|
|
2420
|
-
const P =
|
|
2420
|
+
const P = w.map((S) => ({
|
|
2421
2421
|
type: "kanban",
|
|
2422
2422
|
id: JSON.stringify(S.originalArgs)
|
|
2423
2423
|
}));
|
|
@@ -2717,16 +2717,16 @@ const z = Q.enhanceEndpoints({
|
|
|
2717
2717
|
GetProductsColumnStats: {
|
|
2718
2718
|
transformResponse: (t) => ke(t?.project?.products?.fieldStats ?? []),
|
|
2719
2719
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
2720
|
-
merge: (t, e) =>
|
|
2721
|
-
forceRefetch: ({ currentArg: t, previousArg: e }) =>
|
|
2720
|
+
merge: (t, e) => we(e, t),
|
|
2721
|
+
forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
|
|
2722
2722
|
providesTags: (t, e, { projectName: s }) => [{ type: "productColumnStats", id: s }],
|
|
2723
2723
|
keepUnusedDataFor: K
|
|
2724
2724
|
},
|
|
2725
2725
|
GetVersionsColumnStats: {
|
|
2726
2726
|
transformResponse: (t) => ke(t?.project?.versions?.fieldStats ?? []),
|
|
2727
2727
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
2728
|
-
merge: (t, e) =>
|
|
2729
|
-
forceRefetch: ({ currentArg: t, previousArg: e }) =>
|
|
2728
|
+
merge: (t, e) => we(e, t),
|
|
2729
|
+
forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
|
|
2730
2730
|
providesTags: (t, e, { projectName: s }) => [{ type: "versionColumnStats", id: s }],
|
|
2731
2731
|
keepUnusedDataFor: K
|
|
2732
2732
|
}
|
|
@@ -3196,11 +3196,11 @@ const N = z.injectEndpoints({
|
|
|
3196
3196
|
const I = b.featuredVersion?.id;
|
|
3197
3197
|
if (I) {
|
|
3198
3198
|
if (f && f.some((k) => k.entityId === I && k.parentId === b.id) && p.add(b.id), y)
|
|
3199
|
-
for (const { entityId: k, field: T, value:
|
|
3200
|
-
b.id ===
|
|
3199
|
+
for (const { entityId: k, field: T, value: w, parentId: A } of y)
|
|
3200
|
+
b.id === A && I === k && b.featuredVersion && (b.featuredVersion[T] = w);
|
|
3201
3201
|
if (h)
|
|
3202
|
-
for (const { entityId: k, allAttrib: T, parsedAttrib:
|
|
3203
|
-
I === k && b.featuredVersion && (b.featuredVersion.allAttrib = T, b.featuredVersion.attrib =
|
|
3202
|
+
for (const { entityId: k, allAttrib: T, parsedAttrib: w } of h)
|
|
3203
|
+
I === k && b.featuredVersion && (b.featuredVersion.allAttrib = T, b.featuredVersion.attrib = w);
|
|
3204
3204
|
if (g)
|
|
3205
3205
|
for (const k of g)
|
|
3206
3206
|
I === k.id && b.featuredVersion && (b.featuredVersion = k);
|
|
@@ -3243,7 +3243,7 @@ const N = z.injectEndpoints({
|
|
|
3243
3243
|
try {
|
|
3244
3244
|
const v = [];
|
|
3245
3245
|
for (const k of s) {
|
|
3246
|
-
const T = k.count || 500,
|
|
3246
|
+
const T = k.count || 500, w = {
|
|
3247
3247
|
projectName: e,
|
|
3248
3248
|
// base filters
|
|
3249
3249
|
productFilter: r,
|
|
@@ -3262,30 +3262,30 @@ const N = z.injectEndpoints({
|
|
|
3262
3262
|
hasReviewables: g,
|
|
3263
3263
|
group: k.value
|
|
3264
3264
|
};
|
|
3265
|
-
l ?
|
|
3266
|
-
const
|
|
3265
|
+
l ? w.last = T : w.first = T;
|
|
3266
|
+
const A = m.dispatch(
|
|
3267
3267
|
z.endpoints.GetVersions.initiate(
|
|
3268
|
-
|
|
3268
|
+
w,
|
|
3269
3269
|
{
|
|
3270
3270
|
forceRefetch: !0
|
|
3271
3271
|
}
|
|
3272
3272
|
)
|
|
3273
3273
|
);
|
|
3274
|
-
v.push(
|
|
3274
|
+
v.push(A);
|
|
3275
3275
|
}
|
|
3276
3276
|
const b = await Promise.all(v), I = [];
|
|
3277
3277
|
for (const k of b) {
|
|
3278
3278
|
if (k.error) throw k.error;
|
|
3279
|
-
const T = k.originalArgs?.group,
|
|
3279
|
+
const T = k.originalArgs?.group, w = k.data?.pageInfo?.hasNextPage || k.data?.pageInfo?.hasPreviousPage || !1, A = k.data?.versions.map((E, P, S) => ({
|
|
3280
3280
|
...E,
|
|
3281
3281
|
groups: [
|
|
3282
3282
|
{
|
|
3283
3283
|
value: T,
|
|
3284
|
-
hasNextPage: P === S.length - 1 &&
|
|
3284
|
+
hasNextPage: P === S.length - 1 && w ? T : void 0
|
|
3285
3285
|
}
|
|
3286
3286
|
]
|
|
3287
3287
|
})) || [];
|
|
3288
|
-
I.push(...
|
|
3288
|
+
I.push(...A);
|
|
3289
3289
|
}
|
|
3290
3290
|
return {
|
|
3291
3291
|
data: {
|
|
@@ -3903,7 +3903,7 @@ const N = z.injectEndpoints({
|
|
|
3903
3903
|
"entityListItemsColumnStats"
|
|
3904
3904
|
])), v.length === 0 && b.length === 0)
|
|
3905
3905
|
return;
|
|
3906
|
-
const T = Ft(v),
|
|
3906
|
+
const T = Ft(v), w = Ft(b), A = T.map((P) => ({ type: "overviewTask", id: P })), E = x.util.selectInvalidatedBy(u, A).filter((P) => P.endpointName === "getTasksListInfinite");
|
|
3907
3907
|
if (T.length > 0 && n) {
|
|
3908
3908
|
for (const S of E)
|
|
3909
3909
|
await Un({
|
|
@@ -3912,7 +3912,7 @@ const N = z.injectEndpoints({
|
|
|
3912
3912
|
updatedTaskIds: T,
|
|
3913
3913
|
cacheEntry: S
|
|
3914
3914
|
});
|
|
3915
|
-
const P = x.util.selectInvalidatedBy(u,
|
|
3915
|
+
const P = x.util.selectInvalidatedBy(u, A).filter((S) => S.endpointName === "getOverviewTasksByFolders");
|
|
3916
3916
|
for (const S of P)
|
|
3917
3917
|
await qn({
|
|
3918
3918
|
dispatch: i,
|
|
@@ -3921,7 +3921,7 @@ const N = z.injectEndpoints({
|
|
|
3921
3921
|
cacheEntry: S
|
|
3922
3922
|
});
|
|
3923
3923
|
}
|
|
3924
|
-
|
|
3924
|
+
w.length > 0 && n && i($e.util.invalidateTags([{ type: "folder", id: "LIST" }]));
|
|
3925
3925
|
} catch {
|
|
3926
3926
|
for (const b of o)
|
|
3927
3927
|
b.undo();
|
|
@@ -4220,7 +4220,6 @@ const N = z.injectEndpoints({
|
|
|
4220
4220
|
allAttrib: "",
|
|
4221
4221
|
attrib: {},
|
|
4222
4222
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4223
|
-
updatedAt: "",
|
|
4224
4223
|
active: !0,
|
|
4225
4224
|
access: "",
|
|
4226
4225
|
accessLevel: 30,
|
|
@@ -4231,8 +4230,8 @@ const N = z.injectEndpoints({
|
|
|
4231
4230
|
entityListType: p.entity_list_type,
|
|
4232
4231
|
count: p.count,
|
|
4233
4232
|
entityListFolderId: p.entity_list_folder_id ?? null,
|
|
4234
|
-
|
|
4235
|
-
|
|
4233
|
+
// the event's own timestamps have no timezone, so the client clock is the closer estimate
|
|
4234
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4236
4235
|
owner: h?.owner || ""
|
|
4237
4236
|
// mainly to shut up typescript
|
|
4238
4237
|
});
|
|
@@ -4332,8 +4331,8 @@ const N = z.injectEndpoints({
|
|
|
4332
4331
|
r((b) => {
|
|
4333
4332
|
b?.pages && v.forEach((I) => {
|
|
4334
4333
|
b.pages.forEach((k) => {
|
|
4335
|
-
(k.items || []).forEach((
|
|
4336
|
-
|
|
4334
|
+
(k.items || []).forEach((w) => {
|
|
4335
|
+
w.entityId === I.summary.entityId && w.entityType === I.summary.entityType && I.summary.thumbnailHash && (w.thumbnailHash = I.summary.thumbnailHash);
|
|
4337
4336
|
});
|
|
4338
4337
|
});
|
|
4339
4338
|
});
|
|
@@ -4704,20 +4703,20 @@ const N = z.injectEndpoints({
|
|
|
4704
4703
|
async (o, l) => {
|
|
4705
4704
|
const p = Array.isArray(t.entityIds) ? t.entityIds : [t.entityIds], f = ["origin", "mention", "relation"], y = t.activityTypes, h = Array.isArray(y) ? y : y ? [y] : [], g = [], m = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set();
|
|
4706
4705
|
o.forEach(({ topic: k, message: T }) => {
|
|
4707
|
-
const
|
|
4708
|
-
if (!
|
|
4709
|
-
const
|
|
4710
|
-
if (!(!p.some((P) =>
|
|
4706
|
+
const w = T.summary?.activity_id;
|
|
4707
|
+
if (!w) return;
|
|
4708
|
+
const A = (T.summary?.references || []).filter((P) => f.includes(P.reference_type)).map((P) => P.entity_id);
|
|
4709
|
+
if (!(!p.some((P) => A.includes(P)) && p.length > 0)) {
|
|
4711
4710
|
if (k === "activity.deleted") {
|
|
4712
|
-
g.push(
|
|
4711
|
+
g.push(w);
|
|
4713
4712
|
return;
|
|
4714
4713
|
}
|
|
4715
|
-
T.summary?.activity_type && (v.add(
|
|
4714
|
+
T.summary?.activity_type && (v.add(w), m.set(w, k), A.forEach((P) => b.add(P)));
|
|
4716
4715
|
}
|
|
4717
4716
|
}), g.length && e((k) => {
|
|
4718
4717
|
k.pages?.forEach((T) => {
|
|
4719
4718
|
T.activities = T.activities?.filter(
|
|
4720
|
-
(
|
|
4719
|
+
(w) => !g.includes(w.activityId)
|
|
4721
4720
|
);
|
|
4722
4721
|
});
|
|
4723
4722
|
});
|
|
@@ -4737,11 +4736,11 @@ const N = z.injectEndpoints({
|
|
|
4737
4736
|
);
|
|
4738
4737
|
if ("error" in T && T.error) throw new Error("Failed to fetch activities");
|
|
4739
4738
|
if (!l()) return;
|
|
4740
|
-
const
|
|
4741
|
-
|
|
4739
|
+
const w = T.data?.activities || [], A = new Map(
|
|
4740
|
+
w.map((E) => [E.activityId, E])
|
|
4742
4741
|
);
|
|
4743
4742
|
e((E) => {
|
|
4744
|
-
|
|
4743
|
+
A.forEach((P, S) => {
|
|
4745
4744
|
const j = [P.activityType];
|
|
4746
4745
|
if (P.activityType === "comment" && bi(P.body || "") && j.push("checklist"), h.length > 0 && !h.some(($) => j.includes($)))
|
|
4747
4746
|
return;
|
|
@@ -4959,7 +4958,7 @@ const N = z.injectEndpoints({
|
|
|
4959
4958
|
id: t + "-" + i
|
|
4960
4959
|
}));
|
|
4961
4960
|
return n.push({ type: "activity", id: "LIST" }), n.push({ type: "watchers", id: t }), n;
|
|
4962
|
-
},
|
|
4961
|
+
}, wi = ye.injectEndpoints({
|
|
4963
4962
|
endpoints: (t) => ({
|
|
4964
4963
|
createEntityActivity: t.mutation({
|
|
4965
4964
|
query: ({ projectName: e, entityType: s, entityId: n, data: i = {} }) => ({
|
|
@@ -5003,7 +5002,7 @@ const N = z.injectEndpoints({
|
|
|
5003
5002
|
useCreateEntityActivityMutation: oo,
|
|
5004
5003
|
useDeleteActivityMutation: co,
|
|
5005
5004
|
useUpdateActivityMutation: uo
|
|
5006
|
-
} =
|
|
5005
|
+
} = wi, Wt = ({ activityId: t, userName: e, reaction: s }, { getState: n, dispatch: i }, r) => {
|
|
5007
5006
|
const a = [{ type: "activity", id: t }];
|
|
5008
5007
|
return ye.util.selectInvalidatedBy(n(), a).map((d) => i(
|
|
5009
5008
|
// @ts-ignore
|
|
@@ -5041,7 +5040,7 @@ const N = z.injectEndpoints({
|
|
|
5041
5040
|
}
|
|
5042
5041
|
)
|
|
5043
5042
|
));
|
|
5044
|
-
},
|
|
5043
|
+
}, Ai = Pe.enhanceEndpoints({
|
|
5045
5044
|
endpoints: {
|
|
5046
5045
|
createReactionToActivity: {
|
|
5047
5046
|
async onQueryStarted(t, { getState: e, dispatch: s, queryFulfilled: n }) {
|
|
@@ -5080,7 +5079,7 @@ const N = z.injectEndpoints({
|
|
|
5080
5079
|
}
|
|
5081
5080
|
}
|
|
5082
5081
|
}
|
|
5083
|
-
}), { useCreateReactionToActivityMutation: lo, useDeleteReactionToActivityMutation: po } =
|
|
5082
|
+
}), { useCreateReactionToActivityMutation: lo, useDeleteReactionToActivityMutation: po } = Ai, zt = Pe.enhanceEndpoints({
|
|
5084
5083
|
endpoints: {
|
|
5085
5084
|
suggestEntityMention: {}
|
|
5086
5085
|
}
|
|
@@ -5284,7 +5283,7 @@ const N = z.injectEndpoints({
|
|
|
5284
5283
|
]
|
|
5285
5284
|
}
|
|
5286
5285
|
}
|
|
5287
|
-
}), { useGetAttributeListQuery: ko, useGetAttributeConfigQuery:
|
|
5286
|
+
}), { useGetAttributeListQuery: ko, useGetAttributeConfigQuery: wo } = Ts, Pi = Ts.enhanceEndpoints({
|
|
5288
5287
|
endpoints: {
|
|
5289
5288
|
setAttributeList: {
|
|
5290
5289
|
invalidatesTags: ["attribute"]
|
|
@@ -5296,7 +5295,7 @@ const N = z.injectEndpoints({
|
|
|
5296
5295
|
invalidatesTags: (t, e, { attributeName: s }) => [{ type: "attribute", id: s }]
|
|
5297
5296
|
}
|
|
5298
5297
|
}
|
|
5299
|
-
}), { useSetAttributeListMutation:
|
|
5298
|
+
}), { useSetAttributeListMutation: Ao, usePatchAttributeConfigMutation: Eo } = Pi, Li = Rs.enhanceEndpoints({
|
|
5300
5299
|
endpoints: {
|
|
5301
5300
|
createSession: {},
|
|
5302
5301
|
getUserPools: {
|
|
@@ -5491,8 +5490,8 @@ const N = z.injectEndpoints({
|
|
|
5491
5490
|
);
|
|
5492
5491
|
},
|
|
5493
5492
|
serializeQueryArgs: ({ queryArgs: { targets: t, ...e } }) => e,
|
|
5494
|
-
merge: (t, e) =>
|
|
5495
|
-
forceRefetch: ({ currentArg: t, previousArg: e }) =>
|
|
5493
|
+
merge: (t, e) => we(e, t),
|
|
5494
|
+
forceRefetch: ({ currentArg: t, previousArg: e }) => Ae(t, e),
|
|
5496
5495
|
providesTags: (t, e, { listId: s, projectName: n }) => [
|
|
5497
5496
|
{ type: "entityListItemsColumnStats", id: s },
|
|
5498
5497
|
{ type: "entityListItemsColumnStats", id: n }
|
|
@@ -5706,10 +5705,10 @@ const N = z.injectEndpoints({
|
|
|
5706
5705
|
parents: f.parents,
|
|
5707
5706
|
subType: f.subType
|
|
5708
5707
|
}
|
|
5709
|
-
},
|
|
5710
|
-
(
|
|
5708
|
+
}, w = k.links.findIndex(
|
|
5709
|
+
(A) => A.id === n
|
|
5711
5710
|
);
|
|
5712
|
-
|
|
5711
|
+
w !== -1 ? k.links[w] = T : (console.log(
|
|
5713
5712
|
`Adding new link to ${p.entityType} links cache`,
|
|
5714
5713
|
T,
|
|
5715
5714
|
Ks(k)
|
|
@@ -5792,14 +5791,14 @@ const N = z.injectEndpoints({
|
|
|
5792
5791
|
throw new Error("Source or target entity data not found");
|
|
5793
5792
|
if (!c)
|
|
5794
5793
|
throw new Error("Link ID not found in cache entry");
|
|
5795
|
-
const
|
|
5794
|
+
const w = {
|
|
5796
5795
|
entityType: l,
|
|
5797
5796
|
entityId: p,
|
|
5798
5797
|
name: k.name,
|
|
5799
5798
|
label: "label" in k ? k.label : void 0,
|
|
5800
5799
|
parents: k.parents || [],
|
|
5801
5800
|
subType: "subType" in k ? k.subType : void 0
|
|
5802
|
-
},
|
|
5801
|
+
}, A = {
|
|
5803
5802
|
entityType: y,
|
|
5804
5803
|
entityId: h,
|
|
5805
5804
|
name: T.name,
|
|
@@ -5810,8 +5809,8 @@ const N = z.injectEndpoints({
|
|
|
5810
5809
|
Jt(
|
|
5811
5810
|
{
|
|
5812
5811
|
projectName: t,
|
|
5813
|
-
sourceEntity:
|
|
5814
|
-
targetEntity:
|
|
5812
|
+
sourceEntity: w,
|
|
5813
|
+
targetEntity: A,
|
|
5815
5814
|
linkId: c,
|
|
5816
5815
|
linkType: m,
|
|
5817
5816
|
direction: g,
|
|
@@ -6051,13 +6050,13 @@ const N = z.injectEndpoints({
|
|
|
6051
6050
|
providesTags: (t, e, s) => [{ type: "userProjectPermissions" }]
|
|
6052
6051
|
}
|
|
6053
6052
|
}
|
|
6054
|
-
}), { useGetMyPermissionsQuery: ac, useGetMyProjectPermissionsQuery: oc } = Hi,
|
|
6053
|
+
}), { useGetMyPermissionsQuery: ac, useGetMyProjectPermissionsQuery: oc } = Hi, ws = Vs.enhanceEndpoints({
|
|
6055
6054
|
endpoints: {
|
|
6056
6055
|
getProductTypes: {
|
|
6057
6056
|
providesTags: (t, e, s) => [{ type: "productType", id: "LIST" }]
|
|
6058
6057
|
}
|
|
6059
6058
|
}
|
|
6060
|
-
}), { useGetProductTypesQuery: cc } =
|
|
6059
|
+
}), { useGetProductTypesQuery: cc } = ws, Wi = ws.enhanceEndpoints({
|
|
6061
6060
|
endpoints: {
|
|
6062
6061
|
createProduct: {
|
|
6063
6062
|
invalidatesTags: (t, e, { productPostModel: s }) => [
|
|
@@ -6224,7 +6223,7 @@ const N = z.injectEndpoints({
|
|
|
6224
6223
|
useUpdateProjectFolderMutation: yc,
|
|
6225
6224
|
useSetProjectFoldersOrderMutation: gc,
|
|
6226
6225
|
useAssignProjectsToFolderMutation: hc
|
|
6227
|
-
} = Ve,
|
|
6226
|
+
} = Ve, As = (t, {
|
|
6228
6227
|
productId: e,
|
|
6229
6228
|
taskId: s,
|
|
6230
6229
|
folderId: n,
|
|
@@ -6263,7 +6262,7 @@ const N = z.injectEndpoints({
|
|
|
6263
6262
|
endpoints: {
|
|
6264
6263
|
getReviewablesForVersion: {
|
|
6265
6264
|
keepUnusedDataFor: 1,
|
|
6266
|
-
providesTags: (t, e, { versionId: s }) =>
|
|
6265
|
+
providesTags: (t, e, { versionId: s }) => As([t], { versionId: s, productId: t?.productId }),
|
|
6267
6266
|
async onCacheEntryAdded({ versionId: t }, { updateCachedData: e, cacheDataLoaded: s, cacheEntryRemoved: n, dispatch: i, getCacheEntry: r }) {
|
|
6268
6267
|
let a;
|
|
6269
6268
|
const c = U(
|
|
@@ -6357,7 +6356,7 @@ const N = z.injectEndpoints({
|
|
|
6357
6356
|
const c = await r(a);
|
|
6358
6357
|
return c.error ? { error: L(c.error) } : { data: c.data };
|
|
6359
6358
|
},
|
|
6360
|
-
providesTags: (e, s, n) =>
|
|
6359
|
+
providesTags: (e, s, n) => As(e, n, !0),
|
|
6361
6360
|
async onCacheEntryAdded({ productId: e, taskId: s, folderId: n }, { cacheDataLoaded: i, cacheEntryRemoved: r, dispatch: a, getCacheEntry: c }) {
|
|
6362
6361
|
let d;
|
|
6363
6362
|
const u = U(
|
|
@@ -6485,7 +6484,7 @@ const N = z.injectEndpoints({
|
|
|
6485
6484
|
providesTags: (t, e, { projectName: s }) => t ? [...Xi(t), ...Yt(s)] : Yt(s)
|
|
6486
6485
|
}
|
|
6487
6486
|
}
|
|
6488
|
-
}), { useGetShareOptionsQuery:
|
|
6487
|
+
}), { useGetShareOptionsQuery: wc } = Zi, er = Os.enhanceEndpoints({
|
|
6489
6488
|
endpoints: {
|
|
6490
6489
|
getSiteInfo: {
|
|
6491
6490
|
providesTags: (t) => t ? [
|
|
@@ -6502,7 +6501,7 @@ const N = z.injectEndpoints({
|
|
|
6502
6501
|
providesTags: ["info"]
|
|
6503
6502
|
}
|
|
6504
6503
|
}
|
|
6505
|
-
}), { useGetSiteInfoQuery:
|
|
6504
|
+
}), { useGetSiteInfoQuery: Ac, useLazyGetSiteInfoQuery: Ec, useListFrontendModulesQuery: Sc } = er, tr = at.enhanceEndpoints({
|
|
6506
6505
|
endpoints: {
|
|
6507
6506
|
getTask: {
|
|
6508
6507
|
providesTags: (t, e, { taskId: s }) => [
|
|
@@ -7246,12 +7245,12 @@ export {
|
|
|
7246
7245
|
V as W,
|
|
7247
7246
|
Hr as X,
|
|
7248
7247
|
Di as Y,
|
|
7249
|
-
|
|
7248
|
+
Ae as Z,
|
|
7250
7249
|
N as _,
|
|
7251
7250
|
tt as a,
|
|
7252
7251
|
po as a$,
|
|
7253
7252
|
Ei as a0,
|
|
7254
|
-
|
|
7253
|
+
we as a1,
|
|
7255
7254
|
ke as a2,
|
|
7256
7255
|
zr as a3,
|
|
7257
7256
|
Rt as a4,
|
|
@@ -7300,13 +7299,13 @@ export {
|
|
|
7300
7299
|
zn as ak,
|
|
7301
7300
|
Hn as al,
|
|
7302
7301
|
xe as am,
|
|
7303
|
-
|
|
7302
|
+
Ai as an,
|
|
7304
7303
|
Yi as ao,
|
|
7305
7304
|
Wr as ap,
|
|
7306
7305
|
Zi as aq,
|
|
7307
7306
|
qr as ar,
|
|
7308
7307
|
er as as,
|
|
7309
|
-
|
|
7308
|
+
wn as at,
|
|
7310
7309
|
ir as au,
|
|
7311
7310
|
zo as av,
|
|
7312
7311
|
$r as aw,
|
|
@@ -7340,7 +7339,7 @@ export {
|
|
|
7340
7339
|
ea as bM,
|
|
7341
7340
|
Na as bN,
|
|
7342
7341
|
Ea as bO,
|
|
7343
|
-
|
|
7342
|
+
Aa as bP,
|
|
7344
7343
|
zc as bQ,
|
|
7345
7344
|
rc as bR,
|
|
7346
7345
|
Ko as bS,
|
|
@@ -7364,7 +7363,7 @@ export {
|
|
|
7364
7363
|
ao as bj,
|
|
7365
7364
|
Vc as bk,
|
|
7366
7365
|
Nc as bl,
|
|
7367
|
-
|
|
7366
|
+
wo as bm,
|
|
7368
7367
|
ko as bn,
|
|
7369
7368
|
sd as bo,
|
|
7370
7369
|
Bo as bp,
|
|
@@ -7424,8 +7423,8 @@ export {
|
|
|
7424
7423
|
xo as ce,
|
|
7425
7424
|
qo as cf,
|
|
7426
7425
|
vo as cg,
|
|
7427
|
-
|
|
7428
|
-
|
|
7426
|
+
wc as ch,
|
|
7427
|
+
Ac as ci,
|
|
7429
7428
|
Pr as cj,
|
|
7430
7429
|
sa as ck,
|
|
7431
7430
|
Pc as cl,
|
|
@@ -7447,12 +7446,12 @@ export {
|
|
|
7447
7446
|
Gc as d0,
|
|
7448
7447
|
_c as d1,
|
|
7449
7448
|
Dr as d2,
|
|
7450
|
-
|
|
7449
|
+
Ao as d3,
|
|
7451
7450
|
ad as d4,
|
|
7452
7451
|
cd as d5,
|
|
7453
7452
|
Jo as d6,
|
|
7454
7453
|
Ta as d7,
|
|
7455
|
-
|
|
7454
|
+
wa as d8,
|
|
7456
7455
|
gc as d9,
|
|
7457
7456
|
cc as dA,
|
|
7458
7457
|
as as dB,
|
|
@@ -7484,7 +7483,7 @@ export {
|
|
|
7484
7483
|
mr as dy,
|
|
7485
7484
|
Gi as dz,
|
|
7486
7485
|
ae as e,
|
|
7487
|
-
|
|
7486
|
+
wi as f,
|
|
7488
7487
|
Is as g,
|
|
7489
7488
|
vn as h,
|
|
7490
7489
|
Xs as i,
|