@overmap-ai/core 1.0.78-status-models.3 → 1.0.78-status-models.5
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 +321 -322
- package/dist/overmap-core.umd.cjs +9 -9
- package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetProcedureTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/BaseAttachmentService.d.ts +1 -1
- package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/GeoImageService.d.ts +1 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
- package/dist/sdk/services/ProjectAttachmentService.d.ts +1 -1
- package/dist/typings/models/assets.d.ts +4 -4
- package/dist/typings/models/base.d.ts +1 -1
- package/dist/typings/models/categories.d.ts +1 -1
- package/dist/typings/models/documents.d.ts +2 -5
- package/dist/typings/models/fields.d.ts +1 -1
- package/dist/typings/models/forms.d.ts +1 -1
- package/dist/typings/models/geoImages.d.ts +4 -4
- package/dist/typings/models/issues.d.ts +9 -9
- package/dist/typings/models/projects.d.ts +1 -1
- package/dist/typings/models/teams.d.ts +2 -3
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -22,7 +22,7 @@ import "@tiptap/core";
|
|
|
22
22
|
const to = Object.freeze([]), so = Object.freeze({});
|
|
23
23
|
var io = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(io || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), ao = /* @__PURE__ */ ((t) => (t[t.PLANNED = 0] = "PLANNED", t[t.ACTIVE = 1] = "ACTIVE", t[t.MAINTENANCE = 2] = "MAINTENANCE", t[t.INACTIVE = 3] = "INACTIVE", t[t.RETIRED = 4] = "RETIRED", t[t.DISPOSED = 5] = "DISPOSED", t))(ao || {}), no = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(no || {}), yn = /* @__PURE__ */ ((t) => (t[t.LOWEST = 0] = "LOWEST", t[t.LOW = 2] = "LOW", t[t.MEDIUM = 4] = "MEDIUM", t[t.HIGH = 6] = "HIGH", t[t.HIGHEST = 8] = "HIGHEST", t))(yn || {}), An = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(An || {}), q = /* @__PURE__ */ ((t) => (t.STATUS = "status", t.PRIORITY = "priority", t.CATEGORY = "category", t.DESCRIPTION = "description", t.TITLE = "title", t.ASSIGNED_TO = "assigned_to", t.DUE_DATE = "due_date", t))(q || {}), ro = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.PLANNED = 1] = "PLANNED", t[t.IN_PROGRESS = 2] = "IN_PROGRESS", t[t.COMPLETED = 3] = "COMPLETED", t[t.CANCELLED = 4] = "CANCELLED", t))(ro || {});
|
|
24
24
|
const Sy = An.BACKLOG, gy = yn.MEDIUM, co = 6e4;
|
|
25
|
-
function
|
|
25
|
+
function I(t) {
|
|
26
26
|
return {
|
|
27
27
|
addOne: (h, m) => {
|
|
28
28
|
const f = t(m.payload);
|
|
@@ -65,8 +65,8 @@ function P(t) {
|
|
|
65
65
|
h.instances = {};
|
|
66
66
|
const f = /* @__PURE__ */ new Set();
|
|
67
67
|
for (const b of m.payload) {
|
|
68
|
-
const
|
|
69
|
-
f.add(
|
|
68
|
+
const R = t(b);
|
|
69
|
+
f.add(R), h.instances[R] = b;
|
|
70
70
|
}
|
|
71
71
|
f.size !== m.payload.length && console.warn("duplicate ids detected when initializing model instances.");
|
|
72
72
|
},
|
|
@@ -331,7 +331,7 @@ const bn = (t) => {
|
|
|
331
331
|
if (!i)
|
|
332
332
|
throw new Error(`Node with uuid ${t} does not exist in asset procedure step tree.`);
|
|
333
333
|
return new fn(i);
|
|
334
|
-
}, $ =
|
|
334
|
+
}, $ = I(
|
|
335
335
|
(t) => t.uuid
|
|
336
336
|
), hs = $.getInitialState({}), Sn = g({
|
|
337
337
|
name: "agents",
|
|
@@ -369,7 +369,7 @@ const bn = (t) => {
|
|
|
369
369
|
[gn, (t, e) => e],
|
|
370
370
|
(t, e) => t[e]
|
|
371
371
|
)
|
|
372
|
-
), Fo = Sn.reducer, G =
|
|
372
|
+
), Fo = Sn.reducer, G = I(
|
|
373
373
|
(t) => t.uuid
|
|
374
374
|
), ms = G.getInitialState({}), _n = g({
|
|
375
375
|
name: "assetAttachments",
|
|
@@ -404,7 +404,7 @@ const bn = (t) => {
|
|
|
404
404
|
(t) => Object.values(t)
|
|
405
405
|
), Mo = (t) => (e) => e.assetAttachmentReducer.instances[t], qo = y(
|
|
406
406
|
p([Eo, (t, e) => e], (t, e) => A(t.filter(({ asset: s }) => e === s)))
|
|
407
|
-
), jo = _n.reducer, B =
|
|
407
|
+
), jo = _n.reducer, B = I(({ uuid: t }) => t), ys = B.getInitialState({}), On = g({
|
|
408
408
|
name: "assetProcedureTypeAttachments",
|
|
409
409
|
initialState: ys,
|
|
410
410
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -437,7 +437,7 @@ const bn = (t) => {
|
|
|
437
437
|
[Bo, (t, e) => e],
|
|
438
438
|
(t, e) => A(t.filter(({ asset_procedure_type: s }) => e === s))
|
|
439
439
|
)
|
|
440
|
-
), L =
|
|
440
|
+
), L = I(({ uuid: t }) => t), As = L.getInitialState(
|
|
441
441
|
{}
|
|
442
442
|
), Fn = g({
|
|
443
443
|
name: "assetProcedureTypeFieldsAttachments",
|
|
@@ -475,7 +475,7 @@ const bn = (t) => {
|
|
|
475
475
|
[Zo, (t, e) => e],
|
|
476
476
|
(t, e) => A(t.filter((s) => s.fields_revision === e))
|
|
477
477
|
)
|
|
478
|
-
), rA = (t) => (e) => e.assetProcedureTypeFieldsAttachmentReducer.instances[t], N =
|
|
478
|
+
), rA = (t) => (e) => e.assetProcedureTypeFieldsAttachmentReducer.instances[t], N = I(({ uuid: t }) => t), Ts = N.getInitialState({}), Rn = g({
|
|
479
479
|
name: "assetProcedureTypeFields",
|
|
480
480
|
initialState: Ts,
|
|
481
481
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -516,7 +516,7 @@ const bn = (t) => {
|
|
|
516
516
|
[wn, (t, e) => e],
|
|
517
517
|
(t, e) => t.filter((s) => s.asset_procedure_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0]
|
|
518
518
|
)
|
|
519
|
-
), mA = (t) => (e) => e.assetProcedureTypeFieldsReducer.instances[t], H =
|
|
519
|
+
), mA = (t) => (e) => e.assetProcedureTypeFieldsReducer.instances[t], H = I(({ uuid: t }) => t), bs = H.getInitialState({}), vn = g({
|
|
520
520
|
name: "assetProcedureTypeFieldValuesAttachments",
|
|
521
521
|
initialState: bs,
|
|
522
522
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -563,7 +563,7 @@ const bn = (t) => {
|
|
|
563
563
|
[cd, (t, e) => e],
|
|
564
564
|
(t, e) => A(t.filter((s) => s.field_values === e))
|
|
565
565
|
)
|
|
566
|
-
), W =
|
|
566
|
+
), W = I(({ uuid: t }) => t), Ss = W.getInitialState({}), En = g({
|
|
567
567
|
name: "assetProcedureTypeFieldValues",
|
|
568
568
|
initialState: Ss,
|
|
569
569
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -604,7 +604,7 @@ const bn = (t) => {
|
|
|
604
604
|
[Mn, (t, e) => e],
|
|
605
605
|
(t, e) => A(t.filter((s) => s.asset_procedure === e))
|
|
606
606
|
)
|
|
607
|
-
), Is = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], K =
|
|
607
|
+
), Is = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], K = I(({ uuid: t }) => t), Ps = K.getInitialState({}), qn = g({
|
|
608
608
|
name: "assetProcedures",
|
|
609
609
|
initialState: Ps,
|
|
610
610
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -653,7 +653,7 @@ const bn = (t) => {
|
|
|
653
653
|
return A(s);
|
|
654
654
|
}
|
|
655
655
|
)
|
|
656
|
-
), Y =
|
|
656
|
+
), Y = I(
|
|
657
657
|
(t) => t.uuid
|
|
658
658
|
), ws = Y.getInitialState({}), Dn = g({
|
|
659
659
|
name: "assetProcedureTypes",
|
|
@@ -703,7 +703,7 @@ const bn = (t) => {
|
|
|
703
703
|
[Id, (t, e) => e],
|
|
704
704
|
(t, e) => A(t.filter((s) => s.organization === e))
|
|
705
705
|
)
|
|
706
|
-
), J =
|
|
706
|
+
), J = I((t) => t.uuid), Ms = J.getInitialState(
|
|
707
707
|
{}
|
|
708
708
|
), xn = g({
|
|
709
709
|
name: "assetProcedureStepFieldsAttachments",
|
|
@@ -741,7 +741,7 @@ const bn = (t) => {
|
|
|
741
741
|
[vd, (t, e) => e],
|
|
742
742
|
(t, e) => A(t.filter((s) => s.fields_revision === e))
|
|
743
743
|
)
|
|
744
|
-
), BA = (t) => (e) => e.assetProcedureStepFieldsAttachmentReducer.instances[t], kd = xn.reducer, Z =
|
|
744
|
+
), BA = (t) => (e) => e.assetProcedureStepFieldsAttachmentReducer.instances[t], kd = xn.reducer, Z = I((t) => t.uuid), qs = Z.getInitialState({}), Un = g({
|
|
745
745
|
name: "assetProcedureStepFields",
|
|
746
746
|
initialState: qs,
|
|
747
747
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -792,7 +792,7 @@ const bn = (t) => {
|
|
|
792
792
|
}
|
|
793
793
|
return e;
|
|
794
794
|
}
|
|
795
|
-
), XA = (t) => (e) => e.assetProcedureStepFieldsReducer.instances[t], Md = Un.reducer, X =
|
|
795
|
+
), XA = (t) => (e) => e.assetProcedureStepFieldsReducer.instances[t], Md = Un.reducer, X = I((t) => t.uuid), Ds = X.getInitialState({}), Gn = g({
|
|
796
796
|
name: "assetProcedureStepFieldValuesAttachments",
|
|
797
797
|
initialState: Ds,
|
|
798
798
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -839,7 +839,7 @@ const bn = (t) => {
|
|
|
839
839
|
[Vd, (t, e) => e],
|
|
840
840
|
(t, e) => A(t.filter((s) => s.field_values === e))
|
|
841
841
|
)
|
|
842
|
-
), xd = Gn.reducer, Q =
|
|
842
|
+
), xd = Gn.reducer, Q = I((t) => t.uuid), zs = Q.getInitialState({}), Ln = g({
|
|
843
843
|
name: "assetProcedureStepFieldValues",
|
|
844
844
|
initialState: zs,
|
|
845
845
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -885,7 +885,7 @@ const bn = (t) => {
|
|
|
885
885
|
[ss, (t, e) => e],
|
|
886
886
|
(t, e) => A(t.filter((s) => s.asset_procedure_step === e))
|
|
887
887
|
)
|
|
888
|
-
), Cs = (t) => (e) => e.assetProcedureStepFieldValuesReducer.instances[t], Ld = Ln.reducer, ee =
|
|
888
|
+
), Cs = (t) => (e) => e.assetProcedureStepFieldValuesReducer.instances[t], Ld = Ln.reducer, ee = I(
|
|
889
889
|
(t) => t.uuid
|
|
890
890
|
), $s = ee.getInitialState({}), Nn = g({
|
|
891
891
|
name: "assetProcedureSteps",
|
|
@@ -948,7 +948,7 @@ const bn = (t) => {
|
|
|
948
948
|
return A(a);
|
|
949
949
|
}
|
|
950
950
|
)
|
|
951
|
-
), te =
|
|
951
|
+
), te = I((t) => t.uuid), Bs = te.getInitialState({}), Hn = g({
|
|
952
952
|
name: "assets",
|
|
953
953
|
initialState: Bs,
|
|
954
954
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -987,7 +987,7 @@ const bn = (t) => {
|
|
|
987
987
|
}
|
|
988
988
|
return A(s);
|
|
989
989
|
})
|
|
990
|
-
), TT = (t) => (e) => Yn(t)(e).length, iu = Hn.reducer, se =
|
|
990
|
+
), TT = (t) => (e) => Yn(t)(e).length, iu = Hn.reducer, se = I(
|
|
991
991
|
(t) => t.uuid
|
|
992
992
|
), Ws = se.getInitialState({}), Jn = g({
|
|
993
993
|
name: "assetStageCompletions",
|
|
@@ -1032,7 +1032,7 @@ const bn = (t) => {
|
|
|
1032
1032
|
);
|
|
1033
1033
|
}
|
|
1034
1034
|
)
|
|
1035
|
-
), ie =
|
|
1035
|
+
), ie = I((t) => t.uuid), Xs = ie.getInitialState({}), Xn = g({
|
|
1036
1036
|
name: "assetStages",
|
|
1037
1037
|
initialState: Xs,
|
|
1038
1038
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1078,7 +1078,7 @@ const bn = (t) => {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
return A(s);
|
|
1080
1080
|
})
|
|
1081
|
-
), ae =
|
|
1081
|
+
), ae = I(
|
|
1082
1082
|
(t) => t.uuid
|
|
1083
1083
|
), si = ae.getInitialState({}), Qn = g({
|
|
1084
1084
|
name: "assetTypeAttachments",
|
|
@@ -1113,7 +1113,7 @@ const bn = (t) => {
|
|
|
1113
1113
|
(t) => Object.values(t)
|
|
1114
1114
|
), Su = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], gu = y(
|
|
1115
1115
|
p([bu, (t, e) => e], (t, e) => A(t.filter(({ asset_type: s }) => e === s)))
|
|
1116
|
-
), _u = Qn.reducer, ne =
|
|
1116
|
+
), _u = Qn.reducer, ne = I((t) => t.uuid), ii = ne.getInitialState({}), sr = g({
|
|
1117
1117
|
name: "assetTypeFieldsAttachments",
|
|
1118
1118
|
initialState: ii,
|
|
1119
1119
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1149,7 +1149,7 @@ const bn = (t) => {
|
|
|
1149
1149
|
[wu, (t, e) => e],
|
|
1150
1150
|
(t, e) => A(t.filter((s) => s.fields_revision === e))
|
|
1151
1151
|
)
|
|
1152
|
-
), xT = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], vu = sr.reducer, re =
|
|
1152
|
+
), xT = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], vu = sr.reducer, re = I(
|
|
1153
1153
|
(t) => t.uuid
|
|
1154
1154
|
), ai = re.getInitialState({}), ir = g({
|
|
1155
1155
|
name: "assetTypeFields",
|
|
@@ -1183,7 +1183,7 @@ const bn = (t) => {
|
|
|
1183
1183
|
p([as, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_type === e)))
|
|
1184
1184
|
), NT = y(
|
|
1185
1185
|
p([as, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
1186
|
-
), HT = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Vu = ir.reducer, ce =
|
|
1186
|
+
), HT = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Vu = ir.reducer, ce = I((t) => t.uuid), ni = ce.getInitialState({}), ar = g({
|
|
1187
1187
|
name: "assetTypeFieldValuesAttachments",
|
|
1188
1188
|
initialState: ni,
|
|
1189
1189
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1229,7 +1229,7 @@ const bn = (t) => {
|
|
|
1229
1229
|
[xu, (t, e) => e],
|
|
1230
1230
|
(t, e) => A(t.filter((s) => s.field_values === e))
|
|
1231
1231
|
)
|
|
1232
|
-
), $u = ar.reducer, oe =
|
|
1232
|
+
), $u = ar.reducer, oe = I(
|
|
1233
1233
|
(t) => t.uuid
|
|
1234
1234
|
), ri = oe.getInitialState({}), rr = g({
|
|
1235
1235
|
name: "assetTypeFieldValues",
|
|
@@ -1271,7 +1271,7 @@ const bn = (t) => {
|
|
|
1271
1271
|
return A(e.filter((a) => i.has(a.fields_revision)));
|
|
1272
1272
|
}
|
|
1273
1273
|
)
|
|
1274
|
-
), di = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], Wu = rr.reducer, de =
|
|
1274
|
+
), di = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], Wu = rr.reducer, de = I(
|
|
1275
1275
|
(t) => t.uuid
|
|
1276
1276
|
), ui = de.getInitialState({}), or = g({
|
|
1277
1277
|
name: "assetTypeIdentifiers",
|
|
@@ -1306,7 +1306,7 @@ const bn = (t) => {
|
|
|
1306
1306
|
(t) => Object.values(t)
|
|
1307
1307
|
), hi = (t) => (e) => e.assetTypeIdentifierReducer.instances[t], ob = y(
|
|
1308
1308
|
p([Ju, (t, e) => e], (t, e) => A(t.filter((s) => s.asset_type === e)))
|
|
1309
|
-
), Zu = or.reducer, ue =
|
|
1309
|
+
), Zu = or.reducer, ue = I((t) => t.uuid), mi = ue.getInitialState({}), dr = g({
|
|
1310
1310
|
name: "assetTypeIdentifierValues",
|
|
1311
1311
|
initialState: mi,
|
|
1312
1312
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1346,7 +1346,7 @@ const bn = (t) => {
|
|
|
1346
1346
|
t.filter((s) => s.asset_type_identifier === e)
|
|
1347
1347
|
)
|
|
1348
1348
|
)
|
|
1349
|
-
), el = dr.reducer, le =
|
|
1349
|
+
), el = dr.reducer, le = I((t) => t.uuid), Ti = le.getInitialState({}), lr = g({
|
|
1350
1350
|
name: "assetTypes",
|
|
1351
1351
|
initialState: Ti,
|
|
1352
1352
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1391,7 +1391,7 @@ const bn = (t) => {
|
|
|
1391
1391
|
)
|
|
1392
1392
|
), _b = y(
|
|
1393
1393
|
p([sl, (t, e) => e], (t, e) => A(t.filter((s) => s.organization === e)))
|
|
1394
|
-
), il = lr.reducer, pe =
|
|
1394
|
+
), il = lr.reducer, pe = I(
|
|
1395
1395
|
(t) => t.uuid
|
|
1396
1396
|
), _i = pe.getInitialState({}), hr = g({
|
|
1397
1397
|
name: "assetTypeStatuses",
|
|
@@ -1457,7 +1457,7 @@ const bn = (t) => {
|
|
|
1457
1457
|
e.payload || ns.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
}), { setTokens: vb, clearTokens: kb, setLoggedIn: ol } = ns.actions, Eb = (t) => t.authReducer.accessToken, Mb = (t) => t.authReducer.isLoggedIn, dl = ns.reducer, he =
|
|
1460
|
+
}), { setTokens: vb, clearTokens: kb, setLoggedIn: ol } = ns.actions, Eb = (t) => t.authReducer.accessToken, Mb = (t) => t.authReducer.isLoggedIn, dl = ns.reducer, he = I((t) => t.uuid), Ri = he.getInitialState({}), fr = g({
|
|
1461
1461
|
name: "categories",
|
|
1462
1462
|
initialState: Ri,
|
|
1463
1463
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1496,7 +1496,7 @@ const bn = (t) => {
|
|
|
1496
1496
|
})
|
|
1497
1497
|
), Ub = y(
|
|
1498
1498
|
p([hl, (t, e) => e], (t, e) => A(t.filter((s) => s.project === e)))
|
|
1499
|
-
), ml = fr.reducer, me =
|
|
1499
|
+
), ml = fr.reducer, me = I(
|
|
1500
1500
|
(t) => t.uuid
|
|
1501
1501
|
), ki = me.getInitialState({}), Ar = g({
|
|
1502
1502
|
name: "documentAttachments",
|
|
@@ -1614,7 +1614,7 @@ const bn = (t) => {
|
|
|
1614
1614
|
p([br, (t, e) => e], (t, e) => t.filter((s) => s.project === e))
|
|
1615
1615
|
), Hb = y(
|
|
1616
1616
|
p([br, (t, e) => e], (t, e) => t.filter((s) => s.organization === e))
|
|
1617
|
-
), wl = Tr.reducer, fe =
|
|
1617
|
+
), wl = Tr.reducer, fe = I(
|
|
1618
1618
|
(t) => t.uuid
|
|
1619
1619
|
), qi = fe.getInitialState({}), Sr = g({
|
|
1620
1620
|
name: "emailDomains",
|
|
@@ -1669,7 +1669,7 @@ const bn = (t) => {
|
|
|
1669
1669
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
1670
1670
|
if (!((s.exp ?? i) - i < gr))
|
|
1671
1671
|
return s;
|
|
1672
|
-
}, xl = _r.reducer, ye =
|
|
1672
|
+
}, xl = _r.reducer, ye = I(
|
|
1673
1673
|
(t) => t.uuid
|
|
1674
1674
|
), Vi = ye.getInitialState({}), Ir = g({
|
|
1675
1675
|
name: "formIdentifiers",
|
|
@@ -1704,7 +1704,7 @@ const bn = (t) => {
|
|
|
1704
1704
|
(t) => Object.values(t)
|
|
1705
1705
|
), xi = (t) => (e) => e.formIdentifierReducer.instances[t], nS = y(
|
|
1706
1706
|
p([$l, (t, e) => e], (t, e) => A(t.filter((s) => s.form === e)))
|
|
1707
|
-
), Gl = Ir.reducer, Ae =
|
|
1707
|
+
), Gl = Ir.reducer, Ae = I(
|
|
1708
1708
|
(t) => t.uuid
|
|
1709
1709
|
), Ui = Ae.getInitialState({}), Pr = g({
|
|
1710
1710
|
name: "formIdentifierValues",
|
|
@@ -1751,7 +1751,7 @@ const bn = (t) => {
|
|
|
1751
1751
|
t.filter((s) => s.form_identifier === e)
|
|
1752
1752
|
)
|
|
1753
1753
|
)
|
|
1754
|
-
), Nl = Pr.reducer, Te =
|
|
1754
|
+
), Nl = Pr.reducer, Te = I((t) => t.uuid), Bi = Te.getInitialState({}), Fr = g({
|
|
1755
1755
|
name: "formRevisionAttachments",
|
|
1756
1756
|
initialState: Bi,
|
|
1757
1757
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1783,7 +1783,7 @@ const bn = (t) => {
|
|
|
1783
1783
|
p([Jl, (t, e) => e], (t, e) => A(
|
|
1784
1784
|
Object.values(t).filter((s) => s.form_revision === e)
|
|
1785
1785
|
))
|
|
1786
|
-
), Zl = Fr.reducer, be =
|
|
1786
|
+
), Zl = Fr.reducer, be = I((t) => t.uuid), Li = be.getInitialState({}), Rr = g({
|
|
1787
1787
|
name: "formRevisions",
|
|
1788
1788
|
initialState: Li,
|
|
1789
1789
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1821,7 +1821,7 @@ const bn = (t) => {
|
|
|
1821
1821
|
[Er, (t, e) => e],
|
|
1822
1822
|
(t, e) => A(t.filter((s) => s.form === e))
|
|
1823
1823
|
)
|
|
1824
|
-
), ip = Rr.reducer, Se =
|
|
1824
|
+
), ip = Rr.reducer, Se = I((t) => t.uuid), Ni = Se.getInitialState({}), Mr = g({
|
|
1825
1825
|
name: "forms",
|
|
1826
1826
|
initialState: Ni,
|
|
1827
1827
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1851,7 +1851,7 @@ const bn = (t) => {
|
|
|
1851
1851
|
deleteForms: vS
|
|
1852
1852
|
} = Mr.actions, np = Mr.reducer, rp = (t) => t.formReducer.instances, cp = p([rp], (t) => Object.values(t)), op = (t) => (e) => e.formReducer.instances[t], kS = y(
|
|
1853
1853
|
p([cp, (t, e) => e], (t, e) => A(t.filter((s) => s.organization === e)))
|
|
1854
|
-
), ge =
|
|
1854
|
+
), ge = I((t) => t.uuid), Ki = ge.getInitialState({}), qr = g({
|
|
1855
1855
|
name: "formSubmissionAttachments",
|
|
1856
1856
|
initialState: Ki,
|
|
1857
1857
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1899,7 +1899,7 @@ const bn = (t) => {
|
|
|
1899
1899
|
t.filter((s) => s.form_submission === e)
|
|
1900
1900
|
)
|
|
1901
1901
|
)
|
|
1902
|
-
), mp = qr.reducer, _e =
|
|
1902
|
+
), mp = qr.reducer, _e = I(
|
|
1903
1903
|
(t) => t.uuid
|
|
1904
1904
|
), Yi = _e.getInitialState({}), Vr = g({
|
|
1905
1905
|
name: "formSubmissions",
|
|
@@ -1944,7 +1944,7 @@ const bn = (t) => {
|
|
|
1944
1944
|
);
|
|
1945
1945
|
}
|
|
1946
1946
|
)
|
|
1947
|
-
), Sp = Vr.reducer, Ie =
|
|
1947
|
+
), Sp = Vr.reducer, Ie = I((t) => t.uuid), Qi = Ie.getInitialState({}), zr = g({
|
|
1948
1948
|
name: "geoImages",
|
|
1949
1949
|
initialState: Qi,
|
|
1950
1950
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -1974,7 +1974,7 @@ const bn = (t) => {
|
|
|
1974
1974
|
deleteGeoImages: Fp
|
|
1975
1975
|
} = zr.actions, Rp = (t) => t.geoImageReducer.instances, wp = p([Rp], (t) => Object.values(t)), ta = (t) => (e) => e.geoImageReducer.instances[t], CS = y(
|
|
1976
1976
|
p([wp, (t, e) => e], (t, e) => A(t.filter((s) => s.project === e)))
|
|
1977
|
-
), vp = zr.reducer, Pe =
|
|
1977
|
+
), vp = zr.reducer, Pe = I(
|
|
1978
1978
|
(t) => t.uuid
|
|
1979
1979
|
), sa = Pe.getInitialState({}), xr = g({
|
|
1980
1980
|
name: "issueAssociations",
|
|
@@ -2021,7 +2021,7 @@ const bn = (t) => {
|
|
|
2021
2021
|
[vt, (t, e) => e],
|
|
2022
2022
|
(t, e) => A(Object.values(t).filter((s) => s.asset === e))
|
|
2023
2023
|
)
|
|
2024
|
-
), Dp = xr.reducer, Oe =
|
|
2024
|
+
), Dp = xr.reducer, Oe = I(
|
|
2025
2025
|
(t) => t.uuid
|
|
2026
2026
|
), na = Oe.getInitialState({}), $r = g({
|
|
2027
2027
|
name: "issueAttachments",
|
|
@@ -2059,7 +2059,7 @@ const bn = (t) => {
|
|
|
2059
2059
|
[$p, (t, e) => e],
|
|
2060
2060
|
(t, e) => A(t.filter(({ issue: s }) => e === s))
|
|
2061
2061
|
)
|
|
2062
|
-
), Bp = (t) => (e) => e.issueAttachmentReducer.instances[t], Lp = $r.reducer, Fe =
|
|
2062
|
+
), Bp = (t) => (e) => e.issueAttachmentReducer.instances[t], Lp = $r.reducer, Fe = I((t) => t.uuid), ca = Fe.getInitialState({}), Lr = g({
|
|
2063
2063
|
name: "issueCommentAttachments",
|
|
2064
2064
|
initialState: ca,
|
|
2065
2065
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2092,7 +2092,7 @@ const bn = (t) => {
|
|
|
2092
2092
|
(t) => Object.values(t)
|
|
2093
2093
|
), Xp = (t) => (e) => e.issueCommentAttachmentReducer.instances[t], ZS = y(
|
|
2094
2094
|
p([Zp, (t, e) => e], (t, e) => A(t.filter(({ issue_comment: s }) => e === s)))
|
|
2095
|
-
), Qp = Lr.reducer, Re =
|
|
2095
|
+
), Qp = Lr.reducer, Re = I((t) => t.uuid), da = Re.getInitialState({}), Nr = g({
|
|
2096
2096
|
name: "issueComments",
|
|
2097
2097
|
initialState: da,
|
|
2098
2098
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2127,7 +2127,7 @@ const bn = (t) => {
|
|
|
2127
2127
|
Object.values(t).filter((s) => s.issue === e)
|
|
2128
2128
|
)
|
|
2129
2129
|
)
|
|
2130
|
-
), sh = Nr.reducer, we =
|
|
2130
|
+
), sh = Nr.reducer, we = I((t) => t.uuid), ma = we.getInitialState({}), Hr = g({
|
|
2131
2131
|
name: "issues",
|
|
2132
2132
|
initialState: ma,
|
|
2133
2133
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2171,7 +2171,7 @@ const bn = (t) => {
|
|
|
2171
2171
|
p([Kr, (t, e) => e], (t, e) => t.filter((s) => s.project === e))
|
|
2172
2172
|
), rh = y(
|
|
2173
2173
|
p([Kr, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e))
|
|
2174
|
-
), ch = Hr.reducer, ve =
|
|
2174
|
+
), ch = Hr.reducer, ve = I(
|
|
2175
2175
|
(t) => t.uuid
|
|
2176
2176
|
), Ta = ve.getInitialState({}), Yr = g({
|
|
2177
2177
|
name: "issueTypeAttachments",
|
|
@@ -2206,7 +2206,7 @@ const bn = (t) => {
|
|
|
2206
2206
|
(t) => Object.values(t)
|
|
2207
2207
|
), fh = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], pg = y(
|
|
2208
2208
|
p([mh, (t, e) => e], (t, e) => A(t.filter(({ issue_type: s }) => e === s)))
|
|
2209
|
-
), yh = Yr.reducer, ke =
|
|
2209
|
+
), yh = Yr.reducer, ke = I((t) => t.uuid), Sa = ke.getInitialState({}), Jr = g({
|
|
2210
2210
|
name: "issueTypeFieldsAttachments",
|
|
2211
2211
|
initialState: Sa,
|
|
2212
2212
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2242,7 +2242,7 @@ const bn = (t) => {
|
|
|
2242
2242
|
[_h, (t, e) => e],
|
|
2243
2243
|
(t, e) => A(t.filter((s) => s.fields_revision === e))
|
|
2244
2244
|
)
|
|
2245
|
-
), bg = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], Ih = Jr.reducer, Ee =
|
|
2245
|
+
), bg = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], Ih = Jr.reducer, Ee = I(
|
|
2246
2246
|
(t) => t.uuid
|
|
2247
2247
|
), ga = Ee.getInitialState({}), Zr = g({
|
|
2248
2248
|
name: "issueTypeFieldValues",
|
|
@@ -2274,7 +2274,7 @@ const bn = (t) => {
|
|
|
2274
2274
|
deleteIssueTypeFieldValuesMany: Pg
|
|
2275
2275
|
} = Zr.actions, Oh = (t) => t.issueTypeFieldValuesReducer.instances, Xr = p([Oh], (t) => Object.values(t)), Og = y(
|
|
2276
2276
|
p([Xr, (t, e) => e], (t, e) => A(t.filter((s) => s.issue === e)))
|
|
2277
|
-
), Pa = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Fh = Zr.reducer, Me =
|
|
2277
|
+
), Pa = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Fh = Zr.reducer, Me = I(
|
|
2278
2278
|
(t) => t.uuid
|
|
2279
2279
|
), Oa = Me.getInitialState({}), Qr = g({
|
|
2280
2280
|
name: "issueTypeFields",
|
|
@@ -2318,7 +2318,7 @@ const bn = (t) => {
|
|
|
2318
2318
|
return A(e.filter((a) => i.has(a.fields_revision)));
|
|
2319
2319
|
}
|
|
2320
2320
|
)
|
|
2321
|
-
), jg = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Mh = Qr.reducer, qe =
|
|
2321
|
+
), jg = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Mh = Qr.reducer, qe = I((t) => t.uuid), Fa = qe.getInitialState({}), ec = g({
|
|
2322
2322
|
name: "issueTypeFieldValuesAttachments",
|
|
2323
2323
|
initialState: Fa,
|
|
2324
2324
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2362,7 +2362,7 @@ const bn = (t) => {
|
|
|
2362
2362
|
[tc, (t, e) => e],
|
|
2363
2363
|
(t, e) => A(t.filter((s) => s.field_values === e))
|
|
2364
2364
|
)
|
|
2365
|
-
), xh = ec.reducer, je =
|
|
2365
|
+
), xh = ec.reducer, je = I(
|
|
2366
2366
|
(t) => t.uuid
|
|
2367
2367
|
), Ra = je.getInitialState({}), sc = g({
|
|
2368
2368
|
name: "issueTypeIdentifiers",
|
|
@@ -2397,7 +2397,7 @@ const bn = (t) => {
|
|
|
2397
2397
|
(t) => Object.values(t)
|
|
2398
2398
|
), ka = (t) => (e) => e.issueTypeIdentifierReducer.instances[t], Hg = y(
|
|
2399
2399
|
p([$h, (t, e) => e], (t, e) => A(t.filter((s) => s.issue_type === e)))
|
|
2400
|
-
), Gh = sc.reducer, Ve =
|
|
2400
|
+
), Gh = sc.reducer, Ve = I((t) => t.uuid), Ea = Ve.getInitialState({}), ic = g({
|
|
2401
2401
|
name: "issueTypeIdentifierValues",
|
|
2402
2402
|
initialState: Ea,
|
|
2403
2403
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2437,7 +2437,7 @@ const bn = (t) => {
|
|
|
2437
2437
|
t.filter((s) => s.issue_type_identifier === e)
|
|
2438
2438
|
)
|
|
2439
2439
|
)
|
|
2440
|
-
), Nh = ic.reducer, z =
|
|
2440
|
+
), Nh = ic.reducer, z = I((t) => t.uuid), Va = z.getInitialState({}), nc = g({
|
|
2441
2441
|
name: "issueTypes",
|
|
2442
2442
|
initialState: Va,
|
|
2443
2443
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2484,7 +2484,7 @@ const bn = (t) => {
|
|
|
2484
2484
|
)
|
|
2485
2485
|
), r_ = y(
|
|
2486
2486
|
p([Yh, (t, e) => e], (t, e) => A(t.filter((s) => s.organization === e)))
|
|
2487
|
-
), Jh = nc.reducer, De =
|
|
2487
|
+
), Jh = nc.reducer, De = I(
|
|
2488
2488
|
(t) => t.uuid
|
|
2489
2489
|
), xa = De.getInitialState({}), cc = g({
|
|
2490
2490
|
name: "issueTypeStatuses",
|
|
@@ -2531,7 +2531,7 @@ const bn = (t) => {
|
|
|
2531
2531
|
)
|
|
2532
2532
|
), p_ = y(
|
|
2533
2533
|
p([Qh, (t, e) => e], (t, e) => A(t.filter((s) => s.issue_type === e)))
|
|
2534
|
-
), em = cc.reducer, ze =
|
|
2534
|
+
), em = cc.reducer, ze = I(
|
|
2535
2535
|
(t) => t.uuid
|
|
2536
2536
|
), Ga = ze.getInitialState({}), dc = g({
|
|
2537
2537
|
name: "issueUpdates",
|
|
@@ -2566,7 +2566,7 @@ const bn = (t) => {
|
|
|
2566
2566
|
(t) => Object.values(t)
|
|
2567
2567
|
), om = y(
|
|
2568
2568
|
p([cm, (t, e) => e], (t, e) => A(t.filter((s) => s.issue === e)))
|
|
2569
|
-
), dm = dc.reducer, xe =
|
|
2569
|
+
), dm = dc.reducer, xe = I((t) => t.id), Ba = xe.getInitialState({
|
|
2570
2570
|
currentUser: null
|
|
2571
2571
|
}), uc = g({
|
|
2572
2572
|
name: "users",
|
|
@@ -2618,7 +2618,7 @@ const bn = (t) => {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
return A(s);
|
|
2620
2620
|
})
|
|
2621
|
-
), Ue =
|
|
2621
|
+
), Ue = I(
|
|
2622
2622
|
(t) => t.uuid
|
|
2623
2623
|
), La = Ue.getInitialState({}), pc = g({
|
|
2624
2624
|
name: "organizationAccess",
|
|
@@ -2668,7 +2668,7 @@ const bn = (t) => {
|
|
|
2668
2668
|
})
|
|
2669
2669
|
)
|
|
2670
2670
|
)
|
|
2671
|
-
), Ce =
|
|
2671
|
+
), Ce = I((t) => t.uuid), Ha = Ce.getInitialState({}), mc = g({
|
|
2672
2672
|
name: "organizations",
|
|
2673
2673
|
initialState: Ha,
|
|
2674
2674
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2742,7 +2742,7 @@ const bn = (t) => {
|
|
|
2742
2742
|
t.latestRetryTime = e.payload;
|
|
2743
2743
|
}
|
|
2744
2744
|
}
|
|
2745
|
-
}), $_ = (t) => t.outboxReducer.deletedRequests, G_ = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Rm, markForDeletion: B_, markAsDeleted: wm, _setLatestRetryTime: vm } = fc.actions, km = fc.reducer, $e =
|
|
2745
|
+
}), $_ = (t) => t.outboxReducer.deletedRequests, G_ = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Rm, markForDeletion: B_, markAsDeleted: wm, _setLatestRetryTime: vm } = fc.actions, km = fc.reducer, $e = I(
|
|
2746
2746
|
(t) => t.uuid
|
|
2747
2747
|
), Ka = $e.getInitialState({}), yc = g({
|
|
2748
2748
|
name: "projectAccess",
|
|
@@ -2797,7 +2797,7 @@ const bn = (t) => {
|
|
|
2797
2797
|
return A(t.filter((a) => i.has(a.id)));
|
|
2798
2798
|
}
|
|
2799
2799
|
)
|
|
2800
|
-
), Ge =
|
|
2800
|
+
), Ge = I(
|
|
2801
2801
|
(t) => t.uuid
|
|
2802
2802
|
), Xa = Ge.getInitialState({}), Sc = g({
|
|
2803
2803
|
name: "projectAttachments",
|
|
@@ -2832,7 +2832,7 @@ const bn = (t) => {
|
|
|
2832
2832
|
(t) => Object.values(t)
|
|
2833
2833
|
), Bm = (t) => (e) => e.projectAttachmentReducer.instances[t], Lm = y(
|
|
2834
2834
|
p([Gm, (t, e) => e], (t, e) => A(t.filter(({ project: s }) => e === s)))
|
|
2835
|
-
), Nm = Sc.reducer, Be =
|
|
2835
|
+
), Nm = Sc.reducer, Be = I(
|
|
2836
2836
|
(t) => t.uuid
|
|
2837
2837
|
), Qa = Be.getInitialState({
|
|
2838
2838
|
activeProjectFileId: null,
|
|
@@ -2892,7 +2892,7 @@ const bn = (t) => {
|
|
|
2892
2892
|
setActiveProjectFileId: Zm,
|
|
2893
2893
|
saveActiveProjectFileBounds: Xm,
|
|
2894
2894
|
resetProjectFileObjectUrls: eI
|
|
2895
|
-
} = _c.actions, Qm = (t) => t.projectFileReducer.instances, ef = p([Qm], (t) => A(Object.values(t).sort((e, s) => e.z_index - s.z_index))), tI = (t) => (e) => e.projectFileReducer.instances[t], sI = (t) => t.projectFileReducer.activeProjectFileId, iI = (t) => t.projectFileReducer.isImportingProjectFile, tf = _c.reducer, Le =
|
|
2895
|
+
} = _c.actions, Qm = (t) => t.projectFileReducer.instances, ef = p([Qm], (t) => A(Object.values(t).sort((e, s) => e.z_index - s.z_index))), tI = (t) => (e) => e.projectFileReducer.instances[t], sI = (t) => t.projectFileReducer.activeProjectFileId, iI = (t) => t.projectFileReducer.isImportingProjectFile, tf = _c.reducer, Le = I((t) => t.uuid), tn = Le.getInitialState({}), Ic = g({
|
|
2896
2896
|
name: "projects",
|
|
2897
2897
|
initialState: tn,
|
|
2898
2898
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -2938,7 +2938,7 @@ const bn = (t) => {
|
|
|
2938
2938
|
t.isRehydrated = e.payload;
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
|
-
}), { setRehydrated: lI } = Oc.actions, pI = (t) => t.rehydratedReducer.isRehydrated, df = Oc.reducer, Ne =
|
|
2941
|
+
}), { setRehydrated: lI } = Oc.actions, pI = (t) => t.rehydratedReducer.isRehydrated, df = Oc.reducer, Ne = I(
|
|
2942
2942
|
(t) => t.uuid
|
|
2943
2943
|
), nn = Ne.getInitialState({}), Fc = g({
|
|
2944
2944
|
name: "teamMemberships",
|
|
@@ -2986,7 +2986,7 @@ const bn = (t) => {
|
|
|
2986
2986
|
return A(t.filter((a) => i.has(a.id)));
|
|
2987
2987
|
}
|
|
2988
2988
|
)
|
|
2989
|
-
), He =
|
|
2989
|
+
), He = I((t) => t.uuid), on = He.getInitialState({}), wc = g({
|
|
2990
2990
|
name: "teams",
|
|
2991
2991
|
initialState: on,
|
|
2992
2992
|
extraReducers: (t) => t.addMatcher(
|
|
@@ -3255,18 +3255,18 @@ async function Dc(t, e, s) {
|
|
|
3255
3255
|
const r = {
|
|
3256
3256
|
queryParams: "",
|
|
3257
3257
|
isAuthNeeded: !0
|
|
3258
|
-
}, c = t.meta.offline.effect, { payload: l, headers: o, method: u, queryParams: h, attachmentHash: m, isExternalUrl: f, isAuthNeeded: b, isResponseBlob:
|
|
3258
|
+
}, c = t.meta.offline.effect, { payload: l, headers: o, method: u, queryParams: h, attachmentHash: m, isExternalUrl: f, isAuthNeeded: b, isResponseBlob: R } = {
|
|
3259
3259
|
...r,
|
|
3260
3260
|
...c.request
|
|
3261
|
-
},
|
|
3262
|
-
let k =
|
|
3261
|
+
}, P = c.request;
|
|
3262
|
+
let k = P.url;
|
|
3263
3263
|
const D = m ? await e.files.fetchCache(m) : void 0;
|
|
3264
3264
|
if (m && !D)
|
|
3265
3265
|
throw new Error(`Cannot upload file ${m} because it's not cached.`);
|
|
3266
3266
|
!f && !k.startsWith("http") && (!k.startsWith("/") && !k.startsWith("blob:") && (k = "/" + k), k = t.meta.offline.effect.BASE_URL + k);
|
|
3267
3267
|
const U = (M) => {
|
|
3268
3268
|
if (m) {
|
|
3269
|
-
const C =
|
|
3269
|
+
const C = P.s3url;
|
|
3270
3270
|
if (!C) throw new Error(`No S3 URL for file ${m}`);
|
|
3271
3271
|
if ("warning" in C) throw new Error(`S3 URL warning for file ${m}`);
|
|
3272
3272
|
if (!D) throw new Error(`No file for file ${m}`);
|
|
@@ -3276,7 +3276,7 @@ async function Dc(t, e, s) {
|
|
|
3276
3276
|
}
|
|
3277
3277
|
return M.send(l);
|
|
3278
3278
|
}, Gc = {
|
|
3279
|
-
[d.GET]: () =>
|
|
3279
|
+
[d.GET]: () => R ? Ze.get(k.toString()).responseType("blob") : Ze.get(k.toString()),
|
|
3280
3280
|
[d.POST]: () => {
|
|
3281
3281
|
const M = Ze.post(k.toString());
|
|
3282
3282
|
return U(M);
|
|
@@ -3296,7 +3296,7 @@ async function Dc(t, e, s) {
|
|
|
3296
3296
|
}[u];
|
|
3297
3297
|
let We = Gc();
|
|
3298
3298
|
if (s == null || s.addEventListener("abort", () => {
|
|
3299
|
-
console.debug("aborting request:",
|
|
3299
|
+
console.debug("aborting request:", P), We.abort();
|
|
3300
3300
|
}), b && a) {
|
|
3301
3301
|
const M = i.auth.getAuthHeader();
|
|
3302
3302
|
We = We.set("Authorization", M);
|
|
@@ -3513,7 +3513,7 @@ class V extends w {
|
|
|
3513
3513
|
Object.values(h.instances),
|
|
3514
3514
|
Object.values(m.instances),
|
|
3515
3515
|
Object.values(f.instances)
|
|
3516
|
-
).filter((
|
|
3516
|
+
).filter((R) => R.file_sha1 === e).length;
|
|
3517
3517
|
}
|
|
3518
3518
|
processPresignedUrls(e) {
|
|
3519
3519
|
const s = {};
|
|
@@ -3545,7 +3545,7 @@ class V extends w {
|
|
|
3545
3545
|
class Ye extends V {
|
|
3546
3546
|
async _bulkAdd(e) {
|
|
3547
3547
|
var o;
|
|
3548
|
-
const { store: s } = this.client, i = (o = s.getState().userReducer.currentUser) == null ? void 0 : o.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = [], r = [], c = {};
|
|
3548
|
+
const { store: s } = this.client, i = ((o = s.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = [], r = [], c = {};
|
|
3549
3549
|
for (const u of e) {
|
|
3550
3550
|
const { modelUuid: h, file: m } = u, f = await this.getFilePayload(m);
|
|
3551
3551
|
f.sha1 in c || (c[f.sha1] = f);
|
|
@@ -3728,7 +3728,7 @@ class kI extends Ye {
|
|
|
3728
3728
|
class EI extends V {
|
|
3729
3729
|
async bulkAdd(e) {
|
|
3730
3730
|
var l;
|
|
3731
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
|
|
3731
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, a = {}, n = [], r = [];
|
|
3732
3732
|
for (const o of e) {
|
|
3733
3733
|
const { fieldsRevisionUuid: u, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
|
|
3734
3734
|
f.sha1 in a || (a[f.sha1] = f);
|
|
@@ -3743,7 +3743,7 @@ class EI extends V {
|
|
|
3743
3743
|
field_identifier: h
|
|
3744
3744
|
});
|
|
3745
3745
|
n.push(b);
|
|
3746
|
-
const
|
|
3746
|
+
const R = {
|
|
3747
3747
|
uuid: b.uuid,
|
|
3748
3748
|
file_name: m.name,
|
|
3749
3749
|
field_identifier: h,
|
|
@@ -3751,7 +3751,7 @@ class EI extends V {
|
|
|
3751
3751
|
file_sha1: f.sha1,
|
|
3752
3752
|
fields_revision: u
|
|
3753
3753
|
};
|
|
3754
|
-
r.push(
|
|
3754
|
+
r.push(R);
|
|
3755
3755
|
}
|
|
3756
3756
|
this.dispatch(Ho(n));
|
|
3757
3757
|
const c = this.enqueueRequest({
|
|
@@ -3797,7 +3797,7 @@ class EI extends V {
|
|
|
3797
3797
|
class MI extends w {
|
|
3798
3798
|
add(e) {
|
|
3799
3799
|
var c;
|
|
3800
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
3800
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
3801
3801
|
...e,
|
|
3802
3802
|
created_by: i,
|
|
3803
3803
|
submitted_at: a
|
|
@@ -3846,29 +3846,29 @@ function Je(t, e) {
|
|
|
3846
3846
|
class qI extends V {
|
|
3847
3847
|
async bulkAdd(e, s) {
|
|
3848
3848
|
var o;
|
|
3849
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), a = (o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id, n = Je(e, s ?? e.length), r = [], c = [];
|
|
3849
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), a = ((o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, n = Je(e, s ?? e.length), r = [], c = [];
|
|
3850
3850
|
for (const u of n) {
|
|
3851
3851
|
const h = {}, m = [];
|
|
3852
3852
|
for (const f of u) {
|
|
3853
|
-
const { fieldValuesUuid: b, fieldIdentifier:
|
|
3853
|
+
const { fieldValuesUuid: b, fieldIdentifier: R, file: P } = f, k = await this.getFilePayload(P);
|
|
3854
3854
|
k.sha1 in h || (h[k.sha1] = k);
|
|
3855
3855
|
const D = _({
|
|
3856
|
-
file: URL.createObjectURL(
|
|
3857
|
-
file_type:
|
|
3858
|
-
file_name:
|
|
3856
|
+
file: URL.createObjectURL(P),
|
|
3857
|
+
file_type: P.type,
|
|
3858
|
+
file_name: P.name,
|
|
3859
3859
|
file_sha1: k.sha1,
|
|
3860
3860
|
created_by: a,
|
|
3861
3861
|
field_values: b,
|
|
3862
3862
|
submitted_at: i,
|
|
3863
|
-
field_identifier:
|
|
3863
|
+
field_identifier: R
|
|
3864
3864
|
});
|
|
3865
3865
|
r.push(D);
|
|
3866
3866
|
const U = {
|
|
3867
3867
|
uuid: D.uuid,
|
|
3868
|
-
file_name:
|
|
3868
|
+
file_name: P.name,
|
|
3869
3869
|
file_sha1: k.sha1,
|
|
3870
3870
|
file_extension: k.extension,
|
|
3871
|
-
field_identifier:
|
|
3871
|
+
field_identifier: R,
|
|
3872
3872
|
field_values: b
|
|
3873
3873
|
};
|
|
3874
3874
|
m.push(U);
|
|
@@ -3950,72 +3950,72 @@ class qI extends V {
|
|
|
3950
3950
|
}
|
|
3951
3951
|
class jI extends w {
|
|
3952
3952
|
add(e) {
|
|
3953
|
-
var
|
|
3954
|
-
const { store: s } = this.client,
|
|
3953
|
+
var l;
|
|
3954
|
+
const { store: s } = this.client, a = ((l = s.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = _({
|
|
3955
3955
|
...e,
|
|
3956
|
-
created_by:
|
|
3957
|
-
submitted_at:
|
|
3958
|
-
}),
|
|
3956
|
+
created_by: a,
|
|
3957
|
+
submitted_at: n
|
|
3958
|
+
}), c = this.enqueueRequest({
|
|
3959
3959
|
description: "Add asset procedure type field values",
|
|
3960
3960
|
method: d.POST,
|
|
3961
3961
|
url: "/asset-procedure-type-field-values/",
|
|
3962
|
-
payload: v(
|
|
3962
|
+
payload: v(r),
|
|
3963
3963
|
blockers: [e.asset, e.fields_revision, e.asset_procedure],
|
|
3964
|
-
blocks: [
|
|
3964
|
+
blocks: [r.uuid]
|
|
3965
3965
|
});
|
|
3966
|
-
return this.dispatch(gs(
|
|
3967
|
-
this.dispatch(_s(
|
|
3968
|
-
}), [
|
|
3966
|
+
return this.dispatch(gs(r)), c.then((o) => (this.dispatch(rt(o)), o)).catch(() => {
|
|
3967
|
+
this.dispatch(_s(r.uuid));
|
|
3968
|
+
}), [r, c];
|
|
3969
3969
|
}
|
|
3970
3970
|
bulkAdd(e, s) {
|
|
3971
|
-
var
|
|
3972
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), a = [],
|
|
3973
|
-
for (const
|
|
3974
|
-
const
|
|
3975
|
-
for (const
|
|
3976
|
-
const
|
|
3977
|
-
...
|
|
3978
|
-
values:
|
|
3979
|
-
created_by:
|
|
3971
|
+
var o;
|
|
3972
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), a = ((o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, n = [], r = Je(e.payloads, s ?? e.payloads.length), c = [];
|
|
3973
|
+
for (const u of r) {
|
|
3974
|
+
const h = [];
|
|
3975
|
+
for (const m of u) {
|
|
3976
|
+
const f = _({
|
|
3977
|
+
...m,
|
|
3978
|
+
values: m.values,
|
|
3979
|
+
created_by: a,
|
|
3980
3980
|
submitted_at: i
|
|
3981
3981
|
});
|
|
3982
|
-
|
|
3983
|
-
uuid:
|
|
3984
|
-
asset:
|
|
3985
|
-
fields_revision:
|
|
3986
|
-
asset_procedure:
|
|
3987
|
-
published_at:
|
|
3988
|
-
values:
|
|
3982
|
+
n.push(f), h.push({
|
|
3983
|
+
uuid: f.uuid,
|
|
3984
|
+
asset: m.asset,
|
|
3985
|
+
fields_revision: m.fields_revision,
|
|
3986
|
+
asset_procedure: m.asset_procedure,
|
|
3987
|
+
published_at: m.published_at,
|
|
3988
|
+
values: f.values
|
|
3989
3989
|
});
|
|
3990
3990
|
}
|
|
3991
|
-
|
|
3991
|
+
c.push({
|
|
3992
3992
|
submitted_at: i,
|
|
3993
3993
|
values: e.values,
|
|
3994
|
-
field_values:
|
|
3994
|
+
field_values: h
|
|
3995
3995
|
});
|
|
3996
3996
|
}
|
|
3997
|
-
this.dispatch(ld(
|
|
3998
|
-
const
|
|
3999
|
-
for (const
|
|
4000
|
-
const
|
|
3997
|
+
this.dispatch(ld(n));
|
|
3998
|
+
const l = [];
|
|
3999
|
+
for (const u of c) {
|
|
4000
|
+
const h = u.field_values.map((P) => P.asset), m = u.field_values.map((P) => P.fields_revision), f = u.field_values.map((P) => P.asset_procedure), b = u.field_values.map((P) => P.uuid), R = this.enqueueRequest({
|
|
4001
4001
|
description: "Bulk add asset procedure type field values",
|
|
4002
4002
|
method: d.POST,
|
|
4003
4003
|
url: "/asset-procedure-type-field-values/bulk/",
|
|
4004
|
-
payload:
|
|
4005
|
-
blockers: [...
|
|
4006
|
-
blocks:
|
|
4004
|
+
payload: u,
|
|
4005
|
+
blockers: [...h, ...m, ...f],
|
|
4006
|
+
blocks: b
|
|
4007
4007
|
});
|
|
4008
|
-
|
|
4008
|
+
l.push(R);
|
|
4009
4009
|
}
|
|
4010
|
-
return Promise.all(
|
|
4011
|
-
this.dispatch(pd(
|
|
4010
|
+
return Promise.all(l).then((u) => {
|
|
4011
|
+
this.dispatch(pd(u.flat()));
|
|
4012
4012
|
}).catch(() => {
|
|
4013
4013
|
this.dispatch(
|
|
4014
4014
|
hd(
|
|
4015
|
-
|
|
4015
|
+
n.map((u) => u.uuid)
|
|
4016
4016
|
)
|
|
4017
4017
|
);
|
|
4018
|
-
}), [
|
|
4018
|
+
}), [n, l];
|
|
4019
4019
|
}
|
|
4020
4020
|
update(e) {
|
|
4021
4021
|
const { store: s } = this.client, i = s.getState(), a = Is(e.uuid)(i);
|
|
@@ -4096,7 +4096,7 @@ class jI extends w {
|
|
|
4096
4096
|
class VI extends w {
|
|
4097
4097
|
add(e) {
|
|
4098
4098
|
var c;
|
|
4099
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4099
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4100
4100
|
...e,
|
|
4101
4101
|
created_by: i,
|
|
4102
4102
|
submitted_at: a
|
|
@@ -4184,7 +4184,7 @@ class VI extends w {
|
|
|
4184
4184
|
class DI extends w {
|
|
4185
4185
|
add(e) {
|
|
4186
4186
|
var c;
|
|
4187
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4187
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4188
4188
|
...e,
|
|
4189
4189
|
created_by: i,
|
|
4190
4190
|
submitted_at: a
|
|
@@ -4263,7 +4263,7 @@ class DI extends w {
|
|
|
4263
4263
|
class zI extends V {
|
|
4264
4264
|
async bulkAdd(e) {
|
|
4265
4265
|
var l;
|
|
4266
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
|
|
4266
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, a = {}, n = [], r = [];
|
|
4267
4267
|
for (const o of e) {
|
|
4268
4268
|
const { fieldsRevisionUuid: u, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
|
|
4269
4269
|
f.sha1 in a || (a[f.sha1] = f);
|
|
@@ -4278,7 +4278,7 @@ class zI extends V {
|
|
|
4278
4278
|
field_identifier: h
|
|
4279
4279
|
});
|
|
4280
4280
|
n.push(b);
|
|
4281
|
-
const
|
|
4281
|
+
const R = {
|
|
4282
4282
|
uuid: b.uuid,
|
|
4283
4283
|
file_name: m.name,
|
|
4284
4284
|
field_identifier: h,
|
|
@@ -4286,7 +4286,7 @@ class zI extends V {
|
|
|
4286
4286
|
file_sha1: f.sha1,
|
|
4287
4287
|
fields_revision: u
|
|
4288
4288
|
};
|
|
4289
|
-
r.push(
|
|
4289
|
+
r.push(R);
|
|
4290
4290
|
}
|
|
4291
4291
|
this.dispatch(Od(n));
|
|
4292
4292
|
const c = this.enqueueRequest({
|
|
@@ -4332,7 +4332,7 @@ class zI extends V {
|
|
|
4332
4332
|
class xI extends w {
|
|
4333
4333
|
add(e) {
|
|
4334
4334
|
var c;
|
|
4335
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4335
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4336
4336
|
...e,
|
|
4337
4337
|
created_by: i,
|
|
4338
4338
|
submitted_at: a
|
|
@@ -4412,29 +4412,29 @@ class xI extends w {
|
|
|
4412
4412
|
class UI extends V {
|
|
4413
4413
|
async bulkAdd(e, s) {
|
|
4414
4414
|
var o;
|
|
4415
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), a = (o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id, n = Je(e, s ?? e.length), r = [], c = [];
|
|
4415
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), a = ((o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, n = Je(e, s ?? e.length), r = [], c = [];
|
|
4416
4416
|
for (const u of n) {
|
|
4417
4417
|
const h = {}, m = [];
|
|
4418
4418
|
for (const f of u) {
|
|
4419
|
-
const { fieldValuesUuid: b, fieldIdentifier:
|
|
4419
|
+
const { fieldValuesUuid: b, fieldIdentifier: R, file: P } = f, k = await this.getFilePayload(P);
|
|
4420
4420
|
k.sha1 in h || (h[k.sha1] = k);
|
|
4421
4421
|
const D = _({
|
|
4422
|
-
file: URL.createObjectURL(
|
|
4423
|
-
file_type:
|
|
4424
|
-
file_name:
|
|
4422
|
+
file: URL.createObjectURL(P),
|
|
4423
|
+
file_type: P.type,
|
|
4424
|
+
file_name: P.name,
|
|
4425
4425
|
file_sha1: k.sha1,
|
|
4426
4426
|
created_by: a,
|
|
4427
4427
|
field_values: b,
|
|
4428
4428
|
submitted_at: i,
|
|
4429
|
-
field_identifier:
|
|
4429
|
+
field_identifier: R
|
|
4430
4430
|
});
|
|
4431
4431
|
r.push(D);
|
|
4432
4432
|
const U = {
|
|
4433
4433
|
uuid: D.uuid,
|
|
4434
|
-
file_name:
|
|
4434
|
+
file_name: P.name,
|
|
4435
4435
|
file_sha1: k.sha1,
|
|
4436
4436
|
file_extension: k.extension,
|
|
4437
|
-
field_identifier:
|
|
4437
|
+
field_identifier: R,
|
|
4438
4438
|
field_values: b
|
|
4439
4439
|
};
|
|
4440
4440
|
m.push(U);
|
|
@@ -4516,73 +4516,73 @@ class UI extends V {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
class CI extends w {
|
|
4518
4518
|
add(e) {
|
|
4519
|
-
var
|
|
4520
|
-
const { store: s } = this.client,
|
|
4519
|
+
var l;
|
|
4520
|
+
const { store: s } = this.client, a = ((l = s.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = _({
|
|
4521
4521
|
...e,
|
|
4522
|
-
created_by:
|
|
4523
|
-
submitted_at:
|
|
4524
|
-
}),
|
|
4522
|
+
created_by: a,
|
|
4523
|
+
submitted_at: n
|
|
4524
|
+
}), c = this.enqueueRequest({
|
|
4525
4525
|
description: "Add asset procedure step field values",
|
|
4526
4526
|
method: d.POST,
|
|
4527
4527
|
url: "/asset-procedure-step-field-values/",
|
|
4528
|
-
payload: v(
|
|
4528
|
+
payload: v(r),
|
|
4529
4529
|
blockers: [e.asset, e.fields_revision, e.asset_procedure],
|
|
4530
|
-
blocks: [
|
|
4530
|
+
blocks: [r.uuid]
|
|
4531
4531
|
});
|
|
4532
|
-
return this.dispatch(xs(
|
|
4533
|
-
this.dispatch(Us(
|
|
4534
|
-
}), [
|
|
4532
|
+
return this.dispatch(xs(r)), c.then((o) => (this.dispatch(ut(o)), o)).catch(() => {
|
|
4533
|
+
this.dispatch(Us(r.uuid));
|
|
4534
|
+
}), [r, c];
|
|
4535
4535
|
}
|
|
4536
4536
|
bulkAdd(e, s) {
|
|
4537
|
-
var
|
|
4538
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), a = [],
|
|
4539
|
-
for (const
|
|
4540
|
-
const
|
|
4541
|
-
for (const
|
|
4542
|
-
const
|
|
4543
|
-
...
|
|
4544
|
-
values:
|
|
4545
|
-
created_by:
|
|
4537
|
+
var o;
|
|
4538
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), a = ((o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, n = [], r = Je(e.payloads, s ?? e.payloads.length), c = [];
|
|
4539
|
+
for (const u of r) {
|
|
4540
|
+
const h = [];
|
|
4541
|
+
for (const m of u) {
|
|
4542
|
+
const f = _({
|
|
4543
|
+
...m,
|
|
4544
|
+
values: m.values,
|
|
4545
|
+
created_by: a,
|
|
4546
4546
|
submitted_at: i
|
|
4547
4547
|
});
|
|
4548
|
-
|
|
4549
|
-
uuid:
|
|
4550
|
-
asset:
|
|
4551
|
-
fields_revision:
|
|
4552
|
-
asset_procedure:
|
|
4553
|
-
asset_procedure_step:
|
|
4554
|
-
published_at:
|
|
4555
|
-
values:
|
|
4548
|
+
n.push(f), h.push({
|
|
4549
|
+
uuid: f.uuid,
|
|
4550
|
+
asset: m.asset,
|
|
4551
|
+
fields_revision: m.fields_revision,
|
|
4552
|
+
asset_procedure: m.asset_procedure,
|
|
4553
|
+
asset_procedure_step: m.asset_procedure_step,
|
|
4554
|
+
published_at: m.published_at,
|
|
4555
|
+
values: f.values
|
|
4556
4556
|
});
|
|
4557
4557
|
}
|
|
4558
|
-
|
|
4558
|
+
c.push({
|
|
4559
4559
|
submitted_at: i,
|
|
4560
4560
|
values: e.values,
|
|
4561
|
-
field_values:
|
|
4561
|
+
field_values: h
|
|
4562
4562
|
});
|
|
4563
4563
|
}
|
|
4564
|
-
this.dispatch(Cd(
|
|
4565
|
-
const
|
|
4566
|
-
for (const
|
|
4567
|
-
const
|
|
4564
|
+
this.dispatch(Cd(n));
|
|
4565
|
+
const l = [];
|
|
4566
|
+
for (const u of c) {
|
|
4567
|
+
const h = u.field_values.map((P) => P.asset), m = u.field_values.map((P) => P.fields_revision), f = u.field_values.map((P) => P.asset_procedure), b = u.field_values.map((P) => P.uuid), R = this.enqueueRequest({
|
|
4568
4568
|
description: "Bulk add asset procedure step field values",
|
|
4569
4569
|
method: d.POST,
|
|
4570
4570
|
url: "/asset-procedure-step-field-values/bulk/",
|
|
4571
|
-
payload:
|
|
4572
|
-
blockers: [...
|
|
4573
|
-
blocks:
|
|
4571
|
+
payload: u,
|
|
4572
|
+
blockers: [...h, ...m, ...f],
|
|
4573
|
+
blocks: b
|
|
4574
4574
|
});
|
|
4575
|
-
|
|
4575
|
+
l.push(R);
|
|
4576
4576
|
}
|
|
4577
|
-
return Promise.all(
|
|
4578
|
-
this.dispatch($d(
|
|
4577
|
+
return Promise.all(l).then((u) => {
|
|
4578
|
+
this.dispatch($d(u.flat()));
|
|
4579
4579
|
}).catch(() => {
|
|
4580
4580
|
this.dispatch(
|
|
4581
4581
|
Gd(
|
|
4582
|
-
|
|
4582
|
+
n.map((u) => u.uuid)
|
|
4583
4583
|
)
|
|
4584
4584
|
);
|
|
4585
|
-
}), [
|
|
4585
|
+
}), [n, l];
|
|
4586
4586
|
}
|
|
4587
4587
|
update(e) {
|
|
4588
4588
|
const { store: s } = this.client, i = s.getState(), a = Cs(e.uuid)(i);
|
|
@@ -4663,7 +4663,7 @@ class CI extends w {
|
|
|
4663
4663
|
class $I extends w {
|
|
4664
4664
|
add(e) {
|
|
4665
4665
|
var c;
|
|
4666
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4666
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4667
4667
|
...e,
|
|
4668
4668
|
created_by: i,
|
|
4669
4669
|
submitted_at: a
|
|
@@ -4746,7 +4746,7 @@ class GI extends w {
|
|
|
4746
4746
|
// Basic CRUD functions
|
|
4747
4747
|
add(e) {
|
|
4748
4748
|
var c;
|
|
4749
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4749
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4750
4750
|
...e,
|
|
4751
4751
|
created_by: i,
|
|
4752
4752
|
submitted_at: a
|
|
@@ -4829,17 +4829,17 @@ class GI extends w {
|
|
|
4829
4829
|
for (const u of c) {
|
|
4830
4830
|
const { batchId: h, payload: m } = u, f = m.assets.map((k) => k.uuid), b = [s];
|
|
4831
4831
|
o && b.push(o);
|
|
4832
|
-
const
|
|
4833
|
-
|
|
4834
|
-
const
|
|
4832
|
+
const R = f;
|
|
4833
|
+
R.push(h);
|
|
4834
|
+
const P = this.enqueueRequest({
|
|
4835
4835
|
description: "Batch create assets",
|
|
4836
4836
|
method: d.POST,
|
|
4837
4837
|
url: "/assets/bulk/",
|
|
4838
4838
|
payload: m,
|
|
4839
4839
|
blockers: b,
|
|
4840
|
-
blocks:
|
|
4840
|
+
blocks: R
|
|
4841
4841
|
});
|
|
4842
|
-
o = u.batchId, l.push(
|
|
4842
|
+
o = u.batchId, l.push(P);
|
|
4843
4843
|
}
|
|
4844
4844
|
return Promise.all(l).then((u) => {
|
|
4845
4845
|
const h = u.flat();
|
|
@@ -4893,7 +4893,7 @@ class GI extends w {
|
|
|
4893
4893
|
class BI extends w {
|
|
4894
4894
|
add(e) {
|
|
4895
4895
|
var c;
|
|
4896
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4896
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
4897
4897
|
...e,
|
|
4898
4898
|
created_by: i,
|
|
4899
4899
|
submitted_at: a
|
|
@@ -4931,7 +4931,7 @@ class BI extends w {
|
|
|
4931
4931
|
}
|
|
4932
4932
|
bulkAdd(e) {
|
|
4933
4933
|
var o;
|
|
4934
|
-
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), a = (o = s.getState().userReducer.currentUser) == null ? void 0 : o.id, n = e.map((u) => _(u)), r = n.map((u) => ({
|
|
4934
|
+
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), a = ((o = s.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, n = e.map((u) => _(u)), r = n.map((u) => ({
|
|
4935
4935
|
...u,
|
|
4936
4936
|
created_by: a,
|
|
4937
4937
|
submitted_at: i
|
|
@@ -5004,7 +5004,7 @@ class BI extends w {
|
|
|
5004
5004
|
class LI extends w {
|
|
5005
5005
|
add(e) {
|
|
5006
5006
|
var c;
|
|
5007
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5007
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5008
5008
|
...e,
|
|
5009
5009
|
created_by: i,
|
|
5010
5010
|
submitted_at: a
|
|
@@ -5134,7 +5134,7 @@ class NI extends Ye {
|
|
|
5134
5134
|
class HI extends V {
|
|
5135
5135
|
async bulkAdd(e) {
|
|
5136
5136
|
var l;
|
|
5137
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
|
|
5137
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, a = {}, n = [], r = [];
|
|
5138
5138
|
for (const o of e) {
|
|
5139
5139
|
const { fieldsRevisionUuid: u, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
|
|
5140
5140
|
f.sha1 in a || (a[f.sha1] = f);
|
|
@@ -5149,7 +5149,7 @@ class HI extends V {
|
|
|
5149
5149
|
field_identifier: h
|
|
5150
5150
|
});
|
|
5151
5151
|
n.push(b);
|
|
5152
|
-
const
|
|
5152
|
+
const R = {
|
|
5153
5153
|
uuid: b.uuid,
|
|
5154
5154
|
file_name: m.name,
|
|
5155
5155
|
field_identifier: h,
|
|
@@ -5157,7 +5157,7 @@ class HI extends V {
|
|
|
5157
5157
|
file_sha1: f.sha1,
|
|
5158
5158
|
fields_revision: u
|
|
5159
5159
|
};
|
|
5160
|
-
r.push(
|
|
5160
|
+
r.push(R);
|
|
5161
5161
|
}
|
|
5162
5162
|
this.dispatch(Pu(n));
|
|
5163
5163
|
const c = this.enqueueRequest({
|
|
@@ -5203,7 +5203,7 @@ class HI extends V {
|
|
|
5203
5203
|
class WI extends w {
|
|
5204
5204
|
add(e) {
|
|
5205
5205
|
var c;
|
|
5206
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5206
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5207
5207
|
...e,
|
|
5208
5208
|
created_by: i,
|
|
5209
5209
|
submitted_at: a
|
|
@@ -5244,29 +5244,29 @@ class WI extends w {
|
|
|
5244
5244
|
class KI extends V {
|
|
5245
5245
|
async bulkAdd(e, s) {
|
|
5246
5246
|
var o;
|
|
5247
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), a = (o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id, n = Je(e, s ?? e.length), r = [], c = [];
|
|
5247
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), a = ((o = this.client.store.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, n = Je(e, s ?? e.length), r = [], c = [];
|
|
5248
5248
|
for (const u of n) {
|
|
5249
5249
|
const h = {}, m = [];
|
|
5250
5250
|
for (const f of u) {
|
|
5251
|
-
const { fieldValuesUuid: b, fieldIdentifier:
|
|
5251
|
+
const { fieldValuesUuid: b, fieldIdentifier: R, file: P } = f, k = await this.getFilePayload(P);
|
|
5252
5252
|
k.sha1 in h || (h[k.sha1] = k);
|
|
5253
5253
|
const D = _({
|
|
5254
|
-
file: URL.createObjectURL(
|
|
5255
|
-
file_type:
|
|
5256
|
-
file_name:
|
|
5254
|
+
file: URL.createObjectURL(P),
|
|
5255
|
+
file_type: P.type,
|
|
5256
|
+
file_name: P.name,
|
|
5257
5257
|
file_sha1: k.sha1,
|
|
5258
5258
|
created_by: a,
|
|
5259
5259
|
field_values: b,
|
|
5260
5260
|
submitted_at: i,
|
|
5261
|
-
field_identifier:
|
|
5261
|
+
field_identifier: R
|
|
5262
5262
|
});
|
|
5263
5263
|
r.push(D);
|
|
5264
5264
|
const U = {
|
|
5265
5265
|
uuid: D.uuid,
|
|
5266
|
-
file_name:
|
|
5266
|
+
file_name: P.name,
|
|
5267
5267
|
file_sha1: k.sha1,
|
|
5268
5268
|
file_extension: k.extension,
|
|
5269
|
-
field_identifier:
|
|
5269
|
+
field_identifier: R,
|
|
5270
5270
|
field_values: b
|
|
5271
5271
|
};
|
|
5272
5272
|
m.push(U);
|
|
@@ -5348,22 +5348,22 @@ class KI extends V {
|
|
|
5348
5348
|
}
|
|
5349
5349
|
class YI extends w {
|
|
5350
5350
|
add(e) {
|
|
5351
|
-
var
|
|
5352
|
-
const { store: s } = this.client,
|
|
5351
|
+
var l;
|
|
5352
|
+
const { store: s } = this.client, a = ((l = s.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = _({
|
|
5353
5353
|
...e,
|
|
5354
|
-
created_by:
|
|
5355
|
-
submitted_at:
|
|
5356
|
-
}),
|
|
5354
|
+
created_by: a,
|
|
5355
|
+
submitted_at: n
|
|
5356
|
+
}), c = this.enqueueRequest({
|
|
5357
5357
|
description: "Add asset type field values",
|
|
5358
5358
|
method: d.POST,
|
|
5359
5359
|
url: "/asset-type-field-values/",
|
|
5360
|
-
payload: v(
|
|
5360
|
+
payload: v(r),
|
|
5361
5361
|
blockers: [e.asset, e.fields_revision],
|
|
5362
|
-
blocks: [
|
|
5362
|
+
blocks: [r.uuid]
|
|
5363
5363
|
});
|
|
5364
|
-
return this.dispatch(ci(
|
|
5365
|
-
this.dispatch(oi(
|
|
5366
|
-
}), [
|
|
5364
|
+
return this.dispatch(ci(r)), c.then((o) => (this.dispatch(pt(o)), o)).catch(() => {
|
|
5365
|
+
this.dispatch(oi(r.uuid));
|
|
5366
|
+
}), [r, c];
|
|
5367
5367
|
}
|
|
5368
5368
|
bulkAdd(e, s) {
|
|
5369
5369
|
var l;
|
|
@@ -5374,7 +5374,7 @@ class YI extends w {
|
|
|
5374
5374
|
const m = _({
|
|
5375
5375
|
...h,
|
|
5376
5376
|
values: h.values,
|
|
5377
|
-
created_by: (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id,
|
|
5377
|
+
created_by: ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null,
|
|
5378
5378
|
submitted_at: i
|
|
5379
5379
|
});
|
|
5380
5380
|
a.push(m), u.push({
|
|
@@ -5487,7 +5487,7 @@ class YI extends w {
|
|
|
5487
5487
|
class JI extends w {
|
|
5488
5488
|
add(e) {
|
|
5489
5489
|
var c;
|
|
5490
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5490
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5491
5491
|
...e,
|
|
5492
5492
|
created_by: i,
|
|
5493
5493
|
submitted_at: a
|
|
@@ -5568,7 +5568,7 @@ class JI extends w {
|
|
|
5568
5568
|
class ZI extends w {
|
|
5569
5569
|
add(e) {
|
|
5570
5570
|
var c;
|
|
5571
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5571
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5572
5572
|
...e,
|
|
5573
5573
|
created_by: i,
|
|
5574
5574
|
submitted_at: a
|
|
@@ -5659,7 +5659,7 @@ class ZI extends w {
|
|
|
5659
5659
|
class XI extends w {
|
|
5660
5660
|
add(e) {
|
|
5661
5661
|
var c;
|
|
5662
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5662
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5663
5663
|
...e,
|
|
5664
5664
|
created_by: i,
|
|
5665
5665
|
submitted_at: a
|
|
@@ -5738,7 +5738,7 @@ class XI extends w {
|
|
|
5738
5738
|
class QI extends w {
|
|
5739
5739
|
add(e) {
|
|
5740
5740
|
var c;
|
|
5741
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5741
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5742
5742
|
...e,
|
|
5743
5743
|
created_by: i,
|
|
5744
5744
|
submitted_at: a
|
|
@@ -5815,7 +5815,7 @@ class QI extends w {
|
|
|
5815
5815
|
class eP extends w {
|
|
5816
5816
|
add(e) {
|
|
5817
5817
|
var c;
|
|
5818
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5818
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
5819
5819
|
...e,
|
|
5820
5820
|
created_by: i,
|
|
5821
5821
|
submitted_at: a
|
|
@@ -5914,26 +5914,26 @@ class tP extends Ye {
|
|
|
5914
5914
|
// NOTE: overriding the method from BaseAttachmentService since document attachments get vectorized
|
|
5915
5915
|
async bulkAdd(s) {
|
|
5916
5916
|
var h;
|
|
5917
|
-
const { store: i } = this.client, a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, n = (/* @__PURE__ */ new Date()).toISOString(), r = [], c = [], l = {}, o = {};
|
|
5917
|
+
const { store: i } = this.client, a = ((h = i.getState().userReducer.currentUser) == null ? void 0 : h.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = [], c = [], l = {}, o = {};
|
|
5918
5918
|
for (const m of s) {
|
|
5919
|
-
const { documentUuid: f, file: b } = m,
|
|
5920
|
-
|
|
5921
|
-
const
|
|
5919
|
+
const { documentUuid: f, file: b } = m, R = await this.getFilePayload(b);
|
|
5920
|
+
R.sha1 in l || (l[R.sha1] = R, o[R.sha1] = []);
|
|
5921
|
+
const P = this.buildOfflineAttachment({
|
|
5922
5922
|
file: b,
|
|
5923
|
-
file_sha1:
|
|
5923
|
+
file_sha1: R.sha1,
|
|
5924
5924
|
submitted_at: n,
|
|
5925
5925
|
created_by: a,
|
|
5926
5926
|
description: "",
|
|
5927
5927
|
modelUuid: f
|
|
5928
5928
|
});
|
|
5929
|
-
r.push(
|
|
5930
|
-
uuid:
|
|
5931
|
-
file_name:
|
|
5932
|
-
file_sha1:
|
|
5933
|
-
file_extension:
|
|
5934
|
-
description:
|
|
5929
|
+
r.push(P), c.push({
|
|
5930
|
+
uuid: P.uuid,
|
|
5931
|
+
file_name: P.file_name,
|
|
5932
|
+
file_sha1: P.file_sha1,
|
|
5933
|
+
file_extension: R.extension,
|
|
5934
|
+
description: P.description,
|
|
5935
5935
|
document: f
|
|
5936
|
-
}), o[
|
|
5936
|
+
}), o[R.sha1].push(P.uuid);
|
|
5937
5937
|
}
|
|
5938
5938
|
this.dispatch(this.addAttachments(r));
|
|
5939
5939
|
const u = this.enqueueRequest({
|
|
@@ -5951,9 +5951,9 @@ class tP extends Ye {
|
|
|
5951
5951
|
return u.then(({ attachments: m, presigned_urls: f }) => {
|
|
5952
5952
|
this.dispatch(this.updateAttachments(m));
|
|
5953
5953
|
const b = this.processPresignedUrls(f);
|
|
5954
|
-
for (const [
|
|
5955
|
-
|
|
5956
|
-
const k = o[
|
|
5954
|
+
for (const [R, P] of Object.entries(b))
|
|
5955
|
+
P.then(() => {
|
|
5956
|
+
const k = o[R];
|
|
5957
5957
|
for (const D of k)
|
|
5958
5958
|
this.makeReadable(D);
|
|
5959
5959
|
});
|
|
@@ -6011,7 +6011,7 @@ class tP extends Ye {
|
|
|
6011
6011
|
class sP extends w {
|
|
6012
6012
|
add(e) {
|
|
6013
6013
|
var c;
|
|
6014
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
6014
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
6015
6015
|
...e,
|
|
6016
6016
|
created_by: i,
|
|
6017
6017
|
submitted_at: a
|
|
@@ -6332,7 +6332,7 @@ class nP extends w {
|
|
|
6332
6332
|
class rP extends w {
|
|
6333
6333
|
add(e) {
|
|
6334
6334
|
var c;
|
|
6335
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
6335
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
6336
6336
|
...e,
|
|
6337
6337
|
created_by: i,
|
|
6338
6338
|
submitted_at: a
|
|
@@ -6413,7 +6413,7 @@ class rP extends w {
|
|
|
6413
6413
|
class cP extends w {
|
|
6414
6414
|
add(e) {
|
|
6415
6415
|
var c;
|
|
6416
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
6416
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
6417
6417
|
...e,
|
|
6418
6418
|
created_by: i,
|
|
6419
6419
|
submitted_at: a
|
|
@@ -6504,7 +6504,7 @@ class cP extends w {
|
|
|
6504
6504
|
class oP extends V {
|
|
6505
6505
|
async bulkAdd(e) {
|
|
6506
6506
|
var l;
|
|
6507
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
|
|
6507
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, a = {}, n = [], r = [];
|
|
6508
6508
|
for (const o of e) {
|
|
6509
6509
|
const { revisionUuid: u, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
|
|
6510
6510
|
f.sha1 in a || (a[f.sha1] = f);
|
|
@@ -6519,7 +6519,7 @@ class oP extends V {
|
|
|
6519
6519
|
field_identifier: h
|
|
6520
6520
|
});
|
|
6521
6521
|
n.push(b);
|
|
6522
|
-
const
|
|
6522
|
+
const R = {
|
|
6523
6523
|
uuid: b.uuid,
|
|
6524
6524
|
file_name: m.name,
|
|
6525
6525
|
field_identifier: h,
|
|
@@ -6527,7 +6527,7 @@ class oP extends V {
|
|
|
6527
6527
|
file_sha1: f.sha1,
|
|
6528
6528
|
form_revision: u
|
|
6529
6529
|
};
|
|
6530
|
-
r.push(
|
|
6530
|
+
r.push(R);
|
|
6531
6531
|
}
|
|
6532
6532
|
this.dispatch(Wl(n));
|
|
6533
6533
|
const c = this.enqueueRequest({
|
|
@@ -6570,26 +6570,26 @@ class oP extends V {
|
|
|
6570
6570
|
}
|
|
6571
6571
|
class dP extends V {
|
|
6572
6572
|
add(e) {
|
|
6573
|
-
var
|
|
6574
|
-
const { store: s } = this.client, a = (
|
|
6573
|
+
var l;
|
|
6574
|
+
const { store: s } = this.client, a = ((l = s.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = _({
|
|
6575
6575
|
...e,
|
|
6576
6576
|
created_by: a,
|
|
6577
|
-
submitted_at:
|
|
6577
|
+
submitted_at: n
|
|
6578
6578
|
});
|
|
6579
|
-
this.dispatch(wr(
|
|
6580
|
-
const
|
|
6579
|
+
this.dispatch(wr(r));
|
|
6580
|
+
const c = this.enqueueRequest({
|
|
6581
6581
|
description: "Create form revision",
|
|
6582
6582
|
method: d.POST,
|
|
6583
6583
|
url: "/form-revisions/",
|
|
6584
|
-
payload: v(
|
|
6584
|
+
payload: v(r),
|
|
6585
6585
|
blockers: [e.form],
|
|
6586
|
-
blocks: [
|
|
6586
|
+
blocks: [r.uuid]
|
|
6587
6587
|
});
|
|
6588
|
-
return
|
|
6589
|
-
this.dispatch(ep(
|
|
6588
|
+
return c.then((o) => {
|
|
6589
|
+
this.dispatch(ep(o));
|
|
6590
6590
|
}).catch(() => {
|
|
6591
|
-
this.dispatch(vr(
|
|
6592
|
-
}), [
|
|
6591
|
+
this.dispatch(vr(r.uuid));
|
|
6592
|
+
}), [r, c];
|
|
6593
6593
|
}
|
|
6594
6594
|
async refreshStore(e, s) {
|
|
6595
6595
|
const i = await this.enqueueRequest(
|
|
@@ -6612,7 +6612,7 @@ class dP extends V {
|
|
|
6612
6612
|
class uP extends V {
|
|
6613
6613
|
add(e, s) {
|
|
6614
6614
|
var o;
|
|
6615
|
-
const { store: i } = this.client, a = (/* @__PURE__ */ new Date()).toISOString(), n = (o = i.getState().userReducer.currentUser) == null ? void 0 : o.id, r = _({
|
|
6615
|
+
const { store: i } = this.client, a = (/* @__PURE__ */ new Date()).toISOString(), n = ((o = i.getState().userReducer.currentUser) == null ? void 0 : o.id) ?? null, r = _({
|
|
6616
6616
|
...e,
|
|
6617
6617
|
submitted_at: a,
|
|
6618
6618
|
created_by: n
|
|
@@ -6685,7 +6685,7 @@ class uP extends V {
|
|
|
6685
6685
|
class lP extends V {
|
|
6686
6686
|
async bulkAdd(e) {
|
|
6687
6687
|
var l;
|
|
6688
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
|
|
6688
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, a = {}, n = [], r = [];
|
|
6689
6689
|
for (const o of e) {
|
|
6690
6690
|
const { submissionUuid: u, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
|
|
6691
6691
|
f.sha1 in a || (a[f.sha1] = f);
|
|
@@ -6700,7 +6700,7 @@ class lP extends V {
|
|
|
6700
6700
|
field_identifier: h
|
|
6701
6701
|
});
|
|
6702
6702
|
n.push(b);
|
|
6703
|
-
const
|
|
6703
|
+
const R = {
|
|
6704
6704
|
uuid: b.uuid,
|
|
6705
6705
|
file_name: m.name,
|
|
6706
6706
|
file_sha1: f.sha1,
|
|
@@ -6708,7 +6708,7 @@ class lP extends V {
|
|
|
6708
6708
|
field_identifier: h,
|
|
6709
6709
|
form_submission: u
|
|
6710
6710
|
};
|
|
6711
|
-
r.push(
|
|
6711
|
+
r.push(R);
|
|
6712
6712
|
}
|
|
6713
6713
|
this.dispatch(Yt(n));
|
|
6714
6714
|
const c = this.enqueueRequest({
|
|
@@ -6779,22 +6779,22 @@ class lP extends V {
|
|
|
6779
6779
|
}
|
|
6780
6780
|
class pP extends V {
|
|
6781
6781
|
add(e) {
|
|
6782
|
-
var
|
|
6783
|
-
const { store: s } = this.client,
|
|
6782
|
+
var l;
|
|
6783
|
+
const { store: s } = this.client, a = ((l = s.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = _({
|
|
6784
6784
|
...e,
|
|
6785
|
-
created_by:
|
|
6786
|
-
submitted_at:
|
|
6787
|
-
}),
|
|
6785
|
+
created_by: a,
|
|
6786
|
+
submitted_at: n
|
|
6787
|
+
}), c = this.enqueueRequest({
|
|
6788
6788
|
description: "Add form submission",
|
|
6789
6789
|
method: d.POST,
|
|
6790
6790
|
url: "/form-submissions/",
|
|
6791
|
-
payload: v(
|
|
6791
|
+
payload: v(r),
|
|
6792
6792
|
blockers: [e.form_revision],
|
|
6793
|
-
blocks: [
|
|
6793
|
+
blocks: [r.uuid]
|
|
6794
6794
|
});
|
|
6795
|
-
return this.dispatch(Ji(
|
|
6796
|
-
this.dispatch(Zi(
|
|
6797
|
-
}), [
|
|
6795
|
+
return this.dispatch(Ji(r)), c.then((o) => (this.dispatch(qt(o)), o)).catch(() => {
|
|
6796
|
+
this.dispatch(Zi(r.uuid));
|
|
6797
|
+
}), [r, c];
|
|
6798
6798
|
}
|
|
6799
6799
|
update(e) {
|
|
6800
6800
|
const { store: s } = this.client, i = s.getState(), a = Xi(e.uuid)(i);
|
|
@@ -6868,7 +6868,7 @@ class pP extends V {
|
|
|
6868
6868
|
class hP extends V {
|
|
6869
6869
|
async add(e) {
|
|
6870
6870
|
var h;
|
|
6871
|
-
const { store: s } = this.client, { file: i, ...a } = e, n = (/* @__PURE__ */ new Date()).toISOString(), r = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.id, c = a.project, l = await this.getFilePayload(i), o = _({
|
|
6871
|
+
const { store: s } = this.client, { file: i, ...a } = e, n = (/* @__PURE__ */ new Date()).toISOString(), r = ((h = s.getState().userReducer.currentUser) == null ? void 0 : h.id) ?? null, c = a.project, l = await this.getFilePayload(i), o = _({
|
|
6872
6872
|
...a,
|
|
6873
6873
|
file_name: i.name,
|
|
6874
6874
|
file_sha1: l.sha1,
|
|
@@ -6906,29 +6906,29 @@ class hP extends V {
|
|
|
6906
6906
|
}
|
|
6907
6907
|
async bulkAdd(e, s) {
|
|
6908
6908
|
var h;
|
|
6909
|
-
const { store: i } = this.client, a = (/* @__PURE__ */ new Date()).toISOString(), n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, r = [], c = [], l = [], o = {};
|
|
6909
|
+
const { store: i } = this.client, a = (/* @__PURE__ */ new Date()).toISOString(), n = ((h = i.getState().userReducer.currentUser) == null ? void 0 : h.id) ?? null, r = [], c = [], l = [], o = {};
|
|
6910
6910
|
for (const m of e) {
|
|
6911
|
-
const { file: f, ...b } = m,
|
|
6912
|
-
|
|
6913
|
-
const
|
|
6911
|
+
const { file: f, ...b } = m, R = await this.getFilePayload(f);
|
|
6912
|
+
R.sha1 in o || (o[R.sha1] = R);
|
|
6913
|
+
const P = _({
|
|
6914
6914
|
...b,
|
|
6915
6915
|
file_name: f.name,
|
|
6916
|
-
file_sha1:
|
|
6916
|
+
file_sha1: R.sha1,
|
|
6917
6917
|
file: URL.createObjectURL(f),
|
|
6918
6918
|
submitted_at: a,
|
|
6919
6919
|
created_by: n,
|
|
6920
6920
|
project: s
|
|
6921
6921
|
});
|
|
6922
|
-
r.push(
|
|
6923
|
-
uuid:
|
|
6924
|
-
sha1:
|
|
6925
|
-
file_name:
|
|
6926
|
-
title:
|
|
6927
|
-
description:
|
|
6928
|
-
geo_marker:
|
|
6929
|
-
canvas_marker:
|
|
6930
|
-
direction:
|
|
6931
|
-
original_date:
|
|
6922
|
+
r.push(P), c.push(P.uuid), l.push({
|
|
6923
|
+
uuid: P.uuid,
|
|
6924
|
+
sha1: P.file_sha1,
|
|
6925
|
+
file_name: P.file_name,
|
|
6926
|
+
title: P.title,
|
|
6927
|
+
description: P.description,
|
|
6928
|
+
geo_marker: P.geo_marker,
|
|
6929
|
+
canvas_marker: P.canvas_marker,
|
|
6930
|
+
direction: P.direction,
|
|
6931
|
+
original_date: P.original_date
|
|
6932
6932
|
});
|
|
6933
6933
|
}
|
|
6934
6934
|
this.dispatch(Pp(r));
|
|
@@ -7008,7 +7008,7 @@ class hP extends V {
|
|
|
7008
7008
|
class mP extends w {
|
|
7009
7009
|
add(e) {
|
|
7010
7010
|
var c;
|
|
7011
|
-
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), a = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, n = _({
|
|
7011
|
+
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), a = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, n = _({
|
|
7012
7012
|
...e,
|
|
7013
7013
|
submitted_at: i,
|
|
7014
7014
|
created_by: a
|
|
@@ -7208,10 +7208,9 @@ class yP extends Ye {
|
|
|
7208
7208
|
}
|
|
7209
7209
|
class AP extends w {
|
|
7210
7210
|
add(e) {
|
|
7211
|
-
var n;
|
|
7212
7211
|
const { store: s } = this.client, i = _({
|
|
7213
7212
|
...e,
|
|
7214
|
-
author:
|
|
7213
|
+
author: s.getState().userReducer.currentUser.id,
|
|
7215
7214
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
7216
7215
|
});
|
|
7217
7216
|
this.dispatch(ua(i));
|
|
@@ -7285,7 +7284,7 @@ class AP extends w {
|
|
|
7285
7284
|
class TP extends w {
|
|
7286
7285
|
add(e) {
|
|
7287
7286
|
var l;
|
|
7288
|
-
const { store: s } = this.client, i = s.getState(), a = (/* @__PURE__ */ new Date()).toISOString(), n = (l = i.userReducer.currentUser) == null ? void 0 : l.id, r = _({
|
|
7287
|
+
const { store: s } = this.client, i = s.getState(), a = (/* @__PURE__ */ new Date()).toISOString(), n = ((l = i.userReducer.currentUser) == null ? void 0 : l.id) ?? null, r = _({
|
|
7289
7288
|
...e,
|
|
7290
7289
|
submitted_at: a,
|
|
7291
7290
|
created_by: n
|
|
@@ -7368,7 +7367,7 @@ class TP extends w {
|
|
|
7368
7367
|
}
|
|
7369
7368
|
}
|
|
7370
7369
|
const r = _({
|
|
7371
|
-
created_by: (l = s.userReducer.currentUser) == null ? void 0 : l.id,
|
|
7370
|
+
created_by: ((l = s.userReducer.currentUser) == null ? void 0 : l.id) ?? null,
|
|
7372
7371
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7373
7372
|
issue: i.uuid,
|
|
7374
7373
|
changes: n
|
|
@@ -7495,7 +7494,7 @@ class bP extends Ye {
|
|
|
7495
7494
|
class SP extends V {
|
|
7496
7495
|
async bulkAdd(e) {
|
|
7497
7496
|
var l;
|
|
7498
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
|
|
7497
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, a = {}, n = [], r = [];
|
|
7499
7498
|
for (const o of e) {
|
|
7500
7499
|
const { fieldsRevisionUuid: u, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
|
|
7501
7500
|
f.sha1 in a || (a[f.sha1] = f);
|
|
@@ -7510,7 +7509,7 @@ class SP extends V {
|
|
|
7510
7509
|
field_identifier: h
|
|
7511
7510
|
});
|
|
7512
7511
|
n.push(b);
|
|
7513
|
-
const
|
|
7512
|
+
const R = {
|
|
7514
7513
|
uuid: b.uuid,
|
|
7515
7514
|
file_name: m.name,
|
|
7516
7515
|
file_extension: f.extension,
|
|
@@ -7518,7 +7517,7 @@ class SP extends V {
|
|
|
7518
7517
|
file_sha1: f.sha1,
|
|
7519
7518
|
fields_revision: u
|
|
7520
7519
|
};
|
|
7521
|
-
r.push(
|
|
7520
|
+
r.push(R);
|
|
7522
7521
|
}
|
|
7523
7522
|
this.dispatch(Th(n));
|
|
7524
7523
|
const c = this.enqueueRequest({
|
|
@@ -7564,7 +7563,7 @@ class SP extends V {
|
|
|
7564
7563
|
class gP extends w {
|
|
7565
7564
|
add(e) {
|
|
7566
7565
|
var c;
|
|
7567
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
7566
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
7568
7567
|
...e,
|
|
7569
7568
|
created_by: i,
|
|
7570
7569
|
submitted_at: a
|
|
@@ -7605,7 +7604,7 @@ class gP extends w {
|
|
|
7605
7604
|
class _P extends V {
|
|
7606
7605
|
async bulkAdd(e) {
|
|
7607
7606
|
var l;
|
|
7608
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = {}, n = [], r = [];
|
|
7607
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = ((l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, a = {}, n = [], r = [];
|
|
7609
7608
|
for (const o of e) {
|
|
7610
7609
|
const { fieldValuesUuid: u, fieldIdentifier: h, file: m } = o, f = await this.getFilePayload(m);
|
|
7611
7610
|
f.sha1 in a || (a[f.sha1] = f);
|
|
@@ -7620,7 +7619,7 @@ class _P extends V {
|
|
|
7620
7619
|
field_identifier: h
|
|
7621
7620
|
});
|
|
7622
7621
|
n.push(b);
|
|
7623
|
-
const
|
|
7622
|
+
const R = {
|
|
7624
7623
|
uuid: b.uuid,
|
|
7625
7624
|
file_name: m.name,
|
|
7626
7625
|
file_sha1: f.sha1,
|
|
@@ -7628,7 +7627,7 @@ class _P extends V {
|
|
|
7628
7627
|
field_identifier: h,
|
|
7629
7628
|
field_values: u
|
|
7630
7629
|
};
|
|
7631
|
-
r.push(
|
|
7630
|
+
r.push(R);
|
|
7632
7631
|
}
|
|
7633
7632
|
this.dispatch(Zt(n));
|
|
7634
7633
|
const c = this.enqueueRequest({
|
|
@@ -7700,22 +7699,22 @@ class _P extends V {
|
|
|
7700
7699
|
}
|
|
7701
7700
|
class IP extends w {
|
|
7702
7701
|
add(e) {
|
|
7703
|
-
var
|
|
7704
|
-
const { store: s } = this.client,
|
|
7702
|
+
var l;
|
|
7703
|
+
const { store: s } = this.client, a = ((l = s.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = _({
|
|
7705
7704
|
...e,
|
|
7706
|
-
created_by:
|
|
7707
|
-
submitted_at:
|
|
7708
|
-
}),
|
|
7705
|
+
created_by: a,
|
|
7706
|
+
submitted_at: n
|
|
7707
|
+
}), c = this.enqueueRequest({
|
|
7709
7708
|
description: "Add issue type field values",
|
|
7710
7709
|
method: d.POST,
|
|
7711
7710
|
url: "/issue-type-field-values/",
|
|
7712
|
-
payload: v(
|
|
7711
|
+
payload: v(r),
|
|
7713
7712
|
blockers: [e.issue, e.fields_revision],
|
|
7714
|
-
blocks: [
|
|
7713
|
+
blocks: [r.uuid]
|
|
7715
7714
|
});
|
|
7716
|
-
return this.dispatch(_a(
|
|
7717
|
-
this.dispatch(Ia(
|
|
7718
|
-
}), [
|
|
7715
|
+
return this.dispatch(_a(r)), c.then((o) => (this.dispatch(bt(o)), o)).catch(() => {
|
|
7716
|
+
this.dispatch(Ia(r.uuid));
|
|
7717
|
+
}), [r, c];
|
|
7719
7718
|
}
|
|
7720
7719
|
update(e) {
|
|
7721
7720
|
const { store: s } = this.client, i = s.getState(), a = Pa(e.uuid)(i);
|
|
@@ -7794,7 +7793,7 @@ class IP extends w {
|
|
|
7794
7793
|
class PP extends w {
|
|
7795
7794
|
add(e) {
|
|
7796
7795
|
var c;
|
|
7797
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
7796
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
7798
7797
|
...e,
|
|
7799
7798
|
created_by: i,
|
|
7800
7799
|
submitted_at: a
|
|
@@ -7875,7 +7874,7 @@ class PP extends w {
|
|
|
7875
7874
|
class OP extends w {
|
|
7876
7875
|
add(e) {
|
|
7877
7876
|
var c;
|
|
7878
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
7877
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
7879
7878
|
...e,
|
|
7880
7879
|
created_by: i,
|
|
7881
7880
|
submitted_at: a
|
|
@@ -7965,25 +7964,25 @@ class OP extends w {
|
|
|
7965
7964
|
}
|
|
7966
7965
|
class FP extends w {
|
|
7967
7966
|
add(e) {
|
|
7968
|
-
var
|
|
7969
|
-
const { store: s } = this.client,
|
|
7967
|
+
var l;
|
|
7968
|
+
const { store: s } = this.client, a = ((l = s.getState().userReducer.currentUser) == null ? void 0 : l.id) ?? null, n = (/* @__PURE__ */ new Date()).toISOString(), r = _({
|
|
7970
7969
|
...e,
|
|
7971
|
-
submitted_at:
|
|
7972
|
-
created_by:
|
|
7970
|
+
submitted_at: n,
|
|
7971
|
+
created_by: a
|
|
7973
7972
|
});
|
|
7974
|
-
this.dispatch(Wh(
|
|
7975
|
-
const
|
|
7973
|
+
this.dispatch(Wh(r));
|
|
7974
|
+
const c = this.enqueueRequest({
|
|
7976
7975
|
method: d.POST,
|
|
7977
7976
|
url: "/issue-types/",
|
|
7978
|
-
payload: v(
|
|
7977
|
+
payload: v(r),
|
|
7979
7978
|
blockers: [],
|
|
7980
|
-
blocks: [
|
|
7979
|
+
blocks: [r.uuid]
|
|
7981
7980
|
});
|
|
7982
|
-
return
|
|
7983
|
-
this.dispatch(_t(
|
|
7981
|
+
return c.then((o) => {
|
|
7982
|
+
this.dispatch(_t(o));
|
|
7984
7983
|
}).catch(() => {
|
|
7985
|
-
this.dispatch(Da(
|
|
7986
|
-
}), [
|
|
7984
|
+
this.dispatch(Da(r.uuid));
|
|
7985
|
+
}), [r, c];
|
|
7987
7986
|
}
|
|
7988
7987
|
update(e) {
|
|
7989
7988
|
const { store: s } = this.client, i = s.getState(), a = za(e.uuid)(i);
|
|
@@ -8043,7 +8042,7 @@ class FP extends w {
|
|
|
8043
8042
|
class RP extends w {
|
|
8044
8043
|
add(e) {
|
|
8045
8044
|
var c;
|
|
8046
|
-
const { store: s } = this.client, i = (c = s.getState().userReducer.currentUser) == null ? void 0 : c.id, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
8045
|
+
const { store: s } = this.client, i = ((c = s.getState().userReducer.currentUser) == null ? void 0 : c.id) ?? null, a = (/* @__PURE__ */ new Date()).toISOString(), n = _({
|
|
8047
8046
|
...e,
|
|
8048
8047
|
created_by: i,
|
|
8049
8048
|
submitted_at: a
|
|
@@ -8381,7 +8380,7 @@ class MP extends w {
|
|
|
8381
8380
|
var n;
|
|
8382
8381
|
const { store: s } = this.client, i = _({
|
|
8383
8382
|
...e,
|
|
8384
|
-
created_by: (n = s.getState().userReducer.currentUser) == null ? void 0 : n.id
|
|
8383
|
+
created_by: ((n = s.getState().userReducer.currentUser) == null ? void 0 : n.id) ?? null
|
|
8385
8384
|
});
|
|
8386
8385
|
this.dispatch(Ya(i));
|
|
8387
8386
|
const a = this.enqueueRequest({
|
|
@@ -8400,7 +8399,7 @@ class MP extends w {
|
|
|
8400
8399
|
}
|
|
8401
8400
|
bulkAdd(e) {
|
|
8402
8401
|
var r;
|
|
8403
|
-
const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = e.map((c) => _({ ...c, created_by: i }));
|
|
8402
|
+
const { store: s } = this.client, i = ((r = s.getState().userReducer.currentUser) == null ? void 0 : r.id) ?? null, a = e.map((c) => _({ ...c, created_by: i }));
|
|
8404
8403
|
this.dispatch(Ac(a));
|
|
8405
8404
|
const n = this.enqueueRequest({
|
|
8406
8405
|
description: "Add project accesses",
|
|
@@ -8693,7 +8692,7 @@ class DP extends w {
|
|
|
8693
8692
|
var n;
|
|
8694
8693
|
const { store: s } = this.client, i = _({
|
|
8695
8694
|
...e,
|
|
8696
|
-
created_by: (n = s.getState().userReducer.currentUser) == null ? void 0 : n.id
|
|
8695
|
+
created_by: ((n = s.getState().userReducer.currentUser) == null ? void 0 : n.id) ?? null
|
|
8697
8696
|
});
|
|
8698
8697
|
this.dispatch(lf(i));
|
|
8699
8698
|
const a = this.enqueueRequest({
|
|
@@ -8712,7 +8711,7 @@ class DP extends w {
|
|
|
8712
8711
|
}
|
|
8713
8712
|
bulkAdd(e) {
|
|
8714
8713
|
var r;
|
|
8715
|
-
const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = e.map((c) => _({ ...c, created_by: i }));
|
|
8714
|
+
const { store: s } = this.client, i = ((r = s.getState().userReducer.currentUser) == null ? void 0 : r.id) ?? null, a = e.map((c) => _({ ...c, created_by: i }));
|
|
8716
8715
|
this.dispatch(pf(a));
|
|
8717
8716
|
const n = this.enqueueRequest({
|
|
8718
8717
|
description: "Create team memberships",
|
|
@@ -8769,7 +8768,7 @@ class zP extends w {
|
|
|
8769
8768
|
const { store: s } = this.client, i = _({
|
|
8770
8769
|
...e,
|
|
8771
8770
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8772
|
-
created_by: (n = s.getState().userReducer.currentUser) == null ? void 0 : n.id
|
|
8771
|
+
created_by: ((n = s.getState().userReducer.currentUser) == null ? void 0 : n.id) ?? null
|
|
8773
8772
|
});
|
|
8774
8773
|
this.dispatch(bf(i));
|
|
8775
8774
|
const a = this.enqueueRequest({
|
|
@@ -9436,7 +9435,7 @@ export {
|
|
|
9436
9435
|
fr as categorySlice,
|
|
9437
9436
|
kb as clearTokens,
|
|
9438
9437
|
vy as constructUploadedFilePayloads,
|
|
9439
|
-
|
|
9438
|
+
I as createModelAdapter,
|
|
9440
9439
|
Fm as createOfflineAction,
|
|
9441
9440
|
v as createPayload,
|
|
9442
9441
|
_y as createSelectionAdapter,
|