@overmap-ai/core 1.0.80-presigned-get-improvements.0 → 1.0.80-presigned-get-improvements.2
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/overmap-core.js
CHANGED
|
@@ -29,51 +29,51 @@ const ic = Object.freeze([]), nc = Object.freeze({}), rc = 6e4, ac = [
|
|
|
29
29
|
var cc = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(cc || {}), o = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(o || {}), dc = /* @__PURE__ */ ((t) => (t[t.PLANNED = 0] = "PLANNED", t[t.ACTIVE = 1] = "ACTIVE", t[t.MAINTENANCE = 2] = "MAINTENANCE", t[t.INACTIVE = 3] = "INACTIVE", t[t.RETIRED = 4] = "RETIRED", t[t.DISPOSED = 5] = "DISPOSED", t))(dc || {}), x = /* @__PURE__ */ ((t) => (t.STATUS = "status", t.PRIORITY = "priority", t.DESCRIPTION = "description", t.TITLE = "title", t.ASSIGNED_TO = "assigned_to", t.DUE_DATE = "due_date", t))(x || {}), oc = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.PLANNED = 1] = "PLANNED", t[t.IN_PROGRESS = 2] = "IN_PROGRESS", t[t.COMPLETED = 3] = "COMPLETED", t[t.CANCELLED = 4] = "CANCELLED", t))(oc || {}), uc = /* @__PURE__ */ ((t) => (t[t.LOWEST = 0] = "LOWEST", t[t.LOW = 2] = "LOW", t[t.MEDIUM = 4] = "MEDIUM", t[t.HIGH = 6] = "HIGH", t[t.HIGHEST = 8] = "HIGHEST", t))(uc || {}), lc = /* @__PURE__ */ ((t) => (t[t.ADD_ASSIGNEE = 0] = "ADD_ASSIGNEE", t[t.REMOVE_ASSIGNEE = 2] = "REMOVE_ASSIGNEE", t[t.ADD_REVIEWER = 4] = "ADD_REVIEWER", t[t.REMOVE_REVIEWER = 6] = "REMOVE_REVIEWER", t))(lc || {}), hc = /* @__PURE__ */ ((t) => (t[t.APPROVED = 0] = "APPROVED", t[t.REJECTED = 2] = "REJECTED", t[t.CHANGES_REQUESTED = 4] = "CHANGES_REQUESTED", t))(hc || {});
|
|
30
30
|
function P(t) {
|
|
31
31
|
return {
|
|
32
|
-
addOne: (l,
|
|
33
|
-
const A = t(
|
|
34
|
-
l.instances[A] =
|
|
32
|
+
addOne: (l, m) => {
|
|
33
|
+
const A = t(m.payload);
|
|
34
|
+
l.instances[A] = m.payload;
|
|
35
35
|
},
|
|
36
|
-
addMany: (l,
|
|
37
|
-
for (const A of
|
|
38
|
-
const
|
|
39
|
-
l.instances[
|
|
36
|
+
addMany: (l, m) => {
|
|
37
|
+
for (const A of m.payload) {
|
|
38
|
+
const R = t(A);
|
|
39
|
+
l.instances[R] = A;
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
setOne: (l,
|
|
43
|
-
const A = t(
|
|
44
|
-
l.instances[A] =
|
|
42
|
+
setOne: (l, m) => {
|
|
43
|
+
const A = t(m.payload);
|
|
44
|
+
l.instances[A] = m.payload;
|
|
45
45
|
},
|
|
46
|
-
setMany: (l,
|
|
47
|
-
for (const A of
|
|
48
|
-
const
|
|
49
|
-
l.instances[
|
|
46
|
+
setMany: (l, m) => {
|
|
47
|
+
for (const A of m.payload) {
|
|
48
|
+
const R = t(A);
|
|
49
|
+
l.instances[R] = A;
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
updateOne: (l,
|
|
53
|
-
const A = t(
|
|
54
|
-
l.instances[A] =
|
|
52
|
+
updateOne: (l, m) => {
|
|
53
|
+
const A = t(m.payload);
|
|
54
|
+
l.instances[A] = m.payload;
|
|
55
55
|
},
|
|
56
|
-
updateMany: (l,
|
|
57
|
-
for (const A of
|
|
58
|
-
const
|
|
59
|
-
l.instances[
|
|
56
|
+
updateMany: (l, m) => {
|
|
57
|
+
for (const A of m.payload) {
|
|
58
|
+
const R = t(A);
|
|
59
|
+
l.instances[R] = A;
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
deleteOne: (l,
|
|
63
|
-
delete l.instances[
|
|
62
|
+
deleteOne: (l, m) => {
|
|
63
|
+
delete l.instances[m.payload];
|
|
64
64
|
},
|
|
65
|
-
deleteMany: (l,
|
|
66
|
-
for (const A of
|
|
65
|
+
deleteMany: (l, m) => {
|
|
66
|
+
for (const A of m.payload)
|
|
67
67
|
delete l.instances[A];
|
|
68
68
|
},
|
|
69
|
-
initialize: (l,
|
|
69
|
+
initialize: (l, m) => {
|
|
70
70
|
l.instances = {};
|
|
71
71
|
const A = /* @__PURE__ */ new Set();
|
|
72
|
-
for (const
|
|
73
|
-
const M = t(
|
|
74
|
-
A.add(M), l.instances[M] =
|
|
72
|
+
for (const R of m.payload) {
|
|
73
|
+
const M = t(R);
|
|
74
|
+
A.add(M), l.instances[M] = R;
|
|
75
75
|
}
|
|
76
|
-
A.size !==
|
|
76
|
+
A.size !== m.payload.length && console.warn("duplicate ids detected when initializing model instances.");
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
}
|
|
@@ -87,8 +87,8 @@ function Yb(t) {
|
|
|
87
87
|
},
|
|
88
88
|
selectMany: (c, h) => {
|
|
89
89
|
const l = new Set(c[t]);
|
|
90
|
-
for (const
|
|
91
|
-
l.has(
|
|
90
|
+
for (const m of h.payload)
|
|
91
|
+
l.has(m) || l.add(m);
|
|
92
92
|
c[t] = Array.from(l);
|
|
93
93
|
},
|
|
94
94
|
unselectOne: (c, h) => {
|
|
@@ -97,8 +97,8 @@ function Yb(t) {
|
|
|
97
97
|
},
|
|
98
98
|
unselectMany: (c, h) => {
|
|
99
99
|
const l = new Set(c[t]);
|
|
100
|
-
for (const
|
|
101
|
-
l.has(
|
|
100
|
+
for (const m of h.payload)
|
|
101
|
+
l.has(m) && l.delete(m);
|
|
102
102
|
c[t] = Array.from(l);
|
|
103
103
|
},
|
|
104
104
|
toggleOne: (c, h) => {
|
|
@@ -107,8 +107,8 @@ function Yb(t) {
|
|
|
107
107
|
},
|
|
108
108
|
toggleMany: (c, h) => {
|
|
109
109
|
const l = new Set(c[t]);
|
|
110
|
-
for (const
|
|
111
|
-
l.has(
|
|
110
|
+
for (const m of h.payload)
|
|
111
|
+
l.has(m) ? l.delete(m) : l.add(m);
|
|
112
112
|
c[t] = Array.from(l);
|
|
113
113
|
}
|
|
114
114
|
};
|
|
@@ -335,7 +335,7 @@ class hM {
|
|
|
335
335
|
return p([this.getData], (s) => f(this.performOperations(s)));
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
const
|
|
338
|
+
const y = (
|
|
339
339
|
// oxlint-disable-next-line no-explicit-any REASON: Need for generic args
|
|
340
340
|
(t) => (...s) => (e) => t(e, ...s)
|
|
341
341
|
), N = P((t) => t.uuid), Os = {
|
|
@@ -371,7 +371,7 @@ const m = (
|
|
|
371
371
|
} = Gi.actions, Wi = (t) => t.agentsReducer.instances, AM = p(
|
|
372
372
|
[Wi],
|
|
373
373
|
(t) => Object.values(t)
|
|
374
|
-
), OM =
|
|
374
|
+
), OM = y(
|
|
375
375
|
p(
|
|
376
376
|
[Wi, (t, s) => s],
|
|
377
377
|
(t, s) => t[s]
|
|
@@ -409,12 +409,12 @@ const m = (
|
|
|
409
409
|
} = Ki.actions, Vc = (t) => t.assetAttachmentReducer.instances, Zi = p(
|
|
410
410
|
[Vc],
|
|
411
411
|
(t) => Object.values(t)
|
|
412
|
-
), $c = (t) => (s) => s.assetAttachmentReducer.instances[t], xc =
|
|
412
|
+
), $c = (t) => (s) => s.assetAttachmentReducer.instances[t], xc = y(
|
|
413
413
|
p([Zi, (t, s) => s], (t, s) => {
|
|
414
414
|
const e = new Set(s);
|
|
415
415
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
416
416
|
})
|
|
417
|
-
), Cc =
|
|
417
|
+
), Cc = y(
|
|
418
418
|
p([Zi, (t, s) => s], (t, s) => f(t.filter(({ asset: e }) => s === e)))
|
|
419
419
|
), Uc = Ki.reducer, G = P(
|
|
420
420
|
(t) => t.uuid
|
|
@@ -451,14 +451,14 @@ const m = (
|
|
|
451
451
|
} = Qi.actions, Jc = (t) => t.assetCommentReducer.instances, Kt = p(
|
|
452
452
|
[Jc],
|
|
453
453
|
(t) => f(Object.values(t).toSorted(wt))
|
|
454
|
-
), Zc = (t) => (s) => s.assetCommentReducer.instances[t], Qc =
|
|
454
|
+
), Zc = (t) => (s) => s.assetCommentReducer.instances[t], Qc = y(
|
|
455
455
|
p([Kt, (t, s) => s], (t, s) => {
|
|
456
456
|
const e = new Set(s);
|
|
457
457
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
458
458
|
})
|
|
459
|
-
), Xc =
|
|
459
|
+
), Xc = y(
|
|
460
460
|
p([Kt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
|
|
461
|
-
), ed =
|
|
461
|
+
), ed = y(
|
|
462
462
|
p([Kt, (t, s) => s], (t, s) => {
|
|
463
463
|
const e = new Set(s);
|
|
464
464
|
return f(t.filter((i) => e.has(i.asset)));
|
|
@@ -493,11 +493,11 @@ const m = (
|
|
|
493
493
|
deleteAssets: tn,
|
|
494
494
|
setAsset: cd,
|
|
495
495
|
setAssets: dd
|
|
496
|
-
} = Xi.actions, od = (t) => t.assetReducer.instances, Yt = p([od], (t) => f(Object.values(t))), TM =
|
|
496
|
+
} = Xi.actions, od = (t) => t.assetReducer.instances, Yt = p([od], (t) => f(Object.values(t))), TM = y(
|
|
497
497
|
p([Yt, (t, s) => s], (t, s) => f(t.filter(({ project: e }) => e === s)))
|
|
498
|
-
), ud =
|
|
498
|
+
), ud = y(
|
|
499
499
|
p([Yt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
|
|
500
|
-
), ld = (t) => (s) => s.assetReducer.instances[t], hd =
|
|
500
|
+
), ld = (t) => (s) => s.assetReducer.instances[t], hd = y(
|
|
501
501
|
p([Yt, (t, s) => s], (t, s) => {
|
|
502
502
|
const e = new Set(s);
|
|
503
503
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -535,7 +535,7 @@ const m = (
|
|
|
535
535
|
} = sn.actions, Id = (t) => t.assetTypeAttachmentReducer.instances, an = p(
|
|
536
536
|
[Id],
|
|
537
537
|
(t) => Object.values(t)
|
|
538
|
-
), Pd = (t) => (s) => s.assetTypeAttachmentReducer.instances[t], _d =
|
|
538
|
+
), Pd = (t) => (s) => s.assetTypeAttachmentReducer.instances[t], _d = y(
|
|
539
539
|
p(
|
|
540
540
|
[an, (t, s) => s],
|
|
541
541
|
(t, s) => {
|
|
@@ -543,7 +543,7 @@ const m = (
|
|
|
543
543
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
544
544
|
}
|
|
545
545
|
)
|
|
546
|
-
), bd =
|
|
546
|
+
), bd = y(
|
|
547
547
|
p([an, (t, s) => s], (t, s) => f(t.filter(({ asset_type: e }) => s === e)))
|
|
548
548
|
), Md = sn.reducer, Y = P((t) => t.uuid), bs = {
|
|
549
549
|
instances: {}
|
|
@@ -578,12 +578,12 @@ const m = (
|
|
|
578
578
|
} = cn.actions, Dd = (t) => t.assetTypeFieldsAttachmentReducer.instances, dn = p(
|
|
579
579
|
[Dd],
|
|
580
580
|
(t) => Object.values(t)
|
|
581
|
-
), IM =
|
|
581
|
+
), IM = y(
|
|
582
582
|
p(
|
|
583
583
|
[dn, (t, s) => s],
|
|
584
584
|
(t, s) => f(t.filter((e) => e.fields_revision === s))
|
|
585
585
|
)
|
|
586
|
-
), qd = (t) => (s) => s.assetTypeFieldsAttachmentReducer.instances[t], jd =
|
|
586
|
+
), qd = (t) => (s) => s.assetTypeFieldsAttachmentReducer.instances[t], jd = y(
|
|
587
587
|
p(
|
|
588
588
|
[dn, (t, s) => s],
|
|
589
589
|
(t, s) => {
|
|
@@ -621,11 +621,11 @@ const m = (
|
|
|
621
621
|
updateAssetTypeFieldsMany: Hd,
|
|
622
622
|
deleteAssetTypeFields: Gd,
|
|
623
623
|
deleteAssetTypeFieldsMany: Wd
|
|
624
|
-
} = on.actions, Kd = (t) => t.assetTypeFieldsReducer.instances, vt = p([Kd], (t) => Object.values(t)), PM =
|
|
624
|
+
} = on.actions, Kd = (t) => t.assetTypeFieldsReducer.instances, vt = p([Kd], (t) => Object.values(t)), PM = y(
|
|
625
625
|
p([vt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
|
|
626
|
-
), _M =
|
|
626
|
+
), _M = y(
|
|
627
627
|
p([vt, (t, s) => s], (t, s) => t.filter((e) => e.asset_type === s).toSorted(wt).pop())
|
|
628
|
-
), Yd = (t) => (s) => s.assetTypeFieldsReducer.instances[t], Jd =
|
|
628
|
+
), Yd = (t) => (s) => s.assetTypeFieldsReducer.instances[t], Jd = y(
|
|
629
629
|
p([vt, (t, s) => s], (t, s) => {
|
|
630
630
|
const e = new Set(s);
|
|
631
631
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -663,7 +663,7 @@ const m = (
|
|
|
663
663
|
} = un.actions, ro = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, pn = p(
|
|
664
664
|
[ro],
|
|
665
665
|
(t) => Object.values(t)
|
|
666
|
-
), ao = (t) => (s) => s.assetTypeFieldValuesAttachmentReducer.instances[t], co =
|
|
666
|
+
), ao = (t) => (s) => s.assetTypeFieldValuesAttachmentReducer.instances[t], co = y(
|
|
667
667
|
p(
|
|
668
668
|
[pn, (t, s) => s],
|
|
669
669
|
(t, s) => {
|
|
@@ -671,7 +671,7 @@ const m = (
|
|
|
671
671
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
672
672
|
}
|
|
673
673
|
)
|
|
674
|
-
), oo =
|
|
674
|
+
), oo = y(
|
|
675
675
|
p(
|
|
676
676
|
[pn, (t, s) => s],
|
|
677
677
|
(t, s) => f(t.filter((e) => e.field_values === s))
|
|
@@ -706,9 +706,9 @@ const m = (
|
|
|
706
706
|
updateAssetTypeFieldValuesMany: So,
|
|
707
707
|
deleteAssetTypeFieldValues: Ao,
|
|
708
708
|
deleteAssetTypeFieldValuesMany: Oo
|
|
709
|
-
} = mn.actions, To = (t) => t.assetTypeFieldValuesReducer.instances, Jt = p([To], (t) => Object.values(t)), bM =
|
|
709
|
+
} = mn.actions, To = (t) => t.assetTypeFieldValuesReducer.instances, Jt = p([To], (t) => Object.values(t)), bM = y(
|
|
710
710
|
p([Jt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
|
|
711
|
-
), MM =
|
|
711
|
+
), MM = y(
|
|
712
712
|
p(
|
|
713
713
|
[vt, Jt, (t, s) => s],
|
|
714
714
|
(t, s, e) => {
|
|
@@ -718,7 +718,7 @@ const m = (
|
|
|
718
718
|
return f(s.filter((n) => i.has(n.fields_revision)));
|
|
719
719
|
}
|
|
720
720
|
)
|
|
721
|
-
), Io = (t) => (s) => s.assetTypeFieldValuesReducer.instances[t], Po =
|
|
721
|
+
), Io = (t) => (s) => s.assetTypeFieldValuesReducer.instances[t], Po = y(
|
|
722
722
|
p(
|
|
723
723
|
[Jt, (t, s) => s],
|
|
724
724
|
(t, s) => {
|
|
@@ -759,7 +759,7 @@ const m = (
|
|
|
759
759
|
} = yn.actions, Bo = (t) => t.assetTypeIdentifierReducer.instances, fn = p(
|
|
760
760
|
[Bo],
|
|
761
761
|
(t) => Object.values(t)
|
|
762
|
-
), zo = (t) => (s) => s.assetTypeIdentifierReducer.instances[t], Do =
|
|
762
|
+
), zo = (t) => (s) => s.assetTypeIdentifierReducer.instances[t], Do = y(
|
|
763
763
|
p(
|
|
764
764
|
[fn, (t, s) => s],
|
|
765
765
|
(t, s) => {
|
|
@@ -767,7 +767,7 @@ const m = (
|
|
|
767
767
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
768
768
|
}
|
|
769
769
|
)
|
|
770
|
-
), gM =
|
|
770
|
+
), gM = y(
|
|
771
771
|
p([fn, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
|
|
772
772
|
), qo = yn.reducer, ee = P((t) => t.uuid), Fs = {
|
|
773
773
|
instances: {}
|
|
@@ -802,7 +802,7 @@ const m = (
|
|
|
802
802
|
} = Sn.actions, Go = (t) => t.assetTypeIdentifierValueReducer.instances, Zt = p(
|
|
803
803
|
[Go],
|
|
804
804
|
(t) => Object.values(t)
|
|
805
|
-
), Wo = (t) => (s) => s.assetTypeIdentifierValueReducer.instances[t], Ko =
|
|
805
|
+
), Wo = (t) => (s) => s.assetTypeIdentifierValueReducer.instances[t], Ko = y(
|
|
806
806
|
p(
|
|
807
807
|
[Zt, (t, s) => s],
|
|
808
808
|
(t, s) => {
|
|
@@ -810,9 +810,9 @@ const m = (
|
|
|
810
810
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
811
811
|
}
|
|
812
812
|
)
|
|
813
|
-
), wM =
|
|
813
|
+
), wM = y(
|
|
814
814
|
p([Zt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
|
|
815
|
-
), RM =
|
|
815
|
+
), RM = y(
|
|
816
816
|
p(
|
|
817
817
|
[Zt, (t, s) => s],
|
|
818
818
|
(t, s) => f(
|
|
@@ -854,12 +854,12 @@ const m = (
|
|
|
854
854
|
} = An.actions, ru = (t) => t.assetTypeReducer.instances, On = p(
|
|
855
855
|
[ru],
|
|
856
856
|
(t) => Object.values(t)
|
|
857
|
-
), au = (t) => (s) => s.assetTypeReducer.instances[t], cu =
|
|
857
|
+
), au = (t) => (s) => s.assetTypeReducer.instances[t], cu = y(
|
|
858
858
|
p([On, (t, s) => s], (t, s) => {
|
|
859
859
|
const e = new Set(s);
|
|
860
860
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
861
861
|
})
|
|
862
|
-
), FM =
|
|
862
|
+
), FM = y(
|
|
863
863
|
p([On, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
|
|
864
864
|
), du = An.reducer, se = P((t) => t.uuid), vs = {
|
|
865
865
|
instances: {}
|
|
@@ -891,12 +891,12 @@ const m = (
|
|
|
891
891
|
updateAssetTypeStatuses: yu,
|
|
892
892
|
deleteAssetTypeStatus: fu,
|
|
893
893
|
deleteAssetTypeStatuses: Su
|
|
894
|
-
} = Tn.actions, Au = (t) => t.assetTypeStatusReducer.instances, In = p([Au], (t) => f(Object.values(t).toSorted(Pc))), Ou = (t) => (s) => s.assetTypeStatusReducer.instances[t], Tu =
|
|
894
|
+
} = Tn.actions, Au = (t) => t.assetTypeStatusReducer.instances, In = p([Au], (t) => f(Object.values(t).toSorted(Pc))), Ou = (t) => (s) => s.assetTypeStatusReducer.instances[t], Tu = y(
|
|
895
895
|
p([In, (t, s) => s], (t, s) => {
|
|
896
896
|
const e = new Set(s);
|
|
897
897
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
898
898
|
})
|
|
899
|
-
), EM =
|
|
899
|
+
), EM = y(
|
|
900
900
|
p([In, (t, s) => s], (t, s) => f(t.filter((e) => e.asset_type === s)))
|
|
901
901
|
), Iu = Tn.reducer, ks = {
|
|
902
902
|
accessToken: "",
|
|
@@ -947,7 +947,7 @@ const m = (
|
|
|
947
947
|
} = Pn.actions, Bu = (t) => t.documentAttachmentReducer.instances, _n = p(
|
|
948
948
|
[Bu],
|
|
949
949
|
(t) => Object.values(t)
|
|
950
|
-
), zu = (t) => (s) => s.documentAttachmentReducer.instances[t], Du =
|
|
950
|
+
), zu = (t) => (s) => s.documentAttachmentReducer.instances[t], Du = y(
|
|
951
951
|
p(
|
|
952
952
|
[_n, (t, s) => s],
|
|
953
953
|
(t, s) => {
|
|
@@ -955,7 +955,7 @@ const m = (
|
|
|
955
955
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
956
956
|
}
|
|
957
957
|
)
|
|
958
|
-
), DM =
|
|
958
|
+
), DM = y(
|
|
959
959
|
p([_n, (t, s) => s], (t, s) => f(t.filter(({ document: e }) => s === e)))
|
|
960
960
|
), qu = Pn.reducer, ne = P(({ uuid: t }) => t), zs = {
|
|
961
961
|
instances: {}
|
|
@@ -989,16 +989,16 @@ const m = (
|
|
|
989
989
|
} = bn.actions, Gu = bn.reducer, Mn = (t) => t.documentsReducer.instances, Xt = p(
|
|
990
990
|
[Mn],
|
|
991
991
|
(t) => Object.values(t)
|
|
992
|
-
), Wu = (t) => (s) => s.documentsReducer.instances[t], Ku =
|
|
992
|
+
), Wu = (t) => (s) => s.documentsReducer.instances[t], Ku = y(
|
|
993
993
|
p([Xt, (t, s) => s], (t, s) => {
|
|
994
994
|
const e = new Set(s);
|
|
995
995
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
996
996
|
})
|
|
997
|
-
), qM =
|
|
997
|
+
), qM = y(
|
|
998
998
|
p([Xt, (t, s) => s], (t, s) => t.filter((e) => e.project === s))
|
|
999
|
-
), jM =
|
|
999
|
+
), jM = y(
|
|
1000
1000
|
p([Xt, (t, s) => s], (t, s) => t.filter((e) => e.organization === s))
|
|
1001
|
-
), Yu =
|
|
1001
|
+
), Yu = y(
|
|
1002
1002
|
p([Mn, (t, s) => s], (t, s) => {
|
|
1003
1003
|
if (!t[s]) return f([]);
|
|
1004
1004
|
const n = Mc(s, Object.values(t)).all().map(({ model: a }) => a);
|
|
@@ -1036,12 +1036,12 @@ const m = (
|
|
|
1036
1036
|
updateEmailDomains: sl,
|
|
1037
1037
|
deleteEmailDomain: il,
|
|
1038
1038
|
deleteEmailDomains: nl
|
|
1039
|
-
} = gn.actions, rl = (t) => t.emailDomainsReducer.instances, wn = p([rl], (t) => Object.values(t)), al = (t) => (s) => s.emailDomainsReducer.instances[t], cl =
|
|
1039
|
+
} = gn.actions, rl = (t) => t.emailDomainsReducer.instances, wn = p([rl], (t) => Object.values(t)), al = (t) => (s) => s.emailDomainsReducer.instances[t], cl = y(
|
|
1040
1040
|
p([wn, (t, s) => s], (t, s) => {
|
|
1041
1041
|
const e = new Set(s);
|
|
1042
1042
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1043
1043
|
})
|
|
1044
|
-
), VM =
|
|
1044
|
+
), VM = y(
|
|
1045
1045
|
p([wn, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
|
|
1046
1046
|
), dl = gn.reducer, qs = {
|
|
1047
1047
|
s3Urls: {}
|
|
@@ -1101,12 +1101,12 @@ const m = (
|
|
|
1101
1101
|
} = En.actions, Tl = (t) => t.formIdentifierReducer.instances, vn = p(
|
|
1102
1102
|
[Tl],
|
|
1103
1103
|
(t) => Object.values(t)
|
|
1104
|
-
), Il = (t) => (s) => s.formIdentifierReducer.instances[t], Pl =
|
|
1104
|
+
), Il = (t) => (s) => s.formIdentifierReducer.instances[t], Pl = y(
|
|
1105
1105
|
p([vn, (t, s) => s], (t, s) => {
|
|
1106
1106
|
const e = new Set(s);
|
|
1107
1107
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1108
1108
|
})
|
|
1109
|
-
), CM =
|
|
1109
|
+
), CM = y(
|
|
1110
1110
|
p([vn, (t, s) => s], (t, s) => f(t.filter((e) => e.form === s)))
|
|
1111
1111
|
), _l = En.reducer, ce = P((t) => t.uuid), Vs = {
|
|
1112
1112
|
instances: {}
|
|
@@ -1141,7 +1141,7 @@ const m = (
|
|
|
1141
1141
|
} = kn.actions, Bl = (t) => t.formIdentifierValueReducer.instances, es = p(
|
|
1142
1142
|
[Bl],
|
|
1143
1143
|
(t) => Object.values(t)
|
|
1144
|
-
), zl = (t) => (s) => s.formIdentifierValueReducer.instances[t], Dl =
|
|
1144
|
+
), zl = (t) => (s) => s.formIdentifierValueReducer.instances[t], Dl = y(
|
|
1145
1145
|
p(
|
|
1146
1146
|
[es, (t, s) => s],
|
|
1147
1147
|
(t, s) => {
|
|
@@ -1149,14 +1149,14 @@ const m = (
|
|
|
1149
1149
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1150
1150
|
}
|
|
1151
1151
|
)
|
|
1152
|
-
), UM =
|
|
1152
|
+
), UM = y(
|
|
1153
1153
|
p(
|
|
1154
1154
|
[es, (t, s) => s],
|
|
1155
1155
|
(t, s) => f(
|
|
1156
1156
|
t.filter((e) => e.form_submission === s)
|
|
1157
1157
|
)
|
|
1158
1158
|
)
|
|
1159
|
-
), LM =
|
|
1159
|
+
), LM = y(
|
|
1160
1160
|
p(
|
|
1161
1161
|
[es, (t, s) => s],
|
|
1162
1162
|
(t, s) => f(
|
|
@@ -1196,12 +1196,12 @@ const m = (
|
|
|
1196
1196
|
} = Bn.actions, ts = (t) => t.formRevisionAttachmentReducer.instances, Gl = p(
|
|
1197
1197
|
[ts],
|
|
1198
1198
|
(t) => Object.values(t)
|
|
1199
|
-
), Wl =
|
|
1199
|
+
), Wl = y(
|
|
1200
1200
|
p(
|
|
1201
1201
|
[ts, (t, s) => s],
|
|
1202
1202
|
(t, s) => t[s]
|
|
1203
1203
|
)
|
|
1204
|
-
), Kl =
|
|
1204
|
+
), Kl = y(
|
|
1205
1205
|
p(
|
|
1206
1206
|
[Gl, (t, s) => s],
|
|
1207
1207
|
(t, s) => {
|
|
@@ -1209,7 +1209,7 @@ const m = (
|
|
|
1209
1209
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1210
1210
|
}
|
|
1211
1211
|
)
|
|
1212
|
-
), NM =
|
|
1212
|
+
), NM = y(
|
|
1213
1213
|
p([ts, (t, s) => s], (t, s) => f(
|
|
1214
1214
|
Object.values(t).filter((e) => e.form_revision === s)
|
|
1215
1215
|
))
|
|
@@ -1248,14 +1248,14 @@ const m = (
|
|
|
1248
1248
|
} = zn.actions, ih = (t) => t.formRevisionReducer.instances, ss = p(
|
|
1249
1249
|
[ih],
|
|
1250
1250
|
(t) => Object.values(t)
|
|
1251
|
-
), nh = (t) => (s) => s.formRevisionReducer.instances[t], rh =
|
|
1251
|
+
), nh = (t) => (s) => s.formRevisionReducer.instances[t], rh = y(
|
|
1252
1252
|
p([ss, (t, s) => s], (t, s) => {
|
|
1253
1253
|
const e = new Set(s);
|
|
1254
1254
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1255
1255
|
})
|
|
1256
|
-
), HM =
|
|
1256
|
+
), HM = y(
|
|
1257
1257
|
p([ss, (t, s) => s], (t, s) => t.filter((e) => e.form === s).toSorted(wt).pop())
|
|
1258
|
-
), ah =
|
|
1258
|
+
), ah = y(
|
|
1259
1259
|
p(
|
|
1260
1260
|
[ss, (t, s) => s],
|
|
1261
1261
|
(t, s) => f(t.filter((e) => e.form === s))
|
|
@@ -1290,12 +1290,12 @@ const m = (
|
|
|
1290
1290
|
updateForms: mh,
|
|
1291
1291
|
deleteForm: yh,
|
|
1292
1292
|
deleteForms: fh
|
|
1293
|
-
} = jn.actions, Sh = jn.reducer, Ah = (t) => t.formReducer.instances, Vn = p([Ah], (t) => Object.values(t)), Oh = (t) => (s) => s.formReducer.instances[t], Th =
|
|
1293
|
+
} = jn.actions, Sh = jn.reducer, Ah = (t) => t.formReducer.instances, Vn = p([Ah], (t) => Object.values(t)), Oh = (t) => (s) => s.formReducer.instances[t], Th = y(
|
|
1294
1294
|
p([Vn, (t, s) => s], (t, s) => {
|
|
1295
1295
|
const e = new Set(s);
|
|
1296
1296
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1297
1297
|
})
|
|
1298
|
-
), GM =
|
|
1298
|
+
), GM = y(
|
|
1299
1299
|
p([Vn, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
|
|
1300
1300
|
), le = P((t) => t.uuid), Us = {
|
|
1301
1301
|
instances: {}
|
|
@@ -1330,12 +1330,12 @@ const m = (
|
|
|
1330
1330
|
} = $n.actions, Un = (t) => t.formSubmissionAttachmentReducer.instances, Ln = p(
|
|
1331
1331
|
[Un],
|
|
1332
1332
|
(t) => Object.values(t)
|
|
1333
|
-
), Rh =
|
|
1333
|
+
), Rh = y(
|
|
1334
1334
|
p(
|
|
1335
1335
|
[Un, (t, s) => s],
|
|
1336
1336
|
(t, s) => t[s]
|
|
1337
1337
|
)
|
|
1338
|
-
), Nn =
|
|
1338
|
+
), Nn = y(
|
|
1339
1339
|
p(
|
|
1340
1340
|
[Ln, (t, s) => s],
|
|
1341
1341
|
(t, s) => {
|
|
@@ -1345,7 +1345,7 @@ const m = (
|
|
|
1345
1345
|
);
|
|
1346
1346
|
}
|
|
1347
1347
|
)
|
|
1348
|
-
), Fh = Nn, Eh =
|
|
1348
|
+
), Fh = Nn, Eh = y(
|
|
1349
1349
|
p(
|
|
1350
1350
|
[Ln, (t, s) => s],
|
|
1351
1351
|
(t, s) => f(
|
|
@@ -1387,24 +1387,24 @@ const m = (
|
|
|
1387
1387
|
} = Hn.actions, $h = (t) => t.formSubmissionReducer.instances, L = p(
|
|
1388
1388
|
[$h],
|
|
1389
1389
|
(t) => Object.values(t)
|
|
1390
|
-
), xh = (t) => (s) => s.formSubmissionReducer.instances[t], Ch =
|
|
1390
|
+
), xh = (t) => (s) => s.formSubmissionReducer.instances[t], Ch = y(
|
|
1391
1391
|
p([L, (t, s) => s], (t, s) => {
|
|
1392
1392
|
const e = new Set(s);
|
|
1393
1393
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1394
1394
|
})
|
|
1395
|
-
), Uh =
|
|
1395
|
+
), Uh = y(
|
|
1396
1396
|
p([L, (t, s) => s], (t, s) => f(t.filter((e) => e.form === s)))
|
|
1397
|
-
), WM =
|
|
1397
|
+
), WM = y(
|
|
1398
1398
|
p(
|
|
1399
1399
|
[L, (t, s) => s],
|
|
1400
1400
|
(t, s) => f(t.filter(({ organization: e }) => e === s))
|
|
1401
1401
|
)
|
|
1402
|
-
), KM =
|
|
1402
|
+
), KM = y(
|
|
1403
1403
|
p(
|
|
1404
1404
|
[L, (t, s) => s],
|
|
1405
1405
|
(t, s) => f(t.filter(({ project: e }) => e === s))
|
|
1406
1406
|
)
|
|
1407
|
-
), YM =
|
|
1407
|
+
), YM = y(
|
|
1408
1408
|
p(
|
|
1409
1409
|
[
|
|
1410
1410
|
L,
|
|
@@ -1415,7 +1415,7 @@ const m = (
|
|
|
1415
1415
|
t.filter(({ project: i, form: n }) => i === s && n === e)
|
|
1416
1416
|
)
|
|
1417
1417
|
)
|
|
1418
|
-
), JM =
|
|
1418
|
+
), JM = y(
|
|
1419
1419
|
p(
|
|
1420
1420
|
[
|
|
1421
1421
|
L,
|
|
@@ -1426,9 +1426,9 @@ const m = (
|
|
|
1426
1426
|
t.filter(({ organization: i, form: n }) => i === s && n === e)
|
|
1427
1427
|
)
|
|
1428
1428
|
)
|
|
1429
|
-
), Lh =
|
|
1429
|
+
), Lh = y(
|
|
1430
1430
|
p([L, (t, s) => s], (t, s) => f(t.filter(({ issue: e }) => e === s)))
|
|
1431
|
-
), Nh =
|
|
1431
|
+
), Nh = y(
|
|
1432
1432
|
p(
|
|
1433
1433
|
[L, (t, s) => s],
|
|
1434
1434
|
(t, s) => {
|
|
@@ -1436,9 +1436,9 @@ const m = (
|
|
|
1436
1436
|
return f(t.filter(({ issue: i }) => i && e.has(i)));
|
|
1437
1437
|
}
|
|
1438
1438
|
)
|
|
1439
|
-
), Hh =
|
|
1439
|
+
), Hh = y(
|
|
1440
1440
|
p([L, (t, s) => s], (t, s) => f(t.filter(({ asset: e }) => e === s)))
|
|
1441
|
-
), Gh =
|
|
1441
|
+
), Gh = y(
|
|
1442
1442
|
p(
|
|
1443
1443
|
[L, (t, s) => s],
|
|
1444
1444
|
(t, s) => {
|
|
@@ -1478,12 +1478,12 @@ const m = (
|
|
|
1478
1478
|
updateGeoImages: ep,
|
|
1479
1479
|
deleteGeoImage: tp,
|
|
1480
1480
|
deleteGeoImages: sp
|
|
1481
|
-
} = Gn.actions, ip = (t) => t.geoImageReducer.instances, Wn = p([ip], (t) => Object.values(t)), np = (t) => (s) => s.geoImageReducer.instances[t], rp =
|
|
1481
|
+
} = Gn.actions, ip = (t) => t.geoImageReducer.instances, Wn = p([ip], (t) => Object.values(t)), np = (t) => (s) => s.geoImageReducer.instances[t], rp = y(
|
|
1482
1482
|
p([Wn, (t, s) => s], (t, s) => {
|
|
1483
1483
|
const e = new Set(s);
|
|
1484
1484
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1485
1485
|
})
|
|
1486
|
-
), ZM =
|
|
1486
|
+
), ZM = y(
|
|
1487
1487
|
p([Wn, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
|
|
1488
1488
|
), ap = Gn.reducer, me = P((t) => t.uuid), Hs = {
|
|
1489
1489
|
instances: {}
|
|
@@ -1515,12 +1515,12 @@ const m = (
|
|
|
1515
1515
|
addIssueAssociations: Pt,
|
|
1516
1516
|
deleteIssueAssociation: pp,
|
|
1517
1517
|
deleteIssueAssociations: _t
|
|
1518
|
-
} = Kn.actions, mp = (t) => t.issueAssociationReducer.instances, Rt = p([mp], (t) => Object.values(t)), yp = (t) => (s) => s.issueAssociationReducer.instances[t], fp =
|
|
1518
|
+
} = Kn.actions, mp = (t) => t.issueAssociationReducer.instances, Rt = p([mp], (t) => Object.values(t)), yp = (t) => (s) => s.issueAssociationReducer.instances[t], fp = y(
|
|
1519
1519
|
p([Rt, (t, s) => s], (t, s) => {
|
|
1520
1520
|
const e = new Set(s);
|
|
1521
1521
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1522
1522
|
})
|
|
1523
|
-
), Sp =
|
|
1523
|
+
), Sp = y(
|
|
1524
1524
|
p(
|
|
1525
1525
|
[Rt, (t, s) => s],
|
|
1526
1526
|
(t, s) => {
|
|
@@ -1528,11 +1528,11 @@ const m = (
|
|
|
1528
1528
|
return f(t.filter(({ issue: i }) => e.has(i)));
|
|
1529
1529
|
}
|
|
1530
1530
|
)
|
|
1531
|
-
), Ap =
|
|
1531
|
+
), Ap = y(
|
|
1532
1532
|
p([Rt, (t, s) => s], (t, s) => f(t.filter(({ issue: e }) => e === s)))
|
|
1533
|
-
), Op =
|
|
1533
|
+
), Op = y(
|
|
1534
1534
|
p([Rt, (t, s) => s], (t, s) => f(t.filter(({ asset: e }) => e === s)))
|
|
1535
|
-
), Tp =
|
|
1535
|
+
), Tp = y(
|
|
1536
1536
|
p(
|
|
1537
1537
|
[Rt, (t, s) => s],
|
|
1538
1538
|
(t, s) => {
|
|
@@ -1573,12 +1573,12 @@ const m = (
|
|
|
1573
1573
|
} = Yn.actions, Fp = (t) => t.issueAttachmentReducer.instances, Qn = p(
|
|
1574
1574
|
[Fp],
|
|
1575
1575
|
(t) => Object.values(t)
|
|
1576
|
-
), Ep =
|
|
1576
|
+
), Ep = y(
|
|
1577
1577
|
p(
|
|
1578
1578
|
[Qn, (t, s) => s],
|
|
1579
1579
|
(t, s) => f(t.filter(({ issue: e }) => s === e))
|
|
1580
1580
|
)
|
|
1581
|
-
), vp = (t) => (s) => s.issueAttachmentReducer.instances[t], kp =
|
|
1581
|
+
), vp = (t) => (s) => s.issueAttachmentReducer.instances[t], kp = y(
|
|
1582
1582
|
p([Qn, (t, s) => s], (t, s) => {
|
|
1583
1583
|
const e = new Set(s);
|
|
1584
1584
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -1616,7 +1616,7 @@ const m = (
|
|
|
1616
1616
|
} = Xn.actions, Lp = (t) => t.issueCommentAttachmentReducer.instances, er = p(
|
|
1617
1617
|
[Lp],
|
|
1618
1618
|
(t) => Object.values(t)
|
|
1619
|
-
), Np = (t) => (s) => s.issueCommentAttachmentReducer.instances[t], Hp =
|
|
1619
|
+
), Np = (t) => (s) => s.issueCommentAttachmentReducer.instances[t], Hp = y(
|
|
1620
1620
|
p(
|
|
1621
1621
|
[er, (t, s) => s],
|
|
1622
1622
|
(t, s) => {
|
|
@@ -1624,7 +1624,7 @@ const m = (
|
|
|
1624
1624
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1625
1625
|
}
|
|
1626
1626
|
)
|
|
1627
|
-
), QM =
|
|
1627
|
+
), QM = y(
|
|
1628
1628
|
p([er, (t, s) => s], (t, s) => f(t.filter(({ issue_comment: e }) => s === e)))
|
|
1629
1629
|
), Gp = Xn.reducer, Se = P(
|
|
1630
1630
|
(t) => t.uuid
|
|
@@ -1658,12 +1658,12 @@ const m = (
|
|
|
1658
1658
|
updateIssueComments: Xp,
|
|
1659
1659
|
deleteIssueComment: em,
|
|
1660
1660
|
deleteIssueComments: tm
|
|
1661
|
-
} = tr.actions, sr = (t) => t.issueCommentReducer.instances, sm = (t) => (s) => s.issueCommentReducer.instances[t], im =
|
|
1661
|
+
} = tr.actions, sr = (t) => t.issueCommentReducer.instances, sm = (t) => (s) => s.issueCommentReducer.instances[t], im = y(
|
|
1662
1662
|
p([sr, (t, s) => s], (t, s) => {
|
|
1663
1663
|
const e = new Set(s);
|
|
1664
1664
|
return f(Object.values(t).filter(({ uuid: i }) => e.has(i)));
|
|
1665
1665
|
})
|
|
1666
|
-
), XM =
|
|
1666
|
+
), XM = y(
|
|
1667
1667
|
p(
|
|
1668
1668
|
[sr, (t, s) => s],
|
|
1669
1669
|
(t, s) => f(
|
|
@@ -1703,14 +1703,14 @@ const m = (
|
|
|
1703
1703
|
} = ir.actions, hm = (t) => t.issueReducer.instances, is = p(
|
|
1704
1704
|
[hm],
|
|
1705
1705
|
(t) => Object.values(t)
|
|
1706
|
-
), pm = (t) => (s) => s.issueReducer.instances[t], mm =
|
|
1706
|
+
), pm = (t) => (s) => s.issueReducer.instances[t], mm = y(
|
|
1707
1707
|
p([is, (t, s) => s], (t, s) => {
|
|
1708
1708
|
const e = new Set(s);
|
|
1709
1709
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1710
1710
|
})
|
|
1711
|
-
), eg =
|
|
1711
|
+
), eg = y(
|
|
1712
1712
|
p([is, (t, s) => s], (t, s) => t.filter((e) => e.project === s))
|
|
1713
|
-
), ym =
|
|
1713
|
+
), ym = y(
|
|
1714
1714
|
p([is, (t, s) => s], (t, s) => t.filter((e) => e.issue_type === s))
|
|
1715
1715
|
), fm = ir.reducer, Oe = P((t) => t.uuid), Js = {
|
|
1716
1716
|
instances: {}
|
|
@@ -1745,7 +1745,7 @@ const m = (
|
|
|
1745
1745
|
} = ar.actions, gm = (t) => t.issueTypeAttachmentReducer.instances, cr = p(
|
|
1746
1746
|
[gm],
|
|
1747
1747
|
(t) => Object.values(t)
|
|
1748
|
-
), wm = (t) => (s) => s.issueTypeAttachmentReducer.instances[t], Rm =
|
|
1748
|
+
), wm = (t) => (s) => s.issueTypeAttachmentReducer.instances[t], Rm = y(
|
|
1749
1749
|
p(
|
|
1750
1750
|
[cr, (t, s) => s],
|
|
1751
1751
|
(t, s) => {
|
|
@@ -1753,7 +1753,7 @@ const m = (
|
|
|
1753
1753
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1754
1754
|
}
|
|
1755
1755
|
)
|
|
1756
|
-
), tg =
|
|
1756
|
+
), tg = y(
|
|
1757
1757
|
p([cr, (t, s) => s], (t, s) => f(t.filter(({ issue_type: e }) => s === e)))
|
|
1758
1758
|
), Fm = ar.reducer, Te = P((t) => t.uuid), Zs = {
|
|
1759
1759
|
instances: {}
|
|
@@ -1788,12 +1788,12 @@ const m = (
|
|
|
1788
1788
|
} = dr.actions, $m = (t) => t.issueTypeFieldsAttachmentReducer.instances, or = p(
|
|
1789
1789
|
[$m],
|
|
1790
1790
|
(t) => Object.values(t)
|
|
1791
|
-
), sg =
|
|
1791
|
+
), sg = y(
|
|
1792
1792
|
p(
|
|
1793
1793
|
[or, (t, s) => s],
|
|
1794
1794
|
(t, s) => f(t.filter((e) => e.fields_revision === s))
|
|
1795
1795
|
)
|
|
1796
|
-
), xm = (t) => (s) => s.issueTypeFieldsAttachmentReducer.instances[t], Cm =
|
|
1796
|
+
), xm = (t) => (s) => s.issueTypeFieldsAttachmentReducer.instances[t], Cm = y(
|
|
1797
1797
|
p(
|
|
1798
1798
|
[or, (t, s) => s],
|
|
1799
1799
|
(t, s) => {
|
|
@@ -1831,9 +1831,9 @@ const m = (
|
|
|
1831
1831
|
updateIssueTypeFieldValuesMany: Ym,
|
|
1832
1832
|
deleteIssueTypeFieldValues: Jm,
|
|
1833
1833
|
deleteIssueTypeFieldValuesMany: Zm
|
|
1834
|
-
} = ur.actions, Qm = (t) => t.issueTypeFieldValuesReducer.instances, ns = p([Qm], (t) => Object.values(t)), ig =
|
|
1834
|
+
} = ur.actions, Qm = (t) => t.issueTypeFieldValuesReducer.instances, ns = p([Qm], (t) => Object.values(t)), ig = y(
|
|
1835
1835
|
p([ns, (t, s) => s], (t, s) => f(t.filter((e) => e.issue === s)))
|
|
1836
|
-
), Xm = (t) => (s) => s.issueTypeFieldValuesReducer.instances[t], ey =
|
|
1836
|
+
), Xm = (t) => (s) => s.issueTypeFieldValuesReducer.instances[t], ey = y(
|
|
1837
1837
|
p(
|
|
1838
1838
|
[ns, (t, s) => s],
|
|
1839
1839
|
(t, s) => {
|
|
@@ -1871,11 +1871,11 @@ const m = (
|
|
|
1871
1871
|
updateIssueTypeFieldsMany: dy,
|
|
1872
1872
|
deleteIssueTypeFields: oy,
|
|
1873
1873
|
deleteIssueTypeFieldsMany: uy
|
|
1874
|
-
} = lr.actions, ly = (t) => t.issueTypeFieldsReducer.instances, kt = p([ly], (t) => Object.values(t)), ng =
|
|
1874
|
+
} = lr.actions, ly = (t) => t.issueTypeFieldsReducer.instances, kt = p([ly], (t) => Object.values(t)), ng = y(
|
|
1875
1875
|
p([kt, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
|
|
1876
|
-
), rg =
|
|
1876
|
+
), rg = y(
|
|
1877
1877
|
p([kt, (t, s) => s], (t, s) => t.filter((e) => e.issue_type === s).sort((e, i) => e.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
1878
|
-
), ag =
|
|
1878
|
+
), ag = y(
|
|
1879
1879
|
p(
|
|
1880
1880
|
[kt, ns, (t, s) => s],
|
|
1881
1881
|
(t, s, e) => {
|
|
@@ -1885,7 +1885,7 @@ const m = (
|
|
|
1885
1885
|
return f(s.filter((n) => i.has(n.fields_revision)));
|
|
1886
1886
|
}
|
|
1887
1887
|
)
|
|
1888
|
-
), hy = (t) => (s) => s.issueTypeFieldsReducer.instances[t], py =
|
|
1888
|
+
), hy = (t) => (s) => s.issueTypeFieldsReducer.instances[t], py = y(
|
|
1889
1889
|
p([kt, (t, s) => s], (t, s) => {
|
|
1890
1890
|
const e = new Set(s);
|
|
1891
1891
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -1923,7 +1923,7 @@ const m = (
|
|
|
1923
1923
|
} = hr.actions, Py = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, yr = p(
|
|
1924
1924
|
[Py],
|
|
1925
1925
|
(t) => Object.values(t)
|
|
1926
|
-
), _y = (t) => (s) => s.issueTypeFieldValuesAttachmentReducer.instances[t], by =
|
|
1926
|
+
), _y = (t) => (s) => s.issueTypeFieldValuesAttachmentReducer.instances[t], by = y(
|
|
1927
1927
|
p(
|
|
1928
1928
|
[yr, (t, s) => s],
|
|
1929
1929
|
(t, s) => {
|
|
@@ -1931,7 +1931,7 @@ const m = (
|
|
|
1931
1931
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1932
1932
|
}
|
|
1933
1933
|
)
|
|
1934
|
-
), My =
|
|
1934
|
+
), My = y(
|
|
1935
1935
|
p(
|
|
1936
1936
|
[yr, (t, s) => s],
|
|
1937
1937
|
(t, s) => f(t.filter((e) => e.field_values === s))
|
|
@@ -1969,7 +1969,7 @@ const m = (
|
|
|
1969
1969
|
} = fr.actions, qy = (t) => t.issueTypeIdentifierReducer.instances, Sr = p(
|
|
1970
1970
|
[qy],
|
|
1971
1971
|
(t) => Object.values(t)
|
|
1972
|
-
), jy = (t) => (s) => s.issueTypeIdentifierReducer.instances[t], Vy =
|
|
1972
|
+
), jy = (t) => (s) => s.issueTypeIdentifierReducer.instances[t], Vy = y(
|
|
1973
1973
|
p(
|
|
1974
1974
|
[Sr, (t, s) => s],
|
|
1975
1975
|
(t, s) => {
|
|
@@ -1977,7 +1977,7 @@ const m = (
|
|
|
1977
1977
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
1978
1978
|
}
|
|
1979
1979
|
)
|
|
1980
|
-
), cg =
|
|
1980
|
+
), cg = y(
|
|
1981
1981
|
p([Sr, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
|
|
1982
1982
|
), $y = fr.reducer, Me = P((t) => t.uuid), si = {
|
|
1983
1983
|
instances: {}
|
|
@@ -2012,7 +2012,7 @@ const m = (
|
|
|
2012
2012
|
} = Ar.actions, Yy = (t) => t.issueTypeIdentifierValueReducer.instances, rs = p(
|
|
2013
2013
|
[Yy],
|
|
2014
2014
|
(t) => Object.values(t)
|
|
2015
|
-
), Jy = (t) => (s) => s.issueTypeIdentifierValueReducer.instances[t], Zy =
|
|
2015
|
+
), Jy = (t) => (s) => s.issueTypeIdentifierValueReducer.instances[t], Zy = y(
|
|
2016
2016
|
p(
|
|
2017
2017
|
[rs, (t, s) => s],
|
|
2018
2018
|
(t, s) => {
|
|
@@ -2020,9 +2020,9 @@ const m = (
|
|
|
2020
2020
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2021
2021
|
}
|
|
2022
2022
|
)
|
|
2023
|
-
), dg =
|
|
2023
|
+
), dg = y(
|
|
2024
2024
|
p([rs, (t, s) => s], (t, s) => f(t.filter((e) => e.issue === s)))
|
|
2025
|
-
), og =
|
|
2025
|
+
), og = y(
|
|
2026
2026
|
p(
|
|
2027
2027
|
[rs, (t, s) => s],
|
|
2028
2028
|
(t, s) => f(
|
|
@@ -2062,7 +2062,7 @@ const m = (
|
|
|
2062
2062
|
} = Or.actions, of = (t) => t.issueTypePriorityReducer.instances, Tr = p(
|
|
2063
2063
|
[of],
|
|
2064
2064
|
(t) => f(Object.values(t).toSorted(bc))
|
|
2065
|
-
), Ir = (t) => (s) => s.issueTypePriorityReducer.instances[t], uf =
|
|
2065
|
+
), Ir = (t) => (s) => s.issueTypePriorityReducer.instances[t], uf = y(
|
|
2066
2066
|
p(
|
|
2067
2067
|
[Tr, (t, s) => s],
|
|
2068
2068
|
(t, s) => {
|
|
@@ -2070,7 +2070,7 @@ const m = (
|
|
|
2070
2070
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2071
2071
|
}
|
|
2072
2072
|
)
|
|
2073
|
-
), ug =
|
|
2073
|
+
), ug = y(
|
|
2074
2074
|
p([Tr, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
|
|
2075
2075
|
), lf = Or.reducer, we = P(
|
|
2076
2076
|
(t) => t.uuid
|
|
@@ -2107,12 +2107,12 @@ const m = (
|
|
|
2107
2107
|
} = Pr.actions, If = (t) => t.issueTypeReducer.instances, _r = p(
|
|
2108
2108
|
If,
|
|
2109
2109
|
(t) => Object.values(t)
|
|
2110
|
-
), Pf = (t) => (s) => s.issueTypeReducer.instances[t], _f =
|
|
2110
|
+
), Pf = (t) => (s) => s.issueTypeReducer.instances[t], _f = y(
|
|
2111
2111
|
p([_r, (t, s) => s], (t, s) => {
|
|
2112
2112
|
const e = new Set(s);
|
|
2113
2113
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2114
2114
|
})
|
|
2115
|
-
), lg =
|
|
2115
|
+
), lg = y(
|
|
2116
2116
|
p([_r, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
|
|
2117
2117
|
), bf = Pr.reducer, Re = P((t) => t.uuid), ri = {
|
|
2118
2118
|
instances: {}
|
|
@@ -2144,12 +2144,12 @@ const m = (
|
|
|
2144
2144
|
updateIssueTypeStatuses: vf,
|
|
2145
2145
|
deleteIssueTypeStatus: kf,
|
|
2146
2146
|
deleteIssueTypeStatuses: Bf
|
|
2147
|
-
} = br.actions, zf = (t) => t.issueTypeStatusReducer.instances, Mr = p([zf], (t) => f(Object.values(t).toSorted(_c))), gr = (t) => (s) => s.issueTypeStatusReducer.instances[t], Df =
|
|
2147
|
+
} = br.actions, zf = (t) => t.issueTypeStatusReducer.instances, Mr = p([zf], (t) => f(Object.values(t).toSorted(_c))), gr = (t) => (s) => s.issueTypeStatusReducer.instances[t], Df = y(
|
|
2148
2148
|
p([Mr, (t, s) => s], (t, s) => {
|
|
2149
2149
|
const e = new Set(s);
|
|
2150
2150
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2151
2151
|
})
|
|
2152
|
-
), hg =
|
|
2152
|
+
), hg = y(
|
|
2153
2153
|
p([Mr, (t, s) => s], (t, s) => f(t.filter((e) => e.issue_type === s)))
|
|
2154
2154
|
), qf = br.reducer, Fe = P(
|
|
2155
2155
|
(t) => t.uuid
|
|
@@ -2186,12 +2186,12 @@ const m = (
|
|
|
2186
2186
|
} = wr.actions, kr = (t) => t.issueUpdateReducer.instances, Br = p(
|
|
2187
2187
|
[kr],
|
|
2188
2188
|
(t) => Object.values(t)
|
|
2189
|
-
), Uf =
|
|
2189
|
+
), Uf = y(
|
|
2190
2190
|
p(
|
|
2191
2191
|
[kr, (t, s) => s],
|
|
2192
2192
|
(t, s) => t[s]
|
|
2193
2193
|
)
|
|
2194
|
-
), Lf =
|
|
2194
|
+
), Lf = y(
|
|
2195
2195
|
p(
|
|
2196
2196
|
[Br, (t, s) => s],
|
|
2197
2197
|
(t, s) => {
|
|
@@ -2199,7 +2199,7 @@ const m = (
|
|
|
2199
2199
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2200
2200
|
}
|
|
2201
2201
|
)
|
|
2202
|
-
), Nf =
|
|
2202
|
+
), Nf = y(
|
|
2203
2203
|
p([Br, (t, s) => s], (t, s) => f(t.filter((e) => e.issue === s)))
|
|
2204
2204
|
), Hf = wr.reducer, Ee = P((t) => t.id), ci = {
|
|
2205
2205
|
instances: {},
|
|
@@ -2242,7 +2242,7 @@ const m = (
|
|
|
2242
2242
|
deleteUsers: Qf,
|
|
2243
2243
|
setCurrentUser: pg,
|
|
2244
2244
|
setCurrentUserProfile: mg
|
|
2245
|
-
} = zr.actions, Xf = zr.reducer, eS = (t) => t.userReducer.currentUser, jr = (t) => t.userReducer.instances, as = p([jr], (t) => Object.values(t)), cs = (t) => (s) => s.userReducer.instances[t], tS =
|
|
2245
|
+
} = zr.actions, Xf = zr.reducer, eS = (t) => t.userReducer.currentUser, jr = (t) => t.userReducer.instances, as = p([jr], (t) => Object.values(t)), cs = (t) => (s) => s.userReducer.instances[t], tS = y(
|
|
2246
2246
|
p([as, (t, s) => s], (t, s) => {
|
|
2247
2247
|
const e = new Set(s);
|
|
2248
2248
|
return f(t.filter(({ id: i }) => e.has(i)));
|
|
@@ -2277,7 +2277,7 @@ const m = (
|
|
|
2277
2277
|
updateOrganizationAccesses: dS,
|
|
2278
2278
|
deleteOrganizationAccess: oS,
|
|
2279
2279
|
deleteOrganizationAccesses: uS
|
|
2280
|
-
} = Vr.actions, lS = Vr.reducer, ds = (t) => t.organizationAccessReducer.instances, hS = (t) => (s) => s.organizationAccessReducer.instances[t], pS =
|
|
2280
|
+
} = Vr.actions, lS = Vr.reducer, ds = (t) => t.organizationAccessReducer.instances, hS = (t) => (s) => s.organizationAccessReducer.instances[t], pS = y(
|
|
2281
2281
|
p(
|
|
2282
2282
|
[ds, (t, s) => s],
|
|
2283
2283
|
(t, s) => {
|
|
@@ -2295,7 +2295,7 @@ const m = (
|
|
|
2295
2295
|
for (const e of Object.values(t))
|
|
2296
2296
|
s[e.user] = e;
|
|
2297
2297
|
return Li(s);
|
|
2298
|
-
}), fg =
|
|
2298
|
+
}), fg = y(
|
|
2299
2299
|
p(
|
|
2300
2300
|
[jr, mS, (t, s) => s],
|
|
2301
2301
|
(t, s, e) => f(
|
|
@@ -2332,7 +2332,7 @@ const m = (
|
|
|
2332
2332
|
updateOrganization: IS,
|
|
2333
2333
|
deleteOrganization: PS,
|
|
2334
2334
|
deleteOrganizations: _S
|
|
2335
|
-
} = $r.actions, bS = (t) => t.organizationReducer.instances, MS = p([bS], (t) => Object.values(t)), gS = (t) => (s) => s.organizationReducer.instances[t], wS =
|
|
2335
|
+
} = $r.actions, bS = (t) => t.organizationReducer.instances, MS = p([bS], (t) => Object.values(t)), gS = (t) => (s) => s.organizationReducer.instances[t], wS = y(
|
|
2336
2336
|
p([MS, (t, s) => s], (t, s) => {
|
|
2337
2337
|
const e = new Set(s);
|
|
2338
2338
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -2418,26 +2418,26 @@ const m = (
|
|
|
2418
2418
|
} = Cr.actions, LS = Cr.reducer, Ur = (t) => t.projectAccessReducer.instances, Bt = p(
|
|
2419
2419
|
Ur,
|
|
2420
2420
|
(t) => Object.values(t)
|
|
2421
|
-
), NS = (t) => (s) => s.projectAccessReducer.instances[t], HS =
|
|
2421
|
+
), NS = (t) => (s) => s.projectAccessReducer.instances[t], HS = y(
|
|
2422
2422
|
p([Bt, (t, s) => s], (t, s) => {
|
|
2423
2423
|
const e = new Set(s);
|
|
2424
2424
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2425
2425
|
})
|
|
2426
|
-
), Tg =
|
|
2426
|
+
), Tg = y(
|
|
2427
2427
|
p(
|
|
2428
2428
|
[Ur, (t, s) => s],
|
|
2429
2429
|
(t, s) => f(
|
|
2430
2430
|
Object.values(t).filter((e) => e.project === s)
|
|
2431
2431
|
)
|
|
2432
2432
|
)
|
|
2433
|
-
), Ig =
|
|
2433
|
+
), Ig = y(
|
|
2434
2434
|
p([Bt, (t, s) => s], (t, s) => {
|
|
2435
2435
|
const e = {};
|
|
2436
2436
|
for (const i of t.filter((n) => n.project === s))
|
|
2437
2437
|
e[i.user] = i;
|
|
2438
2438
|
return e;
|
|
2439
2439
|
})
|
|
2440
|
-
), Pg =
|
|
2440
|
+
), Pg = y(
|
|
2441
2441
|
p(
|
|
2442
2442
|
[as, Bt, (t, s) => s],
|
|
2443
2443
|
(t, s, e) => {
|
|
@@ -2478,12 +2478,12 @@ const m = (
|
|
|
2478
2478
|
} = Lr.actions, tA = (t) => t.projectAttachmentReducer.instances, Nr = p(
|
|
2479
2479
|
[tA],
|
|
2480
2480
|
(t) => Object.values(t)
|
|
2481
|
-
), sA = (t) => (s) => s.projectAttachmentReducer.instances[t], iA =
|
|
2481
|
+
), sA = (t) => (s) => s.projectAttachmentReducer.instances[t], iA = y(
|
|
2482
2482
|
p([Nr, (t, s) => s], (t, s) => {
|
|
2483
2483
|
const e = new Set(s);
|
|
2484
2484
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2485
2485
|
})
|
|
2486
|
-
), _g =
|
|
2486
|
+
), _g = y(
|
|
2487
2487
|
p([Nr, (t, s) => s], (t, s) => f(t.filter(({ project: e }) => s === e)))
|
|
2488
2488
|
), nA = Lr.reducer, De = P(
|
|
2489
2489
|
(t) => t.uuid
|
|
@@ -2520,14 +2520,14 @@ const m = (
|
|
|
2520
2520
|
} = Hr.actions, mA = (t) => t.projectCommentReducer.instances, os = p(
|
|
2521
2521
|
[mA],
|
|
2522
2522
|
(t) => f(Object.values(t).toSorted(wt))
|
|
2523
|
-
), yA = (t) => (s) => s.projectCommentReducer.instances[t], fA =
|
|
2523
|
+
), yA = (t) => (s) => s.projectCommentReducer.instances[t], fA = y(
|
|
2524
2524
|
p([os, (t, s) => s], (t, s) => {
|
|
2525
2525
|
const e = new Set(s);
|
|
2526
2526
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2527
2527
|
})
|
|
2528
|
-
), bg =
|
|
2528
|
+
), bg = y(
|
|
2529
2529
|
p([os, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
|
|
2530
|
-
), Mg =
|
|
2530
|
+
), Mg = y(
|
|
2531
2531
|
p([os, (t, s) => s], (t, s) => {
|
|
2532
2532
|
const e = new Set(s);
|
|
2533
2533
|
return f(t.filter((i) => e.has(i.project)));
|
|
@@ -2564,7 +2564,7 @@ const m = (
|
|
|
2564
2564
|
updateProjectFiles: bA,
|
|
2565
2565
|
deleteProjectFile: MA,
|
|
2566
2566
|
deleteProjectFiles: gA
|
|
2567
|
-
} = Gr.actions, wA = (t) => t.projectFileReducer.instances, RA = p([wA], (t) => f(Object.values(t).toSorted((s, e) => s.z_index - e.z_index))), FA = (t) => (s) => s.projectFileReducer.instances[t], EA =
|
|
2567
|
+
} = Gr.actions, wA = (t) => t.projectFileReducer.instances, RA = p([wA], (t) => f(Object.values(t).toSorted((s, e) => s.z_index - e.z_index))), FA = (t) => (s) => s.projectFileReducer.instances[t], EA = y(
|
|
2568
2568
|
p([RA, (t, s) => s], (t, s) => {
|
|
2569
2569
|
const e = new Set(s);
|
|
2570
2570
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -2599,17 +2599,17 @@ const m = (
|
|
|
2599
2599
|
updateProject: VA,
|
|
2600
2600
|
deleteProject: $A,
|
|
2601
2601
|
deleteProjects: xA
|
|
2602
|
-
} = Wr.actions, CA = Wr.reducer, UA = (t) => t.projectReducer.instances, us = p([UA], (t) => Object.values(t)), LA = (t) => (s) => s.projectReducer.instances[t], NA =
|
|
2602
|
+
} = Wr.actions, CA = Wr.reducer, UA = (t) => t.projectReducer.instances, us = p([UA], (t) => Object.values(t)), LA = (t) => (s) => s.projectReducer.instances[t], NA = y(
|
|
2603
2603
|
p([us, (t, s) => s], (t, s) => {
|
|
2604
2604
|
const e = new Set(s);
|
|
2605
2605
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2606
2606
|
})
|
|
2607
|
-
), gg =
|
|
2607
|
+
), gg = y(
|
|
2608
2608
|
p([us, Bt, (t, s) => s], (t, s, e) => {
|
|
2609
2609
|
const i = new Set(s.filter((n) => n.user === e).map((n) => n.project));
|
|
2610
2610
|
return f(t.filter((n) => i.has(n.uuid)));
|
|
2611
2611
|
})
|
|
2612
|
-
), wg =
|
|
2612
|
+
), wg = y(
|
|
2613
2613
|
p([us, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
|
|
2614
2614
|
), Ve = P(({ uuid: t }) => t), fi = {
|
|
2615
2615
|
instances: {}
|
|
@@ -2644,7 +2644,7 @@ const m = (
|
|
|
2644
2644
|
} = Kr.actions, eO = Kr.reducer, tO = (t) => t.procedureInitiativeReducer.instances, ls = p(
|
|
2645
2645
|
[tO],
|
|
2646
2646
|
(t) => Object.values(t)
|
|
2647
|
-
), sO = (t) => (s) => s.procedureInitiativeReducer.instances[t], iO =
|
|
2647
|
+
), sO = (t) => (s) => s.procedureInitiativeReducer.instances[t], iO = y(
|
|
2648
2648
|
p(
|
|
2649
2649
|
[ls, (t, s) => s],
|
|
2650
2650
|
(t, s) => {
|
|
@@ -2652,9 +2652,9 @@ const m = (
|
|
|
2652
2652
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2653
2653
|
}
|
|
2654
2654
|
)
|
|
2655
|
-
), Rg =
|
|
2655
|
+
), Rg = y(
|
|
2656
2656
|
p([ls, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
|
|
2657
|
-
), Fg =
|
|
2657
|
+
), Fg = y(
|
|
2658
2658
|
p([ls, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
|
|
2659
2659
|
), $e = P(({ uuid: t }) => t), Si = {
|
|
2660
2660
|
instances: {}
|
|
@@ -2689,23 +2689,23 @@ const m = (
|
|
|
2689
2689
|
} = Yr.actions, lO = Yr.reducer, hO = (t) => t.procedureReducer.instances, yt = p(
|
|
2690
2690
|
[hO],
|
|
2691
2691
|
(t) => Object.values(t)
|
|
2692
|
-
), pO = (t) => (s) => s.procedureReducer.instances[t], mO =
|
|
2692
|
+
), pO = (t) => (s) => s.procedureReducer.instances[t], mO = y(
|
|
2693
2693
|
p([yt, (t, s) => s], (t, s) => {
|
|
2694
2694
|
const e = new Set(s);
|
|
2695
2695
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2696
2696
|
})
|
|
2697
|
-
), Eg =
|
|
2697
|
+
), Eg = y(
|
|
2698
2698
|
p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.project === s)))
|
|
2699
|
-
), yO =
|
|
2699
|
+
), yO = y(
|
|
2700
2700
|
p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
|
|
2701
|
-
), fO =
|
|
2701
|
+
), fO = y(
|
|
2702
2702
|
p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.asset === s)))
|
|
2703
|
-
), SO =
|
|
2703
|
+
), SO = y(
|
|
2704
2704
|
p([yt, (t, s) => s], (t, s) => {
|
|
2705
2705
|
const e = new Set(s);
|
|
2706
2706
|
return f(t.filter(({ asset: i }) => e.has(i)));
|
|
2707
2707
|
})
|
|
2708
|
-
), AO =
|
|
2708
|
+
), AO = y(
|
|
2709
2709
|
p([yt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_initiative === s)))
|
|
2710
2710
|
), xe = P((t) => t.uuid), Ai = {
|
|
2711
2711
|
instances: {}
|
|
@@ -2737,7 +2737,7 @@ const m = (
|
|
|
2737
2737
|
updateProcedureStepAssignees: MO,
|
|
2738
2738
|
deleteProcedureStepAssignee: gO,
|
|
2739
2739
|
deleteProcedureStepAssignees: wO
|
|
2740
|
-
} = Jr.actions, RO = (t) => t.procedureStepAssigneeReducer.instances, zt = p([RO], (t) => Object.values(t)), FO = (t) => (s) => s.procedureStepAssigneeReducer.instances[t], EO =
|
|
2740
|
+
} = Jr.actions, RO = (t) => t.procedureStepAssigneeReducer.instances, zt = p([RO], (t) => Object.values(t)), FO = (t) => (s) => s.procedureStepAssigneeReducer.instances[t], EO = y(
|
|
2741
2741
|
p(
|
|
2742
2742
|
[zt, (t, s) => s],
|
|
2743
2743
|
(t, s) => {
|
|
@@ -2745,11 +2745,11 @@ const m = (
|
|
|
2745
2745
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2746
2746
|
}
|
|
2747
2747
|
)
|
|
2748
|
-
), vg =
|
|
2748
|
+
), vg = y(
|
|
2749
2749
|
p([zt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
|
|
2750
|
-
), kg =
|
|
2750
|
+
), kg = y(
|
|
2751
2751
|
p([zt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
|
|
2752
|
-
), Bg =
|
|
2752
|
+
), Bg = y(
|
|
2753
2753
|
p(
|
|
2754
2754
|
[
|
|
2755
2755
|
zt,
|
|
@@ -2792,7 +2792,7 @@ const m = (
|
|
|
2792
2792
|
updateProcedureStepComments: VO,
|
|
2793
2793
|
deleteProcedureStepComment: $O,
|
|
2794
2794
|
deleteProcedureStepComments: xO
|
|
2795
|
-
} = Zr.actions, CO = (t) => t.procedureStepCommentReducer.instances, Dt = p([CO], (t) => Object.values(t)), UO = (t) => (s) => s.procedureStepCommentReducer.instances[t], LO =
|
|
2795
|
+
} = Zr.actions, CO = (t) => t.procedureStepCommentReducer.instances, Dt = p([CO], (t) => Object.values(t)), UO = (t) => (s) => s.procedureStepCommentReducer.instances[t], LO = y(
|
|
2796
2796
|
p(
|
|
2797
2797
|
[Dt, (t, s) => s],
|
|
2798
2798
|
(t, s) => {
|
|
@@ -2800,11 +2800,11 @@ const m = (
|
|
|
2800
2800
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2801
2801
|
}
|
|
2802
2802
|
)
|
|
2803
|
-
), zg =
|
|
2803
|
+
), zg = y(
|
|
2804
2804
|
p([Dt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
|
|
2805
|
-
), Dg =
|
|
2805
|
+
), Dg = y(
|
|
2806
2806
|
p([Dt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
|
|
2807
|
-
), qg =
|
|
2807
|
+
), qg = y(
|
|
2808
2808
|
p(
|
|
2809
2809
|
[
|
|
2810
2810
|
Dt,
|
|
@@ -2850,7 +2850,7 @@ const m = (
|
|
|
2850
2850
|
} = Qr.actions, eT = (t) => t.procedureStepDefaultAssigneeReducer.instances, Xr = p(
|
|
2851
2851
|
[eT],
|
|
2852
2852
|
(t) => Object.values(t)
|
|
2853
|
-
), tT = (t) => (s) => s.procedureStepDefaultAssigneeReducer.instances[t], sT =
|
|
2853
|
+
), tT = (t) => (s) => s.procedureStepDefaultAssigneeReducer.instances[t], sT = y(
|
|
2854
2854
|
p(
|
|
2855
2855
|
[Xr, (t, s) => s],
|
|
2856
2856
|
(t, s) => {
|
|
@@ -2858,7 +2858,7 @@ const m = (
|
|
|
2858
2858
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2859
2859
|
}
|
|
2860
2860
|
)
|
|
2861
|
-
), jg =
|
|
2861
|
+
), jg = y(
|
|
2862
2862
|
p(
|
|
2863
2863
|
[Xr, (t, s) => s],
|
|
2864
2864
|
(t, s) => f(t.filter((e) => e.procedure_step === s))
|
|
@@ -2896,7 +2896,7 @@ const m = (
|
|
|
2896
2896
|
} = ea.actions, pT = (t) => t.procedureStepDefaultReviewerReducer.instances, ta = p(
|
|
2897
2897
|
[pT],
|
|
2898
2898
|
(t) => Object.values(t)
|
|
2899
|
-
), mT = (t) => (s) => s.procedureStepDefaultReviewerReducer.instances[t], yT =
|
|
2899
|
+
), mT = (t) => (s) => s.procedureStepDefaultReviewerReducer.instances[t], yT = y(
|
|
2900
2900
|
p(
|
|
2901
2901
|
[ta, (t, s) => s],
|
|
2902
2902
|
(t, s) => {
|
|
@@ -2904,7 +2904,7 @@ const m = (
|
|
|
2904
2904
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2905
2905
|
}
|
|
2906
2906
|
)
|
|
2907
|
-
), Vg =
|
|
2907
|
+
), Vg = y(
|
|
2908
2908
|
p(
|
|
2909
2909
|
[ta, (t, s) => s],
|
|
2910
2910
|
(t, s) => f(t.filter((e) => e.procedure_step === s))
|
|
@@ -2939,7 +2939,7 @@ const m = (
|
|
|
2939
2939
|
updateProcedureStepEvents: _T,
|
|
2940
2940
|
deleteProcedureStepEvent: bT,
|
|
2941
2941
|
deleteProcedureStepEvents: MT
|
|
2942
|
-
} = sa.actions, gT = (t) => t.procedureStepEventReducer.instances, qt = p([gT], (t) => Object.values(t)), wT = (t) => (s) => s.procedureStepEventReducer.instances[t], RT =
|
|
2942
|
+
} = sa.actions, gT = (t) => t.procedureStepEventReducer.instances, qt = p([gT], (t) => Object.values(t)), wT = (t) => (s) => s.procedureStepEventReducer.instances[t], RT = y(
|
|
2943
2943
|
p(
|
|
2944
2944
|
[qt, (t, s) => s],
|
|
2945
2945
|
(t, s) => {
|
|
@@ -2947,11 +2947,11 @@ const m = (
|
|
|
2947
2947
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
2948
2948
|
}
|
|
2949
2949
|
)
|
|
2950
|
-
), $g =
|
|
2950
|
+
), $g = y(
|
|
2951
2951
|
p([qt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
|
|
2952
|
-
), xg =
|
|
2952
|
+
), xg = y(
|
|
2953
2953
|
p([qt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
|
|
2954
|
-
), Cg =
|
|
2954
|
+
), Cg = y(
|
|
2955
2955
|
p(
|
|
2956
2956
|
[
|
|
2957
2957
|
qt,
|
|
@@ -2997,12 +2997,12 @@ const m = (
|
|
|
2997
2997
|
} = ia.actions, jT = (t) => t.procedureStepFieldsAttachmentReducer.instances, aa = p(
|
|
2998
2998
|
[jT],
|
|
2999
2999
|
(t) => Object.values(t)
|
|
3000
|
-
), VT =
|
|
3000
|
+
), VT = y(
|
|
3001
3001
|
p(
|
|
3002
3002
|
[aa, (t, s) => s],
|
|
3003
3003
|
(t, s) => f(t.filter((e) => e.fields_revision === s))
|
|
3004
3004
|
)
|
|
3005
|
-
), $T = (t) => (s) => s.procedureStepFieldsAttachmentReducer.instances[t], xT =
|
|
3005
|
+
), $T = (t) => (s) => s.procedureStepFieldsAttachmentReducer.instances[t], xT = y(
|
|
3006
3006
|
p(
|
|
3007
3007
|
[aa, (t, s) => s],
|
|
3008
3008
|
(t, s) => {
|
|
@@ -3040,9 +3040,9 @@ const m = (
|
|
|
3040
3040
|
updateProcedureStepFieldsMany: KT,
|
|
3041
3041
|
deleteProcedureStepFields: YT,
|
|
3042
3042
|
deleteProcedureStepFieldsMany: JT
|
|
3043
|
-
} = ca.actions, da = (t) => t.procedureStepFieldsReducer.instances, hs = p([da], (t) => Object.values(t)), Ug =
|
|
3043
|
+
} = ca.actions, da = (t) => t.procedureStepFieldsReducer.instances, hs = p([da], (t) => Object.values(t)), Ug = y(
|
|
3044
3044
|
p([hs, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
|
|
3045
|
-
), Lg =
|
|
3045
|
+
), Lg = y(
|
|
3046
3046
|
p([hs, (t, s) => s], (t, s) => t.filter((e) => e.procedure_step === s).toSorted(wt).pop())
|
|
3047
3047
|
), Ng = p([da], (t) => {
|
|
3048
3048
|
const s = {};
|
|
@@ -3051,7 +3051,7 @@ const m = (
|
|
|
3051
3051
|
(!i || i.submitted_at < e.submitted_at) && (s[e.procedure_step] = e);
|
|
3052
3052
|
}
|
|
3053
3053
|
return s;
|
|
3054
|
-
}), ZT = (t) => (s) => s.procedureStepFieldsReducer.instances[t], QT =
|
|
3054
|
+
}), ZT = (t) => (s) => s.procedureStepFieldsReducer.instances[t], QT = y(
|
|
3055
3055
|
p(
|
|
3056
3056
|
[hs, (t, s) => s],
|
|
3057
3057
|
(t, s) => {
|
|
@@ -3092,7 +3092,7 @@ const m = (
|
|
|
3092
3092
|
} = oa.actions, cI = (t) => t.procedureStepFieldValuesAttachmentReducer.instances, ha = p(
|
|
3093
3093
|
[cI],
|
|
3094
3094
|
(t) => Object.values(t)
|
|
3095
|
-
), dI = (t) => (s) => s.procedureStepFieldValuesAttachmentReducer.instances[t], oI =
|
|
3095
|
+
), dI = (t) => (s) => s.procedureStepFieldValuesAttachmentReducer.instances[t], oI = y(
|
|
3096
3096
|
p(
|
|
3097
3097
|
[ha, (t, s) => s],
|
|
3098
3098
|
(t, s) => {
|
|
@@ -3100,7 +3100,7 @@ const m = (
|
|
|
3100
3100
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3101
3101
|
}
|
|
3102
3102
|
)
|
|
3103
|
-
), uI =
|
|
3103
|
+
), uI = y(
|
|
3104
3104
|
p(
|
|
3105
3105
|
[ha, (t, s) => s],
|
|
3106
3106
|
(t, s) => f(t.filter((e) => e.field_values === s))
|
|
@@ -3138,14 +3138,14 @@ const m = (
|
|
|
3138
3138
|
} = pa.actions, II = pa.reducer, PI = (t) => t.procedureStepFieldValuesReducer.instances, ft = p(
|
|
3139
3139
|
[PI],
|
|
3140
3140
|
(t) => Object.values(t)
|
|
3141
|
-
), Hg =
|
|
3141
|
+
), Hg = y(
|
|
3142
3142
|
p([ft, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
|
|
3143
|
-
), Gg =
|
|
3143
|
+
), Gg = y(
|
|
3144
3144
|
p(
|
|
3145
3145
|
[ft, (t, s) => s],
|
|
3146
3146
|
(t, s) => f(t.filter((e) => e.procedure_step === s))
|
|
3147
3147
|
)
|
|
3148
|
-
), _I = (t) => (s) => s.procedureStepFieldValuesReducer.instances[t], bI =
|
|
3148
|
+
), _I = (t) => (s) => s.procedureStepFieldValuesReducer.instances[t], bI = y(
|
|
3149
3149
|
p(
|
|
3150
3150
|
[ft, (t, s) => s],
|
|
3151
3151
|
(t, s) => {
|
|
@@ -3153,7 +3153,7 @@ const m = (
|
|
|
3153
3153
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3154
3154
|
}
|
|
3155
3155
|
)
|
|
3156
|
-
), Wg =
|
|
3156
|
+
), Wg = y(
|
|
3157
3157
|
p(
|
|
3158
3158
|
[
|
|
3159
3159
|
ft,
|
|
@@ -3199,7 +3199,7 @@ const m = (
|
|
|
3199
3199
|
} = ma.actions, kI = (t) => t.procedureStepFieldValuesReviewReducer.instances, St = p(
|
|
3200
3200
|
[kI],
|
|
3201
3201
|
(t) => Object.values(t)
|
|
3202
|
-
), BI = (t) => (s) => s.procedureStepFieldValuesReviewReducer.instances[t], zI =
|
|
3202
|
+
), BI = (t) => (s) => s.procedureStepFieldValuesReviewReducer.instances[t], zI = y(
|
|
3203
3203
|
p(
|
|
3204
3204
|
[St, (t, s) => s],
|
|
3205
3205
|
(t, s) => {
|
|
@@ -3207,12 +3207,12 @@ const m = (
|
|
|
3207
3207
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3208
3208
|
}
|
|
3209
3209
|
)
|
|
3210
|
-
), DI =
|
|
3210
|
+
), DI = y(
|
|
3211
3211
|
p(
|
|
3212
3212
|
[St, (t, s) => s],
|
|
3213
3213
|
(t, s) => f(t.filter((e) => e.field_values === s))
|
|
3214
3214
|
)
|
|
3215
|
-
), Kg =
|
|
3215
|
+
), Kg = y(
|
|
3216
3216
|
p(
|
|
3217
3217
|
[St, (t, s) => s],
|
|
3218
3218
|
(t, s) => {
|
|
@@ -3224,7 +3224,7 @@ const m = (
|
|
|
3224
3224
|
return e;
|
|
3225
3225
|
}
|
|
3226
3226
|
)
|
|
3227
|
-
), Yg =
|
|
3227
|
+
), Yg = y(
|
|
3228
3228
|
p(
|
|
3229
3229
|
[
|
|
3230
3230
|
ft,
|
|
@@ -3242,7 +3242,7 @@ const m = (
|
|
|
3242
3242
|
);
|
|
3243
3243
|
}
|
|
3244
3244
|
)
|
|
3245
|
-
), Jg =
|
|
3245
|
+
), Jg = y(
|
|
3246
3246
|
p(
|
|
3247
3247
|
[
|
|
3248
3248
|
ft,
|
|
@@ -3302,7 +3302,7 @@ const m = (
|
|
|
3302
3302
|
updateProcedureStepReviewers: LI,
|
|
3303
3303
|
deleteProcedureStepReviewer: NI,
|
|
3304
3304
|
deleteProcedureStepReviewers: HI
|
|
3305
|
-
} = Sa.actions, GI = (t) => t.procedureStepReviewerReducer.instances, jt = p([GI], (t) => Object.values(t)), WI = (t) => (s) => s.procedureStepReviewerReducer.instances[t], KI =
|
|
3305
|
+
} = Sa.actions, GI = (t) => t.procedureStepReviewerReducer.instances, jt = p([GI], (t) => Object.values(t)), WI = (t) => (s) => s.procedureStepReviewerReducer.instances[t], KI = y(
|
|
3306
3306
|
p(
|
|
3307
3307
|
[jt, (t, s) => s],
|
|
3308
3308
|
(t, s) => {
|
|
@@ -3310,11 +3310,11 @@ const m = (
|
|
|
3310
3310
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3311
3311
|
}
|
|
3312
3312
|
)
|
|
3313
|
-
), Qg =
|
|
3313
|
+
), Qg = y(
|
|
3314
3314
|
p([jt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
|
|
3315
|
-
), Xg =
|
|
3315
|
+
), Xg = y(
|
|
3316
3316
|
p([jt, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_step === s)))
|
|
3317
|
-
), ew =
|
|
3317
|
+
), ew = y(
|
|
3318
3318
|
p(
|
|
3319
3319
|
[
|
|
3320
3320
|
jt,
|
|
@@ -3359,7 +3359,7 @@ const m = (
|
|
|
3359
3359
|
updateProcedureSteps: sP,
|
|
3360
3360
|
deleteProcedureStep: iP,
|
|
3361
3361
|
deleteProcedureSteps: nP
|
|
3362
|
-
} = Aa.actions, rP = Aa.reducer, Oa = (t) => t.procedureStepReducer.instances, aP = (t) => (s) => s.procedureStepReducer.instances[t], Ta = p([Oa], (t) => Object.values(t).toSorted((s, e) => s.order - e.order)), tw =
|
|
3362
|
+
} = Aa.actions, rP = Aa.reducer, Oa = (t) => t.procedureStepReducer.instances, aP = (t) => (s) => s.procedureStepReducer.instances[t], Ta = p([Oa], (t) => Object.values(t).toSorted((s, e) => s.order - e.order)), tw = y(
|
|
3363
3363
|
p(
|
|
3364
3364
|
[Oa, (t, s) => s],
|
|
3365
3365
|
(t, s) => {
|
|
@@ -3369,9 +3369,9 @@ const m = (
|
|
|
3369
3369
|
return Li(e);
|
|
3370
3370
|
}
|
|
3371
3371
|
)
|
|
3372
|
-
), sw =
|
|
3372
|
+
), sw = y(
|
|
3373
3373
|
p([Ta, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
|
|
3374
|
-
), cP =
|
|
3374
|
+
), cP = y(
|
|
3375
3375
|
p([Ta, (t, s) => s], (t, s) => {
|
|
3376
3376
|
const e = new Set(s);
|
|
3377
3377
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -3409,7 +3409,7 @@ const m = (
|
|
|
3409
3409
|
} = Ia.actions, SP = Ia.reducer, AP = (t) => t.procedureTypeAttachmentReducer.instances, Pa = p(
|
|
3410
3410
|
[AP],
|
|
3411
3411
|
(t) => Object.values(t)
|
|
3412
|
-
), OP = (t) => (s) => s.procedureTypeAttachmentReducer.instances[t], TP =
|
|
3412
|
+
), OP = (t) => (s) => s.procedureTypeAttachmentReducer.instances[t], TP = y(
|
|
3413
3413
|
p(
|
|
3414
3414
|
[Pa, (t, s) => s],
|
|
3415
3415
|
(t, s) => {
|
|
@@ -3417,7 +3417,7 @@ const m = (
|
|
|
3417
3417
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3418
3418
|
}
|
|
3419
3419
|
)
|
|
3420
|
-
), iw =
|
|
3420
|
+
), iw = y(
|
|
3421
3421
|
p(
|
|
3422
3422
|
[Pa, (t, s) => s],
|
|
3423
3423
|
(t, s) => f(t.filter(({ procedure_type: e }) => s === e))
|
|
@@ -3455,12 +3455,12 @@ const m = (
|
|
|
3455
3455
|
} = _a.actions, EP = _a.reducer, vP = (t) => t.procedureTypeFieldsAttachmentReducer.instances, ba = p(
|
|
3456
3456
|
[vP],
|
|
3457
3457
|
(t) => Object.values(t)
|
|
3458
|
-
), nw =
|
|
3458
|
+
), nw = y(
|
|
3459
3459
|
p(
|
|
3460
3460
|
[ba, (t, s) => s],
|
|
3461
3461
|
(t, s) => f(t.filter((e) => e.fields_revision === s))
|
|
3462
3462
|
)
|
|
3463
|
-
), kP = (t) => (s) => s.procedureTypeFieldsAttachmentReducer.instances[t], BP =
|
|
3463
|
+
), kP = (t) => (s) => s.procedureTypeFieldsAttachmentReducer.instances[t], BP = y(
|
|
3464
3464
|
p(
|
|
3465
3465
|
[ba, (t, s) => s],
|
|
3466
3466
|
(t, s) => {
|
|
@@ -3501,11 +3501,11 @@ const m = (
|
|
|
3501
3501
|
} = Ma.actions, LP = Ma.reducer, NP = (t) => t.procedureTypeFieldsReducer.instances, ps = p(
|
|
3502
3502
|
[NP],
|
|
3503
3503
|
(t) => Object.values(t)
|
|
3504
|
-
), rw =
|
|
3504
|
+
), rw = y(
|
|
3505
3505
|
p([ps, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure_type === s)))
|
|
3506
|
-
), aw =
|
|
3506
|
+
), aw = y(
|
|
3507
3507
|
p([ps, (t, s) => s], (t, s) => t.filter((e) => e.procedure_type === s).sort((e, i) => e.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
3508
|
-
), HP = (t) => (s) => s.procedureTypeFieldsReducer.instances[t], GP =
|
|
3508
|
+
), HP = (t) => (s) => s.procedureTypeFieldsReducer.instances[t], GP = y(
|
|
3509
3509
|
p(
|
|
3510
3510
|
[ps, (t, s) => s],
|
|
3511
3511
|
(t, s) => {
|
|
@@ -3546,7 +3546,7 @@ const m = (
|
|
|
3546
3546
|
} = ga.actions, e_ = ga.reducer, t_ = (t) => t.procedureFieldValuesAttachmentReducer.instances, Fa = p(
|
|
3547
3547
|
[t_],
|
|
3548
3548
|
(t) => Object.values(t)
|
|
3549
|
-
), s_ = (t) => (s) => s.procedureFieldValuesAttachmentReducer.instances[t], i_ =
|
|
3549
|
+
), s_ = (t) => (s) => s.procedureFieldValuesAttachmentReducer.instances[t], i_ = y(
|
|
3550
3550
|
p(
|
|
3551
3551
|
[Fa, (t, s) => s],
|
|
3552
3552
|
(t, s) => {
|
|
@@ -3554,7 +3554,7 @@ const m = (
|
|
|
3554
3554
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3555
3555
|
}
|
|
3556
3556
|
)
|
|
3557
|
-
), n_ =
|
|
3557
|
+
), n_ = y(
|
|
3558
3558
|
p(
|
|
3559
3559
|
[Fa, (t, s) => s],
|
|
3560
3560
|
(t, s) => f(t.filter((e) => e.field_values === s))
|
|
@@ -3589,9 +3589,9 @@ const m = (
|
|
|
3589
3589
|
updateProcedureFieldValuesMany: l_,
|
|
3590
3590
|
deleteProcedureFieldValues: h_,
|
|
3591
3591
|
deleteProcedureFieldValuesMany: p_
|
|
3592
|
-
} = Ea.actions, m_ = Ea.reducer, y_ = (t) => t.procedureFieldValuesReducer.instances, va = p([y_], (t) => Object.values(t)), cw =
|
|
3592
|
+
} = Ea.actions, m_ = Ea.reducer, y_ = (t) => t.procedureFieldValuesReducer.instances, va = p([y_], (t) => Object.values(t)), cw = y(
|
|
3593
3593
|
p([va, (t, s) => s], (t, s) => f(t.filter((e) => e.procedure === s)))
|
|
3594
|
-
), f_ = (t) => (s) => s.procedureFieldValuesReducer.instances[t], S_ =
|
|
3594
|
+
), f_ = (t) => (s) => s.procedureFieldValuesReducer.instances[t], S_ = y(
|
|
3595
3595
|
p(
|
|
3596
3596
|
[va, (t, s) => s],
|
|
3597
3597
|
(t, s) => {
|
|
@@ -3634,12 +3634,12 @@ const m = (
|
|
|
3634
3634
|
} = ka.actions, w_ = ka.reducer, R_ = (t) => t.procedureTypeReducer.instances, Ba = p(
|
|
3635
3635
|
[R_],
|
|
3636
3636
|
(t) => Object.values(t)
|
|
3637
|
-
), F_ = (t) => (s) => s.procedureTypeReducer.instances[t], E_ =
|
|
3637
|
+
), F_ = (t) => (s) => s.procedureTypeReducer.instances[t], E_ = y(
|
|
3638
3638
|
p([Ba, (t, s) => s], (t, s) => {
|
|
3639
3639
|
const e = new Set(s);
|
|
3640
3640
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3641
3641
|
})
|
|
3642
|
-
), dw =
|
|
3642
|
+
), dw = y(
|
|
3643
3643
|
p([Ba, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
|
|
3644
3644
|
), v_ = {
|
|
3645
3645
|
isRehydrated: !1
|
|
@@ -3687,19 +3687,19 @@ const m = (
|
|
|
3687
3687
|
} = Da.actions, U_ = Da.reducer, L_ = (t) => t.teamMembershipReducer.instances, ms = p(
|
|
3688
3688
|
[L_],
|
|
3689
3689
|
(t) => Object.values(t)
|
|
3690
|
-
), N_ = (t) => (s) => s.teamMembershipReducer.instances[t], H_ =
|
|
3690
|
+
), N_ = (t) => (s) => s.teamMembershipReducer.instances[t], H_ = y(
|
|
3691
3691
|
p([ms, (t, s) => s], (t, s) => {
|
|
3692
3692
|
const e = new Set(s);
|
|
3693
3693
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3694
3694
|
})
|
|
3695
|
-
), lw =
|
|
3695
|
+
), lw = y(
|
|
3696
3696
|
p([ms, (t, s) => s], (t, s) => {
|
|
3697
3697
|
const e = {};
|
|
3698
3698
|
for (const i of t.filter((n) => n.team === s))
|
|
3699
3699
|
e[i.user] = i;
|
|
3700
3700
|
return e;
|
|
3701
3701
|
})
|
|
3702
|
-
), hw =
|
|
3702
|
+
), hw = y(
|
|
3703
3703
|
p(
|
|
3704
3704
|
[as, ms, (t, s) => s],
|
|
3705
3705
|
(t, s, e) => {
|
|
@@ -3737,12 +3737,12 @@ const m = (
|
|
|
3737
3737
|
updateTeams: Q_,
|
|
3738
3738
|
deleteTeam: X_,
|
|
3739
3739
|
deleteTeams: eb
|
|
3740
|
-
} = qa.actions, tb = (t) => t.teamReducer.instances, ja = p([tb], (t) => Object.values(t)), sb = (t) => (s) => s.teamReducer.instances[t], ib =
|
|
3740
|
+
} = qa.actions, tb = (t) => t.teamReducer.instances, ja = p([tb], (t) => Object.values(t)), sb = (t) => (s) => s.teamReducer.instances[t], ib = y(
|
|
3741
3741
|
p([ja, (t, s) => s], (t, s) => {
|
|
3742
3742
|
const e = new Set(s);
|
|
3743
3743
|
return f(t.filter(({ uuid: i }) => e.has(i)));
|
|
3744
3744
|
})
|
|
3745
|
-
), pw =
|
|
3745
|
+
), pw = y(
|
|
3746
3746
|
p([ja, (t, s) => s], (t, s) => f(t.filter((e) => e.organization === s)))
|
|
3747
3747
|
), nb = qa.reducer, Va = {
|
|
3748
3748
|
outboxReducer: BS,
|
|
@@ -3926,18 +3926,18 @@ Retries:`,
|
|
|
3926
3926
|
if (!l)
|
|
3927
3927
|
throw new Error("Outbox coordinator not set");
|
|
3928
3928
|
l.remove(s.payload.uuid);
|
|
3929
|
-
const
|
|
3930
|
-
throw
|
|
3929
|
+
const m = s.meta.offline.rollback;
|
|
3930
|
+
throw m && (console.warn("Rolling back request due to SDK error:", s), i.dispatch(m)), t;
|
|
3931
3931
|
}
|
|
3932
3932
|
if (t instanceof C && t.options.discard && (console.debug("Discarding request due to explicit discard:", s.payload.url), d()), a.includes(r) && (console.debug("Discarding request due to deletion:", s.payload.url), d()), t instanceof C) {
|
|
3933
3933
|
const l = t.status || ((h = t.response) == null ? void 0 : h.status);
|
|
3934
3934
|
if (l || console.warn("Error has no status code:", t), l !== void 0 && $a.includes(l)) {
|
|
3935
3935
|
console.warn("Discarding request due to error:", t, `
|
|
3936
3936
|
Action:`, s);
|
|
3937
|
-
const
|
|
3938
|
-
if (!
|
|
3937
|
+
const m = ht();
|
|
3938
|
+
if (!m)
|
|
3939
3939
|
throw new Error("Outbox coordinator not set");
|
|
3940
|
-
|
|
3940
|
+
m.remove(s.payload.uuid), t.options.discard = !0, d();
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
3943
|
console.debug("Registering a retry for request:", s.payload.uuid);
|
|
@@ -4105,7 +4105,7 @@ function S(t, s, e) {
|
|
|
4105
4105
|
return `Delete ${i}`;
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
|
-
function
|
|
4108
|
+
function F(t) {
|
|
4109
4109
|
const s = { ...t };
|
|
4110
4110
|
for (const e of [...ac, "created_by"])
|
|
4111
4111
|
e in s && delete s[e];
|
|
@@ -4143,11 +4143,15 @@ class V extends k {
|
|
|
4143
4143
|
super(...arguments);
|
|
4144
4144
|
u(this, "pageSize", cb);
|
|
4145
4145
|
}
|
|
4146
|
-
async
|
|
4147
|
-
const n =
|
|
4148
|
-
if (!
|
|
4146
|
+
async getPresignedUrl(e, i) {
|
|
4147
|
+
const { updateOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
|
|
4148
|
+
if (!r)
|
|
4149
|
+
throw new Error(`Could not find ${this.name}: ${e} in store.`);
|
|
4150
|
+
if (r.file_url) return r.file_url;
|
|
4151
|
+
const d = await this.get(e, i);
|
|
4152
|
+
if (!d.file_url)
|
|
4149
4153
|
throw new Error(`Unable to obtain file_url for ${this.name}: ${e}`);
|
|
4150
|
-
return n.file_url;
|
|
4154
|
+
return this.dispatch(n(d)), d.file_url;
|
|
4151
4155
|
}
|
|
4152
4156
|
async add(e) {
|
|
4153
4157
|
const { addOne: i, updateOne: n, deleteOne: a } = this.actions;
|
|
@@ -4166,7 +4170,7 @@ class V extends k {
|
|
|
4166
4170
|
r = e;
|
|
4167
4171
|
const h = this.buildModel(r), l = this.buildPayload(h);
|
|
4168
4172
|
this.dispatch(i(h));
|
|
4169
|
-
const
|
|
4173
|
+
const m = this.enqueueRequest({
|
|
4170
4174
|
description: S(o.POST, this.name, !1),
|
|
4171
4175
|
method: o.POST,
|
|
4172
4176
|
url: `${this.url}/`,
|
|
@@ -4177,24 +4181,24 @@ class V extends k {
|
|
|
4177
4181
|
blockers: this.getBlockers(h),
|
|
4178
4182
|
blocks: this.getBlocks(h)
|
|
4179
4183
|
});
|
|
4180
|
-
|
|
4184
|
+
m.then(({ instance: M }) => {
|
|
4181
4185
|
this.dispatch(n(M));
|
|
4182
4186
|
}).catch((M) => {
|
|
4183
4187
|
throw this.dispatch(a(this.getId(h))), M;
|
|
4184
4188
|
}).finally(() => {
|
|
4185
4189
|
c && URL.revokeObjectURL(c);
|
|
4186
4190
|
});
|
|
4187
|
-
const A =
|
|
4191
|
+
const A = m.then(({ instance: M }) => M), R = m.then(async ({ instance: M, presigned_url: w }) => {
|
|
4188
4192
|
try {
|
|
4189
4193
|
return w && await this.client.files.processPresignedUrl(M.file_sha1, w), M.file_sha1;
|
|
4190
4194
|
} catch (g) {
|
|
4191
4195
|
throw console.error("Upload to s3 using presigned url failed.", g), g;
|
|
4192
4196
|
}
|
|
4193
4197
|
});
|
|
4194
|
-
return [h, A,
|
|
4198
|
+
return [h, A, R];
|
|
4195
4199
|
}
|
|
4196
4200
|
async bulkAdd(e, i) {
|
|
4197
|
-
const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = [], h = /* @__PURE__ */ new Set(), l = ct(e, Math.min(i ?? e.length, at)),
|
|
4201
|
+
const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = [], h = /* @__PURE__ */ new Set(), l = ct(e, Math.min(i ?? e.length, at)), m = [];
|
|
4198
4202
|
for (const w of l) {
|
|
4199
4203
|
const g = [], E = {}, B = [], $ = [];
|
|
4200
4204
|
for (const D of w) {
|
|
@@ -4229,10 +4233,10 @@ class V extends k {
|
|
|
4229
4233
|
blockers: B,
|
|
4230
4234
|
blocks: $
|
|
4231
4235
|
};
|
|
4232
|
-
|
|
4236
|
+
m.push(q);
|
|
4233
4237
|
}
|
|
4234
4238
|
this.dispatch(n(c));
|
|
4235
|
-
const A =
|
|
4239
|
+
const A = m.map((w) => {
|
|
4236
4240
|
const { submittedAt: g, files: E, payloads: B, blocks: $, blockers: q } = w;
|
|
4237
4241
|
return this.enqueueRequest({
|
|
4238
4242
|
description: S(o.POST, this.name, !0),
|
|
@@ -4256,7 +4260,7 @@ class V extends k {
|
|
|
4256
4260
|
for (const w of h)
|
|
4257
4261
|
URL.revokeObjectURL(w);
|
|
4258
4262
|
});
|
|
4259
|
-
const
|
|
4263
|
+
const R = Promise.all(A).then((w) => w.flatMap(({ instances: g }) => g)), M = Promise.all(A).then(async (w) => {
|
|
4260
4264
|
const g = [];
|
|
4261
4265
|
for (const { presigned_urls: E } of w) {
|
|
4262
4266
|
const B = this.client.files.processPresignedUrls(E);
|
|
@@ -4269,7 +4273,7 @@ class V extends k {
|
|
|
4269
4273
|
}
|
|
4270
4274
|
return g;
|
|
4271
4275
|
});
|
|
4272
|
-
return [c,
|
|
4276
|
+
return [c, R, M];
|
|
4273
4277
|
}
|
|
4274
4278
|
async delete(e) {
|
|
4275
4279
|
const { addOne: i, deleteOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
|
|
@@ -4397,7 +4401,7 @@ class Ow extends k {
|
|
|
4397
4401
|
description: S(o.POST, this.name, !1),
|
|
4398
4402
|
method: o.POST,
|
|
4399
4403
|
url: `${this.url}/`,
|
|
4400
|
-
payload:
|
|
4404
|
+
payload: F(r),
|
|
4401
4405
|
blockers: [r.asset],
|
|
4402
4406
|
blocks: [r.uuid]
|
|
4403
4407
|
});
|
|
@@ -4482,8 +4486,8 @@ class Tw extends k {
|
|
|
4482
4486
|
}
|
|
4483
4487
|
add(e) {
|
|
4484
4488
|
const { addOne: i, updateOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
4485
|
-
var
|
|
4486
|
-
return ((
|
|
4489
|
+
var m;
|
|
4490
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
4487
4491
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
4488
4492
|
...e,
|
|
4489
4493
|
created_by: r,
|
|
@@ -4494,7 +4498,7 @@ class Tw extends k {
|
|
|
4494
4498
|
description: S(o.POST, this.name, !1),
|
|
4495
4499
|
method: o.POST,
|
|
4496
4500
|
url: `${this.url}/`,
|
|
4497
|
-
payload:
|
|
4501
|
+
payload: F(c),
|
|
4498
4502
|
blockers: [c.asset_type],
|
|
4499
4503
|
blocks: [c.uuid]
|
|
4500
4504
|
});
|
|
@@ -4530,8 +4534,8 @@ class Tw extends k {
|
|
|
4530
4534
|
async delete(e) {
|
|
4531
4535
|
const { addOne: i, deleteOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
|
|
4532
4536
|
if (!r) throw new Error(`No asset with uuid ${e} found in the store`);
|
|
4533
|
-
const d = this.select(Cc(e)), c = this.select(Xc(e)), h = this.select(Op(e)), l = this.select(fO(e)),
|
|
4534
|
-
this.dispatch(n(e)), this.dispatch(Ji(v(d))), this.dispatch(Nt(v(c))), this.dispatch(_t(v(h))), this.dispatch(Mt(v(l))), this.dispatch(mt(v(
|
|
4537
|
+
const d = this.select(Cc(e)), c = this.select(Xc(e)), h = this.select(Op(e)), l = this.select(fO(e)), m = this.select(Hh(e));
|
|
4538
|
+
this.dispatch(n(e)), this.dispatch(Ji(v(d))), this.dispatch(Nt(v(c))), this.dispatch(_t(v(h))), this.dispatch(Mt(v(l))), this.dispatch(mt(v(m)));
|
|
4535
4539
|
try {
|
|
4536
4540
|
return await this.enqueueRequest({
|
|
4537
4541
|
description: S(o.DELETE, this.name, !1),
|
|
@@ -4541,7 +4545,7 @@ class Tw extends k {
|
|
|
4541
4545
|
blocks: []
|
|
4542
4546
|
});
|
|
4543
4547
|
} catch (A) {
|
|
4544
|
-
throw this.dispatch(i(r)), this.dispatch(Yi(d)), this.dispatch(Lt(c)), this.dispatch(Pt(h)), this.dispatch(bt(l)), this.dispatch(pt(
|
|
4548
|
+
throw this.dispatch(i(r)), this.dispatch(Yi(d)), this.dispatch(Lt(c)), this.dispatch(Pt(h)), this.dispatch(bt(l)), this.dispatch(pt(m)), A;
|
|
4545
4549
|
}
|
|
4546
4550
|
}
|
|
4547
4551
|
bulkAdd(e, i) {
|
|
@@ -4549,7 +4553,7 @@ class Tw extends k {
|
|
|
4549
4553
|
e,
|
|
4550
4554
|
Math.min(i ?? e.length, at)
|
|
4551
4555
|
).map((h) => {
|
|
4552
|
-
const l = h.map((
|
|
4556
|
+
const l = h.map((m) => T(m));
|
|
4553
4557
|
return {
|
|
4554
4558
|
batchId: dt(),
|
|
4555
4559
|
payload: {
|
|
@@ -4560,12 +4564,12 @@ class Tw extends k {
|
|
|
4560
4564
|
}), d = [];
|
|
4561
4565
|
let c = null;
|
|
4562
4566
|
for (const h of r) {
|
|
4563
|
-
const { batchId: l, payload:
|
|
4567
|
+
const { batchId: l, payload: m } = h, A = m.assets.map(({ uuid: E }) => E), R = m.assets.map(({ asset_type: E }) => E), M = m.assets.map(({ project: E }) => E), w = m.assets.map(({ status: E }) => E), g = this.enqueueRequest({
|
|
4564
4568
|
description: S(o.POST, this.name, !0),
|
|
4565
4569
|
method: o.POST,
|
|
4566
4570
|
url: `${this.url}/bulk/`,
|
|
4567
|
-
payload:
|
|
4568
|
-
blockers: (c ? [c] : []).concat(
|
|
4571
|
+
payload: m,
|
|
4572
|
+
blockers: (c ? [c] : []).concat(R).concat(M).concat(w),
|
|
4569
4573
|
blocks: [l].concat(A)
|
|
4570
4574
|
});
|
|
4571
4575
|
c = h.batchId, d.push(g);
|
|
@@ -4592,19 +4596,19 @@ class Tw extends k {
|
|
|
4592
4596
|
});
|
|
4593
4597
|
this.dispatch(n(c));
|
|
4594
4598
|
const h = ct(e, Math.min(i ?? e.length, at)), l = [];
|
|
4595
|
-
let
|
|
4599
|
+
let m = null;
|
|
4596
4600
|
for (const A of h) {
|
|
4597
|
-
const
|
|
4601
|
+
const R = dt(), M = v(A), w = A.map(({ status: E }) => E).filter(Boolean), g = this.enqueueRequest({
|
|
4598
4602
|
description: S(o.PATCH, this.name, !0),
|
|
4599
4603
|
method: o.PATCH,
|
|
4600
4604
|
url: `${this.url}/bulk/`,
|
|
4601
4605
|
payload: {
|
|
4602
4606
|
payloads: A
|
|
4603
4607
|
},
|
|
4604
|
-
blockers: (
|
|
4605
|
-
blocks: [
|
|
4608
|
+
blockers: (m ? [m] : []).concat(M).concat(w),
|
|
4609
|
+
blocks: [R].concat(M)
|
|
4606
4610
|
});
|
|
4607
|
-
l.push(g),
|
|
4611
|
+
l.push(g), m = R;
|
|
4608
4612
|
}
|
|
4609
4613
|
return Promise.all(l).then((A) => {
|
|
4610
4614
|
this.dispatch(n(A.flat()));
|
|
@@ -4624,8 +4628,8 @@ class Tw extends k {
|
|
|
4624
4628
|
blockers: e,
|
|
4625
4629
|
blocks: []
|
|
4626
4630
|
});
|
|
4627
|
-
} catch (
|
|
4628
|
-
throw this.dispatch(i(r)), this.dispatch(Lt(d)), this.dispatch(Pt(c)), this.dispatch(bt(h)), this.dispatch(pt(l)),
|
|
4631
|
+
} catch (m) {
|
|
4632
|
+
throw this.dispatch(i(r)), this.dispatch(Lt(d)), this.dispatch(Pt(c)), this.dispatch(bt(h)), this.dispatch(pt(l)), m;
|
|
4629
4633
|
}
|
|
4630
4634
|
}
|
|
4631
4635
|
async refreshStore(e, i) {
|
|
@@ -4811,8 +4815,8 @@ class _w extends k {
|
|
|
4811
4815
|
}
|
|
4812
4816
|
add(e) {
|
|
4813
4817
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
4814
|
-
var
|
|
4815
|
-
return ((
|
|
4818
|
+
var m;
|
|
4819
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
4816
4820
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
4817
4821
|
...e,
|
|
4818
4822
|
created_by: r,
|
|
@@ -4823,7 +4827,7 @@ class _w extends k {
|
|
|
4823
4827
|
description: S(o.POST, this.name, !1),
|
|
4824
4828
|
method: o.POST,
|
|
4825
4829
|
url: `${this.url}/`,
|
|
4826
|
-
payload:
|
|
4830
|
+
payload: F(c),
|
|
4827
4831
|
blockers: [c.asset_type],
|
|
4828
4832
|
blocks: [c.uuid]
|
|
4829
4833
|
});
|
|
@@ -4961,8 +4965,8 @@ class Mw extends k {
|
|
|
4961
4965
|
}
|
|
4962
4966
|
add(e) {
|
|
4963
4967
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
4964
|
-
var
|
|
4965
|
-
return ((
|
|
4968
|
+
var m;
|
|
4969
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
4966
4970
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
4967
4971
|
...e,
|
|
4968
4972
|
created_by: r,
|
|
@@ -4971,7 +4975,7 @@ class Mw extends k {
|
|
|
4971
4975
|
description: S(o.POST, this.name, !1),
|
|
4972
4976
|
method: o.POST,
|
|
4973
4977
|
url: `${this.url}/`,
|
|
4974
|
-
payload:
|
|
4978
|
+
payload: F(c),
|
|
4975
4979
|
blockers: [e.asset, e.fields_revision],
|
|
4976
4980
|
blocks: [c.uuid]
|
|
4977
4981
|
});
|
|
@@ -4982,8 +4986,8 @@ class Mw extends k {
|
|
|
4982
4986
|
}), [c, h];
|
|
4983
4987
|
}
|
|
4984
4988
|
bulkAdd(e, i) {
|
|
4985
|
-
const { payloads: n, values: a } = e, { addMany: r, setMany: d, deleteMany: c } = this.actions, h = (/* @__PURE__ */ new Date()).toISOString(), l = [],
|
|
4986
|
-
for (const M of
|
|
4989
|
+
const { payloads: n, values: a } = e, { addMany: r, setMany: d, deleteMany: c } = this.actions, h = (/* @__PURE__ */ new Date()).toISOString(), l = [], m = ct(n, Math.min(i ?? n.length, at)), A = [];
|
|
4990
|
+
for (const M of m) {
|
|
4987
4991
|
const w = [];
|
|
4988
4992
|
for (const g of M) {
|
|
4989
4993
|
const E = T({
|
|
@@ -5010,7 +5014,7 @@ class Mw extends k {
|
|
|
5010
5014
|
});
|
|
5011
5015
|
}
|
|
5012
5016
|
this.dispatch(r(l));
|
|
5013
|
-
const
|
|
5017
|
+
const R = [];
|
|
5014
5018
|
for (const M of A) {
|
|
5015
5019
|
const { field_values: w } = M, g = w.map(({ asset: q }) => q), E = w.map(({ fields_revision: q }) => q), B = w.map(({ uuid: q }) => q), $ = this.enqueueRequest({
|
|
5016
5020
|
description: S(o.POST, this.name, !0),
|
|
@@ -5020,13 +5024,13 @@ class Mw extends k {
|
|
|
5020
5024
|
blockers: g.concat(E),
|
|
5021
5025
|
blocks: B
|
|
5022
5026
|
});
|
|
5023
|
-
|
|
5027
|
+
R.push($);
|
|
5024
5028
|
}
|
|
5025
|
-
return Promise.all(
|
|
5029
|
+
return Promise.all(R).then((M) => {
|
|
5026
5030
|
this.dispatch(d(M.flat()));
|
|
5027
5031
|
}).catch(() => {
|
|
5028
5032
|
this.dispatch(c(v(l)));
|
|
5029
|
-
}), [l,
|
|
5033
|
+
}), [l, R];
|
|
5030
5034
|
}
|
|
5031
5035
|
update(e) {
|
|
5032
5036
|
const { setOne: i } = this.actions, { selectById: n } = this.selectors, a = this.select(n(e.uuid));
|
|
@@ -5109,8 +5113,8 @@ class gw extends k {
|
|
|
5109
5113
|
}
|
|
5110
5114
|
add(e) {
|
|
5111
5115
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
5112
|
-
var
|
|
5113
|
-
return ((
|
|
5116
|
+
var m;
|
|
5117
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
5114
5118
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
5115
5119
|
...e,
|
|
5116
5120
|
created_by: r,
|
|
@@ -5121,7 +5125,7 @@ class gw extends k {
|
|
|
5121
5125
|
description: S(o.POST, this.name, !1),
|
|
5122
5126
|
method: o.POST,
|
|
5123
5127
|
url: `${this.url}/`,
|
|
5124
|
-
payload:
|
|
5128
|
+
payload: F(c),
|
|
5125
5129
|
blockers: [c.asset_type],
|
|
5126
5130
|
blocks: [c.uuid]
|
|
5127
5131
|
});
|
|
@@ -5206,8 +5210,8 @@ class ww extends k {
|
|
|
5206
5210
|
}
|
|
5207
5211
|
add(e) {
|
|
5208
5212
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
5209
|
-
var
|
|
5210
|
-
return ((
|
|
5213
|
+
var m;
|
|
5214
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
5211
5215
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
5212
5216
|
...e,
|
|
5213
5217
|
created_by: r,
|
|
@@ -5218,7 +5222,7 @@ class ww extends k {
|
|
|
5218
5222
|
description: S(o.POST, this.name, !1),
|
|
5219
5223
|
method: o.POST,
|
|
5220
5224
|
url: `${this.url}/`,
|
|
5221
|
-
payload:
|
|
5225
|
+
payload: F(c),
|
|
5222
5226
|
blockers: [e.asset, e.asset_type_identifier],
|
|
5223
5227
|
blocks: [c.uuid]
|
|
5224
5228
|
});
|
|
@@ -5232,7 +5236,7 @@ class ww extends k {
|
|
|
5232
5236
|
const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((M) => {
|
|
5233
5237
|
var w;
|
|
5234
5238
|
return ((w = M.userReducer.currentUser) == null ? void 0 : w.id) ?? null;
|
|
5235
|
-
}), h = ct(e, Math.min(i ?? e.length, at)), l = [],
|
|
5239
|
+
}), h = ct(e, Math.min(i ?? e.length, at)), l = [], m = [];
|
|
5236
5240
|
for (const M of h) {
|
|
5237
5241
|
const w = [], g = [], E = [];
|
|
5238
5242
|
for (const $ of M) {
|
|
@@ -5241,7 +5245,7 @@ class ww extends k {
|
|
|
5241
5245
|
submitted_at: d,
|
|
5242
5246
|
created_by: c
|
|
5243
5247
|
});
|
|
5244
|
-
|
|
5248
|
+
m.push(q);
|
|
5245
5249
|
const D = {
|
|
5246
5250
|
uuid: q.uuid,
|
|
5247
5251
|
asset: q.asset,
|
|
@@ -5258,7 +5262,7 @@ class ww extends k {
|
|
|
5258
5262
|
};
|
|
5259
5263
|
l.push(B);
|
|
5260
5264
|
}
|
|
5261
|
-
this.dispatch(n(
|
|
5265
|
+
this.dispatch(n(m));
|
|
5262
5266
|
const A = l.map((M) => {
|
|
5263
5267
|
const { payloads: w, submitted_at: g, blockers: E, blocks: B } = M;
|
|
5264
5268
|
return this.enqueueRequest({
|
|
@@ -5276,10 +5280,10 @@ class ww extends k {
|
|
|
5276
5280
|
Promise.all(A).then((M) => {
|
|
5277
5281
|
this.dispatch(a(M.flat()));
|
|
5278
5282
|
}).catch((M) => {
|
|
5279
|
-
throw this.dispatch(r(v(
|
|
5283
|
+
throw this.dispatch(r(v(m))), M;
|
|
5280
5284
|
});
|
|
5281
|
-
const
|
|
5282
|
-
return [
|
|
5285
|
+
const R = Promise.all(A).then((M) => M.flat());
|
|
5286
|
+
return [m, R];
|
|
5283
5287
|
}
|
|
5284
5288
|
async delete(e) {
|
|
5285
5289
|
const { deleteOne: i, addOne: n } = this.actions, { selectById: a } = this.selectors, r = this.select(a(e));
|
|
@@ -5334,8 +5338,8 @@ class Rw extends k {
|
|
|
5334
5338
|
}
|
|
5335
5339
|
add(e) {
|
|
5336
5340
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
5337
|
-
var
|
|
5338
|
-
return ((
|
|
5341
|
+
var m;
|
|
5342
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
5339
5343
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
5340
5344
|
...e,
|
|
5341
5345
|
created_by: r,
|
|
@@ -5346,7 +5350,7 @@ class Rw extends k {
|
|
|
5346
5350
|
description: S(o.POST, this.name, !1),
|
|
5347
5351
|
method: o.POST,
|
|
5348
5352
|
url: `${this.url}/`,
|
|
5349
|
-
payload:
|
|
5353
|
+
payload: F(c),
|
|
5350
5354
|
blockers: [],
|
|
5351
5355
|
blocks: [c.uuid]
|
|
5352
5356
|
});
|
|
@@ -5432,8 +5436,8 @@ class Fw extends k {
|
|
|
5432
5436
|
}
|
|
5433
5437
|
add(e) {
|
|
5434
5438
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
5435
|
-
var
|
|
5436
|
-
return ((
|
|
5439
|
+
var m;
|
|
5440
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
5437
5441
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
5438
5442
|
...e,
|
|
5439
5443
|
created_by: r,
|
|
@@ -5444,7 +5448,7 @@ class Fw extends k {
|
|
|
5444
5448
|
description: S(o.POST, this.name, !1),
|
|
5445
5449
|
method: o.POST,
|
|
5446
5450
|
url: `${this.url}/`,
|
|
5447
|
-
payload:
|
|
5451
|
+
payload: F(c),
|
|
5448
5452
|
blockers: [e.asset_type],
|
|
5449
5453
|
blocks: [c.uuid]
|
|
5450
5454
|
});
|
|
@@ -5628,8 +5632,8 @@ class vw extends k {
|
|
|
5628
5632
|
}
|
|
5629
5633
|
add(e) {
|
|
5630
5634
|
const { addOne: i, deleteOne: n, updateOne: a } = this.actions, r = this.select((l) => {
|
|
5631
|
-
var
|
|
5632
|
-
return ((
|
|
5635
|
+
var m;
|
|
5636
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
5633
5637
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
5634
5638
|
...e,
|
|
5635
5639
|
created_by: r,
|
|
@@ -5640,7 +5644,7 @@ class vw extends k {
|
|
|
5640
5644
|
description: S(o.POST, this.name, !1),
|
|
5641
5645
|
method: o.POST,
|
|
5642
5646
|
url: `${this.url}/`,
|
|
5643
|
-
payload:
|
|
5647
|
+
payload: F(c),
|
|
5644
5648
|
blockers: c.parent_document ? [c.parent_document] : [],
|
|
5645
5649
|
blocks: [c.uuid]
|
|
5646
5650
|
});
|
|
@@ -5867,43 +5871,47 @@ class zw extends At {
|
|
|
5867
5871
|
* will be thrown.
|
|
5868
5872
|
* @param downloadedName (Optional) The name to give the file after download. Set to the name of an attachment, for
|
|
5869
5873
|
* example.
|
|
5874
|
+
* @param signal (Optional) An abort signal to be passed down to cancel the request
|
|
5870
5875
|
*/
|
|
5871
|
-
async fetchFileFromUrl(e, i, n = i) {
|
|
5872
|
-
const
|
|
5873
|
-
if (
|
|
5874
|
-
let d;
|
|
5875
|
-
a in Tt ? d = Tt[a] : Ic(e) ? (d = Tc(e, n), Tt[a] = d) : (d = new Promise((l) => {
|
|
5876
|
-
this.performRequest({
|
|
5877
|
-
method: o.GET,
|
|
5878
|
-
url: e,
|
|
5879
|
-
// If in development, we should assume the files are saved at localhost by the Django development server.
|
|
5880
|
-
// Setting this to true will lead to localhost:8000 being prepended to the URL.
|
|
5881
|
-
isExternalUrl: !0,
|
|
5882
|
-
isResponseBlob: !0,
|
|
5883
|
-
isAuthNeeded: !1
|
|
5884
|
-
}).then((y) => {
|
|
5885
|
-
const A = new File([y], n, { type: y.type });
|
|
5886
|
-
l(A);
|
|
5887
|
-
});
|
|
5888
|
-
}), Tt[a] = d);
|
|
5876
|
+
async fetchFileFromUrl(e, i, n = i, a) {
|
|
5877
|
+
const r = e.split("?")[0] ?? e, d = await this.fetchCache(i);
|
|
5878
|
+
if (d) return d;
|
|
5889
5879
|
let c;
|
|
5880
|
+
r in Tt ? c = Tt[r] : Ic(e) ? (c = Tc(e, n), Tt[r] = c) : (c = new Promise((m) => {
|
|
5881
|
+
this.performRequest(
|
|
5882
|
+
{
|
|
5883
|
+
method: o.GET,
|
|
5884
|
+
url: e,
|
|
5885
|
+
// If in development, we should assume the files are saved at localhost by the Django development server.
|
|
5886
|
+
// Setting this to true will lead to localhost:8000 being prepended to the URL.
|
|
5887
|
+
isExternalUrl: !0,
|
|
5888
|
+
isResponseBlob: !0,
|
|
5889
|
+
isAuthNeeded: !1
|
|
5890
|
+
},
|
|
5891
|
+
a
|
|
5892
|
+
).then((A) => {
|
|
5893
|
+
const R = new File([A], n, { type: A.type });
|
|
5894
|
+
m(R);
|
|
5895
|
+
});
|
|
5896
|
+
}), Tt[r] = c);
|
|
5897
|
+
let h;
|
|
5890
5898
|
try {
|
|
5891
|
-
|
|
5892
|
-
} catch (
|
|
5893
|
-
throw
|
|
5899
|
+
h = await c;
|
|
5900
|
+
} catch (m) {
|
|
5901
|
+
throw m instanceof C && delete Tt[r], m;
|
|
5894
5902
|
}
|
|
5895
|
-
const
|
|
5896
|
-
if (
|
|
5897
|
-
const
|
|
5903
|
+
const l = await $t(h);
|
|
5904
|
+
if (l !== i) {
|
|
5905
|
+
const m = `The hash of the file returned from the server (${l}) does not match the
|
|
5898
5906
|
expected hash (${i}). This can happen if you're using a local development server and the
|
|
5899
5907
|
isExternalUrl flag in the request details is set to true, because instead of requesting the local
|
|
5900
5908
|
REST API, you will be requesting localhost:80 (where this app runs), resulting in a transformed blob
|
|
5901
5909
|
(with an uuid attached) being returned. Alternatively, you may be running with
|
|
5902
5910
|
import.meta.env.PROD, which will result in some file requests being treated as
|
|
5903
5911
|
external URLs and therefore not prepended with VITE_API_URL.`;
|
|
5904
|
-
throw new Error(
|
|
5912
|
+
throw new Error(m);
|
|
5905
5913
|
}
|
|
5906
|
-
return await this.addCache(
|
|
5914
|
+
return await this.addCache(h), h;
|
|
5907
5915
|
}
|
|
5908
5916
|
processPresignedUrl(e, i) {
|
|
5909
5917
|
if ("warning" in i) {
|
|
@@ -5963,8 +5971,8 @@ class Dw extends k {
|
|
|
5963
5971
|
}
|
|
5964
5972
|
add(e) {
|
|
5965
5973
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
5966
|
-
var
|
|
5967
|
-
return ((
|
|
5974
|
+
var m;
|
|
5975
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
5968
5976
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
5969
5977
|
...e,
|
|
5970
5978
|
created_by: r,
|
|
@@ -5975,7 +5983,7 @@ class Dw extends k {
|
|
|
5975
5983
|
description: S(o.POST, this.name, !1),
|
|
5976
5984
|
method: o.POST,
|
|
5977
5985
|
url: `${this.url}/`,
|
|
5978
|
-
payload:
|
|
5986
|
+
payload: F(c),
|
|
5979
5987
|
blockers: [c.form],
|
|
5980
5988
|
blocks: [c.uuid]
|
|
5981
5989
|
});
|
|
@@ -6060,8 +6068,8 @@ class qw extends k {
|
|
|
6060
6068
|
}
|
|
6061
6069
|
add(e) {
|
|
6062
6070
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
6063
|
-
var
|
|
6064
|
-
return ((
|
|
6071
|
+
var m;
|
|
6072
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
6065
6073
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
6066
6074
|
...e,
|
|
6067
6075
|
created_by: r,
|
|
@@ -6072,7 +6080,7 @@ class qw extends k {
|
|
|
6072
6080
|
description: S(o.POST, this.name, !1),
|
|
6073
6081
|
method: o.POST,
|
|
6074
6082
|
url: `${this.url}/`,
|
|
6075
|
-
payload:
|
|
6083
|
+
payload: F(c),
|
|
6076
6084
|
blockers: [e.form_submission, e.form_identifier],
|
|
6077
6085
|
blocks: [c.uuid]
|
|
6078
6086
|
});
|
|
@@ -6224,8 +6232,8 @@ class Vw extends k {
|
|
|
6224
6232
|
}
|
|
6225
6233
|
add(e) {
|
|
6226
6234
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
6227
|
-
var
|
|
6228
|
-
return ((
|
|
6235
|
+
var m;
|
|
6236
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
6229
6237
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
6230
6238
|
...e,
|
|
6231
6239
|
created_by: r,
|
|
@@ -6236,7 +6244,7 @@ class Vw extends k {
|
|
|
6236
6244
|
description: S(o.POST, this.name, !1),
|
|
6237
6245
|
method: o.POST,
|
|
6238
6246
|
url: `${this.url}/`,
|
|
6239
|
-
payload:
|
|
6247
|
+
payload: F(c),
|
|
6240
6248
|
blockers: [e.form],
|
|
6241
6249
|
blocks: [c.uuid]
|
|
6242
6250
|
});
|
|
@@ -6281,8 +6289,8 @@ class $w extends k {
|
|
|
6281
6289
|
}
|
|
6282
6290
|
add(e) {
|
|
6283
6291
|
const { addOne: i, updateOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
|
|
6284
|
-
var
|
|
6285
|
-
return ((
|
|
6292
|
+
var m;
|
|
6293
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
6286
6294
|
}), c = T({
|
|
6287
6295
|
...e,
|
|
6288
6296
|
submitted_at: r,
|
|
@@ -6293,7 +6301,7 @@ class $w extends k {
|
|
|
6293
6301
|
description: S(o.POST, this.name, !1),
|
|
6294
6302
|
method: o.POST,
|
|
6295
6303
|
url: `${this.url}/`,
|
|
6296
|
-
payload:
|
|
6304
|
+
payload: F(c),
|
|
6297
6305
|
blockers: [],
|
|
6298
6306
|
blocks: [c.uuid]
|
|
6299
6307
|
});
|
|
@@ -6485,8 +6493,8 @@ class Cw extends k {
|
|
|
6485
6493
|
}
|
|
6486
6494
|
add(e) {
|
|
6487
6495
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
6488
|
-
var
|
|
6489
|
-
return ((
|
|
6496
|
+
var m;
|
|
6497
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
6490
6498
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
6491
6499
|
...e,
|
|
6492
6500
|
created_by: r,
|
|
@@ -6495,7 +6503,7 @@ class Cw extends k {
|
|
|
6495
6503
|
description: S(o.POST, this.name, !1),
|
|
6496
6504
|
method: o.POST,
|
|
6497
6505
|
url: `${this.url}/`,
|
|
6498
|
-
payload:
|
|
6506
|
+
payload: F(c),
|
|
6499
6507
|
blockers: [e.form_revision],
|
|
6500
6508
|
blocks: [c.uuid]
|
|
6501
6509
|
});
|
|
@@ -6699,8 +6707,8 @@ class Lw extends k {
|
|
|
6699
6707
|
}
|
|
6700
6708
|
add(e) {
|
|
6701
6709
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
|
|
6702
|
-
var
|
|
6703
|
-
return ((
|
|
6710
|
+
var m;
|
|
6711
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
6704
6712
|
}), c = T({
|
|
6705
6713
|
...e,
|
|
6706
6714
|
submitted_at: r,
|
|
@@ -6711,7 +6719,7 @@ class Lw extends k {
|
|
|
6711
6719
|
description: S(o.POST, this.name, !1),
|
|
6712
6720
|
method: o.POST,
|
|
6713
6721
|
url: `${this.url}/`,
|
|
6714
|
-
payload:
|
|
6722
|
+
payload: F(c),
|
|
6715
6723
|
blockers: [e.issue, e.asset],
|
|
6716
6724
|
blocks: [c.uuid]
|
|
6717
6725
|
});
|
|
@@ -6723,8 +6731,8 @@ class Lw extends k {
|
|
|
6723
6731
|
}
|
|
6724
6732
|
bulkAdd(e) {
|
|
6725
6733
|
const { addMany: i, deleteMany: n, updateMany: a } = this.actions, r = this.select((l) => {
|
|
6726
|
-
var
|
|
6727
|
-
return ((
|
|
6734
|
+
var m;
|
|
6735
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
6728
6736
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map((l) => T({ ...l, submitted_at: d, created_by: r }));
|
|
6729
6737
|
this.dispatch(i(c));
|
|
6730
6738
|
const h = this.enqueueRequest({
|
|
@@ -6732,7 +6740,7 @@ class Lw extends k {
|
|
|
6732
6740
|
method: o.POST,
|
|
6733
6741
|
url: `${this.url}/bulk/`,
|
|
6734
6742
|
payload: {
|
|
6735
|
-
payloads: c.map((l) =>
|
|
6743
|
+
payloads: c.map((l) => F(l)),
|
|
6736
6744
|
submitted_at: d
|
|
6737
6745
|
},
|
|
6738
6746
|
blockers: c.flatMap((l) => [l.issue, l.asset]),
|
|
@@ -6949,7 +6957,7 @@ class Gw extends k {
|
|
|
6949
6957
|
description: S(o.POST, this.name, !1),
|
|
6950
6958
|
method: o.POST,
|
|
6951
6959
|
url: `${this.url}/`,
|
|
6952
|
-
payload:
|
|
6960
|
+
payload: F(r),
|
|
6953
6961
|
blockers: [e.issue],
|
|
6954
6962
|
blocks: [r.uuid]
|
|
6955
6963
|
});
|
|
@@ -7034,8 +7042,8 @@ class Ww extends k {
|
|
|
7034
7042
|
}
|
|
7035
7043
|
add(e) {
|
|
7036
7044
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = (/* @__PURE__ */ new Date()).toISOString(), d = this.select((l) => {
|
|
7037
|
-
var
|
|
7038
|
-
return ((
|
|
7045
|
+
var m;
|
|
7046
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7039
7047
|
}), c = T({
|
|
7040
7048
|
...e,
|
|
7041
7049
|
submitted_at: r,
|
|
@@ -7046,7 +7054,7 @@ class Ww extends k {
|
|
|
7046
7054
|
description: S(o.POST, this.name, !1),
|
|
7047
7055
|
method: o.POST,
|
|
7048
7056
|
url: `${this.url}/`,
|
|
7049
|
-
payload:
|
|
7057
|
+
payload: F(c),
|
|
7050
7058
|
blockers: [c.project, c.issue_type, c.status, c.priority],
|
|
7051
7059
|
blocks: [c.uuid]
|
|
7052
7060
|
});
|
|
@@ -7074,10 +7082,10 @@ class Ww extends k {
|
|
|
7074
7082
|
if (l in e && e[l] !== a[l])
|
|
7075
7083
|
switch (l) {
|
|
7076
7084
|
case x.PRIORITY: {
|
|
7077
|
-
const
|
|
7085
|
+
const m = e[l], A = this.select(Ir(m));
|
|
7078
7086
|
if (!A)
|
|
7079
7087
|
throw new Error(
|
|
7080
|
-
`Trying to update issue type priority with ${
|
|
7088
|
+
`Trying to update issue type priority with ${m} which does not exist in store`
|
|
7081
7089
|
);
|
|
7082
7090
|
d[l] = {
|
|
7083
7091
|
name: A.name,
|
|
@@ -7096,9 +7104,9 @@ class Ww extends k {
|
|
|
7096
7104
|
d[l] = e.title ?? "";
|
|
7097
7105
|
break;
|
|
7098
7106
|
case x.STATUS: {
|
|
7099
|
-
const
|
|
7107
|
+
const m = e[l], A = this.select(gr(m));
|
|
7100
7108
|
if (!A)
|
|
7101
|
-
throw new Error(`Trying to update issue type status with ${
|
|
7109
|
+
throw new Error(`Trying to update issue type status with ${m} which does not exist in store`);
|
|
7102
7110
|
d[l] = {
|
|
7103
7111
|
name: A.name,
|
|
7104
7112
|
color: A.color,
|
|
@@ -7107,13 +7115,13 @@ class Ww extends k {
|
|
|
7107
7115
|
break;
|
|
7108
7116
|
}
|
|
7109
7117
|
case x.ASSIGNED_TO: {
|
|
7110
|
-
const
|
|
7111
|
-
if (
|
|
7118
|
+
const m = e[l];
|
|
7119
|
+
if (m === null)
|
|
7112
7120
|
d[l] = null;
|
|
7113
7121
|
else {
|
|
7114
|
-
const A = this.select(cs(
|
|
7122
|
+
const A = this.select(cs(m));
|
|
7115
7123
|
if (!A)
|
|
7116
|
-
throw new Error(`Trying to update assigned to with ${
|
|
7124
|
+
throw new Error(`Trying to update assigned to with ${m} which does not exist in store.`);
|
|
7117
7125
|
d[l] = {
|
|
7118
7126
|
full_name: A.username,
|
|
7119
7127
|
id: A.id
|
|
@@ -7124,8 +7132,8 @@ class Ww extends k {
|
|
|
7124
7132
|
}
|
|
7125
7133
|
const c = T({
|
|
7126
7134
|
created_by: this.select((l) => {
|
|
7127
|
-
var
|
|
7128
|
-
return ((
|
|
7135
|
+
var m;
|
|
7136
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7129
7137
|
}),
|
|
7130
7138
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7131
7139
|
issue: a.uuid,
|
|
@@ -7163,19 +7171,19 @@ class Ww extends k {
|
|
|
7163
7171
|
});
|
|
7164
7172
|
this.dispatch(n(c));
|
|
7165
7173
|
const h = ct(e, Math.min(i ?? e.length, at)), l = [];
|
|
7166
|
-
let
|
|
7174
|
+
let m = null;
|
|
7167
7175
|
for (const A of h) {
|
|
7168
|
-
const
|
|
7176
|
+
const R = dt(), M = v(A), w = A.map(({ status: B }) => B).filter(Boolean), g = A.map(({ priority: B }) => B).filter(Boolean), E = this.enqueueRequest({
|
|
7169
7177
|
description: S(o.PATCH, this.name, !0),
|
|
7170
7178
|
method: o.PATCH,
|
|
7171
7179
|
url: `${this.url}/bulk/`,
|
|
7172
7180
|
payload: {
|
|
7173
7181
|
payloads: A
|
|
7174
7182
|
},
|
|
7175
|
-
blockers: (
|
|
7176
|
-
blocks: [
|
|
7183
|
+
blockers: (m ? [m] : []).concat(M).concat(w).concat(g),
|
|
7184
|
+
blocks: [R].concat(M)
|
|
7177
7185
|
});
|
|
7178
|
-
l.push(E),
|
|
7186
|
+
l.push(E), m = R;
|
|
7179
7187
|
}
|
|
7180
7188
|
return Promise.all(l).then((A) => {
|
|
7181
7189
|
this.dispatch(n(A.flat()));
|
|
@@ -7197,8 +7205,8 @@ class Ww extends k {
|
|
|
7197
7205
|
blockers: [e],
|
|
7198
7206
|
blocks: []
|
|
7199
7207
|
});
|
|
7200
|
-
} catch (
|
|
7201
|
-
throw this.dispatch(n(r)), this.dispatch(Jn(c)), this.dispatch(Fr(h)), this.dispatch(Pt(d)), this.dispatch(pt(l)),
|
|
7208
|
+
} catch (m) {
|
|
7209
|
+
throw this.dispatch(n(r)), this.dispatch(Jn(c)), this.dispatch(Fr(h)), this.dispatch(Pt(d)), this.dispatch(pt(l)), m;
|
|
7202
7210
|
}
|
|
7203
7211
|
}
|
|
7204
7212
|
async bulkDelete(e) {
|
|
@@ -7400,8 +7408,8 @@ class Jw extends k {
|
|
|
7400
7408
|
}
|
|
7401
7409
|
add(e) {
|
|
7402
7410
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
7403
|
-
var
|
|
7404
|
-
return ((
|
|
7411
|
+
var m;
|
|
7412
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7405
7413
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
7406
7414
|
...e,
|
|
7407
7415
|
created_by: r,
|
|
@@ -7412,7 +7420,7 @@ class Jw extends k {
|
|
|
7412
7420
|
description: S(o.POST, this.name, !1),
|
|
7413
7421
|
method: o.POST,
|
|
7414
7422
|
url: `${this.url}/`,
|
|
7415
|
-
payload:
|
|
7423
|
+
payload: F(c),
|
|
7416
7424
|
blockers: [c.issue_type],
|
|
7417
7425
|
blocks: [c.uuid]
|
|
7418
7426
|
});
|
|
@@ -7550,8 +7558,8 @@ class Qw extends k {
|
|
|
7550
7558
|
}
|
|
7551
7559
|
add(e) {
|
|
7552
7560
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
7553
|
-
var
|
|
7554
|
-
return ((
|
|
7561
|
+
var m;
|
|
7562
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7555
7563
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
7556
7564
|
...e,
|
|
7557
7565
|
created_by: r,
|
|
@@ -7560,7 +7568,7 @@ class Qw extends k {
|
|
|
7560
7568
|
description: S(o.POST, this.name, !1),
|
|
7561
7569
|
method: o.POST,
|
|
7562
7570
|
url: `${this.url}/`,
|
|
7563
|
-
payload:
|
|
7571
|
+
payload: F(c),
|
|
7564
7572
|
blockers: [e.issue, e.fields_revision],
|
|
7565
7573
|
blocks: [c.uuid]
|
|
7566
7574
|
});
|
|
@@ -7651,8 +7659,8 @@ class Xw extends k {
|
|
|
7651
7659
|
}
|
|
7652
7660
|
add(e) {
|
|
7653
7661
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
7654
|
-
var
|
|
7655
|
-
return ((
|
|
7662
|
+
var m;
|
|
7663
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7656
7664
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
7657
7665
|
...e,
|
|
7658
7666
|
created_by: r,
|
|
@@ -7663,7 +7671,7 @@ class Xw extends k {
|
|
|
7663
7671
|
description: S(o.POST, this.name, !1),
|
|
7664
7672
|
method: o.POST,
|
|
7665
7673
|
url: `${this.url}/`,
|
|
7666
|
-
payload:
|
|
7674
|
+
payload: F(c),
|
|
7667
7675
|
blockers: [c.issue_type],
|
|
7668
7676
|
blocks: [c.uuid]
|
|
7669
7677
|
});
|
|
@@ -7748,8 +7756,8 @@ class eR extends k {
|
|
|
7748
7756
|
}
|
|
7749
7757
|
add(e) {
|
|
7750
7758
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
7751
|
-
var
|
|
7752
|
-
return ((
|
|
7759
|
+
var m;
|
|
7760
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7753
7761
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
7754
7762
|
...e,
|
|
7755
7763
|
created_by: r,
|
|
@@ -7760,7 +7768,7 @@ class eR extends k {
|
|
|
7760
7768
|
description: S(o.POST, this.name, !1),
|
|
7761
7769
|
method: o.POST,
|
|
7762
7770
|
url: `${this.url}/`,
|
|
7763
|
-
payload:
|
|
7771
|
+
payload: F(c),
|
|
7764
7772
|
blockers: [e.issue, e.issue_type_identifier],
|
|
7765
7773
|
blocks: [c.uuid]
|
|
7766
7774
|
});
|
|
@@ -7823,8 +7831,8 @@ class tR extends k {
|
|
|
7823
7831
|
}
|
|
7824
7832
|
add(e) {
|
|
7825
7833
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
7826
|
-
var
|
|
7827
|
-
return ((
|
|
7834
|
+
var m;
|
|
7835
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7828
7836
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
7829
7837
|
...e,
|
|
7830
7838
|
created_by: r,
|
|
@@ -7835,7 +7843,7 @@ class tR extends k {
|
|
|
7835
7843
|
description: S(o.POST, this.name, !1),
|
|
7836
7844
|
method: o.POST,
|
|
7837
7845
|
url: `${this.url}/`,
|
|
7838
|
-
payload:
|
|
7846
|
+
payload: F(c),
|
|
7839
7847
|
blockers: [e.issue_type],
|
|
7840
7848
|
blocks: [c.uuid]
|
|
7841
7849
|
});
|
|
@@ -7917,8 +7925,8 @@ class sR extends k {
|
|
|
7917
7925
|
}
|
|
7918
7926
|
add(e) {
|
|
7919
7927
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
7920
|
-
var
|
|
7921
|
-
return ((
|
|
7928
|
+
var m;
|
|
7929
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
7922
7930
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
7923
7931
|
...e,
|
|
7924
7932
|
submitted_at: d,
|
|
@@ -7928,7 +7936,7 @@ class sR extends k {
|
|
|
7928
7936
|
const h = this.enqueueRequest({
|
|
7929
7937
|
method: o.POST,
|
|
7930
7938
|
url: `${this.url}/`,
|
|
7931
|
-
payload:
|
|
7939
|
+
payload: F(c),
|
|
7932
7940
|
blockers: [],
|
|
7933
7941
|
blocks: [c.uuid]
|
|
7934
7942
|
});
|
|
@@ -8013,8 +8021,8 @@ class iR extends k {
|
|
|
8013
8021
|
}
|
|
8014
8022
|
add(e) {
|
|
8015
8023
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
8016
|
-
var
|
|
8017
|
-
return ((
|
|
8024
|
+
var m;
|
|
8025
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
8018
8026
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
8019
8027
|
...e,
|
|
8020
8028
|
created_by: r,
|
|
@@ -8025,7 +8033,7 @@ class iR extends k {
|
|
|
8025
8033
|
description: S(o.POST, this.name, !1),
|
|
8026
8034
|
method: o.POST,
|
|
8027
8035
|
url: `${this.url}/`,
|
|
8028
|
-
payload:
|
|
8036
|
+
payload: F(c),
|
|
8029
8037
|
blockers: [e.issue_type],
|
|
8030
8038
|
blocks: [c.uuid]
|
|
8031
8039
|
});
|
|
@@ -8395,7 +8403,7 @@ class dR extends k {
|
|
|
8395
8403
|
description: S(o.POST, this.name, !1),
|
|
8396
8404
|
method: o.POST,
|
|
8397
8405
|
url: `${this.url}/`,
|
|
8398
|
-
payload:
|
|
8406
|
+
payload: F(r),
|
|
8399
8407
|
blockers: [r.organization_access, r.project],
|
|
8400
8408
|
blocks: [r.uuid]
|
|
8401
8409
|
});
|
|
@@ -8415,7 +8423,7 @@ class dR extends k {
|
|
|
8415
8423
|
description: S(o.POST, this.name, !0),
|
|
8416
8424
|
method: o.POST,
|
|
8417
8425
|
url: `${this.url}/bulk/`,
|
|
8418
|
-
payload: { project_accesses: d.map((h) =>
|
|
8426
|
+
payload: { project_accesses: d.map((h) => F(h)) },
|
|
8419
8427
|
blockers: d.flatMap((h) => [
|
|
8420
8428
|
h.project,
|
|
8421
8429
|
h.organization_access
|
|
@@ -8582,7 +8590,7 @@ class uR extends k {
|
|
|
8582
8590
|
description: S(o.POST, this.name, !1),
|
|
8583
8591
|
method: o.POST,
|
|
8584
8592
|
url: `${this.url}/`,
|
|
8585
|
-
payload:
|
|
8593
|
+
payload: F(r),
|
|
8586
8594
|
blockers: [r.project],
|
|
8587
8595
|
blocks: [r.uuid]
|
|
8588
8596
|
});
|
|
@@ -8767,7 +8775,7 @@ class hR extends Ot {
|
|
|
8767
8775
|
const { addOne: i } = this.actions, n = await this.performRequest({
|
|
8768
8776
|
method: o.POST,
|
|
8769
8777
|
url: `${this.url}/`,
|
|
8770
|
-
payload:
|
|
8778
|
+
payload: F(e)
|
|
8771
8779
|
});
|
|
8772
8780
|
return this.dispatch(i(n)), n;
|
|
8773
8781
|
}
|
|
@@ -8775,7 +8783,7 @@ class hR extends Ot {
|
|
|
8775
8783
|
const { updateOne: i } = this.actions, n = await this.performRequest({
|
|
8776
8784
|
method: o.PATCH,
|
|
8777
8785
|
url: `${this.url}/${e.uuid}/`,
|
|
8778
|
-
payload:
|
|
8786
|
+
payload: F(e)
|
|
8779
8787
|
});
|
|
8780
8788
|
return this.dispatch(i(n)), n;
|
|
8781
8789
|
}
|
|
@@ -8836,7 +8844,7 @@ class pR extends k {
|
|
|
8836
8844
|
description: S(o.POST, this.name, !1),
|
|
8837
8845
|
method: o.POST,
|
|
8838
8846
|
url: `${this.url}/`,
|
|
8839
|
-
payload:
|
|
8847
|
+
payload: F(r),
|
|
8840
8848
|
blockers: [
|
|
8841
8849
|
r.procedure_type,
|
|
8842
8850
|
r.project,
|
|
@@ -8853,8 +8861,8 @@ class pR extends k {
|
|
|
8853
8861
|
}
|
|
8854
8862
|
bulkAdd(e, i) {
|
|
8855
8863
|
var M;
|
|
8856
|
-
const { store: n } = this.client, { addMany: a, updateMany: r, deleteMany: d } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), h = ((M = n.getState().userReducer.currentUser) == null ? void 0 : M.id) ?? null, l = [],
|
|
8857
|
-
for (const w of
|
|
8864
|
+
const { store: n } = this.client, { addMany: a, updateMany: r, deleteMany: d } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), h = ((M = n.getState().userReducer.currentUser) == null ? void 0 : M.id) ?? null, l = [], m = ct(e, Math.min(i ?? e.length, at)), A = [];
|
|
8865
|
+
for (const w of m) {
|
|
8858
8866
|
const g = [], E = [], B = [];
|
|
8859
8867
|
for (const q of w) {
|
|
8860
8868
|
const D = T({
|
|
@@ -8862,7 +8870,7 @@ class pR extends k {
|
|
|
8862
8870
|
submitted_at: c,
|
|
8863
8871
|
created_by: h
|
|
8864
8872
|
});
|
|
8865
|
-
l.push(D), g.push(
|
|
8873
|
+
l.push(D), g.push(F(D)), E.push(
|
|
8866
8874
|
D.procedure_type,
|
|
8867
8875
|
D.project,
|
|
8868
8876
|
D.asset,
|
|
@@ -8880,7 +8888,7 @@ class pR extends k {
|
|
|
8880
8888
|
A.push($);
|
|
8881
8889
|
}
|
|
8882
8890
|
this.dispatch(a(l));
|
|
8883
|
-
const
|
|
8891
|
+
const R = A.map((w) => {
|
|
8884
8892
|
const { payload: g, blocks: E, blockers: B } = w;
|
|
8885
8893
|
return this.enqueueRequest({
|
|
8886
8894
|
description: S(o.POST, this.name, !0),
|
|
@@ -8891,11 +8899,11 @@ class pR extends k {
|
|
|
8891
8899
|
blocks: E
|
|
8892
8900
|
});
|
|
8893
8901
|
});
|
|
8894
|
-
return Promise.all(
|
|
8902
|
+
return Promise.all(R).then((w) => {
|
|
8895
8903
|
this.dispatch(r(w.flat()));
|
|
8896
8904
|
}).catch(() => {
|
|
8897
8905
|
this.dispatch(d(v(l)));
|
|
8898
|
-
}), [l, Promise.all(
|
|
8906
|
+
}), [l, Promise.all(R).then((w) => w.flat())];
|
|
8899
8907
|
}
|
|
8900
8908
|
update(e) {
|
|
8901
8909
|
const { updateOne: i } = this.actions, { selectById: n } = this.selectors, a = this.select(n(e.uuid));
|
|
@@ -9000,7 +9008,7 @@ class mR extends k {
|
|
|
9000
9008
|
description: S(o.POST, this.name, !1),
|
|
9001
9009
|
method: o.POST,
|
|
9002
9010
|
url: `${this.url}/`,
|
|
9003
|
-
payload:
|
|
9011
|
+
payload: F(r),
|
|
9004
9012
|
blockers: [r.procedure, r.procedure_step],
|
|
9005
9013
|
blocks: [r.uuid]
|
|
9006
9014
|
});
|
|
@@ -9012,8 +9020,8 @@ class mR extends k {
|
|
|
9012
9020
|
}
|
|
9013
9021
|
bulkAdd(e) {
|
|
9014
9022
|
const { addMany: i, setMany: n, deleteMany: a } = this.actions, r = this.select((l) => {
|
|
9015
|
-
var
|
|
9016
|
-
return ((
|
|
9023
|
+
var m;
|
|
9024
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
9017
9025
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map(
|
|
9018
9026
|
(l) => T({
|
|
9019
9027
|
...l,
|
|
@@ -9027,7 +9035,7 @@ class mR extends k {
|
|
|
9027
9035
|
method: o.POST,
|
|
9028
9036
|
url: `${this.url}/bulk/`,
|
|
9029
9037
|
payload: {
|
|
9030
|
-
procedure_step_assignees: c.map((l) =>
|
|
9038
|
+
procedure_step_assignees: c.map((l) => F(l)),
|
|
9031
9039
|
submitted_at: d
|
|
9032
9040
|
},
|
|
9033
9041
|
blockers: c.flatMap((l) => [
|
|
@@ -9122,7 +9130,7 @@ class yR extends k {
|
|
|
9122
9130
|
description: S(o.POST, this.name, !1),
|
|
9123
9131
|
method: o.POST,
|
|
9124
9132
|
url: `${this.url}/`,
|
|
9125
|
-
payload:
|
|
9133
|
+
payload: F(r),
|
|
9126
9134
|
blockers: [r.procedure, r.procedure_step],
|
|
9127
9135
|
blocks: [r.uuid]
|
|
9128
9136
|
});
|
|
@@ -9219,7 +9227,7 @@ class fR extends k {
|
|
|
9219
9227
|
description: S(o.POST, this.name, !1),
|
|
9220
9228
|
method: o.POST,
|
|
9221
9229
|
url: `${this.url}/`,
|
|
9222
|
-
payload:
|
|
9230
|
+
payload: F(r),
|
|
9223
9231
|
blockers: [r.procedure_step],
|
|
9224
9232
|
blocks: [r.uuid]
|
|
9225
9233
|
});
|
|
@@ -9293,7 +9301,7 @@ class SR extends k {
|
|
|
9293
9301
|
description: S(o.POST, this.name, !1),
|
|
9294
9302
|
method: o.POST,
|
|
9295
9303
|
url: `${this.url}/`,
|
|
9296
|
-
payload:
|
|
9304
|
+
payload: F(r),
|
|
9297
9305
|
blockers: [r.procedure_step],
|
|
9298
9306
|
blocks: [r.uuid]
|
|
9299
9307
|
});
|
|
@@ -9475,7 +9483,7 @@ class TR extends k {
|
|
|
9475
9483
|
description: S(o.POST, this.name, !1),
|
|
9476
9484
|
method: o.POST,
|
|
9477
9485
|
url: `${this.url}/`,
|
|
9478
|
-
payload:
|
|
9486
|
+
payload: F(r),
|
|
9479
9487
|
blockers: [r.procedure_step],
|
|
9480
9488
|
blocks: [r.uuid]
|
|
9481
9489
|
});
|
|
@@ -9643,7 +9651,7 @@ class PR extends k {
|
|
|
9643
9651
|
description: S(o.POST, this.name, !1),
|
|
9644
9652
|
method: o.POST,
|
|
9645
9653
|
url: `${this.url}/`,
|
|
9646
|
-
payload:
|
|
9654
|
+
payload: F(r),
|
|
9647
9655
|
blockers: [r.field_values],
|
|
9648
9656
|
blocks: [r.uuid]
|
|
9649
9657
|
});
|
|
@@ -9728,8 +9736,8 @@ class _R extends k {
|
|
|
9728
9736
|
}
|
|
9729
9737
|
add(e) {
|
|
9730
9738
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
9731
|
-
var
|
|
9732
|
-
return ((
|
|
9739
|
+
var m;
|
|
9740
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
9733
9741
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
9734
9742
|
...e,
|
|
9735
9743
|
created_by: r,
|
|
@@ -9738,7 +9746,7 @@ class _R extends k {
|
|
|
9738
9746
|
description: S(o.POST, this.name, !1),
|
|
9739
9747
|
method: o.POST,
|
|
9740
9748
|
url: `${this.url}/`,
|
|
9741
|
-
payload:
|
|
9749
|
+
payload: F(c),
|
|
9742
9750
|
blockers: [e.procedure, e.procedure_step, e.fields_revision],
|
|
9743
9751
|
blocks: [c.uuid]
|
|
9744
9752
|
});
|
|
@@ -9749,26 +9757,26 @@ class _R extends k {
|
|
|
9749
9757
|
}), [c, h];
|
|
9750
9758
|
}
|
|
9751
9759
|
bulkAdd(e, i) {
|
|
9752
|
-
const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((
|
|
9760
|
+
const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((R) => {
|
|
9753
9761
|
var M;
|
|
9754
|
-
return ((M =
|
|
9755
|
-
}), h = [], l = ct(e, Math.min(i ?? e.length, at)),
|
|
9756
|
-
for (const
|
|
9762
|
+
return ((M = R.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
|
|
9763
|
+
}), h = [], l = ct(e, Math.min(i ?? e.length, at)), m = [];
|
|
9764
|
+
for (const R of l) {
|
|
9757
9765
|
const M = [], w = [], g = [];
|
|
9758
|
-
for (const E of
|
|
9766
|
+
for (const E of R) {
|
|
9759
9767
|
const B = T({
|
|
9760
9768
|
...E,
|
|
9761
9769
|
values: E.values,
|
|
9762
9770
|
created_by: c,
|
|
9763
9771
|
submitted_at: d
|
|
9764
9772
|
});
|
|
9765
|
-
h.push(B), M.push(
|
|
9773
|
+
h.push(B), M.push(F(B)), w.push(
|
|
9766
9774
|
B.procedure_step,
|
|
9767
9775
|
B.procedure,
|
|
9768
9776
|
B.fields_revision
|
|
9769
9777
|
), g.push(B.uuid);
|
|
9770
9778
|
}
|
|
9771
|
-
|
|
9779
|
+
m.push({
|
|
9772
9780
|
payload: {
|
|
9773
9781
|
payloads: M,
|
|
9774
9782
|
submitted_at: d
|
|
@@ -9778,8 +9786,8 @@ class _R extends k {
|
|
|
9778
9786
|
});
|
|
9779
9787
|
}
|
|
9780
9788
|
this.dispatch(n(h));
|
|
9781
|
-
const A =
|
|
9782
|
-
const { payload: M, blocks: w, blockers: g } =
|
|
9789
|
+
const A = m.map((R) => {
|
|
9790
|
+
const { payload: M, blocks: w, blockers: g } = R;
|
|
9783
9791
|
return this.enqueueRequest({
|
|
9784
9792
|
description: S(o.POST, this.name, !0),
|
|
9785
9793
|
method: o.POST,
|
|
@@ -9789,13 +9797,13 @@ class _R extends k {
|
|
|
9789
9797
|
blocks: w
|
|
9790
9798
|
});
|
|
9791
9799
|
});
|
|
9792
|
-
return Promise.all(A).then((
|
|
9793
|
-
this.dispatch(a(
|
|
9800
|
+
return Promise.all(A).then((R) => {
|
|
9801
|
+
this.dispatch(a(R.flat()));
|
|
9794
9802
|
}).catch(() => {
|
|
9795
9803
|
this.dispatch(r(v(h)));
|
|
9796
9804
|
}), [
|
|
9797
9805
|
h,
|
|
9798
|
-
Promise.all(A).then((
|
|
9806
|
+
Promise.all(A).then((R) => R.flat())
|
|
9799
9807
|
];
|
|
9800
9808
|
}
|
|
9801
9809
|
update(e) {
|
|
@@ -9891,7 +9899,7 @@ class bR extends k {
|
|
|
9891
9899
|
description: S(o.POST, this.name, !1),
|
|
9892
9900
|
method: o.POST,
|
|
9893
9901
|
url: `${this.url}/`,
|
|
9894
|
-
payload:
|
|
9902
|
+
payload: F(r),
|
|
9895
9903
|
blockers: [r.procedure, r.procedure_step],
|
|
9896
9904
|
blocks: [r.uuid]
|
|
9897
9905
|
});
|
|
@@ -9903,8 +9911,8 @@ class bR extends k {
|
|
|
9903
9911
|
}
|
|
9904
9912
|
bulkAdd(e) {
|
|
9905
9913
|
const { addMany: i, setMany: n, deleteMany: a } = this.actions, r = this.select((l) => {
|
|
9906
|
-
var
|
|
9907
|
-
return ((
|
|
9914
|
+
var m;
|
|
9915
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
9908
9916
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = e.map(
|
|
9909
9917
|
(l) => T({
|
|
9910
9918
|
...l,
|
|
@@ -9918,7 +9926,7 @@ class bR extends k {
|
|
|
9918
9926
|
method: o.POST,
|
|
9919
9927
|
url: `${this.url}/bulk/`,
|
|
9920
9928
|
payload: {
|
|
9921
|
-
procedure_step_reviewers: c.map((l) =>
|
|
9929
|
+
procedure_step_reviewers: c.map((l) => F(l)),
|
|
9922
9930
|
submitted_at: d
|
|
9923
9931
|
},
|
|
9924
9932
|
blockers: c.flatMap((l) => [l.procedure, l.procedure_step]),
|
|
@@ -10008,7 +10016,7 @@ class MR extends k {
|
|
|
10008
10016
|
description: S(o.POST, this.name, !1),
|
|
10009
10017
|
method: o.POST,
|
|
10010
10018
|
url: `${this.url}/`,
|
|
10011
|
-
payload:
|
|
10019
|
+
payload: F(d),
|
|
10012
10020
|
blockers: [d.procedure_type, d.project],
|
|
10013
10021
|
blocks: [d.uuid]
|
|
10014
10022
|
});
|
|
@@ -10106,7 +10114,7 @@ class gR extends k {
|
|
|
10106
10114
|
description: S(o.POST, this.name, !1),
|
|
10107
10115
|
method: o.POST,
|
|
10108
10116
|
url: `${this.url}/`,
|
|
10109
|
-
payload:
|
|
10117
|
+
payload: F(r),
|
|
10110
10118
|
blockers: [r.procedure_type],
|
|
10111
10119
|
blocks: [r.uuid]
|
|
10112
10120
|
});
|
|
@@ -10197,9 +10205,9 @@ class wR extends V {
|
|
|
10197
10205
|
return [e.uuid];
|
|
10198
10206
|
}
|
|
10199
10207
|
buildModel(e) {
|
|
10200
|
-
const { procedure_type: i, file_sha1: n, file_extension: a, file_name: r, file_type: d, file_url: c } = e, h = this.select((
|
|
10208
|
+
const { procedure_type: i, file_sha1: n, file_extension: a, file_name: r, file_type: d, file_url: c } = e, h = this.select((m) => {
|
|
10201
10209
|
var A;
|
|
10202
|
-
return ((A =
|
|
10210
|
+
return ((A = m.userReducer.currentUser) == null ? void 0 : A.id) ?? null;
|
|
10203
10211
|
}), l = (/* @__PURE__ */ new Date()).toISOString();
|
|
10204
10212
|
return T({
|
|
10205
10213
|
file_url: c,
|
|
@@ -10342,8 +10350,8 @@ class FR extends k {
|
|
|
10342
10350
|
}
|
|
10343
10351
|
add(e) {
|
|
10344
10352
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
10345
|
-
var
|
|
10346
|
-
return ((
|
|
10353
|
+
var m;
|
|
10354
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
10347
10355
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
10348
10356
|
...e,
|
|
10349
10357
|
created_by: r,
|
|
@@ -10354,7 +10362,7 @@ class FR extends k {
|
|
|
10354
10362
|
description: S(o.POST, this.name, !1),
|
|
10355
10363
|
method: o.POST,
|
|
10356
10364
|
url: `${this.url}/`,
|
|
10357
|
-
payload:
|
|
10365
|
+
payload: F(c),
|
|
10358
10366
|
blockers: [c.procedure_type],
|
|
10359
10367
|
blocks: [c.uuid]
|
|
10360
10368
|
});
|
|
@@ -10492,8 +10500,8 @@ class vR extends k {
|
|
|
10492
10500
|
}
|
|
10493
10501
|
add(e) {
|
|
10494
10502
|
const { addOne: i, setOne: n, deleteOne: a } = this.actions, r = this.select((l) => {
|
|
10495
|
-
var
|
|
10496
|
-
return ((
|
|
10503
|
+
var m;
|
|
10504
|
+
return ((m = l.userReducer.currentUser) == null ? void 0 : m.id) ?? null;
|
|
10497
10505
|
}), d = (/* @__PURE__ */ new Date()).toISOString(), c = T({
|
|
10498
10506
|
...e,
|
|
10499
10507
|
created_by: r,
|
|
@@ -10502,7 +10510,7 @@ class vR extends k {
|
|
|
10502
10510
|
description: S(o.POST, this.name, !1),
|
|
10503
10511
|
method: o.POST,
|
|
10504
10512
|
url: `${this.url}/`,
|
|
10505
|
-
payload:
|
|
10513
|
+
payload: F(c),
|
|
10506
10514
|
blockers: [e.fields_revision, e.procedure],
|
|
10507
10515
|
blocks: [c.uuid]
|
|
10508
10516
|
});
|
|
@@ -10513,22 +10521,22 @@ class vR extends k {
|
|
|
10513
10521
|
}), [c, h];
|
|
10514
10522
|
}
|
|
10515
10523
|
bulkAdd(e, i) {
|
|
10516
|
-
const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((
|
|
10524
|
+
const { addMany: n, updateMany: a, deleteMany: r } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), c = this.select((R) => {
|
|
10517
10525
|
var M;
|
|
10518
|
-
return ((M =
|
|
10519
|
-
}), h = [], l = ct(e, Math.min(i ?? e.length, at)),
|
|
10520
|
-
for (const
|
|
10526
|
+
return ((M = R.userReducer.currentUser) == null ? void 0 : M.id) ?? null;
|
|
10527
|
+
}), h = [], l = ct(e, Math.min(i ?? e.length, at)), m = [];
|
|
10528
|
+
for (const R of l) {
|
|
10521
10529
|
const M = [], w = [], g = [];
|
|
10522
|
-
for (const E of
|
|
10530
|
+
for (const E of R) {
|
|
10523
10531
|
const B = T({
|
|
10524
10532
|
...E,
|
|
10525
10533
|
values: E.values,
|
|
10526
10534
|
created_by: c,
|
|
10527
10535
|
submitted_at: d
|
|
10528
10536
|
});
|
|
10529
|
-
h.push(B), M.push(
|
|
10537
|
+
h.push(B), M.push(F(B)), w.push(B.procedure, B.fields_revision), g.push(B.uuid);
|
|
10530
10538
|
}
|
|
10531
|
-
|
|
10539
|
+
m.push({
|
|
10532
10540
|
payload: {
|
|
10533
10541
|
payloads: M,
|
|
10534
10542
|
submitted_at: d
|
|
@@ -10538,8 +10546,8 @@ class vR extends k {
|
|
|
10538
10546
|
});
|
|
10539
10547
|
}
|
|
10540
10548
|
this.dispatch(n(h));
|
|
10541
|
-
const A =
|
|
10542
|
-
const { payload: M, blocks: w, blockers: g } =
|
|
10549
|
+
const A = m.map((R) => {
|
|
10550
|
+
const { payload: M, blocks: w, blockers: g } = R;
|
|
10543
10551
|
return this.enqueueRequest({
|
|
10544
10552
|
description: S(o.POST, this.name, !0),
|
|
10545
10553
|
method: o.POST,
|
|
@@ -10549,13 +10557,13 @@ class vR extends k {
|
|
|
10549
10557
|
blocks: w
|
|
10550
10558
|
});
|
|
10551
10559
|
});
|
|
10552
|
-
return Promise.all(A).then((
|
|
10553
|
-
this.dispatch(a(
|
|
10560
|
+
return Promise.all(A).then((R) => {
|
|
10561
|
+
this.dispatch(a(R.flat()));
|
|
10554
10562
|
}).catch(() => {
|
|
10555
10563
|
this.dispatch(r(v(h)));
|
|
10556
10564
|
}), [
|
|
10557
10565
|
h,
|
|
10558
|
-
Promise.all(A).then((
|
|
10566
|
+
Promise.all(A).then((R) => R.flat())
|
|
10559
10567
|
];
|
|
10560
10568
|
}
|
|
10561
10569
|
update(e) {
|
|
@@ -10647,7 +10655,7 @@ class kR extends k {
|
|
|
10647
10655
|
description: S(o.POST, this.name, !1),
|
|
10648
10656
|
method: o.POST,
|
|
10649
10657
|
url: `${this.url}/`,
|
|
10650
|
-
payload:
|
|
10658
|
+
payload: F(r),
|
|
10651
10659
|
blockers: [],
|
|
10652
10660
|
blocks: [r.uuid]
|
|
10653
10661
|
});
|
|
@@ -10744,7 +10752,7 @@ class BR extends k {
|
|
|
10744
10752
|
description: S(o.POST, this.name, !1),
|
|
10745
10753
|
method: o.POST,
|
|
10746
10754
|
url: `${this.url}/`,
|
|
10747
|
-
payload:
|
|
10755
|
+
payload: F(r),
|
|
10748
10756
|
blockers: [e.team],
|
|
10749
10757
|
blocks: [r.uuid]
|
|
10750
10758
|
});
|
|
@@ -10764,7 +10772,7 @@ class BR extends k {
|
|
|
10764
10772
|
description: S(o.POST, this.name, !0),
|
|
10765
10773
|
method: o.POST,
|
|
10766
10774
|
url: `${this.url}/bulk/`,
|
|
10767
|
-
payload: { team_memberships: d.map((h) =>
|
|
10775
|
+
payload: { team_memberships: d.map((h) => F(h)) },
|
|
10768
10776
|
blockers: d.map((h) => h.team),
|
|
10769
10777
|
blocks: d.map((h) => h.uuid)
|
|
10770
10778
|
});
|
|
@@ -10838,7 +10846,7 @@ class zR extends k {
|
|
|
10838
10846
|
description: S(o.POST, this.name, !1),
|
|
10839
10847
|
method: o.POST,
|
|
10840
10848
|
url: `${this.url}/`,
|
|
10841
|
-
payload:
|
|
10849
|
+
payload: F(r),
|
|
10842
10850
|
blockers: [],
|
|
10843
10851
|
blocks: [r.uuid]
|
|
10844
10852
|
});
|
|
@@ -10861,7 +10869,7 @@ class zR extends k {
|
|
|
10861
10869
|
description: S(o.PATCH, this.name, !1),
|
|
10862
10870
|
method: o.PATCH,
|
|
10863
10871
|
url: `${this.url}/${e.uuid}/`,
|
|
10864
|
-
payload:
|
|
10872
|
+
payload: F(e),
|
|
10865
10873
|
blockers: [e.uuid],
|
|
10866
10874
|
blocks: [e.uuid]
|
|
10867
10875
|
});
|
|
@@ -10953,9 +10961,9 @@ async function Ua(t, s, e, i, n) {
|
|
|
10953
10961
|
payload: c,
|
|
10954
10962
|
headers: h,
|
|
10955
10963
|
method: l,
|
|
10956
|
-
queryParams:
|
|
10964
|
+
queryParams: m,
|
|
10957
10965
|
attachmentHash: A,
|
|
10958
|
-
isExternalUrl:
|
|
10966
|
+
isExternalUrl: R,
|
|
10959
10967
|
isAuthNeeded: M,
|
|
10960
10968
|
isResponseBlob: w
|
|
10961
10969
|
} = {
|
|
@@ -10966,7 +10974,7 @@ async function Ua(t, s, e, i, n) {
|
|
|
10966
10974
|
const E = A ? await e.files.fetchCache(A) : void 0;
|
|
10967
10975
|
if (A && !E)
|
|
10968
10976
|
throw new Error(`Cannot upload file ${A} because it's not cached.`);
|
|
10969
|
-
!
|
|
10977
|
+
!R && !g.startsWith("http") && (!g.startsWith("/") && !g.startsWith("blob:") && (g = "/" + g), g = t + g);
|
|
10970
10978
|
const B = (j) => {
|
|
10971
10979
|
if (A) {
|
|
10972
10980
|
if (!d) throw new Error(`No S3 URL for file ${A}`);
|
|
@@ -11006,11 +11014,11 @@ async function Ua(t, s, e, i, n) {
|
|
|
11006
11014
|
}
|
|
11007
11015
|
h && (D = D.set(h));
|
|
11008
11016
|
try {
|
|
11009
|
-
return await D.query(
|
|
11017
|
+
return await D.query(m);
|
|
11010
11018
|
} catch (j) {
|
|
11011
11019
|
const U = Ob(j), Et = U == null ? void 0 : U.status;
|
|
11012
11020
|
if (a && Et === 401)
|
|
11013
|
-
return await i.auth.handleUnauthorized(D, U), D.query(
|
|
11021
|
+
return await i.auth.handleUnauthorized(D, U), D.query(m);
|
|
11014
11022
|
throw new C({
|
|
11015
11023
|
response: U,
|
|
11016
11024
|
innerError: j,
|
|
@@ -11611,7 +11619,7 @@ export {
|
|
|
11611
11619
|
kM as clearTokens,
|
|
11612
11620
|
P as createModelAdapter,
|
|
11613
11621
|
FS as createOfflineAction,
|
|
11614
|
-
|
|
11622
|
+
F as createPayload,
|
|
11615
11623
|
Yb as createSelectionAdapter,
|
|
11616
11624
|
ad as deleteAsset,
|
|
11617
11625
|
jc as deleteAssetAttachment,
|
|
@@ -11974,7 +11982,7 @@ export {
|
|
|
11974
11982
|
Wr as projectSlice,
|
|
11975
11983
|
k_ as rehydratedReducer,
|
|
11976
11984
|
za as rehydratedSlice,
|
|
11977
|
-
|
|
11985
|
+
y as restructureSelectorWithArgs,
|
|
11978
11986
|
Eb as runMiddleware,
|
|
11979
11987
|
BM as selectAccessToken,
|
|
11980
11988
|
Ig as selectAccessesByUserOfProject,
|