@overmap-ai/core 1.0.78-procedures.8 → 1.0.78-procedures.9
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
|
@@ -2,7 +2,7 @@ var mo = Object.defineProperty;
|
|
|
2
2
|
var fo = (t, s, e) => s in t ? mo(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
3
|
var l = (t, s, e) => fo(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
4
|
import "@redux-offline/redux-offline/lib/types";
|
|
5
|
-
import { createAction as bs, createSelector as h, createSlice as
|
|
5
|
+
import { createAction as bs, createSelector as h, createSlice as P, isAnyOf as I, combineReducers as Zn, compose as So } from "@reduxjs/toolkit";
|
|
6
6
|
import $t from "superagent";
|
|
7
7
|
import { v4 as vt } from "uuid";
|
|
8
8
|
import { useMemo as Ao } from "react";
|
|
@@ -76,44 +76,40 @@ function _(t) {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function VV() {
|
|
79
|
+
function VV(t) {
|
|
80
80
|
return {
|
|
81
81
|
initializeSelection: (d, o) => {
|
|
82
|
-
d
|
|
82
|
+
d[t] = Array.from(new Set(o.payload));
|
|
83
83
|
},
|
|
84
84
|
selectOne: (d, o) => {
|
|
85
|
-
new Set(d
|
|
85
|
+
console.debug(d, d[t]), !new Set(d[t]).has(o.payload) && d[t].push(o.payload);
|
|
86
86
|
},
|
|
87
87
|
selectMany: (d, o) => {
|
|
88
|
-
const p = new Set(d
|
|
88
|
+
const p = new Set(d[t]);
|
|
89
89
|
for (const y of o.payload)
|
|
90
90
|
p.has(y) || p.add(y);
|
|
91
|
-
d
|
|
91
|
+
d[t] = Array.from(p);
|
|
92
92
|
},
|
|
93
93
|
unselectOne: (d, o) => {
|
|
94
|
-
const p = new Set(d
|
|
95
|
-
p.has(o.payload) && (p.delete(o.payload), d
|
|
94
|
+
const p = new Set(d[t]);
|
|
95
|
+
p.has(o.payload) && (p.delete(o.payload), d[t] = Array.from(p));
|
|
96
96
|
},
|
|
97
97
|
unselectMany: (d, o) => {
|
|
98
|
-
const p = new Set(d
|
|
98
|
+
const p = new Set(d[t]);
|
|
99
99
|
for (const y of o.payload)
|
|
100
100
|
p.has(y) && p.delete(y);
|
|
101
|
-
d
|
|
101
|
+
d[t] = Array.from(p);
|
|
102
102
|
},
|
|
103
103
|
toggleOne: (d, o) => {
|
|
104
|
-
const p = new Set(d
|
|
105
|
-
p.has(o.payload) ? p.delete(o.payload) : p.add(o.payload), d
|
|
104
|
+
const p = new Set(d[t]);
|
|
105
|
+
p.has(o.payload) ? p.delete(o.payload) : p.add(o.payload), d[t] = Array.from(p);
|
|
106
106
|
},
|
|
107
107
|
toggleMany: (d, o) => {
|
|
108
|
-
const p = new Set(d
|
|
108
|
+
const p = new Set(d[t]);
|
|
109
109
|
for (const y of o.payload)
|
|
110
110
|
p.has(y) ? p.delete(y) : p.add(y);
|
|
111
|
-
d
|
|
112
|
-
}
|
|
113
|
-
getInitialState: (d) => ({
|
|
114
|
-
...d,
|
|
115
|
-
selection: []
|
|
116
|
-
})
|
|
111
|
+
d[t] = Array.from(p);
|
|
112
|
+
}
|
|
117
113
|
};
|
|
118
114
|
}
|
|
119
115
|
const rs = "versioning", w = bs("RESET"), B = bs("RESET_PROJECT_STATE"), T = bs("RESET_ORGANIZATION_STATE");
|
|
@@ -248,7 +244,7 @@ const No = [
|
|
|
248
244
|
// FieldsModel
|
|
249
245
|
"revision"
|
|
250
246
|
];
|
|
251
|
-
function
|
|
247
|
+
function O(t) {
|
|
252
248
|
return { ...t, uuid: vt() };
|
|
253
249
|
}
|
|
254
250
|
function LV(t) {
|
|
@@ -257,7 +253,7 @@ function LV(t) {
|
|
|
257
253
|
s[e.uuid] = e;
|
|
258
254
|
return s;
|
|
259
255
|
}
|
|
260
|
-
function
|
|
256
|
+
function E(t) {
|
|
261
257
|
return t.map(({ uuid: s }) => s);
|
|
262
258
|
}
|
|
263
259
|
function ks(t, s) {
|
|
@@ -379,7 +375,7 @@ const m = (
|
|
|
379
375
|
(t) => (...s) => (e) => t(e, ...s)
|
|
380
376
|
), L = _((t) => t.uuid), ii = {
|
|
381
377
|
instances: {}
|
|
382
|
-
}, rr =
|
|
378
|
+
}, rr = P({
|
|
383
379
|
name: "agents",
|
|
384
380
|
initialState: ii,
|
|
385
381
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -417,7 +413,7 @@ const m = (
|
|
|
417
413
|
)
|
|
418
414
|
), eu = rr.reducer, N = _((t) => t.uuid), ni = {
|
|
419
415
|
instances: {}
|
|
420
|
-
}, cr =
|
|
416
|
+
}, cr = P({
|
|
421
417
|
name: "assetAttachments",
|
|
422
418
|
initialState: ni,
|
|
423
419
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -457,7 +453,7 @@ const m = (
|
|
|
457
453
|
h([ur, (t, s) => s], (t, s) => S(t.filter(({ asset: e }) => s === e)))
|
|
458
454
|
), pu = cr.reducer, H = _(({ uuid: t }) => t), ri = {
|
|
459
455
|
instances: {}
|
|
460
|
-
}, lr =
|
|
456
|
+
}, lr = P({
|
|
461
457
|
name: "assetProcedureTypeAttachments",
|
|
462
458
|
initialState: ri,
|
|
463
459
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -500,7 +496,7 @@ const m = (
|
|
|
500
496
|
)
|
|
501
497
|
), G = _(({ uuid: t }) => t), ai = {
|
|
502
498
|
instances: {}
|
|
503
|
-
}, hr =
|
|
499
|
+
}, hr = P({
|
|
504
500
|
name: "assetProcedureTypeFieldsAttachments",
|
|
505
501
|
initialState: ai,
|
|
506
502
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -546,7 +542,7 @@ const m = (
|
|
|
546
542
|
)
|
|
547
543
|
), K = _(({ uuid: t }) => t), ci = {
|
|
548
544
|
instances: {}
|
|
549
|
-
}, mr =
|
|
545
|
+
}, mr = P({
|
|
550
546
|
name: "assetProcedureTypeFields",
|
|
551
547
|
initialState: ci,
|
|
552
548
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -597,7 +593,7 @@ const m = (
|
|
|
597
593
|
)
|
|
598
594
|
), Y = _(({ uuid: t }) => t), di = {
|
|
599
595
|
instances: {}
|
|
600
|
-
}, fr =
|
|
596
|
+
}, fr = P({
|
|
601
597
|
name: "assetProcedureTypeFieldValuesAttachments",
|
|
602
598
|
initialState: di,
|
|
603
599
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -646,7 +642,7 @@ const m = (
|
|
|
646
642
|
)
|
|
647
643
|
), Q = _(({ uuid: t }) => t), oi = {
|
|
648
644
|
instances: {}
|
|
649
|
-
}, Or =
|
|
645
|
+
}, Or = P({
|
|
650
646
|
name: "assetProcedureTypeFieldValues",
|
|
651
647
|
initialState: oi,
|
|
652
648
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -699,7 +695,7 @@ const m = (
|
|
|
699
695
|
({ uuid: t }) => t
|
|
700
696
|
), ui = {
|
|
701
697
|
instances: {}
|
|
702
|
-
}, Pr =
|
|
698
|
+
}, Pr = P({
|
|
703
699
|
name: "assetProcedures",
|
|
704
700
|
initialState: ui,
|
|
705
701
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -743,7 +739,7 @@ const m = (
|
|
|
743
739
|
})
|
|
744
740
|
), Z = _((t) => t.uuid), li = {
|
|
745
741
|
instances: {}
|
|
746
|
-
}, Ir =
|
|
742
|
+
}, Ir = P({
|
|
747
743
|
name: "assetProcedureTypes",
|
|
748
744
|
initialState: li,
|
|
749
745
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -789,7 +785,7 @@ const m = (
|
|
|
789
785
|
)
|
|
790
786
|
), X = _((t) => t.uuid), pi = {
|
|
791
787
|
instances: {}
|
|
792
|
-
}, gr =
|
|
788
|
+
}, gr = P({
|
|
793
789
|
name: "assetProcedureStepFieldsAttachments",
|
|
794
790
|
initialState: pi,
|
|
795
791
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -835,7 +831,7 @@ const m = (
|
|
|
835
831
|
)
|
|
836
832
|
), ap = gr.reducer, ee = _((t) => t.uuid), hi = {
|
|
837
833
|
instances: {}
|
|
838
|
-
}, Fr =
|
|
834
|
+
}, Fr = P({
|
|
839
835
|
name: "assetProcedureStepFields",
|
|
840
836
|
initialState: hi,
|
|
841
837
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -896,7 +892,7 @@ const m = (
|
|
|
896
892
|
)
|
|
897
893
|
), Ap = Fr.reducer, te = _((t) => t.uuid), yi = {
|
|
898
894
|
instances: {}
|
|
899
|
-
}, Rr =
|
|
895
|
+
}, Rr = P({
|
|
900
896
|
name: "assetProcedureStepFieldValuesAttachments",
|
|
901
897
|
initialState: yi,
|
|
902
898
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -945,7 +941,7 @@ const m = (
|
|
|
945
941
|
)
|
|
946
942
|
), Rp = Rr.reducer, se = _((t) => t.uuid), mi = {
|
|
947
943
|
instances: {}
|
|
948
|
-
}, Br =
|
|
944
|
+
}, Br = P({
|
|
949
945
|
name: "assetProcedureStepFieldValues",
|
|
950
946
|
initialState: mi,
|
|
951
947
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1001,7 +997,7 @@ const m = (
|
|
|
1001
997
|
)
|
|
1002
998
|
), Up = Br.reducer, ie = _((t) => t.uuid), fi = {
|
|
1003
999
|
instances: {}
|
|
1004
|
-
}, Dr =
|
|
1000
|
+
}, Dr = P({
|
|
1005
1001
|
name: "assetProcedureSteps",
|
|
1006
1002
|
initialState: fi,
|
|
1007
1003
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1060,7 +1056,7 @@ const m = (
|
|
|
1060
1056
|
)
|
|
1061
1057
|
), ne = _((t) => t.uuid), Si = {
|
|
1062
1058
|
instances: {}
|
|
1063
|
-
}, qr =
|
|
1059
|
+
}, qr = P({
|
|
1064
1060
|
name: "assets",
|
|
1065
1061
|
initialState: Si,
|
|
1066
1062
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1099,7 +1095,7 @@ const m = (
|
|
|
1099
1095
|
})
|
|
1100
1096
|
), yh = qr.reducer, re = _((t) => t.uuid), Ai = {
|
|
1101
1097
|
instances: {}
|
|
1102
|
-
}, Wr =
|
|
1098
|
+
}, Wr = P({
|
|
1103
1099
|
name: "assetStageCompletions",
|
|
1104
1100
|
initialState: Ai,
|
|
1105
1101
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1142,7 +1138,7 @@ const m = (
|
|
|
1142
1138
|
(t) => t.uuid
|
|
1143
1139
|
), wi = {
|
|
1144
1140
|
instances: {}
|
|
1145
|
-
}, jr =
|
|
1141
|
+
}, jr = P({
|
|
1146
1142
|
name: "assetStages",
|
|
1147
1143
|
initialState: wi,
|
|
1148
1144
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1186,7 +1182,7 @@ const m = (
|
|
|
1186
1182
|
})
|
|
1187
1183
|
), ce = _((t) => t.uuid), Oi = {
|
|
1188
1184
|
instances: {}
|
|
1189
|
-
}, Lr =
|
|
1185
|
+
}, Lr = P({
|
|
1190
1186
|
name: "assetTypeAttachments",
|
|
1191
1187
|
initialState: Oi,
|
|
1192
1188
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1229,7 +1225,7 @@ const m = (
|
|
|
1229
1225
|
h([Gr, (t, s) => s], (t, s) => S(t.filter(({ asset_type: e }) => s === e)))
|
|
1230
1226
|
), Zh = Lr.reducer, de = _((t) => t.uuid), Pi = {
|
|
1231
1227
|
instances: {}
|
|
1232
|
-
}, Kr =
|
|
1228
|
+
}, Kr = P({
|
|
1233
1229
|
name: "assetTypeFieldsAttachments",
|
|
1234
1230
|
initialState: Pi,
|
|
1235
1231
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1275,7 +1271,7 @@ const m = (
|
|
|
1275
1271
|
)
|
|
1276
1272
|
), ly = Kr.reducer, oe = _((t) => t.uuid), _i = {
|
|
1277
1273
|
instances: {}
|
|
1278
|
-
}, Qr =
|
|
1274
|
+
}, Qr = P({
|
|
1279
1275
|
name: "assetTypeFields",
|
|
1280
1276
|
initialState: _i,
|
|
1281
1277
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1314,7 +1310,7 @@ const m = (
|
|
|
1314
1310
|
})
|
|
1315
1311
|
), Iy = Qr.reducer, ue = _((t) => t.uuid), Ti = {
|
|
1316
1312
|
instances: {}
|
|
1317
|
-
}, Jr =
|
|
1313
|
+
}, Jr = P({
|
|
1318
1314
|
name: "assetTypeFieldValuesAttachments",
|
|
1319
1315
|
initialState: Ti,
|
|
1320
1316
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1360,7 +1356,7 @@ const m = (
|
|
|
1360
1356
|
)
|
|
1361
1357
|
), zy = Jr.reducer, le = _((t) => t.uuid), Ii = {
|
|
1362
1358
|
instances: {}
|
|
1363
|
-
}, ta =
|
|
1359
|
+
}, ta = P({
|
|
1364
1360
|
name: "assetTypeFieldValues",
|
|
1365
1361
|
initialState: Ii,
|
|
1366
1362
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1410,7 +1406,7 @@ const m = (
|
|
|
1410
1406
|
)
|
|
1411
1407
|
), Yy = ta.reducer, pe = _((t) => t.uuid), bi = {
|
|
1412
1408
|
instances: {}
|
|
1413
|
-
}, sa =
|
|
1409
|
+
}, sa = P({
|
|
1414
1410
|
name: "assetTypeIdentifiers",
|
|
1415
1411
|
initialState: bi,
|
|
1416
1412
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1453,7 +1449,7 @@ const m = (
|
|
|
1453
1449
|
h([ia, (t, s) => s], (t, s) => S(t.filter((e) => e.asset_type === s)))
|
|
1454
1450
|
), dm = sa.reducer, he = _((t) => t.uuid), gi = {
|
|
1455
1451
|
instances: {}
|
|
1456
|
-
}, na =
|
|
1452
|
+
}, na = P({
|
|
1457
1453
|
name: "assetTypeIdentifierValues",
|
|
1458
1454
|
initialState: gi,
|
|
1459
1455
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1505,7 +1501,7 @@ const m = (
|
|
|
1505
1501
|
(t) => t.uuid
|
|
1506
1502
|
), ki = {
|
|
1507
1503
|
instances: {}
|
|
1508
|
-
}, ra =
|
|
1504
|
+
}, ra = P({
|
|
1509
1505
|
name: "assetTypes",
|
|
1510
1506
|
initialState: ki,
|
|
1511
1507
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1545,7 +1541,7 @@ const m = (
|
|
|
1545
1541
|
h([aa, (t, s) => s], (t, s) => S(t.filter((e) => e.organization === s)))
|
|
1546
1542
|
), Bm = ra.reducer, me = _((t) => t.uuid), Fi = {
|
|
1547
1543
|
instances: {}
|
|
1548
|
-
}, ca =
|
|
1544
|
+
}, ca = P({
|
|
1549
1545
|
name: "assetTypeStatuses",
|
|
1550
1546
|
initialState: Fi,
|
|
1551
1547
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1584,7 +1580,7 @@ const m = (
|
|
|
1584
1580
|
accessToken: "",
|
|
1585
1581
|
refreshToken: "",
|
|
1586
1582
|
isLoggedIn: !1
|
|
1587
|
-
}, zs =
|
|
1583
|
+
}, zs = P({
|
|
1588
1584
|
name: "auth",
|
|
1589
1585
|
initialState: Mi,
|
|
1590
1586
|
extraReducers: (t) => t.addCase(w, (s) => Object.assign(s, Mi)),
|
|
@@ -1601,7 +1597,7 @@ const m = (
|
|
|
1601
1597
|
}
|
|
1602
1598
|
}), { setTokens: zB, clearTokens: qB, setLoggedIn: Km } = zs.actions, $B = (t) => t.authReducer.accessToken, xB = (t) => t.authReducer.isLoggedIn, Ym = zs.reducer, fe = _((t) => t.uuid), Ri = {
|
|
1603
1599
|
instances: {}
|
|
1604
|
-
}, oa =
|
|
1600
|
+
}, oa = P({
|
|
1605
1601
|
name: "documentAttachments",
|
|
1606
1602
|
initialState: Ri,
|
|
1607
1603
|
extraReducers: (t) => t.addCase(w, (s) => Object.assign(s, Ri)),
|
|
@@ -1641,7 +1637,7 @@ const m = (
|
|
|
1641
1637
|
h([ua, (t, s) => s], (t, s) => S(t.filter(({ document: e }) => s === e)))
|
|
1642
1638
|
), of = oa.reducer, Se = _(({ uuid: t }) => t), Ei = {
|
|
1643
1639
|
instances: {}
|
|
1644
|
-
}, la =
|
|
1640
|
+
}, la = P({
|
|
1645
1641
|
name: "documents",
|
|
1646
1642
|
initialState: Ei,
|
|
1647
1643
|
extraReducers: (t) => t.addMatcher(I(w, T), (s) => {
|
|
@@ -1690,7 +1686,7 @@ const m = (
|
|
|
1690
1686
|
(t) => t.uuid
|
|
1691
1687
|
), vi = {
|
|
1692
1688
|
instances: {}
|
|
1693
|
-
}, ha =
|
|
1689
|
+
}, ha = P({
|
|
1694
1690
|
name: "emailDomains",
|
|
1695
1691
|
initialState: vi,
|
|
1696
1692
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1727,7 +1723,7 @@ const m = (
|
|
|
1727
1723
|
h([ya, (t, s) => s], (t, s) => S(t.filter((e) => e.organization === s)))
|
|
1728
1724
|
), Df = ha.reducer, Vi = {
|
|
1729
1725
|
s3Urls: {}
|
|
1730
|
-
}, ma = 1e3 * 60 * 60, zf = ma * 24 * 7, fa =
|
|
1726
|
+
}, ma = 1e3 * 60 * 60, zf = ma * 24 * 7, fa = P({
|
|
1731
1727
|
name: "file",
|
|
1732
1728
|
initialState: Vi,
|
|
1733
1729
|
extraReducers: (t) => t.addCase(w, (s) => Object.assign(s, Vi)),
|
|
@@ -1752,7 +1748,7 @@ const m = (
|
|
|
1752
1748
|
(t) => t.uuid
|
|
1753
1749
|
), Bi = {
|
|
1754
1750
|
instances: {}
|
|
1755
|
-
}, Sa =
|
|
1751
|
+
}, Sa = P({
|
|
1756
1752
|
name: "formIdentifiers",
|
|
1757
1753
|
initialState: Bi,
|
|
1758
1754
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1792,7 +1788,7 @@ const m = (
|
|
|
1792
1788
|
h([Aa, (t, s) => s], (t, s) => S(t.filter((e) => e.form === s)))
|
|
1793
1789
|
), Qf = Sa.reducer, Oe = _((t) => t.uuid), Di = {
|
|
1794
1790
|
instances: {}
|
|
1795
|
-
}, wa =
|
|
1791
|
+
}, wa = P({
|
|
1796
1792
|
name: "formIdentifierValues",
|
|
1797
1793
|
initialState: Di,
|
|
1798
1794
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1847,7 +1843,7 @@ const m = (
|
|
|
1847
1843
|
)
|
|
1848
1844
|
), oS = wa.reducer, Pe = _((t) => t.uuid), zi = {
|
|
1849
1845
|
instances: {}
|
|
1850
|
-
}, Oa =
|
|
1846
|
+
}, Oa = P({
|
|
1851
1847
|
name: "formRevisionAttachments",
|
|
1852
1848
|
initialState: zi,
|
|
1853
1849
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1899,7 +1895,7 @@ const m = (
|
|
|
1899
1895
|
(t) => t.uuid
|
|
1900
1896
|
), qi = {
|
|
1901
1897
|
instances: {}
|
|
1902
|
-
}, Pa =
|
|
1898
|
+
}, Pa = P({
|
|
1903
1899
|
name: "formRevisions",
|
|
1904
1900
|
initialState: qi,
|
|
1905
1901
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1944,7 +1940,7 @@ const m = (
|
|
|
1944
1940
|
)
|
|
1945
1941
|
), BS = Pa.reducer, Te = _((t) => t.uuid), $i = {
|
|
1946
1942
|
instances: {}
|
|
1947
|
-
}, Ia =
|
|
1943
|
+
}, Ia = P({
|
|
1948
1944
|
name: "forms",
|
|
1949
1945
|
initialState: $i,
|
|
1950
1946
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1981,7 +1977,7 @@ const m = (
|
|
|
1981
1977
|
h([ba, (t, s) => s], (t, s) => S(t.filter((e) => e.organization === s)))
|
|
1982
1978
|
), Ie = _((t) => t.uuid), xi = {
|
|
1983
1979
|
instances: {}
|
|
1984
|
-
}, ga =
|
|
1980
|
+
}, ga = P({
|
|
1985
1981
|
name: "formSubmissionAttachments",
|
|
1986
1982
|
initialState: xi,
|
|
1987
1983
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2038,7 +2034,7 @@ const m = (
|
|
|
2038
2034
|
(t) => t.uuid
|
|
2039
2035
|
), Wi = {
|
|
2040
2036
|
instances: {}
|
|
2041
|
-
}, va =
|
|
2037
|
+
}, va = P({
|
|
2042
2038
|
name: "formSubmissions",
|
|
2043
2039
|
initialState: Wi,
|
|
2044
2040
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2080,7 +2076,7 @@ const m = (
|
|
|
2080
2076
|
(t) => t.uuid
|
|
2081
2077
|
), ji = {
|
|
2082
2078
|
instances: {}
|
|
2083
|
-
}, za =
|
|
2079
|
+
}, za = P({
|
|
2084
2080
|
name: "geoImages",
|
|
2085
2081
|
initialState: ji,
|
|
2086
2082
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2117,7 +2113,7 @@ const m = (
|
|
|
2117
2113
|
h([qa, (t, s) => s], (t, s) => S(t.filter((e) => e.project === s)))
|
|
2118
2114
|
), MA = za.reducer, ke = _((t) => t.uuid), Ci = {
|
|
2119
2115
|
instances: {}
|
|
2120
|
-
}, $a =
|
|
2116
|
+
}, $a = P({
|
|
2121
2117
|
name: "issueAssociations",
|
|
2122
2118
|
initialState: Ci,
|
|
2123
2119
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2176,7 +2172,7 @@ const m = (
|
|
|
2176
2172
|
h([Ct, (t, s) => s], (t, s) => S(t.filter(({ asset: e }) => e === s)))
|
|
2177
2173
|
), NA = $a.reducer, Fe = _((t) => t.uuid), Ui = {
|
|
2178
2174
|
instances: {}
|
|
2179
|
-
}, xa =
|
|
2175
|
+
}, xa = P({
|
|
2180
2176
|
name: "issueAttachments",
|
|
2181
2177
|
initialState: Ui,
|
|
2182
2178
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2219,7 +2215,7 @@ const m = (
|
|
|
2219
2215
|
})
|
|
2220
2216
|
), iw = xa.reducer, Me = _((t) => t.uuid), Li = {
|
|
2221
2217
|
instances: {}
|
|
2222
|
-
}, Ua =
|
|
2218
|
+
}, Ua = P({
|
|
2223
2219
|
name: "issueCommentAttachments",
|
|
2224
2220
|
initialState: Li,
|
|
2225
2221
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2264,7 +2260,7 @@ const m = (
|
|
|
2264
2260
|
(t) => t.uuid
|
|
2265
2261
|
), Ni = {
|
|
2266
2262
|
instances: {}
|
|
2267
|
-
}, Na =
|
|
2263
|
+
}, Na = P({
|
|
2268
2264
|
name: "issueComments",
|
|
2269
2265
|
initialState: Ni,
|
|
2270
2266
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2306,7 +2302,7 @@ const m = (
|
|
|
2306
2302
|
)
|
|
2307
2303
|
), Fw = Na.reducer, Ee = _((t) => t.uuid), Hi = {
|
|
2308
2304
|
instances: {}
|
|
2309
|
-
}, Ga =
|
|
2305
|
+
}, Ga = P({
|
|
2310
2306
|
name: "issues",
|
|
2311
2307
|
initialState: Hi,
|
|
2312
2308
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2348,7 +2344,7 @@ const m = (
|
|
|
2348
2344
|
h([js, (t, s) => s], (t, s) => t.filter((e) => e.issue_type === s))
|
|
2349
2345
|
), Ww = Ga.reducer, ve = _((t) => t.uuid), Gi = {
|
|
2350
2346
|
instances: {}
|
|
2351
|
-
}, Qa =
|
|
2347
|
+
}, Qa = P({
|
|
2352
2348
|
name: "issueTypeAttachments",
|
|
2353
2349
|
initialState: Gi,
|
|
2354
2350
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2391,7 +2387,7 @@ const m = (
|
|
|
2391
2387
|
h([Ja, (t, s) => s], (t, s) => S(t.filter(({ issue_type: e }) => s === e)))
|
|
2392
2388
|
), Xw = Qa.reducer, Ve = _((t) => t.uuid), Ki = {
|
|
2393
2389
|
instances: {}
|
|
2394
|
-
}, Za =
|
|
2390
|
+
}, Za = P({
|
|
2395
2391
|
name: "issueTypeFieldsAttachments",
|
|
2396
2392
|
initialState: Ki,
|
|
2397
2393
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2437,7 +2433,7 @@ const m = (
|
|
|
2437
2433
|
)
|
|
2438
2434
|
), pO = Za.reducer, Be = _((t) => t.uuid), Yi = {
|
|
2439
2435
|
instances: {}
|
|
2440
|
-
}, ec =
|
|
2436
|
+
}, ec = P({
|
|
2441
2437
|
name: "issueTypeFieldValues",
|
|
2442
2438
|
initialState: Yi,
|
|
2443
2439
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2477,7 +2473,7 @@ const m = (
|
|
|
2477
2473
|
)
|
|
2478
2474
|
), bO = ec.reducer, De = _((t) => t.uuid), Qi = {
|
|
2479
2475
|
instances: {}
|
|
2480
|
-
}, tc =
|
|
2476
|
+
}, tc = P({
|
|
2481
2477
|
name: "issueTypeFields",
|
|
2482
2478
|
initialState: Qi,
|
|
2483
2479
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2526,7 +2522,7 @@ const m = (
|
|
|
2526
2522
|
})
|
|
2527
2523
|
), $O = tc.reducer, ze = _((t) => t.uuid), Ji = {
|
|
2528
2524
|
instances: {}
|
|
2529
|
-
}, sc =
|
|
2525
|
+
}, sc = P({
|
|
2530
2526
|
name: "issueTypeFieldValuesAttachments",
|
|
2531
2527
|
initialState: Ji,
|
|
2532
2528
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2572,7 +2568,7 @@ const m = (
|
|
|
2572
2568
|
)
|
|
2573
2569
|
), QO = sc.reducer, qe = _((t) => t.uuid), Zi = {
|
|
2574
2570
|
instances: {}
|
|
2575
|
-
}, ac =
|
|
2571
|
+
}, ac = P({
|
|
2576
2572
|
name: "issueTypeIdentifiers",
|
|
2577
2573
|
initialState: Zi,
|
|
2578
2574
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2615,7 +2611,7 @@ const m = (
|
|
|
2615
2611
|
h([cc, (t, s) => s], (t, s) => S(t.filter((e) => e.issue_type === s)))
|
|
2616
2612
|
), oP = ac.reducer, $e = _((t) => t.uuid), Xi = {
|
|
2617
2613
|
instances: {}
|
|
2618
|
-
}, dc =
|
|
2614
|
+
}, dc = P({
|
|
2619
2615
|
name: "issueTypeIdentifierValues",
|
|
2620
2616
|
initialState: Xi,
|
|
2621
2617
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2667,7 +2663,7 @@ const m = (
|
|
|
2667
2663
|
(t) => t.uuid
|
|
2668
2664
|
), en = {
|
|
2669
2665
|
instances: {}
|
|
2670
|
-
}, oc =
|
|
2666
|
+
}, oc = P({
|
|
2671
2667
|
name: "issueTypes",
|
|
2672
2668
|
initialState: en,
|
|
2673
2669
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2707,7 +2703,7 @@ const m = (
|
|
|
2707
2703
|
h([uc, (t, s) => s], (t, s) => S(t.filter((e) => e.organization === s)))
|
|
2708
2704
|
), DP = oc.reducer, We = _((t) => t.uuid), tn = {
|
|
2709
2705
|
instances: {}
|
|
2710
|
-
}, lc =
|
|
2706
|
+
}, lc = P({
|
|
2711
2707
|
name: "issueTypeStatuses",
|
|
2712
2708
|
initialState: tn,
|
|
2713
2709
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2746,7 +2742,7 @@ const m = (
|
|
|
2746
2742
|
(t) => t.uuid
|
|
2747
2743
|
), sn = {
|
|
2748
2744
|
instances: {}
|
|
2749
|
-
}, yc =
|
|
2745
|
+
}, yc = P({
|
|
2750
2746
|
name: "issueUpdates",
|
|
2751
2747
|
initialState: sn,
|
|
2752
2748
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2795,7 +2791,7 @@ const m = (
|
|
|
2795
2791
|
), s_ = yc.reducer, Ce = _((t) => t.id), nn = {
|
|
2796
2792
|
instances: {},
|
|
2797
2793
|
currentUser: null
|
|
2798
|
-
}, Pc =
|
|
2794
|
+
}, Pc = P({
|
|
2799
2795
|
name: "users",
|
|
2800
2796
|
initialState: nn,
|
|
2801
2797
|
extraReducers: (t) => t.addCase(w, (s) => Object.assign(s, nn)).addCase(T, (s) => Object.assign(s, { ...s, instances: [] })),
|
|
@@ -2840,7 +2836,7 @@ const m = (
|
|
|
2840
2836
|
})
|
|
2841
2837
|
), Ue = _((t) => t.uuid), rn = {
|
|
2842
2838
|
instances: {}
|
|
2843
|
-
}, bc =
|
|
2839
|
+
}, bc = P({
|
|
2844
2840
|
name: "organizationAccess",
|
|
2845
2841
|
initialState: rn,
|
|
2846
2842
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2898,7 +2894,7 @@ const m = (
|
|
|
2898
2894
|
)
|
|
2899
2895
|
), Le = _((t) => t.uuid), an = {
|
|
2900
2896
|
instances: {}
|
|
2901
|
-
}, gc =
|
|
2897
|
+
}, gc = P({
|
|
2902
2898
|
name: "organizations",
|
|
2903
2899
|
initialState: an,
|
|
2904
2900
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2950,7 +2946,7 @@ const m = (
|
|
|
2950
2946
|
}, cn = {
|
|
2951
2947
|
deletedRequests: [],
|
|
2952
2948
|
latestRetryTime: 0
|
|
2953
|
-
}, kc =
|
|
2949
|
+
}, kc = P({
|
|
2954
2950
|
name: "outbox",
|
|
2955
2951
|
initialState: cn,
|
|
2956
2952
|
extraReducers: (t) => t.addCase(w, (s) => Object.assign(s, cn)),
|
|
@@ -2981,7 +2977,7 @@ const m = (
|
|
|
2981
2977
|
(t) => t.uuid
|
|
2982
2978
|
), dn = {
|
|
2983
2979
|
instances: {}
|
|
2984
|
-
}, Fc =
|
|
2980
|
+
}, Fc = P({
|
|
2985
2981
|
name: "projectAccess",
|
|
2986
2982
|
initialState: dn,
|
|
2987
2983
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3041,7 +3037,7 @@ const m = (
|
|
|
3041
3037
|
)
|
|
3042
3038
|
), He = _((t) => t.uuid), on = {
|
|
3043
3039
|
instances: {}
|
|
3044
|
-
}, Rc =
|
|
3040
|
+
}, Rc = P({
|
|
3045
3041
|
name: "projectAttachments",
|
|
3046
3042
|
initialState: on,
|
|
3047
3043
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3083,7 +3079,7 @@ const m = (
|
|
|
3083
3079
|
(t) => t.uuid
|
|
3084
3080
|
), un = {
|
|
3085
3081
|
instances: {}
|
|
3086
|
-
}, vc =
|
|
3082
|
+
}, vc = P({
|
|
3087
3083
|
name: "projectFiles",
|
|
3088
3084
|
initialState: un,
|
|
3089
3085
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3118,7 +3114,7 @@ const m = (
|
|
|
3118
3114
|
})
|
|
3119
3115
|
), MT = vc.reducer, Ke = _((t) => t.uuid), ln = {
|
|
3120
3116
|
instances: {}
|
|
3121
|
-
}, Vc =
|
|
3117
|
+
}, Vc = P({
|
|
3122
3118
|
name: "projects",
|
|
3123
3119
|
initialState: ln,
|
|
3124
3120
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3160,7 +3156,7 @@ const m = (
|
|
|
3160
3156
|
h([Gs, (t, s) => s], (t, s) => S(t.filter((e) => e.organization === s)))
|
|
3161
3157
|
), Ye = _(({ uuid: t }) => t), pn = {
|
|
3162
3158
|
instances: {}
|
|
3163
|
-
}, Bc =
|
|
3159
|
+
}, Bc = P({
|
|
3164
3160
|
name: "procedures",
|
|
3165
3161
|
initialState: pn,
|
|
3166
3162
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3206,7 +3202,7 @@ const m = (
|
|
|
3206
3202
|
h([Kt, (t, s) => s], (t, s) => S(t.filter((e) => e.issue === s)))
|
|
3207
3203
|
), Qe = _((t) => t.uuid), hn = {
|
|
3208
3204
|
instances: {}
|
|
3209
|
-
}, qc =
|
|
3205
|
+
}, qc = P({
|
|
3210
3206
|
name: "procedureStepAssignees",
|
|
3211
3207
|
initialState: hn,
|
|
3212
3208
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3261,7 +3257,7 @@ const m = (
|
|
|
3261
3257
|
)
|
|
3262
3258
|
), hI = qc.reducer, Je = _((t) => t.uuid), yn = {
|
|
3263
3259
|
instances: {}
|
|
3264
|
-
}, $c =
|
|
3260
|
+
}, $c = P({
|
|
3265
3261
|
name: "procedureStepComments",
|
|
3266
3262
|
initialState: yn,
|
|
3267
3263
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3316,7 +3312,7 @@ const m = (
|
|
|
3316
3312
|
)
|
|
3317
3313
|
), gI = $c.reducer, Ze = _((t) => t.uuid), mn = {
|
|
3318
3314
|
instances: {}
|
|
3319
|
-
}, xc =
|
|
3315
|
+
}, xc = P({
|
|
3320
3316
|
name: "procedureStepDefaultAssignees",
|
|
3321
3317
|
initialState: mn,
|
|
3322
3318
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3362,7 +3358,7 @@ const m = (
|
|
|
3362
3358
|
)
|
|
3363
3359
|
), xI = xc.reducer, Xe = _((t) => t.uuid), fn = {
|
|
3364
3360
|
instances: {}
|
|
3365
|
-
}, jc =
|
|
3361
|
+
}, jc = P({
|
|
3366
3362
|
name: "procedureStepDefaultReviewers",
|
|
3367
3363
|
initialState: fn,
|
|
3368
3364
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3408,7 +3404,7 @@ const m = (
|
|
|
3408
3404
|
)
|
|
3409
3405
|
), ZI = jc.reducer, et = _((t) => t.uuid), Sn = {
|
|
3410
3406
|
instances: {}
|
|
3411
|
-
}, Uc =
|
|
3407
|
+
}, Uc = P({
|
|
3412
3408
|
name: "procedureStepEvents",
|
|
3413
3409
|
initialState: Sn,
|
|
3414
3410
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3463,7 +3459,7 @@ const m = (
|
|
|
3463
3459
|
)
|
|
3464
3460
|
), lb = Uc.reducer, tt = _((t) => t.uuid), An = {
|
|
3465
3461
|
instances: {}
|
|
3466
|
-
}, Lc =
|
|
3462
|
+
}, Lc = P({
|
|
3467
3463
|
name: "procedureStepFieldsAttachments",
|
|
3468
3464
|
initialState: An,
|
|
3469
3465
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3509,7 +3505,7 @@ const m = (
|
|
|
3509
3505
|
)
|
|
3510
3506
|
), Tb = Lc.reducer, st = _((t) => t.uuid), wn = {
|
|
3511
3507
|
instances: {}
|
|
3512
|
-
}, Kc =
|
|
3508
|
+
}, Kc = P({
|
|
3513
3509
|
name: "procedureStepFields",
|
|
3514
3510
|
initialState: wn,
|
|
3515
3511
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3558,7 +3554,7 @@ const m = (
|
|
|
3558
3554
|
)
|
|
3559
3555
|
), Db = Kc.reducer, it = _((t) => t.uuid), On = {
|
|
3560
3556
|
instances: {}
|
|
3561
|
-
}, Qc =
|
|
3557
|
+
}, Qc = P({
|
|
3562
3558
|
name: "procedureStepFieldValuesAttachments",
|
|
3563
3559
|
initialState: On,
|
|
3564
3560
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3604,7 +3600,7 @@ const m = (
|
|
|
3604
3600
|
)
|
|
3605
3601
|
), Gb = Qc.reducer, nt = _((t) => t.uuid), Pn = {
|
|
3606
3602
|
instances: {}
|
|
3607
|
-
}, ed =
|
|
3603
|
+
}, ed = P({
|
|
3608
3604
|
name: "procedureStepFieldValues",
|
|
3609
3605
|
initialState: Pn,
|
|
3610
3606
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3665,7 +3661,7 @@ const m = (
|
|
|
3665
3661
|
)
|
|
3666
3662
|
), rt = _((t) => t.uuid), _n = {
|
|
3667
3663
|
instances: {}
|
|
3668
|
-
}, td =
|
|
3664
|
+
}, td = P({
|
|
3669
3665
|
name: "procedureStepFieldValuesReviews",
|
|
3670
3666
|
initialState: _n,
|
|
3671
3667
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3731,7 +3727,7 @@ const m = (
|
|
|
3731
3727
|
],
|
|
3732
3728
|
(t, s, e, i) => {
|
|
3733
3729
|
const n = new Set(
|
|
3734
|
-
|
|
3730
|
+
E(
|
|
3735
3731
|
t.filter(
|
|
3736
3732
|
({ procedure_step: r, procedure: a }) => e === a && r === i
|
|
3737
3733
|
)
|
|
@@ -3753,7 +3749,7 @@ const m = (
|
|
|
3753
3749
|
return s;
|
|
3754
3750
|
}), Ag = td.reducer, at = _((t) => t.uuid), Tn = {
|
|
3755
3751
|
instances: {}
|
|
3756
|
-
}, nd =
|
|
3752
|
+
}, nd = P({
|
|
3757
3753
|
name: "procedureStepReviewers",
|
|
3758
3754
|
initialState: Tn,
|
|
3759
3755
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3810,7 +3806,7 @@ const m = (
|
|
|
3810
3806
|
(t) => t.uuid
|
|
3811
3807
|
), In = {
|
|
3812
3808
|
instances: {}
|
|
3813
|
-
}, rd =
|
|
3809
|
+
}, rd = P({
|
|
3814
3810
|
name: "procedureSteps",
|
|
3815
3811
|
initialState: In,
|
|
3816
3812
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3857,7 +3853,7 @@ const m = (
|
|
|
3857
3853
|
})
|
|
3858
3854
|
), dt = _(({ uuid: t }) => t), bn = {
|
|
3859
3855
|
instances: {}
|
|
3860
|
-
}, dd =
|
|
3856
|
+
}, dd = P({
|
|
3861
3857
|
name: "procedureTypeAttachments",
|
|
3862
3858
|
initialState: bn,
|
|
3863
3859
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3903,7 +3899,7 @@ const m = (
|
|
|
3903
3899
|
)
|
|
3904
3900
|
), ot = _(({ uuid: t }) => t), gn = {
|
|
3905
3901
|
instances: {}
|
|
3906
|
-
}, ud =
|
|
3902
|
+
}, ud = P({
|
|
3907
3903
|
name: "procedureTypeFieldsAttachments",
|
|
3908
3904
|
initialState: gn,
|
|
3909
3905
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3949,7 +3945,7 @@ const m = (
|
|
|
3949
3945
|
)
|
|
3950
3946
|
), ut = _(({ uuid: t }) => t), kn = {
|
|
3951
3947
|
instances: {}
|
|
3952
|
-
}, pd =
|
|
3948
|
+
}, pd = P({
|
|
3953
3949
|
name: "procedureTypeFields",
|
|
3954
3950
|
initialState: kn,
|
|
3955
3951
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3994,7 +3990,7 @@ const m = (
|
|
|
3994
3990
|
)
|
|
3995
3991
|
), lt = _(({ uuid: t }) => t), Fn = {
|
|
3996
3992
|
instances: {}
|
|
3997
|
-
}, hd =
|
|
3993
|
+
}, hd = P({
|
|
3998
3994
|
name: "procedureFieldValuesAttachments",
|
|
3999
3995
|
initialState: Fn,
|
|
4000
3996
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4040,7 +4036,7 @@ const m = (
|
|
|
4040
4036
|
)
|
|
4041
4037
|
), pt = _(({ uuid: t }) => t), Mn = {
|
|
4042
4038
|
instances: {}
|
|
4043
|
-
}, Sd =
|
|
4039
|
+
}, Sd = P({
|
|
4044
4040
|
name: "procedureFieldValues",
|
|
4045
4041
|
initialState: Mn,
|
|
4046
4042
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4082,7 +4078,7 @@ const m = (
|
|
|
4082
4078
|
(t) => t.uuid
|
|
4083
4079
|
), Rn = {
|
|
4084
4080
|
instances: {}
|
|
4085
|
-
}, wd =
|
|
4081
|
+
}, wd = P({
|
|
4086
4082
|
name: "procedureTypes",
|
|
4087
4083
|
initialState: Rn,
|
|
4088
4084
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4122,7 +4118,7 @@ const m = (
|
|
|
4122
4118
|
h([Od, (t, s) => s], (t, s) => S(t.filter((e) => e.organization === s)))
|
|
4123
4119
|
), hF = {
|
|
4124
4120
|
isRehydrated: !1
|
|
4125
|
-
}, Pd =
|
|
4121
|
+
}, Pd = P({
|
|
4126
4122
|
name: "rehydrated",
|
|
4127
4123
|
initialState: hF,
|
|
4128
4124
|
// The `reducers` field lets us define reducers and generate associated actions
|
|
@@ -4135,7 +4131,7 @@ const m = (
|
|
|
4135
4131
|
(t) => t.uuid
|
|
4136
4132
|
), En = {
|
|
4137
4133
|
instances: {}
|
|
4138
|
-
}, _d =
|
|
4134
|
+
}, _d = P({
|
|
4139
4135
|
name: "teamMemberships",
|
|
4140
4136
|
initialState: En,
|
|
4141
4137
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4188,7 +4184,7 @@ const m = (
|
|
|
4188
4184
|
)
|
|
4189
4185
|
), mt = _((t) => t.uuid), vn = {
|
|
4190
4186
|
instances: {}
|
|
4191
|
-
}, Td =
|
|
4187
|
+
}, Td = P({
|
|
4192
4188
|
name: "teams",
|
|
4193
4189
|
initialState: vn,
|
|
4194
4190
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4225,7 +4221,7 @@ const m = (
|
|
|
4225
4221
|
h([Id, (t, s) => s], (t, s) => S(t.filter((e) => e.organization === s)))
|
|
4226
4222
|
), WF = Td.reducer, jF = {
|
|
4227
4223
|
version: 0
|
|
4228
|
-
}, CF =
|
|
4224
|
+
}, CF = P({
|
|
4229
4225
|
name: "versioning",
|
|
4230
4226
|
initialState: jF,
|
|
4231
4227
|
reducers: {}
|
|
@@ -4233,7 +4229,7 @@ const m = (
|
|
|
4233
4229
|
(t) => t.uuid
|
|
4234
4230
|
), Vn = {
|
|
4235
4231
|
instances: {}
|
|
4236
|
-
}, bd =
|
|
4232
|
+
}, bd = P({
|
|
4237
4233
|
name: "workflows",
|
|
4238
4234
|
initialState: Vn,
|
|
4239
4235
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4275,7 +4271,7 @@ const m = (
|
|
|
4275
4271
|
h([Js, (t, s) => s], (t, s) => S(t.filter((e) => e.workflow_type === s)))
|
|
4276
4272
|
), sM = bd.reducer, St = _((t) => t.uuid), Bn = {
|
|
4277
4273
|
instances: {}
|
|
4278
|
-
}, gd =
|
|
4274
|
+
}, gd = P({
|
|
4279
4275
|
name: "workflowIssueLinks",
|
|
4280
4276
|
initialState: Bn,
|
|
4281
4277
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4324,7 +4320,7 @@ const m = (
|
|
|
4324
4320
|
})
|
|
4325
4321
|
), fM = gd.reducer, At = _((t) => t.uuid), Dn = {
|
|
4326
4322
|
instances: {}
|
|
4327
|
-
}, kd =
|
|
4323
|
+
}, kd = P({
|
|
4328
4324
|
name: "workflowStepAssignees",
|
|
4329
4325
|
initialState: Dn,
|
|
4330
4326
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4379,7 +4375,7 @@ const m = (
|
|
|
4379
4375
|
)
|
|
4380
4376
|
), MM = kd.reducer, wt = _((t) => t.uuid), zn = {
|
|
4381
4377
|
instances: {}
|
|
4382
|
-
}, Fd =
|
|
4378
|
+
}, Fd = P({
|
|
4383
4379
|
name: "workflowStepComments",
|
|
4384
4380
|
initialState: zn,
|
|
4385
4381
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4434,7 +4430,7 @@ const m = (
|
|
|
4434
4430
|
)
|
|
4435
4431
|
), CM = Fd.reducer, Ot = _((t) => t.uuid), qn = {
|
|
4436
4432
|
instances: {}
|
|
4437
|
-
}, Md =
|
|
4433
|
+
}, Md = P({
|
|
4438
4434
|
name: "workflowStepDefaultAssignees",
|
|
4439
4435
|
initialState: qn,
|
|
4440
4436
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4480,7 +4476,7 @@ const m = (
|
|
|
4480
4476
|
)
|
|
4481
4477
|
), tR = Md.reducer, Pt = _((t) => t.uuid), $n = {
|
|
4482
4478
|
instances: {}
|
|
4483
|
-
}, Ed =
|
|
4479
|
+
}, Ed = P({
|
|
4484
4480
|
name: "workflowStepDefaultReviewers",
|
|
4485
4481
|
initialState: $n,
|
|
4486
4482
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4526,7 +4522,7 @@ const m = (
|
|
|
4526
4522
|
)
|
|
4527
4523
|
), yR = Ed.reducer, _t = _((t) => t.uuid), xn = {
|
|
4528
4524
|
instances: {}
|
|
4529
|
-
}, Vd =
|
|
4525
|
+
}, Vd = P({
|
|
4530
4526
|
name: "workflowStepEvents",
|
|
4531
4527
|
initialState: xn,
|
|
4532
4528
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4578,7 +4574,7 @@ const m = (
|
|
|
4578
4574
|
)
|
|
4579
4575
|
), kR = Vd.reducer, Tt = _((t) => t.uuid), Wn = {
|
|
4580
4576
|
instances: {}
|
|
4581
|
-
}, Bd =
|
|
4577
|
+
}, Bd = P({
|
|
4582
4578
|
name: "workflowStepFieldsAttachments",
|
|
4583
4579
|
initialState: Wn,
|
|
4584
4580
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4624,7 +4620,7 @@ const m = (
|
|
|
4624
4620
|
)
|
|
4625
4621
|
), xR = Bd.reducer, It = _((t) => t.uuid), jn = {
|
|
4626
4622
|
instances: {}
|
|
4627
|
-
}, $d =
|
|
4623
|
+
}, $d = P({
|
|
4628
4624
|
name: "workflowStepFields",
|
|
4629
4625
|
initialState: jn,
|
|
4630
4626
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4666,7 +4662,7 @@ const m = (
|
|
|
4666
4662
|
)
|
|
4667
4663
|
), ZR = $d.reducer, bt = _((t) => t.uuid), Cn = {
|
|
4668
4664
|
instances: {}
|
|
4669
|
-
}, xd =
|
|
4665
|
+
}, xd = P({
|
|
4670
4666
|
name: "workflowStepFieldValuesAttachments",
|
|
4671
4667
|
initialState: Cn,
|
|
4672
4668
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4712,7 +4708,7 @@ const m = (
|
|
|
4712
4708
|
)
|
|
4713
4709
|
), uE = xd.reducer, gt = _((t) => t.uuid), Un = {
|
|
4714
4710
|
instances: {}
|
|
4715
|
-
}, Ud =
|
|
4711
|
+
}, Ud = P({
|
|
4716
4712
|
name: "workflowStepFieldValues",
|
|
4717
4713
|
initialState: Un,
|
|
4718
4714
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4787,7 +4783,7 @@ const m = (
|
|
|
4787
4783
|
)
|
|
4788
4784
|
), TE = Ud.reducer, kt = _((t) => t.uuid), Ln = {
|
|
4789
4785
|
instances: {}
|
|
4790
|
-
}, Ld =
|
|
4786
|
+
}, Ld = P({
|
|
4791
4787
|
name: "workflowStepFieldValuesReviewRequests",
|
|
4792
4788
|
initialState: Ln,
|
|
4793
4789
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4856,7 +4852,7 @@ const m = (
|
|
|
4856
4852
|
],
|
|
4857
4853
|
(t, s, e, i) => {
|
|
4858
4854
|
const n = new Set(
|
|
4859
|
-
|
|
4855
|
+
E(
|
|
4860
4856
|
t.filter(
|
|
4861
4857
|
({ workflow_step: r, workflow: a }) => e === a && r === i
|
|
4862
4858
|
)
|
|
@@ -4869,7 +4865,7 @@ const m = (
|
|
|
4869
4865
|
)
|
|
4870
4866
|
), DE = Ld.reducer, Ft = _((t) => t.uuid), Nn = {
|
|
4871
4867
|
instances: {}
|
|
4872
|
-
}, Gd =
|
|
4868
|
+
}, Gd = P({
|
|
4873
4869
|
name: "workflowStepFieldValuesReviews",
|
|
4874
4870
|
initialState: Nn,
|
|
4875
4871
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -4935,7 +4931,7 @@ const m = (
|
|
|
4935
4931
|
],
|
|
4936
4932
|
(t, s, e, i) => {
|
|
4937
4933
|
const n = new Set(
|
|
4938
|
-
|
|
4934
|
+
E(
|
|
4939
4935
|
t.filter(
|
|
4940
4936
|
({ workflow_step: r, workflow: a }) => e === a && r === i
|
|
4941
4937
|
)
|
|
@@ -4955,7 +4951,7 @@ const m = (
|
|
|
4955
4951
|
return s;
|
|
4956
4952
|
}), GE = Gd.reducer, Mt = _((t) => t.uuid), Hn = {
|
|
4957
4953
|
instances: {}
|
|
4958
|
-
}, Qd =
|
|
4954
|
+
}, Qd = P({
|
|
4959
4955
|
name: "workflowStepReviewers",
|
|
4960
4956
|
initialState: Hn,
|
|
4961
4957
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -5012,7 +5008,7 @@ const m = (
|
|
|
5012
5008
|
(t) => t.uuid
|
|
5013
5009
|
), Gn = {
|
|
5014
5010
|
instances: {}
|
|
5015
|
-
}, Jd =
|
|
5011
|
+
}, Jd = P({
|
|
5016
5012
|
name: "workflowSteps",
|
|
5017
5013
|
initialState: Gn,
|
|
5018
5014
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -5054,7 +5050,7 @@ const m = (
|
|
|
5054
5050
|
(t) => t.uuid
|
|
5055
5051
|
), Kn = {
|
|
5056
5052
|
instances: {}
|
|
5057
|
-
}, Xd =
|
|
5053
|
+
}, Xd = P({
|
|
5058
5054
|
name: "workflowTypes",
|
|
5059
5055
|
initialState: Kn,
|
|
5060
5056
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -5559,12 +5555,12 @@ class q extends M {
|
|
|
5559
5555
|
async bulkAdd(e, i) {
|
|
5560
5556
|
const { addMany: n, updateMany: r, deleteMany: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = [], o = /* @__PURE__ */ new Set(), p = Bt(e, Math.min(i ?? e.length, Vt)), y = [];
|
|
5561
5557
|
for (const V of p) {
|
|
5562
|
-
const k = [],
|
|
5558
|
+
const k = [], v = {}, R = [], $ = [];
|
|
5563
5559
|
for (const z of V) {
|
|
5564
5560
|
let x;
|
|
5565
5561
|
if ("file" in z) {
|
|
5566
5562
|
const { file: Os, ...yo } = z, qt = await this.client.files.getFilePayload(Os);
|
|
5567
|
-
qt.sha1 in
|
|
5563
|
+
qt.sha1 in v || (v[qt.sha1] = qt);
|
|
5568
5564
|
const Xs = URL.createObjectURL(Os);
|
|
5569
5565
|
o.add(Xs), x = {
|
|
5570
5566
|
...yo,
|
|
@@ -5588,7 +5584,7 @@ class q extends M {
|
|
|
5588
5584
|
const W = {
|
|
5589
5585
|
payloads: k,
|
|
5590
5586
|
submittedAt: c,
|
|
5591
|
-
files: Object.values(
|
|
5587
|
+
files: Object.values(v),
|
|
5592
5588
|
blockers: R,
|
|
5593
5589
|
blocks: $
|
|
5594
5590
|
};
|
|
@@ -5596,14 +5592,14 @@ class q extends M {
|
|
|
5596
5592
|
}
|
|
5597
5593
|
this.dispatch(n(d));
|
|
5598
5594
|
const f = y.map((V) => {
|
|
5599
|
-
const { submittedAt: k, files:
|
|
5595
|
+
const { submittedAt: k, files: v, payloads: R, blocks: $, blockers: W } = V;
|
|
5600
5596
|
return this.enqueueRequest({
|
|
5601
5597
|
description: A(u.POST, this.name, !0),
|
|
5602
5598
|
method: u.POST,
|
|
5603
5599
|
url: `${this.url}/bulk/`,
|
|
5604
5600
|
payload: {
|
|
5605
5601
|
submitted_at: k,
|
|
5606
|
-
files:
|
|
5602
|
+
files: v,
|
|
5607
5603
|
payloads: R
|
|
5608
5604
|
},
|
|
5609
5605
|
blockers: W,
|
|
@@ -5611,7 +5607,7 @@ class q extends M {
|
|
|
5611
5607
|
});
|
|
5612
5608
|
});
|
|
5613
5609
|
Promise.all(f).then((V) => {
|
|
5614
|
-
const k = V.flatMap((
|
|
5610
|
+
const k = V.flatMap((v) => v.instances);
|
|
5615
5611
|
this.dispatch(r(k));
|
|
5616
5612
|
}).catch((V) => {
|
|
5617
5613
|
throw this.dispatch(a(d.map((k) => this.getId(k)))), console.error(V), V;
|
|
@@ -5621,8 +5617,8 @@ class q extends M {
|
|
|
5621
5617
|
});
|
|
5622
5618
|
const b = Promise.all(f).then((V) => V.flatMap(({ instances: k }) => k)), F = Promise.all(f).then(async (V) => {
|
|
5623
5619
|
const k = [];
|
|
5624
|
-
for (const { presigned_urls:
|
|
5625
|
-
const R = this.client.files.processPresignedUrls(
|
|
5620
|
+
for (const { presigned_urls: v } of V) {
|
|
5621
|
+
const R = this.client.files.processPresignedUrls(v);
|
|
5626
5622
|
for (const [$, W] of Object.entries(R))
|
|
5627
5623
|
try {
|
|
5628
5624
|
await W, k.push($);
|
|
@@ -5686,7 +5682,7 @@ class Nz extends q {
|
|
|
5686
5682
|
buildModel(e) {
|
|
5687
5683
|
var a;
|
|
5688
5684
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
5689
|
-
return
|
|
5685
|
+
return O({
|
|
5690
5686
|
...e,
|
|
5691
5687
|
created_by: n,
|
|
5692
5688
|
submitted_at: r
|
|
@@ -5756,7 +5752,7 @@ class Hz extends q {
|
|
|
5756
5752
|
buildModel(e) {
|
|
5757
5753
|
var f;
|
|
5758
5754
|
const { store: i } = this.client, { asset_procedure_type: n, file_sha1: r, file_extension: a, file_name: c, file_type: d, file_url: o } = e, p = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, y = (/* @__PURE__ */ new Date()).toISOString();
|
|
5759
|
-
return
|
|
5755
|
+
return O({
|
|
5760
5756
|
file_url: o,
|
|
5761
5757
|
file_sha1: r,
|
|
5762
5758
|
file_extension: a,
|
|
@@ -5831,7 +5827,7 @@ class Gz extends q {
|
|
|
5831
5827
|
buildModel(e) {
|
|
5832
5828
|
var a;
|
|
5833
5829
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
5834
|
-
return
|
|
5830
|
+
return O({
|
|
5835
5831
|
...e,
|
|
5836
5832
|
created_by: n,
|
|
5837
5833
|
submitted_at: r
|
|
@@ -5895,7 +5891,7 @@ class Kz extends M {
|
|
|
5895
5891
|
}
|
|
5896
5892
|
add(e) {
|
|
5897
5893
|
var y;
|
|
5898
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
5894
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
5899
5895
|
...e,
|
|
5900
5896
|
created_by: c,
|
|
5901
5897
|
submitted_at: d
|
|
@@ -5960,7 +5956,7 @@ class Yz extends q {
|
|
|
5960
5956
|
buildModel(e) {
|
|
5961
5957
|
var a;
|
|
5962
5958
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
5963
|
-
return
|
|
5959
|
+
return O({
|
|
5964
5960
|
...e,
|
|
5965
5961
|
created_by: n,
|
|
5966
5962
|
submitted_at: r
|
|
@@ -6041,7 +6037,7 @@ class Qz extends M {
|
|
|
6041
6037
|
}
|
|
6042
6038
|
add(e) {
|
|
6043
6039
|
var f;
|
|
6044
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
6040
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
6045
6041
|
...e,
|
|
6046
6042
|
created_by: d,
|
|
6047
6043
|
submitted_at: o
|
|
@@ -6063,15 +6059,15 @@ class Qz extends M {
|
|
|
6063
6059
|
var V;
|
|
6064
6060
|
const { values: n, payloads: r } = e, { addMany: a, setMany: c, deleteMany: d } = this.actions, o = (/* @__PURE__ */ new Date()).toISOString(), p = ((V = this.client.store.getState().userReducer.currentUser) == null ? void 0 : V.id) ?? null, y = [], f = Bt(r, Math.min(i ?? r.length, Vt)), b = [];
|
|
6065
6061
|
for (const k of f) {
|
|
6066
|
-
const
|
|
6062
|
+
const v = [];
|
|
6067
6063
|
for (const R of k) {
|
|
6068
|
-
const $ =
|
|
6064
|
+
const $ = O({
|
|
6069
6065
|
...R,
|
|
6070
6066
|
values: R.values,
|
|
6071
6067
|
created_by: p,
|
|
6072
6068
|
submitted_at: o
|
|
6073
6069
|
});
|
|
6074
|
-
y.push($),
|
|
6070
|
+
y.push($), v.push({
|
|
6075
6071
|
uuid: $.uuid,
|
|
6076
6072
|
asset: R.asset,
|
|
6077
6073
|
fields_revision: R.fields_revision,
|
|
@@ -6083,13 +6079,13 @@ class Qz extends M {
|
|
|
6083
6079
|
b.push({
|
|
6084
6080
|
submitted_at: o,
|
|
6085
6081
|
values: n,
|
|
6086
|
-
field_values:
|
|
6082
|
+
field_values: v
|
|
6087
6083
|
});
|
|
6088
6084
|
}
|
|
6089
6085
|
this.dispatch(a(y));
|
|
6090
6086
|
const F = [];
|
|
6091
6087
|
for (const k of b) {
|
|
6092
|
-
const { field_values:
|
|
6088
|
+
const { field_values: v } = k, R = v.map(({ asset: D }) => D), $ = v.map(({ fields_revision: D }) => D), W = v.map(({ asset_procedure: D }) => D), z = v.map(({ uuid: D }) => D), x = this.enqueueRequest({
|
|
6093
6089
|
description: A(u.POST, this.name, !0),
|
|
6094
6090
|
method: u.POST,
|
|
6095
6091
|
url: `${this.url}/bulk/`,
|
|
@@ -6102,7 +6098,7 @@ class Qz extends M {
|
|
|
6102
6098
|
return Promise.all(F).then((k) => {
|
|
6103
6099
|
this.dispatch(c(k.flat()));
|
|
6104
6100
|
}).catch(() => {
|
|
6105
|
-
this.dispatch(d(
|
|
6101
|
+
this.dispatch(d(E(y)));
|
|
6106
6102
|
}), [y, F];
|
|
6107
6103
|
}
|
|
6108
6104
|
update(e) {
|
|
@@ -6137,7 +6133,7 @@ class Qz extends M {
|
|
|
6137
6133
|
if (!d)
|
|
6138
6134
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
6139
6135
|
const o = ol(e)(c);
|
|
6140
|
-
this.dispatch(n(e)), this.dispatch(Ar(
|
|
6136
|
+
this.dispatch(n(e)), this.dispatch(Ar(E(o)));
|
|
6141
6137
|
try {
|
|
6142
6138
|
return await this.enqueueRequest({
|
|
6143
6139
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -6186,7 +6182,7 @@ class Jz extends M {
|
|
|
6186
6182
|
}
|
|
6187
6183
|
add(e) {
|
|
6188
6184
|
var y;
|
|
6189
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
6185
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
6190
6186
|
...e,
|
|
6191
6187
|
created_by: c,
|
|
6192
6188
|
submitted_at: d
|
|
@@ -6281,7 +6277,7 @@ class Zz extends M {
|
|
|
6281
6277
|
}
|
|
6282
6278
|
add(e) {
|
|
6283
6279
|
var y;
|
|
6284
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
6280
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
6285
6281
|
...e,
|
|
6286
6282
|
created_by: c,
|
|
6287
6283
|
submitted_at: d
|
|
@@ -6329,7 +6325,7 @@ class Zz extends M {
|
|
|
6329
6325
|
if (!d)
|
|
6330
6326
|
throw new Error(`Expected asset procedure type with uuid ${e} to exist`);
|
|
6331
6327
|
const o = vl(e)(c);
|
|
6332
|
-
this.dispatch(n(e)), this.dispatch(Tr(
|
|
6328
|
+
this.dispatch(n(e)), this.dispatch(Tr(E(o)));
|
|
6333
6329
|
try {
|
|
6334
6330
|
return await this.enqueueRequest({
|
|
6335
6331
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -6387,7 +6383,7 @@ class Xz extends q {
|
|
|
6387
6383
|
buildModel(e) {
|
|
6388
6384
|
var a;
|
|
6389
6385
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
6390
|
-
return
|
|
6386
|
+
return O({
|
|
6391
6387
|
...e,
|
|
6392
6388
|
created_by: n,
|
|
6393
6389
|
submitted_at: r
|
|
@@ -6449,7 +6445,7 @@ class eq extends M {
|
|
|
6449
6445
|
}
|
|
6450
6446
|
add(e) {
|
|
6451
6447
|
var y;
|
|
6452
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
6448
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
6453
6449
|
...e,
|
|
6454
6450
|
created_by: c,
|
|
6455
6451
|
submitted_at: d
|
|
@@ -6554,7 +6550,7 @@ class tq extends q {
|
|
|
6554
6550
|
buildModel(e) {
|
|
6555
6551
|
var a;
|
|
6556
6552
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
6557
|
-
return
|
|
6553
|
+
return O({
|
|
6558
6554
|
...e,
|
|
6559
6555
|
created_by: n,
|
|
6560
6556
|
submitted_at: r
|
|
@@ -6635,7 +6631,7 @@ class sq extends M {
|
|
|
6635
6631
|
}
|
|
6636
6632
|
add(e) {
|
|
6637
6633
|
var f;
|
|
6638
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
6634
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
6639
6635
|
...e,
|
|
6640
6636
|
created_by: d,
|
|
6641
6637
|
submitted_at: o
|
|
@@ -6657,15 +6653,15 @@ class sq extends M {
|
|
|
6657
6653
|
var V;
|
|
6658
6654
|
const { payloads: n, values: r } = e, { addMany: a, setMany: c, deleteMany: d } = this.actions, o = (/* @__PURE__ */ new Date()).toISOString(), p = ((V = this.client.store.getState().userReducer.currentUser) == null ? void 0 : V.id) ?? null, y = [], f = Bt(n, Math.min(i ?? n.length, Vt)), b = [];
|
|
6659
6655
|
for (const k of f) {
|
|
6660
|
-
const
|
|
6656
|
+
const v = [];
|
|
6661
6657
|
for (const R of k) {
|
|
6662
|
-
const $ =
|
|
6658
|
+
const $ = O({
|
|
6663
6659
|
...R,
|
|
6664
6660
|
values: R.values,
|
|
6665
6661
|
created_by: p,
|
|
6666
6662
|
submitted_at: o
|
|
6667
6663
|
});
|
|
6668
|
-
y.push($),
|
|
6664
|
+
y.push($), v.push({
|
|
6669
6665
|
uuid: $.uuid,
|
|
6670
6666
|
asset: R.asset,
|
|
6671
6667
|
fields_revision: R.fields_revision,
|
|
@@ -6678,13 +6674,13 @@ class sq extends M {
|
|
|
6678
6674
|
b.push({
|
|
6679
6675
|
submitted_at: o,
|
|
6680
6676
|
values: r,
|
|
6681
|
-
field_values:
|
|
6677
|
+
field_values: v
|
|
6682
6678
|
});
|
|
6683
6679
|
}
|
|
6684
6680
|
this.dispatch(a(y));
|
|
6685
6681
|
const F = [];
|
|
6686
6682
|
for (const k of b) {
|
|
6687
|
-
const { field_values:
|
|
6683
|
+
const { field_values: v } = k, R = v.map(({ asset: D }) => D), $ = v.map(({ fields_revision: D }) => D), W = v.map(({ asset_procedure: D }) => D), z = v.map(({ uuid: D }) => D), x = this.enqueueRequest({
|
|
6688
6684
|
description: A(u.POST, this.name, !0),
|
|
6689
6685
|
method: u.POST,
|
|
6690
6686
|
url: `${this.url}/bulk/`,
|
|
@@ -6697,7 +6693,7 @@ class sq extends M {
|
|
|
6697
6693
|
return Promise.all(F).then((k) => {
|
|
6698
6694
|
this.dispatch(c(k.flat()));
|
|
6699
6695
|
}).catch(() => {
|
|
6700
|
-
this.dispatch(d(
|
|
6696
|
+
this.dispatch(d(E(y)));
|
|
6701
6697
|
}), [y, F];
|
|
6702
6698
|
}
|
|
6703
6699
|
update(e) {
|
|
@@ -6733,7 +6729,7 @@ class sq extends M {
|
|
|
6733
6729
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
6734
6730
|
const o = Mp(e)(c);
|
|
6735
6731
|
this.dispatch(n(e)), this.dispatch(
|
|
6736
|
-
vr(
|
|
6732
|
+
vr(E(o))
|
|
6737
6733
|
);
|
|
6738
6734
|
try {
|
|
6739
6735
|
return await this.enqueueRequest({
|
|
@@ -6783,7 +6779,7 @@ class iq extends M {
|
|
|
6783
6779
|
}
|
|
6784
6780
|
add(e) {
|
|
6785
6781
|
var y;
|
|
6786
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
6782
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
6787
6783
|
...e,
|
|
6788
6784
|
created_by: c,
|
|
6789
6785
|
submitted_at: d
|
|
@@ -6834,7 +6830,7 @@ class iq extends M {
|
|
|
6834
6830
|
const { store: i } = this.client, { deleteMany: n, addMany: r, addOne: a, deleteOne: c } = this.actions, { selectById: d } = this.selectors, o = i.getState(), p = d(e)(o);
|
|
6835
6831
|
if (!p) throw new Error(`No asset procedure step with uuid ${e} found in the store`);
|
|
6836
6832
|
const y = sh(e)(o);
|
|
6837
|
-
this.dispatch(c(e)), this.dispatch(n(
|
|
6833
|
+
this.dispatch(c(e)), this.dispatch(n(E(y)));
|
|
6838
6834
|
try {
|
|
6839
6835
|
return await this.enqueueRequest({
|
|
6840
6836
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -6882,7 +6878,7 @@ class nq extends M {
|
|
|
6882
6878
|
}
|
|
6883
6879
|
add(e) {
|
|
6884
6880
|
var y;
|
|
6885
|
-
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
6881
|
+
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
6886
6882
|
...e,
|
|
6887
6883
|
created_by: c,
|
|
6888
6884
|
submitted_at: d
|
|
@@ -6929,7 +6925,7 @@ class nq extends M {
|
|
|
6929
6925
|
const { store: i } = this.client, { addOne: n, deleteOne: r } = this.actions, { selectById: a } = this.selectors, c = i.getState(), d = a(e)(c);
|
|
6930
6926
|
if (!d) throw new Error(`No asset with uuid ${e} found in the store`);
|
|
6931
6927
|
const o = lu(e)(c), p = LA(e)(c);
|
|
6932
|
-
this.dispatch(r(e)), this.dispatch(or(
|
|
6928
|
+
this.dispatch(r(e)), this.dispatch(or(E(o))), this.dispatch(Wt(E(p)));
|
|
6933
6929
|
try {
|
|
6934
6930
|
return await this.enqueueRequest({
|
|
6935
6931
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -6947,7 +6943,7 @@ class nq extends M {
|
|
|
6947
6943
|
e,
|
|
6948
6944
|
Math.min(i ?? e.length, Vt)
|
|
6949
6945
|
).map((p) => {
|
|
6950
|
-
const y = p.map((f) =>
|
|
6946
|
+
const y = p.map((f) => O(f));
|
|
6951
6947
|
return {
|
|
6952
6948
|
batchId: vt(),
|
|
6953
6949
|
payload: {
|
|
@@ -6959,7 +6955,7 @@ class nq extends M {
|
|
|
6959
6955
|
}), d = [];
|
|
6960
6956
|
let o = null;
|
|
6961
6957
|
for (const p of c) {
|
|
6962
|
-
const { batchId: y, payload: f } = p, b = f.assets.map(({ uuid: R }) => R), F = f.assets.map(({ asset_type: R }) => R), V = f.assets.map(({ project: R }) => R), k = f.assets.map(({ status: R }) => R),
|
|
6958
|
+
const { batchId: y, payload: f } = p, b = f.assets.map(({ uuid: R }) => R), F = f.assets.map(({ asset_type: R }) => R), V = f.assets.map(({ project: R }) => R), k = f.assets.map(({ status: R }) => R), v = this.enqueueRequest({
|
|
6963
6959
|
description: A(u.POST, this.name, !0),
|
|
6964
6960
|
method: u.POST,
|
|
6965
6961
|
url: `${this.url}/bulk/`,
|
|
@@ -6967,7 +6963,7 @@ class nq extends M {
|
|
|
6967
6963
|
blockers: (o ? [o] : []).concat(F).concat(V).concat(k),
|
|
6968
6964
|
blocks: [y].concat(b)
|
|
6969
6965
|
});
|
|
6970
|
-
o = p.batchId, d.push(
|
|
6966
|
+
o = p.batchId, d.push(v);
|
|
6971
6967
|
}
|
|
6972
6968
|
return Promise.all(d).then((p) => {
|
|
6973
6969
|
const y = p.flat();
|
|
@@ -6975,7 +6971,7 @@ class nq extends M {
|
|
|
6975
6971
|
}), d;
|
|
6976
6972
|
}
|
|
6977
6973
|
bulkUpdate(e, i) {
|
|
6978
|
-
const { store: n } = this.client, { updateMany: r } = this.actions, { selectByIds: a } = this.selectors, c =
|
|
6974
|
+
const { store: n } = this.client, { updateMany: r } = this.actions, { selectByIds: a } = this.selectors, c = E(e).toSorted(ks);
|
|
6979
6975
|
if (c.length !== e.length)
|
|
6980
6976
|
throw new Error("payloads contains duplicate uuids.");
|
|
6981
6977
|
const d = a(c)(n.getState()).toSorted(sr);
|
|
@@ -6993,7 +6989,7 @@ class nq extends M {
|
|
|
6993
6989
|
const p = Bt(e, Math.min(i ?? e.length, Vt)), y = [];
|
|
6994
6990
|
let f = null;
|
|
6995
6991
|
for (const b of p) {
|
|
6996
|
-
const F = vt(), V =
|
|
6992
|
+
const F = vt(), V = E(b), k = b.map(({ status: R }) => R).filter(Boolean), v = this.enqueueRequest({
|
|
6997
6993
|
description: A(u.PATCH, this.name, !0),
|
|
6998
6994
|
method: u.PATCH,
|
|
6999
6995
|
url: `${this.url}/bulk/`,
|
|
@@ -7003,7 +6999,7 @@ class nq extends M {
|
|
|
7003
6999
|
blockers: (f ? [f] : []).concat(V).concat(k),
|
|
7004
7000
|
blocks: [F].concat(V)
|
|
7005
7001
|
});
|
|
7006
|
-
y.push(
|
|
7002
|
+
y.push(v), f = F;
|
|
7007
7003
|
}
|
|
7008
7004
|
return Promise.all(y).then((b) => {
|
|
7009
7005
|
this.dispatch(r(b.flat()));
|
|
@@ -7062,7 +7058,7 @@ class rq extends M {
|
|
|
7062
7058
|
}
|
|
7063
7059
|
add(e) {
|
|
7064
7060
|
var y;
|
|
7065
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
7061
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
7066
7062
|
...e,
|
|
7067
7063
|
created_by: c,
|
|
7068
7064
|
submitted_at: d
|
|
@@ -7101,7 +7097,7 @@ class rq extends M {
|
|
|
7101
7097
|
}
|
|
7102
7098
|
bulkAdd(e) {
|
|
7103
7099
|
var b;
|
|
7104
|
-
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((b = i.getState().userReducer.currentUser) == null ? void 0 : b.id) ?? null, o = e.map((F) =>
|
|
7100
|
+
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((b = i.getState().userReducer.currentUser) == null ? void 0 : b.id) ?? null, o = e.map((F) => O(F)), p = o.map((F) => ({
|
|
7105
7101
|
...F,
|
|
7106
7102
|
created_by: d,
|
|
7107
7103
|
submitted_at: c
|
|
@@ -7179,7 +7175,7 @@ class aq extends M {
|
|
|
7179
7175
|
}
|
|
7180
7176
|
add(e) {
|
|
7181
7177
|
var y;
|
|
7182
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
7178
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
7183
7179
|
...e,
|
|
7184
7180
|
created_by: c,
|
|
7185
7181
|
submitted_at: d
|
|
@@ -7282,7 +7278,7 @@ class cq extends q {
|
|
|
7282
7278
|
buildModel(e) {
|
|
7283
7279
|
var a;
|
|
7284
7280
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
7285
|
-
return
|
|
7281
|
+
return O({
|
|
7286
7282
|
...e,
|
|
7287
7283
|
created_by: n,
|
|
7288
7284
|
submitted_at: r
|
|
@@ -7352,7 +7348,7 @@ class dq extends q {
|
|
|
7352
7348
|
buildModel(e) {
|
|
7353
7349
|
var a;
|
|
7354
7350
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
7355
|
-
return
|
|
7351
|
+
return O({
|
|
7356
7352
|
...e,
|
|
7357
7353
|
created_by: n,
|
|
7358
7354
|
submitted_at: r
|
|
@@ -7416,7 +7412,7 @@ class oq extends M {
|
|
|
7416
7412
|
}
|
|
7417
7413
|
add(e) {
|
|
7418
7414
|
var y;
|
|
7419
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
7415
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
7420
7416
|
...e,
|
|
7421
7417
|
created_by: c,
|
|
7422
7418
|
submitted_at: d
|
|
@@ -7481,7 +7477,7 @@ class uq extends q {
|
|
|
7481
7477
|
buildModel(e) {
|
|
7482
7478
|
var a;
|
|
7483
7479
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
7484
|
-
return
|
|
7480
|
+
return O({
|
|
7485
7481
|
...e,
|
|
7486
7482
|
created_by: n,
|
|
7487
7483
|
submitted_at: r
|
|
@@ -7562,7 +7558,7 @@ class lq extends M {
|
|
|
7562
7558
|
}
|
|
7563
7559
|
add(e) {
|
|
7564
7560
|
var f;
|
|
7565
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
7561
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
7566
7562
|
...e,
|
|
7567
7563
|
created_by: d,
|
|
7568
7564
|
submitted_at: o
|
|
@@ -7585,18 +7581,18 @@ class lq extends M {
|
|
|
7585
7581
|
const { payloads: n, values: r } = e, { addMany: a, setMany: c, deleteMany: d } = this.actions, o = (/* @__PURE__ */ new Date()).toISOString(), p = [], y = Bt(n, Math.min(i ?? n.length, Vt)), f = [];
|
|
7586
7582
|
for (const V of y) {
|
|
7587
7583
|
const k = [];
|
|
7588
|
-
for (const
|
|
7589
|
-
const R =
|
|
7590
|
-
...
|
|
7591
|
-
values:
|
|
7584
|
+
for (const v of V) {
|
|
7585
|
+
const R = O({
|
|
7586
|
+
...v,
|
|
7587
|
+
values: v.values,
|
|
7592
7588
|
created_by: ((F = this.client.store.getState().userReducer.currentUser) == null ? void 0 : F.id) ?? null,
|
|
7593
7589
|
submitted_at: o
|
|
7594
7590
|
});
|
|
7595
7591
|
p.push(R), k.push({
|
|
7596
7592
|
uuid: R.uuid,
|
|
7597
|
-
asset:
|
|
7598
|
-
fields_revision:
|
|
7599
|
-
published_at:
|
|
7593
|
+
asset: v.asset,
|
|
7594
|
+
fields_revision: v.fields_revision,
|
|
7595
|
+
published_at: v.published_at,
|
|
7600
7596
|
values: R.values
|
|
7601
7597
|
});
|
|
7602
7598
|
}
|
|
@@ -7609,12 +7605,12 @@ class lq extends M {
|
|
|
7609
7605
|
this.dispatch(a(p));
|
|
7610
7606
|
const b = [];
|
|
7611
7607
|
for (const V of f) {
|
|
7612
|
-
const { field_values: k } = V,
|
|
7608
|
+
const { field_values: k } = V, v = k.map(({ asset: z }) => z), R = k.map(({ fields_revision: z }) => z), $ = k.map(({ uuid: z }) => z), W = this.enqueueRequest({
|
|
7613
7609
|
description: A(u.POST, this.name, !0),
|
|
7614
7610
|
method: u.POST,
|
|
7615
7611
|
url: `${this.url}/bulk/`,
|
|
7616
7612
|
payload: V,
|
|
7617
|
-
blockers:
|
|
7613
|
+
blockers: v.concat(R),
|
|
7618
7614
|
blocks: $
|
|
7619
7615
|
});
|
|
7620
7616
|
b.push(W);
|
|
@@ -7622,7 +7618,7 @@ class lq extends M {
|
|
|
7622
7618
|
return Promise.all(b).then((V) => {
|
|
7623
7619
|
this.dispatch(c(V.flat()));
|
|
7624
7620
|
}).catch(() => {
|
|
7625
|
-
this.dispatch(d(
|
|
7621
|
+
this.dispatch(d(E(p)));
|
|
7626
7622
|
}), [p, b];
|
|
7627
7623
|
}
|
|
7628
7624
|
update(e) {
|
|
@@ -7657,7 +7653,7 @@ class lq extends M {
|
|
|
7657
7653
|
if (!d)
|
|
7658
7654
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
7659
7655
|
const o = Dy(e)(c);
|
|
7660
|
-
this.dispatch(n(e)), this.dispatch(Xr(
|
|
7656
|
+
this.dispatch(n(e)), this.dispatch(Xr(E(o)));
|
|
7661
7657
|
try {
|
|
7662
7658
|
return await this.enqueueRequest({
|
|
7663
7659
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -7706,7 +7702,7 @@ class pq extends M {
|
|
|
7706
7702
|
}
|
|
7707
7703
|
add(e) {
|
|
7708
7704
|
var y;
|
|
7709
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
7705
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
7710
7706
|
...e,
|
|
7711
7707
|
created_by: c,
|
|
7712
7708
|
submitted_at: d
|
|
@@ -7801,7 +7797,7 @@ class hq extends M {
|
|
|
7801
7797
|
}
|
|
7802
7798
|
add(e) {
|
|
7803
7799
|
var y;
|
|
7804
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
7800
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
7805
7801
|
...e,
|
|
7806
7802
|
created_by: c,
|
|
7807
7803
|
submitted_at: d
|
|
@@ -7825,9 +7821,9 @@ class hq extends M {
|
|
|
7825
7821
|
var V;
|
|
7826
7822
|
const { store: n } = this.client, { addMany: r, updateMany: a, deleteMany: c } = this.actions, d = (/* @__PURE__ */ new Date()).toISOString(), o = ((V = n.getState().userReducer.currentUser) == null ? void 0 : V.id) ?? null, p = Bt(e, Math.min(i ?? e.length, Vt)), y = [], f = [];
|
|
7827
7823
|
for (const k of p) {
|
|
7828
|
-
const
|
|
7824
|
+
const v = [], R = [], $ = [];
|
|
7829
7825
|
for (const z of k) {
|
|
7830
|
-
const x =
|
|
7826
|
+
const x = O({
|
|
7831
7827
|
...z,
|
|
7832
7828
|
submitted_at: d,
|
|
7833
7829
|
created_by: o
|
|
@@ -7839,10 +7835,10 @@ class hq extends M {
|
|
|
7839
7835
|
asset_type_identifier: x.asset_type_identifier,
|
|
7840
7836
|
value: x.value
|
|
7841
7837
|
};
|
|
7842
|
-
|
|
7838
|
+
v.push(D), R.push(x.asset), R.push(x.asset_type_identifier), $.push(x.uuid);
|
|
7843
7839
|
}
|
|
7844
7840
|
const W = {
|
|
7845
|
-
payloads:
|
|
7841
|
+
payloads: v,
|
|
7846
7842
|
submitted_at: d,
|
|
7847
7843
|
blockers: R,
|
|
7848
7844
|
blocks: $
|
|
@@ -7851,14 +7847,14 @@ class hq extends M {
|
|
|
7851
7847
|
}
|
|
7852
7848
|
this.dispatch(r(f));
|
|
7853
7849
|
const b = y.map((k) => {
|
|
7854
|
-
const { payloads:
|
|
7850
|
+
const { payloads: v, submitted_at: R, blockers: $, blocks: W } = k;
|
|
7855
7851
|
return this.enqueueRequest({
|
|
7856
7852
|
description: A(u.POST, this.name, !0),
|
|
7857
7853
|
method: u.POST,
|
|
7858
7854
|
url: `${this.url}/bulk/`,
|
|
7859
7855
|
payload: {
|
|
7860
7856
|
submitted_at: R,
|
|
7861
|
-
payloads:
|
|
7857
|
+
payloads: v
|
|
7862
7858
|
},
|
|
7863
7859
|
blockers: $,
|
|
7864
7860
|
blocks: W
|
|
@@ -7867,7 +7863,7 @@ class hq extends M {
|
|
|
7867
7863
|
Promise.all(b).then((k) => {
|
|
7868
7864
|
this.dispatch(a(k.flat()));
|
|
7869
7865
|
}).catch((k) => {
|
|
7870
|
-
throw this.dispatch(c(
|
|
7866
|
+
throw this.dispatch(c(E(f))), k;
|
|
7871
7867
|
});
|
|
7872
7868
|
const F = Promise.all(b).then((k) => k.flat());
|
|
7873
7869
|
return [f, F];
|
|
@@ -7925,7 +7921,7 @@ class yq extends M {
|
|
|
7925
7921
|
}
|
|
7926
7922
|
add(e) {
|
|
7927
7923
|
var y;
|
|
7928
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
7924
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
7929
7925
|
...e,
|
|
7930
7926
|
created_by: c,
|
|
7931
7927
|
submitted_at: d
|
|
@@ -7973,7 +7969,7 @@ class yq extends M {
|
|
|
7973
7969
|
if (!d)
|
|
7974
7970
|
throw new Error(`Expected asset type with uuid ${e} to exist`);
|
|
7975
7971
|
const o = lh(e)(c), p = Jh(e)(c);
|
|
7976
|
-
this.dispatch(n(e)), this.dispatch(xr(
|
|
7972
|
+
this.dispatch(n(e)), this.dispatch(xr(E(o))), this.dispatch(Hr(E(p)));
|
|
7977
7973
|
try {
|
|
7978
7974
|
return await this.enqueueRequest({
|
|
7979
7975
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -8021,7 +8017,7 @@ class mq extends M {
|
|
|
8021
8017
|
}
|
|
8022
8018
|
add(e) {
|
|
8023
8019
|
var y;
|
|
8024
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
8020
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
8025
8021
|
...e,
|
|
8026
8022
|
created_by: c,
|
|
8027
8023
|
submitted_at: d
|
|
@@ -8123,7 +8119,7 @@ class fq extends q {
|
|
|
8123
8119
|
buildModel(e) {
|
|
8124
8120
|
var a;
|
|
8125
8121
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
8126
|
-
return
|
|
8122
|
+
return O({
|
|
8127
8123
|
...e,
|
|
8128
8124
|
created_by: n,
|
|
8129
8125
|
submitted_at: r
|
|
@@ -8213,7 +8209,7 @@ class Sq extends M {
|
|
|
8213
8209
|
}
|
|
8214
8210
|
add(e) {
|
|
8215
8211
|
var y;
|
|
8216
|
-
const { store: i } = this.client, { addOne: n, deleteOne: r, updateOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
8212
|
+
const { store: i } = this.client, { addOne: n, deleteOne: r, updateOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
8217
8213
|
...e,
|
|
8218
8214
|
created_by: c,
|
|
8219
8215
|
submitted_at: d
|
|
@@ -8263,7 +8259,7 @@ class Sq extends M {
|
|
|
8263
8259
|
if (!p)
|
|
8264
8260
|
throw new Error(`attempting to delete a document with uuid ${e} that does not exist in store.documents`);
|
|
8265
8261
|
const y = _f(e)(o);
|
|
8266
|
-
this.dispatch(n(e)), this.dispatch(c(
|
|
8262
|
+
this.dispatch(n(e)), this.dispatch(c(E(y)));
|
|
8267
8263
|
try {
|
|
8268
8264
|
return await this.enqueueRequest({
|
|
8269
8265
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -8546,7 +8542,7 @@ class Pq extends M {
|
|
|
8546
8542
|
}
|
|
8547
8543
|
add(e) {
|
|
8548
8544
|
var y;
|
|
8549
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
8545
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
8550
8546
|
...e,
|
|
8551
8547
|
created_by: c,
|
|
8552
8548
|
submitted_at: d
|
|
@@ -8641,7 +8637,7 @@ class _q extends M {
|
|
|
8641
8637
|
}
|
|
8642
8638
|
add(e) {
|
|
8643
8639
|
var y;
|
|
8644
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
8640
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
8645
8641
|
...e,
|
|
8646
8642
|
created_by: c,
|
|
8647
8643
|
submitted_at: d
|
|
@@ -8724,7 +8720,7 @@ class Tq extends q {
|
|
|
8724
8720
|
buildModel(e) {
|
|
8725
8721
|
var a;
|
|
8726
8722
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
8727
|
-
return
|
|
8723
|
+
return O({
|
|
8728
8724
|
...e,
|
|
8729
8725
|
created_by: n,
|
|
8730
8726
|
submitted_at: r
|
|
@@ -8788,7 +8784,7 @@ class Iq extends M {
|
|
|
8788
8784
|
}
|
|
8789
8785
|
add(e) {
|
|
8790
8786
|
var f;
|
|
8791
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
8787
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
8792
8788
|
...e,
|
|
8793
8789
|
created_by: d,
|
|
8794
8790
|
submitted_at: o
|
|
@@ -8843,7 +8839,7 @@ class bq extends M {
|
|
|
8843
8839
|
}
|
|
8844
8840
|
add(e) {
|
|
8845
8841
|
var y;
|
|
8846
|
-
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, o =
|
|
8842
|
+
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, o = O({
|
|
8847
8843
|
...e,
|
|
8848
8844
|
submitted_at: c,
|
|
8849
8845
|
created_by: d
|
|
@@ -8891,7 +8887,7 @@ class bq extends M {
|
|
|
8891
8887
|
if (!d)
|
|
8892
8888
|
throw new Error("Expected form to exist");
|
|
8893
8889
|
const o = mA(e)(c), p = VS(e)(c);
|
|
8894
|
-
this.dispatch(n(e)), this.dispatch(Ba(
|
|
8890
|
+
this.dispatch(n(e)), this.dispatch(Ba(E(o))), this.dispatch(Ta(E(p)));
|
|
8895
8891
|
try {
|
|
8896
8892
|
return await this.enqueueRequest({
|
|
8897
8893
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -8949,7 +8945,7 @@ class gq extends q {
|
|
|
8949
8945
|
buildModel(e) {
|
|
8950
8946
|
var a;
|
|
8951
8947
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
8952
|
-
return
|
|
8948
|
+
return O({
|
|
8953
8949
|
...e,
|
|
8954
8950
|
created_by: n,
|
|
8955
8951
|
submitted_at: r
|
|
@@ -9029,7 +9025,7 @@ class kq extends M {
|
|
|
9029
9025
|
}
|
|
9030
9026
|
add(e) {
|
|
9031
9027
|
var f;
|
|
9032
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
9028
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
9033
9029
|
...e,
|
|
9034
9030
|
created_by: d,
|
|
9035
9031
|
submitted_at: o
|
|
@@ -9075,7 +9071,7 @@ class kq extends M {
|
|
|
9075
9071
|
if (!d)
|
|
9076
9072
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
9077
9073
|
const o = iA(e)(c);
|
|
9078
|
-
this.dispatch(n(e)), this.dispatch(Fa(
|
|
9074
|
+
this.dispatch(n(e)), this.dispatch(Fa(E(o)));
|
|
9079
9075
|
try {
|
|
9080
9076
|
return await this.enqueueRequest({
|
|
9081
9077
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -9135,7 +9131,7 @@ class Fq extends q {
|
|
|
9135
9131
|
buildModel(e) {
|
|
9136
9132
|
var a;
|
|
9137
9133
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
9138
|
-
return
|
|
9134
|
+
return O({
|
|
9139
9135
|
...e,
|
|
9140
9136
|
created_by: n,
|
|
9141
9137
|
submitted_at: r
|
|
@@ -9227,7 +9223,7 @@ class Mq extends M {
|
|
|
9227
9223
|
}
|
|
9228
9224
|
add(e) {
|
|
9229
9225
|
var y;
|
|
9230
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, o =
|
|
9226
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, o = O({
|
|
9231
9227
|
...e,
|
|
9232
9228
|
submitted_at: c,
|
|
9233
9229
|
created_by: d
|
|
@@ -9251,6 +9247,31 @@ class Mq extends M {
|
|
|
9251
9247
|
this.dispatch(a(o.uuid));
|
|
9252
9248
|
}), [o, p];
|
|
9253
9249
|
}
|
|
9250
|
+
bulkAdd(e) {
|
|
9251
|
+
var y;
|
|
9252
|
+
const { store: i } = this.client, { addMany: n, deleteMany: r, updateMany: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = e.map((f) => O({ ...f, submitted_at: d, created_by: c }));
|
|
9253
|
+
this.dispatch(n(o));
|
|
9254
|
+
const p = this.enqueueRequest({
|
|
9255
|
+
description: A(u.POST, this.name, !0),
|
|
9256
|
+
method: u.POST,
|
|
9257
|
+
url: `${this.url}/bulk/`,
|
|
9258
|
+
payload: {
|
|
9259
|
+
payloads: o.map((f) => g(f)),
|
|
9260
|
+
submitted_at: d
|
|
9261
|
+
},
|
|
9262
|
+
blockers: o.flatMap((f) => [
|
|
9263
|
+
f.associated_issue,
|
|
9264
|
+
...f.issue ? [f.issue] : [],
|
|
9265
|
+
...f.asset ? [f.asset] : []
|
|
9266
|
+
]),
|
|
9267
|
+
blocks: E(o)
|
|
9268
|
+
});
|
|
9269
|
+
return p.then((f) => {
|
|
9270
|
+
this.dispatch(a(f));
|
|
9271
|
+
}).catch(() => {
|
|
9272
|
+
this.dispatch(r(E(o)));
|
|
9273
|
+
}), [o, p];
|
|
9274
|
+
}
|
|
9254
9275
|
async delete(e) {
|
|
9255
9276
|
const { store: i } = this.client, { deleteOne: n, addOne: r } = this.actions, { selectById: a } = this.selectors, c = a(e)(i.getState());
|
|
9256
9277
|
if (!c)
|
|
@@ -9313,7 +9334,7 @@ class Rq extends q {
|
|
|
9313
9334
|
buildModel(e) {
|
|
9314
9335
|
var a;
|
|
9315
9336
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
9316
|
-
return
|
|
9337
|
+
return O({
|
|
9317
9338
|
...e,
|
|
9318
9339
|
created_by: n,
|
|
9319
9340
|
submitted_at: r
|
|
@@ -9383,7 +9404,7 @@ class Eq extends q {
|
|
|
9383
9404
|
buildModel(e) {
|
|
9384
9405
|
var a;
|
|
9385
9406
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
9386
|
-
return
|
|
9407
|
+
return O({
|
|
9387
9408
|
...e,
|
|
9388
9409
|
created_by: n,
|
|
9389
9410
|
submitted_at: r
|
|
@@ -9442,7 +9463,7 @@ class vq extends M {
|
|
|
9442
9463
|
});
|
|
9443
9464
|
}
|
|
9444
9465
|
add(e) {
|
|
9445
|
-
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c =
|
|
9466
|
+
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c = O({
|
|
9446
9467
|
...e,
|
|
9447
9468
|
author: i.getState().userReducer.currentUser.id,
|
|
9448
9469
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -9537,7 +9558,7 @@ class Vq extends M {
|
|
|
9537
9558
|
}
|
|
9538
9559
|
add(e) {
|
|
9539
9560
|
var f;
|
|
9540
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d = (/* @__PURE__ */ new Date()).toISOString(), o = ((f = c.userReducer.currentUser) == null ? void 0 : f.id) ?? null, p =
|
|
9561
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d = (/* @__PURE__ */ new Date()).toISOString(), o = ((f = c.userReducer.currentUser) == null ? void 0 : f.id) ?? null, p = O({
|
|
9541
9562
|
...e,
|
|
9542
9563
|
submitted_at: d,
|
|
9543
9564
|
created_by: o
|
|
@@ -9614,7 +9635,7 @@ class Vq extends M {
|
|
|
9614
9635
|
break;
|
|
9615
9636
|
}
|
|
9616
9637
|
}
|
|
9617
|
-
const o =
|
|
9638
|
+
const o = O({
|
|
9618
9639
|
created_by: ((y = r.userReducer.currentUser) == null ? void 0 : y.id) ?? null,
|
|
9619
9640
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9620
9641
|
issue: a.uuid,
|
|
@@ -9636,7 +9657,7 @@ class Vq extends M {
|
|
|
9636
9657
|
}), [c, p];
|
|
9637
9658
|
}
|
|
9638
9659
|
bulkUpdate(e, i) {
|
|
9639
|
-
const { store: n } = this.client, { updateMany: r } = this.actions, { selectByIds: a } = this.selectors, c =
|
|
9660
|
+
const { store: n } = this.client, { updateMany: r } = this.actions, { selectByIds: a } = this.selectors, c = E(e).toSorted(ks);
|
|
9640
9661
|
if (c.length !== e.length)
|
|
9641
9662
|
throw new Error("payloads contains duplicate uuids.");
|
|
9642
9663
|
const d = a(c)(n.getState()).toSorted(sr);
|
|
@@ -9654,7 +9675,7 @@ class Vq extends M {
|
|
|
9654
9675
|
const p = Bt(e, Math.min(i ?? e.length, Vt)), y = [];
|
|
9655
9676
|
let f = null;
|
|
9656
9677
|
for (const b of p) {
|
|
9657
|
-
const F = vt(), V =
|
|
9678
|
+
const F = vt(), V = E(b), k = b.map(({ status: R }) => R).filter(Boolean), v = this.enqueueRequest({
|
|
9658
9679
|
description: A(u.PATCH, this.name, !0),
|
|
9659
9680
|
method: u.PATCH,
|
|
9660
9681
|
url: `${this.url}/bulk/`,
|
|
@@ -9664,7 +9685,7 @@ class Vq extends M {
|
|
|
9664
9685
|
blockers: (f ? [f] : []).concat(V).concat(k),
|
|
9665
9686
|
blocks: [F].concat(V)
|
|
9666
9687
|
});
|
|
9667
|
-
y.push(
|
|
9688
|
+
y.push(v), f = F;
|
|
9668
9689
|
}
|
|
9669
9690
|
return Promise.all(y).then((b) => {
|
|
9670
9691
|
this.dispatch(r(b.flat()));
|
|
@@ -9677,7 +9698,7 @@ class Vq extends M {
|
|
|
9677
9698
|
if (!d)
|
|
9678
9699
|
throw new Error(`No issue with uuid ${e} found in the store`);
|
|
9679
9700
|
const o = WA(e)(c), p = UA(e)(c), y = mM(e)(c), f = ew(e)(c), b = t_(e)(c);
|
|
9680
|
-
this.dispatch(n(e)), this.dispatch(ja(
|
|
9701
|
+
this.dispatch(n(e)), this.dispatch(ja(E(f))), this.dispatch(Ac(E(b))), this.dispatch(Wt(E(o))), this.dispatch(Wt(E(p))), this.dispatch(is(E(y)));
|
|
9681
9702
|
try {
|
|
9682
9703
|
return await this.enqueueRequest({
|
|
9683
9704
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -9692,7 +9713,7 @@ class Vq extends M {
|
|
|
9692
9713
|
}
|
|
9693
9714
|
async bulkDelete(e) {
|
|
9694
9715
|
const { store: i } = this.client, { addMany: n, deleteMany: r } = this.actions, { selectByIds: a } = this.selectors, c = i.getState(), d = a(e)(c), o = jA(e)(c), p = CA(e)(c), y = yM(e)(c);
|
|
9695
|
-
this.dispatch(r(e)), this.dispatch(Wt(
|
|
9716
|
+
this.dispatch(r(e)), this.dispatch(Wt(E(o))), this.dispatch(Wt(E(p))), this.dispatch(is(E(y)));
|
|
9696
9717
|
try {
|
|
9697
9718
|
return await this.enqueueRequest({
|
|
9698
9719
|
description: A(u.DELETE, this.name, !0),
|
|
@@ -9751,7 +9772,7 @@ class Bq extends q {
|
|
|
9751
9772
|
buildModel(e) {
|
|
9752
9773
|
var a;
|
|
9753
9774
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
9754
|
-
return
|
|
9775
|
+
return O({
|
|
9755
9776
|
...e,
|
|
9756
9777
|
created_by: n,
|
|
9757
9778
|
submitted_at: r
|
|
@@ -9821,7 +9842,7 @@ class Dq extends q {
|
|
|
9821
9842
|
buildModel(e) {
|
|
9822
9843
|
var a;
|
|
9823
9844
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
9824
|
-
return
|
|
9845
|
+
return O({
|
|
9825
9846
|
...e,
|
|
9826
9847
|
created_by: n,
|
|
9827
9848
|
submitted_at: r
|
|
@@ -9885,7 +9906,7 @@ class zq extends M {
|
|
|
9885
9906
|
}
|
|
9886
9907
|
add(e) {
|
|
9887
9908
|
var y;
|
|
9888
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
9909
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
9889
9910
|
...e,
|
|
9890
9911
|
created_by: c,
|
|
9891
9912
|
submitted_at: d
|
|
@@ -9950,7 +9971,7 @@ class qq extends q {
|
|
|
9950
9971
|
buildModel(e) {
|
|
9951
9972
|
var a;
|
|
9952
9973
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
9953
|
-
return
|
|
9974
|
+
return O({
|
|
9954
9975
|
...e,
|
|
9955
9976
|
created_by: n,
|
|
9956
9977
|
submitted_at: r
|
|
@@ -10031,7 +10052,7 @@ class $q extends M {
|
|
|
10031
10052
|
}
|
|
10032
10053
|
add(e) {
|
|
10033
10054
|
var f;
|
|
10034
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
10055
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
10035
10056
|
...e,
|
|
10036
10057
|
created_by: d,
|
|
10037
10058
|
submitted_at: o
|
|
@@ -10081,7 +10102,7 @@ class $q extends M {
|
|
|
10081
10102
|
if (!d)
|
|
10082
10103
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
10083
10104
|
const o = YO(e)(c);
|
|
10084
|
-
this.dispatch(n(e)), this.dispatch(nc(
|
|
10105
|
+
this.dispatch(n(e)), this.dispatch(nc(E(o)));
|
|
10085
10106
|
try {
|
|
10086
10107
|
return await this.enqueueRequest({
|
|
10087
10108
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -10130,7 +10151,7 @@ class xq extends M {
|
|
|
10130
10151
|
}
|
|
10131
10152
|
add(e) {
|
|
10132
10153
|
var y;
|
|
10133
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
10154
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
10134
10155
|
...e,
|
|
10135
10156
|
created_by: c,
|
|
10136
10157
|
submitted_at: d
|
|
@@ -10225,7 +10246,7 @@ class Wq extends M {
|
|
|
10225
10246
|
}
|
|
10226
10247
|
add(e) {
|
|
10227
10248
|
var y;
|
|
10228
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
10249
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
10229
10250
|
...e,
|
|
10230
10251
|
created_by: c,
|
|
10231
10252
|
submitted_at: d
|
|
@@ -10298,7 +10319,7 @@ class jq extends M {
|
|
|
10298
10319
|
}
|
|
10299
10320
|
add(e) {
|
|
10300
10321
|
var f;
|
|
10301
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
10322
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
10302
10323
|
...e,
|
|
10303
10324
|
submitted_at: o,
|
|
10304
10325
|
created_by: d
|
|
@@ -10344,7 +10365,7 @@ class jq extends M {
|
|
|
10344
10365
|
if (!d)
|
|
10345
10366
|
throw new Error(`IssueType with uuid ${e} does not exist in the store.`);
|
|
10346
10367
|
const o = xw(e)(c);
|
|
10347
|
-
this.dispatch(n(e)), this.dispatch(Ya(
|
|
10368
|
+
this.dispatch(n(e)), this.dispatch(Ya(E(o)));
|
|
10348
10369
|
try {
|
|
10349
10370
|
return await this.enqueueRequest({
|
|
10350
10371
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -10392,7 +10413,7 @@ class Cq extends M {
|
|
|
10392
10413
|
}
|
|
10393
10414
|
add(e) {
|
|
10394
10415
|
var y;
|
|
10395
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
10416
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
10396
10417
|
...e,
|
|
10397
10418
|
created_by: c,
|
|
10398
10419
|
submitted_at: d
|
|
@@ -10762,7 +10783,7 @@ class Gq extends M {
|
|
|
10762
10783
|
}
|
|
10763
10784
|
add(e) {
|
|
10764
10785
|
var o;
|
|
10765
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
10786
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
10766
10787
|
...e,
|
|
10767
10788
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null
|
|
10768
10789
|
});
|
|
@@ -10783,7 +10804,7 @@ class Gq extends M {
|
|
|
10783
10804
|
}
|
|
10784
10805
|
bulkAdd(e) {
|
|
10785
10806
|
var p;
|
|
10786
|
-
const { store: i } = this.client, { addMany: n, deleteMany: r, updateMany: a } = this.actions, c = ((p = i.getState().userReducer.currentUser) == null ? void 0 : p.id) ?? null, d = e.map((y) =>
|
|
10807
|
+
const { store: i } = this.client, { addMany: n, deleteMany: r, updateMany: a } = this.actions, c = ((p = i.getState().userReducer.currentUser) == null ? void 0 : p.id) ?? null, d = e.map((y) => O({ ...y, created_by: c }));
|
|
10787
10808
|
this.dispatch(n(d));
|
|
10788
10809
|
const o = this.enqueueRequest({
|
|
10789
10810
|
description: A(u.POST, this.name, !0),
|
|
@@ -10882,7 +10903,7 @@ class Kq extends q {
|
|
|
10882
10903
|
buildModel(e) {
|
|
10883
10904
|
var a;
|
|
10884
10905
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
10885
|
-
return
|
|
10906
|
+
return O({
|
|
10886
10907
|
...e,
|
|
10887
10908
|
created_by: n,
|
|
10888
10909
|
submitted_at: r
|
|
@@ -10952,7 +10973,7 @@ class Yq extends q {
|
|
|
10952
10973
|
buildModel(e) {
|
|
10953
10974
|
var a;
|
|
10954
10975
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
10955
|
-
return
|
|
10976
|
+
return O({
|
|
10956
10977
|
...e,
|
|
10957
10978
|
created_by: n,
|
|
10958
10979
|
submitted_at: r
|
|
@@ -11097,7 +11118,7 @@ class Jq extends M {
|
|
|
11097
11118
|
}
|
|
11098
11119
|
add(e) {
|
|
11099
11120
|
var o;
|
|
11100
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
11121
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
11101
11122
|
...e,
|
|
11102
11123
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
11103
11124
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11197,7 +11218,7 @@ class Zq extends M {
|
|
|
11197
11218
|
}
|
|
11198
11219
|
add(e) {
|
|
11199
11220
|
var o;
|
|
11200
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
11221
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
11201
11222
|
...e,
|
|
11202
11223
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
11203
11224
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11220,7 +11241,7 @@ class Zq extends M {
|
|
|
11220
11241
|
bulkAdd(e) {
|
|
11221
11242
|
var y;
|
|
11222
11243
|
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = e.map(
|
|
11223
|
-
(f) =>
|
|
11244
|
+
(f) => O({
|
|
11224
11245
|
...f,
|
|
11225
11246
|
created_by: c,
|
|
11226
11247
|
submitted_at: d
|
|
@@ -11239,12 +11260,12 @@ class Zq extends M {
|
|
|
11239
11260
|
f.procedure,
|
|
11240
11261
|
f.procedure_step
|
|
11241
11262
|
]),
|
|
11242
|
-
blocks:
|
|
11263
|
+
blocks: E(o)
|
|
11243
11264
|
});
|
|
11244
11265
|
return p.then((f) => {
|
|
11245
11266
|
this.dispatch(r(f));
|
|
11246
11267
|
}).catch(() => {
|
|
11247
|
-
this.dispatch(a(
|
|
11268
|
+
this.dispatch(a(E(o)));
|
|
11248
11269
|
}), [o, p];
|
|
11249
11270
|
}
|
|
11250
11271
|
async delete(e) {
|
|
@@ -11315,7 +11336,7 @@ class Xq extends M {
|
|
|
11315
11336
|
}
|
|
11316
11337
|
add(e) {
|
|
11317
11338
|
var o;
|
|
11318
|
-
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c =
|
|
11339
|
+
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c = O({
|
|
11319
11340
|
...e,
|
|
11320
11341
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
11321
11342
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11410,7 +11431,7 @@ class e$ extends M {
|
|
|
11410
11431
|
}
|
|
11411
11432
|
add(e) {
|
|
11412
11433
|
var o;
|
|
11413
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
11434
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
11414
11435
|
...e,
|
|
11415
11436
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
11416
11437
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11482,7 +11503,7 @@ class t$ extends M {
|
|
|
11482
11503
|
}
|
|
11483
11504
|
add(e) {
|
|
11484
11505
|
var o;
|
|
11485
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
11506
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
11486
11507
|
...e,
|
|
11487
11508
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
11488
11509
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11597,7 +11618,7 @@ class i$ extends q {
|
|
|
11597
11618
|
buildModel(e) {
|
|
11598
11619
|
var n;
|
|
11599
11620
|
const { store: i } = this.client;
|
|
11600
|
-
return
|
|
11621
|
+
return O({
|
|
11601
11622
|
...e,
|
|
11602
11623
|
created_by: ((n = i.getState().userReducer.currentUser) == null ? void 0 : n.id) ?? null,
|
|
11603
11624
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11661,7 +11682,7 @@ class n$ extends M {
|
|
|
11661
11682
|
}
|
|
11662
11683
|
add(e) {
|
|
11663
11684
|
var o;
|
|
11664
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
11685
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
11665
11686
|
...e,
|
|
11666
11687
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
11667
11688
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11686,7 +11707,7 @@ class n$ extends M {
|
|
|
11686
11707
|
if (!d)
|
|
11687
11708
|
throw new Error(`Expected procedure step fields with uuid ${e} to exist`);
|
|
11688
11709
|
const o = Ob(e)(c);
|
|
11689
|
-
this.dispatch(n(e)), this.dispatch(Hc(
|
|
11710
|
+
this.dispatch(n(e)), this.dispatch(Hc(E(o)));
|
|
11690
11711
|
try {
|
|
11691
11712
|
return await this.enqueueRequest({
|
|
11692
11713
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -11744,7 +11765,7 @@ class r$ extends q {
|
|
|
11744
11765
|
buildModel(e) {
|
|
11745
11766
|
var a;
|
|
11746
11767
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
11747
|
-
return
|
|
11768
|
+
return O({
|
|
11748
11769
|
...e,
|
|
11749
11770
|
created_by: n,
|
|
11750
11771
|
submitted_at: r
|
|
@@ -11825,7 +11846,7 @@ class a$ extends M {
|
|
|
11825
11846
|
}
|
|
11826
11847
|
add(e) {
|
|
11827
11848
|
var o;
|
|
11828
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
11849
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
11829
11850
|
...e,
|
|
11830
11851
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
11831
11852
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -11920,7 +11941,7 @@ class c$ extends M {
|
|
|
11920
11941
|
}
|
|
11921
11942
|
add(e) {
|
|
11922
11943
|
var f;
|
|
11923
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
11944
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
11924
11945
|
...e,
|
|
11925
11946
|
created_by: d,
|
|
11926
11947
|
submitted_at: o
|
|
@@ -11971,7 +11992,7 @@ class c$ extends M {
|
|
|
11971
11992
|
if (!d)
|
|
11972
11993
|
throw new Error(`Expected ProcedureStepFieldValues with uuid ${e} to exist`);
|
|
11973
11994
|
const o = Hb(e)(c), p = Sg(e)(c);
|
|
11974
|
-
this.dispatch(n(e)), this.dispatch(Zc(
|
|
11995
|
+
this.dispatch(n(e)), this.dispatch(Zc(E(o))), this.dispatch(id(E(p)));
|
|
11975
11996
|
try {
|
|
11976
11997
|
return await this.enqueueRequest({
|
|
11977
11998
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -12019,7 +12040,7 @@ class d$ extends M {
|
|
|
12019
12040
|
}
|
|
12020
12041
|
add(e) {
|
|
12021
12042
|
var o;
|
|
12022
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
12043
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
12023
12044
|
...e,
|
|
12024
12045
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
12025
12046
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -12042,7 +12063,7 @@ class d$ extends M {
|
|
|
12042
12063
|
bulkAdd(e) {
|
|
12043
12064
|
var y;
|
|
12044
12065
|
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = e.map(
|
|
12045
|
-
(f) =>
|
|
12066
|
+
(f) => O({
|
|
12046
12067
|
...f,
|
|
12047
12068
|
created_by: c,
|
|
12048
12069
|
submitted_at: d
|
|
@@ -12134,7 +12155,7 @@ class o$ extends M {
|
|
|
12134
12155
|
}
|
|
12135
12156
|
add(e) {
|
|
12136
12157
|
var o;
|
|
12137
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
12158
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
12138
12159
|
...e,
|
|
12139
12160
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
12140
12161
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -12237,7 +12258,7 @@ class u$ extends q {
|
|
|
12237
12258
|
buildModel(e) {
|
|
12238
12259
|
var f;
|
|
12239
12260
|
const { store: i } = this.client, { procedure_type: n, file_sha1: r, file_extension: a, file_name: c, file_type: d, file_url: o } = e, p = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, y = (/* @__PURE__ */ new Date()).toISOString();
|
|
12240
|
-
return
|
|
12261
|
+
return O({
|
|
12241
12262
|
file_url: o,
|
|
12242
12263
|
file_sha1: r,
|
|
12243
12264
|
file_extension: a,
|
|
@@ -12312,7 +12333,7 @@ class l$ extends q {
|
|
|
12312
12333
|
buildModel(e) {
|
|
12313
12334
|
var a;
|
|
12314
12335
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
12315
|
-
return
|
|
12336
|
+
return O({
|
|
12316
12337
|
...e,
|
|
12317
12338
|
created_by: n,
|
|
12318
12339
|
submitted_at: r
|
|
@@ -12376,7 +12397,7 @@ class p$ extends M {
|
|
|
12376
12397
|
}
|
|
12377
12398
|
add(e) {
|
|
12378
12399
|
var y;
|
|
12379
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o =
|
|
12400
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = O({
|
|
12380
12401
|
...e,
|
|
12381
12402
|
created_by: c,
|
|
12382
12403
|
submitted_at: d
|
|
@@ -12441,7 +12462,7 @@ class h$ extends q {
|
|
|
12441
12462
|
buildModel(e) {
|
|
12442
12463
|
var a;
|
|
12443
12464
|
const { store: i } = this.client, n = ((a = i.getState().userReducer.currentUser) == null ? void 0 : a.id) ?? null, r = (/* @__PURE__ */ new Date()).toISOString();
|
|
12444
|
-
return
|
|
12465
|
+
return O({
|
|
12445
12466
|
...e,
|
|
12446
12467
|
created_by: n,
|
|
12447
12468
|
submitted_at: r
|
|
@@ -12522,7 +12543,7 @@ class y$ extends M {
|
|
|
12522
12543
|
}
|
|
12523
12544
|
add(e) {
|
|
12524
12545
|
var f;
|
|
12525
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p =
|
|
12546
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, d = ((f = i.getState().userReducer.currentUser) == null ? void 0 : f.id) ?? null, o = (/* @__PURE__ */ new Date()).toISOString(), p = O({
|
|
12526
12547
|
...e,
|
|
12527
12548
|
created_by: d,
|
|
12528
12549
|
submitted_at: o
|
|
@@ -12568,7 +12589,7 @@ class y$ extends M {
|
|
|
12568
12589
|
if (!d)
|
|
12569
12590
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
12570
12591
|
const o = Wk(e)(c);
|
|
12571
|
-
this.dispatch(n(e)), this.dispatch(md(
|
|
12592
|
+
this.dispatch(n(e)), this.dispatch(md(E(o)));
|
|
12572
12593
|
try {
|
|
12573
12594
|
return await this.enqueueRequest({
|
|
12574
12595
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -12617,7 +12638,7 @@ class m$ extends M {
|
|
|
12617
12638
|
}
|
|
12618
12639
|
add(e) {
|
|
12619
12640
|
var p;
|
|
12620
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d =
|
|
12641
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d = O({
|
|
12621
12642
|
...e,
|
|
12622
12643
|
created_by: ((p = c.userReducer.currentUser) == null ? void 0 : p.id) ?? null,
|
|
12623
12644
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -12665,7 +12686,7 @@ class m$ extends M {
|
|
|
12665
12686
|
if (!d)
|
|
12666
12687
|
throw new Error(`Expected procedure type with uuid ${e} to exist`);
|
|
12667
12688
|
const o = eI(e)(c);
|
|
12668
|
-
this.dispatch(n(e)), this.dispatch(zc(
|
|
12689
|
+
this.dispatch(n(e)), this.dispatch(zc(E(o)));
|
|
12669
12690
|
try {
|
|
12670
12691
|
return await this.enqueueRequest({
|
|
12671
12692
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -12713,7 +12734,7 @@ class f$ extends M {
|
|
|
12713
12734
|
}
|
|
12714
12735
|
add(e) {
|
|
12715
12736
|
var o;
|
|
12716
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
12737
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
12717
12738
|
...e,
|
|
12718
12739
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null
|
|
12719
12740
|
});
|
|
@@ -12734,7 +12755,7 @@ class f$ extends M {
|
|
|
12734
12755
|
}
|
|
12735
12756
|
bulkAdd(e) {
|
|
12736
12757
|
var p;
|
|
12737
|
-
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = ((p = i.getState().userReducer.currentUser) == null ? void 0 : p.id) ?? null, d = e.map((y) =>
|
|
12758
|
+
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = ((p = i.getState().userReducer.currentUser) == null ? void 0 : p.id) ?? null, d = e.map((y) => O({ ...y, created_by: c }));
|
|
12738
12759
|
this.dispatch(n(d));
|
|
12739
12760
|
const o = this.enqueueRequest({
|
|
12740
12761
|
description: A(u.POST, this.name, !0),
|
|
@@ -12802,7 +12823,7 @@ class S$ extends M {
|
|
|
12802
12823
|
}
|
|
12803
12824
|
add(e) {
|
|
12804
12825
|
var o;
|
|
12805
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
12826
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
12806
12827
|
...e,
|
|
12807
12828
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
12808
12829
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null
|
|
@@ -12939,7 +12960,7 @@ class w$ extends M {
|
|
|
12939
12960
|
}
|
|
12940
12961
|
add(e) {
|
|
12941
12962
|
var o;
|
|
12942
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
12963
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
12943
12964
|
...e,
|
|
12944
12965
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
12945
12966
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -12987,7 +13008,7 @@ class w$ extends M {
|
|
|
12987
13008
|
if (!d)
|
|
12988
13009
|
throw new Error(`Expected workflow with uuid ${e} to exist`);
|
|
12989
13010
|
const o = hM(e)(c);
|
|
12990
|
-
this.dispatch(n(e)), this.dispatch(is(
|
|
13011
|
+
this.dispatch(n(e)), this.dispatch(is(E(o)));
|
|
12991
13012
|
try {
|
|
12992
13013
|
return await this.enqueueRequest({
|
|
12993
13014
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -13035,7 +13056,7 @@ class O$ extends M {
|
|
|
13035
13056
|
}
|
|
13036
13057
|
add(e) {
|
|
13037
13058
|
var y;
|
|
13038
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, o =
|
|
13059
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = (/* @__PURE__ */ new Date()).toISOString(), d = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, o = O({
|
|
13039
13060
|
...e,
|
|
13040
13061
|
submitted_at: c,
|
|
13041
13062
|
created_by: d
|
|
@@ -13107,7 +13128,7 @@ class P$ extends M {
|
|
|
13107
13128
|
}
|
|
13108
13129
|
add(e) {
|
|
13109
13130
|
var o;
|
|
13110
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
13131
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
13111
13132
|
...e,
|
|
13112
13133
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
13113
13134
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13130,7 +13151,7 @@ class P$ extends M {
|
|
|
13130
13151
|
bulkAdd(e) {
|
|
13131
13152
|
var y;
|
|
13132
13153
|
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = e.map(
|
|
13133
|
-
(f) =>
|
|
13154
|
+
(f) => O({
|
|
13134
13155
|
...f,
|
|
13135
13156
|
created_by: c,
|
|
13136
13157
|
submitted_at: d
|
|
@@ -13151,7 +13172,7 @@ class P$ extends M {
|
|
|
13151
13172
|
return p.then((f) => {
|
|
13152
13173
|
this.dispatch(r(f));
|
|
13153
13174
|
}).catch(() => {
|
|
13154
|
-
this.dispatch(a(
|
|
13175
|
+
this.dispatch(a(E(o)));
|
|
13155
13176
|
}), [o, p];
|
|
13156
13177
|
}
|
|
13157
13178
|
async delete(e) {
|
|
@@ -13222,7 +13243,7 @@ class _$ extends M {
|
|
|
13222
13243
|
}
|
|
13223
13244
|
add(e) {
|
|
13224
13245
|
var o;
|
|
13225
|
-
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c =
|
|
13246
|
+
const { store: i } = this.client, { addOne: n, updateOne: r, deleteOne: a } = this.actions, c = O({
|
|
13226
13247
|
...e,
|
|
13227
13248
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
13228
13249
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13317,7 +13338,7 @@ class T$ extends M {
|
|
|
13317
13338
|
}
|
|
13318
13339
|
add(e) {
|
|
13319
13340
|
var o;
|
|
13320
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
13341
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
13321
13342
|
...e,
|
|
13322
13343
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
13323
13344
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13389,7 +13410,7 @@ class I$ extends M {
|
|
|
13389
13410
|
}
|
|
13390
13411
|
add(e) {
|
|
13391
13412
|
var o;
|
|
13392
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
13413
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
13393
13414
|
...e,
|
|
13394
13415
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
13395
13416
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13504,7 +13525,7 @@ class g$ extends q {
|
|
|
13504
13525
|
buildModel(e) {
|
|
13505
13526
|
var n;
|
|
13506
13527
|
const { store: i } = this.client;
|
|
13507
|
-
return
|
|
13528
|
+
return O({
|
|
13508
13529
|
...e,
|
|
13509
13530
|
created_by: ((n = i.getState().userReducer.currentUser) == null ? void 0 : n.id) ?? null,
|
|
13510
13531
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13568,7 +13589,7 @@ class k$ extends M {
|
|
|
13568
13589
|
}
|
|
13569
13590
|
add(e) {
|
|
13570
13591
|
var o;
|
|
13571
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
13592
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
13572
13593
|
...e,
|
|
13573
13594
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
13574
13595
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13593,7 +13614,7 @@ class k$ extends M {
|
|
|
13593
13614
|
if (!d)
|
|
13594
13615
|
throw new Error(`Expected workflow step fields with uuid ${e} to exist`);
|
|
13595
13616
|
const o = zR(e)(c);
|
|
13596
|
-
this.dispatch(n(e)), this.dispatch(zd(
|
|
13617
|
+
this.dispatch(n(e)), this.dispatch(zd(E(o)));
|
|
13597
13618
|
try {
|
|
13598
13619
|
return await this.enqueueRequest({
|
|
13599
13620
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -13651,7 +13672,7 @@ class F$ extends q {
|
|
|
13651
13672
|
buildModel(e) {
|
|
13652
13673
|
var n;
|
|
13653
13674
|
const { store: i } = this.client;
|
|
13654
|
-
return
|
|
13675
|
+
return O({
|
|
13655
13676
|
...e,
|
|
13656
13677
|
created_by: ((n = i.getState().userReducer.currentUser) == null ? void 0 : n.id) ?? null,
|
|
13657
13678
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13732,7 +13753,7 @@ class M$ extends M {
|
|
|
13732
13753
|
}
|
|
13733
13754
|
add(e) {
|
|
13734
13755
|
var o;
|
|
13735
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
13756
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
13736
13757
|
...e,
|
|
13737
13758
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
13738
13759
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13804,7 +13825,7 @@ class R$ extends M {
|
|
|
13804
13825
|
}
|
|
13805
13826
|
add(e) {
|
|
13806
13827
|
var o;
|
|
13807
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
13828
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
13808
13829
|
...e,
|
|
13809
13830
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
13810
13831
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13899,7 +13920,7 @@ class E$ extends M {
|
|
|
13899
13920
|
}
|
|
13900
13921
|
add(e) {
|
|
13901
13922
|
var p;
|
|
13902
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d =
|
|
13923
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d = O({
|
|
13903
13924
|
...e,
|
|
13904
13925
|
created_by: ((p = c.userReducer.currentUser) == null ? void 0 : p.id) ?? null,
|
|
13905
13926
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -13950,7 +13971,7 @@ class E$ extends M {
|
|
|
13950
13971
|
if (!d)
|
|
13951
13972
|
throw new Error(`Expected WorkflowStepFieldValues with uuid ${e} to exist`);
|
|
13952
13973
|
const o = oE(e)(c), p = HE(e)(c), y = BE(e)(c);
|
|
13953
|
-
this.dispatch(n(e)), this.dispatch(jd(
|
|
13974
|
+
this.dispatch(n(e)), this.dispatch(jd(E(o))), this.dispatch(Yd(E(p))), this.dispatch(Hd(E(y)));
|
|
13954
13975
|
try {
|
|
13955
13976
|
return await this.enqueueRequest({
|
|
13956
13977
|
description: A(u.DELETE, this.name, !1),
|
|
@@ -13998,7 +14019,7 @@ class v$ extends M {
|
|
|
13998
14019
|
}
|
|
13999
14020
|
add(e) {
|
|
14000
14021
|
var o;
|
|
14001
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
14022
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
14002
14023
|
...e,
|
|
14003
14024
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
14004
14025
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -14021,7 +14042,7 @@ class v$ extends M {
|
|
|
14021
14042
|
bulkAdd(e) {
|
|
14022
14043
|
var y;
|
|
14023
14044
|
const { store: i } = this.client, { addMany: n, setMany: r, deleteMany: a } = this.actions, c = ((y = i.getState().userReducer.currentUser) == null ? void 0 : y.id) ?? null, d = (/* @__PURE__ */ new Date()).toISOString(), o = e.map(
|
|
14024
|
-
(f) =>
|
|
14045
|
+
(f) => O({
|
|
14025
14046
|
...f,
|
|
14026
14047
|
created_by: c,
|
|
14027
14048
|
submitted_at: d
|
|
@@ -14113,7 +14134,7 @@ class V$ extends M {
|
|
|
14113
14134
|
}
|
|
14114
14135
|
add(e) {
|
|
14115
14136
|
var o;
|
|
14116
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c =
|
|
14137
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = O({
|
|
14117
14138
|
...e,
|
|
14118
14139
|
created_by: ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null,
|
|
14119
14140
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -14208,7 +14229,7 @@ class B$ extends M {
|
|
|
14208
14229
|
}
|
|
14209
14230
|
add(e) {
|
|
14210
14231
|
var p;
|
|
14211
|
-
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d =
|
|
14232
|
+
const { store: i } = this.client, { addOne: n, setOne: r, deleteOne: a } = this.actions, c = i.getState(), d = O({
|
|
14212
14233
|
...e,
|
|
14213
14234
|
created_by: ((p = c.userReducer.currentUser) == null ? void 0 : p.id) ?? null,
|
|
14214
14235
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -14301,18 +14322,18 @@ async function oo(t, s, e, i, n) {
|
|
|
14301
14322
|
...s
|
|
14302
14323
|
};
|
|
14303
14324
|
let k = s.url;
|
|
14304
|
-
const
|
|
14305
|
-
if (f && !
|
|
14325
|
+
const v = f ? await e.files.fetchCache(f) : void 0;
|
|
14326
|
+
if (f && !v)
|
|
14306
14327
|
throw new Error(`Cannot upload file ${f} because it's not cached.`);
|
|
14307
14328
|
!b && !k.startsWith("http") && (!k.startsWith("/") && !k.startsWith("blob:") && (k = "/" + k), k = t + k);
|
|
14308
14329
|
const R = (D) => {
|
|
14309
14330
|
if (f) {
|
|
14310
14331
|
if (!c) throw new Error(`No S3 URL for file ${f}`);
|
|
14311
14332
|
if ("warning" in c) throw new Error(`S3 URL warning for file ${f}`);
|
|
14312
|
-
if (!
|
|
14333
|
+
if (!v) throw new Error(`No file for file ${f}`);
|
|
14313
14334
|
const U = c.fields["x-amz-checksum-sha1"];
|
|
14314
14335
|
if (!U) throw new Error(`No checksum for file ${f}`);
|
|
14315
|
-
return D.set("x-amz-checksum-sha1", U).field({ ...d, ...c.fields }).attach("file",
|
|
14336
|
+
return D.set("x-amz-checksum-sha1", U).field({ ...d, ...c.fields }).attach("file", v);
|
|
14316
14337
|
}
|
|
14317
14338
|
return D.send(d);
|
|
14318
14339
|
}, W = {
|
|
@@ -16262,7 +16283,7 @@ export {
|
|
|
16262
16283
|
WF as teamReducer,
|
|
16263
16284
|
Td as teamSlice,
|
|
16264
16285
|
NV as toFileNameSafeString,
|
|
16265
|
-
|
|
16286
|
+
E as toUuidArray,
|
|
16266
16287
|
LV as toUuidIdRecord,
|
|
16267
16288
|
KV as truncate,
|
|
16268
16289
|
rh as updateAsset,
|
|
@@ -16460,7 +16481,7 @@ export {
|
|
|
16460
16481
|
BV as useSelectorBuilder,
|
|
16461
16482
|
u_ as userReducer,
|
|
16462
16483
|
Pc as userSlice,
|
|
16463
|
-
|
|
16484
|
+
O as uuidObj,
|
|
16464
16485
|
sr as uuidObjSortFn,
|
|
16465
16486
|
ks as uuidSortFn,
|
|
16466
16487
|
UF as versioningReducer,
|