@overmap-ai/core 1.0.74-integration-improvements.0 → 1.0.74-integration-improvements.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/overmap-core.js
CHANGED
|
@@ -74,37 +74,37 @@ function _(t) {
|
|
|
74
74
|
}
|
|
75
75
|
function Jh() {
|
|
76
76
|
return {
|
|
77
|
-
initializeSelection: (l,
|
|
78
|
-
l.selection = Array.from(new Set(
|
|
77
|
+
initializeSelection: (l, r) => {
|
|
78
|
+
l.selection = Array.from(new Set(r.payload));
|
|
79
79
|
},
|
|
80
|
-
selectOne: (l,
|
|
81
|
-
new Set(l.selection).has(
|
|
80
|
+
selectOne: (l, r) => {
|
|
81
|
+
new Set(l.selection).has(r.payload) || l.selection.push(r.payload);
|
|
82
82
|
},
|
|
83
|
-
selectMany: (l,
|
|
84
|
-
const
|
|
85
|
-
for (const h of
|
|
86
|
-
|
|
87
|
-
l.selection = Array.from(
|
|
83
|
+
selectMany: (l, r) => {
|
|
84
|
+
const o = new Set(l.selection);
|
|
85
|
+
for (const h of r.payload)
|
|
86
|
+
o.has(h) || o.add(h);
|
|
87
|
+
l.selection = Array.from(o);
|
|
88
88
|
},
|
|
89
|
-
unselectOne: (l,
|
|
90
|
-
const
|
|
91
|
-
|
|
89
|
+
unselectOne: (l, r) => {
|
|
90
|
+
const o = new Set(l.selection);
|
|
91
|
+
o.has(r.payload) && (o.delete(r.payload), l.selection = Array.from(o));
|
|
92
92
|
},
|
|
93
|
-
unselectMany: (l,
|
|
94
|
-
const
|
|
95
|
-
for (const h of
|
|
96
|
-
|
|
97
|
-
l.selection = Array.from(
|
|
93
|
+
unselectMany: (l, r) => {
|
|
94
|
+
const o = new Set(l.selection);
|
|
95
|
+
for (const h of r.payload)
|
|
96
|
+
o.has(h) && o.delete(h);
|
|
97
|
+
l.selection = Array.from(o);
|
|
98
98
|
},
|
|
99
|
-
toggleOne: (l,
|
|
100
|
-
const
|
|
101
|
-
|
|
99
|
+
toggleOne: (l, r) => {
|
|
100
|
+
const o = new Set(l.selection);
|
|
101
|
+
o.has(r.payload) ? o.delete(r.payload) : o.add(r.payload), l.selection = Array.from(o);
|
|
102
102
|
},
|
|
103
|
-
toggleMany: (l,
|
|
104
|
-
const
|
|
105
|
-
for (const h of
|
|
106
|
-
|
|
107
|
-
l.selection = Array.from(
|
|
103
|
+
toggleMany: (l, r) => {
|
|
104
|
+
const o = new Set(l.selection);
|
|
105
|
+
for (const h of r.payload)
|
|
106
|
+
o.has(h) ? o.delete(h) : o.add(h);
|
|
107
|
+
l.selection = Array.from(o);
|
|
108
108
|
},
|
|
109
109
|
getInitialState: (l) => ({
|
|
110
110
|
...l,
|
|
@@ -186,9 +186,9 @@ const b = (t) => t.length === 0 ? Qa : t, ze = (t) => Object.keys(t).length ===
|
|
|
186
186
|
if (!t) return "";
|
|
187
187
|
const e = new Date(t), s = e.getFullYear() === St.getFullYear(), i = { day: "numeric", month: "short" };
|
|
188
188
|
return s || (i.year = "numeric"), e.toLocaleDateString([], i);
|
|
189
|
-
}),
|
|
190
|
-
const i = Math.round((new Date(t).getTime() - St.getTime()) /
|
|
191
|
-
return i < e || i > s ? cc(t) :
|
|
189
|
+
}), rc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), oc = 1e3 * 86400, St = /* @__PURE__ */ new Date(), sm = (t) => new Date(t).toDateString() === St.toDateString(), im = Gi((t, e, s) => {
|
|
190
|
+
const i = Math.round((new Date(t).getTime() - St.getTime()) / oc);
|
|
191
|
+
return i < e || i > s ? cc(t) : rc.format(i, "days");
|
|
192
192
|
});
|
|
193
193
|
function dc(t) {
|
|
194
194
|
return new Uint8Array(t).reduce((s, i) => s + i.toString(16).padStart(2, "0"), "");
|
|
@@ -242,14 +242,14 @@ const cm = async (t) => {
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
return Object.values(e);
|
|
245
|
-
}, lc = async (t) => (await fetch(t)).blob(),
|
|
245
|
+
}, lc = async (t) => (await fetch(t)).blob(), rm = (t) => new Promise((e, s) => {
|
|
246
246
|
const i = new FileReader();
|
|
247
247
|
i.onloadend = () => {
|
|
248
248
|
var n;
|
|
249
249
|
e(((n = i.result) == null ? void 0 : n.toString()) || "");
|
|
250
250
|
}, i.readAsDataURL(t);
|
|
251
251
|
});
|
|
252
|
-
function
|
|
252
|
+
function om(t) {
|
|
253
253
|
const e = new Blob([t]);
|
|
254
254
|
La(e, t.name);
|
|
255
255
|
}
|
|
@@ -299,7 +299,7 @@ function pm(t, e, s) {
|
|
|
299
299
|
return s.findIndex((i) => i.file_sha1 === t.file_sha1) === e;
|
|
300
300
|
}
|
|
301
301
|
const fm = /^.+@.+\..+$/;
|
|
302
|
-
function
|
|
302
|
+
function P(t) {
|
|
303
303
|
const e = { ...t };
|
|
304
304
|
for (const s of [...hc, "created_by"])
|
|
305
305
|
s in e && delete e[s];
|
|
@@ -356,7 +356,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
356
356
|
[Oc, (t, e) => e],
|
|
357
357
|
(t, e) => b(t.filter(({ asset: s }) => e === s))
|
|
358
358
|
)
|
|
359
|
-
),
|
|
359
|
+
), Pc = Ni.reducer, D = _(
|
|
360
360
|
(t) => t.uuid
|
|
361
361
|
), zt = D.getInitialState({}), Ki = T({
|
|
362
362
|
name: "assetProcedureFieldsAttachments",
|
|
@@ -374,7 +374,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
374
374
|
deleteAssetProcedureFieldsAttachments: D.deleteMany
|
|
375
375
|
}
|
|
376
376
|
}), {
|
|
377
|
-
initializeAssetProcedureFieldsAttachments:
|
|
377
|
+
initializeAssetProcedureFieldsAttachments: vc,
|
|
378
378
|
addAssetProcedureFieldsAttachment: Tm,
|
|
379
379
|
addAssetProcedureFieldsAttachments: wc,
|
|
380
380
|
setAssetProcedureFieldsAttachment: Rm,
|
|
@@ -388,7 +388,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
388
388
|
(t) => Object.values(t)
|
|
389
389
|
), Fm = A(
|
|
390
390
|
p([jc, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
|
|
391
|
-
),
|
|
391
|
+
), Pm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Mc = Ki.reducer, x = _((t) => t.uuid), Ut = x.getInitialState({}), Yi = T({
|
|
392
392
|
name: "assetProcedureFields",
|
|
393
393
|
initialState: Ut,
|
|
394
394
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ut)),
|
|
@@ -406,7 +406,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
406
406
|
}), {
|
|
407
407
|
initializeAssetProcedureFields: Cc,
|
|
408
408
|
addAssetProcedureFields: Dc,
|
|
409
|
-
addAssetProcedureFieldsMany:
|
|
409
|
+
addAssetProcedureFieldsMany: vm,
|
|
410
410
|
setAssetProcedureFields: wm,
|
|
411
411
|
setAssetProcedureFieldsMany: Em,
|
|
412
412
|
updateAssetProcedureFields: xc,
|
|
@@ -520,17 +520,17 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
520
520
|
}), {
|
|
521
521
|
initializeAssetProcedureInstances: Zc,
|
|
522
522
|
addAssetProcedureInstance: Ht,
|
|
523
|
-
addAssetProcedureInstances:
|
|
523
|
+
addAssetProcedureInstances: er,
|
|
524
524
|
updateAssetProcedureInstance: Le,
|
|
525
525
|
updateAssetProcedureInstances: Hm,
|
|
526
526
|
deleteAssetProcedureInstance: Wt,
|
|
527
|
-
deleteAssetProcedureInstances:
|
|
527
|
+
deleteAssetProcedureInstances: tr,
|
|
528
528
|
setAssetProcedureInstance: Wm,
|
|
529
529
|
setAssetProcedureInstances: Km
|
|
530
530
|
} = tn.actions, sn = (t) => t.assetProcedureInstanceReducer.instances, nn = p(
|
|
531
531
|
[sn],
|
|
532
532
|
(t) => Object.values(t)
|
|
533
|
-
),
|
|
533
|
+
), sr = A(
|
|
534
534
|
p(
|
|
535
535
|
[nn, (t, e) => e],
|
|
536
536
|
(t, e) => b(
|
|
@@ -560,7 +560,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
560
560
|
return b(s);
|
|
561
561
|
}
|
|
562
562
|
)
|
|
563
|
-
),
|
|
563
|
+
), ir = tn.reducer, V = _((t) => t.uuid), Yt = V.getInitialState({}), an = T({
|
|
564
564
|
name: "assetProcedures",
|
|
565
565
|
initialState: Yt,
|
|
566
566
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Yt)),
|
|
@@ -576,7 +576,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
576
576
|
deleteAssetProcedures: V.deleteMany
|
|
577
577
|
}
|
|
578
578
|
}), {
|
|
579
|
-
initializeAssetProcedures:
|
|
579
|
+
initializeAssetProcedures: nr,
|
|
580
580
|
addAssetProcedure: Jt,
|
|
581
581
|
addAssetProcedures: Qm,
|
|
582
582
|
updateAssetProcedure: Be,
|
|
@@ -585,9 +585,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
585
585
|
deleteAssetProcedures: Zm,
|
|
586
586
|
setAssetProcedure: ep,
|
|
587
587
|
setAssetProcedures: tp
|
|
588
|
-
} = an.actions, cn = (t) => t.assetProcedureReducer.instances,
|
|
588
|
+
} = an.actions, cn = (t) => t.assetProcedureReducer.instances, ar = p([cn], (t) => Object.values(t)), sp = A(
|
|
589
589
|
p(
|
|
590
|
-
[
|
|
590
|
+
[ar, (t, e) => e],
|
|
591
591
|
(t, e) => b(
|
|
592
592
|
t.filter((s) => s.organization === e)
|
|
593
593
|
)
|
|
@@ -604,7 +604,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
604
604
|
return b(s);
|
|
605
605
|
}
|
|
606
606
|
)
|
|
607
|
-
),
|
|
607
|
+
), cr = an.reducer, G = _((t) => t.uuid), Zt = G.getInitialState({}), rn = T({
|
|
608
608
|
name: "assets",
|
|
609
609
|
initialState: Zt,
|
|
610
610
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Zt)),
|
|
@@ -620,18 +620,18 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
620
620
|
deleteAssets: G.deleteMany
|
|
621
621
|
}
|
|
622
622
|
}), {
|
|
623
|
-
initializeAssets:
|
|
623
|
+
initializeAssets: rr,
|
|
624
624
|
addAsset: es,
|
|
625
|
-
addAssets:
|
|
625
|
+
addAssets: on,
|
|
626
626
|
updateAsset: Ne,
|
|
627
627
|
updateAssets: np,
|
|
628
628
|
deleteAsset: ts,
|
|
629
|
-
deleteAssets:
|
|
629
|
+
deleteAssets: or,
|
|
630
630
|
setAsset: ap,
|
|
631
631
|
setAssets: cp
|
|
632
|
-
} =
|
|
633
|
-
p([
|
|
634
|
-
), ss = (t) => (e) => e.assetReducer.instances[t],
|
|
632
|
+
} = rn.actions, dn = (t) => t.assetReducer.instances, dr = p([dn], (t) => b(Object.values(t))), un = A(
|
|
633
|
+
p([dr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
|
|
634
|
+
), ss = (t) => (e) => e.assetReducer.instances[t], rp = A(
|
|
635
635
|
p([dn, (t, e) => e], (t, e) => {
|
|
636
636
|
const s = [];
|
|
637
637
|
for (const i of e) {
|
|
@@ -640,7 +640,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
640
640
|
}
|
|
641
641
|
return b(s);
|
|
642
642
|
})
|
|
643
|
-
),
|
|
643
|
+
), op = (t) => (e) => un(t)(e).length, ur = rn.reducer, me = _(
|
|
644
644
|
(t) => t.uuid
|
|
645
645
|
), is = me.getInitialState({}), ln = T({
|
|
646
646
|
name: "assetStageCompletions",
|
|
@@ -656,17 +656,17 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
656
656
|
deleteAssetStageCompletions: me.deleteMany
|
|
657
657
|
}
|
|
658
658
|
}), {
|
|
659
|
-
initializeAssetStageCompletions:
|
|
659
|
+
initializeAssetStageCompletions: lr,
|
|
660
660
|
addAssetStageCompletion: ns,
|
|
661
661
|
addAssetStageCompletions: as,
|
|
662
|
-
updateAssetStageCompletion:
|
|
663
|
-
updateAssetStageCompletions:
|
|
662
|
+
updateAssetStageCompletion: hr,
|
|
663
|
+
updateAssetStageCompletions: mr,
|
|
664
664
|
deleteAssetStageCompletion: cs,
|
|
665
|
-
deleteAssetStageCompletions:
|
|
666
|
-
} = ln.actions,
|
|
665
|
+
deleteAssetStageCompletions: rs
|
|
666
|
+
} = ln.actions, pr = ln.reducer, hn = (t) => t.assetStageCompletionReducer.instances, dp = p(
|
|
667
667
|
[hn],
|
|
668
668
|
(t) => Object.values(t)
|
|
669
|
-
),
|
|
669
|
+
), fr = (t) => (e) => e.assetStageCompletionReducer.instances[t], yr = A(
|
|
670
670
|
p(
|
|
671
671
|
[hn, (t, e) => e],
|
|
672
672
|
(t, e) => {
|
|
@@ -678,10 +678,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
678
678
|
);
|
|
679
679
|
}
|
|
680
680
|
)
|
|
681
|
-
), L = _((t) => t.uuid),
|
|
681
|
+
), L = _((t) => t.uuid), os = L.getInitialState({}), mn = T({
|
|
682
682
|
name: "assetStages",
|
|
683
|
-
initialState:
|
|
684
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
683
|
+
initialState: os,
|
|
684
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, os)),
|
|
685
685
|
reducers: {
|
|
686
686
|
initializeAssetStages: L.initialize,
|
|
687
687
|
setAssetStage: L.setOne,
|
|
@@ -694,8 +694,8 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
694
694
|
deleteAssetStages: L.deleteMany
|
|
695
695
|
}
|
|
696
696
|
}), {
|
|
697
|
-
initializeAssetStages:
|
|
698
|
-
setAssetStage:
|
|
697
|
+
initializeAssetStages: Ar,
|
|
698
|
+
setAssetStage: br,
|
|
699
699
|
setAssetStages: up,
|
|
700
700
|
addAssetStage: lp,
|
|
701
701
|
addAssetStages: ds,
|
|
@@ -703,7 +703,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
703
703
|
updateAssetStages: nt,
|
|
704
704
|
deleteAssetStage: hp,
|
|
705
705
|
deleteAssetStages: ls
|
|
706
|
-
} = mn.actions,
|
|
706
|
+
} = mn.actions, gr = mn.reducer, Tt = (t) => t.assetStageReducer.instances, Sr = (t) => (e) => e.assetStageReducer.instances[t], Tr = p([Tt], (t) => Object.values(t)), mp = A(
|
|
707
707
|
p([Tt, (t, e) => e], (t, e) => {
|
|
708
708
|
const s = {};
|
|
709
709
|
for (const [i, n] of Object.entries(t))
|
|
@@ -711,7 +711,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
711
711
|
return ze(s);
|
|
712
712
|
})
|
|
713
713
|
), pp = A(
|
|
714
|
-
p([
|
|
714
|
+
p([Tr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
|
|
715
715
|
), hs = A(
|
|
716
716
|
p([Tt, (t, e) => e], (t, e) => {
|
|
717
717
|
const s = [];
|
|
@@ -737,24 +737,24 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
737
737
|
deleteAssetTypeAttachments: B.deleteMany
|
|
738
738
|
}
|
|
739
739
|
}), {
|
|
740
|
-
initializeAssetTypeAttachments:
|
|
740
|
+
initializeAssetTypeAttachments: Rr,
|
|
741
741
|
addAssetTypeAttachment: fp,
|
|
742
742
|
addAssetTypeAttachments: fn,
|
|
743
|
-
setAssetTypeAttachment:
|
|
743
|
+
setAssetTypeAttachment: _r,
|
|
744
744
|
setAssetTypeAttachments: yp,
|
|
745
745
|
updateAssetTypeAttachment: Ap,
|
|
746
|
-
updateAssetTypeAttachments:
|
|
747
|
-
deleteAssetTypeAttachment:
|
|
746
|
+
updateAssetTypeAttachments: Or,
|
|
747
|
+
deleteAssetTypeAttachment: Ir,
|
|
748
748
|
deleteAssetTypeAttachments: yn
|
|
749
|
-
} = pn.actions,
|
|
750
|
-
[
|
|
749
|
+
} = pn.actions, Fr = (t) => t.assetTypeAttachmentReducer.instances, Pr = p(
|
|
750
|
+
[Fr],
|
|
751
751
|
(t) => Object.values(t)
|
|
752
|
-
),
|
|
752
|
+
), vr = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], wr = A(
|
|
753
753
|
p(
|
|
754
|
-
[
|
|
754
|
+
[Pr, (t, e) => e],
|
|
755
755
|
(t, e) => b(t.filter(({ asset_type: s }) => e === s))
|
|
756
756
|
)
|
|
757
|
-
),
|
|
757
|
+
), Er = pn.reducer, N = _(
|
|
758
758
|
(t) => t.uuid
|
|
759
759
|
), ps = N.getInitialState({}), An = T({
|
|
760
760
|
name: "assetTypeFieldsAttachments",
|
|
@@ -772,21 +772,21 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
772
772
|
deleteAssetTypeFieldsAttachments: N.deleteMany
|
|
773
773
|
}
|
|
774
774
|
}), {
|
|
775
|
-
initializeAssetTypeFieldsAttachments:
|
|
775
|
+
initializeAssetTypeFieldsAttachments: kr,
|
|
776
776
|
addAssetTypeFieldsAttachment: bp,
|
|
777
|
-
addAssetTypeFieldsAttachments:
|
|
777
|
+
addAssetTypeFieldsAttachments: qr,
|
|
778
778
|
setAssetTypeFieldsAttachment: gp,
|
|
779
779
|
setAssetTypeFieldsAttachments: Sp,
|
|
780
780
|
updateAssetTypeFieldsAttachment: Tp,
|
|
781
|
-
updateAssetTypeFieldsAttachments:
|
|
781
|
+
updateAssetTypeFieldsAttachments: jr,
|
|
782
782
|
deleteAssetTypeFieldsAttachment: Rp,
|
|
783
|
-
deleteAssetTypeFieldsAttachments:
|
|
784
|
-
} = An.actions,
|
|
785
|
-
[
|
|
783
|
+
deleteAssetTypeFieldsAttachments: Mr
|
|
784
|
+
} = An.actions, Cr = (t) => t.assetTypeFieldsAttachmentReducer.instances, Dr = p(
|
|
785
|
+
[Cr],
|
|
786
786
|
(t) => Object.values(t)
|
|
787
787
|
), _p = A(
|
|
788
|
-
p([
|
|
789
|
-
), Op = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t],
|
|
788
|
+
p([Dr, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
|
|
789
|
+
), Op = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], xr = An.reducer, H = _((t) => t.uuid), fs = H.getInitialState({}), bn = T({
|
|
790
790
|
name: "assetTypeFields",
|
|
791
791
|
initialState: fs,
|
|
792
792
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fs)),
|
|
@@ -802,20 +802,20 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
802
802
|
deleteAssetTypeFieldsMany: H.deleteMany
|
|
803
803
|
}
|
|
804
804
|
}), {
|
|
805
|
-
initializeAssetTypeFields:
|
|
806
|
-
addAssetTypeFields:
|
|
805
|
+
initializeAssetTypeFields: zr,
|
|
806
|
+
addAssetTypeFields: Ur,
|
|
807
807
|
addAssetTypeFieldsMany: Ip,
|
|
808
808
|
setAssetTypeFields: Fp,
|
|
809
|
-
setAssetTypeFieldsMany:
|
|
810
|
-
updateAssetTypeFields:
|
|
811
|
-
updateAssetTypeFieldsMany:
|
|
812
|
-
deleteAssetTypeFields:
|
|
809
|
+
setAssetTypeFieldsMany: Pp,
|
|
810
|
+
updateAssetTypeFields: $r,
|
|
811
|
+
updateAssetTypeFieldsMany: vp,
|
|
812
|
+
deleteAssetTypeFields: Vr,
|
|
813
813
|
deleteAssetTypeFieldsMany: wp
|
|
814
|
-
} = bn.actions,
|
|
814
|
+
} = bn.actions, Gr = (t) => t.assetTypeFieldsReducer.instances, Rt = p([Gr], (t) => Object.values(t)), Ep = A(
|
|
815
815
|
p([Rt, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
|
|
816
816
|
), kp = A(
|
|
817
817
|
p([Rt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
818
|
-
), qp = (t) => (e) => e.assetTypeFieldsReducer.instances[t],
|
|
818
|
+
), qp = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Lr = bn.reducer, W = _(
|
|
819
819
|
(t) => t.uuid
|
|
820
820
|
), ys = W.getInitialState({}), gn = T({
|
|
821
821
|
name: "assetTypeFieldValuesAttachments",
|
|
@@ -833,19 +833,19 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
833
833
|
deleteAssetTypeFieldValuesAttachments: W.deleteMany
|
|
834
834
|
}
|
|
835
835
|
}), {
|
|
836
|
-
initializeAssetTypeFieldValuesAttachments:
|
|
836
|
+
initializeAssetTypeFieldValuesAttachments: Br,
|
|
837
837
|
addAssetTypeFieldValuesAttachment: jp,
|
|
838
838
|
addAssetTypeFieldValuesAttachments: pt,
|
|
839
839
|
setAssetTypeFieldValuesAttachment: Mp,
|
|
840
840
|
setAssetTypeFieldValuesAttachments: Cp,
|
|
841
841
|
updateAssetTypeFieldValuesAttachment: Dp,
|
|
842
|
-
updateAssetTypeFieldValuesAttachments:
|
|
842
|
+
updateAssetTypeFieldValuesAttachments: Nr,
|
|
843
843
|
deleteAssetTypeFieldValuesAttachment: xp,
|
|
844
844
|
deleteAssetTypeFieldValuesAttachments: ft
|
|
845
|
-
} = gn.actions, Sn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances,
|
|
845
|
+
} = gn.actions, Sn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, Hr = p(
|
|
846
846
|
[Sn],
|
|
847
847
|
(t) => Object.values(t)
|
|
848
|
-
), zp = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t],
|
|
848
|
+
), zp = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], Wr = A(
|
|
849
849
|
p(
|
|
850
850
|
[
|
|
851
851
|
Sn,
|
|
@@ -858,9 +858,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
858
858
|
);
|
|
859
859
|
}
|
|
860
860
|
)
|
|
861
|
-
),
|
|
862
|
-
p([
|
|
863
|
-
),
|
|
861
|
+
), Kr = A(
|
|
862
|
+
p([Hr, (t, e) => e], (t, e) => b(t.filter((s) => s.field_values === e)))
|
|
863
|
+
), Yr = gn.reducer, K = _((t) => t.uuid), As = K.getInitialState({}), Tn = T({
|
|
864
864
|
name: "assetTypeFieldValues",
|
|
865
865
|
initialState: As,
|
|
866
866
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, As)),
|
|
@@ -876,16 +876,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
876
876
|
deleteAssetTypeFieldValuesMany: K.deleteMany
|
|
877
877
|
}
|
|
878
878
|
}), {
|
|
879
|
-
initializeAssetTypeFieldValues:
|
|
879
|
+
initializeAssetTypeFieldValues: Jr,
|
|
880
880
|
addAssetTypeFieldValues: bs,
|
|
881
|
-
addAssetTypeFieldValuesMany:
|
|
881
|
+
addAssetTypeFieldValuesMany: Qr,
|
|
882
882
|
setAssetTypeFieldValues: Up,
|
|
883
883
|
setAssetTypeFieldValuesMany: $p,
|
|
884
884
|
updateAssetTypeFieldValues: He,
|
|
885
|
-
updateAssetTypeFieldValuesMany:
|
|
885
|
+
updateAssetTypeFieldValuesMany: Xr,
|
|
886
886
|
deleteAssetTypeFieldValues: gs,
|
|
887
|
-
deleteAssetTypeFieldValuesMany:
|
|
888
|
-
} = Tn.actions,
|
|
887
|
+
deleteAssetTypeFieldValuesMany: Zr
|
|
888
|
+
} = Tn.actions, eo = (t) => t.assetTypeFieldValuesReducer.instances, Rn = p([eo], (t) => Object.values(t)), Vp = A(
|
|
889
889
|
p([Rn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
|
|
890
890
|
), Gp = A(
|
|
891
891
|
p(
|
|
@@ -897,7 +897,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
897
897
|
return b(e.filter((n) => i.has(n.fields_revision)));
|
|
898
898
|
}
|
|
899
899
|
)
|
|
900
|
-
), Ss = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t],
|
|
900
|
+
), Ss = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], to = Tn.reducer, Y = _((t) => t.uuid), Ts = Y.getInitialState({}), _n = T({
|
|
901
901
|
name: "assetTypes",
|
|
902
902
|
initialState: Ts,
|
|
903
903
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ts)),
|
|
@@ -913,7 +913,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
913
913
|
deleteAssetTypes: Y.deleteMany
|
|
914
914
|
}
|
|
915
915
|
}), {
|
|
916
|
-
initializeAssetTypes:
|
|
916
|
+
initializeAssetTypes: so,
|
|
917
917
|
setAssetType: Lp,
|
|
918
918
|
setAssetTypes: Bp,
|
|
919
919
|
addAssetType: Rs,
|
|
@@ -937,7 +937,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
937
937
|
return b(s);
|
|
938
938
|
}
|
|
939
939
|
)
|
|
940
|
-
),
|
|
940
|
+
), io = _n.reducer, Is = {
|
|
941
941
|
accessToken: "",
|
|
942
942
|
refreshToken: "",
|
|
943
943
|
isLoggedIn: !1
|
|
@@ -956,7 +956,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
956
956
|
e.payload || _t.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
}), { setTokens: Jp, clearTokens: Qp, setLoggedIn:
|
|
959
|
+
}), { setTokens: Jp, clearTokens: Qp, setLoggedIn: no } = _t.actions, Xp = (t) => t.authReducer.accessToken, Zp = (t) => t.authReducer.isLoggedIn, ao = _t.reducer, qe = _((t) => t.uuid), Fs = qe.getInitialState({}), In = T({
|
|
960
960
|
name: "categories",
|
|
961
961
|
initialState: Fs,
|
|
962
962
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Fs)),
|
|
@@ -966,7 +966,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
966
966
|
updateCategory: qe.updateOne,
|
|
967
967
|
deleteCategory: qe.deleteOne
|
|
968
968
|
}
|
|
969
|
-
}), { initializeCategories:
|
|
969
|
+
}), { initializeCategories: co, addCategory: Ps, updateCategory: ro, deleteCategory: oo } = In.actions, Fn = (t) => t.categoryReducer.instances, ef = p([Fn], (t) => Object.values(t)), vs = (t) => (e) => e.categoryReducer.instances[t], tf = A(
|
|
970
970
|
p(
|
|
971
971
|
[Fn, (t, e) => e],
|
|
972
972
|
(t, e) => {
|
|
@@ -978,7 +978,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
978
978
|
return b(s);
|
|
979
979
|
}
|
|
980
980
|
)
|
|
981
|
-
), sf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length,
|
|
981
|
+
), sf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, uo = In.reducer, J = _((t) => t.uuid), ws = J.getInitialState({}), Pn = T({
|
|
982
982
|
name: "documentAttachments",
|
|
983
983
|
initialState: ws,
|
|
984
984
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ws)),
|
|
@@ -994,26 +994,26 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
994
994
|
deleteDocumentAttachments: J.deleteMany
|
|
995
995
|
}
|
|
996
996
|
}), {
|
|
997
|
-
initializeDocumentAttachments:
|
|
997
|
+
initializeDocumentAttachments: lo,
|
|
998
998
|
addDocumentAttachment: nf,
|
|
999
|
-
addDocumentAttachments:
|
|
1000
|
-
setDocumentAttachment:
|
|
999
|
+
addDocumentAttachments: ho,
|
|
1000
|
+
setDocumentAttachment: mo,
|
|
1001
1001
|
setDocumentAttachments: af,
|
|
1002
1002
|
updateDocumentAttachment: cf,
|
|
1003
|
-
updateDocumentAttachments:
|
|
1004
|
-
deleteDocumentAttachment:
|
|
1005
|
-
deleteDocumentAttachments:
|
|
1006
|
-
} =
|
|
1007
|
-
[
|
|
1003
|
+
updateDocumentAttachments: po,
|
|
1004
|
+
deleteDocumentAttachment: fo,
|
|
1005
|
+
deleteDocumentAttachments: yo
|
|
1006
|
+
} = Pn.actions, Ao = (t) => t.documentAttachmentReducer.instances, bo = p(
|
|
1007
|
+
[Ao],
|
|
1008
1008
|
(t) => Object.values(t)
|
|
1009
|
-
),
|
|
1009
|
+
), go = (t) => (e) => e.documentAttachmentReducer.instances[t], rf = A(
|
|
1010
1010
|
p(
|
|
1011
|
-
[
|
|
1011
|
+
[bo, (t, e) => e],
|
|
1012
1012
|
(t, e) => b(t.filter(({ document: s }) => e === s))
|
|
1013
1013
|
)
|
|
1014
|
-
),
|
|
1014
|
+
), So = Pn.reducer, Es = {
|
|
1015
1015
|
documents: {}
|
|
1016
|
-
},
|
|
1016
|
+
}, vn = T({
|
|
1017
1017
|
name: "documents",
|
|
1018
1018
|
initialState: Es,
|
|
1019
1019
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
@@ -1137,10 +1137,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
|
-
}), { setDocuments:
|
|
1140
|
+
}), { setDocuments: To, addDocuments: Ro, updateDocuments: ye, moveDocument: _o, removeDocuments: ks } = vn.actions, De = (t) => t.documentsReducer.documents, Oo = p(
|
|
1141
1141
|
[De],
|
|
1142
1142
|
(t) => Object.values(t)
|
|
1143
|
-
),
|
|
1143
|
+
), Io = (t) => (e) => e.documentsReducer.documents[t], of = A(
|
|
1144
1144
|
p(
|
|
1145
1145
|
[De, (t, e) => e],
|
|
1146
1146
|
(t, e) => {
|
|
@@ -1165,32 +1165,32 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1165
1165
|
}
|
|
1166
1166
|
)
|
|
1167
1167
|
), uf = p(
|
|
1168
|
-
[
|
|
1168
|
+
[Oo],
|
|
1169
1169
|
(t) => b(t.filter((e) => !e.parent_document))
|
|
1170
|
-
),
|
|
1170
|
+
), Fo = vn.reducer, Ze = _((t) => t.uuid), Po = Ze.getInitialState({}), wn = T({
|
|
1171
1171
|
name: "emailDomains",
|
|
1172
|
-
initialState:
|
|
1172
|
+
initialState: Po,
|
|
1173
1173
|
reducers: {
|
|
1174
1174
|
initializeEmailDomains: Ze.initialize,
|
|
1175
1175
|
addEmailDomain: Ze.addOne,
|
|
1176
1176
|
deleteEmailDomain: Ze.deleteOne
|
|
1177
1177
|
}
|
|
1178
|
-
}), { initializeEmailDomains:
|
|
1178
|
+
}), { initializeEmailDomains: vo, addEmailDomain: wo, deleteEmailDomain: Eo } = wn.actions, ko = (t) => t.emailDomainsReducer.instances, qo = p([ko], (t) => Object.values(t)), lf = A(
|
|
1179
1179
|
p(
|
|
1180
|
-
[
|
|
1180
|
+
[qo, (t, e) => e],
|
|
1181
1181
|
(t, e) => b(
|
|
1182
1182
|
t.filter((s) => s.organization === e)
|
|
1183
1183
|
)
|
|
1184
1184
|
)
|
|
1185
|
-
),
|
|
1185
|
+
), jo = wn.reducer, qs = {
|
|
1186
1186
|
s3Urls: {}
|
|
1187
|
-
}, En = 1e3 * 60 * 60,
|
|
1187
|
+
}, En = 1e3 * 60 * 60, Mo = En * 24 * 7, kn = T({
|
|
1188
1188
|
name: "file",
|
|
1189
1189
|
initialState: qs,
|
|
1190
1190
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qs)),
|
|
1191
1191
|
reducers: {
|
|
1192
1192
|
setUploadUrl: (t, e) => {
|
|
1193
|
-
const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), c = new Date(a.getTime() +
|
|
1193
|
+
const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), c = new Date(a.getTime() + Mo);
|
|
1194
1194
|
t.s3Urls[n] = {
|
|
1195
1195
|
url: s,
|
|
1196
1196
|
fields: i,
|
|
@@ -1198,14 +1198,14 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
|
-
}), { setUploadUrl:
|
|
1201
|
+
}), { setUploadUrl: Co } = kn.actions, Do = (t) => (e) => {
|
|
1202
1202
|
const s = e.fileReducer.s3Urls[t];
|
|
1203
1203
|
if (!s)
|
|
1204
1204
|
return;
|
|
1205
1205
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
1206
1206
|
if (!((s.exp ?? i) - i < En))
|
|
1207
1207
|
return s;
|
|
1208
|
-
},
|
|
1208
|
+
}, xo = kn.reducer, Q = _(
|
|
1209
1209
|
(t) => t.uuid
|
|
1210
1210
|
), js = Q.getInitialState({}), qn = T({
|
|
1211
1211
|
name: "formRevisionAttachments",
|
|
@@ -1223,23 +1223,23 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1223
1223
|
deleteFormRevisionAttachments: Q.deleteMany
|
|
1224
1224
|
}
|
|
1225
1225
|
}), {
|
|
1226
|
-
initializeFormRevisionAttachments:
|
|
1226
|
+
initializeFormRevisionAttachments: zo,
|
|
1227
1227
|
addFormRevisionAttachment: hf,
|
|
1228
|
-
addFormRevisionAttachments:
|
|
1228
|
+
addFormRevisionAttachments: Uo,
|
|
1229
1229
|
setFormRevisionAttachment: mf,
|
|
1230
1230
|
setFormRevisionAttachments: pf,
|
|
1231
1231
|
updateFormRevisionAttachment: ff,
|
|
1232
|
-
updateFormRevisionAttachments: $
|
|
1232
|
+
updateFormRevisionAttachments: $o,
|
|
1233
1233
|
deleteFormRevisionAttachment: yf,
|
|
1234
|
-
deleteFormRevisionAttachments:
|
|
1235
|
-
} = qn.actions,
|
|
1234
|
+
deleteFormRevisionAttachments: Vo
|
|
1235
|
+
} = qn.actions, Go = (t) => t.formRevisionAttachmentReducer.instances, Af = A(
|
|
1236
1236
|
p(
|
|
1237
|
-
[
|
|
1237
|
+
[Go, (t, e) => e],
|
|
1238
1238
|
(t, e) => b(
|
|
1239
1239
|
Object.values(t).filter((s) => s.form_revision === e)
|
|
1240
1240
|
)
|
|
1241
1241
|
)
|
|
1242
|
-
),
|
|
1242
|
+
), Lo = qn.reducer, Bo = (t, e) => {
|
|
1243
1243
|
const s = t.revision, i = e.revision;
|
|
1244
1244
|
return s === void 0 && i === void 0 ? t.submitted_at < e.submitted_at ? -1 : 1 : s === void 0 ? 1 : i === void 0 || s < i ? -1 : 1;
|
|
1245
1245
|
}, Ae = _((t) => t.uuid), Ms = Ae.getInitialState({}), jn = T({
|
|
@@ -1255,13 +1255,13 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1255
1255
|
deleteFormRevisions: Ae.deleteMany
|
|
1256
1256
|
}
|
|
1257
1257
|
}), {
|
|
1258
|
-
setFormRevision:
|
|
1259
|
-
initializeFormRevisions:
|
|
1258
|
+
setFormRevision: No,
|
|
1259
|
+
initializeFormRevisions: Ho,
|
|
1260
1260
|
addFormRevision: Mn,
|
|
1261
|
-
addFormRevisions:
|
|
1261
|
+
addFormRevisions: Wo,
|
|
1262
1262
|
deleteFormRevision: Cn,
|
|
1263
|
-
deleteFormRevisions:
|
|
1264
|
-
} = jn.actions, Ot = (t) => t.formRevisionReducer.instances,
|
|
1263
|
+
deleteFormRevisions: Ko
|
|
1264
|
+
} = jn.actions, Ot = (t) => t.formRevisionReducer.instances, Yo = p(
|
|
1265
1265
|
[Ot],
|
|
1266
1266
|
(t) => Object.values(t)
|
|
1267
1267
|
), bf = (t) => (e) => e.formRevisionReducer.instances[t], gf = A(
|
|
@@ -1270,16 +1270,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1270
1270
|
(t, e) => {
|
|
1271
1271
|
const s = Object.values(t).filter((a) => a.form === e);
|
|
1272
1272
|
if (s.length === 0) return;
|
|
1273
|
-
const n = s.sort(
|
|
1273
|
+
const n = s.sort(Bo)[s.length - 1];
|
|
1274
1274
|
return t[n.uuid];
|
|
1275
1275
|
}
|
|
1276
1276
|
)
|
|
1277
|
-
),
|
|
1277
|
+
), Jo = A(
|
|
1278
1278
|
p(
|
|
1279
|
-
[
|
|
1279
|
+
[Yo, (t, e) => e],
|
|
1280
1280
|
(t, e) => b(t.filter((s) => s.form === e))
|
|
1281
1281
|
)
|
|
1282
|
-
),
|
|
1282
|
+
), Qo = jn.reducer, be = _((t) => t.uuid), Cs = be.getInitialState({}), Dn = T({
|
|
1283
1283
|
name: "forms",
|
|
1284
1284
|
initialState: Cs,
|
|
1285
1285
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Cs)),
|
|
@@ -1291,7 +1291,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1291
1291
|
updateForm: be.updateOne,
|
|
1292
1292
|
deleteForm: be.deleteOne
|
|
1293
1293
|
}
|
|
1294
|
-
}), { initializeForms:
|
|
1294
|
+
}), { initializeForms: Xo, setForm: Sf, addForm: Ds, addForms: Tf, updateForm: Rf, deleteForm: xs } = Dn.actions, Zo = Dn.reducer, ed = (t) => t.formReducer.instances, _f = p([ed], (t) => Object.values(t)), td = (t) => (e) => e.formReducer.instances[t], X = _(
|
|
1295
1295
|
(t) => t.uuid
|
|
1296
1296
|
), zs = X.getInitialState({}), xn = T({
|
|
1297
1297
|
name: "formSubmissionAttachments",
|
|
@@ -1314,9 +1314,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1314
1314
|
addFormSubmissionAttachments: yt,
|
|
1315
1315
|
setFormSubmissionAttachment: If,
|
|
1316
1316
|
setFormSubmissionAttachments: Ff,
|
|
1317
|
-
updateFormSubmissionAttachment:
|
|
1317
|
+
updateFormSubmissionAttachment: Pf,
|
|
1318
1318
|
updateFormSubmissionAttachments: id,
|
|
1319
|
-
deleteFormSubmissionAttachment:
|
|
1319
|
+
deleteFormSubmissionAttachment: vf,
|
|
1320
1320
|
deleteFormSubmissionAttachments: At
|
|
1321
1321
|
} = xn.actions, zn = (t) => t.formSubmissionAttachmentReducer.instances, nd = A(
|
|
1322
1322
|
p(
|
|
@@ -1354,12 +1354,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1354
1354
|
deleteFormSubmissions: Z.deleteMany
|
|
1355
1355
|
}
|
|
1356
1356
|
}), {
|
|
1357
|
-
initializeFormSubmissions:
|
|
1357
|
+
initializeFormSubmissions: rd,
|
|
1358
1358
|
setFormSubmission: at,
|
|
1359
1359
|
setFormSubmissions: wf,
|
|
1360
1360
|
addFormSubmission: $s,
|
|
1361
1361
|
addFormSubmissions: It,
|
|
1362
|
-
updateFormSubmission:
|
|
1362
|
+
updateFormSubmission: od,
|
|
1363
1363
|
updateFormSubmissions: Ef,
|
|
1364
1364
|
deleteFormSubmission: Vs,
|
|
1365
1365
|
deleteFormSubmissions: Ft
|
|
@@ -1460,12 +1460,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1460
1460
|
[it, (t, e) => e],
|
|
1461
1461
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1462
1462
|
)
|
|
1463
|
-
),
|
|
1463
|
+
), Pd = A(
|
|
1464
1464
|
p(
|
|
1465
1465
|
[it, (t, e) => e],
|
|
1466
1466
|
(t, e) => b(Object.values(t).filter((s) => s.asset === e))
|
|
1467
1467
|
)
|
|
1468
|
-
),
|
|
1468
|
+
), vd = Ln.reducer, se = _((t) => t.uuid), Ys = se.getInitialState({}), Hn = T({
|
|
1469
1469
|
name: "issueAttachments",
|
|
1470
1470
|
initialState: Ys,
|
|
1471
1471
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ys)),
|
|
@@ -1574,7 +1574,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1574
1574
|
deleteIssue: Se.deleteOne,
|
|
1575
1575
|
deleteIssues: Se.deleteMany
|
|
1576
1576
|
}
|
|
1577
|
-
}), { initializeIssues: Yd, addIssue: ai, addIssues: Jd, updateIssue: ct, deleteIssue: ci, deleteIssues: Qd } = Qn.actions, Xd = (t) => t.issueReducer.instances,
|
|
1577
|
+
}), { initializeIssues: Yd, addIssue: ai, addIssues: Jd, updateIssue: ct, deleteIssue: ci, deleteIssues: Qd } = Qn.actions, Xd = (t) => t.issueReducer.instances, ri = (t) => (e) => e.issueReducer.instances[t], Wf = A(
|
|
1578
1578
|
p([Xd, (t, e) => e], (t, e) => {
|
|
1579
1579
|
const s = [];
|
|
1580
1580
|
for (const i of e) {
|
|
@@ -1583,10 +1583,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1583
1583
|
}
|
|
1584
1584
|
return b(s);
|
|
1585
1585
|
})
|
|
1586
|
-
), Zd = Qn.reducer, ne = _((t) => t.uuid),
|
|
1586
|
+
), Zd = Qn.reducer, ne = _((t) => t.uuid), oi = ne.getInitialState({}), Xn = T({
|
|
1587
1587
|
name: "issueTypeAttachments",
|
|
1588
|
-
initialState:
|
|
1589
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1588
|
+
initialState: oi,
|
|
1589
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, oi)),
|
|
1590
1590
|
reducers: {
|
|
1591
1591
|
initializeIssueTypeAttachments: ne.initialize,
|
|
1592
1592
|
addIssueTypeAttachment: ne.addOne,
|
|
@@ -1611,12 +1611,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1611
1611
|
} = Xn.actions, au = (t) => t.issueTypeAttachmentReducer.instances, cu = p(
|
|
1612
1612
|
[au],
|
|
1613
1613
|
(t) => Object.values(t)
|
|
1614
|
-
),
|
|
1614
|
+
), ru = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], Qf = A(
|
|
1615
1615
|
p(
|
|
1616
1616
|
[cu, (t, e) => e],
|
|
1617
1617
|
(t, e) => b(t.filter(({ issue_type: s }) => e === s))
|
|
1618
1618
|
)
|
|
1619
|
-
),
|
|
1619
|
+
), ou = Xn.reducer, ae = _(
|
|
1620
1620
|
(t) => t.uuid
|
|
1621
1621
|
), ui = ae.getInitialState({}), Zn = T({
|
|
1622
1622
|
name: "issueTypeFieldsAttachments",
|
|
@@ -1673,27 +1673,27 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1673
1673
|
addIssueTypeFieldValues: hi,
|
|
1674
1674
|
addIssueTypeFieldValuesMany: ay,
|
|
1675
1675
|
setIssueTypeFieldValues: cy,
|
|
1676
|
-
setIssueTypeFieldValuesMany:
|
|
1676
|
+
setIssueTypeFieldValuesMany: ry,
|
|
1677
1677
|
updateIssueTypeFieldValues: Ye,
|
|
1678
|
-
updateIssueTypeFieldValuesMany:
|
|
1678
|
+
updateIssueTypeFieldValuesMany: oy,
|
|
1679
1679
|
deleteIssueTypeFieldValues: mi,
|
|
1680
1680
|
deleteIssueTypeFieldValuesMany: dy
|
|
1681
1681
|
} = ea.actions, Au = (t) => t.issueTypeFieldValuesReducer.instances, ta = p([Au], (t) => Object.values(t)), uy = A(
|
|
1682
1682
|
p([ta, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
|
|
1683
|
-
), pi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], bu = ea.reducer,
|
|
1683
|
+
), pi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], bu = ea.reducer, re = _((t) => t.uuid), fi = re.getInitialState({}), sa = T({
|
|
1684
1684
|
name: "issueTypeFields",
|
|
1685
1685
|
initialState: fi,
|
|
1686
1686
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fi)),
|
|
1687
1687
|
reducers: {
|
|
1688
|
-
initializeIssueTypeFields:
|
|
1689
|
-
addIssueTypeFields:
|
|
1690
|
-
addIssueTypeFieldsMany:
|
|
1691
|
-
setIssueTypeFields:
|
|
1692
|
-
setIssueTypeFieldsMany:
|
|
1693
|
-
updateIssueTypeFields:
|
|
1694
|
-
updateIssueTypeFieldsMany:
|
|
1695
|
-
deleteIssueTypeFields:
|
|
1696
|
-
deleteIssueTypeFieldsMany:
|
|
1688
|
+
initializeIssueTypeFields: re.initialize,
|
|
1689
|
+
addIssueTypeFields: re.addOne,
|
|
1690
|
+
addIssueTypeFieldsMany: re.addMany,
|
|
1691
|
+
setIssueTypeFields: re.setOne,
|
|
1692
|
+
setIssueTypeFieldsMany: re.setMany,
|
|
1693
|
+
updateIssueTypeFields: re.updateOne,
|
|
1694
|
+
updateIssueTypeFieldsMany: re.updateMany,
|
|
1695
|
+
deleteIssueTypeFields: re.deleteOne,
|
|
1696
|
+
deleteIssueTypeFieldsMany: re.deleteMany
|
|
1697
1697
|
}
|
|
1698
1698
|
}), {
|
|
1699
1699
|
initializeIssueTypeFields: gu,
|
|
@@ -1705,13 +1705,13 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1705
1705
|
updateIssueTypeFieldsMany: py,
|
|
1706
1706
|
deleteIssueTypeFields: Ru,
|
|
1707
1707
|
deleteIssueTypeFieldsMany: fy
|
|
1708
|
-
} = sa.actions, _u = (t) => t.issueTypeFieldsReducer.instances,
|
|
1709
|
-
p([
|
|
1708
|
+
} = sa.actions, _u = (t) => t.issueTypeFieldsReducer.instances, Pt = p([_u], (t) => Object.values(t)), yy = A(
|
|
1709
|
+
p([Pt, (t, e) => e], (t, e) => b(t.filter((s) => s.issue_type === e)))
|
|
1710
1710
|
), Ay = A(
|
|
1711
|
-
p([
|
|
1711
|
+
p([Pt, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
1712
1712
|
), by = A(
|
|
1713
1713
|
p(
|
|
1714
|
-
[
|
|
1714
|
+
[Pt, ta, (t, e) => e],
|
|
1715
1715
|
(t, e, s) => {
|
|
1716
1716
|
const i = new Set(
|
|
1717
1717
|
t.filter((n) => n.issue_type === s).map((n) => n.uuid)
|
|
@@ -1719,22 +1719,22 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1719
1719
|
return b(e.filter((n) => i.has(n.fields_revision)));
|
|
1720
1720
|
}
|
|
1721
1721
|
)
|
|
1722
|
-
), gy = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Ou = sa.reducer,
|
|
1722
|
+
), gy = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Ou = sa.reducer, oe = _(
|
|
1723
1723
|
(t) => t.uuid
|
|
1724
|
-
), yi =
|
|
1724
|
+
), yi = oe.getInitialState({}), ia = T({
|
|
1725
1725
|
name: "issueTypeFieldValuesAttachments",
|
|
1726
1726
|
initialState: yi,
|
|
1727
1727
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, yi)),
|
|
1728
1728
|
reducers: {
|
|
1729
|
-
initializeIssueTypeFieldValuesAttachments:
|
|
1730
|
-
addIssueTypeFieldValuesAttachment:
|
|
1731
|
-
addIssueTypeFieldValuesAttachments:
|
|
1732
|
-
setIssueTypeFieldValuesAttachment:
|
|
1733
|
-
setIssueTypeFieldValuesAttachments:
|
|
1734
|
-
updateIssueTypeFieldValuesAttachment:
|
|
1735
|
-
updateIssueTypeFieldValuesAttachments:
|
|
1736
|
-
deleteIssueTypeFieldValuesAttachment:
|
|
1737
|
-
deleteIssueTypeFieldValuesAttachments:
|
|
1729
|
+
initializeIssueTypeFieldValuesAttachments: oe.initialize,
|
|
1730
|
+
addIssueTypeFieldValuesAttachment: oe.addOne,
|
|
1731
|
+
addIssueTypeFieldValuesAttachments: oe.addMany,
|
|
1732
|
+
setIssueTypeFieldValuesAttachment: oe.setOne,
|
|
1733
|
+
setIssueTypeFieldValuesAttachments: oe.setMany,
|
|
1734
|
+
updateIssueTypeFieldValuesAttachment: oe.updateOne,
|
|
1735
|
+
updateIssueTypeFieldValuesAttachments: oe.updateMany,
|
|
1736
|
+
deleteIssueTypeFieldValuesAttachment: oe.deleteOne,
|
|
1737
|
+
deleteIssueTypeFieldValuesAttachments: oe.deleteMany
|
|
1738
1738
|
}
|
|
1739
1739
|
}), {
|
|
1740
1740
|
initializeIssueTypeFieldValuesAttachments: Iu,
|
|
@@ -1746,10 +1746,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1746
1746
|
updateIssueTypeFieldValuesAttachments: Fu,
|
|
1747
1747
|
deleteIssueTypeFieldValuesAttachment: Oy,
|
|
1748
1748
|
deleteIssueTypeFieldValuesAttachments: gt
|
|
1749
|
-
} = ia.actions, na = (t) => t.issueTypeFieldValuesAttachmentReducer.instances,
|
|
1749
|
+
} = ia.actions, na = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Pu = p(
|
|
1750
1750
|
[na],
|
|
1751
1751
|
(t) => Object.values(t)
|
|
1752
|
-
), Iy = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t],
|
|
1752
|
+
), Iy = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], vu = A(
|
|
1753
1753
|
p(
|
|
1754
1754
|
[
|
|
1755
1755
|
na,
|
|
@@ -1764,7 +1764,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1764
1764
|
)
|
|
1765
1765
|
), wu = A(
|
|
1766
1766
|
p(
|
|
1767
|
-
[
|
|
1767
|
+
[Pu, (t, e) => e],
|
|
1768
1768
|
(t, e) => b(t.filter((s) => s.field_values === e))
|
|
1769
1769
|
)
|
|
1770
1770
|
), Eu = ia.reducer, Ie = _((t) => t.uuid), Ai = Ie.getInitialState({}), aa = T({
|
|
@@ -1790,7 +1790,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1790
1790
|
n ? s.push(n) : console.warn("selectIssueTypesByIds: No issue type exists with the id", i);
|
|
1791
1791
|
}
|
|
1792
1792
|
return s;
|
|
1793
|
-
},
|
|
1793
|
+
}, Py = A(
|
|
1794
1794
|
p(
|
|
1795
1795
|
[Cu, (t, e) => e],
|
|
1796
1796
|
(t, e) => b(t.filter((s) => s.organization === e))
|
|
@@ -1802,7 +1802,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1802
1802
|
Object.values(t).filter((s) => s.issue_type === e)
|
|
1803
1803
|
)
|
|
1804
1804
|
)
|
|
1805
|
-
),
|
|
1805
|
+
), vy = (t) => (e) => ca(t)(e).length, Du = aa.reducer, Te = _((t) => t.uuid), Si = Te.getInitialState({}), ra = T({
|
|
1806
1806
|
name: "issueUpdates",
|
|
1807
1807
|
initialState: Si,
|
|
1808
1808
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Si)),
|
|
@@ -1821,12 +1821,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1821
1821
|
addIssueUpdates: Uu,
|
|
1822
1822
|
deleteIssueUpdate: $u,
|
|
1823
1823
|
deleteIssueUpdates: Vu
|
|
1824
|
-
} =
|
|
1824
|
+
} = ra.actions, Gu = (t) => t.issueUpdateReducer.instances, Lu = A(
|
|
1825
1825
|
p(
|
|
1826
1826
|
[Gu, (t, e) => e],
|
|
1827
1827
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1828
1828
|
)
|
|
1829
|
-
), Bu =
|
|
1829
|
+
), Bu = ra.reducer, et = _((t) => t.uuid), Ti = et.getInitialState({}), oa = T({
|
|
1830
1830
|
name: "license",
|
|
1831
1831
|
initialState: Ti,
|
|
1832
1832
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ti)),
|
|
@@ -1835,15 +1835,15 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1835
1835
|
addLicenses: et.addMany,
|
|
1836
1836
|
updateLicense: et.updateOne
|
|
1837
1837
|
}
|
|
1838
|
-
}), { initializeLicences: Nu, addLicenses: Ey, updateLicense: pe } =
|
|
1839
|
-
[
|
|
1838
|
+
}), { initializeLicences: Nu, addLicenses: Ey, updateLicense: pe } = oa.actions, vt = (t) => t.licenseReducer.instances, ky = (t) => (e) => e.licenseReducer.instances[t], Hu = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), qy = p(
|
|
1839
|
+
[vt],
|
|
1840
1840
|
(t) => b(Object.values(t).filter((e) => e.is_active))
|
|
1841
1841
|
), jy = p(
|
|
1842
|
-
[
|
|
1842
|
+
[vt],
|
|
1843
1843
|
(t) => ze(
|
|
1844
1844
|
Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
|
|
1845
1845
|
)
|
|
1846
|
-
), Wu =
|
|
1846
|
+
), Wu = oa.reducer, q = _((t) => t.uuid), Ri = q.getInitialState({
|
|
1847
1847
|
currentUser: null
|
|
1848
1848
|
}), da = T({
|
|
1849
1849
|
name: "users",
|
|
@@ -1863,6 +1863,14 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1863
1863
|
// Keep for backwards compatibility
|
|
1864
1864
|
setCurrentUser: (t, e) => {
|
|
1865
1865
|
t.currentUser = e.payload;
|
|
1866
|
+
},
|
|
1867
|
+
setProfilePicture: (t, e) => {
|
|
1868
|
+
if (!t.currentUser) return;
|
|
1869
|
+
t.currentUser.profile.file = e.payload.file ?? null, t.currentUser.profile.file_sha1 = e.payload.file_sha1 ?? null;
|
|
1870
|
+
const s = t.instances[t.currentUser.uuid];
|
|
1871
|
+
if (!s)
|
|
1872
|
+
throw new Error("Unable to find current user in users slice");
|
|
1873
|
+
s.profile.file = e.payload.file ?? null, s.profile.file_sha1 = e.payload.file_sha1 ?? null;
|
|
1866
1874
|
}
|
|
1867
1875
|
}
|
|
1868
1876
|
}), {
|
|
@@ -1876,8 +1884,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1876
1884
|
deleteUser: $y,
|
|
1877
1885
|
deleteUsers: Vy,
|
|
1878
1886
|
removeUser: Yu,
|
|
1879
|
-
setCurrentUser: Gy
|
|
1880
|
-
|
|
1887
|
+
setCurrentUser: Gy,
|
|
1888
|
+
setProfilePicture: Ly
|
|
1889
|
+
} = da.actions, Ju = da.reducer, wt = (t) => t.userReducer.currentUser, Et = (t) => t.userReducer.instances, By = (t) => (e) => e.userReducer.instances[t], Ny = A(
|
|
1881
1890
|
p([Et, (t, e) => e], (t, e) => {
|
|
1882
1891
|
const s = [];
|
|
1883
1892
|
for (const i of e) {
|
|
@@ -1897,12 +1906,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1897
1906
|
updateOrganizationAccess: tt.updateOne,
|
|
1898
1907
|
deleteOrganizationAccess: tt.deleteOne
|
|
1899
1908
|
}
|
|
1900
|
-
}), { initializeOrganizationAccesses: Qu, updateOrganizationAccess: Xu, deleteOrganizationAccess: Zu } = ua.actions, la = (t) => t.organizationAccessReducer.instances,
|
|
1909
|
+
}), { initializeOrganizationAccesses: Qu, updateOrganizationAccess: Xu, deleteOrganizationAccess: Zu } = ua.actions, la = (t) => t.organizationAccessReducer.instances, Hy = (t) => (e) => e.organizationAccessReducer.instances[t], Wy = p(
|
|
1901
1910
|
[wt, la],
|
|
1902
1911
|
(t, e) => Object.values(e).find(
|
|
1903
1912
|
(i) => i.user === (t == null ? void 0 : t.uuid)
|
|
1904
1913
|
) ?? null
|
|
1905
|
-
),
|
|
1914
|
+
), Ky = (t) => (e) => Object.values(e.organizationAccessReducer.instances).find(
|
|
1906
1915
|
(s) => s.user === t.uuid
|
|
1907
1916
|
), el = (t) => {
|
|
1908
1917
|
const e = {};
|
|
@@ -1922,14 +1931,14 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1922
1931
|
}), { initializeProjectAccesses: ma, updateProjectAccess: sl, deleteProjectAccess: il, deleteProjectAccesses: nl } = ha.actions, pa = (t) => t.projectAccessReducer.instances, al = p(
|
|
1923
1932
|
pa,
|
|
1924
1933
|
(t) => Object.values(t)
|
|
1925
|
-
),
|
|
1934
|
+
), Yy = (t) => (e) => e.projectAccessReducer.instances[t], Jy = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
|
|
1926
1935
|
(s) => s.user === t.uuid
|
|
1927
1936
|
), cl = (t) => {
|
|
1928
1937
|
const e = {};
|
|
1929
1938
|
for (const s of Object.values(t.projectAccessReducer.instances))
|
|
1930
1939
|
e[s.user] = s;
|
|
1931
1940
|
return ze(e);
|
|
1932
|
-
},
|
|
1941
|
+
}, rl = ha.reducer, de = _((t) => t.uuid), Ii = de.getInitialState({}), fa = T({
|
|
1933
1942
|
name: "projects",
|
|
1934
1943
|
initialState: Ii,
|
|
1935
1944
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ii)),
|
|
@@ -1951,23 +1960,23 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1951
1960
|
}
|
|
1952
1961
|
}
|
|
1953
1962
|
}), {
|
|
1954
|
-
initializeProjects:
|
|
1955
|
-
setProjects:
|
|
1956
|
-
setProject:
|
|
1957
|
-
addProjects:
|
|
1958
|
-
addProject:
|
|
1959
|
-
updateProjects:
|
|
1963
|
+
initializeProjects: Qy,
|
|
1964
|
+
setProjects: ol,
|
|
1965
|
+
setProject: Xy,
|
|
1966
|
+
addProjects: Zy,
|
|
1967
|
+
addProject: eA,
|
|
1968
|
+
updateProjects: tA,
|
|
1960
1969
|
updateProject: dl,
|
|
1961
1970
|
deleteProject: ul,
|
|
1962
|
-
deleteProjects:
|
|
1971
|
+
deleteProjects: sA,
|
|
1963
1972
|
acceptProjectInvite: ll
|
|
1964
|
-
} = fa.actions, hl = fa.reducer, kt = (t) => t.projectReducer.instances,
|
|
1973
|
+
} = fa.actions, hl = fa.reducer, kt = (t) => t.projectReducer.instances, iA = p([kt], (t) => b(Object.values(t))), nA = (t) => (e) => e.projectReducer.instances[t], ml = p(
|
|
1965
1974
|
[pa],
|
|
1966
1975
|
(t) => Object.values(t).map((e) => e.user)
|
|
1967
1976
|
), pl = p(
|
|
1968
1977
|
[ml, Et],
|
|
1969
1978
|
(t, e) => t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
1970
|
-
),
|
|
1979
|
+
), aA = p(
|
|
1971
1980
|
[wt, pl, cl],
|
|
1972
1981
|
(t, e, s) => b(
|
|
1973
1982
|
Object.values(e).sort((i, n) => {
|
|
@@ -1976,7 +1985,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1976
1985
|
if (n.uuid === (t == null ? void 0 : t.uuid))
|
|
1977
1986
|
return 1;
|
|
1978
1987
|
const a = s[i.uuid], c = s[n.uuid];
|
|
1979
|
-
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.
|
|
1988
|
+
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === zi.ADMIN ? -1 : 1;
|
|
1980
1989
|
})
|
|
1981
1990
|
)
|
|
1982
1991
|
), ue = _((t) => t.uuid), Fi = ue.getInitialState({}), ya = T({
|
|
@@ -1995,16 +2004,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
1995
2004
|
deleteOrganizations: ue.deleteMany
|
|
1996
2005
|
}
|
|
1997
2006
|
}), {
|
|
1998
|
-
initializeOrganizations:
|
|
2007
|
+
initializeOrganizations: cA,
|
|
1999
2008
|
setOrganizations: fl,
|
|
2000
|
-
setOrganization:
|
|
2009
|
+
setOrganization: rA,
|
|
2001
2010
|
addOrganizations: oA,
|
|
2002
|
-
addOrganization:
|
|
2003
|
-
updateOrganizations:
|
|
2004
|
-
updateOrganization:
|
|
2005
|
-
deleteOrganization:
|
|
2006
|
-
deleteOrganizations:
|
|
2007
|
-
} = ya.actions, yl = (t) => t.organizationReducer.instances, Al = p([yl], (t) => Object.values(t)),
|
|
2011
|
+
addOrganization: dA,
|
|
2012
|
+
updateOrganizations: uA,
|
|
2013
|
+
updateOrganization: lA,
|
|
2014
|
+
deleteOrganization: hA,
|
|
2015
|
+
deleteOrganizations: mA
|
|
2016
|
+
} = ya.actions, yl = (t) => t.organizationReducer.instances, Al = p([yl], (t) => Object.values(t)), pA = (t) => (e) => e.organizationReducer.instances[t], fA = p(
|
|
2008
2017
|
[Al],
|
|
2009
2018
|
(t) => b(
|
|
2010
2019
|
Object.values(t).filter((e) => e.has_access)
|
|
@@ -2012,16 +2021,16 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2012
2021
|
), bl = p(
|
|
2013
2022
|
[la],
|
|
2014
2023
|
(t) => Object.values(t).map((e) => e.user)
|
|
2015
|
-
),
|
|
2024
|
+
), yA = A(
|
|
2016
2025
|
p(
|
|
2017
2026
|
[kt, (t, e) => e],
|
|
2018
2027
|
(t, e) => b(
|
|
2019
2028
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
2020
2029
|
)
|
|
2021
2030
|
)
|
|
2022
|
-
),
|
|
2031
|
+
), AA = A(
|
|
2023
2032
|
p(
|
|
2024
|
-
[
|
|
2033
|
+
[vt, (t, e) => e],
|
|
2025
2034
|
(t, e) => b(
|
|
2026
2035
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
2027
2036
|
)
|
|
@@ -2031,7 +2040,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2031
2040
|
(t, e) => ze(
|
|
2032
2041
|
t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
2033
2042
|
)
|
|
2034
|
-
),
|
|
2043
|
+
), bA = p(
|
|
2035
2044
|
[wt, gl, el],
|
|
2036
2045
|
(t, e, s) => b(
|
|
2037
2046
|
Object.values(e).sort((i, n) => {
|
|
@@ -2040,7 +2049,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2040
2049
|
if (n.uuid === (t == null ? void 0 : t.uuid))
|
|
2041
2050
|
return 1;
|
|
2042
2051
|
const a = s[i.uuid], c = s[n.uuid];
|
|
2043
|
-
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.
|
|
2052
|
+
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === Ui.ADMIN ? -1 : 1;
|
|
2044
2053
|
})
|
|
2045
2054
|
)
|
|
2046
2055
|
), Sl = ya.reducer, Tl = (t, e, s) => {
|
|
@@ -2059,13 +2068,13 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2059
2068
|
}
|
|
2060
2069
|
}
|
|
2061
2070
|
};
|
|
2062
|
-
},
|
|
2071
|
+
}, Pi = {
|
|
2063
2072
|
deletedRequests: [],
|
|
2064
2073
|
latestRetryTime: 0
|
|
2065
2074
|
}, Aa = T({
|
|
2066
2075
|
name: "outbox",
|
|
2067
|
-
initialState:
|
|
2068
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
2076
|
+
initialState: Pi,
|
|
2077
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pi)),
|
|
2069
2078
|
reducers: {
|
|
2070
2079
|
// enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
|
|
2071
2080
|
// Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
|
|
@@ -2089,10 +2098,10 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2089
2098
|
t.latestRetryTime = e.payload;
|
|
2090
2099
|
}
|
|
2091
2100
|
}
|
|
2092
|
-
}),
|
|
2101
|
+
}), gA = (t) => t.outboxReducer.deletedRequests, SA = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Rl, markForDeletion: TA, markAsDeleted: _l, _setLatestRetryTime: Ol } = Aa.actions, Il = Aa.reducer, le = _((t) => t.uuid), vi = le.getInitialState({}), ba = T({
|
|
2093
2102
|
name: "projectAttachments",
|
|
2094
|
-
initialState:
|
|
2095
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
2103
|
+
initialState: vi,
|
|
2104
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vi)),
|
|
2096
2105
|
reducers: {
|
|
2097
2106
|
initializeProjectAttachments: le.initialize,
|
|
2098
2107
|
addProjectAttachment: le.addOne,
|
|
@@ -2106,11 +2115,11 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2106
2115
|
}
|
|
2107
2116
|
}), {
|
|
2108
2117
|
initializeProjectAttachments: Fl,
|
|
2109
|
-
addProjectAttachment:
|
|
2110
|
-
addProjectAttachments:
|
|
2111
|
-
setProjectAttachment:
|
|
2118
|
+
addProjectAttachment: RA,
|
|
2119
|
+
addProjectAttachments: Pl,
|
|
2120
|
+
setProjectAttachment: vl,
|
|
2112
2121
|
setProjectAttachments: wl,
|
|
2113
|
-
updateProjectAttachment:
|
|
2122
|
+
updateProjectAttachment: _A,
|
|
2114
2123
|
updateProjectAttachments: El,
|
|
2115
2124
|
deleteProjectAttachment: kl,
|
|
2116
2125
|
deleteProjectAttachments: ga
|
|
@@ -2164,12 +2173,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2164
2173
|
}
|
|
2165
2174
|
}), {
|
|
2166
2175
|
initializeProjectFiles: xl,
|
|
2167
|
-
setProjectFile:
|
|
2168
|
-
setProjectFiles:
|
|
2169
|
-
addProjectFile:
|
|
2176
|
+
setProjectFile: OA,
|
|
2177
|
+
setProjectFiles: IA,
|
|
2178
|
+
addProjectFile: FA,
|
|
2170
2179
|
addProjectFiles: zl,
|
|
2171
2180
|
updateProjectFile: Ei,
|
|
2172
|
-
updateProjectFiles:
|
|
2181
|
+
updateProjectFiles: PA,
|
|
2173
2182
|
deleteProjectFile: Ul,
|
|
2174
2183
|
deleteProjectFiles: $l,
|
|
2175
2184
|
// TODO: move following to /web
|
|
@@ -2177,7 +2186,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2177
2186
|
setActiveProjectFileId: Gl,
|
|
2178
2187
|
saveActiveProjectFileBounds: Ll,
|
|
2179
2188
|
resetProjectFileObjectUrls: vA
|
|
2180
|
-
} = Sa.actions, Bl = (t) => t.projectFileReducer.instances, Nl = p([Bl], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))),
|
|
2189
|
+
} = Sa.actions, Bl = (t) => t.projectFileReducer.instances, Nl = p([Bl], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))), wA = (t) => (e) => e.projectFileReducer.instances[t], EA = (t) => t.projectFileReducer.activeProjectFileId, kA = (t) => t.projectFileReducer.isImportingProjectFile, Hl = Sa.reducer, Wl = {
|
|
2181
2190
|
isRehydrated: !1
|
|
2182
2191
|
}, Ta = T({
|
|
2183
2192
|
name: "rehydrated",
|
|
@@ -2188,7 +2197,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2188
2197
|
t.isRehydrated = e.payload;
|
|
2189
2198
|
}
|
|
2190
2199
|
}
|
|
2191
|
-
}), { setRehydrated:
|
|
2200
|
+
}), { setRehydrated: qA } = Ta.actions, jA = (t) => t.rehydratedReducer.isRehydrated, Kl = Ta.reducer, Fe = _((t) => t.uuid), ki = Fe.getInitialState({}), Ra = T({
|
|
2192
2201
|
name: "teams",
|
|
2193
2202
|
initialState: ki,
|
|
2194
2203
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ki)),
|
|
@@ -2199,7 +2208,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2199
2208
|
updateTeam: Fe.updateOne,
|
|
2200
2209
|
deleteTeam: Fe.deleteOne
|
|
2201
2210
|
}
|
|
2202
|
-
}), { setTeam: we, initializeTeams: Yl, addTeam: Jl, updateTeam: qi, deleteTeam: ji } = Ra.actions, _a = (t) => t.teamReducer.instances, Oa = p([_a], (t) => Object.values(t)), Ee = (t) => (e) => e.teamReducer.instances[t],
|
|
2211
|
+
}), { setTeam: we, initializeTeams: Yl, addTeam: Jl, updateTeam: qi, deleteTeam: ji } = Ra.actions, _a = (t) => t.teamReducer.instances, Oa = p([_a], (t) => Object.values(t)), Ee = (t) => (e) => e.teamReducer.instances[t], MA = A(
|
|
2203
2212
|
p(
|
|
2204
2213
|
[_a, (t, e) => e],
|
|
2205
2214
|
(t, e) => {
|
|
@@ -2211,12 +2220,12 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
|
|
|
2211
2220
|
return b(s);
|
|
2212
2221
|
}
|
|
2213
2222
|
)
|
|
2214
|
-
),
|
|
2223
|
+
), CA = A(
|
|
2215
2224
|
p(
|
|
2216
2225
|
[Oa, (t, e) => e],
|
|
2217
2226
|
(t, e) => b(t.filter((s) => s.organization === e))
|
|
2218
2227
|
)
|
|
2219
|
-
),
|
|
2228
|
+
), DA = A(
|
|
2220
2229
|
p([Oa, (t, e) => e], (t, e) => b(t.filter((s) => s.members.includes(e))))
|
|
2221
2230
|
), Ql = Ra.reducer, Xl = {
|
|
2222
2231
|
version: 0
|
|
@@ -2239,11 +2248,11 @@ function sh(t) {
|
|
|
2239
2248
|
function ih() {
|
|
2240
2249
|
return Fa;
|
|
2241
2250
|
}
|
|
2242
|
-
const
|
|
2243
|
-
class
|
|
2251
|
+
const Pa = {};
|
|
2252
|
+
class va {
|
|
2244
2253
|
constructor(e) {
|
|
2245
2254
|
y(this, "client");
|
|
2246
|
-
|
|
2255
|
+
Pa[this.constructor.name] = this, this.client = e;
|
|
2247
2256
|
}
|
|
2248
2257
|
async enqueueRequest(e) {
|
|
2249
2258
|
return this.client.enqueueRequest(e, this.host, this.constructor.name);
|
|
@@ -2256,80 +2265,80 @@ class Pa {
|
|
|
2256
2265
|
const wa = "versioning", Ea = () => qa.length - 1, ka = (t) => (t[wa] = { version: Ea() }, t), Mi = () => ka({}), nh = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), ah = (t) => (e) => {
|
|
2257
2266
|
var s;
|
|
2258
2267
|
return e === void 0 && (e = {}), ((s = e[wa]) == null ? void 0 : s.version) === Ea() ? e : t(e);
|
|
2259
|
-
}, qa = [ka, Mi, Mi, nh], ch = Object.fromEntries(qa.map((t, e) => [e, ah(t)])), ja = "versioning",
|
|
2268
|
+
}, qa = [ka, Mi, Mi, nh], ch = Object.fromEntries(qa.map((t, e) => [e, ah(t)])), ja = "versioning", rh = {
|
|
2260
2269
|
[ja]: eh,
|
|
2261
|
-
fileReducer:
|
|
2262
|
-
authReducer:
|
|
2263
|
-
categoryReducer:
|
|
2264
|
-
assetReducer:
|
|
2265
|
-
assetAttachmentReducer:
|
|
2266
|
-
assetStageCompletionReducer:
|
|
2267
|
-
assetStageReducer:
|
|
2268
|
-
assetTypeReducer:
|
|
2269
|
-
assetTypeAttachmentReducer:
|
|
2270
|
+
fileReducer: xo,
|
|
2271
|
+
authReducer: ao,
|
|
2272
|
+
categoryReducer: uo,
|
|
2273
|
+
assetReducer: ur,
|
|
2274
|
+
assetAttachmentReducer: Pc,
|
|
2275
|
+
assetStageCompletionReducer: pr,
|
|
2276
|
+
assetStageReducer: gr,
|
|
2277
|
+
assetTypeReducer: io,
|
|
2278
|
+
assetTypeAttachmentReducer: Er,
|
|
2270
2279
|
issueReducer: Zd,
|
|
2271
2280
|
issueAttachmentReducer: Dd,
|
|
2272
2281
|
issueTypeReducer: Du,
|
|
2273
|
-
issueTypeAttachmentReducer:
|
|
2282
|
+
issueTypeAttachmentReducer: ou,
|
|
2274
2283
|
organizationReducer: Sl,
|
|
2275
2284
|
outboxReducer: Il,
|
|
2276
2285
|
projectReducer: hl,
|
|
2277
2286
|
projectAttachmentReducer: Dl,
|
|
2278
|
-
projectAccessReducer:
|
|
2287
|
+
projectAccessReducer: rl,
|
|
2279
2288
|
organizationAccessReducer: tl,
|
|
2280
2289
|
projectFileReducer: Hl,
|
|
2281
2290
|
rehydratedReducer: Kl,
|
|
2282
|
-
formReducer:
|
|
2283
|
-
formRevisionReducer:
|
|
2284
|
-
formRevisionAttachmentReducer:
|
|
2291
|
+
formReducer: Zo,
|
|
2292
|
+
formRevisionReducer: Qo,
|
|
2293
|
+
formRevisionAttachmentReducer: Lo,
|
|
2285
2294
|
formSubmissionAttachmentReducer: cd,
|
|
2286
2295
|
formSubmissionReducer: hd,
|
|
2287
2296
|
userReducer: Ju,
|
|
2288
|
-
emailDomainsReducer:
|
|
2297
|
+
emailDomainsReducer: jo,
|
|
2289
2298
|
licenseReducer: Wu,
|
|
2290
|
-
documentsReducer:
|
|
2291
|
-
documentAttachmentReducer:
|
|
2299
|
+
documentsReducer: Fo,
|
|
2300
|
+
documentAttachmentReducer: So,
|
|
2292
2301
|
teamReducer: Ql,
|
|
2293
2302
|
agentsReducer: gc,
|
|
2294
2303
|
issueCommentReducer: Kd,
|
|
2295
2304
|
issueCommentAttachmentReducer: Nd,
|
|
2296
2305
|
issueUpdateReducer: Bu,
|
|
2297
2306
|
geoImageReducer: Td,
|
|
2298
|
-
issueAssociationReducer:
|
|
2307
|
+
issueAssociationReducer: vd,
|
|
2299
2308
|
issueTypeFieldsReducer: Ou,
|
|
2300
2309
|
issueTypeFieldValuesReducer: bu,
|
|
2301
2310
|
issueTypeFieldsAttachmentReducer: fu,
|
|
2302
2311
|
issueTypeFieldValuesAttachmentReducer: Eu,
|
|
2303
|
-
assetTypeFieldsReducer:
|
|
2304
|
-
assetTypeFieldValuesReducer:
|
|
2305
|
-
assetTypeFieldsAttachmentReducer:
|
|
2306
|
-
assetTypeFieldValuesAttachmentReducer:
|
|
2307
|
-
assetProcedureReducer:
|
|
2308
|
-
assetProcedureInstanceReducer:
|
|
2312
|
+
assetTypeFieldsReducer: Lr,
|
|
2313
|
+
assetTypeFieldValuesReducer: to,
|
|
2314
|
+
assetTypeFieldsAttachmentReducer: xr,
|
|
2315
|
+
assetTypeFieldValuesAttachmentReducer: Yr,
|
|
2316
|
+
assetProcedureReducer: cr,
|
|
2317
|
+
assetProcedureInstanceReducer: ir,
|
|
2309
2318
|
assetProcedureFieldsReducer: $c,
|
|
2310
2319
|
assetProcedureFieldValuesReducer: Xc,
|
|
2311
2320
|
assetProcedureFieldsAttachmentReducer: Mc,
|
|
2312
2321
|
assetProcedureFieldValuesAttachmentReducer: Hc
|
|
2313
|
-
}, Ci = Va(
|
|
2314
|
-
let
|
|
2315
|
-
function
|
|
2322
|
+
}, Ci = Va(rh), oh = "RESET", xA = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Ci(void 0, e) : Ci(t, e);
|
|
2323
|
+
let rt = null;
|
|
2324
|
+
function Pe() {
|
|
2316
2325
|
const t = Ue();
|
|
2317
2326
|
if (!t)
|
|
2318
2327
|
return console.warn("Client store not set; cannot get outbox coordinator yet."), null;
|
|
2319
|
-
if (
|
|
2320
|
-
return
|
|
2328
|
+
if (rt)
|
|
2329
|
+
return rt;
|
|
2321
2330
|
const e = t.getState().offline.outbox, s = Me._fromOutbox(e);
|
|
2322
|
-
return
|
|
2331
|
+
return rt = s, s;
|
|
2323
2332
|
}
|
|
2324
2333
|
const dh = (t) => {
|
|
2325
2334
|
if (t) throw t;
|
|
2326
2335
|
const e = Ue();
|
|
2327
2336
|
e ? e.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
|
|
2328
2337
|
}, uh = (t, e, s) => {
|
|
2329
|
-
const i =
|
|
2338
|
+
const i = Pe();
|
|
2330
2339
|
return i ? (i.addRequest(e), i.getQueue()) : (console.warn("Outbox coordinator not set; cannot enqueue request yet."), []);
|
|
2331
2340
|
}, lh = (t, e, s) => {
|
|
2332
|
-
const i =
|
|
2341
|
+
const i = Pe();
|
|
2333
2342
|
if (!i)
|
|
2334
2343
|
return console.warn("Outbox coordinator not set; cannot dequeue request yet."), [];
|
|
2335
2344
|
const a = e.meta.offlineAction.payload.uuid;
|
|
@@ -2362,7 +2371,7 @@ const mh = {
|
|
|
2362
2371
|
// Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
|
|
2363
2372
|
peek: (...t) => Th(...t)
|
|
2364
2373
|
}
|
|
2365
|
-
}, ph = Ha(ch, ja),
|
|
2374
|
+
}, ph = Ha(ch, ja), zA = Ga(Ba(mh), ph);
|
|
2366
2375
|
function fh(t) {
|
|
2367
2376
|
function e(s) {
|
|
2368
2377
|
return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
|
|
@@ -2375,7 +2384,7 @@ function fh(t) {
|
|
|
2375
2384
|
}
|
|
2376
2385
|
}
|
|
2377
2386
|
async function Ma(t, e) {
|
|
2378
|
-
const s =
|
|
2387
|
+
const s = Pa[t.meta.offline.effect.serviceName];
|
|
2379
2388
|
if (!s)
|
|
2380
2389
|
throw new Error(`Service ${t.meta.offline.effect.serviceName} not found`);
|
|
2381
2390
|
const i = s instanceof I;
|
|
@@ -2385,7 +2394,7 @@ async function Ma(t, e) {
|
|
|
2385
2394
|
const a = {
|
|
2386
2395
|
queryParams: "",
|
|
2387
2396
|
isAuthNeeded: !0
|
|
2388
|
-
}, c = t.meta.offline.effect, { payload: d, headers: l, method:
|
|
2397
|
+
}, c = t.meta.offline.effect, { payload: d, headers: l, method: r, queryParams: o, attachmentHash: h, isExternalUrl: m, isAuthNeeded: f, isResponseBlob: S } = {
|
|
2389
2398
|
...a,
|
|
2390
2399
|
...c.request
|
|
2391
2400
|
}, R = c.request;
|
|
@@ -2394,49 +2403,49 @@ async function Ma(t, e) {
|
|
|
2394
2403
|
if (h && !F)
|
|
2395
2404
|
throw new Error(`Cannot upload file ${h} because it's not cached.`);
|
|
2396
2405
|
!m && !g.startsWith("http") && (!g.startsWith("/") && !g.startsWith("blob:") && (g = "/" + g), g = t.meta.offline.effect.BASE_URL + g);
|
|
2397
|
-
const k = (
|
|
2406
|
+
const k = (v) => {
|
|
2398
2407
|
if (h) {
|
|
2399
2408
|
const M = R.s3url;
|
|
2400
2409
|
if (!M) throw new Error(`No S3 URL for file ${h}`);
|
|
2401
2410
|
if ("warning" in M) throw new Error(`S3 URL warning for file ${h}`);
|
|
2402
2411
|
if (!F) throw new Error(`No file for file ${h}`);
|
|
2403
|
-
const
|
|
2404
|
-
if (!
|
|
2405
|
-
return
|
|
2412
|
+
const ve = M.fields["x-amz-checksum-sha1"];
|
|
2413
|
+
if (!ve) throw new Error(`No checksum for file ${h}`);
|
|
2414
|
+
return v.set("x-amz-checksum-sha1", ve).field({ ...d, ...M.fields }).attach("file", F);
|
|
2406
2415
|
}
|
|
2407
|
-
return
|
|
2416
|
+
return v.send(d);
|
|
2408
2417
|
}, za = {
|
|
2409
2418
|
[u.GET]: () => S ? Oe.get(g.toString()).responseType("blob") : Oe.get(g.toString()),
|
|
2410
2419
|
[u.POST]: () => {
|
|
2411
|
-
const
|
|
2412
|
-
return k(
|
|
2420
|
+
const v = Oe.post(g.toString());
|
|
2421
|
+
return k(v);
|
|
2413
2422
|
},
|
|
2414
2423
|
[u.PATCH]: () => {
|
|
2415
|
-
const
|
|
2416
|
-
return k(
|
|
2424
|
+
const v = Oe.patch(g.toString());
|
|
2425
|
+
return k(v);
|
|
2417
2426
|
},
|
|
2418
2427
|
[u.PUT]: () => {
|
|
2419
|
-
const
|
|
2420
|
-
return k(
|
|
2428
|
+
const v = Oe.put(g.toString());
|
|
2429
|
+
return k(v);
|
|
2421
2430
|
},
|
|
2422
2431
|
[u.DELETE]: () => {
|
|
2423
|
-
const
|
|
2424
|
-
return k(
|
|
2432
|
+
const v = Oe.delete(g.toString());
|
|
2433
|
+
return k(v);
|
|
2425
2434
|
}
|
|
2426
|
-
}[
|
|
2435
|
+
}[r];
|
|
2427
2436
|
let fe = za();
|
|
2428
2437
|
if (f && i) {
|
|
2429
|
-
const
|
|
2430
|
-
fe = fe.set("Authorization",
|
|
2438
|
+
const v = s.auth.getAuthHeader();
|
|
2439
|
+
fe = fe.set("Authorization", v);
|
|
2431
2440
|
}
|
|
2432
2441
|
l && (fe = fe.set(l));
|
|
2433
2442
|
try {
|
|
2434
|
-
return await fe.query(
|
|
2435
|
-
} catch (
|
|
2436
|
-
const M = fh(
|
|
2437
|
-
if (i &&
|
|
2438
|
-
return await s.auth.handleUnauthorized(fe, M), fe.query(
|
|
2439
|
-
throw new j({ response: M, innerError:
|
|
2443
|
+
return await fe.query(o);
|
|
2444
|
+
} catch (v) {
|
|
2445
|
+
const M = fh(v), ve = M == null ? void 0 : M.status;
|
|
2446
|
+
if (i && ve === 401)
|
|
2447
|
+
return await s.auth.handleUnauthorized(fe, M), fe.query(o);
|
|
2448
|
+
throw new j({ response: M, innerError: v, discard: Da.includes(ve) });
|
|
2440
2449
|
}
|
|
2441
2450
|
}
|
|
2442
2451
|
class yh {
|
|
@@ -2491,7 +2500,7 @@ function Sh(t) {
|
|
|
2491
2500
|
}
|
|
2492
2501
|
const Da = [400, 409, 403, 404, 405, 500];
|
|
2493
2502
|
function xa(t, e, s = 0) {
|
|
2494
|
-
var
|
|
2503
|
+
var r;
|
|
2495
2504
|
if (console.debug(
|
|
2496
2505
|
"Considering discarding request due to error:",
|
|
2497
2506
|
t,
|
|
@@ -2511,10 +2520,10 @@ Retries:`,
|
|
|
2511
2520
|
const i = Ue(), a = i.getState().outboxReducer.deletedRequests, c = e.payload.uuid;
|
|
2512
2521
|
function d() {
|
|
2513
2522
|
i.dispatch(_l(c));
|
|
2514
|
-
const
|
|
2515
|
-
if (!
|
|
2523
|
+
const o = Pe();
|
|
2524
|
+
if (!o)
|
|
2516
2525
|
throw new Error("Outbox coordinator not set");
|
|
2517
|
-
|
|
2526
|
+
o.remove(e.payload.uuid);
|
|
2518
2527
|
const h = e.meta.offline.rollback;
|
|
2519
2528
|
throw h && (console.warn("Rolling back request due to SDK error:", e), i.dispatch(h)), t;
|
|
2520
2529
|
}
|
|
@@ -2523,25 +2532,25 @@ Retries:`,
|
|
|
2523
2532
|
if (a.includes(c))
|
|
2524
2533
|
return console.debug("Discarding request due to deletion:", e), d();
|
|
2525
2534
|
if (t instanceof j) {
|
|
2526
|
-
const
|
|
2527
|
-
if (
|
|
2535
|
+
const o = t.status || ((r = t.response) == null ? void 0 : r.status);
|
|
2536
|
+
if (o || console.warn("Error has no status code:", t), o !== void 0 && Da.includes(o)) {
|
|
2528
2537
|
console.warn("Discarding request due to error:", t, `
|
|
2529
2538
|
Action:`, e);
|
|
2530
|
-
const h =
|
|
2539
|
+
const h = Pe();
|
|
2531
2540
|
if (!h)
|
|
2532
2541
|
throw new Error("Outbox coordinator not set");
|
|
2533
2542
|
h.remove(e.payload.uuid), t.options.discard = !0, d();
|
|
2534
2543
|
}
|
|
2535
2544
|
}
|
|
2536
2545
|
console.debug("Registering a retry for request:", e.payload.uuid);
|
|
2537
|
-
const l =
|
|
2546
|
+
const l = Pe();
|
|
2538
2547
|
if (!l)
|
|
2539
2548
|
throw new Error("Outbox coordinator not set");
|
|
2540
2549
|
return l.registerRetry(e.payload.uuid), !1;
|
|
2541
2550
|
}
|
|
2542
2551
|
function Th(t, e, s) {
|
|
2543
2552
|
var i;
|
|
2544
|
-
return (i =
|
|
2553
|
+
return (i = Pe()) == null ? void 0 : i.peek();
|
|
2545
2554
|
}
|
|
2546
2555
|
function Rh(t, e) {
|
|
2547
2556
|
return Ue().dispatch(Ol((/* @__PURE__ */ new Date()).getTime())), ic;
|
|
@@ -2581,19 +2590,19 @@ class j extends Error {
|
|
|
2581
2590
|
this.message = s.message ?? Oh(i, n) ?? xe, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
|
|
2582
2591
|
}
|
|
2583
2592
|
}
|
|
2584
|
-
class Ih extends
|
|
2593
|
+
class Ih extends va {
|
|
2585
2594
|
constructor(e) {
|
|
2586
2595
|
super(e);
|
|
2587
2596
|
}
|
|
2588
2597
|
}
|
|
2589
|
-
class I extends
|
|
2598
|
+
class I extends va {
|
|
2590
2599
|
constructor(s, i) {
|
|
2591
2600
|
super(s);
|
|
2592
2601
|
y(this, "auth");
|
|
2593
2602
|
this.auth = i;
|
|
2594
2603
|
}
|
|
2595
2604
|
}
|
|
2596
|
-
class
|
|
2605
|
+
class UA extends I {
|
|
2597
2606
|
async startConversation(e, s) {
|
|
2598
2607
|
return this.enqueueRequest({
|
|
2599
2608
|
description: "Start agent conversation",
|
|
@@ -2665,9 +2674,9 @@ class E extends I {
|
|
|
2665
2674
|
projectAttachmentReducer: c,
|
|
2666
2675
|
formRevisionAttachmentReducer: d,
|
|
2667
2676
|
formSubmissionAttachmentReducer: l,
|
|
2668
|
-
geoImageReducer:
|
|
2677
|
+
geoImageReducer: r,
|
|
2669
2678
|
// fields
|
|
2670
|
-
assetTypeFieldsAttachmentReducer:
|
|
2679
|
+
assetTypeFieldsAttachmentReducer: o,
|
|
2671
2680
|
assetTypeFieldValuesAttachmentReducer: h,
|
|
2672
2681
|
issueTypeFieldsAttachmentReducer: m,
|
|
2673
2682
|
issueTypeFieldValuesAttachmentReducer: f
|
|
@@ -2680,8 +2689,8 @@ class E extends I {
|
|
|
2680
2689
|
Object.values(c.instances),
|
|
2681
2690
|
Object.values(d.instances),
|
|
2682
2691
|
Object.values(l.instances),
|
|
2683
|
-
Object.values(o.instances),
|
|
2684
2692
|
Object.values(r.instances),
|
|
2693
|
+
Object.values(o.instances),
|
|
2685
2694
|
Object.values(h.instances),
|
|
2686
2695
|
Object.values(m.instances),
|
|
2687
2696
|
Object.values(f.instances)
|
|
@@ -2716,10 +2725,10 @@ class E extends I {
|
|
|
2716
2725
|
}
|
|
2717
2726
|
class _e extends E {
|
|
2718
2727
|
async _bulkAdd(e) {
|
|
2719
|
-
var
|
|
2720
|
-
const { store: s } = this.client, i = (
|
|
2721
|
-
for (const
|
|
2722
|
-
const { modelUuid: h, file: m } =
|
|
2728
|
+
var r;
|
|
2729
|
+
const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = [], c = [], d = {};
|
|
2730
|
+
for (const o of e) {
|
|
2731
|
+
const { modelUuid: h, file: m } = o, f = await this.getFilePayload(m);
|
|
2723
2732
|
f.sha1 in d || (d[f.sha1] = f);
|
|
2724
2733
|
const S = this.buildOfflineAttachment({
|
|
2725
2734
|
file: m,
|
|
@@ -2750,14 +2759,14 @@ class _e extends E {
|
|
|
2750
2759
|
attachments: c,
|
|
2751
2760
|
files: Object.values(d)
|
|
2752
2761
|
},
|
|
2753
|
-
blocks: a.map((
|
|
2754
|
-
blockers: a.map((
|
|
2762
|
+
blocks: a.map((o) => o.uuid),
|
|
2763
|
+
blockers: a.map((o) => o.file_sha1)
|
|
2755
2764
|
});
|
|
2756
|
-
return l.then(({ attachments:
|
|
2757
|
-
this.dispatch(this.updateAttachments(
|
|
2765
|
+
return l.then(({ attachments: o, presigned_urls: h }) => {
|
|
2766
|
+
this.dispatch(this.updateAttachments(o)), this.processPresignedUrls(h);
|
|
2758
2767
|
}).catch(() => {
|
|
2759
|
-
this.dispatch(this.removeAttachments(a.map((
|
|
2760
|
-
}), [a, l.then(({ attachments:
|
|
2768
|
+
this.dispatch(this.removeAttachments(a.map((o) => o.uuid)));
|
|
2769
|
+
}), [a, l.then(({ attachments: o }) => o)];
|
|
2761
2770
|
}
|
|
2762
2771
|
async _delete(e) {
|
|
2763
2772
|
const { store: s } = this.client, i = this.selectAttachment(e)(s.getState());
|
|
@@ -2778,7 +2787,7 @@ class _e extends E {
|
|
|
2778
2787
|
}), n;
|
|
2779
2788
|
}
|
|
2780
2789
|
}
|
|
2781
|
-
class
|
|
2790
|
+
class $A extends _e {
|
|
2782
2791
|
constructor() {
|
|
2783
2792
|
super(...arguments);
|
|
2784
2793
|
y(this, "name", "Asset Attachment");
|
|
@@ -2829,12 +2838,12 @@ class UA extends _e {
|
|
|
2829
2838
|
this.dispatch(xt(i));
|
|
2830
2839
|
}
|
|
2831
2840
|
}
|
|
2832
|
-
class
|
|
2841
|
+
class VA extends E {
|
|
2833
2842
|
async bulkAdd(e) {
|
|
2834
2843
|
var l;
|
|
2835
2844
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
|
|
2836
|
-
for (const
|
|
2837
|
-
const { fieldsRevisionUuid:
|
|
2845
|
+
for (const r of e) {
|
|
2846
|
+
const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
|
|
2838
2847
|
f.sha1 in n || (n[f.sha1] = f);
|
|
2839
2848
|
const S = O({
|
|
2840
2849
|
file: URL.createObjectURL(m),
|
|
@@ -2842,7 +2851,7 @@ class $A extends E {
|
|
|
2842
2851
|
file_name: m.name,
|
|
2843
2852
|
file_sha1: f.sha1,
|
|
2844
2853
|
created_by: i,
|
|
2845
|
-
fields_revision:
|
|
2854
|
+
fields_revision: o,
|
|
2846
2855
|
submitted_at: s,
|
|
2847
2856
|
field_identifier: h
|
|
2848
2857
|
});
|
|
@@ -2853,7 +2862,7 @@ class $A extends E {
|
|
|
2853
2862
|
field_identifier: h,
|
|
2854
2863
|
file_extension: f.extension,
|
|
2855
2864
|
file_sha1: f.sha1,
|
|
2856
|
-
fields_revision:
|
|
2865
|
+
fields_revision: o
|
|
2857
2866
|
};
|
|
2858
2867
|
c.push(R);
|
|
2859
2868
|
}
|
|
@@ -2867,18 +2876,18 @@ class $A extends E {
|
|
|
2867
2876
|
attachments: c,
|
|
2868
2877
|
files: Object.values(n)
|
|
2869
2878
|
},
|
|
2870
|
-
blockers: a.map((
|
|
2871
|
-
blocks: a.map((
|
|
2879
|
+
blockers: a.map((r) => r.fields_revision),
|
|
2880
|
+
blocks: a.map((r) => r.uuid)
|
|
2872
2881
|
});
|
|
2873
|
-
return d.then((
|
|
2874
|
-
this.processPresignedUrls(
|
|
2882
|
+
return d.then((r) => {
|
|
2883
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(Ec(r.attachments));
|
|
2875
2884
|
}).catch(() => {
|
|
2876
2885
|
this.dispatch(
|
|
2877
2886
|
kc(
|
|
2878
|
-
a.map((
|
|
2887
|
+
a.map((r) => r.uuid)
|
|
2879
2888
|
)
|
|
2880
2889
|
);
|
|
2881
|
-
}), [a, d.then(({ attachments:
|
|
2890
|
+
}), [a, d.then(({ attachments: r }) => r)];
|
|
2882
2891
|
}
|
|
2883
2892
|
async refreshStore(e) {
|
|
2884
2893
|
const s = await this.enqueueRequest({
|
|
@@ -2891,10 +2900,10 @@ class $A extends E {
|
|
|
2891
2900
|
blockers: [],
|
|
2892
2901
|
blocks: []
|
|
2893
2902
|
});
|
|
2894
|
-
this.dispatch(
|
|
2903
|
+
this.dispatch(vc(s));
|
|
2895
2904
|
}
|
|
2896
2905
|
}
|
|
2897
|
-
class
|
|
2906
|
+
class GA extends I {
|
|
2898
2907
|
add(e) {
|
|
2899
2908
|
var d;
|
|
2900
2909
|
const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
@@ -2939,13 +2948,13 @@ function $e(t, e) {
|
|
|
2939
2948
|
s.push(t.slice(i, i += e));
|
|
2940
2949
|
return s;
|
|
2941
2950
|
}
|
|
2942
|
-
class
|
|
2951
|
+
class LA extends E {
|
|
2943
2952
|
async bulkAdd(e, s) {
|
|
2944
|
-
var
|
|
2945
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), n = (
|
|
2946
|
-
for (const
|
|
2953
|
+
var r;
|
|
2954
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid, a = $e(e, s ?? e.length), c = [], d = [];
|
|
2955
|
+
for (const o of a) {
|
|
2947
2956
|
const h = {}, m = [];
|
|
2948
|
-
for (const f of
|
|
2957
|
+
for (const f of o) {
|
|
2949
2958
|
const { fieldValuesUuid: S, fieldIdentifier: R, file: g } = f, F = await this.getFilePayload(g);
|
|
2950
2959
|
F.sha1 in h || (h[F.sha1] = F);
|
|
2951
2960
|
const k = O(
|
|
@@ -2978,27 +2987,27 @@ class GA extends E {
|
|
|
2978
2987
|
});
|
|
2979
2988
|
}
|
|
2980
2989
|
this.dispatch(ht(c));
|
|
2981
|
-
const l = d.map((
|
|
2990
|
+
const l = d.map((o) => this.enqueueRequest({
|
|
2982
2991
|
description: "Add asset procedure field values attachments",
|
|
2983
2992
|
method: u.POST,
|
|
2984
2993
|
url: "/asset-procedure-field-values-attachments/bulk/",
|
|
2985
|
-
payload:
|
|
2986
|
-
blockers:
|
|
2987
|
-
blocks:
|
|
2994
|
+
payload: o,
|
|
2995
|
+
blockers: o.attachments.map((h) => h.field_values),
|
|
2996
|
+
blocks: o.attachments.map((h) => h.uuid)
|
|
2988
2997
|
}));
|
|
2989
|
-
return Promise.all(l).then((
|
|
2990
|
-
for (const m of
|
|
2991
|
-
const h =
|
|
2998
|
+
return Promise.all(l).then((o) => {
|
|
2999
|
+
for (const m of o) this.processPresignedUrls(m.presigned_urls);
|
|
3000
|
+
const h = o.flatMap((m) => m.attachments);
|
|
2992
3001
|
this.dispatch(Gc(h));
|
|
2993
|
-
}).catch((
|
|
3002
|
+
}).catch((o) => {
|
|
2994
3003
|
throw this.dispatch(
|
|
2995
3004
|
mt(
|
|
2996
3005
|
c.map((h) => h.uuid)
|
|
2997
3006
|
)
|
|
2998
|
-
),
|
|
3007
|
+
), o;
|
|
2999
3008
|
}), [
|
|
3000
3009
|
c,
|
|
3001
|
-
l.map((
|
|
3010
|
+
l.map((o) => o.then(({ attachments: h }) => h))
|
|
3002
3011
|
];
|
|
3003
3012
|
}
|
|
3004
3013
|
async bulkDelete(e) {
|
|
@@ -3039,7 +3048,7 @@ const Fh = (t) => Array.isArray(t) && t[0] instanceof File, st = (t) => {
|
|
|
3039
3048
|
}
|
|
3040
3049
|
return { values: s, files: e };
|
|
3041
3050
|
};
|
|
3042
|
-
class
|
|
3051
|
+
class BA extends E {
|
|
3043
3052
|
add(e) {
|
|
3044
3053
|
var c;
|
|
3045
3054
|
const { store: s } = this.client, i = s.getState(), n = O({
|
|
@@ -3050,7 +3059,7 @@ class LA extends E {
|
|
|
3050
3059
|
description: "Add form submission",
|
|
3051
3060
|
method: u.POST,
|
|
3052
3061
|
url: "/form-submissions/",
|
|
3053
|
-
payload:
|
|
3062
|
+
payload: P(n),
|
|
3054
3063
|
blockers: [
|
|
3055
3064
|
"add-form-entry",
|
|
3056
3065
|
e.form_revision,
|
|
@@ -3071,7 +3080,7 @@ class LA extends E {
|
|
|
3071
3080
|
...n,
|
|
3072
3081
|
...e
|
|
3073
3082
|
};
|
|
3074
|
-
this.dispatch(
|
|
3083
|
+
this.dispatch(od(a));
|
|
3075
3084
|
const c = this.enqueueRequest({
|
|
3076
3085
|
description: "Delete user form submissions",
|
|
3077
3086
|
method: u.PATCH,
|
|
@@ -3115,10 +3124,10 @@ class LA extends E {
|
|
|
3115
3124
|
blockers: [],
|
|
3116
3125
|
blocks: []
|
|
3117
3126
|
});
|
|
3118
|
-
this.dispatch(
|
|
3127
|
+
this.dispatch(rd(s));
|
|
3119
3128
|
}
|
|
3120
3129
|
}
|
|
3121
|
-
class
|
|
3130
|
+
class NA extends I {
|
|
3122
3131
|
add(e) {
|
|
3123
3132
|
var c;
|
|
3124
3133
|
const { store: s } = this.client, i = s.getState(), n = O({
|
|
@@ -3129,7 +3138,7 @@ class BA extends I {
|
|
|
3129
3138
|
description: "Add asset procedure field values",
|
|
3130
3139
|
method: u.POST,
|
|
3131
3140
|
url: "/asset-procedure-field-values/",
|
|
3132
|
-
payload:
|
|
3141
|
+
payload: P(n),
|
|
3133
3142
|
blockers: [e.asset, e.fields_revision, e.asset_procedure_instance],
|
|
3134
3143
|
blocks: [n.uuid]
|
|
3135
3144
|
});
|
|
@@ -3138,15 +3147,15 @@ class BA extends I {
|
|
|
3138
3147
|
}), [n, a];
|
|
3139
3148
|
}
|
|
3140
3149
|
bulkAdd(e, s) {
|
|
3141
|
-
var
|
|
3150
|
+
var r;
|
|
3142
3151
|
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = st(e.values), a = [], c = $e(e.payloads, s ?? e.payloads.length), d = [];
|
|
3143
|
-
for (const
|
|
3152
|
+
for (const o of c) {
|
|
3144
3153
|
const h = [];
|
|
3145
|
-
for (const m of
|
|
3154
|
+
for (const m of o) {
|
|
3146
3155
|
const f = O({
|
|
3147
3156
|
...m,
|
|
3148
3157
|
values: st(m.values).values,
|
|
3149
|
-
created_by: (
|
|
3158
|
+
created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid,
|
|
3150
3159
|
submitted_at: i
|
|
3151
3160
|
});
|
|
3152
3161
|
a.push(f), h.push({
|
|
@@ -3166,22 +3175,22 @@ class BA extends I {
|
|
|
3166
3175
|
}
|
|
3167
3176
|
this.dispatch(Kc(a));
|
|
3168
3177
|
const l = [];
|
|
3169
|
-
for (const
|
|
3170
|
-
const h =
|
|
3178
|
+
for (const o of d) {
|
|
3179
|
+
const h = o.field_values.map((g) => g.asset), m = o.field_values.map((g) => g.fields_revision), f = o.field_values.map((g) => g.asset_procedure_instance), S = o.field_values.map((g) => g.uuid), R = this.enqueueRequest({
|
|
3171
3180
|
description: "Bulk add asset procedure field values",
|
|
3172
3181
|
method: u.POST,
|
|
3173
3182
|
url: "/asset-procedure-field-values/bulk/",
|
|
3174
|
-
payload:
|
|
3183
|
+
payload: o,
|
|
3175
3184
|
blockers: [...h, ...m, ...f],
|
|
3176
3185
|
blocks: S
|
|
3177
3186
|
});
|
|
3178
3187
|
l.push(R);
|
|
3179
3188
|
}
|
|
3180
|
-
return Promise.all(l).then((
|
|
3181
|
-
this.dispatch(Yc(
|
|
3189
|
+
return Promise.all(l).then((o) => {
|
|
3190
|
+
this.dispatch(Yc(o.flat()));
|
|
3182
3191
|
}).catch(() => {
|
|
3183
3192
|
this.dispatch(
|
|
3184
|
-
Jc(a.map((
|
|
3193
|
+
Jc(a.map((o) => o.uuid))
|
|
3185
3194
|
);
|
|
3186
3195
|
}), [a, l];
|
|
3187
3196
|
}
|
|
@@ -3246,7 +3255,7 @@ class BA extends I {
|
|
|
3246
3255
|
this.dispatch(Wc(s));
|
|
3247
3256
|
}
|
|
3248
3257
|
}
|
|
3249
|
-
class
|
|
3258
|
+
class HA extends I {
|
|
3250
3259
|
add(e) {
|
|
3251
3260
|
const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
3252
3261
|
...e,
|
|
@@ -3258,7 +3267,7 @@ class NA extends I {
|
|
|
3258
3267
|
description: "Create asset procedure instance",
|
|
3259
3268
|
method: u.POST,
|
|
3260
3269
|
url: "/asset-procedure-instances/",
|
|
3261
|
-
payload:
|
|
3270
|
+
payload: P(a),
|
|
3262
3271
|
blockers: [e.asset_procedure, e.asset_type],
|
|
3263
3272
|
blocks: [a.uuid]
|
|
3264
3273
|
});
|
|
@@ -3319,7 +3328,7 @@ class NA extends I {
|
|
|
3319
3328
|
this.dispatch(Zc(s));
|
|
3320
3329
|
}
|
|
3321
3330
|
}
|
|
3322
|
-
class
|
|
3331
|
+
class WA extends I {
|
|
3323
3332
|
add(e) {
|
|
3324
3333
|
const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
3325
3334
|
...e,
|
|
@@ -3331,7 +3340,7 @@ class HA extends I {
|
|
|
3331
3340
|
description: "Create asset procedure",
|
|
3332
3341
|
method: u.POST,
|
|
3333
3342
|
url: "/asset-procedures/",
|
|
3334
|
-
payload:
|
|
3343
|
+
payload: P(a),
|
|
3335
3344
|
blockers: [],
|
|
3336
3345
|
blocks: [a.uuid]
|
|
3337
3346
|
});
|
|
@@ -3368,15 +3377,15 @@ class HA extends I {
|
|
|
3368
3377
|
const { store: s } = this.client, i = s.getState(), n = Xt(e)(i);
|
|
3369
3378
|
if (!n)
|
|
3370
3379
|
throw new Error(`Expected asset procedure with uuid ${e} to exist`);
|
|
3371
|
-
const a =
|
|
3372
|
-
return this.dispatch(Qt(e)), this.dispatch(
|
|
3380
|
+
const a = sr(e)(i);
|
|
3381
|
+
return this.dispatch(Qt(e)), this.dispatch(tr(a.map((c) => c.uuid))), this.enqueueRequest({
|
|
3373
3382
|
description: "Delete asset procedure",
|
|
3374
3383
|
method: u.DELETE,
|
|
3375
3384
|
url: `/asset-procedures/${e}/`,
|
|
3376
3385
|
blockers: [e],
|
|
3377
3386
|
blocks: []
|
|
3378
3387
|
}).catch((c) => {
|
|
3379
|
-
throw this.dispatch(Jt(n)), this.dispatch(
|
|
3388
|
+
throw this.dispatch(Jt(n)), this.dispatch(er(a)), c;
|
|
3380
3389
|
});
|
|
3381
3390
|
}
|
|
3382
3391
|
async refreshStore(e) {
|
|
@@ -3390,10 +3399,10 @@ class HA extends I {
|
|
|
3390
3399
|
blockers: [],
|
|
3391
3400
|
blocks: []
|
|
3392
3401
|
});
|
|
3393
|
-
this.dispatch(
|
|
3402
|
+
this.dispatch(nr(s));
|
|
3394
3403
|
}
|
|
3395
3404
|
}
|
|
3396
|
-
class
|
|
3405
|
+
class KA extends I {
|
|
3397
3406
|
// Basic CRUD functions
|
|
3398
3407
|
add(e) {
|
|
3399
3408
|
const { store: s } = this.client;
|
|
@@ -3409,7 +3418,7 @@ class WA extends I {
|
|
|
3409
3418
|
description: "Create asset",
|
|
3410
3419
|
method: u.POST,
|
|
3411
3420
|
url: "/assets/",
|
|
3412
|
-
payload:
|
|
3421
|
+
payload: P(a),
|
|
3413
3422
|
blockers: [a.asset_type],
|
|
3414
3423
|
blocks: [a.uuid]
|
|
3415
3424
|
});
|
|
@@ -3447,17 +3456,17 @@ class WA extends I {
|
|
|
3447
3456
|
async remove(e) {
|
|
3448
3457
|
const { store: s } = this.client, i = s.getState(), n = ss(e)(i);
|
|
3449
3458
|
if (!n) throw new Error(`No asset with uuid ${e} found in the store`);
|
|
3450
|
-
const a = Fc(e)(i), c = ld(e)(i), d =
|
|
3459
|
+
const a = Fc(e)(i), c = ld(e)(i), d = Pd(e)(i);
|
|
3451
3460
|
if (this.dispatch(ts(e)), a.length > 0) {
|
|
3452
|
-
const l = a.map(({ uuid:
|
|
3461
|
+
const l = a.map(({ uuid: r }) => r);
|
|
3453
3462
|
this.dispatch(Wi(l));
|
|
3454
3463
|
}
|
|
3455
3464
|
if (c.length > 0) {
|
|
3456
|
-
const l = c.map(({ uuid:
|
|
3465
|
+
const l = c.map(({ uuid: r }) => r);
|
|
3457
3466
|
this.dispatch(Ft(l));
|
|
3458
3467
|
}
|
|
3459
3468
|
if (d.length > 0) {
|
|
3460
|
-
const l = d.map(({ uuid:
|
|
3469
|
+
const l = d.map(({ uuid: r }) => r);
|
|
3461
3470
|
this.dispatch(Nn(l));
|
|
3462
3471
|
}
|
|
3463
3472
|
return this.enqueueRequest({
|
|
@@ -3471,8 +3480,8 @@ class WA extends I {
|
|
|
3471
3480
|
});
|
|
3472
3481
|
}
|
|
3473
3482
|
bulkAdd(e, s, i, n) {
|
|
3474
|
-
const a = (/* @__PURE__ */ new Date()).toISOString(), c = Re(), d = $e(e, n).map((
|
|
3475
|
-
const h =
|
|
3483
|
+
const a = (/* @__PURE__ */ new Date()).toISOString(), c = Re(), d = $e(e, n).map((o) => {
|
|
3484
|
+
const h = o.map((m) => O(m));
|
|
3476
3485
|
return {
|
|
3477
3486
|
batchId: Re(),
|
|
3478
3487
|
payload: {
|
|
@@ -3484,10 +3493,10 @@ class WA extends I {
|
|
|
3484
3493
|
}
|
|
3485
3494
|
};
|
|
3486
3495
|
}), l = [];
|
|
3487
|
-
let
|
|
3488
|
-
for (const
|
|
3489
|
-
const { batchId: h, payload: m } =
|
|
3490
|
-
|
|
3496
|
+
let r = null;
|
|
3497
|
+
for (const o of d) {
|
|
3498
|
+
const { batchId: h, payload: m } = o, f = m.assets.map((F) => F.uuid), S = [s];
|
|
3499
|
+
r && S.push(r);
|
|
3491
3500
|
const R = f;
|
|
3492
3501
|
R.push(h);
|
|
3493
3502
|
const g = this.enqueueRequest({
|
|
@@ -3498,11 +3507,11 @@ class WA extends I {
|
|
|
3498
3507
|
blockers: S,
|
|
3499
3508
|
blocks: R
|
|
3500
3509
|
});
|
|
3501
|
-
|
|
3510
|
+
r = o.batchId, l.push(g);
|
|
3502
3511
|
}
|
|
3503
|
-
return Promise.all(l).then((
|
|
3504
|
-
const h =
|
|
3505
|
-
this.dispatch(
|
|
3512
|
+
return Promise.all(l).then((o) => {
|
|
3513
|
+
const h = o.flat();
|
|
3514
|
+
this.dispatch(on(h));
|
|
3506
3515
|
}), l;
|
|
3507
3516
|
}
|
|
3508
3517
|
async refreshStore(e) {
|
|
@@ -3516,10 +3525,10 @@ class WA extends I {
|
|
|
3516
3525
|
blockers: [],
|
|
3517
3526
|
blocks: []
|
|
3518
3527
|
});
|
|
3519
|
-
this.dispatch(
|
|
3528
|
+
this.dispatch(rr(s));
|
|
3520
3529
|
}
|
|
3521
3530
|
}
|
|
3522
|
-
class
|
|
3531
|
+
class YA extends I {
|
|
3523
3532
|
add(e) {
|
|
3524
3533
|
const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
3525
3534
|
...e,
|
|
@@ -3531,18 +3540,18 @@ class KA extends I {
|
|
|
3531
3540
|
description: "Add asset stage completion",
|
|
3532
3541
|
method: u.POST,
|
|
3533
3542
|
url: "/asset-stage-completions/",
|
|
3534
|
-
payload:
|
|
3543
|
+
payload: P(a),
|
|
3535
3544
|
blockers: [e.asset, e.stage],
|
|
3536
3545
|
blocks: [a.uuid]
|
|
3537
3546
|
});
|
|
3538
3547
|
return c.then((d) => {
|
|
3539
|
-
this.dispatch(
|
|
3548
|
+
this.dispatch(hr(d));
|
|
3540
3549
|
}).catch(() => {
|
|
3541
3550
|
this.dispatch(cs(a.uuid));
|
|
3542
3551
|
}), [a, c];
|
|
3543
3552
|
}
|
|
3544
3553
|
delete(e) {
|
|
3545
|
-
const { store: s } = this.client, i =
|
|
3554
|
+
const { store: s } = this.client, i = fr(e)(s.getState());
|
|
3546
3555
|
if (!i)
|
|
3547
3556
|
throw new Error(`Expected asset stage completion with uuid ${e} to exist`);
|
|
3548
3557
|
this.dispatch(cs(e));
|
|
@@ -3558,11 +3567,11 @@ class KA extends I {
|
|
|
3558
3567
|
}), n;
|
|
3559
3568
|
}
|
|
3560
3569
|
bulkAdd(e) {
|
|
3561
|
-
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = s.getState().userReducer.currentUser.uuid, a = e.map((
|
|
3562
|
-
...
|
|
3570
|
+
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = s.getState().userReducer.currentUser.uuid, a = e.map((r) => O(r)), c = a.map((r) => ({
|
|
3571
|
+
...r,
|
|
3563
3572
|
created_by: n,
|
|
3564
3573
|
submitted_at: i
|
|
3565
|
-
})), d = c.map(({ uuid:
|
|
3574
|
+
})), d = c.map(({ uuid: r }) => r);
|
|
3566
3575
|
this.dispatch(as(c));
|
|
3567
3576
|
const l = this.enqueueRequest({
|
|
3568
3577
|
description: "Bulk create asset stage completions",
|
|
@@ -3573,21 +3582,21 @@ class KA extends I {
|
|
|
3573
3582
|
completions: a
|
|
3574
3583
|
},
|
|
3575
3584
|
blockers: [
|
|
3576
|
-
...e.map((
|
|
3577
|
-
...e.map((
|
|
3578
|
-
...e.map((
|
|
3585
|
+
...e.map((r) => r.asset_procedure_instance),
|
|
3586
|
+
...e.map((r) => r.stage),
|
|
3587
|
+
...e.map((r) => r.asset)
|
|
3579
3588
|
],
|
|
3580
3589
|
blocks: d
|
|
3581
3590
|
});
|
|
3582
|
-
return l.then((
|
|
3583
|
-
this.dispatch(
|
|
3591
|
+
return l.then((r) => {
|
|
3592
|
+
this.dispatch(mr(r));
|
|
3584
3593
|
}).catch(() => {
|
|
3585
|
-
this.dispatch(
|
|
3594
|
+
this.dispatch(rs(d));
|
|
3586
3595
|
}), [c, l];
|
|
3587
3596
|
}
|
|
3588
3597
|
bulkDelete(e) {
|
|
3589
|
-
const { store: s } = this.client, i =
|
|
3590
|
-
this.dispatch(
|
|
3598
|
+
const { store: s } = this.client, i = yr(e)(s.getState());
|
|
3599
|
+
this.dispatch(rs(e));
|
|
3591
3600
|
const n = this.enqueueRequest({
|
|
3592
3601
|
description: "Deleting asset stage completions",
|
|
3593
3602
|
method: u.DELETE,
|
|
@@ -3613,10 +3622,10 @@ class KA extends I {
|
|
|
3613
3622
|
blockers: [],
|
|
3614
3623
|
blocks: []
|
|
3615
3624
|
});
|
|
3616
|
-
this.dispatch(
|
|
3625
|
+
this.dispatch(lr(s));
|
|
3617
3626
|
}
|
|
3618
3627
|
}
|
|
3619
|
-
class
|
|
3628
|
+
class JA extends I {
|
|
3620
3629
|
bulkAdd(e, s) {
|
|
3621
3630
|
const i = (/* @__PURE__ */ new Date()).toISOString(), n = this.client.store.getState().userReducer.currentUser.uuid, a = e.map((l) => O(l)), c = a.map((l) => ({ ...l, asset_procedure: s, created_by: n, submitted_at: i }));
|
|
3622
3631
|
this.dispatch(ds(c));
|
|
@@ -3671,7 +3680,7 @@ class YA extends I {
|
|
|
3671
3680
|
}), n;
|
|
3672
3681
|
}
|
|
3673
3682
|
update(e) {
|
|
3674
|
-
const { store: s } = this.client, i =
|
|
3683
|
+
const { store: s } = this.client, i = Sr(e.uuid)(s.getState());
|
|
3675
3684
|
if (!i) throw new Error(`No asset stage with uuid ${e.uuid} found in the store`);
|
|
3676
3685
|
const n = {
|
|
3677
3686
|
...i,
|
|
@@ -3694,7 +3703,7 @@ class YA extends I {
|
|
|
3694
3703
|
return a.then((c) => {
|
|
3695
3704
|
this.dispatch(us(c));
|
|
3696
3705
|
}).catch(() => {
|
|
3697
|
-
this.dispatch(
|
|
3706
|
+
this.dispatch(br(i));
|
|
3698
3707
|
}), [n, a];
|
|
3699
3708
|
}
|
|
3700
3709
|
async refreshStore(e) {
|
|
@@ -3708,20 +3717,20 @@ class YA extends I {
|
|
|
3708
3717
|
blockers: [],
|
|
3709
3718
|
blocks: []
|
|
3710
3719
|
});
|
|
3711
|
-
this.dispatch(
|
|
3720
|
+
this.dispatch(Ar(s));
|
|
3712
3721
|
}
|
|
3713
3722
|
}
|
|
3714
|
-
class
|
|
3723
|
+
class QA extends _e {
|
|
3715
3724
|
constructor() {
|
|
3716
3725
|
super(...arguments);
|
|
3717
3726
|
y(this, "name", "Asset Type Attachment");
|
|
3718
3727
|
y(this, "url", "/asset-type-attachments");
|
|
3719
3728
|
y(this, "addAttachments", fn);
|
|
3720
|
-
y(this, "updateAttachments",
|
|
3729
|
+
y(this, "updateAttachments", Or);
|
|
3721
3730
|
y(this, "removeAttachments", yn);
|
|
3722
|
-
y(this, "removeAttachment",
|
|
3723
|
-
y(this, "setAttachment",
|
|
3724
|
-
y(this, "selectAttachment",
|
|
3731
|
+
y(this, "removeAttachment", Ir);
|
|
3732
|
+
y(this, "setAttachment", _r);
|
|
3733
|
+
y(this, "selectAttachment", vr);
|
|
3725
3734
|
}
|
|
3726
3735
|
buildOfflineAttachment(s) {
|
|
3727
3736
|
return O({
|
|
@@ -3758,15 +3767,15 @@ class JA extends _e {
|
|
|
3758
3767
|
blocks: [],
|
|
3759
3768
|
blockers: []
|
|
3760
3769
|
});
|
|
3761
|
-
this.dispatch(
|
|
3770
|
+
this.dispatch(Rr(i));
|
|
3762
3771
|
}
|
|
3763
3772
|
}
|
|
3764
|
-
class
|
|
3773
|
+
class XA extends E {
|
|
3765
3774
|
async bulkAdd(e) {
|
|
3766
3775
|
var l;
|
|
3767
3776
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
|
|
3768
|
-
for (const
|
|
3769
|
-
const { fieldsRevisionUuid:
|
|
3777
|
+
for (const r of e) {
|
|
3778
|
+
const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
|
|
3770
3779
|
f.sha1 in n || (n[f.sha1] = f);
|
|
3771
3780
|
const S = O({
|
|
3772
3781
|
file: URL.createObjectURL(m),
|
|
@@ -3774,7 +3783,7 @@ class QA extends E {
|
|
|
3774
3783
|
file_name: m.name,
|
|
3775
3784
|
file_sha1: f.sha1,
|
|
3776
3785
|
created_by: i,
|
|
3777
|
-
fields_revision:
|
|
3786
|
+
fields_revision: o,
|
|
3778
3787
|
submitted_at: s,
|
|
3779
3788
|
field_identifier: h
|
|
3780
3789
|
});
|
|
@@ -3785,11 +3794,11 @@ class QA extends E {
|
|
|
3785
3794
|
field_identifier: h,
|
|
3786
3795
|
file_extension: f.extension,
|
|
3787
3796
|
file_sha1: f.sha1,
|
|
3788
|
-
fields_revision:
|
|
3797
|
+
fields_revision: o
|
|
3789
3798
|
};
|
|
3790
3799
|
c.push(R);
|
|
3791
3800
|
}
|
|
3792
|
-
this.dispatch(
|
|
3801
|
+
this.dispatch(qr(a));
|
|
3793
3802
|
const d = this.enqueueRequest({
|
|
3794
3803
|
description: "Add asset type fields attachments",
|
|
3795
3804
|
method: u.POST,
|
|
@@ -3799,18 +3808,18 @@ class QA extends E {
|
|
|
3799
3808
|
attachments: c,
|
|
3800
3809
|
files: Object.values(n)
|
|
3801
3810
|
},
|
|
3802
|
-
blockers: a.map((
|
|
3803
|
-
blocks: a.map((
|
|
3811
|
+
blockers: a.map((r) => r.fields_revision),
|
|
3812
|
+
blocks: a.map((r) => r.uuid)
|
|
3804
3813
|
});
|
|
3805
|
-
return d.then((
|
|
3806
|
-
this.processPresignedUrls(
|
|
3814
|
+
return d.then((r) => {
|
|
3815
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(jr(r.attachments));
|
|
3807
3816
|
}).catch(() => {
|
|
3808
3817
|
this.dispatch(
|
|
3809
|
-
|
|
3810
|
-
a.map((
|
|
3818
|
+
Mr(
|
|
3819
|
+
a.map((r) => r.uuid)
|
|
3811
3820
|
)
|
|
3812
3821
|
);
|
|
3813
|
-
}), [a, d.then(({ attachments:
|
|
3822
|
+
}), [a, d.then(({ attachments: r }) => r)];
|
|
3814
3823
|
}
|
|
3815
3824
|
async refreshStore(e) {
|
|
3816
3825
|
const s = await this.enqueueRequest({
|
|
@@ -3823,10 +3832,10 @@ class QA extends E {
|
|
|
3823
3832
|
blockers: [e],
|
|
3824
3833
|
blocks: []
|
|
3825
3834
|
});
|
|
3826
|
-
this.dispatch(
|
|
3835
|
+
this.dispatch(kr(s));
|
|
3827
3836
|
}
|
|
3828
3837
|
}
|
|
3829
|
-
class
|
|
3838
|
+
class ZA extends I {
|
|
3830
3839
|
add(e) {
|
|
3831
3840
|
var d;
|
|
3832
3841
|
const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
@@ -3834,7 +3843,7 @@ class XA extends I {
|
|
|
3834
3843
|
created_by: i,
|
|
3835
3844
|
submitted_at: n
|
|
3836
3845
|
});
|
|
3837
|
-
this.dispatch(
|
|
3846
|
+
this.dispatch(Ur(a));
|
|
3838
3847
|
const c = this.enqueueRequest({
|
|
3839
3848
|
description: "Add Asset Type Fields",
|
|
3840
3849
|
method: u.POST,
|
|
@@ -3844,9 +3853,9 @@ class XA extends I {
|
|
|
3844
3853
|
blocks: [a.uuid]
|
|
3845
3854
|
});
|
|
3846
3855
|
return c.then((l) => {
|
|
3847
|
-
this.dispatch(
|
|
3856
|
+
this.dispatch($r(l));
|
|
3848
3857
|
}).catch((l) => {
|
|
3849
|
-
throw this.dispatch(
|
|
3858
|
+
throw this.dispatch(Vr(a.uuid)), l;
|
|
3850
3859
|
}), [a, c];
|
|
3851
3860
|
}
|
|
3852
3861
|
async refreshStore(e) {
|
|
@@ -3860,16 +3869,16 @@ class XA extends I {
|
|
|
3860
3869
|
blockers: [],
|
|
3861
3870
|
blocks: []
|
|
3862
3871
|
});
|
|
3863
|
-
this.dispatch(
|
|
3872
|
+
this.dispatch(zr(s));
|
|
3864
3873
|
}
|
|
3865
3874
|
}
|
|
3866
|
-
class
|
|
3875
|
+
class eb extends E {
|
|
3867
3876
|
async bulkAdd(e, s) {
|
|
3868
|
-
var
|
|
3869
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), n = (
|
|
3870
|
-
for (const
|
|
3877
|
+
var r;
|
|
3878
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid, a = $e(e, s ?? e.length), c = [], d = [];
|
|
3879
|
+
for (const o of a) {
|
|
3871
3880
|
const h = {}, m = [];
|
|
3872
|
-
for (const f of
|
|
3881
|
+
for (const f of o) {
|
|
3873
3882
|
const { fieldValuesUuid: S, fieldIdentifier: R, file: g } = f, F = await this.getFilePayload(g);
|
|
3874
3883
|
F.sha1 in h || (h[F.sha1] = F);
|
|
3875
3884
|
const k = O({
|
|
@@ -3900,31 +3909,31 @@ class ZA extends E {
|
|
|
3900
3909
|
});
|
|
3901
3910
|
}
|
|
3902
3911
|
this.dispatch(pt(c));
|
|
3903
|
-
const l = d.map((
|
|
3912
|
+
const l = d.map((o) => this.enqueueRequest({
|
|
3904
3913
|
description: "Add asset type field values attachments",
|
|
3905
3914
|
method: u.POST,
|
|
3906
3915
|
url: "/asset-type-field-values-attachments/bulk/",
|
|
3907
|
-
payload:
|
|
3908
|
-
blockers:
|
|
3909
|
-
blocks:
|
|
3916
|
+
payload: o,
|
|
3917
|
+
blockers: o.attachments.map((h) => h.field_values),
|
|
3918
|
+
blocks: o.attachments.map((h) => h.uuid)
|
|
3910
3919
|
}));
|
|
3911
|
-
return Promise.all(l).then((
|
|
3912
|
-
for (const m of
|
|
3913
|
-
const h =
|
|
3914
|
-
this.dispatch(
|
|
3915
|
-
}).catch((
|
|
3920
|
+
return Promise.all(l).then((o) => {
|
|
3921
|
+
for (const m of o) this.processPresignedUrls(m.presigned_urls);
|
|
3922
|
+
const h = o.flatMap((m) => m.attachments);
|
|
3923
|
+
this.dispatch(Nr(h));
|
|
3924
|
+
}).catch((o) => {
|
|
3916
3925
|
throw this.dispatch(
|
|
3917
3926
|
ft(
|
|
3918
3927
|
c.map((h) => h.uuid)
|
|
3919
3928
|
)
|
|
3920
|
-
),
|
|
3929
|
+
), o;
|
|
3921
3930
|
}), [
|
|
3922
3931
|
c,
|
|
3923
|
-
l.map((
|
|
3932
|
+
l.map((o) => o.then(({ attachments: h }) => h))
|
|
3924
3933
|
];
|
|
3925
3934
|
}
|
|
3926
3935
|
async bulkDelete(e) {
|
|
3927
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3936
|
+
const { store: s } = this.client, i = s.getState(), n = Wr(e)(i);
|
|
3928
3937
|
this.dispatch(ft(e));
|
|
3929
3938
|
try {
|
|
3930
3939
|
await this.enqueueRequest({
|
|
@@ -3950,10 +3959,10 @@ class ZA extends E {
|
|
|
3950
3959
|
blockers: [],
|
|
3951
3960
|
blocks: []
|
|
3952
3961
|
});
|
|
3953
|
-
this.dispatch(
|
|
3962
|
+
this.dispatch(Br(s));
|
|
3954
3963
|
}
|
|
3955
3964
|
}
|
|
3956
|
-
class
|
|
3965
|
+
class tb extends I {
|
|
3957
3966
|
add(e) {
|
|
3958
3967
|
var c;
|
|
3959
3968
|
const { store: s } = this.client, i = s.getState(), n = O({
|
|
@@ -3964,7 +3973,7 @@ class eb extends I {
|
|
|
3964
3973
|
description: "Add asset type field values",
|
|
3965
3974
|
method: u.POST,
|
|
3966
3975
|
url: "/asset-type-field-values/",
|
|
3967
|
-
payload:
|
|
3976
|
+
payload: P(n),
|
|
3968
3977
|
blockers: [e.asset, e.fields_revision],
|
|
3969
3978
|
blocks: [n.uuid]
|
|
3970
3979
|
});
|
|
@@ -3973,15 +3982,15 @@ class eb extends I {
|
|
|
3973
3982
|
}), [n, a];
|
|
3974
3983
|
}
|
|
3975
3984
|
bulkAdd(e, s) {
|
|
3976
|
-
var
|
|
3985
|
+
var r;
|
|
3977
3986
|
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = st(e.values), a = [], c = $e(e.payloads, s ?? e.payloads.length), d = [];
|
|
3978
|
-
for (const
|
|
3987
|
+
for (const o of c) {
|
|
3979
3988
|
const h = [];
|
|
3980
|
-
for (const m of
|
|
3989
|
+
for (const m of o) {
|
|
3981
3990
|
const f = O({
|
|
3982
3991
|
...m,
|
|
3983
3992
|
values: st(m.values).values,
|
|
3984
|
-
created_by: (
|
|
3993
|
+
created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid,
|
|
3985
3994
|
submitted_at: i
|
|
3986
3995
|
});
|
|
3987
3996
|
a.push(f), h.push({
|
|
@@ -3998,23 +4007,23 @@ class eb extends I {
|
|
|
3998
4007
|
field_values: h
|
|
3999
4008
|
});
|
|
4000
4009
|
}
|
|
4001
|
-
this.dispatch(
|
|
4010
|
+
this.dispatch(Qr(a));
|
|
4002
4011
|
const l = [];
|
|
4003
|
-
for (const
|
|
4004
|
-
const h =
|
|
4012
|
+
for (const o of d) {
|
|
4013
|
+
const h = o.field_values.map((R) => R.asset), m = o.field_values.map((R) => R.fields_revision), f = o.field_values.map((R) => R.uuid), S = this.enqueueRequest({
|
|
4005
4014
|
description: "Bulk add asset type field values",
|
|
4006
4015
|
method: u.POST,
|
|
4007
4016
|
url: "/asset-type-field-values/bulk/",
|
|
4008
|
-
payload:
|
|
4017
|
+
payload: o,
|
|
4009
4018
|
blockers: [...h, ...m],
|
|
4010
4019
|
blocks: f
|
|
4011
4020
|
});
|
|
4012
4021
|
l.push(S);
|
|
4013
4022
|
}
|
|
4014
|
-
return Promise.all(l).then((
|
|
4015
|
-
this.dispatch(
|
|
4023
|
+
return Promise.all(l).then((o) => {
|
|
4024
|
+
this.dispatch(Xr(o.flat()));
|
|
4016
4025
|
}).catch(() => {
|
|
4017
|
-
this.dispatch(
|
|
4026
|
+
this.dispatch(Zr(a.map((o) => o.uuid)));
|
|
4018
4027
|
}), [a, l];
|
|
4019
4028
|
}
|
|
4020
4029
|
update(e) {
|
|
@@ -4048,7 +4057,7 @@ class eb extends I {
|
|
|
4048
4057
|
const { store: s } = this.client, i = s.getState(), n = Ss(e)(i);
|
|
4049
4058
|
if (!n)
|
|
4050
4059
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
4051
|
-
const a =
|
|
4060
|
+
const a = Kr(e)(i);
|
|
4052
4061
|
this.dispatch(gs(e)), this.dispatch(ft(a.map((c) => c.uuid)));
|
|
4053
4062
|
try {
|
|
4054
4063
|
await this.enqueueRequest({
|
|
@@ -4073,10 +4082,10 @@ class eb extends I {
|
|
|
4073
4082
|
blockers: [],
|
|
4074
4083
|
blocks: []
|
|
4075
4084
|
});
|
|
4076
|
-
this.dispatch(
|
|
4085
|
+
this.dispatch(Jr(s));
|
|
4077
4086
|
}
|
|
4078
4087
|
}
|
|
4079
|
-
class
|
|
4088
|
+
class sb extends I {
|
|
4080
4089
|
add(e) {
|
|
4081
4090
|
const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
4082
4091
|
...e,
|
|
@@ -4088,7 +4097,7 @@ class tb extends I {
|
|
|
4088
4097
|
description: "Create asset type",
|
|
4089
4098
|
method: u.POST,
|
|
4090
4099
|
url: "/asset-types/",
|
|
4091
|
-
payload:
|
|
4100
|
+
payload: P(a),
|
|
4092
4101
|
blockers: [],
|
|
4093
4102
|
blocks: [a.uuid]
|
|
4094
4103
|
});
|
|
@@ -4130,15 +4139,15 @@ class tb extends I {
|
|
|
4130
4139
|
const { store: s } = this.client, i = s.getState(), n = Os(e)(i);
|
|
4131
4140
|
if (!n)
|
|
4132
4141
|
throw new Error(`Expected asset type with uuid ${e} to exist`);
|
|
4133
|
-
const a = un(e)(i), c =
|
|
4134
|
-
return this.dispatch(_s(e)), this.dispatch(
|
|
4142
|
+
const a = un(e)(i), c = wr(e)(i);
|
|
4143
|
+
return this.dispatch(_s(e)), this.dispatch(or(a.map((d) => d.uuid))), this.dispatch(yn(c.map(({ uuid: d }) => d))), this.enqueueRequest({
|
|
4135
4144
|
description: "Delete asset type",
|
|
4136
4145
|
method: u.DELETE,
|
|
4137
4146
|
url: `/asset-types/${e}/`,
|
|
4138
4147
|
blockers: [e],
|
|
4139
4148
|
blocks: []
|
|
4140
4149
|
}).catch((d) => {
|
|
4141
|
-
throw this.dispatch(Rs(n)), this.dispatch(
|
|
4150
|
+
throw this.dispatch(Rs(n)), this.dispatch(on(a)), this.dispatch(fn(c)), d;
|
|
4142
4151
|
});
|
|
4143
4152
|
}
|
|
4144
4153
|
async refreshStore(e) {
|
|
@@ -4152,10 +4161,10 @@ class tb extends I {
|
|
|
4152
4161
|
blockers: [],
|
|
4153
4162
|
blocks: []
|
|
4154
4163
|
});
|
|
4155
|
-
this.dispatch(
|
|
4164
|
+
this.dispatch(so(s));
|
|
4156
4165
|
}
|
|
4157
4166
|
}
|
|
4158
|
-
class
|
|
4167
|
+
class ib extends I {
|
|
4159
4168
|
add(e) {
|
|
4160
4169
|
var d;
|
|
4161
4170
|
const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
@@ -4163,23 +4172,23 @@ class sb extends I {
|
|
|
4163
4172
|
created_by: i,
|
|
4164
4173
|
submitted_at: n
|
|
4165
4174
|
});
|
|
4166
|
-
this.dispatch(
|
|
4175
|
+
this.dispatch(Ps(a));
|
|
4167
4176
|
const c = this.enqueueRequest({
|
|
4168
4177
|
description: "Create Category",
|
|
4169
4178
|
method: u.POST,
|
|
4170
4179
|
url: "/categories/",
|
|
4171
|
-
payload:
|
|
4180
|
+
payload: P(a),
|
|
4172
4181
|
blockers: [e.project],
|
|
4173
4182
|
blocks: [a.uuid]
|
|
4174
4183
|
});
|
|
4175
4184
|
return [a, c];
|
|
4176
4185
|
}
|
|
4177
4186
|
update(e) {
|
|
4178
|
-
const s = this.client.store.getState(), i =
|
|
4187
|
+
const s = this.client.store.getState(), i = vs(e.uuid)(s);
|
|
4179
4188
|
if (!i)
|
|
4180
4189
|
throw new Error(`Expected an existing category with uuid ${e.uuid}`);
|
|
4181
4190
|
const n = { ...i, ...e };
|
|
4182
|
-
this.dispatch(
|
|
4191
|
+
this.dispatch(ro(n));
|
|
4183
4192
|
const a = this.enqueueRequest({
|
|
4184
4193
|
description: "Edit Category",
|
|
4185
4194
|
method: u.PATCH,
|
|
@@ -4191,10 +4200,10 @@ class sb extends I {
|
|
|
4191
4200
|
return [n, a];
|
|
4192
4201
|
}
|
|
4193
4202
|
remove(e) {
|
|
4194
|
-
const { store: s } = this.client, i =
|
|
4203
|
+
const { store: s } = this.client, i = vs(e)(s.getState());
|
|
4195
4204
|
if (!i)
|
|
4196
4205
|
throw new Error(`No category with uuid ${e} found in the store`);
|
|
4197
|
-
this.dispatch(
|
|
4206
|
+
this.dispatch(oo(e));
|
|
4198
4207
|
const n = this.enqueueRequest({
|
|
4199
4208
|
description: "Delete Category",
|
|
4200
4209
|
method: u.DELETE,
|
|
@@ -4203,7 +4212,7 @@ class sb extends I {
|
|
|
4203
4212
|
blocks: []
|
|
4204
4213
|
});
|
|
4205
4214
|
return n.catch(() => {
|
|
4206
|
-
this.dispatch(
|
|
4215
|
+
this.dispatch(Ps(i));
|
|
4207
4216
|
}), n;
|
|
4208
4217
|
}
|
|
4209
4218
|
async refreshStore(e) {
|
|
@@ -4217,20 +4226,20 @@ class sb extends I {
|
|
|
4217
4226
|
blocks: [],
|
|
4218
4227
|
blockers: []
|
|
4219
4228
|
});
|
|
4220
|
-
this.dispatch(
|
|
4229
|
+
this.dispatch(co(s));
|
|
4221
4230
|
}
|
|
4222
4231
|
}
|
|
4223
|
-
class
|
|
4232
|
+
class nb extends _e {
|
|
4224
4233
|
constructor() {
|
|
4225
4234
|
super(...arguments);
|
|
4226
4235
|
y(this, "name", "Document Attachment");
|
|
4227
4236
|
y(this, "url", "/document-attachments");
|
|
4228
|
-
y(this, "addAttachments",
|
|
4229
|
-
y(this, "updateAttachments",
|
|
4230
|
-
y(this, "removeAttachments",
|
|
4231
|
-
y(this, "removeAttachment",
|
|
4232
|
-
y(this, "setAttachment",
|
|
4233
|
-
y(this, "selectAttachment",
|
|
4237
|
+
y(this, "addAttachments", ho);
|
|
4238
|
+
y(this, "updateAttachments", po);
|
|
4239
|
+
y(this, "removeAttachments", yo);
|
|
4240
|
+
y(this, "removeAttachment", fo);
|
|
4241
|
+
y(this, "setAttachment", mo);
|
|
4242
|
+
y(this, "selectAttachment", go);
|
|
4234
4243
|
}
|
|
4235
4244
|
buildOfflineAttachment(s) {
|
|
4236
4245
|
return O({
|
|
@@ -4253,10 +4262,10 @@ class ib extends _e {
|
|
|
4253
4262
|
// NOTE: overriding the method from BaseAttachmentService since document attachments get vectorized
|
|
4254
4263
|
async bulkAdd(s) {
|
|
4255
4264
|
var h;
|
|
4256
|
-
const { store: i } = this.client, n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, a = (/* @__PURE__ */ new Date()).toISOString(), c = [], d = [], l = {},
|
|
4265
|
+
const { store: i } = this.client, n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, a = (/* @__PURE__ */ new Date()).toISOString(), c = [], d = [], l = {}, r = {};
|
|
4257
4266
|
for (const m of s) {
|
|
4258
4267
|
const { documentUuid: f, file: S } = m, R = await this.getFilePayload(S);
|
|
4259
|
-
R.sha1 in l || (l[R.sha1] = R,
|
|
4268
|
+
R.sha1 in l || (l[R.sha1] = R, r[R.sha1] = []);
|
|
4260
4269
|
const g = this.buildOfflineAttachment({
|
|
4261
4270
|
file: S,
|
|
4262
4271
|
file_sha1: R.sha1,
|
|
@@ -4272,10 +4281,10 @@ class ib extends _e {
|
|
|
4272
4281
|
file_extension: R.extension,
|
|
4273
4282
|
description: g.description,
|
|
4274
4283
|
document: f
|
|
4275
|
-
}),
|
|
4284
|
+
}), r[R.sha1].push(g.uuid);
|
|
4276
4285
|
}
|
|
4277
4286
|
this.dispatch(this.addAttachments(c));
|
|
4278
|
-
const
|
|
4287
|
+
const o = this.enqueueRequest({
|
|
4279
4288
|
description: "Attach files to document",
|
|
4280
4289
|
method: u.POST,
|
|
4281
4290
|
url: "/document-attachments/bulk/",
|
|
@@ -4287,18 +4296,18 @@ class ib extends _e {
|
|
|
4287
4296
|
blocks: c.map((m) => m.uuid),
|
|
4288
4297
|
blockers: c.map((m) => m.file_sha1)
|
|
4289
4298
|
});
|
|
4290
|
-
return
|
|
4299
|
+
return o.then(({ attachments: m, presigned_urls: f }) => {
|
|
4291
4300
|
this.dispatch(this.updateAttachments(m));
|
|
4292
4301
|
const S = this.processPresignedUrls(f);
|
|
4293
4302
|
for (const [R, g] of Object.entries(S))
|
|
4294
4303
|
g.then(() => {
|
|
4295
|
-
const F =
|
|
4304
|
+
const F = r[R];
|
|
4296
4305
|
for (const k of F)
|
|
4297
4306
|
this.makeReadable(k);
|
|
4298
4307
|
});
|
|
4299
4308
|
}).catch(() => {
|
|
4300
4309
|
this.dispatch(this.removeAttachments(c.map((m) => m.uuid)));
|
|
4301
|
-
}), [c,
|
|
4310
|
+
}), [c, o.then(({ attachments: m }) => m)];
|
|
4302
4311
|
}
|
|
4303
4312
|
async delete(s) {
|
|
4304
4313
|
return this._delete(s);
|
|
@@ -4324,7 +4333,7 @@ class ib extends _e {
|
|
|
4324
4333
|
blocks: [],
|
|
4325
4334
|
blockers: []
|
|
4326
4335
|
});
|
|
4327
|
-
this.dispatch(
|
|
4336
|
+
this.dispatch(lo(n));
|
|
4328
4337
|
const a = await this.enqueueRequest({
|
|
4329
4338
|
description: "Get document attachments",
|
|
4330
4339
|
method: u.GET,
|
|
@@ -4335,7 +4344,7 @@ class ib extends _e {
|
|
|
4335
4344
|
this.dispatch(this.addAttachments(a));
|
|
4336
4345
|
}
|
|
4337
4346
|
}
|
|
4338
|
-
class
|
|
4347
|
+
class ab extends I {
|
|
4339
4348
|
add(e) {
|
|
4340
4349
|
var d;
|
|
4341
4350
|
const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
@@ -4343,12 +4352,12 @@ class nb extends I {
|
|
|
4343
4352
|
created_by: i,
|
|
4344
4353
|
submitted_at: n
|
|
4345
4354
|
});
|
|
4346
|
-
this.dispatch(
|
|
4355
|
+
this.dispatch(Ro([a]));
|
|
4347
4356
|
const c = this.enqueueRequest({
|
|
4348
4357
|
description: "Create Document",
|
|
4349
4358
|
method: u.POST,
|
|
4350
4359
|
url: "/documents/",
|
|
4351
|
-
payload:
|
|
4360
|
+
payload: P(a),
|
|
4352
4361
|
queryParams: {
|
|
4353
4362
|
parent_document: a.parent_document ?? void 0
|
|
4354
4363
|
},
|
|
@@ -4390,14 +4399,14 @@ class nb extends I {
|
|
|
4390
4399
|
`attempting to move a document with uuid ${e} that does not exist in store.documents`
|
|
4391
4400
|
);
|
|
4392
4401
|
if (c.push(d), d.parent_document && c.push(a[d.parent_document]), s) {
|
|
4393
|
-
const
|
|
4394
|
-
if (!
|
|
4402
|
+
const r = a[s];
|
|
4403
|
+
if (!r)
|
|
4395
4404
|
throw new Error(
|
|
4396
4405
|
`attempting to move a document to target with uuid ${s} that does not exist in store.documents`
|
|
4397
4406
|
);
|
|
4398
|
-
c.push(
|
|
4407
|
+
c.push(r), r.parent_document && c.push(a[r.parent_document]);
|
|
4399
4408
|
}
|
|
4400
|
-
this.dispatch(
|
|
4409
|
+
this.dispatch(_o({ documentId: e, targetDocumentId: s, position: i }));
|
|
4401
4410
|
const l = this.enqueueRequest({
|
|
4402
4411
|
description: "Move Document",
|
|
4403
4412
|
method: u.PATCH,
|
|
@@ -4409,14 +4418,14 @@ class nb extends I {
|
|
|
4409
4418
|
blockers: [e],
|
|
4410
4419
|
blocks: []
|
|
4411
4420
|
});
|
|
4412
|
-
return l.then((
|
|
4413
|
-
this.dispatch(ye(
|
|
4421
|
+
return l.then((r) => {
|
|
4422
|
+
this.dispatch(ye(r));
|
|
4414
4423
|
}).catch(() => {
|
|
4415
4424
|
this.dispatch(ye(c));
|
|
4416
4425
|
}), l;
|
|
4417
4426
|
}
|
|
4418
4427
|
delete(e) {
|
|
4419
|
-
const { store: s } = this.client, i = De(s.getState()), n =
|
|
4428
|
+
const { store: s } = this.client, i = De(s.getState()), n = Io(e)(s.getState());
|
|
4420
4429
|
if (!n)
|
|
4421
4430
|
throw new Error(`attempting to delete a document with uuid ${e} that does not exist in store.documents`);
|
|
4422
4431
|
const a = n.parent_document ? i[n.parent_document] : void 0;
|
|
@@ -4448,10 +4457,10 @@ class nb extends I {
|
|
|
4448
4457
|
blockers: [],
|
|
4449
4458
|
blocks: []
|
|
4450
4459
|
});
|
|
4451
|
-
this.dispatch(
|
|
4460
|
+
this.dispatch(To([...await i, ...await n]));
|
|
4452
4461
|
}
|
|
4453
4462
|
}
|
|
4454
|
-
class
|
|
4463
|
+
class cb extends I {
|
|
4455
4464
|
async add(e, s) {
|
|
4456
4465
|
return this.enqueueRequest({
|
|
4457
4466
|
description: "Add email domain to organization",
|
|
@@ -4463,14 +4472,14 @@ class ab extends I {
|
|
|
4463
4472
|
});
|
|
4464
4473
|
}
|
|
4465
4474
|
async remove(e) {
|
|
4466
|
-
return this.dispatch(
|
|
4475
|
+
return this.dispatch(Eo(e.uuid)), this.enqueueRequest({
|
|
4467
4476
|
description: "Remove email domain from organization",
|
|
4468
4477
|
method: u.DELETE,
|
|
4469
4478
|
url: `/organizations/${e.organization}/email-domains/${e.uuid}/`,
|
|
4470
4479
|
blockers: [e.domain],
|
|
4471
4480
|
blocks: []
|
|
4472
4481
|
}).catch((s) => {
|
|
4473
|
-
throw this.dispatch(
|
|
4482
|
+
throw this.dispatch(wo(e)), s;
|
|
4474
4483
|
});
|
|
4475
4484
|
}
|
|
4476
4485
|
async refreshStore(e) {
|
|
@@ -4481,10 +4490,10 @@ class ab extends I {
|
|
|
4481
4490
|
blockers: [e],
|
|
4482
4491
|
blocks: []
|
|
4483
4492
|
});
|
|
4484
|
-
this.dispatch(
|
|
4493
|
+
this.dispatch(vo(s));
|
|
4485
4494
|
}
|
|
4486
4495
|
}
|
|
4487
|
-
class
|
|
4496
|
+
class rb extends I {
|
|
4488
4497
|
async getVerificationCode(e) {
|
|
4489
4498
|
return this.enqueueRequest({
|
|
4490
4499
|
description: "Get verification code",
|
|
@@ -4507,9 +4516,9 @@ class cb extends I {
|
|
|
4507
4516
|
});
|
|
4508
4517
|
}
|
|
4509
4518
|
}
|
|
4510
|
-
const Qe = {},
|
|
4519
|
+
const Qe = {}, ot = /* @__PURE__ */ new Set();
|
|
4511
4520
|
let Xe = 0, dt = 0, ut = 0;
|
|
4512
|
-
const
|
|
4521
|
+
const Ph = 20;
|
|
4513
4522
|
class ob extends I {
|
|
4514
4523
|
constructor() {
|
|
4515
4524
|
super(...arguments);
|
|
@@ -4538,7 +4547,7 @@ class ob extends I {
|
|
|
4538
4547
|
blockers: [],
|
|
4539
4548
|
blocks: [`s3-${n}`]
|
|
4540
4549
|
});
|
|
4541
|
-
return "url" in a && this.dispatch(
|
|
4550
|
+
return "url" in a && this.dispatch(Co({ sha1: s, ...a })), a;
|
|
4542
4551
|
}
|
|
4543
4552
|
/**
|
|
4544
4553
|
* Adds a file to the cache using the sha1 hash as the key and returns the sha1 hash.
|
|
@@ -4547,7 +4556,7 @@ class ob extends I {
|
|
|
4547
4556
|
* @param sha1 The sha1 hash of the file to cache.
|
|
4548
4557
|
*/
|
|
4549
4558
|
async addCache(s, i) {
|
|
4550
|
-
if (
|
|
4559
|
+
if (ot.has(i))
|
|
4551
4560
|
return;
|
|
4552
4561
|
if (!s.type) {
|
|
4553
4562
|
const c = s.name.split("."), d = c[c.length - 1];
|
|
@@ -4556,19 +4565,19 @@ class ob extends I {
|
|
|
4556
4565
|
if (!s.name || !s.size || !s.type)
|
|
4557
4566
|
throw new Error("Cannot add files to cache that do not have a name, size and type.");
|
|
4558
4567
|
const n = await this._dbPromise;
|
|
4559
|
-
!!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Xe++) : (await n.put("files", s, i), dt++),
|
|
4568
|
+
!!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Xe++) : (await n.put("files", s, i), dt++), ot.add(i), ut++, ut % Ph === 0 && console.debug(
|
|
4560
4569
|
`File cache summary: ${Xe} hits and ${dt} misses, ${Xe / (Xe + dt) * 100}% hit rate over ${ut} calls to addCache.`
|
|
4561
4570
|
);
|
|
4562
4571
|
}
|
|
4563
4572
|
async removeCache(s) {
|
|
4564
|
-
await (await this._dbPromise).delete("files", s),
|
|
4573
|
+
await (await this._dbPromise).delete("files", s), ot.delete(s);
|
|
4565
4574
|
}
|
|
4566
4575
|
async fetchCache(s) {
|
|
4567
4576
|
return (await this._dbPromise).get("files", s);
|
|
4568
4577
|
}
|
|
4569
4578
|
async getOrRenewUploadUrl(s) {
|
|
4570
4579
|
const i = this.client.store.getState();
|
|
4571
|
-
return
|
|
4580
|
+
return Do(s)(i) ?? await this.renewUploadUrl(s);
|
|
4572
4581
|
}
|
|
4573
4582
|
/** Ensure the file has been added to the file cache before calling `uploadFileToS3()` */
|
|
4574
4583
|
async uploadFileToS3(s) {
|
|
@@ -4615,11 +4624,11 @@ class ob extends I {
|
|
|
4615
4624
|
return c;
|
|
4616
4625
|
}
|
|
4617
4626
|
if (s.startsWith("blob:")) {
|
|
4618
|
-
const
|
|
4627
|
+
const o = await lc(s), h = new File([o], n ?? i, { type: o.type });
|
|
4619
4628
|
return await this.addCache(h, i), h;
|
|
4620
4629
|
}
|
|
4621
4630
|
let d = Qe[a], l = !0;
|
|
4622
|
-
d ? l = !1 : (d = new Promise((
|
|
4631
|
+
d ? l = !1 : (d = new Promise((o) => {
|
|
4623
4632
|
this.enqueueRequest({
|
|
4624
4633
|
description: "Download file",
|
|
4625
4634
|
method: u.GET,
|
|
@@ -4633,19 +4642,19 @@ class ob extends I {
|
|
|
4633
4642
|
blocks: [i]
|
|
4634
4643
|
}).then((h) => {
|
|
4635
4644
|
const m = new File([h], n ?? i, { type: h.type });
|
|
4636
|
-
|
|
4645
|
+
o(m);
|
|
4637
4646
|
});
|
|
4638
4647
|
}), Qe[a] = d);
|
|
4639
|
-
let
|
|
4648
|
+
let r;
|
|
4640
4649
|
try {
|
|
4641
|
-
|
|
4642
|
-
} catch (
|
|
4643
|
-
throw l &&
|
|
4650
|
+
r = await d;
|
|
4651
|
+
} catch (o) {
|
|
4652
|
+
throw l && o instanceof j && delete Qe[a], o;
|
|
4644
4653
|
}
|
|
4645
4654
|
if (l) {
|
|
4646
|
-
const
|
|
4647
|
-
if (
|
|
4648
|
-
const f = `The hash of the file returned from the server (${
|
|
4655
|
+
const o = await Ce(r);
|
|
4656
|
+
if (o !== i) {
|
|
4657
|
+
const f = `The hash of the file returned from the server (${o}) does not match the
|
|
4649
4658
|
expected hash (${i}). This can happen if you're using a local development server and the
|
|
4650
4659
|
isExternalUrl flag in the request details is set to true, because instead of requesting the local
|
|
4651
4660
|
REST API, you will be requesting localhost:80 (where this app runs), resulting in a transformed blob
|
|
@@ -4654,25 +4663,25 @@ class ob extends I {
|
|
|
4654
4663
|
external URLs and therefore not prepended with VITE_API_URL.`;
|
|
4655
4664
|
throw new Error(f);
|
|
4656
4665
|
}
|
|
4657
|
-
const h =
|
|
4666
|
+
const h = r.type.split("/")[1];
|
|
4658
4667
|
if (!h)
|
|
4659
4668
|
throw new Error("File has no extension");
|
|
4660
|
-
const m = n ??
|
|
4661
|
-
if (
|
|
4669
|
+
const m = n ?? o + "." + h;
|
|
4670
|
+
if (r = uc(r, m), !r.name)
|
|
4662
4671
|
throw new Error("Failed to set file's name");
|
|
4663
|
-
await this.addCache(
|
|
4664
|
-
f(
|
|
4672
|
+
await this.addCache(r, o), Qe[a] = new Promise((f) => {
|
|
4673
|
+
f(r);
|
|
4665
4674
|
});
|
|
4666
4675
|
}
|
|
4667
|
-
return
|
|
4676
|
+
return r;
|
|
4668
4677
|
}
|
|
4669
4678
|
}
|
|
4670
|
-
class
|
|
4679
|
+
class db extends E {
|
|
4671
4680
|
async bulkAdd(e) {
|
|
4672
4681
|
var l;
|
|
4673
4682
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
|
|
4674
|
-
for (const
|
|
4675
|
-
const { revisionUuid:
|
|
4683
|
+
for (const r of e) {
|
|
4684
|
+
const { revisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
|
|
4676
4685
|
f.sha1 in n || (n[f.sha1] = f);
|
|
4677
4686
|
const S = O({
|
|
4678
4687
|
file: URL.createObjectURL(m),
|
|
@@ -4680,7 +4689,7 @@ class rb extends E {
|
|
|
4680
4689
|
file_name: m.name,
|
|
4681
4690
|
file_sha1: f.sha1,
|
|
4682
4691
|
created_by: i,
|
|
4683
|
-
form_revision:
|
|
4692
|
+
form_revision: o,
|
|
4684
4693
|
submitted_at: s,
|
|
4685
4694
|
field_identifier: h
|
|
4686
4695
|
});
|
|
@@ -4691,11 +4700,11 @@ class rb extends E {
|
|
|
4691
4700
|
field_identifier: h,
|
|
4692
4701
|
file_extension: f.extension,
|
|
4693
4702
|
file_sha1: f.sha1,
|
|
4694
|
-
form_revision:
|
|
4703
|
+
form_revision: o
|
|
4695
4704
|
};
|
|
4696
4705
|
c.push(R);
|
|
4697
4706
|
}
|
|
4698
|
-
this.dispatch(
|
|
4707
|
+
this.dispatch(Uo(a));
|
|
4699
4708
|
const d = this.enqueueRequest({
|
|
4700
4709
|
description: "Attach files to form revision",
|
|
4701
4710
|
method: u.POST,
|
|
@@ -4705,16 +4714,16 @@ class rb extends E {
|
|
|
4705
4714
|
attachments: c,
|
|
4706
4715
|
files: Object.values(n)
|
|
4707
4716
|
},
|
|
4708
|
-
blockers: a.map((
|
|
4709
|
-
blocks: a.map((
|
|
4717
|
+
blockers: a.map((r) => r.form_revision),
|
|
4718
|
+
blocks: a.map((r) => r.uuid)
|
|
4710
4719
|
});
|
|
4711
|
-
return d.then((
|
|
4712
|
-
this.processPresignedUrls(
|
|
4720
|
+
return d.then((r) => {
|
|
4721
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch($o(r.attachments));
|
|
4713
4722
|
}).catch(() => {
|
|
4714
4723
|
this.dispatch(
|
|
4715
|
-
|
|
4724
|
+
Vo(a.map((r) => r.uuid))
|
|
4716
4725
|
);
|
|
4717
|
-
}), [a, d.then(({ attachments:
|
|
4726
|
+
}), [a, d.then(({ attachments: r }) => r)];
|
|
4718
4727
|
}
|
|
4719
4728
|
async refreshStore(e) {
|
|
4720
4729
|
const s = await this.enqueueRequest({
|
|
@@ -4727,10 +4736,10 @@ class rb extends E {
|
|
|
4727
4736
|
blockers: [e],
|
|
4728
4737
|
blocks: []
|
|
4729
4738
|
});
|
|
4730
|
-
this.dispatch(
|
|
4739
|
+
this.dispatch(zo(s));
|
|
4731
4740
|
}
|
|
4732
4741
|
}
|
|
4733
|
-
class
|
|
4742
|
+
class ub extends E {
|
|
4734
4743
|
add(e) {
|
|
4735
4744
|
var d;
|
|
4736
4745
|
const { store: s } = this.client, n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, a = O({
|
|
@@ -4743,12 +4752,12 @@ class db extends E {
|
|
|
4743
4752
|
description: "Create form revision",
|
|
4744
4753
|
method: u.POST,
|
|
4745
4754
|
url: "/form-revisions/",
|
|
4746
|
-
payload:
|
|
4755
|
+
payload: P(a),
|
|
4747
4756
|
blockers: [e.form],
|
|
4748
4757
|
blocks: [a.uuid]
|
|
4749
4758
|
});
|
|
4750
4759
|
return c.then((l) => {
|
|
4751
|
-
this.dispatch(
|
|
4760
|
+
this.dispatch(No(l));
|
|
4752
4761
|
}).catch(() => {
|
|
4753
4762
|
this.dispatch(Cn(a.uuid));
|
|
4754
4763
|
}), [a, c];
|
|
@@ -4764,10 +4773,10 @@ class db extends E {
|
|
|
4764
4773
|
blockers: [e],
|
|
4765
4774
|
blocks: []
|
|
4766
4775
|
});
|
|
4767
|
-
this.dispatch(
|
|
4776
|
+
this.dispatch(Ho(s));
|
|
4768
4777
|
}
|
|
4769
4778
|
}
|
|
4770
|
-
const
|
|
4779
|
+
const lb = async (t) => {
|
|
4771
4780
|
const e = {}, s = [];
|
|
4772
4781
|
for (const i of t) {
|
|
4773
4782
|
if (i.type !== "section")
|
|
@@ -4791,10 +4800,10 @@ const ub = async (t) => {
|
|
|
4791
4800
|
}
|
|
4792
4801
|
return { fields: s, images: e };
|
|
4793
4802
|
};
|
|
4794
|
-
class
|
|
4803
|
+
class hb extends E {
|
|
4795
4804
|
add(e, s) {
|
|
4796
|
-
var
|
|
4797
|
-
const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (
|
|
4805
|
+
var r;
|
|
4806
|
+
const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (r = i.getState().userReducer.currentUser) == null ? void 0 : r.uuid, c = O({
|
|
4798
4807
|
...e,
|
|
4799
4808
|
submitted_at: n,
|
|
4800
4809
|
created_by: a
|
|
@@ -4810,7 +4819,7 @@ class lb extends E {
|
|
|
4810
4819
|
method: u.POST,
|
|
4811
4820
|
url: "/forms/",
|
|
4812
4821
|
payload: {
|
|
4813
|
-
...
|
|
4822
|
+
...P(c),
|
|
4814
4823
|
initial_revision: {
|
|
4815
4824
|
uuid: d.uuid,
|
|
4816
4825
|
submitted_at: d.submitted_at,
|
|
@@ -4822,8 +4831,8 @@ class lb extends E {
|
|
|
4822
4831
|
blockers: [],
|
|
4823
4832
|
blocks: [c.uuid, d.uuid]
|
|
4824
4833
|
});
|
|
4825
|
-
return l.catch((
|
|
4826
|
-
throw this.dispatch(xs(c.uuid)), this.dispatch(Cn(d.uuid)),
|
|
4834
|
+
return l.catch((o) => {
|
|
4835
|
+
throw this.dispatch(xs(c.uuid)), this.dispatch(Cn(d.uuid)), o;
|
|
4827
4836
|
}), [c, d, l];
|
|
4828
4837
|
}
|
|
4829
4838
|
async delete(e) {
|
|
@@ -4832,8 +4841,8 @@ class lb extends E {
|
|
|
4832
4841
|
throw new Error("Expected form to exist");
|
|
4833
4842
|
const a = dd(e)(i);
|
|
4834
4843
|
a.length > 0 && this.dispatch(Ft(a.map(({ uuid: d }) => d)));
|
|
4835
|
-
const c =
|
|
4836
|
-
c.length > 0 && this.dispatch(
|
|
4844
|
+
const c = Jo(e)(i);
|
|
4845
|
+
c.length > 0 && this.dispatch(Ko(c.map(({ uuid: d }) => d))), this.dispatch(xs(e));
|
|
4837
4846
|
try {
|
|
4838
4847
|
return await this.enqueueRequest({
|
|
4839
4848
|
description: "Delete form",
|
|
@@ -4843,7 +4852,7 @@ class lb extends E {
|
|
|
4843
4852
|
blocks: []
|
|
4844
4853
|
});
|
|
4845
4854
|
} catch (d) {
|
|
4846
|
-
throw this.dispatch(Ds(n)), c.length > 0 && this.dispatch(
|
|
4855
|
+
throw this.dispatch(Ds(n)), c.length > 0 && this.dispatch(Wo(c)), a.length > 0 && this.dispatch(It(a)), d;
|
|
4847
4856
|
}
|
|
4848
4857
|
}
|
|
4849
4858
|
async refreshStore(e) {
|
|
@@ -4857,15 +4866,15 @@ class lb extends E {
|
|
|
4857
4866
|
blockers: [e],
|
|
4858
4867
|
blocks: []
|
|
4859
4868
|
});
|
|
4860
|
-
this.dispatch(
|
|
4869
|
+
this.dispatch(Xo(s));
|
|
4861
4870
|
}
|
|
4862
4871
|
}
|
|
4863
|
-
class
|
|
4872
|
+
class mb extends E {
|
|
4864
4873
|
async bulkAdd(e) {
|
|
4865
4874
|
var l;
|
|
4866
4875
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
|
|
4867
|
-
for (const
|
|
4868
|
-
const { submissionUuid:
|
|
4876
|
+
for (const r of e) {
|
|
4877
|
+
const { submissionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
|
|
4869
4878
|
f.sha1 in n || (n[f.sha1] = f);
|
|
4870
4879
|
const S = O({
|
|
4871
4880
|
file: URL.createObjectURL(m),
|
|
@@ -4873,7 +4882,7 @@ class hb extends E {
|
|
|
4873
4882
|
file_name: m.name,
|
|
4874
4883
|
file_sha1: f.sha1,
|
|
4875
4884
|
created_by: i,
|
|
4876
|
-
form_submission:
|
|
4885
|
+
form_submission: o,
|
|
4877
4886
|
submitted_at: s,
|
|
4878
4887
|
field_identifier: h
|
|
4879
4888
|
});
|
|
@@ -4884,7 +4893,7 @@ class hb extends E {
|
|
|
4884
4893
|
file_sha1: f.sha1,
|
|
4885
4894
|
file_extension: f.extension,
|
|
4886
4895
|
field_identifier: h,
|
|
4887
|
-
form_submission:
|
|
4896
|
+
form_submission: o
|
|
4888
4897
|
};
|
|
4889
4898
|
c.push(R);
|
|
4890
4899
|
}
|
|
@@ -4898,18 +4907,18 @@ class hb extends E {
|
|
|
4898
4907
|
attachments: c,
|
|
4899
4908
|
files: Object.values(n)
|
|
4900
4909
|
},
|
|
4901
|
-
blockers: a.map((
|
|
4902
|
-
blocks: a.map((
|
|
4910
|
+
blockers: a.map((r) => r.form_submission),
|
|
4911
|
+
blocks: a.map((r) => r.uuid)
|
|
4903
4912
|
});
|
|
4904
|
-
return d.then((
|
|
4905
|
-
this.processPresignedUrls(
|
|
4906
|
-
}).catch((
|
|
4913
|
+
return d.then((r) => {
|
|
4914
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(id(r.attachments));
|
|
4915
|
+
}).catch((r) => {
|
|
4907
4916
|
throw this.dispatch(
|
|
4908
4917
|
At(
|
|
4909
|
-
a.map((
|
|
4918
|
+
a.map((o) => o.uuid)
|
|
4910
4919
|
)
|
|
4911
|
-
),
|
|
4912
|
-
}), [a, d.then(({ attachments:
|
|
4920
|
+
), r;
|
|
4921
|
+
}), [a, d.then(({ attachments: r }) => r)];
|
|
4913
4922
|
}
|
|
4914
4923
|
async bulkDelete(e) {
|
|
4915
4924
|
const { store: s } = this.client, i = s.getState(), n = nd(e)(i);
|
|
@@ -4941,10 +4950,10 @@ class hb extends E {
|
|
|
4941
4950
|
this.dispatch(sd(s));
|
|
4942
4951
|
}
|
|
4943
4952
|
}
|
|
4944
|
-
class
|
|
4953
|
+
class pb extends E {
|
|
4945
4954
|
async add(e) {
|
|
4946
4955
|
var h;
|
|
4947
|
-
const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), c = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.uuid, d = n.project, l = await this.getFilePayload(i),
|
|
4956
|
+
const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), c = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.uuid, d = n.project, l = await this.getFilePayload(i), r = O({
|
|
4948
4957
|
...n,
|
|
4949
4958
|
file_name: i.name,
|
|
4950
4959
|
file_sha1: l.sha1,
|
|
@@ -4952,40 +4961,40 @@ class mb extends E {
|
|
|
4952
4961
|
submitted_at: a,
|
|
4953
4962
|
created_by: c
|
|
4954
4963
|
});
|
|
4955
|
-
this.dispatch(fd(
|
|
4956
|
-
const
|
|
4964
|
+
this.dispatch(fd(r));
|
|
4965
|
+
const o = this.enqueueRequest({
|
|
4957
4966
|
description: "Add geo image",
|
|
4958
4967
|
method: u.POST,
|
|
4959
4968
|
url: "/geo-images/",
|
|
4960
4969
|
payload: {
|
|
4961
|
-
uuid:
|
|
4970
|
+
uuid: r.uuid,
|
|
4962
4971
|
submitted_at: a,
|
|
4963
|
-
title:
|
|
4964
|
-
description:
|
|
4965
|
-
geo_marker:
|
|
4966
|
-
canvas_marker:
|
|
4967
|
-
sha1:
|
|
4968
|
-
project:
|
|
4969
|
-
file_name:
|
|
4970
|
-
direction:
|
|
4971
|
-
original_date:
|
|
4972
|
+
title: r.title,
|
|
4973
|
+
description: r.description,
|
|
4974
|
+
geo_marker: r.geo_marker,
|
|
4975
|
+
canvas_marker: r.canvas_marker,
|
|
4976
|
+
sha1: r.file_sha1,
|
|
4977
|
+
project: r.project,
|
|
4978
|
+
file_name: r.file_name,
|
|
4979
|
+
direction: r.direction,
|
|
4980
|
+
original_date: r.original_date,
|
|
4972
4981
|
file: l
|
|
4973
4982
|
},
|
|
4974
4983
|
blocks: [d],
|
|
4975
4984
|
blockers: [d]
|
|
4976
4985
|
});
|
|
4977
|
-
return
|
|
4986
|
+
return o.then((m) => {
|
|
4978
4987
|
this.processPresignedUrls(m.presigned_urls), this.dispatch(Ke(m.geo_image));
|
|
4979
4988
|
}).catch(() => {
|
|
4980
|
-
this.dispatch(Bs(
|
|
4981
|
-
}), [
|
|
4989
|
+
this.dispatch(Bs(r.uuid));
|
|
4990
|
+
}), [r, o.then((m) => m.geo_image)];
|
|
4982
4991
|
}
|
|
4983
4992
|
async bulkAdd(e, s) {
|
|
4984
4993
|
var h;
|
|
4985
|
-
const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, c = [], d = [], l = [],
|
|
4994
|
+
const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, c = [], d = [], l = [], r = {};
|
|
4986
4995
|
for (const m of e) {
|
|
4987
4996
|
const { file: f, ...S } = m, R = await this.getFilePayload(f);
|
|
4988
|
-
R.sha1 in
|
|
4997
|
+
R.sha1 in r || (r[R.sha1] = R);
|
|
4989
4998
|
const g = O({
|
|
4990
4999
|
...S,
|
|
4991
5000
|
file_name: f.name,
|
|
@@ -5008,7 +5017,7 @@ class mb extends E {
|
|
|
5008
5017
|
});
|
|
5009
5018
|
}
|
|
5010
5019
|
this.dispatch(yd(c));
|
|
5011
|
-
const
|
|
5020
|
+
const o = this.enqueueRequest({
|
|
5012
5021
|
description: "Bulk add geo images",
|
|
5013
5022
|
method: u.POST,
|
|
5014
5023
|
url: "/geo-images/bulk/",
|
|
@@ -5016,16 +5025,16 @@ class mb extends E {
|
|
|
5016
5025
|
submitted_at: n,
|
|
5017
5026
|
project: s,
|
|
5018
5027
|
geo_images: l,
|
|
5019
|
-
files: Object.values(
|
|
5028
|
+
files: Object.values(r)
|
|
5020
5029
|
},
|
|
5021
5030
|
blocks: [s],
|
|
5022
5031
|
blockers: d
|
|
5023
5032
|
});
|
|
5024
|
-
return
|
|
5033
|
+
return o.then((m) => {
|
|
5025
5034
|
this.processPresignedUrls(m.presigned_urls), this.dispatch(pd(m.geo_images));
|
|
5026
5035
|
}).catch(() => {
|
|
5027
5036
|
this.dispatch(bd(d));
|
|
5028
|
-
}), [c,
|
|
5037
|
+
}), [c, o.then((m) => m.geo_images)];
|
|
5029
5038
|
}
|
|
5030
5039
|
update(e) {
|
|
5031
5040
|
const { store: s } = this.client, i = s.getState(), n = Ns(e.uuid)(i);
|
|
@@ -5074,7 +5083,7 @@ class mb extends E {
|
|
|
5074
5083
|
this.dispatch(md(s));
|
|
5075
5084
|
}
|
|
5076
5085
|
}
|
|
5077
|
-
class
|
|
5086
|
+
class fb extends I {
|
|
5078
5087
|
add(e) {
|
|
5079
5088
|
var d;
|
|
5080
5089
|
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, a = O({
|
|
@@ -5087,7 +5096,7 @@ class pb extends I {
|
|
|
5087
5096
|
description: "Add issue association",
|
|
5088
5097
|
method: u.POST,
|
|
5089
5098
|
url: "/issue-associations/",
|
|
5090
|
-
payload:
|
|
5099
|
+
payload: P(a),
|
|
5091
5100
|
blockers: [
|
|
5092
5101
|
e.associated_issue,
|
|
5093
5102
|
...e.issue ? [e.issue] : [],
|
|
@@ -5129,7 +5138,7 @@ class pb extends I {
|
|
|
5129
5138
|
this.dispatch(Rd(s));
|
|
5130
5139
|
}
|
|
5131
5140
|
}
|
|
5132
|
-
class
|
|
5141
|
+
class yb extends _e {
|
|
5133
5142
|
constructor() {
|
|
5134
5143
|
super(...arguments);
|
|
5135
5144
|
y(this, "name", "Issue Attachment");
|
|
@@ -5180,7 +5189,7 @@ class fb extends _e {
|
|
|
5180
5189
|
this.dispatch(Js(i));
|
|
5181
5190
|
}
|
|
5182
5191
|
}
|
|
5183
|
-
class
|
|
5192
|
+
class Ab extends _e {
|
|
5184
5193
|
constructor() {
|
|
5185
5194
|
super(...arguments);
|
|
5186
5195
|
y(this, "name", "Issue Comment Attachment");
|
|
@@ -5231,7 +5240,7 @@ class yb extends _e {
|
|
|
5231
5240
|
this.dispatch(Xs(i));
|
|
5232
5241
|
}
|
|
5233
5242
|
}
|
|
5234
|
-
class
|
|
5243
|
+
class bb extends I {
|
|
5235
5244
|
add(e) {
|
|
5236
5245
|
var a;
|
|
5237
5246
|
const { store: s } = this.client, i = O({
|
|
@@ -5244,7 +5253,7 @@ class Ab extends I {
|
|
|
5244
5253
|
description: "Add issue comment",
|
|
5245
5254
|
method: u.POST,
|
|
5246
5255
|
url: "/issue-comments/",
|
|
5247
|
-
payload:
|
|
5256
|
+
payload: P(i),
|
|
5248
5257
|
blockers: [e.issue],
|
|
5249
5258
|
blocks: [i.uuid]
|
|
5250
5259
|
});
|
|
@@ -5303,7 +5312,7 @@ class Ab extends I {
|
|
|
5303
5312
|
this.dispatch(Hd(s));
|
|
5304
5313
|
}
|
|
5305
5314
|
}
|
|
5306
|
-
class
|
|
5315
|
+
class gb extends I {
|
|
5307
5316
|
add(e) {
|
|
5308
5317
|
var l;
|
|
5309
5318
|
const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (l = i.userReducer.currentUser) == null ? void 0 : l.uuid, c = O({
|
|
@@ -5316,7 +5325,7 @@ class bb extends I {
|
|
|
5316
5325
|
description: "Create issue",
|
|
5317
5326
|
method: u.POST,
|
|
5318
5327
|
url: "/issues/",
|
|
5319
|
-
payload:
|
|
5328
|
+
payload: P(c),
|
|
5320
5329
|
blockers: [
|
|
5321
5330
|
"add-issue",
|
|
5322
5331
|
c.project,
|
|
@@ -5325,21 +5334,21 @@ class bb extends I {
|
|
|
5325
5334
|
],
|
|
5326
5335
|
blocks: [c.uuid]
|
|
5327
5336
|
});
|
|
5328
|
-
return d.then((
|
|
5329
|
-
this.dispatch(ct(
|
|
5330
|
-
}).catch((
|
|
5331
|
-
throw this.dispatch(ci(c.uuid)),
|
|
5337
|
+
return d.then((r) => {
|
|
5338
|
+
this.dispatch(ct(r));
|
|
5339
|
+
}).catch((r) => {
|
|
5340
|
+
throw this.dispatch(ci(c.uuid)), r;
|
|
5332
5341
|
}), [c, d];
|
|
5333
5342
|
}
|
|
5334
5343
|
update(e) {
|
|
5335
5344
|
var l;
|
|
5336
|
-
const s = this.client.store.getState(), i =
|
|
5345
|
+
const s = this.client.store.getState(), i = ri(e.uuid)(s);
|
|
5337
5346
|
if (!i)
|
|
5338
5347
|
throw new Error(`Attempting to update an issue with uuid ${e.uuid} that doesn't exist in the store`);
|
|
5339
5348
|
const n = { ...i, ...e };
|
|
5340
5349
|
this.dispatch(ct(n));
|
|
5341
5350
|
const a = {};
|
|
5342
|
-
for (const
|
|
5351
|
+
for (const r of [
|
|
5343
5352
|
w.TITLE,
|
|
5344
5353
|
w.DESCRIPTION,
|
|
5345
5354
|
w.STATUS,
|
|
@@ -5348,43 +5357,43 @@ class bb extends I {
|
|
|
5348
5357
|
w.ASSIGNED_TO,
|
|
5349
5358
|
w.DUE_DATE
|
|
5350
5359
|
])
|
|
5351
|
-
if (
|
|
5352
|
-
switch (
|
|
5360
|
+
if (r in e && e[r] !== i[r])
|
|
5361
|
+
switch (r) {
|
|
5353
5362
|
case w.PRIORITY:
|
|
5354
5363
|
case w.STATUS: {
|
|
5355
|
-
const
|
|
5356
|
-
a[
|
|
5364
|
+
const o = e[r];
|
|
5365
|
+
a[r] = o !== void 0 ? Number(o) : null;
|
|
5357
5366
|
break;
|
|
5358
5367
|
}
|
|
5359
5368
|
case w.DUE_DATE:
|
|
5360
5369
|
case w.DESCRIPTION:
|
|
5361
5370
|
case w.TITLE:
|
|
5362
|
-
a[
|
|
5371
|
+
a[r] = e[r] ?? null;
|
|
5363
5372
|
break;
|
|
5364
5373
|
case w.CATEGORY: {
|
|
5365
|
-
let
|
|
5366
|
-
const h = e[
|
|
5367
|
-
if (h && (
|
|
5374
|
+
let o = null;
|
|
5375
|
+
const h = e[r];
|
|
5376
|
+
if (h && (o = s.categoryReducer.instances[h] ?? null, !o))
|
|
5368
5377
|
throw new Error(
|
|
5369
5378
|
`Trying to update issue category to ${h} which does not exist in store`
|
|
5370
5379
|
);
|
|
5371
|
-
a[
|
|
5372
|
-
name:
|
|
5373
|
-
color:
|
|
5374
|
-
uuid:
|
|
5380
|
+
a[r] = o ? {
|
|
5381
|
+
name: o.name,
|
|
5382
|
+
color: o.color,
|
|
5383
|
+
uuid: o.uuid
|
|
5375
5384
|
} : null;
|
|
5376
5385
|
break;
|
|
5377
5386
|
}
|
|
5378
5387
|
case w.ASSIGNED_TO: {
|
|
5379
|
-
let
|
|
5380
|
-
const h = e[
|
|
5381
|
-
if (h && (
|
|
5388
|
+
let o = null;
|
|
5389
|
+
const h = e[r];
|
|
5390
|
+
if (h && (o = s.userReducer.instances[h] ?? null, !o))
|
|
5382
5391
|
throw new Error(
|
|
5383
5392
|
`Trying to update issue assigned_to to ${h} which does not exist in store`
|
|
5384
5393
|
);
|
|
5385
|
-
a[
|
|
5386
|
-
full_name:
|
|
5387
|
-
uuid:
|
|
5394
|
+
a[r] = o ? {
|
|
5395
|
+
full_name: o.username,
|
|
5396
|
+
uuid: o.uuid
|
|
5388
5397
|
} : null;
|
|
5389
5398
|
break;
|
|
5390
5399
|
}
|
|
@@ -5409,16 +5418,16 @@ class bb extends I {
|
|
|
5409
5418
|
}), [n, d];
|
|
5410
5419
|
}
|
|
5411
5420
|
async remove(e) {
|
|
5412
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5421
|
+
const { store: s } = this.client, i = s.getState(), n = ri(e)(i);
|
|
5413
5422
|
if (!n)
|
|
5414
5423
|
throw new Error(`No issue with uuid ${e} found in the store`);
|
|
5415
5424
|
const a = Md(e)(i), c = Lu(e)(i), d = ud(e)(i), l = {};
|
|
5416
|
-
for (const
|
|
5417
|
-
l[
|
|
5418
|
-
for (const
|
|
5419
|
-
l[
|
|
5420
|
-
const
|
|
5421
|
-
this.dispatch(ci(e)), a.length > 0 && this.dispatch(Kn(a.map(({ uuid:
|
|
5425
|
+
for (const o of Id(e)(i))
|
|
5426
|
+
l[o.uuid] = o;
|
|
5427
|
+
for (const o of Fd(e)(i))
|
|
5428
|
+
l[o.uuid] = o;
|
|
5429
|
+
const r = Object.values(l);
|
|
5430
|
+
this.dispatch(ci(e)), a.length > 0 && this.dispatch(Kn(a.map(({ uuid: o }) => o))), c.length > 0 && this.dispatch(Vu(c.map(({ uuid: o }) => o))), d.length > 0 && this.dispatch(Ft(d.map(({ uuid: o }) => o))), r.length > 0 && this.dispatch(Nn(r.map(({ uuid: o }) => o)));
|
|
5422
5431
|
try {
|
|
5423
5432
|
return await this.enqueueRequest({
|
|
5424
5433
|
description: "Delete issue",
|
|
@@ -5427,8 +5436,8 @@ class bb extends I {
|
|
|
5427
5436
|
blockers: [e],
|
|
5428
5437
|
blocks: []
|
|
5429
5438
|
});
|
|
5430
|
-
} catch (
|
|
5431
|
-
throw this.dispatch(ai(n)), this.dispatch(Wn(a)), this.dispatch(Uu(c)), this.dispatch(It(d)), this.dispatch(Bn(
|
|
5439
|
+
} catch (o) {
|
|
5440
|
+
throw this.dispatch(ai(n)), this.dispatch(Wn(a)), this.dispatch(Uu(c)), this.dispatch(It(d)), this.dispatch(Bn(r)), o;
|
|
5432
5441
|
}
|
|
5433
5442
|
}
|
|
5434
5443
|
async refreshStore(e) {
|
|
@@ -5445,7 +5454,7 @@ class bb extends I {
|
|
|
5445
5454
|
this.dispatch(Yd(s));
|
|
5446
5455
|
}
|
|
5447
5456
|
}
|
|
5448
|
-
class
|
|
5457
|
+
class Sb extends _e {
|
|
5449
5458
|
constructor() {
|
|
5450
5459
|
super(...arguments);
|
|
5451
5460
|
y(this, "name", "Issue Type Attachment");
|
|
@@ -5456,7 +5465,7 @@ class gb extends _e {
|
|
|
5456
5465
|
y(this, "removeAttachments", nu);
|
|
5457
5466
|
y(this, "removeAttachment", iu);
|
|
5458
5467
|
y(this, "setAttachment", tu);
|
|
5459
|
-
y(this, "selectAttachment",
|
|
5468
|
+
y(this, "selectAttachment", ru);
|
|
5460
5469
|
}
|
|
5461
5470
|
buildOfflineAttachment(s) {
|
|
5462
5471
|
return O({
|
|
@@ -5496,12 +5505,12 @@ class gb extends _e {
|
|
|
5496
5505
|
this.dispatch(di(i));
|
|
5497
5506
|
}
|
|
5498
5507
|
}
|
|
5499
|
-
class
|
|
5508
|
+
class Tb extends E {
|
|
5500
5509
|
async bulkAdd(e) {
|
|
5501
5510
|
var l;
|
|
5502
5511
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
|
|
5503
|
-
for (const
|
|
5504
|
-
const { fieldsRevisionUuid:
|
|
5512
|
+
for (const r of e) {
|
|
5513
|
+
const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
|
|
5505
5514
|
f.sha1 in n || (n[f.sha1] = f);
|
|
5506
5515
|
const S = O({
|
|
5507
5516
|
file: URL.createObjectURL(m),
|
|
@@ -5509,7 +5518,7 @@ class Sb extends E {
|
|
|
5509
5518
|
file_name: m.name,
|
|
5510
5519
|
file_sha1: f.sha1,
|
|
5511
5520
|
created_by: i,
|
|
5512
|
-
fields_revision:
|
|
5521
|
+
fields_revision: o,
|
|
5513
5522
|
submitted_at: s,
|
|
5514
5523
|
field_identifier: h
|
|
5515
5524
|
});
|
|
@@ -5520,7 +5529,7 @@ class Sb extends E {
|
|
|
5520
5529
|
file_extension: f.extension,
|
|
5521
5530
|
field_identifier: h,
|
|
5522
5531
|
file_sha1: f.sha1,
|
|
5523
|
-
fields_revision:
|
|
5532
|
+
fields_revision: o
|
|
5524
5533
|
};
|
|
5525
5534
|
c.push(R);
|
|
5526
5535
|
}
|
|
@@ -5534,18 +5543,18 @@ class Sb extends E {
|
|
|
5534
5543
|
attachments: c,
|
|
5535
5544
|
files: Object.values(n)
|
|
5536
5545
|
},
|
|
5537
|
-
blockers: a.map((
|
|
5538
|
-
blocks: a.map((
|
|
5546
|
+
blockers: a.map((r) => r.fields_revision),
|
|
5547
|
+
blocks: a.map((r) => r.uuid)
|
|
5539
5548
|
});
|
|
5540
|
-
return d.then((
|
|
5541
|
-
this.processPresignedUrls(
|
|
5549
|
+
return d.then((r) => {
|
|
5550
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(lu(r.attachments));
|
|
5542
5551
|
}).catch(() => {
|
|
5543
5552
|
this.dispatch(
|
|
5544
5553
|
hu(
|
|
5545
|
-
a.map((
|
|
5554
|
+
a.map((r) => r.uuid)
|
|
5546
5555
|
)
|
|
5547
5556
|
);
|
|
5548
|
-
}), [a, d.then(({ attachments:
|
|
5557
|
+
}), [a, d.then(({ attachments: r }) => r)];
|
|
5549
5558
|
}
|
|
5550
5559
|
async refreshStore(e) {
|
|
5551
5560
|
const s = await this.enqueueRequest({
|
|
@@ -5561,7 +5570,7 @@ class Sb extends E {
|
|
|
5561
5570
|
this.dispatch(du(s));
|
|
5562
5571
|
}
|
|
5563
5572
|
}
|
|
5564
|
-
class
|
|
5573
|
+
class Rb extends I {
|
|
5565
5574
|
add(e) {
|
|
5566
5575
|
var d;
|
|
5567
5576
|
const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
|
|
@@ -5574,7 +5583,7 @@ class Tb extends I {
|
|
|
5574
5583
|
description: "Add Issue Type Fields",
|
|
5575
5584
|
method: u.POST,
|
|
5576
5585
|
url: "/issue-type-fields/",
|
|
5577
|
-
payload:
|
|
5586
|
+
payload: P(a),
|
|
5578
5587
|
blockers: [a.issue_type],
|
|
5579
5588
|
blocks: [a.uuid]
|
|
5580
5589
|
});
|
|
@@ -5598,12 +5607,12 @@ class Tb extends I {
|
|
|
5598
5607
|
this.dispatch(gu(s));
|
|
5599
5608
|
}
|
|
5600
5609
|
}
|
|
5601
|
-
class
|
|
5610
|
+
class _b extends E {
|
|
5602
5611
|
async bulkAdd(e) {
|
|
5603
5612
|
var l;
|
|
5604
5613
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
|
|
5605
|
-
for (const
|
|
5606
|
-
const { fieldValuesUuid:
|
|
5614
|
+
for (const r of e) {
|
|
5615
|
+
const { fieldValuesUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
|
|
5607
5616
|
f.sha1 in n || (n[f.sha1] = f);
|
|
5608
5617
|
const S = O({
|
|
5609
5618
|
file: URL.createObjectURL(m),
|
|
@@ -5611,7 +5620,7 @@ class Rb extends E {
|
|
|
5611
5620
|
file_name: m.name,
|
|
5612
5621
|
file_sha1: f.sha1,
|
|
5613
5622
|
created_by: i,
|
|
5614
|
-
field_values:
|
|
5623
|
+
field_values: o,
|
|
5615
5624
|
submitted_at: s,
|
|
5616
5625
|
field_identifier: h
|
|
5617
5626
|
});
|
|
@@ -5622,7 +5631,7 @@ class Rb extends E {
|
|
|
5622
5631
|
file_sha1: f.sha1,
|
|
5623
5632
|
file_extension: f.extension,
|
|
5624
5633
|
field_identifier: h,
|
|
5625
|
-
field_values:
|
|
5634
|
+
field_values: o
|
|
5626
5635
|
};
|
|
5627
5636
|
c.push(R);
|
|
5628
5637
|
}
|
|
@@ -5636,21 +5645,21 @@ class Rb extends E {
|
|
|
5636
5645
|
attachments: c,
|
|
5637
5646
|
files: Object.values(n)
|
|
5638
5647
|
},
|
|
5639
|
-
blockers: a.map((
|
|
5640
|
-
blocks: a.map((
|
|
5648
|
+
blockers: a.map((r) => r.field_values),
|
|
5649
|
+
blocks: a.map((r) => r.uuid)
|
|
5641
5650
|
});
|
|
5642
|
-
return d.then(({ presigned_urls:
|
|
5643
|
-
this.processPresignedUrls(
|
|
5644
|
-
}).catch((
|
|
5651
|
+
return d.then(({ presigned_urls: r, attachments: o }) => {
|
|
5652
|
+
this.processPresignedUrls(r), this.dispatch(Fu(o));
|
|
5653
|
+
}).catch((r) => {
|
|
5645
5654
|
throw this.dispatch(
|
|
5646
5655
|
gt(
|
|
5647
|
-
a.map((
|
|
5656
|
+
a.map((o) => o.uuid)
|
|
5648
5657
|
)
|
|
5649
|
-
),
|
|
5650
|
-
}), [a, d.then(({ attachments:
|
|
5658
|
+
), r;
|
|
5659
|
+
}), [a, d.then(({ attachments: r }) => r)];
|
|
5651
5660
|
}
|
|
5652
5661
|
async bulkDelete(e) {
|
|
5653
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5662
|
+
const { store: s } = this.client, i = s.getState(), n = vu(e)(i);
|
|
5654
5663
|
this.dispatch(gt(e));
|
|
5655
5664
|
try {
|
|
5656
5665
|
await this.enqueueRequest({
|
|
@@ -5679,7 +5688,7 @@ class Rb extends E {
|
|
|
5679
5688
|
this.dispatch(Iu(s));
|
|
5680
5689
|
}
|
|
5681
5690
|
}
|
|
5682
|
-
class
|
|
5691
|
+
class Ob extends I {
|
|
5683
5692
|
add(e) {
|
|
5684
5693
|
var c;
|
|
5685
5694
|
const { store: s } = this.client, i = s.getState(), n = O({
|
|
@@ -5690,7 +5699,7 @@ class _b extends I {
|
|
|
5690
5699
|
description: "Add issue type field values",
|
|
5691
5700
|
method: u.POST,
|
|
5692
5701
|
url: "/issue-type-field-values/",
|
|
5693
|
-
payload:
|
|
5702
|
+
payload: P(n),
|
|
5694
5703
|
blockers: [e.issue, e.fields_revision],
|
|
5695
5704
|
blocks: [n.uuid]
|
|
5696
5705
|
});
|
|
@@ -5757,7 +5766,7 @@ class _b extends I {
|
|
|
5757
5766
|
this.dispatch(yu(s));
|
|
5758
5767
|
}
|
|
5759
5768
|
}
|
|
5760
|
-
class
|
|
5769
|
+
class Ib extends I {
|
|
5761
5770
|
add(e) {
|
|
5762
5771
|
var c;
|
|
5763
5772
|
const { store: s } = this.client, i = s.getState(), n = O({
|
|
@@ -5769,7 +5778,7 @@ class Ob extends I {
|
|
|
5769
5778
|
const a = this.enqueueRequest({
|
|
5770
5779
|
method: u.POST,
|
|
5771
5780
|
url: "/issue-types/",
|
|
5772
|
-
payload:
|
|
5781
|
+
payload: P(n),
|
|
5773
5782
|
blockers: [],
|
|
5774
5783
|
blocks: [n.uuid]
|
|
5775
5784
|
});
|
|
@@ -5830,7 +5839,7 @@ class Ob extends I {
|
|
|
5830
5839
|
this.dispatch(ku(s));
|
|
5831
5840
|
}
|
|
5832
5841
|
}
|
|
5833
|
-
class
|
|
5842
|
+
class Fb extends I {
|
|
5834
5843
|
async refreshStore(e) {
|
|
5835
5844
|
const s = await this.enqueueRequest({
|
|
5836
5845
|
description: "Get issue updates",
|
|
@@ -5845,13 +5854,13 @@ class Ib extends I {
|
|
|
5845
5854
|
this.dispatch(xu(s));
|
|
5846
5855
|
}
|
|
5847
5856
|
}
|
|
5848
|
-
const
|
|
5857
|
+
const vh = 1800;
|
|
5849
5858
|
function wh(t) {
|
|
5850
5859
|
if (!t.access) throw new Error("Missing access token");
|
|
5851
5860
|
if (!t.refresh) throw new Error("Missing refresh token");
|
|
5852
5861
|
return { accessToken: t.access, refreshToken: t.refresh };
|
|
5853
5862
|
}
|
|
5854
|
-
class
|
|
5863
|
+
class Pb extends Ih {
|
|
5855
5864
|
constructor() {
|
|
5856
5865
|
super(...arguments);
|
|
5857
5866
|
// _getTokenPair and _getRenewedTokens don't need to use enqueueRequest from the BaseApiService because
|
|
@@ -5892,7 +5901,7 @@ class Fb extends Ih {
|
|
|
5892
5901
|
* Logs the user out
|
|
5893
5902
|
*/
|
|
5894
5903
|
clearAuth() {
|
|
5895
|
-
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(
|
|
5904
|
+
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(no(!1)), this.clearTokens(), this.dispatch({ type: Ka }), this.dispatch({ type: oh });
|
|
5896
5905
|
}
|
|
5897
5906
|
/**
|
|
5898
5907
|
* Attempts to renew tokens
|
|
@@ -5922,7 +5931,7 @@ class Fb extends Ih {
|
|
|
5922
5931
|
} catch {
|
|
5923
5932
|
n = i;
|
|
5924
5933
|
}
|
|
5925
|
-
return n - i <
|
|
5934
|
+
return n - i < vh;
|
|
5926
5935
|
}
|
|
5927
5936
|
getAuthHeader() {
|
|
5928
5937
|
return `Bearer ${this.getAccessToken()}`;
|
|
@@ -6075,7 +6084,7 @@ class vb extends I {
|
|
|
6075
6084
|
this.dispatch(Nu(Object.values(i)));
|
|
6076
6085
|
}
|
|
6077
6086
|
}
|
|
6078
|
-
class
|
|
6087
|
+
class wb extends I {
|
|
6079
6088
|
async update(e) {
|
|
6080
6089
|
const s = this.enqueueRequest({
|
|
6081
6090
|
description: "Edit organization access",
|
|
@@ -6109,7 +6118,7 @@ class Pb extends I {
|
|
|
6109
6118
|
this.dispatch(Qu(s));
|
|
6110
6119
|
}
|
|
6111
6120
|
}
|
|
6112
|
-
class
|
|
6121
|
+
class Eb extends I {
|
|
6113
6122
|
create(e) {
|
|
6114
6123
|
return this.enqueueRequest({
|
|
6115
6124
|
description: "Create organization",
|
|
@@ -6159,7 +6168,7 @@ class wb extends I {
|
|
|
6159
6168
|
i[a.uuid] = a, this.dispatch(fl(Object.values(i)));
|
|
6160
6169
|
}
|
|
6161
6170
|
}
|
|
6162
|
-
class
|
|
6171
|
+
class kb extends I {
|
|
6163
6172
|
async update(e) {
|
|
6164
6173
|
return this.dispatch(sl(e)), this.enqueueRequest({
|
|
6165
6174
|
description: "Edit project access",
|
|
@@ -6194,16 +6203,16 @@ class Eb extends I {
|
|
|
6194
6203
|
this.dispatch(ma(s));
|
|
6195
6204
|
}
|
|
6196
6205
|
}
|
|
6197
|
-
class
|
|
6206
|
+
class qb extends _e {
|
|
6198
6207
|
constructor() {
|
|
6199
6208
|
super(...arguments);
|
|
6200
6209
|
y(this, "name", "Project Attachment");
|
|
6201
6210
|
y(this, "url", "/project-attachments");
|
|
6202
|
-
y(this, "addAttachments",
|
|
6211
|
+
y(this, "addAttachments", Pl);
|
|
6203
6212
|
y(this, "updateAttachments", El);
|
|
6204
6213
|
y(this, "removeAttachments", ga);
|
|
6205
6214
|
y(this, "removeAttachment", kl);
|
|
6206
|
-
y(this, "setAttachment",
|
|
6215
|
+
y(this, "setAttachment", vl);
|
|
6207
6216
|
y(this, "selectAttachment", Ml);
|
|
6208
6217
|
}
|
|
6209
6218
|
buildOfflineAttachment(s) {
|
|
@@ -6244,7 +6253,7 @@ class kb extends _e {
|
|
|
6244
6253
|
this.dispatch(Fl(i));
|
|
6245
6254
|
}
|
|
6246
6255
|
}
|
|
6247
|
-
class
|
|
6256
|
+
class jb extends I {
|
|
6248
6257
|
async saveExisting(e) {
|
|
6249
6258
|
if (!e.uuid)
|
|
6250
6259
|
throw new Error(
|
|
@@ -6284,19 +6293,19 @@ class qb extends I {
|
|
|
6284
6293
|
blocks: [i]
|
|
6285
6294
|
};
|
|
6286
6295
|
} else
|
|
6287
|
-
a = new Promise((l,
|
|
6288
|
-
this.client.files.uploadFileToS3(n.file_sha1).then(([
|
|
6296
|
+
a = new Promise((l, r) => {
|
|
6297
|
+
this.client.files.uploadFileToS3(n.file_sha1).then(([o]) => {
|
|
6289
6298
|
l({
|
|
6290
6299
|
method: u.POST,
|
|
6291
6300
|
url: `/projects/${n.project}/files/`,
|
|
6292
6301
|
payload: {
|
|
6293
6302
|
...n,
|
|
6294
|
-
...
|
|
6303
|
+
...o
|
|
6295
6304
|
},
|
|
6296
6305
|
blockers: [i],
|
|
6297
6306
|
blocks: [i]
|
|
6298
6307
|
});
|
|
6299
|
-
}).catch(
|
|
6308
|
+
}).catch(r);
|
|
6300
6309
|
});
|
|
6301
6310
|
const d = Promise.resolve(a).then((l) => this.enqueueRequest(l));
|
|
6302
6311
|
return d.then((l) => {
|
|
@@ -6322,7 +6331,7 @@ class qb extends I {
|
|
|
6322
6331
|
this.dispatch(xl(s));
|
|
6323
6332
|
}
|
|
6324
6333
|
}
|
|
6325
|
-
class
|
|
6334
|
+
class Mb extends I {
|
|
6326
6335
|
async add(e) {
|
|
6327
6336
|
if (!e.bounds && !e.canvas_bounds)
|
|
6328
6337
|
throw new Error("Project must either have bounds or canvas_bounds set");
|
|
@@ -6358,14 +6367,14 @@ class jb extends I {
|
|
|
6358
6367
|
const { store: s } = this.client, i = s.getState(), n = kt(i), a = n[e];
|
|
6359
6368
|
if (!a)
|
|
6360
6369
|
throw new Error("Expected project to exist");
|
|
6361
|
-
const c = Nl(i).filter((
|
|
6362
|
-
this.dispatch($l(c.map(({ uuid:
|
|
6370
|
+
const c = Nl(i).filter((o) => o.project === e);
|
|
6371
|
+
this.dispatch($l(c.map(({ uuid: o }) => o)));
|
|
6363
6372
|
const d = Cl(a.uuid)(i);
|
|
6364
|
-
this.dispatch(ga(d.map(({ uuid:
|
|
6373
|
+
this.dispatch(ga(d.map(({ uuid: o }) => o)));
|
|
6365
6374
|
const l = al(i);
|
|
6366
|
-
this.dispatch(nl(l.map(({ uuid:
|
|
6367
|
-
const
|
|
6368
|
-
|
|
6375
|
+
this.dispatch(nl(l.map(({ uuid: o }) => o))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(ul(a.uuid));
|
|
6376
|
+
const r = Hu(a.uuid)(i);
|
|
6377
|
+
r && this.dispatch(pe({ ...r, project: null }));
|
|
6369
6378
|
try {
|
|
6370
6379
|
await this.enqueueRequest({
|
|
6371
6380
|
description: "Delete project",
|
|
@@ -6374,8 +6383,8 @@ class jb extends I {
|
|
|
6374
6383
|
blockers: [e],
|
|
6375
6384
|
blocks: []
|
|
6376
6385
|
}), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
|
|
6377
|
-
} catch (
|
|
6378
|
-
throw this.dispatch(
|
|
6386
|
+
} catch (o) {
|
|
6387
|
+
throw this.dispatch(ol(Object.values(n))), this.dispatch(ma(Object.values(l))), this.dispatch(zl(c)), this.dispatch(wl(d)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), r && this.dispatch(pe({ ...r, project: a.uuid })), o;
|
|
6379
6388
|
}
|
|
6380
6389
|
}
|
|
6381
6390
|
invite(e, s) {
|
|
@@ -6413,7 +6422,7 @@ class jb extends I {
|
|
|
6413
6422
|
});
|
|
6414
6423
|
}
|
|
6415
6424
|
}
|
|
6416
|
-
class
|
|
6425
|
+
class Cb extends I {
|
|
6417
6426
|
add(e) {
|
|
6418
6427
|
const s = O({
|
|
6419
6428
|
...e,
|
|
@@ -6450,7 +6459,7 @@ class Mb extends I {
|
|
|
6450
6459
|
description: "Update team",
|
|
6451
6460
|
method: u.PATCH,
|
|
6452
6461
|
url: `/organizations/teams/${e.uuid}/`,
|
|
6453
|
-
payload:
|
|
6462
|
+
payload: P(e),
|
|
6454
6463
|
blockers: [e.uuid],
|
|
6455
6464
|
blocks: [e.uuid]
|
|
6456
6465
|
});
|
|
@@ -6523,7 +6532,7 @@ class Mb extends I {
|
|
|
6523
6532
|
this.dispatch(Yl(s));
|
|
6524
6533
|
}
|
|
6525
6534
|
}
|
|
6526
|
-
class
|
|
6535
|
+
class Db extends I {
|
|
6527
6536
|
async refreshStore(e, s) {
|
|
6528
6537
|
const i = {}, n = await this.enqueueRequest({
|
|
6529
6538
|
description: "Fetch organization users",
|
|
@@ -6546,7 +6555,7 @@ class Cb extends I {
|
|
|
6546
6555
|
this.dispatch(Ku(Object.values(i)));
|
|
6547
6556
|
}
|
|
6548
6557
|
}
|
|
6549
|
-
class
|
|
6558
|
+
class xb {
|
|
6550
6559
|
constructor(e) {
|
|
6551
6560
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6552
6561
|
y(this, "store");
|
|
@@ -6587,28 +6596,28 @@ class Db {
|
|
|
6587
6596
|
} else {
|
|
6588
6597
|
const c = this.store.dispatch(
|
|
6589
6598
|
Rl(a)
|
|
6590
|
-
), d = (
|
|
6591
|
-
if (
|
|
6592
|
-
n.resolve(
|
|
6599
|
+
), d = (r) => {
|
|
6600
|
+
if (r)
|
|
6601
|
+
n.resolve(r.body);
|
|
6593
6602
|
else {
|
|
6594
|
-
const
|
|
6603
|
+
const o = new j({
|
|
6595
6604
|
message: "Could not get a response from the server.",
|
|
6596
|
-
response:
|
|
6605
|
+
response: r,
|
|
6597
6606
|
discard: !0
|
|
6598
6607
|
});
|
|
6599
|
-
n.reject(
|
|
6608
|
+
n.reject(o);
|
|
6600
6609
|
}
|
|
6601
|
-
}, l = (
|
|
6602
|
-
|
|
6610
|
+
}, l = (r) => {
|
|
6611
|
+
r instanceof j ? r.options.discard = !0 : (console.error(
|
|
6603
6612
|
"Received an unexpected error while processing a request:",
|
|
6604
|
-
|
|
6613
|
+
r,
|
|
6605
6614
|
`
|
|
6606
6615
|
Converting error to APIError and discarding.`
|
|
6607
|
-
),
|
|
6616
|
+
), r = new j({
|
|
6608
6617
|
message: "An error occurred while processing the request.",
|
|
6609
|
-
innerError:
|
|
6618
|
+
innerError: r,
|
|
6610
6619
|
discard: !0
|
|
6611
|
-
})), n.reject(
|
|
6620
|
+
})), n.reject(r);
|
|
6612
6621
|
};
|
|
6613
6622
|
c.then(d, l);
|
|
6614
6623
|
}
|
|
@@ -6758,85 +6767,85 @@ class Me {
|
|
|
6758
6767
|
this.requestAttemptCounter[e] = (this.requestAttemptCounter[e] || 0) + 1;
|
|
6759
6768
|
}
|
|
6760
6769
|
}
|
|
6761
|
-
const
|
|
6770
|
+
const zb = (t, e) => {
|
|
6762
6771
|
const s = new e(t);
|
|
6763
6772
|
return sh(s), th(t), s;
|
|
6764
6773
|
};
|
|
6765
6774
|
var Eh = /* @__PURE__ */ ((t) => (t[t.USER_REGISTRATION = 0] = "USER_REGISTRATION", t[t.APPLICATION_INVITE = 2] = "APPLICATION_INVITE", t[t.PROJECT_INVITE = 4] = "PROJECT_INVITE", t[t.ORGANIZATION_INVITE = 6] = "ORGANIZATION_INVITE", t[t.ADD_EMAIL_DOMAIN = 8] = "ADD_EMAIL_DOMAIN", t[t.RESET_PASSWORD = 10] = "RESET_PASSWORD", t))(Eh || {});
|
|
6766
6775
|
export {
|
|
6767
6776
|
j as APIError,
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6777
|
+
UA as AgentService,
|
|
6778
|
+
$A as AssetAttachmentService,
|
|
6779
|
+
LA as AssetProcedureFieldValuesAttachmentService,
|
|
6780
|
+
NA as AssetProcedureFieldValuesService,
|
|
6781
|
+
VA as AssetProcedureFieldsAttachmentService,
|
|
6782
|
+
GA as AssetProcedureFieldsService,
|
|
6783
|
+
HA as AssetProcedureInstanceService,
|
|
6784
|
+
WA as AssetProcedureService,
|
|
6785
|
+
KA as AssetService,
|
|
6786
|
+
YA as AssetStageCompletionService,
|
|
6787
|
+
JA as AssetStageService,
|
|
6788
|
+
QA as AssetTypeAttachmentService,
|
|
6789
|
+
eb as AssetTypeFieldValuesAttachmentService,
|
|
6790
|
+
tb as AssetTypeFieldValuesService,
|
|
6791
|
+
XA as AssetTypeFieldsAttachmentService,
|
|
6792
|
+
ZA as AssetTypeFieldsService,
|
|
6793
|
+
sb as AssetTypeService,
|
|
6785
6794
|
Za as AttachmentModel,
|
|
6786
6795
|
I as BaseApiService,
|
|
6787
|
-
|
|
6796
|
+
xb as BaseSDK,
|
|
6788
6797
|
hc as COMMON_AUTO_FIELDS,
|
|
6789
|
-
|
|
6798
|
+
ib as CategoryService,
|
|
6790
6799
|
Yh as DEFAULT_ISSUE_PRIORITY,
|
|
6791
6800
|
Kh as DEFAULT_ISSUE_STATUS,
|
|
6792
6801
|
nc as DeferredPromise,
|
|
6793
|
-
|
|
6794
|
-
|
|
6802
|
+
nb as DocumentAttachmentService,
|
|
6803
|
+
ab as DocumentService,
|
|
6795
6804
|
Qa as EMPTY_ARRAY,
|
|
6796
6805
|
Xa as EMPTY_OBJECT,
|
|
6797
|
-
|
|
6798
|
-
|
|
6806
|
+
cb as EmailDomainsService,
|
|
6807
|
+
rb as EmailVerificationService,
|
|
6799
6808
|
ob as FileService,
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6809
|
+
db as FormRevisionAttachmentService,
|
|
6810
|
+
ub as FormRevisionService,
|
|
6811
|
+
hb as FormService,
|
|
6812
|
+
mb as FormSubmissionAttachmentService,
|
|
6813
|
+
BA as FormSubmissionService,
|
|
6814
|
+
pb as GeoImageService,
|
|
6806
6815
|
u as HttpMethod,
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6816
|
+
fb as IssueAssociationService,
|
|
6817
|
+
yb as IssueAttachmentService,
|
|
6818
|
+
Ab as IssueCommentAttachmentService,
|
|
6819
|
+
bb as IssueCommentService,
|
|
6811
6820
|
$i as IssuePriority,
|
|
6812
|
-
|
|
6821
|
+
gb as IssueService,
|
|
6813
6822
|
Vi as IssueStatus,
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6823
|
+
Sb as IssueTypeAttachmentService,
|
|
6824
|
+
_b as IssueTypeFieldValuesAttachmentService,
|
|
6825
|
+
Ob as IssueTypeFieldValuesService,
|
|
6826
|
+
Tb as IssueTypeFieldsAttachmentService,
|
|
6827
|
+
Rb as IssueTypeFieldsService,
|
|
6828
|
+
Ib as IssueTypeService,
|
|
6820
6829
|
w as IssueUpdateChange,
|
|
6821
|
-
|
|
6822
|
-
|
|
6830
|
+
Fb as IssueUpdateService,
|
|
6831
|
+
Pb as JWTService,
|
|
6823
6832
|
tc as LicenseLevel,
|
|
6824
6833
|
vb as LicenseService,
|
|
6825
6834
|
sc as LicenseStatus,
|
|
6826
6835
|
ic as OUTBOX_RETRY_DELAY,
|
|
6827
6836
|
Ui as OrganizationAccessLevel,
|
|
6828
|
-
|
|
6829
|
-
|
|
6837
|
+
wb as OrganizationAccessService,
|
|
6838
|
+
Eb as OrganizationService,
|
|
6830
6839
|
Me as OutboxCoordinator,
|
|
6831
6840
|
ec as PaddleCheckoutEvent,
|
|
6832
6841
|
zi as ProjectAccessLevel,
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6842
|
+
kb as ProjectAccessService,
|
|
6843
|
+
qb as ProjectAttachmentService,
|
|
6844
|
+
jb as ProjectFileService,
|
|
6845
|
+
Mb as ProjectService,
|
|
6846
|
+
Cb as TeamService,
|
|
6838
6847
|
xe as UNKNOWN_ERROR_MESSAGE,
|
|
6839
|
-
|
|
6848
|
+
Db as UserService,
|
|
6840
6849
|
ja as VERSION_REDUCER_KEY,
|
|
6841
6850
|
Eh as VerificationCodeType,
|
|
6842
6851
|
Ol as _setLatestRetryTime,
|
|
@@ -6852,9 +6861,9 @@ export {
|
|
|
6852
6861
|
Dc as addAssetProcedureFields,
|
|
6853
6862
|
Tm as addAssetProcedureFieldsAttachment,
|
|
6854
6863
|
wc as addAssetProcedureFieldsAttachments,
|
|
6855
|
-
|
|
6864
|
+
vm as addAssetProcedureFieldsMany,
|
|
6856
6865
|
Ht as addAssetProcedureInstance,
|
|
6857
|
-
|
|
6866
|
+
er as addAssetProcedureInstances,
|
|
6858
6867
|
Qm as addAssetProcedures,
|
|
6859
6868
|
lp as addAssetStage,
|
|
6860
6869
|
ns as addAssetStageCompletion,
|
|
@@ -6866,24 +6875,24 @@ export {
|
|
|
6866
6875
|
bs as addAssetTypeFieldValues,
|
|
6867
6876
|
jp as addAssetTypeFieldValuesAttachment,
|
|
6868
6877
|
pt as addAssetTypeFieldValuesAttachments,
|
|
6869
|
-
|
|
6870
|
-
|
|
6878
|
+
Qr as addAssetTypeFieldValuesMany,
|
|
6879
|
+
Ur as addAssetTypeFields,
|
|
6871
6880
|
bp as addAssetTypeFieldsAttachment,
|
|
6872
|
-
|
|
6881
|
+
qr as addAssetTypeFieldsAttachments,
|
|
6873
6882
|
Ip as addAssetTypeFieldsMany,
|
|
6874
6883
|
Np as addAssetTypes,
|
|
6875
|
-
|
|
6876
|
-
|
|
6884
|
+
on as addAssets,
|
|
6885
|
+
Ps as addCategory,
|
|
6877
6886
|
yc as addConversation,
|
|
6878
6887
|
nf as addDocumentAttachment,
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6888
|
+
ho as addDocumentAttachments,
|
|
6889
|
+
Ro as addDocuments,
|
|
6890
|
+
wo as addEmailDomain,
|
|
6882
6891
|
Ds as addForm,
|
|
6883
6892
|
Mn as addFormRevision,
|
|
6884
6893
|
hf as addFormRevisionAttachment,
|
|
6885
|
-
|
|
6886
|
-
|
|
6894
|
+
Uo as addFormRevisionAttachments,
|
|
6895
|
+
Wo as addFormRevisions,
|
|
6887
6896
|
$s as addFormSubmission,
|
|
6888
6897
|
Of as addFormSubmissionAttachment,
|
|
6889
6898
|
yt as addFormSubmissionAttachments,
|
|
@@ -6915,21 +6924,21 @@ export {
|
|
|
6915
6924
|
Uu as addIssueUpdates,
|
|
6916
6925
|
Jd as addIssues,
|
|
6917
6926
|
Ey as addLicenses,
|
|
6918
|
-
|
|
6927
|
+
dA as addOrganization,
|
|
6919
6928
|
oA as addOrganizations,
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6929
|
+
eA as addProject,
|
|
6930
|
+
RA as addProjectAttachment,
|
|
6931
|
+
Pl as addProjectAttachments,
|
|
6932
|
+
FA as addProjectFile,
|
|
6924
6933
|
zl as addProjectFiles,
|
|
6925
|
-
|
|
6934
|
+
Zy as addProjects,
|
|
6926
6935
|
Jl as addTeam,
|
|
6927
6936
|
xy as addUser,
|
|
6928
6937
|
Dy as addUsers,
|
|
6929
6938
|
gc as agentsReducer,
|
|
6930
6939
|
Li as agentsSlice,
|
|
6931
6940
|
tm as areArraysEqual,
|
|
6932
|
-
|
|
6941
|
+
Pc as assetAttachmentReducer,
|
|
6933
6942
|
Ni as assetAttachmentSlice,
|
|
6934
6943
|
Hc as assetProcedureFieldValuesAttachmentReducer,
|
|
6935
6944
|
Qi as assetProcedureFieldValuesAttachmentSlice,
|
|
@@ -6939,32 +6948,32 @@ export {
|
|
|
6939
6948
|
Ki as assetProcedureFieldsAttachmentSlice,
|
|
6940
6949
|
$c as assetProcedureFieldsReducer,
|
|
6941
6950
|
Yi as assetProcedureFieldsSlice,
|
|
6942
|
-
|
|
6951
|
+
ir as assetProcedureInstanceReducer,
|
|
6943
6952
|
tn as assetProcedureInstanceSlice,
|
|
6944
|
-
|
|
6953
|
+
cr as assetProcedureReducer,
|
|
6945
6954
|
an as assetProcedureSlice,
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6955
|
+
ur as assetReducer,
|
|
6956
|
+
rn as assetSlice,
|
|
6957
|
+
pr as assetStageCompletionReducer,
|
|
6949
6958
|
ln as assetStageCompletionSlice,
|
|
6950
|
-
|
|
6959
|
+
gr as assetStageReducer,
|
|
6951
6960
|
mn as assetStageSlice,
|
|
6952
|
-
|
|
6961
|
+
Er as assetTypeAttachmentReducer,
|
|
6953
6962
|
pn as assetTypeAttachmentSlice,
|
|
6954
|
-
|
|
6963
|
+
Yr as assetTypeFieldValuesAttachmentReducer,
|
|
6955
6964
|
gn as assetTypeFieldValuesAttachmentSlice,
|
|
6956
|
-
|
|
6965
|
+
to as assetTypeFieldValuesReducer,
|
|
6957
6966
|
Tn as assetTypeFieldValuesSlice,
|
|
6958
|
-
|
|
6967
|
+
xr as assetTypeFieldsAttachmentReducer,
|
|
6959
6968
|
An as assetTypeFieldsAttachmentSlice,
|
|
6960
|
-
|
|
6969
|
+
Lr as assetTypeFieldsReducer,
|
|
6961
6970
|
bn as assetTypeFieldsSlice,
|
|
6962
|
-
|
|
6971
|
+
io as assetTypeReducer,
|
|
6963
6972
|
_n as assetTypeSlice,
|
|
6964
|
-
|
|
6973
|
+
ao as authReducer,
|
|
6965
6974
|
_t as authSlice,
|
|
6966
|
-
|
|
6967
|
-
|
|
6975
|
+
rm as blobToBase64,
|
|
6976
|
+
uo as categoryReducer,
|
|
6968
6977
|
In as categorySlice,
|
|
6969
6978
|
Qp as clearTokens,
|
|
6970
6979
|
cm as constructUploadedFilePayloads,
|
|
@@ -6972,7 +6981,7 @@ export {
|
|
|
6972
6981
|
_ as createModelAdapter,
|
|
6973
6982
|
Xh as createMultiPointGeometry,
|
|
6974
6983
|
Tl as createOfflineAction,
|
|
6975
|
-
|
|
6984
|
+
P as createPayload,
|
|
6976
6985
|
Qh as createPointGeometry,
|
|
6977
6986
|
Jh as createSelectionAdapter,
|
|
6978
6987
|
ts as deleteAsset,
|
|
@@ -6988,36 +6997,36 @@ export {
|
|
|
6988
6997
|
kc as deleteAssetProcedureFieldsAttachments,
|
|
6989
6998
|
qm as deleteAssetProcedureFieldsMany,
|
|
6990
6999
|
Wt as deleteAssetProcedureInstance,
|
|
6991
|
-
|
|
7000
|
+
tr as deleteAssetProcedureInstances,
|
|
6992
7001
|
Zm as deleteAssetProcedures,
|
|
6993
7002
|
hp as deleteAssetStage,
|
|
6994
7003
|
cs as deleteAssetStageCompletion,
|
|
6995
|
-
|
|
7004
|
+
rs as deleteAssetStageCompletions,
|
|
6996
7005
|
ls as deleteAssetStages,
|
|
6997
7006
|
_s as deleteAssetType,
|
|
6998
|
-
|
|
7007
|
+
Ir as deleteAssetTypeAttachment,
|
|
6999
7008
|
yn as deleteAssetTypeAttachments,
|
|
7000
7009
|
gs as deleteAssetTypeFieldValues,
|
|
7001
7010
|
xp as deleteAssetTypeFieldValuesAttachment,
|
|
7002
7011
|
ft as deleteAssetTypeFieldValuesAttachments,
|
|
7003
|
-
|
|
7004
|
-
|
|
7012
|
+
Zr as deleteAssetTypeFieldValuesMany,
|
|
7013
|
+
Vr as deleteAssetTypeFields,
|
|
7005
7014
|
Rp as deleteAssetTypeFieldsAttachment,
|
|
7006
|
-
|
|
7015
|
+
Mr as deleteAssetTypeFieldsAttachments,
|
|
7007
7016
|
wp as deleteAssetTypeFieldsMany,
|
|
7008
7017
|
Wp as deleteAssetTypes,
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7018
|
+
or as deleteAssets,
|
|
7019
|
+
oo as deleteCategory,
|
|
7020
|
+
fo as deleteDocumentAttachment,
|
|
7021
|
+
yo as deleteDocumentAttachments,
|
|
7022
|
+
Eo as deleteEmailDomain,
|
|
7014
7023
|
xs as deleteForm,
|
|
7015
7024
|
Cn as deleteFormRevision,
|
|
7016
7025
|
yf as deleteFormRevisionAttachment,
|
|
7017
|
-
|
|
7018
|
-
|
|
7026
|
+
Vo as deleteFormRevisionAttachments,
|
|
7027
|
+
Ko as deleteFormRevisions,
|
|
7019
7028
|
Vs as deleteFormSubmission,
|
|
7020
|
-
|
|
7029
|
+
vf as deleteFormSubmissionAttachment,
|
|
7021
7030
|
At as deleteFormSubmissionAttachments,
|
|
7022
7031
|
Ft as deleteFormSubmissions,
|
|
7023
7032
|
Bs as deleteGeoImage,
|
|
@@ -7044,9 +7053,9 @@ export {
|
|
|
7044
7053
|
$u as deleteIssueUpdate,
|
|
7045
7054
|
Vu as deleteIssueUpdates,
|
|
7046
7055
|
Qd as deleteIssues,
|
|
7047
|
-
|
|
7056
|
+
hA as deleteOrganization,
|
|
7048
7057
|
Zu as deleteOrganizationAccess,
|
|
7049
|
-
|
|
7058
|
+
mA as deleteOrganizations,
|
|
7050
7059
|
ul as deleteProject,
|
|
7051
7060
|
il as deleteProjectAccess,
|
|
7052
7061
|
nl as deleteProjectAccesses,
|
|
@@ -7054,32 +7063,32 @@ export {
|
|
|
7054
7063
|
ga as deleteProjectAttachments,
|
|
7055
7064
|
Ul as deleteProjectFile,
|
|
7056
7065
|
$l as deleteProjectFiles,
|
|
7057
|
-
|
|
7066
|
+
sA as deleteProjects,
|
|
7058
7067
|
ji as deleteTeam,
|
|
7059
7068
|
$y as deleteUser,
|
|
7060
7069
|
Vy as deleteUsers,
|
|
7061
7070
|
lh as dequeue,
|
|
7062
7071
|
xa as discard,
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7072
|
+
So as documentAttachmentReducer,
|
|
7073
|
+
Pn as documentAttachmentSlice,
|
|
7074
|
+
vn as documentSlice,
|
|
7075
|
+
Fo as documentsReducer,
|
|
7076
|
+
om as downloadFile,
|
|
7068
7077
|
am as downloadInMemoryFile,
|
|
7069
|
-
|
|
7078
|
+
jo as emailDomainsReducer,
|
|
7070
7079
|
wn as emailDomainsSlice,
|
|
7071
7080
|
fm as emailRegex,
|
|
7072
7081
|
uh as enqueue,
|
|
7073
7082
|
Rl as enqueueRequest,
|
|
7074
7083
|
b as fallbackToEmptyArray,
|
|
7075
7084
|
ze as fallbackToEmptyObject,
|
|
7076
|
-
|
|
7085
|
+
xo as fileReducer,
|
|
7077
7086
|
kn as fileSlice,
|
|
7078
7087
|
lc as fileToBlob,
|
|
7079
|
-
|
|
7080
|
-
|
|
7088
|
+
Zo as formReducer,
|
|
7089
|
+
Lo as formRevisionAttachmentReducer,
|
|
7081
7090
|
qn as formRevisionAttachmentSlice,
|
|
7082
|
-
|
|
7091
|
+
Qo as formRevisionReducer,
|
|
7083
7092
|
jn as formRevisionsSlice,
|
|
7084
7093
|
Dn as formSlice,
|
|
7085
7094
|
cd as formSubmissionAttachmentReducer,
|
|
@@ -7092,35 +7101,35 @@ export {
|
|
|
7092
7101
|
jt as getFileS3Key,
|
|
7093
7102
|
cc as getLocalDateString,
|
|
7094
7103
|
im as getLocalRelativeDateString,
|
|
7095
|
-
|
|
7104
|
+
Pe as getOutboxCoordinator,
|
|
7096
7105
|
uc as getRenamedFile,
|
|
7097
7106
|
Ce as hashFile,
|
|
7098
|
-
|
|
7107
|
+
zb as initSDK,
|
|
7099
7108
|
xt as initializeAssetAttachments,
|
|
7100
7109
|
Wc as initializeAssetProcedureFieldValues,
|
|
7101
7110
|
Vc as initializeAssetProcedureFieldValuesAttachments,
|
|
7102
7111
|
Cc as initializeAssetProcedureFields,
|
|
7103
|
-
|
|
7112
|
+
vc as initializeAssetProcedureFieldsAttachments,
|
|
7104
7113
|
Zc as initializeAssetProcedureInstances,
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7114
|
+
nr as initializeAssetProcedures,
|
|
7115
|
+
lr as initializeAssetStageCompletions,
|
|
7116
|
+
Ar as initializeAssetStages,
|
|
7117
|
+
Rr as initializeAssetTypeAttachments,
|
|
7118
|
+
Jr as initializeAssetTypeFieldValues,
|
|
7119
|
+
Br as initializeAssetTypeFieldValuesAttachments,
|
|
7120
|
+
zr as initializeAssetTypeFields,
|
|
7121
|
+
kr as initializeAssetTypeFieldsAttachments,
|
|
7122
|
+
so as initializeAssetTypes,
|
|
7123
|
+
rr as initializeAssets,
|
|
7124
|
+
co as initializeCategories,
|
|
7116
7125
|
fc as initializeConversations,
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7126
|
+
lo as initializeDocumentAttachments,
|
|
7127
|
+
vo as initializeEmailDomains,
|
|
7128
|
+
zo as initializeFormRevisionAttachments,
|
|
7129
|
+
Ho as initializeFormRevisions,
|
|
7121
7130
|
sd as initializeFormSubmissionAttachments,
|
|
7122
|
-
|
|
7123
|
-
|
|
7131
|
+
rd as initializeFormSubmissions,
|
|
7132
|
+
Xo as initializeForms,
|
|
7124
7133
|
md as initializeGeoImages,
|
|
7125
7134
|
Rd as initializeIssueAssociations,
|
|
7126
7135
|
Js as initializeIssueAttachments,
|
|
@@ -7135,15 +7144,15 @@ export {
|
|
|
7135
7144
|
Yd as initializeIssues,
|
|
7136
7145
|
Nu as initializeLicences,
|
|
7137
7146
|
Qu as initializeOrganizationAccesses,
|
|
7138
|
-
|
|
7147
|
+
cA as initializeOrganizations,
|
|
7139
7148
|
ma as initializeProjectAccesses,
|
|
7140
7149
|
Fl as initializeProjectAttachments,
|
|
7141
7150
|
xl as initializeProjectFiles,
|
|
7142
|
-
|
|
7151
|
+
Qy as initializeProjects,
|
|
7143
7152
|
Yl as initializeTeams,
|
|
7144
7153
|
My as initializeUsers,
|
|
7145
7154
|
sm as isToday,
|
|
7146
|
-
|
|
7155
|
+
vd as issueAssociationReducer,
|
|
7147
7156
|
Ln as issueAssociationSlice,
|
|
7148
7157
|
Dd as issueAttachmentReducer,
|
|
7149
7158
|
Hn as issueAttachmentSlice,
|
|
@@ -7153,7 +7162,7 @@ export {
|
|
|
7153
7162
|
Jn as issueCommentSlice,
|
|
7154
7163
|
Zd as issueReducer,
|
|
7155
7164
|
Qn as issueSlice,
|
|
7156
|
-
|
|
7165
|
+
ou as issueTypeAttachmentReducer,
|
|
7157
7166
|
Xn as issueTypeAttachmentSlice,
|
|
7158
7167
|
Eu as issueTypeFieldValuesAttachmentReducer,
|
|
7159
7168
|
ia as issueTypeFieldValuesAttachmentSlice,
|
|
@@ -7166,14 +7175,14 @@ export {
|
|
|
7166
7175
|
Du as issueTypeReducer,
|
|
7167
7176
|
aa as issueTypeSlice,
|
|
7168
7177
|
Bu as issueUpdateReducer,
|
|
7169
|
-
|
|
7178
|
+
ra as issueUpdateSlice,
|
|
7170
7179
|
Wu as licenseReducer,
|
|
7171
|
-
|
|
7180
|
+
oa as licenseSlice,
|
|
7172
7181
|
dm as logOnlyOnce,
|
|
7173
7182
|
_l as markAsDeleted,
|
|
7174
|
-
|
|
7183
|
+
TA as markForDeletion,
|
|
7175
7184
|
Gi as memoize,
|
|
7176
|
-
|
|
7185
|
+
_o as moveDocument,
|
|
7177
7186
|
O as offline,
|
|
7178
7187
|
pm as onlyUniqueHashes,
|
|
7179
7188
|
pc as onlyUniqueOfflineIds,
|
|
@@ -7183,11 +7192,11 @@ export {
|
|
|
7183
7192
|
ya as organizationSlice,
|
|
7184
7193
|
Il as outboxReducer,
|
|
7185
7194
|
Aa as outboxSlice,
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7195
|
+
zA as overmapEnhancer,
|
|
7196
|
+
rh as overmapReducers,
|
|
7197
|
+
xA as overmapRootReducer,
|
|
7189
7198
|
Ma as performRequest,
|
|
7190
|
-
|
|
7199
|
+
rl as projectAccessReducer,
|
|
7191
7200
|
ha as projectAccessSlice,
|
|
7192
7201
|
Dl as projectAttachmentReducer,
|
|
7193
7202
|
ba as projectAttachmentSlice,
|
|
@@ -7201,14 +7210,14 @@ export {
|
|
|
7201
7210
|
bi as removeIssueType,
|
|
7202
7211
|
Yu as removeUser,
|
|
7203
7212
|
vA as resetProjectFileObjectUrls,
|
|
7204
|
-
|
|
7213
|
+
oh as resetStore,
|
|
7205
7214
|
A as restructureCreateSelectorWithArgs,
|
|
7206
7215
|
Ll as saveActiveProjectFileBounds,
|
|
7207
7216
|
Xp as selectAccessToken,
|
|
7208
|
-
|
|
7209
|
-
|
|
7217
|
+
Wy as selectActiveOrganizationAccess,
|
|
7218
|
+
EA as selectActiveProjectFileId,
|
|
7210
7219
|
qy as selectActiveStatusLicenses,
|
|
7211
|
-
|
|
7220
|
+
bo as selectAllDocumentAttachments,
|
|
7212
7221
|
jl as selectAllProjectAttachments,
|
|
7213
7222
|
df as selectAncestorIdsOfDocument,
|
|
7214
7223
|
Ic as selectAssetAttachmentById,
|
|
@@ -7225,7 +7234,7 @@ export {
|
|
|
7225
7234
|
Qc as selectAssetProcedureFieldValuesMapping,
|
|
7226
7235
|
Bm as selectAssetProcedureFieldValuesOfAsset,
|
|
7227
7236
|
Ji as selectAssetProcedureFields,
|
|
7228
|
-
|
|
7237
|
+
Pm as selectAssetProcedureFieldsAttachmentById,
|
|
7229
7238
|
jc as selectAssetProcedureFieldsAttachments,
|
|
7230
7239
|
qc as selectAssetProcedureFieldsAttachmentsMapping,
|
|
7231
7240
|
Cm as selectAssetProcedureFieldsById,
|
|
@@ -7235,55 +7244,55 @@ export {
|
|
|
7235
7244
|
nn as selectAssetProcedureInstances,
|
|
7236
7245
|
Jm as selectAssetProcedureInstancesByIds,
|
|
7237
7246
|
sn as selectAssetProcedureInstancesMapping,
|
|
7238
|
-
|
|
7247
|
+
sr as selectAssetProcedureInstancesOfAssetProcedure,
|
|
7239
7248
|
Ym as selectAssetProcedureInstancesOfAssetType,
|
|
7240
|
-
|
|
7249
|
+
ar as selectAssetProcedures,
|
|
7241
7250
|
ip as selectAssetProceduresByIds,
|
|
7242
7251
|
cn as selectAssetProceduresMapping,
|
|
7243
7252
|
sp as selectAssetProceduresOfOrganization,
|
|
7244
|
-
|
|
7245
|
-
|
|
7253
|
+
Sr as selectAssetStageById,
|
|
7254
|
+
fr as selectAssetStageCompletionById,
|
|
7246
7255
|
hn as selectAssetStageCompletionMapping,
|
|
7247
7256
|
dp as selectAssetStageCompletions,
|
|
7248
|
-
|
|
7249
|
-
|
|
7257
|
+
yr as selectAssetStageCompletionsByIds,
|
|
7258
|
+
Tr as selectAssetStages,
|
|
7250
7259
|
hs as selectAssetStagesByIds,
|
|
7251
7260
|
mp as selectAssetStagesMappingOfAssetProcedure,
|
|
7252
7261
|
pp as selectAssetStagesOfAssetProcedure,
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7262
|
+
vr as selectAssetTypeAttachmentById,
|
|
7263
|
+
Fr as selectAssetTypeAttachmentMapping,
|
|
7264
|
+
Pr as selectAssetTypeAttachments,
|
|
7256
7265
|
Os as selectAssetTypeById,
|
|
7257
7266
|
Rn as selectAssetTypeFieldValues,
|
|
7258
7267
|
zp as selectAssetTypeFieldValuesAttachmentById,
|
|
7259
|
-
|
|
7260
|
-
|
|
7268
|
+
Hr as selectAssetTypeFieldValuesAttachments,
|
|
7269
|
+
Wr as selectAssetTypeFieldValuesAttachmentsByIds,
|
|
7261
7270
|
Sn as selectAssetTypeFieldValuesAttachmentsMapping,
|
|
7262
7271
|
Ss as selectAssetTypeFieldValuesById,
|
|
7263
|
-
|
|
7272
|
+
eo as selectAssetTypeFieldValuesMapping,
|
|
7264
7273
|
Vp as selectAssetTypeFieldValuesOfAsset,
|
|
7265
7274
|
Rt as selectAssetTypeFields,
|
|
7266
7275
|
Op as selectAssetTypeFieldsAttachmentById,
|
|
7267
|
-
|
|
7268
|
-
|
|
7276
|
+
Dr as selectAssetTypeFieldsAttachments,
|
|
7277
|
+
Cr as selectAssetTypeFieldsAttachmentsMapping,
|
|
7269
7278
|
qp as selectAssetTypeFieldsById,
|
|
7270
|
-
|
|
7279
|
+
Gr as selectAssetTypeFieldsMapping,
|
|
7271
7280
|
Ep as selectAssetTypeFieldsOfAssetType,
|
|
7272
7281
|
Gp as selectAssetTypeValuesOfAssetType,
|
|
7273
7282
|
Kp as selectAssetTypes,
|
|
7274
7283
|
Yp as selectAssetTypesByIds,
|
|
7275
7284
|
On as selectAssetTypesMapping,
|
|
7276
|
-
|
|
7277
|
-
|
|
7285
|
+
dr as selectAssets,
|
|
7286
|
+
rp as selectAssetsByIds,
|
|
7278
7287
|
dn as selectAssetsMapping,
|
|
7279
7288
|
un as selectAssetsOfAssetType,
|
|
7280
7289
|
Fc as selectAttachmentsOfAsset,
|
|
7281
7290
|
Nc as selectAttachmentsOfAssetProcedureFieldValues,
|
|
7282
7291
|
Fm as selectAttachmentsOfAssetProcedureFields,
|
|
7283
|
-
|
|
7284
|
-
|
|
7292
|
+
wr as selectAttachmentsOfAssetType,
|
|
7293
|
+
Kr as selectAttachmentsOfAssetTypeFieldValues,
|
|
7285
7294
|
_p as selectAttachmentsOfAssetTypeFields,
|
|
7286
|
-
|
|
7295
|
+
rf as selectAttachmentsOfDocument,
|
|
7287
7296
|
Af as selectAttachmentsOfFormRevision,
|
|
7288
7297
|
ad as selectAttachmentsOfFormSubmission,
|
|
7289
7298
|
Md as selectAttachmentsOfIssue,
|
|
@@ -7294,31 +7303,31 @@ export {
|
|
|
7294
7303
|
Cl as selectAttachmentsOfProject,
|
|
7295
7304
|
ef as selectCategories,
|
|
7296
7305
|
tf as selectCategoriesByIds,
|
|
7297
|
-
|
|
7306
|
+
vs as selectCategoryById,
|
|
7298
7307
|
Fn as selectCategoryMapping,
|
|
7299
7308
|
Hf as selectCommentsOfIssue,
|
|
7300
7309
|
Am as selectConversation,
|
|
7301
7310
|
Bi as selectConversationMapping,
|
|
7302
7311
|
ym as selectConversations,
|
|
7303
7312
|
wt as selectCurrentUser,
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7313
|
+
gA as selectDeletedRequests,
|
|
7314
|
+
go as selectDocumentAttachmentById,
|
|
7315
|
+
Ao as selectDocumentAttachmentMapping,
|
|
7316
|
+
Io as selectDocumentById,
|
|
7317
|
+
Oo as selectDocuments,
|
|
7318
|
+
of as selectDocumentsByIds,
|
|
7310
7319
|
De as selectDocumentsMapping,
|
|
7311
|
-
|
|
7312
|
-
|
|
7320
|
+
qo as selectEmailDomains,
|
|
7321
|
+
ko as selectEmailDomainsAsMapping,
|
|
7313
7322
|
lf as selectEmailDomainsOfOrganization,
|
|
7314
7323
|
Nm as selectFieldValuesOfAssetProcedureInstance,
|
|
7315
7324
|
td as selectFormById,
|
|
7316
7325
|
ed as selectFormMapping,
|
|
7317
|
-
|
|
7326
|
+
Go as selectFormRevisionAttachmentsMapping,
|
|
7318
7327
|
bf as selectFormRevisionById,
|
|
7319
7328
|
Ot as selectFormRevisionMapping,
|
|
7320
|
-
|
|
7321
|
-
|
|
7329
|
+
Yo as selectFormRevisions,
|
|
7330
|
+
Jo as selectFormRevisionsOfForm,
|
|
7322
7331
|
nd as selectFormSubmissionAttachemntsByIds,
|
|
7323
7332
|
zn as selectFormSubmissionAttachmentsMapping,
|
|
7324
7333
|
Gs as selectFormSubmissionById,
|
|
@@ -7332,18 +7341,18 @@ export {
|
|
|
7332
7341
|
gd as selectGeoImageMapping,
|
|
7333
7342
|
Sd as selectGeoImages,
|
|
7334
7343
|
qf as selectGeoImagesOfProject,
|
|
7335
|
-
|
|
7344
|
+
kA as selectIsImportingProjectFile,
|
|
7336
7345
|
Zp as selectIsLoggedIn,
|
|
7337
7346
|
Od as selectIssueAssociationById,
|
|
7338
7347
|
it as selectIssueAssociationMapping,
|
|
7339
7348
|
Df as selectIssueAssociations,
|
|
7340
|
-
|
|
7349
|
+
Pd as selectIssueAssociationsOfAsset,
|
|
7341
7350
|
Fd as selectIssueAssociationsOfIssue,
|
|
7342
7351
|
Id as selectIssueAssociationsToIssue,
|
|
7343
7352
|
Cd as selectIssueAttachmentById,
|
|
7344
7353
|
qd as selectIssueAttachmentMapping,
|
|
7345
7354
|
jd as selectIssueAttachments,
|
|
7346
|
-
|
|
7355
|
+
ri as selectIssueById,
|
|
7347
7356
|
Bd as selectIssueCommentAttachmentById,
|
|
7348
7357
|
Gd as selectIssueCommentAttachmentMapping,
|
|
7349
7358
|
Ld as selectIssueCommentAttachments,
|
|
@@ -7351,19 +7360,19 @@ export {
|
|
|
7351
7360
|
Wd as selectIssueCommentMapping,
|
|
7352
7361
|
sf as selectIssueCountOfCategory,
|
|
7353
7362
|
Xd as selectIssueMapping,
|
|
7354
|
-
|
|
7363
|
+
ru as selectIssueTypeAttachmentById,
|
|
7355
7364
|
au as selectIssueTypeAttachmentMapping,
|
|
7356
7365
|
cu as selectIssueTypeAttachments,
|
|
7357
7366
|
gi as selectIssueTypeById,
|
|
7358
7367
|
ta as selectIssueTypeFieldValues,
|
|
7359
7368
|
Iy as selectIssueTypeFieldValuesAttachmentById,
|
|
7360
|
-
|
|
7361
|
-
|
|
7369
|
+
Pu as selectIssueTypeFieldValuesAttachments,
|
|
7370
|
+
vu as selectIssueTypeFieldValuesAttachmentsByIds,
|
|
7362
7371
|
na as selectIssueTypeFieldValuesAttachmentsMapping,
|
|
7363
7372
|
pi as selectIssueTypeFieldValuesById,
|
|
7364
7373
|
Au as selectIssueTypeFieldValuesMapping,
|
|
7365
7374
|
uy as selectIssueTypeFieldValuesOfIssue,
|
|
7366
|
-
|
|
7375
|
+
Pt as selectIssueTypeFields,
|
|
7367
7376
|
ny as selectIssueTypeFieldsAttachmentById,
|
|
7368
7377
|
pu as selectIssueTypeFieldsAttachments,
|
|
7369
7378
|
mu as selectIssueTypeFieldsAttachmentsMapping,
|
|
@@ -7374,66 +7383,66 @@ export {
|
|
|
7374
7383
|
by as selectIssueTypeValuesOfIssueType,
|
|
7375
7384
|
Cu as selectIssueTypes,
|
|
7376
7385
|
Fy as selectIssueTypesByIds,
|
|
7377
|
-
|
|
7386
|
+
Py as selectIssueTypesOfOrganization,
|
|
7378
7387
|
Gu as selectIssueUpdateMapping,
|
|
7379
7388
|
Lu as selectIssueUpdatesOfIssue,
|
|
7380
7389
|
Wf as selectIssuesByIds,
|
|
7381
7390
|
ca as selectIssuesOfIssueType,
|
|
7382
|
-
|
|
7391
|
+
vy as selectIssuesOfIssueTypeCount,
|
|
7383
7392
|
Mm as selectLatestAssetProcedureFieldsOfAssetProcedure,
|
|
7384
7393
|
kp as selectLatestAssetTypeFieldsOfAssetType,
|
|
7385
7394
|
gf as selectLatestFormRevisionOfForm,
|
|
7386
7395
|
Ay as selectLatestIssueTypeFieldsOfIssueType,
|
|
7387
|
-
|
|
7396
|
+
SA as selectLatestRetryTime,
|
|
7388
7397
|
ky as selectLicense,
|
|
7389
7398
|
Hu as selectLicenseForProject,
|
|
7390
|
-
|
|
7399
|
+
vt as selectLicenses,
|
|
7391
7400
|
jy as selectLicensesForProjectsMapping,
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7401
|
+
AA as selectLicensesOfOrganization,
|
|
7402
|
+
op as selectNumberOfAssetsOfAssetType,
|
|
7403
|
+
Hy as selectOrganizationAccessById,
|
|
7404
|
+
Ky as selectOrganizationAccessForUser,
|
|
7396
7405
|
el as selectOrganizationAccessUserMapping,
|
|
7397
7406
|
la as selectOrganizationAccesses,
|
|
7398
|
-
|
|
7407
|
+
pA as selectOrganizationById,
|
|
7399
7408
|
gl as selectOrganizationUsersAsMapping,
|
|
7400
7409
|
bl as selectOrganizationUsersIds,
|
|
7401
7410
|
Al as selectOrganizations,
|
|
7402
7411
|
yl as selectOrganizationsMapping,
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7412
|
+
fA as selectOrganizationsWithAccess,
|
|
7413
|
+
Yy as selectProjectAccessById,
|
|
7414
|
+
Jy as selectProjectAccessForUser,
|
|
7406
7415
|
pa as selectProjectAccessMapping,
|
|
7407
7416
|
cl as selectProjectAccessUserMapping,
|
|
7408
7417
|
al as selectProjectAccesses,
|
|
7409
7418
|
Ml as selectProjectAttachmentById,
|
|
7410
7419
|
ql as selectProjectAttachmentMapping,
|
|
7411
|
-
|
|
7412
|
-
|
|
7420
|
+
nA as selectProjectById,
|
|
7421
|
+
wA as selectProjectFileById,
|
|
7413
7422
|
Bl as selectProjectFileMapping,
|
|
7414
7423
|
Nl as selectProjectFiles,
|
|
7415
7424
|
kt as selectProjectMapping,
|
|
7416
7425
|
pl as selectProjectUsersAsMapping,
|
|
7417
7426
|
ml as selectProjectUsersIds,
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7427
|
+
iA as selectProjects,
|
|
7428
|
+
yA as selectProjectsOfOrganization,
|
|
7429
|
+
jA as selectRehydrated,
|
|
7421
7430
|
uf as selectRootDocuments,
|
|
7422
|
-
|
|
7423
|
-
|
|
7431
|
+
bA as selectSortedOrganizationUsers,
|
|
7432
|
+
aA as selectSortedProjectUsers,
|
|
7424
7433
|
Tt as selectStageMapping,
|
|
7425
7434
|
Ee as selectTeamById,
|
|
7426
7435
|
Oa as selectTeams,
|
|
7427
|
-
|
|
7436
|
+
MA as selectTeamsByIds,
|
|
7428
7437
|
_a as selectTeamsMapping,
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7438
|
+
CA as selectTeamsOfOrganization,
|
|
7439
|
+
DA as selectTeamsOfUser,
|
|
7440
|
+
Do as selectUploadUrl,
|
|
7441
|
+
By as selectUserById,
|
|
7442
|
+
Ny as selectUsersByIds,
|
|
7434
7443
|
Et as selectUsersMapping,
|
|
7435
7444
|
st as separateFilesFromValues,
|
|
7436
|
-
|
|
7445
|
+
lb as separateImageFromFields,
|
|
7437
7446
|
Gl as setActiveProjectFileId,
|
|
7438
7447
|
ap as setAsset,
|
|
7439
7448
|
Sc as setAssetAttachment,
|
|
@@ -7450,10 +7459,10 @@ export {
|
|
|
7450
7459
|
Wm as setAssetProcedureInstance,
|
|
7451
7460
|
Km as setAssetProcedureInstances,
|
|
7452
7461
|
tp as setAssetProcedures,
|
|
7453
|
-
|
|
7462
|
+
br as setAssetStage,
|
|
7454
7463
|
up as setAssetStages,
|
|
7455
7464
|
Lp as setAssetType,
|
|
7456
|
-
|
|
7465
|
+
_r as setAssetTypeAttachment,
|
|
7457
7466
|
yp as setAssetTypeAttachments,
|
|
7458
7467
|
Up as setAssetTypeFieldValues,
|
|
7459
7468
|
Mp as setAssetTypeFieldValuesAttachment,
|
|
@@ -7462,16 +7471,16 @@ export {
|
|
|
7462
7471
|
Fp as setAssetTypeFields,
|
|
7463
7472
|
gp as setAssetTypeFieldsAttachment,
|
|
7464
7473
|
Sp as setAssetTypeFieldsAttachments,
|
|
7465
|
-
|
|
7474
|
+
Pp as setAssetTypeFieldsMany,
|
|
7466
7475
|
Bp as setAssetTypes,
|
|
7467
7476
|
cp as setAssets,
|
|
7468
7477
|
Ac as setConversation,
|
|
7469
7478
|
Gy as setCurrentUser,
|
|
7470
|
-
|
|
7479
|
+
mo as setDocumentAttachment,
|
|
7471
7480
|
af as setDocumentAttachments,
|
|
7472
|
-
|
|
7481
|
+
To as setDocuments,
|
|
7473
7482
|
Sf as setForm,
|
|
7474
|
-
|
|
7483
|
+
No as setFormRevision,
|
|
7475
7484
|
mf as setFormRevisionAttachment,
|
|
7476
7485
|
pf as setFormRevisionAttachments,
|
|
7477
7486
|
at as setFormSubmission,
|
|
@@ -7495,25 +7504,26 @@ export {
|
|
|
7495
7504
|
cy as setIssueTypeFieldValues,
|
|
7496
7505
|
Ty as setIssueTypeFieldValuesAttachment,
|
|
7497
7506
|
Ry as setIssueTypeFieldValuesAttachments,
|
|
7498
|
-
|
|
7507
|
+
ry as setIssueTypeFieldValuesMany,
|
|
7499
7508
|
hy as setIssueTypeFields,
|
|
7500
7509
|
Zf as setIssueTypeFieldsAttachment,
|
|
7501
7510
|
ey as setIssueTypeFieldsAttachments,
|
|
7502
7511
|
my as setIssueTypeFieldsMany,
|
|
7503
7512
|
wy as setIssueUpdate,
|
|
7504
|
-
|
|
7505
|
-
|
|
7513
|
+
no as setLoggedIn,
|
|
7514
|
+
rA as setOrganization,
|
|
7506
7515
|
fl as setOrganizations,
|
|
7507
|
-
|
|
7508
|
-
|
|
7516
|
+
Ly as setProfilePicture,
|
|
7517
|
+
Xy as setProject,
|
|
7518
|
+
vl as setProjectAttachment,
|
|
7509
7519
|
wl as setProjectAttachments,
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7520
|
+
OA as setProjectFile,
|
|
7521
|
+
IA as setProjectFiles,
|
|
7522
|
+
ol as setProjects,
|
|
7523
|
+
qA as setRehydrated,
|
|
7514
7524
|
we as setTeam,
|
|
7515
7525
|
Jp as setTokens,
|
|
7516
|
-
|
|
7526
|
+
Co as setUploadUrl,
|
|
7517
7527
|
Cy as setUser,
|
|
7518
7528
|
Ku as setUsers,
|
|
7519
7529
|
em as shallowEqual,
|
|
@@ -7540,32 +7550,32 @@ export {
|
|
|
7540
7550
|
Hm as updateAssetProcedureInstances,
|
|
7541
7551
|
Xm as updateAssetProcedures,
|
|
7542
7552
|
us as updateAssetStage,
|
|
7543
|
-
|
|
7544
|
-
|
|
7553
|
+
hr as updateAssetStageCompletion,
|
|
7554
|
+
mr as updateAssetStageCompletions,
|
|
7545
7555
|
nt as updateAssetStages,
|
|
7546
7556
|
We as updateAssetType,
|
|
7547
7557
|
Ap as updateAssetTypeAttachment,
|
|
7548
|
-
|
|
7558
|
+
Or as updateAssetTypeAttachments,
|
|
7549
7559
|
He as updateAssetTypeFieldValues,
|
|
7550
7560
|
Dp as updateAssetTypeFieldValuesAttachment,
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7561
|
+
Nr as updateAssetTypeFieldValuesAttachments,
|
|
7562
|
+
Xr as updateAssetTypeFieldValuesMany,
|
|
7563
|
+
$r as updateAssetTypeFields,
|
|
7554
7564
|
Tp as updateAssetTypeFieldsAttachment,
|
|
7555
|
-
|
|
7556
|
-
|
|
7565
|
+
jr as updateAssetTypeFieldsAttachments,
|
|
7566
|
+
vp as updateAssetTypeFieldsMany,
|
|
7557
7567
|
Hp as updateAssetTypes,
|
|
7558
7568
|
np as updateAssets,
|
|
7559
|
-
|
|
7569
|
+
ro as updateCategory,
|
|
7560
7570
|
bc as updateConversation,
|
|
7561
7571
|
cf as updateDocumentAttachment,
|
|
7562
|
-
|
|
7572
|
+
po as updateDocumentAttachments,
|
|
7563
7573
|
ye as updateDocuments,
|
|
7564
7574
|
Rf as updateForm,
|
|
7565
7575
|
ff as updateFormRevisionAttachment,
|
|
7566
|
-
$
|
|
7567
|
-
|
|
7568
|
-
|
|
7576
|
+
$o as updateFormRevisionAttachments,
|
|
7577
|
+
od as updateFormSubmission,
|
|
7578
|
+
Pf as updateFormSubmissionAttachment,
|
|
7569
7579
|
id as updateFormSubmissionAttachments,
|
|
7570
7580
|
Ef as updateFormSubmissions,
|
|
7571
7581
|
Ad as updateGeoImage,
|
|
@@ -7583,22 +7593,22 @@ export {
|
|
|
7583
7593
|
Ye as updateIssueTypeFieldValues,
|
|
7584
7594
|
_y as updateIssueTypeFieldValuesAttachment,
|
|
7585
7595
|
Fu as updateIssueTypeFieldValuesAttachments,
|
|
7586
|
-
|
|
7596
|
+
oy as updateIssueTypeFieldValuesMany,
|
|
7587
7597
|
Tu as updateIssueTypeFields,
|
|
7588
7598
|
ty as updateIssueTypeFieldsAttachment,
|
|
7589
7599
|
lu as updateIssueTypeFieldsAttachments,
|
|
7590
7600
|
py as updateIssueTypeFieldsMany,
|
|
7591
7601
|
pe as updateLicense,
|
|
7592
|
-
|
|
7602
|
+
lA as updateOrganization,
|
|
7593
7603
|
Xu as updateOrganizationAccess,
|
|
7594
|
-
|
|
7604
|
+
uA as updateOrganizations,
|
|
7595
7605
|
dl as updateProject,
|
|
7596
7606
|
sl as updateProjectAccess,
|
|
7597
|
-
|
|
7607
|
+
_A as updateProjectAttachment,
|
|
7598
7608
|
El as updateProjectAttachments,
|
|
7599
7609
|
Ei as updateProjectFile,
|
|
7600
|
-
|
|
7601
|
-
|
|
7610
|
+
PA as updateProjectFiles,
|
|
7611
|
+
tA as updateProjects,
|
|
7602
7612
|
qi as updateTeam,
|
|
7603
7613
|
Uy as updateUser,
|
|
7604
7614
|
zy as updateUsers,
|