@overmap-ai/core 1.0.74-form-changes.3 → 1.0.74-form-changes.4
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 +917 -916
- package/dist/overmap-core.umd.cjs +7 -7
- package/dist/store/store.d.ts +1 -0
- package/dist/typings/models/store.d.ts +1 -0
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -19,7 +19,7 @@ import { DepGraph as Xa } from "dependency-graph";
|
|
|
19
19
|
import "@tiptap/core";
|
|
20
20
|
const Za = Object.freeze([]), ec = Object.freeze({});
|
|
21
21
|
var Ui = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(Ui || {}), $i = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))($i || {}), u = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(u || {}), tc = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(tc || {}), Vi = /* @__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))(Vi || {}), Gi = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(Gi || {}), w = /* @__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))(w || {}), sc = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(sc || {}), ic = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(ic || {}), nc = /* @__PURE__ */ ((t) => (t[t.ACTIVE = 0] = "ACTIVE", t[t.PAUSED = 2] = "PAUSED", t[t.CANCELLED = 4] = "CANCELLED", t[t.INACTIVE = 6] = "INACTIVE", t[t.PAST_DUE = 8] = "PAST_DUE", t))(nc || {});
|
|
22
|
-
const
|
|
22
|
+
const am = Gi.BACKLOG, cm = Vi.MEDIUM, ac = 6e4;
|
|
23
23
|
function _(t) {
|
|
24
24
|
return {
|
|
25
25
|
addOne: (h, m) => {
|
|
@@ -72,7 +72,7 @@ function _(t) {
|
|
|
72
72
|
})
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function rm() {
|
|
76
76
|
return {
|
|
77
77
|
initializeSelection: (l, r) => {
|
|
78
78
|
l.selection = Array.from(new Set(r.payload));
|
|
@@ -146,17 +146,17 @@ class cc {
|
|
|
146
146
|
throw new Error("`finally` not implemented");
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
const
|
|
149
|
+
const om = (t) => ({
|
|
150
150
|
type: "Point",
|
|
151
151
|
coordinates: t
|
|
152
|
-
}),
|
|
152
|
+
}), dm = (t) => ({
|
|
153
153
|
type: "MultiPoint",
|
|
154
154
|
coordinates: t
|
|
155
|
-
}),
|
|
155
|
+
}), um = (t, e) => t[0] === e[0] && t[1] === e[1];
|
|
156
156
|
let lt = !1;
|
|
157
157
|
const rc = "";
|
|
158
158
|
["true", "1"].includes(rc.toLowerCase()) && (lt = !0);
|
|
159
|
-
function
|
|
159
|
+
function lm(t, e) {
|
|
160
160
|
if (t === e) return !0;
|
|
161
161
|
if (typeof t != typeof e)
|
|
162
162
|
return !1;
|
|
@@ -176,7 +176,7 @@ function Li(t) {
|
|
|
176
176
|
return s in e ? (lt && console.debug(`Memoization debug: Using memorized return value for ${t.toString()}(`, s, ")"), e[s]) : (lt && console.debug(`Memoization debug: Cache miss! Memoizing ${t.toString()}(`, s, ")"), e[s] = t.apply(this, s));
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function hm(t, e) {
|
|
180
180
|
if (t.length !== e.length) return !1;
|
|
181
181
|
for (let s = 0; s < t.length; s++)
|
|
182
182
|
if (t[s] !== e[s]) return !1;
|
|
@@ -186,7 +186,7 @@ const b = (t) => t.length === 0 ? Za : t, Ue = (t) => Object.keys(t).length ===
|
|
|
186
186
|
if (!t) return "";
|
|
187
187
|
const e = new Date(t), s = e.getFullYear() === St.getFullYear(), i = { day: "numeric", month: "short" };
|
|
188
188
|
return s || (i.year = "numeric"), e.toLocaleDateString([], i);
|
|
189
|
-
}), dc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), uc = 1e3 * 86400, St = /* @__PURE__ */ new Date(),
|
|
189
|
+
}), dc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), uc = 1e3 * 86400, St = /* @__PURE__ */ new Date(), mm = (t) => new Date(t).toDateString() === St.toDateString(), pm = Li((t, e, s) => {
|
|
190
190
|
const i = Math.round((new Date(t).getTime() - St.getTime()) / uc);
|
|
191
191
|
return i < e || i > s ? oc(t) : dc.format(i, "days");
|
|
192
192
|
});
|
|
@@ -216,7 +216,7 @@ function De(t) {
|
|
|
216
216
|
}, i.readAsArrayBuffer(t);
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function fm(t) {
|
|
220
220
|
if (!t.name || !t.type || !t.size) {
|
|
221
221
|
const e = "File has no name, type, and/or size";
|
|
222
222
|
throw new Error(e);
|
|
@@ -226,11 +226,11 @@ function pm(t) {
|
|
|
226
226
|
function hc(t, e) {
|
|
227
227
|
return new File([t], e, { type: t.type });
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Am(t, e) {
|
|
230
230
|
const s = document.createElement("a");
|
|
231
231
|
s.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(e)), s.setAttribute("download", t), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const ym = async (t) => {
|
|
234
234
|
const e = {};
|
|
235
235
|
for (const s of t) {
|
|
236
236
|
const i = await De(s);
|
|
@@ -242,19 +242,19 @@ const Am = async (t) => {
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
return Object.values(e);
|
|
245
|
-
}, mc = async (t) => (await fetch(t)).blob(),
|
|
245
|
+
}, mc = async (t) => (await fetch(t)).blob(), bm = (t) => new Promise((e, s) => {
|
|
246
246
|
const i = new FileReader();
|
|
247
247
|
i.onloadend = () => {
|
|
248
248
|
var n;
|
|
249
249
|
e(((n = i.result) == null ? void 0 : n.toString()) || "");
|
|
250
250
|
}, i.readAsDataURL(t);
|
|
251
251
|
});
|
|
252
|
-
function
|
|
252
|
+
function gm(t) {
|
|
253
253
|
const e = new Blob([t]);
|
|
254
254
|
Na(e, t.name);
|
|
255
255
|
}
|
|
256
256
|
const Mt = {};
|
|
257
|
-
function
|
|
257
|
+
function Sm(t, e, s, ...i) {
|
|
258
258
|
const n = Mt[t];
|
|
259
259
|
let a = !1;
|
|
260
260
|
n ? n[e] || (n[e] = !0, a = !0) : (Mt[t] = { [e]: !0 }, a = !0), a && console[s](...i);
|
|
@@ -269,7 +269,7 @@ function fc(t) {
|
|
|
269
269
|
e[s.uuid] = s;
|
|
270
270
|
return e;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Tm(t, e = void 0, s = 255) {
|
|
273
273
|
let i = t.replace(/[^a-z0-9_\-.]/gi, "_").replace(/_{2,}/g, "_");
|
|
274
274
|
if (!e) {
|
|
275
275
|
const a = t.split(".");
|
|
@@ -279,13 +279,13 @@ function Sm(t, e = void 0, s = 255) {
|
|
|
279
279
|
const n = e ? e.length : 0;
|
|
280
280
|
return i.length + n > s && (i = i.slice(0, s - n) + (e || "")), i;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function Rm(t) {
|
|
283
283
|
return t.toLowerCase().replace(" ", "-");
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function _m(t, e = !1) {
|
|
286
286
|
return t.normalize("NFKD").toLowerCase().replace(/[^\w\s-]/g, "").trim().replace(/[-\s]+/g, e ? "_" : "-");
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Om(t, e) {
|
|
289
289
|
if (t.length <= e)
|
|
290
290
|
return t;
|
|
291
291
|
const s = t.slice(0, e - 1);
|
|
@@ -295,10 +295,10 @@ const y = (t) => (e) => (s) => t(s, e);
|
|
|
295
295
|
function Ac(t, e, s) {
|
|
296
296
|
return s.findIndex((i) => i.uuid === t.uuid) === e;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Im(t, e, s) {
|
|
299
299
|
return s.findIndex((i) => i.file_sha1 === t.file_sha1) === e;
|
|
300
300
|
}
|
|
301
|
-
const
|
|
301
|
+
const Pm = /^.+@.+\..+$/;
|
|
302
302
|
function F(t) {
|
|
303
303
|
const e = { ...t };
|
|
304
304
|
for (const s of [...pc, "created_by"])
|
|
@@ -317,10 +317,10 @@ const qe = _(
|
|
|
317
317
|
setConversation: qe.setOne,
|
|
318
318
|
updateConversation: qe.updateOne
|
|
319
319
|
}
|
|
320
|
-
}), { initializeConversations: yc, addConversation: bc, setConversation: gc, updateConversation: Sc } = Bi.actions, Ni = (t) => t.agentsReducer.instances,
|
|
320
|
+
}), { initializeConversations: yc, addConversation: bc, setConversation: gc, updateConversation: Sc } = Bi.actions, Ni = (t) => t.agentsReducer.instances, Fm = p(
|
|
321
321
|
[Ni],
|
|
322
322
|
(t) => Object.values(t)
|
|
323
|
-
),
|
|
323
|
+
), vm = y(
|
|
324
324
|
p(
|
|
325
325
|
[Ni, (t, e) => e],
|
|
326
326
|
(t, e) => t[e]
|
|
@@ -344,11 +344,11 @@ const qe = _(
|
|
|
344
344
|
}
|
|
345
345
|
}), {
|
|
346
346
|
initializeAssetAttachments: xt,
|
|
347
|
-
addAssetAttachment:
|
|
347
|
+
addAssetAttachment: wm,
|
|
348
348
|
addAssetAttachments: Wi,
|
|
349
349
|
setAssetAttachment: Rc,
|
|
350
|
-
setAssetAttachments:
|
|
351
|
-
updateAssetAttachment:
|
|
350
|
+
setAssetAttachments: Em,
|
|
351
|
+
updateAssetAttachment: km,
|
|
352
352
|
updateAssetAttachments: _c,
|
|
353
353
|
deleteAssetAttachment: Oc,
|
|
354
354
|
deleteAssetAttachments: Ki
|
|
@@ -377,18 +377,18 @@ const qe = _(
|
|
|
377
377
|
}
|
|
378
378
|
}), {
|
|
379
379
|
initializeAssetProcedureAttachments: Ec,
|
|
380
|
-
addAssetProcedureAttachment:
|
|
380
|
+
addAssetProcedureAttachment: qm,
|
|
381
381
|
addAssetProcedureAttachments: kc,
|
|
382
382
|
setAssetProcedureAttachment: qc,
|
|
383
|
-
setAssetProcedureAttachments:
|
|
384
|
-
updateAssetProcedureAttachment:
|
|
383
|
+
setAssetProcedureAttachments: jm,
|
|
384
|
+
updateAssetProcedureAttachment: Mm,
|
|
385
385
|
updateAssetProcedureAttachments: jc,
|
|
386
386
|
deleteAssetProcedureAttachment: Mc,
|
|
387
387
|
deleteAssetProcedureAttachments: Cc
|
|
388
388
|
} = Yi.actions, Dc = (t) => t.assetProcedureAttachmentReducer.instances, xc = p(
|
|
389
389
|
[Dc],
|
|
390
390
|
(t) => Object.values(t)
|
|
391
|
-
), zc = (t) => (e) => e.assetProcedureAttachmentReducer.instances[t],
|
|
391
|
+
), zc = (t) => (e) => e.assetProcedureAttachmentReducer.instances[t], Cm = y(
|
|
392
392
|
p(
|
|
393
393
|
[
|
|
394
394
|
xc,
|
|
@@ -398,7 +398,7 @@ const qe = _(
|
|
|
398
398
|
t.filter(({ asset_procedure: s }) => e === s)
|
|
399
399
|
)
|
|
400
400
|
)
|
|
401
|
-
),
|
|
401
|
+
), Uc = Yi.reducer, x = _((t) => t.uuid), Ut = x.getInitialState({}), Ji = S({
|
|
402
402
|
name: "assetProcedureFieldsAttachments",
|
|
403
403
|
initialState: Ut,
|
|
404
404
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ut)),
|
|
@@ -414,21 +414,21 @@ const qe = _(
|
|
|
414
414
|
deleteAssetProcedureFieldsAttachments: x.deleteMany
|
|
415
415
|
}
|
|
416
416
|
}), {
|
|
417
|
-
initializeAssetProcedureFieldsAttachments:
|
|
417
|
+
initializeAssetProcedureFieldsAttachments: $c,
|
|
418
418
|
addAssetProcedureFieldsAttachment: Dm,
|
|
419
|
-
addAssetProcedureFieldsAttachments:
|
|
419
|
+
addAssetProcedureFieldsAttachments: Vc,
|
|
420
420
|
setAssetProcedureFieldsAttachment: xm,
|
|
421
421
|
setAssetProcedureFieldsAttachments: zm,
|
|
422
422
|
updateAssetProcedureFieldsAttachment: Um,
|
|
423
|
-
updateAssetProcedureFieldsAttachments:
|
|
423
|
+
updateAssetProcedureFieldsAttachments: Gc,
|
|
424
424
|
deleteAssetProcedureFieldsAttachment: $m,
|
|
425
|
-
deleteAssetProcedureFieldsAttachments:
|
|
426
|
-
} = Ji.actions,
|
|
427
|
-
[
|
|
425
|
+
deleteAssetProcedureFieldsAttachments: Lc
|
|
426
|
+
} = Ji.actions, Bc = (t) => t.assetProcedureFieldsAttachmentReducer.instances, Nc = p(
|
|
427
|
+
[Bc],
|
|
428
428
|
(t) => Object.values(t)
|
|
429
429
|
), Vm = y(
|
|
430
|
-
p([
|
|
431
|
-
), Gm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t],
|
|
430
|
+
p([Nc, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
|
|
431
|
+
), Gm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Hc = Ji.reducer, z = _(
|
|
432
432
|
(t) => t.uuid
|
|
433
433
|
), $t = z.getInitialState({}), Qi = S({
|
|
434
434
|
name: "assetProcedureFields",
|
|
@@ -446,23 +446,23 @@ const qe = _(
|
|
|
446
446
|
deleteAssetProcedureFieldsMany: z.deleteMany
|
|
447
447
|
}
|
|
448
448
|
}), {
|
|
449
|
-
initializeAssetProcedureFields:
|
|
450
|
-
addAssetProcedureFields:
|
|
449
|
+
initializeAssetProcedureFields: Wc,
|
|
450
|
+
addAssetProcedureFields: Kc,
|
|
451
451
|
addAssetProcedureFieldsMany: Lm,
|
|
452
452
|
setAssetProcedureFields: Bm,
|
|
453
453
|
setAssetProcedureFieldsMany: Nm,
|
|
454
|
-
updateAssetProcedureFields:
|
|
454
|
+
updateAssetProcedureFields: Yc,
|
|
455
455
|
updateAssetProcedureFieldsMany: Hm,
|
|
456
|
-
deleteAssetProcedureFields:
|
|
456
|
+
deleteAssetProcedureFields: Jc,
|
|
457
457
|
deleteAssetProcedureFieldsMany: Wm
|
|
458
|
-
} = Qi.actions,
|
|
458
|
+
} = Qi.actions, Qc = (t) => t.assetProcedureFieldsReducer.instances, Xi = p([Qc], (t) => Object.values(t)), Km = y(
|
|
459
459
|
p(
|
|
460
460
|
[Xi, (t, e) => e],
|
|
461
461
|
(t, e) => b(t.filter((s) => s.asset_procedure === e))
|
|
462
462
|
)
|
|
463
463
|
), Ym = y(
|
|
464
464
|
p([Xi, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
465
|
-
), Jm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t],
|
|
465
|
+
), Jm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], Xc = Qi.reducer, U = _((t) => t.uuid), Vt = U.getInitialState({}), Zi = S({
|
|
466
466
|
name: "assetProcedureFieldValuesAttachments",
|
|
467
467
|
initialState: Vt,
|
|
468
468
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vt)),
|
|
@@ -478,19 +478,19 @@ const qe = _(
|
|
|
478
478
|
deleteAssetProcedureFieldValuesAttachments: U.deleteMany
|
|
479
479
|
}
|
|
480
480
|
}), {
|
|
481
|
-
initializeAssetProcedureFieldValuesAttachments:
|
|
481
|
+
initializeAssetProcedureFieldValuesAttachments: Zc,
|
|
482
482
|
addAssetProcedureFieldValuesAttachment: Qm,
|
|
483
483
|
addAssetProcedureFieldValuesAttachments: ht,
|
|
484
484
|
setAssetProcedureFieldValuesAttachment: Xm,
|
|
485
485
|
setAssetProcedureFieldValuesAttachments: Zm,
|
|
486
486
|
updateAssetProcedureFieldValuesAttachment: ep,
|
|
487
|
-
updateAssetProcedureFieldValuesAttachments:
|
|
487
|
+
updateAssetProcedureFieldValuesAttachments: er,
|
|
488
488
|
deleteAssetProcedureFieldValuesAttachment: tp,
|
|
489
489
|
deleteAssetProcedureFieldValuesAttachments: mt
|
|
490
|
-
} = Zi.actions, en = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances,
|
|
490
|
+
} = Zi.actions, en = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, tr = p(
|
|
491
491
|
[en],
|
|
492
492
|
(t) => Object.values(t)
|
|
493
|
-
), sp = (t) => (e) => e.assetProcedureFieldValuesAttachmentReducer.instances[t],
|
|
493
|
+
), sp = (t) => (e) => e.assetProcedureFieldValuesAttachmentReducer.instances[t], sr = y(
|
|
494
494
|
p(
|
|
495
495
|
[
|
|
496
496
|
en,
|
|
@@ -501,12 +501,12 @@ const qe = _(
|
|
|
501
501
|
return b(Object.values(t).filter((i) => s.has(i.uuid)));
|
|
502
502
|
}
|
|
503
503
|
)
|
|
504
|
-
),
|
|
504
|
+
), ir = y(
|
|
505
505
|
p(
|
|
506
|
-
[
|
|
506
|
+
[tr, (t, e) => e],
|
|
507
507
|
(t, e) => b(t.filter((s) => s.field_values === e))
|
|
508
508
|
)
|
|
509
|
-
),
|
|
509
|
+
), nr = Zi.reducer, $ = _((t) => t.uuid), Gt = $.getInitialState({}), tn = S({
|
|
510
510
|
name: "assetProcedureFieldValues",
|
|
511
511
|
initialState: Gt,
|
|
512
512
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gt)),
|
|
@@ -522,23 +522,23 @@ const qe = _(
|
|
|
522
522
|
deleteAssetProcedureFieldValuesMany: $.deleteMany
|
|
523
523
|
}
|
|
524
524
|
}), {
|
|
525
|
-
initializeAssetProcedureFieldValues:
|
|
525
|
+
initializeAssetProcedureFieldValues: ar,
|
|
526
526
|
addAssetProcedureFieldValues: Lt,
|
|
527
|
-
addAssetProcedureFieldValuesMany:
|
|
527
|
+
addAssetProcedureFieldValuesMany: cr,
|
|
528
528
|
setAssetProcedureFieldValues: ip,
|
|
529
529
|
setAssetProcedureFieldValuesMany: np,
|
|
530
530
|
updateAssetProcedureFieldValues: Le,
|
|
531
|
-
updateAssetProcedureFieldValuesMany:
|
|
531
|
+
updateAssetProcedureFieldValuesMany: rr,
|
|
532
532
|
deleteAssetProcedureFieldValues: Bt,
|
|
533
|
-
deleteAssetProcedureFieldValuesMany:
|
|
534
|
-
} = tn.actions,
|
|
535
|
-
[
|
|
533
|
+
deleteAssetProcedureFieldValuesMany: or
|
|
534
|
+
} = tn.actions, dr = (t) => t.assetProcedureFieldValuesReducer.instances, sn = p(
|
|
535
|
+
[dr],
|
|
536
536
|
(t) => Object.values(t)
|
|
537
537
|
), ap = y(
|
|
538
538
|
p([sn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
|
|
539
539
|
), cp = y(
|
|
540
540
|
p([sn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure_instance === e)))
|
|
541
|
-
), Nt = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t],
|
|
541
|
+
), Nt = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], ur = tn.reducer, V = _((t) => t.uuid), Ht = V.getInitialState({}), nn = S({
|
|
542
542
|
name: "assetProcedureInstances",
|
|
543
543
|
initialState: Ht,
|
|
544
544
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ht)),
|
|
@@ -554,19 +554,19 @@ const qe = _(
|
|
|
554
554
|
deleteAssetProcedureInstances: V.deleteMany
|
|
555
555
|
}
|
|
556
556
|
}), {
|
|
557
|
-
initializeAssetProcedureInstances:
|
|
557
|
+
initializeAssetProcedureInstances: lr,
|
|
558
558
|
addAssetProcedureInstance: Wt,
|
|
559
|
-
addAssetProcedureInstances:
|
|
559
|
+
addAssetProcedureInstances: hr,
|
|
560
560
|
updateAssetProcedureInstance: Be,
|
|
561
561
|
updateAssetProcedureInstances: rp,
|
|
562
562
|
deleteAssetProcedureInstance: Kt,
|
|
563
|
-
deleteAssetProcedureInstances:
|
|
563
|
+
deleteAssetProcedureInstances: mr,
|
|
564
564
|
setAssetProcedureInstance: op,
|
|
565
565
|
setAssetProcedureInstances: dp
|
|
566
566
|
} = nn.actions, an = (t) => t.assetProcedureInstanceReducer.instances, cn = p(
|
|
567
567
|
[an],
|
|
568
568
|
(t) => Object.values(t)
|
|
569
|
-
),
|
|
569
|
+
), pr = y(
|
|
570
570
|
p(
|
|
571
571
|
[cn, (t, e) => e],
|
|
572
572
|
(t, e) => b(
|
|
@@ -596,7 +596,7 @@ const qe = _(
|
|
|
596
596
|
return b(s);
|
|
597
597
|
}
|
|
598
598
|
)
|
|
599
|
-
),
|
|
599
|
+
), fr = nn.reducer, G = _(
|
|
600
600
|
(t) => t.uuid
|
|
601
601
|
), Jt = G.getInitialState({}), rn = S({
|
|
602
602
|
name: "assetProcedures",
|
|
@@ -614,7 +614,7 @@ const qe = _(
|
|
|
614
614
|
deleteAssetProcedures: G.deleteMany
|
|
615
615
|
}
|
|
616
616
|
}), {
|
|
617
|
-
initializeAssetProcedures:
|
|
617
|
+
initializeAssetProcedures: Ar,
|
|
618
618
|
addAssetProcedure: Qt,
|
|
619
619
|
addAssetProcedures: hp,
|
|
620
620
|
updateAssetProcedure: Ne,
|
|
@@ -623,9 +623,9 @@ const qe = _(
|
|
|
623
623
|
deleteAssetProcedures: pp,
|
|
624
624
|
setAssetProcedure: fp,
|
|
625
625
|
setAssetProcedures: Ap
|
|
626
|
-
} = rn.actions, on = (t) => t.assetProcedureReducer.instances,
|
|
626
|
+
} = rn.actions, on = (t) => t.assetProcedureReducer.instances, yr = p([on], (t) => Object.values(t)), yp = y(
|
|
627
627
|
p(
|
|
628
|
-
[
|
|
628
|
+
[yr, (t, e) => e],
|
|
629
629
|
(t, e) => b(
|
|
630
630
|
t.filter((s) => s.organization === e)
|
|
631
631
|
)
|
|
@@ -642,7 +642,7 @@ const qe = _(
|
|
|
642
642
|
return b(s);
|
|
643
643
|
}
|
|
644
644
|
)
|
|
645
|
-
),
|
|
645
|
+
), br = rn.reducer, L = _((t) => t.uuid), es = L.getInitialState({}), dn = S({
|
|
646
646
|
name: "assets",
|
|
647
647
|
initialState: es,
|
|
648
648
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, es)),
|
|
@@ -658,17 +658,17 @@ const qe = _(
|
|
|
658
658
|
deleteAssets: L.deleteMany
|
|
659
659
|
}
|
|
660
660
|
}), {
|
|
661
|
-
initializeAssets:
|
|
661
|
+
initializeAssets: gr,
|
|
662
662
|
addAsset: ts,
|
|
663
663
|
addAssets: un,
|
|
664
664
|
updateAsset: He,
|
|
665
665
|
updateAssets: gp,
|
|
666
666
|
deleteAsset: ss,
|
|
667
|
-
deleteAssets:
|
|
667
|
+
deleteAssets: Sr,
|
|
668
668
|
setAsset: Sp,
|
|
669
669
|
setAssets: Tp
|
|
670
|
-
} = dn.actions, ln = (t) => t.assetReducer.instances,
|
|
671
|
-
p([
|
|
670
|
+
} = dn.actions, ln = (t) => t.assetReducer.instances, Tr = p([ln], (t) => b(Object.values(t))), hn = y(
|
|
671
|
+
p([Tr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
|
|
672
672
|
), is = (t) => (e) => e.assetReducer.instances[t], Rp = y(
|
|
673
673
|
p([ln, (t, e) => e], (t, e) => {
|
|
674
674
|
const s = [];
|
|
@@ -678,7 +678,7 @@ const qe = _(
|
|
|
678
678
|
}
|
|
679
679
|
return b(s);
|
|
680
680
|
})
|
|
681
|
-
), _p = (t) => (e) => hn(t)(e).length,
|
|
681
|
+
), _p = (t) => (e) => hn(t)(e).length, Rr = dn.reducer, pe = _(
|
|
682
682
|
(t) => t.uuid
|
|
683
683
|
), ns = pe.getInitialState({}), mn = S({
|
|
684
684
|
name: "assetStageCompletions",
|
|
@@ -694,17 +694,17 @@ const qe = _(
|
|
|
694
694
|
deleteAssetStageCompletions: pe.deleteMany
|
|
695
695
|
}
|
|
696
696
|
}), {
|
|
697
|
-
initializeAssetStageCompletions:
|
|
697
|
+
initializeAssetStageCompletions: _r,
|
|
698
698
|
addAssetStageCompletion: as,
|
|
699
699
|
addAssetStageCompletions: cs,
|
|
700
|
-
updateAssetStageCompletion:
|
|
701
|
-
updateAssetStageCompletions:
|
|
700
|
+
updateAssetStageCompletion: Or,
|
|
701
|
+
updateAssetStageCompletions: Ir,
|
|
702
702
|
deleteAssetStageCompletion: rs,
|
|
703
703
|
deleteAssetStageCompletions: os
|
|
704
|
-
} = mn.actions,
|
|
704
|
+
} = mn.actions, Pr = mn.reducer, pn = (t) => t.assetStageCompletionReducer.instances, Op = p(
|
|
705
705
|
[pn],
|
|
706
706
|
(t) => Object.values(t)
|
|
707
|
-
),
|
|
707
|
+
), Fr = (t) => (e) => e.assetStageCompletionReducer.instances[t], vr = y(
|
|
708
708
|
p(
|
|
709
709
|
[pn, (t, e) => e],
|
|
710
710
|
(t, e) => {
|
|
@@ -732,8 +732,8 @@ const qe = _(
|
|
|
732
732
|
deleteAssetStages: B.deleteMany
|
|
733
733
|
}
|
|
734
734
|
}), {
|
|
735
|
-
initializeAssetStages:
|
|
736
|
-
setAssetStage:
|
|
735
|
+
initializeAssetStages: wr,
|
|
736
|
+
setAssetStage: Er,
|
|
737
737
|
setAssetStages: Ip,
|
|
738
738
|
addAssetStage: Pp,
|
|
739
739
|
addAssetStages: us,
|
|
@@ -741,7 +741,7 @@ const qe = _(
|
|
|
741
741
|
updateAssetStages: nt,
|
|
742
742
|
deleteAssetStage: Fp,
|
|
743
743
|
deleteAssetStages: hs
|
|
744
|
-
} = fn.actions,
|
|
744
|
+
} = fn.actions, kr = fn.reducer, Tt = (t) => t.assetStageReducer.instances, qr = (t) => (e) => e.assetStageReducer.instances[t], jr = p([Tt], (t) => Object.values(t)), vp = y(
|
|
745
745
|
p([Tt, (t, e) => e], (t, e) => {
|
|
746
746
|
const s = {};
|
|
747
747
|
for (const [i, n] of Object.entries(t))
|
|
@@ -749,7 +749,7 @@ const qe = _(
|
|
|
749
749
|
return Ue(s);
|
|
750
750
|
})
|
|
751
751
|
), wp = y(
|
|
752
|
-
p([
|
|
752
|
+
p([jr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
|
|
753
753
|
), ms = y(
|
|
754
754
|
p([Tt, (t, e) => e], (t, e) => {
|
|
755
755
|
const s = [];
|
|
@@ -777,24 +777,24 @@ const qe = _(
|
|
|
777
777
|
deleteAssetTypeAttachments: N.deleteMany
|
|
778
778
|
}
|
|
779
779
|
}), {
|
|
780
|
-
initializeAssetTypeAttachments:
|
|
780
|
+
initializeAssetTypeAttachments: Mr,
|
|
781
781
|
addAssetTypeAttachment: Ep,
|
|
782
782
|
addAssetTypeAttachments: yn,
|
|
783
|
-
setAssetTypeAttachment:
|
|
783
|
+
setAssetTypeAttachment: Cr,
|
|
784
784
|
setAssetTypeAttachments: kp,
|
|
785
785
|
updateAssetTypeAttachment: qp,
|
|
786
|
-
updateAssetTypeAttachments:
|
|
787
|
-
deleteAssetTypeAttachment:
|
|
786
|
+
updateAssetTypeAttachments: Dr,
|
|
787
|
+
deleteAssetTypeAttachment: xr,
|
|
788
788
|
deleteAssetTypeAttachments: bn
|
|
789
|
-
} = An.actions,
|
|
790
|
-
[
|
|
789
|
+
} = An.actions, zr = (t) => t.assetTypeAttachmentReducer.instances, Ur = p(
|
|
790
|
+
[zr],
|
|
791
791
|
(t) => Object.values(t)
|
|
792
|
-
),
|
|
792
|
+
), $r = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], Vr = y(
|
|
793
793
|
p(
|
|
794
|
-
[
|
|
794
|
+
[Ur, (t, e) => e],
|
|
795
795
|
(t, e) => b(t.filter(({ asset_type: s }) => e === s))
|
|
796
796
|
)
|
|
797
|
-
),
|
|
797
|
+
), Gr = An.reducer, H = _((t) => t.uuid), fs = H.getInitialState({}), gn = S({
|
|
798
798
|
name: "assetTypeFieldsAttachments",
|
|
799
799
|
initialState: fs,
|
|
800
800
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fs)),
|
|
@@ -810,21 +810,21 @@ const qe = _(
|
|
|
810
810
|
deleteAssetTypeFieldsAttachments: H.deleteMany
|
|
811
811
|
}
|
|
812
812
|
}), {
|
|
813
|
-
initializeAssetTypeFieldsAttachments:
|
|
813
|
+
initializeAssetTypeFieldsAttachments: Lr,
|
|
814
814
|
addAssetTypeFieldsAttachment: jp,
|
|
815
|
-
addAssetTypeFieldsAttachments:
|
|
815
|
+
addAssetTypeFieldsAttachments: Br,
|
|
816
816
|
setAssetTypeFieldsAttachment: Mp,
|
|
817
817
|
setAssetTypeFieldsAttachments: Cp,
|
|
818
818
|
updateAssetTypeFieldsAttachment: Dp,
|
|
819
|
-
updateAssetTypeFieldsAttachments:
|
|
819
|
+
updateAssetTypeFieldsAttachments: Nr,
|
|
820
820
|
deleteAssetTypeFieldsAttachment: xp,
|
|
821
|
-
deleteAssetTypeFieldsAttachments:
|
|
822
|
-
} = gn.actions,
|
|
823
|
-
[
|
|
821
|
+
deleteAssetTypeFieldsAttachments: Hr
|
|
822
|
+
} = gn.actions, Wr = (t) => t.assetTypeFieldsAttachmentReducer.instances, Kr = p(
|
|
823
|
+
[Wr],
|
|
824
824
|
(t) => Object.values(t)
|
|
825
825
|
), zp = y(
|
|
826
|
-
p([
|
|
827
|
-
), Up = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t],
|
|
826
|
+
p([Kr, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
|
|
827
|
+
), Up = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], Yr = gn.reducer, W = _(
|
|
828
828
|
(t) => t.uuid
|
|
829
829
|
), As = W.getInitialState({}), Sn = S({
|
|
830
830
|
name: "assetTypeFields",
|
|
@@ -842,20 +842,20 @@ const qe = _(
|
|
|
842
842
|
deleteAssetTypeFieldsMany: W.deleteMany
|
|
843
843
|
}
|
|
844
844
|
}), {
|
|
845
|
-
initializeAssetTypeFields:
|
|
846
|
-
addAssetTypeFields:
|
|
845
|
+
initializeAssetTypeFields: Jr,
|
|
846
|
+
addAssetTypeFields: Qr,
|
|
847
847
|
addAssetTypeFieldsMany: $p,
|
|
848
848
|
setAssetTypeFields: Vp,
|
|
849
849
|
setAssetTypeFieldsMany: Gp,
|
|
850
|
-
updateAssetTypeFields:
|
|
850
|
+
updateAssetTypeFields: Xr,
|
|
851
851
|
updateAssetTypeFieldsMany: Lp,
|
|
852
|
-
deleteAssetTypeFields:
|
|
852
|
+
deleteAssetTypeFields: Zr,
|
|
853
853
|
deleteAssetTypeFieldsMany: Bp
|
|
854
|
-
} = Sn.actions,
|
|
854
|
+
} = Sn.actions, eo = (t) => t.assetTypeFieldsReducer.instances, Rt = p([eo], (t) => Object.values(t)), Np = y(
|
|
855
855
|
p([Rt, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
|
|
856
856
|
), Hp = y(
|
|
857
857
|
p([Rt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
858
|
-
), Wp = (t) => (e) => e.assetTypeFieldsReducer.instances[t],
|
|
858
|
+
), Wp = (t) => (e) => e.assetTypeFieldsReducer.instances[t], to = Sn.reducer, K = _((t) => t.uuid), ys = K.getInitialState({}), Tn = S({
|
|
859
859
|
name: "assetTypeFieldValuesAttachments",
|
|
860
860
|
initialState: ys,
|
|
861
861
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ys)),
|
|
@@ -871,19 +871,19 @@ const qe = _(
|
|
|
871
871
|
deleteAssetTypeFieldValuesAttachments: K.deleteMany
|
|
872
872
|
}
|
|
873
873
|
}), {
|
|
874
|
-
initializeAssetTypeFieldValuesAttachments:
|
|
874
|
+
initializeAssetTypeFieldValuesAttachments: so,
|
|
875
875
|
addAssetTypeFieldValuesAttachment: Kp,
|
|
876
876
|
addAssetTypeFieldValuesAttachments: pt,
|
|
877
877
|
setAssetTypeFieldValuesAttachment: Yp,
|
|
878
878
|
setAssetTypeFieldValuesAttachments: Jp,
|
|
879
879
|
updateAssetTypeFieldValuesAttachment: Qp,
|
|
880
|
-
updateAssetTypeFieldValuesAttachments:
|
|
880
|
+
updateAssetTypeFieldValuesAttachments: io,
|
|
881
881
|
deleteAssetTypeFieldValuesAttachment: Xp,
|
|
882
882
|
deleteAssetTypeFieldValuesAttachments: ft
|
|
883
|
-
} = Tn.actions, Rn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances,
|
|
883
|
+
} = Tn.actions, Rn = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, no = p(
|
|
884
884
|
[Rn],
|
|
885
885
|
(t) => Object.values(t)
|
|
886
|
-
), Zp = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t],
|
|
886
|
+
), Zp = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], ao = y(
|
|
887
887
|
p(
|
|
888
888
|
[
|
|
889
889
|
Rn,
|
|
@@ -896,9 +896,9 @@ const qe = _(
|
|
|
896
896
|
);
|
|
897
897
|
}
|
|
898
898
|
)
|
|
899
|
-
),
|
|
900
|
-
p([
|
|
901
|
-
),
|
|
899
|
+
), co = y(
|
|
900
|
+
p([no, (t, e) => e], (t, e) => b(t.filter((s) => s.field_values === e)))
|
|
901
|
+
), ro = Tn.reducer, Y = _(
|
|
902
902
|
(t) => t.uuid
|
|
903
903
|
), bs = Y.getInitialState({}), _n = S({
|
|
904
904
|
name: "assetTypeFieldValues",
|
|
@@ -916,16 +916,16 @@ const qe = _(
|
|
|
916
916
|
deleteAssetTypeFieldValuesMany: Y.deleteMany
|
|
917
917
|
}
|
|
918
918
|
}), {
|
|
919
|
-
initializeAssetTypeFieldValues:
|
|
919
|
+
initializeAssetTypeFieldValues: oo,
|
|
920
920
|
addAssetTypeFieldValues: gs,
|
|
921
|
-
addAssetTypeFieldValuesMany:
|
|
921
|
+
addAssetTypeFieldValuesMany: uo,
|
|
922
922
|
setAssetTypeFieldValues: ef,
|
|
923
923
|
setAssetTypeFieldValuesMany: tf,
|
|
924
924
|
updateAssetTypeFieldValues: We,
|
|
925
|
-
updateAssetTypeFieldValuesMany:
|
|
925
|
+
updateAssetTypeFieldValuesMany: lo,
|
|
926
926
|
deleteAssetTypeFieldValues: Ss,
|
|
927
|
-
deleteAssetTypeFieldValuesMany:
|
|
928
|
-
} = _n.actions,
|
|
927
|
+
deleteAssetTypeFieldValuesMany: ho
|
|
928
|
+
} = _n.actions, mo = (t) => t.assetTypeFieldValuesReducer.instances, On = p([mo], (t) => Object.values(t)), sf = y(
|
|
929
929
|
p([On, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
|
|
930
930
|
), nf = y(
|
|
931
931
|
p(
|
|
@@ -937,7 +937,7 @@ const qe = _(
|
|
|
937
937
|
return b(e.filter((n) => i.has(n.fields_revision)));
|
|
938
938
|
}
|
|
939
939
|
)
|
|
940
|
-
), Ts = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t],
|
|
940
|
+
), Ts = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], po = _n.reducer, J = _((t) => t.uuid), Rs = J.getInitialState({}), In = S({
|
|
941
941
|
name: "assetTypes",
|
|
942
942
|
initialState: Rs,
|
|
943
943
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Rs)),
|
|
@@ -953,7 +953,7 @@ const qe = _(
|
|
|
953
953
|
deleteAssetTypes: J.deleteMany
|
|
954
954
|
}
|
|
955
955
|
}), {
|
|
956
|
-
initializeAssetTypes:
|
|
956
|
+
initializeAssetTypes: fo,
|
|
957
957
|
setAssetType: af,
|
|
958
958
|
setAssetTypes: cf,
|
|
959
959
|
addAssetType: _s,
|
|
@@ -977,7 +977,7 @@ const qe = _(
|
|
|
977
977
|
return b(s);
|
|
978
978
|
}
|
|
979
979
|
)
|
|
980
|
-
),
|
|
980
|
+
), Ao = In.reducer, Ps = {
|
|
981
981
|
accessToken: "",
|
|
982
982
|
refreshToken: "",
|
|
983
983
|
isLoggedIn: !1
|
|
@@ -996,7 +996,7 @@ const qe = _(
|
|
|
996
996
|
e.payload || _t.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
|
-
}), { setTokens: hf, clearTokens: mf, setLoggedIn:
|
|
999
|
+
}), { setTokens: hf, clearTokens: mf, setLoggedIn: yo } = _t.actions, pf = (t) => t.authReducer.accessToken, ff = (t) => t.authReducer.isLoggedIn, bo = _t.reducer, je = _((t) => t.uuid), Fs = je.getInitialState({}), Fn = S({
|
|
1000
1000
|
name: "categories",
|
|
1001
1001
|
initialState: Fs,
|
|
1002
1002
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Fs)),
|
|
@@ -1006,7 +1006,7 @@ const qe = _(
|
|
|
1006
1006
|
updateCategory: je.updateOne,
|
|
1007
1007
|
deleteCategory: je.deleteOne
|
|
1008
1008
|
}
|
|
1009
|
-
}), { initializeCategories:
|
|
1009
|
+
}), { initializeCategories: go, addCategory: vs, updateCategory: So, deleteCategory: To } = Fn.actions, vn = (t) => t.categoryReducer.instances, Af = p([vn], (t) => Object.values(t)), ws = (t) => (e) => e.categoryReducer.instances[t], yf = y(
|
|
1010
1010
|
p(
|
|
1011
1011
|
[vn, (t, e) => e],
|
|
1012
1012
|
(t, e) => {
|
|
@@ -1018,7 +1018,7 @@ const qe = _(
|
|
|
1018
1018
|
return b(s);
|
|
1019
1019
|
}
|
|
1020
1020
|
)
|
|
1021
|
-
), bf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length,
|
|
1021
|
+
), bf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, Ro = Fn.reducer, Q = _(
|
|
1022
1022
|
(t) => t.uuid
|
|
1023
1023
|
), Es = Q.getInitialState({}), wn = S({
|
|
1024
1024
|
name: "documentAttachments",
|
|
@@ -1036,24 +1036,24 @@ const qe = _(
|
|
|
1036
1036
|
deleteDocumentAttachments: Q.deleteMany
|
|
1037
1037
|
}
|
|
1038
1038
|
}), {
|
|
1039
|
-
initializeDocumentAttachments:
|
|
1039
|
+
initializeDocumentAttachments: _o,
|
|
1040
1040
|
addDocumentAttachment: gf,
|
|
1041
|
-
addDocumentAttachments:
|
|
1042
|
-
setDocumentAttachment:
|
|
1041
|
+
addDocumentAttachments: Oo,
|
|
1042
|
+
setDocumentAttachment: Io,
|
|
1043
1043
|
setDocumentAttachments: Sf,
|
|
1044
1044
|
updateDocumentAttachment: Tf,
|
|
1045
|
-
updateDocumentAttachments:
|
|
1046
|
-
deleteDocumentAttachment:
|
|
1047
|
-
deleteDocumentAttachments:
|
|
1048
|
-
} = wn.actions,
|
|
1049
|
-
[
|
|
1045
|
+
updateDocumentAttachments: Po,
|
|
1046
|
+
deleteDocumentAttachment: Fo,
|
|
1047
|
+
deleteDocumentAttachments: vo
|
|
1048
|
+
} = wn.actions, wo = (t) => t.documentAttachmentReducer.instances, Eo = p(
|
|
1049
|
+
[wo],
|
|
1050
1050
|
(t) => Object.values(t)
|
|
1051
|
-
),
|
|
1051
|
+
), ko = (t) => (e) => e.documentAttachmentReducer.instances[t], Rf = y(
|
|
1052
1052
|
p(
|
|
1053
|
-
[
|
|
1053
|
+
[Eo, (t, e) => e],
|
|
1054
1054
|
(t, e) => b(t.filter(({ document: s }) => e === s))
|
|
1055
1055
|
)
|
|
1056
|
-
),
|
|
1056
|
+
), qo = wn.reducer, ks = {
|
|
1057
1057
|
documents: {}
|
|
1058
1058
|
}, En = S({
|
|
1059
1059
|
name: "documents",
|
|
@@ -1179,10 +1179,10 @@ const qe = _(
|
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
}), { setDocuments:
|
|
1182
|
+
}), { setDocuments: jo, addDocuments: Mo, updateDocuments: be, moveDocument: Co, removeDocuments: qs } = En.actions, xe = (t) => t.documentsReducer.documents, Do = p(
|
|
1183
1183
|
[xe],
|
|
1184
1184
|
(t) => Object.values(t)
|
|
1185
|
-
),
|
|
1185
|
+
), xo = (t) => (e) => e.documentsReducer.documents[t], _f = y(
|
|
1186
1186
|
p(
|
|
1187
1187
|
[xe, (t, e) => e],
|
|
1188
1188
|
(t, e) => {
|
|
@@ -1207,34 +1207,34 @@ const qe = _(
|
|
|
1207
1207
|
}
|
|
1208
1208
|
)
|
|
1209
1209
|
), If = p(
|
|
1210
|
-
[
|
|
1210
|
+
[Do],
|
|
1211
1211
|
(t) => b(t.filter((e) => !e.parent_document))
|
|
1212
|
-
),
|
|
1212
|
+
), zo = En.reducer, et = _(
|
|
1213
1213
|
(t) => t.uuid
|
|
1214
|
-
),
|
|
1214
|
+
), Uo = et.getInitialState({}), kn = S({
|
|
1215
1215
|
name: "emailDomains",
|
|
1216
|
-
initialState:
|
|
1216
|
+
initialState: Uo,
|
|
1217
1217
|
reducers: {
|
|
1218
1218
|
initializeEmailDomains: et.initialize,
|
|
1219
1219
|
addEmailDomain: et.addOne,
|
|
1220
1220
|
deleteEmailDomain: et.deleteOne
|
|
1221
1221
|
}
|
|
1222
|
-
}), { initializeEmailDomains:
|
|
1222
|
+
}), { initializeEmailDomains: $o, addEmailDomain: Vo, deleteEmailDomain: Go } = kn.actions, Lo = (t) => t.emailDomainsReducer.instances, Bo = p([Lo], (t) => Object.values(t)), Pf = y(
|
|
1223
1223
|
p(
|
|
1224
|
-
[
|
|
1224
|
+
[Bo, (t, e) => e],
|
|
1225
1225
|
(t, e) => b(
|
|
1226
1226
|
t.filter((s) => s.organization === e)
|
|
1227
1227
|
)
|
|
1228
1228
|
)
|
|
1229
|
-
),
|
|
1229
|
+
), No = kn.reducer, js = {
|
|
1230
1230
|
s3Urls: {}
|
|
1231
|
-
}, qn = 1e3 * 60 * 60,
|
|
1231
|
+
}, qn = 1e3 * 60 * 60, Ho = qn * 24 * 7, jn = S({
|
|
1232
1232
|
name: "file",
|
|
1233
1233
|
initialState: js,
|
|
1234
1234
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, js)),
|
|
1235
1235
|
reducers: {
|
|
1236
1236
|
setUploadUrl: (t, e) => {
|
|
1237
|
-
const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), c = new Date(a.getTime() +
|
|
1237
|
+
const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), c = new Date(a.getTime() + Ho);
|
|
1238
1238
|
t.s3Urls[n] = {
|
|
1239
1239
|
url: s,
|
|
1240
1240
|
fields: i,
|
|
@@ -1242,14 +1242,14 @@ const qe = _(
|
|
|
1242
1242
|
};
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
}), { setUploadUrl:
|
|
1245
|
+
}), { setUploadUrl: Wo } = jn.actions, Ko = (t) => (e) => {
|
|
1246
1246
|
const s = e.fileReducer.s3Urls[t];
|
|
1247
1247
|
if (!s)
|
|
1248
1248
|
return;
|
|
1249
1249
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
1250
1250
|
if (!((s.exp ?? i) - i < qn))
|
|
1251
1251
|
return s;
|
|
1252
|
-
},
|
|
1252
|
+
}, Yo = jn.reducer, X = _((t) => t.uuid), Ms = X.getInitialState({}), Mn = S({
|
|
1253
1253
|
name: "formRevisionAttachments",
|
|
1254
1254
|
initialState: Ms,
|
|
1255
1255
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ms)),
|
|
@@ -1265,23 +1265,23 @@ const qe = _(
|
|
|
1265
1265
|
deleteFormRevisionAttachments: X.deleteMany
|
|
1266
1266
|
}
|
|
1267
1267
|
}), {
|
|
1268
|
-
initializeFormRevisionAttachments:
|
|
1268
|
+
initializeFormRevisionAttachments: Jo,
|
|
1269
1269
|
addFormRevisionAttachment: Ff,
|
|
1270
|
-
addFormRevisionAttachments:
|
|
1270
|
+
addFormRevisionAttachments: Qo,
|
|
1271
1271
|
setFormRevisionAttachment: vf,
|
|
1272
1272
|
setFormRevisionAttachments: wf,
|
|
1273
1273
|
updateFormRevisionAttachment: Ef,
|
|
1274
|
-
updateFormRevisionAttachments:
|
|
1274
|
+
updateFormRevisionAttachments: Xo,
|
|
1275
1275
|
deleteFormRevisionAttachment: kf,
|
|
1276
|
-
deleteFormRevisionAttachments:
|
|
1277
|
-
} = Mn.actions,
|
|
1276
|
+
deleteFormRevisionAttachments: Zo
|
|
1277
|
+
} = Mn.actions, ed = (t) => t.formRevisionAttachmentReducer.instances, qf = y(
|
|
1278
1278
|
p(
|
|
1279
|
-
[
|
|
1279
|
+
[ed, (t, e) => e],
|
|
1280
1280
|
(t, e) => b(
|
|
1281
1281
|
Object.values(t).filter((s) => s.form_revision === e)
|
|
1282
1282
|
)
|
|
1283
1283
|
)
|
|
1284
|
-
),
|
|
1284
|
+
), td = Mn.reducer, sd = (t, e) => {
|
|
1285
1285
|
const s = t.revision, i = e.revision;
|
|
1286
1286
|
return s === void 0 && i === void 0 ? t.submitted_at < e.submitted_at ? -1 : 1 : s === void 0 ? 1 : i === void 0 || s < i ? -1 : 1;
|
|
1287
1287
|
}, ge = _((t) => t.uuid), Cs = ge.getInitialState({}), Cn = S({
|
|
@@ -1297,13 +1297,13 @@ const qe = _(
|
|
|
1297
1297
|
deleteFormRevisions: ge.deleteMany
|
|
1298
1298
|
}
|
|
1299
1299
|
}), {
|
|
1300
|
-
setFormRevision:
|
|
1301
|
-
initializeFormRevisions:
|
|
1300
|
+
setFormRevision: id,
|
|
1301
|
+
initializeFormRevisions: nd,
|
|
1302
1302
|
addFormRevision: Dn,
|
|
1303
|
-
addFormRevisions:
|
|
1303
|
+
addFormRevisions: ad,
|
|
1304
1304
|
deleteFormRevision: xn,
|
|
1305
|
-
deleteFormRevisions:
|
|
1306
|
-
} = Cn.actions, Ot = (t) => t.formRevisionReducer.instances,
|
|
1305
|
+
deleteFormRevisions: cd
|
|
1306
|
+
} = Cn.actions, Ot = (t) => t.formRevisionReducer.instances, rd = p(
|
|
1307
1307
|
[Ot],
|
|
1308
1308
|
(t) => Object.values(t)
|
|
1309
1309
|
), jf = (t) => (e) => e.formRevisionReducer.instances[t], Mf = y(
|
|
@@ -1312,16 +1312,16 @@ const qe = _(
|
|
|
1312
1312
|
(t, e) => {
|
|
1313
1313
|
const s = Object.values(t).filter((a) => a.form === e);
|
|
1314
1314
|
if (s.length === 0) return;
|
|
1315
|
-
const n = s.sort(
|
|
1315
|
+
const n = s.sort(sd)[s.length - 1];
|
|
1316
1316
|
return t[n.uuid];
|
|
1317
1317
|
}
|
|
1318
1318
|
)
|
|
1319
|
-
),
|
|
1319
|
+
), od = y(
|
|
1320
1320
|
p(
|
|
1321
|
-
[
|
|
1321
|
+
[rd, (t, e) => e],
|
|
1322
1322
|
(t, e) => b(t.filter((s) => s.form === e))
|
|
1323
1323
|
)
|
|
1324
|
-
),
|
|
1324
|
+
), dd = Cn.reducer, Se = _((t) => t.uuid), Ds = Se.getInitialState({}), zn = S({
|
|
1325
1325
|
name: "forms",
|
|
1326
1326
|
initialState: Ds,
|
|
1327
1327
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ds)),
|
|
@@ -1333,7 +1333,7 @@ const qe = _(
|
|
|
1333
1333
|
updateForm: Se.updateOne,
|
|
1334
1334
|
deleteForm: Se.deleteOne
|
|
1335
1335
|
}
|
|
1336
|
-
}), { initializeForms:
|
|
1336
|
+
}), { initializeForms: ud, setForm: Cf, addForm: xs, addForms: Df, updateForm: xf, deleteForm: zs } = zn.actions, ld = zn.reducer, hd = (t) => t.formReducer.instances, zf = p([hd], (t) => Object.values(t)), md = (t) => (e) => e.formReducer.instances[t], Z = _((t) => t.uuid), Us = Z.getInitialState({}), Un = S({
|
|
1337
1337
|
name: "formSubmissionAttachments",
|
|
1338
1338
|
initialState: Us,
|
|
1339
1339
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Us)),
|
|
@@ -1349,16 +1349,16 @@ const qe = _(
|
|
|
1349
1349
|
deleteFormSubmissionAttachments: Z.deleteMany
|
|
1350
1350
|
}
|
|
1351
1351
|
}), {
|
|
1352
|
-
initializeFormSubmissionAttachments:
|
|
1352
|
+
initializeFormSubmissionAttachments: pd,
|
|
1353
1353
|
addFormSubmissionAttachment: Uf,
|
|
1354
1354
|
addFormSubmissionAttachments: At,
|
|
1355
1355
|
setFormSubmissionAttachment: $f,
|
|
1356
1356
|
setFormSubmissionAttachments: Vf,
|
|
1357
1357
|
updateFormSubmissionAttachment: Gf,
|
|
1358
|
-
updateFormSubmissionAttachments:
|
|
1358
|
+
updateFormSubmissionAttachments: fd,
|
|
1359
1359
|
deleteFormSubmissionAttachment: Lf,
|
|
1360
1360
|
deleteFormSubmissionAttachments: yt
|
|
1361
|
-
} = Un.actions, $n = (t) => t.formSubmissionAttachmentReducer.instances,
|
|
1361
|
+
} = Un.actions, $n = (t) => t.formSubmissionAttachmentReducer.instances, Ad = y(
|
|
1362
1362
|
p(
|
|
1363
1363
|
[
|
|
1364
1364
|
$n,
|
|
@@ -1371,14 +1371,14 @@ const qe = _(
|
|
|
1371
1371
|
);
|
|
1372
1372
|
}
|
|
1373
1373
|
)
|
|
1374
|
-
),
|
|
1374
|
+
), yd = y(
|
|
1375
1375
|
p(
|
|
1376
1376
|
[$n, (t, e) => e],
|
|
1377
1377
|
(t, e) => b(
|
|
1378
1378
|
Object.values(t).filter((s) => s.form_submission === e)
|
|
1379
1379
|
)
|
|
1380
1380
|
)
|
|
1381
|
-
),
|
|
1381
|
+
), bd = Un.reducer, ee = _(
|
|
1382
1382
|
(t) => t.uuid
|
|
1383
1383
|
), $s = ee.getInitialState({}), Vn = S({
|
|
1384
1384
|
name: "formSubmissions",
|
|
@@ -1396,19 +1396,19 @@ const qe = _(
|
|
|
1396
1396
|
deleteFormSubmissions: ee.deleteMany
|
|
1397
1397
|
}
|
|
1398
1398
|
}), {
|
|
1399
|
-
initializeFormSubmissions:
|
|
1399
|
+
initializeFormSubmissions: gd,
|
|
1400
1400
|
setFormSubmission: at,
|
|
1401
1401
|
setFormSubmissions: Bf,
|
|
1402
1402
|
addFormSubmission: Vs,
|
|
1403
1403
|
addFormSubmissions: It,
|
|
1404
|
-
updateFormSubmission:
|
|
1404
|
+
updateFormSubmission: Sd,
|
|
1405
1405
|
updateFormSubmissions: Nf,
|
|
1406
1406
|
deleteFormSubmission: Gs,
|
|
1407
1407
|
deleteFormSubmissions: Pt
|
|
1408
1408
|
} = Vn.actions, Gn = (t) => t.formSubmissionReducer.instances, Ln = p(
|
|
1409
1409
|
[Gn],
|
|
1410
1410
|
(t) => Object.values(t)
|
|
1411
|
-
), Ls = (t) => (e) => e.formSubmissionReducer.instances[t],
|
|
1411
|
+
), Ls = (t) => (e) => e.formSubmissionReducer.instances[t], Td = y(
|
|
1412
1412
|
p(
|
|
1413
1413
|
[
|
|
1414
1414
|
Gn,
|
|
@@ -1424,17 +1424,17 @@ const qe = _(
|
|
|
1424
1424
|
);
|
|
1425
1425
|
}
|
|
1426
1426
|
)
|
|
1427
|
-
),
|
|
1427
|
+
), Rd = y(
|
|
1428
1428
|
p(
|
|
1429
1429
|
[Ln, (t, e) => e],
|
|
1430
1430
|
(t, e) => Object.values(t).filter((s) => s.issue === e)
|
|
1431
1431
|
)
|
|
1432
|
-
),
|
|
1432
|
+
), _d = y(
|
|
1433
1433
|
p(
|
|
1434
1434
|
[Ln, (t, e) => e],
|
|
1435
1435
|
(t, e) => t.filter((s) => s.asset === e)
|
|
1436
1436
|
)
|
|
1437
|
-
),
|
|
1437
|
+
), Od = Vn.reducer, te = _((t) => t.uuid), Bs = te.getInitialState({}), Bn = S({
|
|
1438
1438
|
name: "geoImages",
|
|
1439
1439
|
initialState: Bs,
|
|
1440
1440
|
extraReducers: (t) => {
|
|
@@ -1454,18 +1454,18 @@ const qe = _(
|
|
|
1454
1454
|
deleteGeoImages: te.deleteMany
|
|
1455
1455
|
}
|
|
1456
1456
|
}), {
|
|
1457
|
-
initializeGeoImages:
|
|
1457
|
+
initializeGeoImages: Id,
|
|
1458
1458
|
setGeoImage: Ye,
|
|
1459
|
-
setGeoImages:
|
|
1460
|
-
addGeoImage:
|
|
1461
|
-
addGeoImages:
|
|
1462
|
-
updateGeoImage:
|
|
1459
|
+
setGeoImages: Pd,
|
|
1460
|
+
addGeoImage: Fd,
|
|
1461
|
+
addGeoImages: vd,
|
|
1462
|
+
updateGeoImage: wd,
|
|
1463
1463
|
updateGeoImages: Hf,
|
|
1464
1464
|
deleteGeoImage: Ns,
|
|
1465
|
-
deleteGeoImages:
|
|
1466
|
-
} = Bn.actions,
|
|
1467
|
-
p([
|
|
1468
|
-
),
|
|
1465
|
+
deleteGeoImages: Ed
|
|
1466
|
+
} = Bn.actions, kd = (t) => t.geoImageReducer.instances, qd = p([kd], (t) => Object.values(t)), Hs = (t) => (e) => e.geoImageReducer.instances[t], Wf = y(
|
|
1467
|
+
p([qd, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
|
|
1468
|
+
), jd = Bn.reducer, se = _(
|
|
1469
1469
|
(t) => t.uuid
|
|
1470
1470
|
), Ws = se.getInitialState({}), Nn = S({
|
|
1471
1471
|
name: "issueAssociations",
|
|
@@ -1483,33 +1483,33 @@ const qe = _(
|
|
|
1483
1483
|
deleteIssueAssociations: se.deleteMany
|
|
1484
1484
|
}
|
|
1485
1485
|
}), {
|
|
1486
|
-
initializeIssueAssociations:
|
|
1486
|
+
initializeIssueAssociations: Md,
|
|
1487
1487
|
setIssueAssociations: Kf,
|
|
1488
1488
|
setIssueAssociation: Yf,
|
|
1489
|
-
updateIssueAssociation:
|
|
1489
|
+
updateIssueAssociation: Cd,
|
|
1490
1490
|
updateIssueAssociations: Jf,
|
|
1491
1491
|
addIssueAssociation: Ks,
|
|
1492
1492
|
addIssueAssociations: Hn,
|
|
1493
1493
|
deleteIssueAssociation: Ys,
|
|
1494
1494
|
deleteIssueAssociations: Wn
|
|
1495
|
-
} = Nn.actions, it = (t) => t.issueAssociationReducer.instances, Qf = p([it], (t) => Object.values(t)),
|
|
1495
|
+
} = Nn.actions, it = (t) => t.issueAssociationReducer.instances, Qf = p([it], (t) => Object.values(t)), Dd = (t) => (e) => e.issueAssociationReducer.instances[t], xd = y(
|
|
1496
1496
|
p(
|
|
1497
1497
|
[it, (t, e) => e],
|
|
1498
1498
|
(t, e) => b(
|
|
1499
1499
|
Object.values(t).filter((s) => s.associated_issue === e)
|
|
1500
1500
|
)
|
|
1501
1501
|
)
|
|
1502
|
-
),
|
|
1502
|
+
), zd = y(
|
|
1503
1503
|
p(
|
|
1504
1504
|
[it, (t, e) => e],
|
|
1505
1505
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1506
1506
|
)
|
|
1507
|
-
),
|
|
1507
|
+
), Ud = y(
|
|
1508
1508
|
p(
|
|
1509
1509
|
[it, (t, e) => e],
|
|
1510
1510
|
(t, e) => b(Object.values(t).filter((s) => s.asset === e))
|
|
1511
1511
|
)
|
|
1512
|
-
),
|
|
1512
|
+
), $d = Nn.reducer, ie = _(
|
|
1513
1513
|
(t) => t.uuid
|
|
1514
1514
|
), Js = ie.getInitialState({}), Kn = S({
|
|
1515
1515
|
name: "issueAttachments",
|
|
@@ -1530,21 +1530,21 @@ const qe = _(
|
|
|
1530
1530
|
initializeIssueAttachments: Qs,
|
|
1531
1531
|
addIssueAttachment: Xf,
|
|
1532
1532
|
addIssueAttachments: Yn,
|
|
1533
|
-
setIssueAttachment:
|
|
1533
|
+
setIssueAttachment: Vd,
|
|
1534
1534
|
setIssueAttachments: Zf,
|
|
1535
1535
|
updateIssueAttachment: eA,
|
|
1536
|
-
updateIssueAttachments:
|
|
1537
|
-
deleteIssueAttachment:
|
|
1536
|
+
updateIssueAttachments: Gd,
|
|
1537
|
+
deleteIssueAttachment: Ld,
|
|
1538
1538
|
deleteIssueAttachments: Jn
|
|
1539
|
-
} = Kn.actions,
|
|
1540
|
-
[
|
|
1539
|
+
} = Kn.actions, Bd = (t) => t.issueAttachmentReducer.instances, Nd = p(
|
|
1540
|
+
[Bd],
|
|
1541
1541
|
(t) => Object.values(t)
|
|
1542
|
-
),
|
|
1542
|
+
), Hd = y(
|
|
1543
1543
|
p(
|
|
1544
|
-
[
|
|
1544
|
+
[Nd, (t, e) => e],
|
|
1545
1545
|
(t, e) => b(t.filter(({ issue: s }) => e === s))
|
|
1546
1546
|
)
|
|
1547
|
-
),
|
|
1547
|
+
), Wd = (t) => (e) => e.issueAttachmentReducer.instances[t], Kd = Kn.reducer, ne = _((t) => t.uuid), Xs = ne.getInitialState({}), Qn = S({
|
|
1548
1548
|
name: "issueCommentAttachments",
|
|
1549
1549
|
initialState: Xs,
|
|
1550
1550
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Xs)),
|
|
@@ -1562,25 +1562,25 @@ const qe = _(
|
|
|
1562
1562
|
}), {
|
|
1563
1563
|
initializeIssueCommentAttachments: Zs,
|
|
1564
1564
|
addIssueCommentAttachment: tA,
|
|
1565
|
-
addIssueCommentAttachments:
|
|
1566
|
-
setIssueCommentAttachment:
|
|
1565
|
+
addIssueCommentAttachments: Yd,
|
|
1566
|
+
setIssueCommentAttachment: Jd,
|
|
1567
1567
|
setIssueCommentAttachments: sA,
|
|
1568
1568
|
updateIssueCommentAttachment: iA,
|
|
1569
|
-
updateIssueCommentAttachments:
|
|
1570
|
-
deleteIssueCommentAttachment:
|
|
1571
|
-
deleteIssueCommentAttachments:
|
|
1572
|
-
} = Qn.actions,
|
|
1573
|
-
[
|
|
1569
|
+
updateIssueCommentAttachments: Qd,
|
|
1570
|
+
deleteIssueCommentAttachment: Xd,
|
|
1571
|
+
deleteIssueCommentAttachments: Zd
|
|
1572
|
+
} = Qn.actions, eu = (t) => t.issueCommentAttachmentReducer.instances, tu = p(
|
|
1573
|
+
[eu],
|
|
1574
1574
|
(t) => Object.values(t)
|
|
1575
|
-
),
|
|
1575
|
+
), su = (t) => (e) => e.issueCommentAttachmentReducer.instances[t], nA = y(
|
|
1576
1576
|
p(
|
|
1577
1577
|
[
|
|
1578
|
-
|
|
1578
|
+
tu,
|
|
1579
1579
|
(t, e) => e
|
|
1580
1580
|
],
|
|
1581
1581
|
(t, e) => b(t.filter(({ issue_comment: s }) => e === s))
|
|
1582
1582
|
)
|
|
1583
|
-
),
|
|
1583
|
+
), iu = Qn.reducer, Te = _((t) => t.uuid), ei = Te.getInitialState({}), Xn = S({
|
|
1584
1584
|
name: "issueComments",
|
|
1585
1585
|
initialState: ei,
|
|
1586
1586
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ei)),
|
|
@@ -1593,18 +1593,18 @@ const qe = _(
|
|
|
1593
1593
|
deleteIssueComments: Te.deleteMany
|
|
1594
1594
|
}
|
|
1595
1595
|
}), {
|
|
1596
|
-
setIssueComments:
|
|
1596
|
+
setIssueComments: nu,
|
|
1597
1597
|
setIssueComment: ti,
|
|
1598
1598
|
addIssueComment: si,
|
|
1599
1599
|
addIssueComments: aA,
|
|
1600
1600
|
deleteIssueComment: ii,
|
|
1601
1601
|
deleteIssueComments: cA
|
|
1602
|
-
} = Xn.actions,
|
|
1602
|
+
} = Xn.actions, au = (t) => t.issueCommentReducer.instances, ni = (t) => (e) => e.issueCommentReducer.instances[t], rA = y(
|
|
1603
1603
|
p(
|
|
1604
|
-
[
|
|
1604
|
+
[au, (t, e) => e],
|
|
1605
1605
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1606
1606
|
)
|
|
1607
|
-
),
|
|
1607
|
+
), cu = Xn.reducer, Re = _((t) => t.uuid), ai = Re.getInitialState({}), Zn = S({
|
|
1608
1608
|
name: "issues",
|
|
1609
1609
|
initialState: ai,
|
|
1610
1610
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
@@ -1618,8 +1618,8 @@ const qe = _(
|
|
|
1618
1618
|
deleteIssue: Re.deleteOne,
|
|
1619
1619
|
deleteIssues: Re.deleteMany
|
|
1620
1620
|
}
|
|
1621
|
-
}), { initializeIssues:
|
|
1622
|
-
p([
|
|
1621
|
+
}), { initializeIssues: ru, addIssue: ci, addIssues: ou, updateIssue: ct, deleteIssue: ri, deleteIssues: du } = Zn.actions, uu = (t) => t.issueReducer.instances, oi = (t) => (e) => e.issueReducer.instances[t], oA = y(
|
|
1622
|
+
p([uu, (t, e) => e], (t, e) => {
|
|
1623
1623
|
const s = [];
|
|
1624
1624
|
for (const i of e) {
|
|
1625
1625
|
const n = t[i];
|
|
@@ -1627,7 +1627,7 @@ const qe = _(
|
|
|
1627
1627
|
}
|
|
1628
1628
|
return b(s);
|
|
1629
1629
|
})
|
|
1630
|
-
),
|
|
1630
|
+
), lu = Zn.reducer, ae = _(
|
|
1631
1631
|
(t) => t.uuid
|
|
1632
1632
|
), di = ae.getInitialState({}), ea = S({
|
|
1633
1633
|
name: "issueTypeAttachments",
|
|
@@ -1647,22 +1647,22 @@ const qe = _(
|
|
|
1647
1647
|
}), {
|
|
1648
1648
|
initializeIssueTypeAttachments: ui,
|
|
1649
1649
|
addIssueTypeAttachment: dA,
|
|
1650
|
-
addIssueTypeAttachments:
|
|
1651
|
-
setIssueTypeAttachment:
|
|
1650
|
+
addIssueTypeAttachments: hu,
|
|
1651
|
+
setIssueTypeAttachment: mu,
|
|
1652
1652
|
setIssueTypeAttachments: uA,
|
|
1653
1653
|
updateIssueTypeAttachment: lA,
|
|
1654
|
-
updateIssueTypeAttachments:
|
|
1655
|
-
deleteIssueTypeAttachment:
|
|
1656
|
-
deleteIssueTypeAttachments:
|
|
1657
|
-
} = ea.actions,
|
|
1658
|
-
[
|
|
1654
|
+
updateIssueTypeAttachments: pu,
|
|
1655
|
+
deleteIssueTypeAttachment: fu,
|
|
1656
|
+
deleteIssueTypeAttachments: Au
|
|
1657
|
+
} = ea.actions, yu = (t) => t.issueTypeAttachmentReducer.instances, bu = p(
|
|
1658
|
+
[yu],
|
|
1659
1659
|
(t) => Object.values(t)
|
|
1660
|
-
),
|
|
1660
|
+
), gu = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], hA = y(
|
|
1661
1661
|
p(
|
|
1662
|
-
[
|
|
1662
|
+
[bu, (t, e) => e],
|
|
1663
1663
|
(t, e) => b(t.filter(({ issue_type: s }) => e === s))
|
|
1664
1664
|
)
|
|
1665
|
-
),
|
|
1665
|
+
), Su = ea.reducer, ce = _((t) => t.uuid), li = ce.getInitialState({}), ta = S({
|
|
1666
1666
|
name: "issueTypeFieldsAttachments",
|
|
1667
1667
|
initialState: li,
|
|
1668
1668
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, li)),
|
|
@@ -1678,26 +1678,26 @@ const qe = _(
|
|
|
1678
1678
|
deleteIssueTypeFieldsAttachments: ce.deleteMany
|
|
1679
1679
|
}
|
|
1680
1680
|
}), {
|
|
1681
|
-
initializeIssueTypeFieldsAttachments:
|
|
1681
|
+
initializeIssueTypeFieldsAttachments: Tu,
|
|
1682
1682
|
addIssueTypeFieldsAttachment: mA,
|
|
1683
|
-
addIssueTypeFieldsAttachments:
|
|
1683
|
+
addIssueTypeFieldsAttachments: Ru,
|
|
1684
1684
|
setIssueTypeFieldsAttachment: pA,
|
|
1685
1685
|
setIssueTypeFieldsAttachments: fA,
|
|
1686
1686
|
updateIssueTypeFieldsAttachment: AA,
|
|
1687
|
-
updateIssueTypeFieldsAttachments:
|
|
1687
|
+
updateIssueTypeFieldsAttachments: _u,
|
|
1688
1688
|
deleteIssueTypeFieldsAttachment: yA,
|
|
1689
|
-
deleteIssueTypeFieldsAttachments:
|
|
1690
|
-
} = ta.actions,
|
|
1691
|
-
[
|
|
1689
|
+
deleteIssueTypeFieldsAttachments: Ou
|
|
1690
|
+
} = ta.actions, Iu = (t) => t.issueTypeFieldsAttachmentReducer.instances, Pu = p(
|
|
1691
|
+
[Iu],
|
|
1692
1692
|
(t) => Object.values(t)
|
|
1693
1693
|
), bA = y(
|
|
1694
1694
|
p(
|
|
1695
|
-
[
|
|
1695
|
+
[Pu, (t, e) => e],
|
|
1696
1696
|
(t, e) => b(
|
|
1697
1697
|
t.filter((s) => s.fields_revision === e)
|
|
1698
1698
|
)
|
|
1699
1699
|
)
|
|
1700
|
-
), gA = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t],
|
|
1700
|
+
), gA = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], Fu = ta.reducer, re = _(
|
|
1701
1701
|
(t) => t.uuid
|
|
1702
1702
|
), hi = re.getInitialState({}), sa = S({
|
|
1703
1703
|
name: "issueTypeFieldValues",
|
|
@@ -1715,7 +1715,7 @@ const qe = _(
|
|
|
1715
1715
|
deleteIssueTypeFieldValuesMany: re.deleteMany
|
|
1716
1716
|
}
|
|
1717
1717
|
}), {
|
|
1718
|
-
initializeIssueTypeFieldValues:
|
|
1718
|
+
initializeIssueTypeFieldValues: vu,
|
|
1719
1719
|
addIssueTypeFieldValues: mi,
|
|
1720
1720
|
addIssueTypeFieldValuesMany: SA,
|
|
1721
1721
|
setIssueTypeFieldValues: TA,
|
|
@@ -1724,9 +1724,9 @@ const qe = _(
|
|
|
1724
1724
|
updateIssueTypeFieldValuesMany: _A,
|
|
1725
1725
|
deleteIssueTypeFieldValues: pi,
|
|
1726
1726
|
deleteIssueTypeFieldValuesMany: OA
|
|
1727
|
-
} = sa.actions,
|
|
1727
|
+
} = sa.actions, wu = (t) => t.issueTypeFieldValuesReducer.instances, ia = p([wu], (t) => Object.values(t)), IA = y(
|
|
1728
1728
|
p([ia, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
|
|
1729
|
-
), fi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t],
|
|
1729
|
+
), fi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Eu = sa.reducer, oe = _(
|
|
1730
1730
|
(t) => t.uuid
|
|
1731
1731
|
), Ai = oe.getInitialState({}), na = S({
|
|
1732
1732
|
name: "issueTypeFields",
|
|
@@ -1744,16 +1744,16 @@ const qe = _(
|
|
|
1744
1744
|
deleteIssueTypeFieldsMany: oe.deleteMany
|
|
1745
1745
|
}
|
|
1746
1746
|
}), {
|
|
1747
|
-
initializeIssueTypeFields:
|
|
1748
|
-
addIssueTypeFields:
|
|
1747
|
+
initializeIssueTypeFields: ku,
|
|
1748
|
+
addIssueTypeFields: qu,
|
|
1749
1749
|
addIssueTypeFieldsMany: PA,
|
|
1750
1750
|
setIssueTypeFields: FA,
|
|
1751
1751
|
setIssueTypeFieldsMany: vA,
|
|
1752
|
-
updateIssueTypeFields:
|
|
1752
|
+
updateIssueTypeFields: ju,
|
|
1753
1753
|
updateIssueTypeFieldsMany: wA,
|
|
1754
|
-
deleteIssueTypeFields:
|
|
1754
|
+
deleteIssueTypeFields: Mu,
|
|
1755
1755
|
deleteIssueTypeFieldsMany: EA
|
|
1756
|
-
} = na.actions,
|
|
1756
|
+
} = na.actions, Cu = (t) => t.issueTypeFieldsReducer.instances, Ft = p([Cu], (t) => Object.values(t)), kA = y(
|
|
1757
1757
|
p([Ft, (t, e) => e], (t, e) => b(t.filter((s) => s.issue_type === e)))
|
|
1758
1758
|
), qA = y(
|
|
1759
1759
|
p([Ft, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
@@ -1767,7 +1767,7 @@ const qe = _(
|
|
|
1767
1767
|
return b(e.filter((n) => i.has(n.fields_revision)));
|
|
1768
1768
|
}
|
|
1769
1769
|
)
|
|
1770
|
-
), MA = (t) => (e) => e.issueTypeFieldsReducer.instances[t],
|
|
1770
|
+
), MA = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Du = na.reducer, de = _((t) => t.uuid), yi = de.getInitialState({}), aa = S({
|
|
1771
1771
|
name: "issueTypeFieldValuesAttachments",
|
|
1772
1772
|
initialState: yi,
|
|
1773
1773
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, yi)),
|
|
@@ -1783,19 +1783,19 @@ const qe = _(
|
|
|
1783
1783
|
deleteIssueTypeFieldValuesAttachments: de.deleteMany
|
|
1784
1784
|
}
|
|
1785
1785
|
}), {
|
|
1786
|
-
initializeIssueTypeFieldValuesAttachments:
|
|
1786
|
+
initializeIssueTypeFieldValuesAttachments: xu,
|
|
1787
1787
|
addIssueTypeFieldValuesAttachment: CA,
|
|
1788
1788
|
addIssueTypeFieldValuesAttachments: bt,
|
|
1789
1789
|
setIssueTypeFieldValuesAttachment: DA,
|
|
1790
1790
|
setIssueTypeFieldValuesAttachments: xA,
|
|
1791
1791
|
updateIssueTypeFieldValuesAttachment: zA,
|
|
1792
|
-
updateIssueTypeFieldValuesAttachments:
|
|
1792
|
+
updateIssueTypeFieldValuesAttachments: zu,
|
|
1793
1793
|
deleteIssueTypeFieldValuesAttachment: UA,
|
|
1794
1794
|
deleteIssueTypeFieldValuesAttachments: gt
|
|
1795
|
-
} = aa.actions, ca = (t) => t.issueTypeFieldValuesAttachmentReducer.instances,
|
|
1795
|
+
} = aa.actions, ca = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Uu = p(
|
|
1796
1796
|
[ca],
|
|
1797
1797
|
(t) => Object.values(t)
|
|
1798
|
-
), $A = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t],
|
|
1798
|
+
), $A = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], $u = y(
|
|
1799
1799
|
p(
|
|
1800
1800
|
[
|
|
1801
1801
|
ca,
|
|
@@ -1808,12 +1808,12 @@ const qe = _(
|
|
|
1808
1808
|
);
|
|
1809
1809
|
}
|
|
1810
1810
|
)
|
|
1811
|
-
),
|
|
1811
|
+
), Vu = y(
|
|
1812
1812
|
p(
|
|
1813
|
-
[
|
|
1813
|
+
[Uu, (t, e) => e],
|
|
1814
1814
|
(t, e) => b(t.filter((s) => s.field_values === e))
|
|
1815
1815
|
)
|
|
1816
|
-
),
|
|
1816
|
+
), Gu = aa.reducer, Pe = _((t) => t.uuid), bi = Pe.getInitialState({}), ra = S({
|
|
1817
1817
|
name: "issueTypes",
|
|
1818
1818
|
initialState: bi,
|
|
1819
1819
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
@@ -1826,8 +1826,8 @@ const qe = _(
|
|
|
1826
1826
|
updateIssueType: Pe.updateOne,
|
|
1827
1827
|
removeIssueType: Pe.deleteOne
|
|
1828
1828
|
}
|
|
1829
|
-
}), { initializeIssueTypes:
|
|
1830
|
-
|
|
1829
|
+
}), { initializeIssueTypes: Lu, setIssueType: Qe, addIssueType: Bu, updateIssueType: Nu, removeIssueType: gi } = ra.actions, Hu = (t) => t.issueTypeReducer.instances, Wu = p(
|
|
1830
|
+
Hu,
|
|
1831
1831
|
(t) => Object.values(t)
|
|
1832
1832
|
), Si = (t) => (e) => e.issueTypeReducer.instances[t], VA = (t) => (e) => {
|
|
1833
1833
|
const s = [];
|
|
@@ -1838,7 +1838,7 @@ const qe = _(
|
|
|
1838
1838
|
return s;
|
|
1839
1839
|
}, GA = y(
|
|
1840
1840
|
p(
|
|
1841
|
-
[
|
|
1841
|
+
[Wu, (t, e) => e],
|
|
1842
1842
|
(t, e) => b(t.filter((s) => s.organization === e))
|
|
1843
1843
|
)
|
|
1844
1844
|
), oa = y(
|
|
@@ -1848,7 +1848,7 @@ const qe = _(
|
|
|
1848
1848
|
Object.values(t).filter((s) => s.issue_type === e)
|
|
1849
1849
|
)
|
|
1850
1850
|
)
|
|
1851
|
-
), LA = (t) => (e) => oa(t)(e).length,
|
|
1851
|
+
), LA = (t) => (e) => oa(t)(e).length, Ku = ra.reducer, _e = _(
|
|
1852
1852
|
(t) => t.uuid
|
|
1853
1853
|
), Ti = _e.getInitialState({}), da = S({
|
|
1854
1854
|
name: "issueUpdates",
|
|
@@ -1863,18 +1863,18 @@ const qe = _(
|
|
|
1863
1863
|
deleteIssueUpdates: _e.deleteMany
|
|
1864
1864
|
}
|
|
1865
1865
|
}), {
|
|
1866
|
-
initializeIssueUpdates:
|
|
1866
|
+
initializeIssueUpdates: Yu,
|
|
1867
1867
|
setIssueUpdate: BA,
|
|
1868
|
-
addIssueUpdate:
|
|
1869
|
-
addIssueUpdates:
|
|
1870
|
-
deleteIssueUpdate:
|
|
1871
|
-
deleteIssueUpdates:
|
|
1872
|
-
} = da.actions,
|
|
1868
|
+
addIssueUpdate: Ju,
|
|
1869
|
+
addIssueUpdates: Qu,
|
|
1870
|
+
deleteIssueUpdate: Xu,
|
|
1871
|
+
deleteIssueUpdates: Zu
|
|
1872
|
+
} = da.actions, el = (t) => t.issueUpdateReducer.instances, tl = y(
|
|
1873
1873
|
p(
|
|
1874
|
-
[
|
|
1874
|
+
[el, (t, e) => e],
|
|
1875
1875
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1876
1876
|
)
|
|
1877
|
-
),
|
|
1877
|
+
), sl = da.reducer, tt = _((t) => t.uuid), Ri = tt.getInitialState({}), ua = S({
|
|
1878
1878
|
name: "license",
|
|
1879
1879
|
initialState: Ri,
|
|
1880
1880
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ri)),
|
|
@@ -1883,7 +1883,7 @@ const qe = _(
|
|
|
1883
1883
|
addLicenses: tt.addMany,
|
|
1884
1884
|
updateLicense: tt.updateOne
|
|
1885
1885
|
}
|
|
1886
|
-
}), { initializeLicences:
|
|
1886
|
+
}), { initializeLicences: il, addLicenses: NA, updateLicense: fe } = ua.actions, vt = (t) => t.licenseReducer.instances, HA = (t) => (e) => e.licenseReducer.instances[t], nl = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), WA = p(
|
|
1887
1887
|
[vt],
|
|
1888
1888
|
(t) => b(Object.values(t).filter((e) => e.is_active))
|
|
1889
1889
|
), KA = p(
|
|
@@ -1891,7 +1891,7 @@ const qe = _(
|
|
|
1891
1891
|
(t) => Ue(
|
|
1892
1892
|
Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
|
|
1893
1893
|
)
|
|
1894
|
-
),
|
|
1894
|
+
), al = ua.reducer, q = _((t) => t.id), _i = q.getInitialState({
|
|
1895
1895
|
currentUser: null
|
|
1896
1896
|
}), la = S({
|
|
1897
1897
|
name: "users",
|
|
@@ -1922,7 +1922,7 @@ const qe = _(
|
|
|
1922
1922
|
}
|
|
1923
1923
|
}
|
|
1924
1924
|
}), {
|
|
1925
|
-
initializeUsers:
|
|
1925
|
+
initializeUsers: cl,
|
|
1926
1926
|
setUsers: YA,
|
|
1927
1927
|
setUser: JA,
|
|
1928
1928
|
addUsers: QA,
|
|
@@ -1931,10 +1931,10 @@ const qe = _(
|
|
|
1931
1931
|
updateUser: ey,
|
|
1932
1932
|
deleteUser: ty,
|
|
1933
1933
|
deleteUsers: sy,
|
|
1934
|
-
removeUser:
|
|
1934
|
+
removeUser: rl,
|
|
1935
1935
|
setCurrentUser: iy,
|
|
1936
1936
|
setProfilePicture: ny
|
|
1937
|
-
} = la.actions,
|
|
1937
|
+
} = la.actions, ol = la.reducer, wt = (t) => t.userReducer.currentUser, Et = (t) => t.userReducer.instances, ay = (t) => (e) => e.userReducer.instances[t], cy = y(
|
|
1938
1938
|
p([Et, (t, e) => e], (t, e) => {
|
|
1939
1939
|
const s = [];
|
|
1940
1940
|
for (const i of e) {
|
|
@@ -1954,19 +1954,19 @@ const qe = _(
|
|
|
1954
1954
|
updateOrganizationAccess: st.updateOne,
|
|
1955
1955
|
deleteOrganizationAccess: st.deleteOne
|
|
1956
1956
|
}
|
|
1957
|
-
}), { initializeOrganizationAccesses:
|
|
1957
|
+
}), { initializeOrganizationAccesses: dl, updateOrganizationAccess: ul, deleteOrganizationAccess: ll } = ha.actions, ma = (t) => t.organizationAccessReducer.instances, ry = (t) => (e) => e.organizationAccessReducer.instances[t], oy = p(
|
|
1958
1958
|
[wt, ma],
|
|
1959
1959
|
(t, e) => Object.values(e).find(
|
|
1960
1960
|
(i) => i.user === (t == null ? void 0 : t.id)
|
|
1961
1961
|
) ?? null
|
|
1962
1962
|
), dy = (t) => (e) => Object.values(e.organizationAccessReducer.instances).find(
|
|
1963
1963
|
(s) => s.user === t.id
|
|
1964
|
-
),
|
|
1964
|
+
), hl = (t) => {
|
|
1965
1965
|
const e = {};
|
|
1966
1966
|
for (const s of Object.values(t.organizationAccessReducer.instances))
|
|
1967
1967
|
e[s.user] = s;
|
|
1968
1968
|
return Ue(e);
|
|
1969
|
-
},
|
|
1969
|
+
}, ml = ha.reducer, Me = _(
|
|
1970
1970
|
(t) => t.uuid
|
|
1971
1971
|
), Ii = Me.getInitialState({}), pa = S({
|
|
1972
1972
|
name: "projectAccess",
|
|
@@ -1978,17 +1978,17 @@ const qe = _(
|
|
|
1978
1978
|
deleteProjectAccess: Me.deleteOne,
|
|
1979
1979
|
deleteProjectAccesses: Me.deleteMany
|
|
1980
1980
|
}
|
|
1981
|
-
}), { initializeProjectAccesses: fa, updateProjectAccess:
|
|
1981
|
+
}), { initializeProjectAccesses: fa, updateProjectAccess: pl, deleteProjectAccess: fl, deleteProjectAccesses: Al } = pa.actions, Aa = (t) => t.projectAccessReducer.instances, yl = p(
|
|
1982
1982
|
Aa,
|
|
1983
1983
|
(t) => Object.values(t)
|
|
1984
1984
|
), uy = (t) => (e) => e.projectAccessReducer.instances[t], ly = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
|
|
1985
1985
|
(s) => s.user === t.id
|
|
1986
|
-
),
|
|
1986
|
+
), bl = (t) => {
|
|
1987
1987
|
const e = {};
|
|
1988
1988
|
for (const s of Object.values(t.projectAccessReducer.instances))
|
|
1989
1989
|
e[s.user] = s;
|
|
1990
1990
|
return Ue(e);
|
|
1991
|
-
},
|
|
1991
|
+
}, gl = pa.reducer, ue = _((t) => t.uuid), Pi = ue.getInitialState({}), ya = S({
|
|
1992
1992
|
name: "projects",
|
|
1993
1993
|
initialState: Pi,
|
|
1994
1994
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pi)),
|
|
@@ -2011,23 +2011,23 @@ const qe = _(
|
|
|
2011
2011
|
}
|
|
2012
2012
|
}), {
|
|
2013
2013
|
initializeProjects: hy,
|
|
2014
|
-
setProjects:
|
|
2014
|
+
setProjects: Sl,
|
|
2015
2015
|
setProject: my,
|
|
2016
2016
|
addProjects: py,
|
|
2017
2017
|
addProject: fy,
|
|
2018
2018
|
updateProjects: Ay,
|
|
2019
|
-
updateProject:
|
|
2020
|
-
deleteProject:
|
|
2019
|
+
updateProject: Tl,
|
|
2020
|
+
deleteProject: Rl,
|
|
2021
2021
|
deleteProjects: yy,
|
|
2022
|
-
acceptProjectInvite:
|
|
2023
|
-
} = ya.actions,
|
|
2022
|
+
acceptProjectInvite: _l
|
|
2023
|
+
} = ya.actions, Ol = ya.reducer, kt = (t) => t.projectReducer.instances, by = p([kt], (t) => b(Object.values(t))), gy = (t) => (e) => e.projectReducer.instances[t], Il = p(
|
|
2024
2024
|
[Aa],
|
|
2025
2025
|
(t) => Object.values(t).map((e) => e.user)
|
|
2026
|
-
),
|
|
2027
|
-
[
|
|
2026
|
+
), Pl = p(
|
|
2027
|
+
[Il, Et],
|
|
2028
2028
|
(t, e) => t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
2029
2029
|
), Sy = p(
|
|
2030
|
-
[wt,
|
|
2030
|
+
[wt, Pl, bl],
|
|
2031
2031
|
(t, e, s) => b(
|
|
2032
2032
|
Object.values(e).sort((i, n) => {
|
|
2033
2033
|
if (i.id === (t == null ? void 0 : t.id))
|
|
@@ -2055,7 +2055,7 @@ const qe = _(
|
|
|
2055
2055
|
}
|
|
2056
2056
|
}), {
|
|
2057
2057
|
initializeOrganizations: Ty,
|
|
2058
|
-
setOrganizations:
|
|
2058
|
+
setOrganizations: Fl,
|
|
2059
2059
|
setOrganization: Ry,
|
|
2060
2060
|
addOrganizations: _y,
|
|
2061
2061
|
addOrganization: Oy,
|
|
@@ -2063,12 +2063,12 @@ const qe = _(
|
|
|
2063
2063
|
updateOrganization: Py,
|
|
2064
2064
|
deleteOrganization: Fy,
|
|
2065
2065
|
deleteOrganizations: vy
|
|
2066
|
-
} = ba.actions,
|
|
2067
|
-
[
|
|
2066
|
+
} = ba.actions, vl = (t) => t.organizationReducer.instances, wl = p([vl], (t) => Object.values(t)), wy = (t) => (e) => e.organizationReducer.instances[t], Ey = p(
|
|
2067
|
+
[wl],
|
|
2068
2068
|
(t) => b(
|
|
2069
2069
|
Object.values(t).filter((e) => e.has_access)
|
|
2070
2070
|
)
|
|
2071
|
-
),
|
|
2071
|
+
), El = p(
|
|
2072
2072
|
[ma],
|
|
2073
2073
|
(t) => Object.values(t).map((e) => e.user)
|
|
2074
2074
|
), ky = y(
|
|
@@ -2085,13 +2085,13 @@ const qe = _(
|
|
|
2085
2085
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
2086
2086
|
)
|
|
2087
2087
|
)
|
|
2088
|
-
),
|
|
2089
|
-
[
|
|
2088
|
+
), kl = p(
|
|
2089
|
+
[El, Et],
|
|
2090
2090
|
(t, e) => Ue(
|
|
2091
2091
|
t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
2092
2092
|
)
|
|
2093
2093
|
), jy = p(
|
|
2094
|
-
[wt,
|
|
2094
|
+
[wt, kl, hl],
|
|
2095
2095
|
(t, e, s) => b(
|
|
2096
2096
|
Object.values(e).sort((i, n) => {
|
|
2097
2097
|
if (i.id === (t == null ? void 0 : t.id))
|
|
@@ -2102,7 +2102,7 @@ const qe = _(
|
|
|
2102
2102
|
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === $i.ADMIN ? -1 : 1;
|
|
2103
2103
|
})
|
|
2104
2104
|
)
|
|
2105
|
-
),
|
|
2105
|
+
), ql = ba.reducer, jl = (t, e, s) => {
|
|
2106
2106
|
const i = t.uuid ? t : { ...t, uuid: Oe() };
|
|
2107
2107
|
return {
|
|
2108
2108
|
payload: i,
|
|
@@ -2134,7 +2134,7 @@ const qe = _(
|
|
|
2134
2134
|
prepare: (t) => {
|
|
2135
2135
|
console.debug("Preparing to enqueue request", t);
|
|
2136
2136
|
const { BASE_URL: e, serviceName: s, ...i } = t;
|
|
2137
|
-
return
|
|
2137
|
+
return jl(i, e, s);
|
|
2138
2138
|
}
|
|
2139
2139
|
},
|
|
2140
2140
|
markForDeletion(t, e) {
|
|
@@ -2148,7 +2148,7 @@ const qe = _(
|
|
|
2148
2148
|
t.latestRetryTime = e.payload;
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
}), My = (t) => t.outboxReducer.deletedRequests, Cy = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest:
|
|
2151
|
+
}), My = (t) => t.outboxReducer.deletedRequests, Cy = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Ml, markForDeletion: Dy, markAsDeleted: Cl, _setLatestRetryTime: Dl } = ga.actions, xl = ga.reducer, he = _(
|
|
2152
2152
|
(t) => t.uuid
|
|
2153
2153
|
), wi = he.getInitialState({}), Sa = S({
|
|
2154
2154
|
name: "projectAttachments",
|
|
@@ -2166,24 +2166,24 @@ const qe = _(
|
|
|
2166
2166
|
deleteProjectAttachments: he.deleteMany
|
|
2167
2167
|
}
|
|
2168
2168
|
}), {
|
|
2169
|
-
initializeProjectAttachments:
|
|
2169
|
+
initializeProjectAttachments: zl,
|
|
2170
2170
|
addProjectAttachment: xy,
|
|
2171
|
-
addProjectAttachments:
|
|
2172
|
-
setProjectAttachment:
|
|
2173
|
-
setProjectAttachments:
|
|
2171
|
+
addProjectAttachments: Ul,
|
|
2172
|
+
setProjectAttachment: $l,
|
|
2173
|
+
setProjectAttachments: Vl,
|
|
2174
2174
|
updateProjectAttachment: zy,
|
|
2175
|
-
updateProjectAttachments:
|
|
2176
|
-
deleteProjectAttachment:
|
|
2175
|
+
updateProjectAttachments: Gl,
|
|
2176
|
+
deleteProjectAttachment: Ll,
|
|
2177
2177
|
deleteProjectAttachments: Ta
|
|
2178
|
-
} = Sa.actions,
|
|
2179
|
-
[
|
|
2178
|
+
} = Sa.actions, Bl = (t) => t.projectAttachmentReducer.instances, Nl = p(
|
|
2179
|
+
[Bl],
|
|
2180
2180
|
(t) => Object.values(t)
|
|
2181
|
-
),
|
|
2181
|
+
), Hl = (t) => (e) => e.projectAttachmentReducer.instances[t], Wl = y(
|
|
2182
2182
|
p(
|
|
2183
|
-
[
|
|
2183
|
+
[Nl, (t, e) => e],
|
|
2184
2184
|
(t, e) => b(t.filter(({ project: s }) => e === s))
|
|
2185
2185
|
)
|
|
2186
|
-
),
|
|
2186
|
+
), Kl = Sa.reducer, me = _(
|
|
2187
2187
|
(t) => t.uuid
|
|
2188
2188
|
), Ei = me.getInitialState({
|
|
2189
2189
|
activeProjectFileId: null,
|
|
@@ -2226,32 +2226,32 @@ const qe = _(
|
|
|
2226
2226
|
}
|
|
2227
2227
|
}
|
|
2228
2228
|
}), {
|
|
2229
|
-
initializeProjectFiles:
|
|
2229
|
+
initializeProjectFiles: Yl,
|
|
2230
2230
|
setProjectFile: Uy,
|
|
2231
2231
|
setProjectFiles: $y,
|
|
2232
2232
|
addProjectFile: Vy,
|
|
2233
|
-
addProjectFiles:
|
|
2233
|
+
addProjectFiles: Jl,
|
|
2234
2234
|
updateProjectFile: ki,
|
|
2235
2235
|
updateProjectFiles: Gy,
|
|
2236
|
-
deleteProjectFile:
|
|
2237
|
-
deleteProjectFiles:
|
|
2236
|
+
deleteProjectFile: Ql,
|
|
2237
|
+
deleteProjectFiles: Xl,
|
|
2238
2238
|
// TODO: move following to /web
|
|
2239
|
-
setIsImportingProjectFile:
|
|
2240
|
-
setActiveProjectFileId:
|
|
2241
|
-
saveActiveProjectFileBounds:
|
|
2239
|
+
setIsImportingProjectFile: Zl,
|
|
2240
|
+
setActiveProjectFileId: eh,
|
|
2241
|
+
saveActiveProjectFileBounds: th,
|
|
2242
2242
|
resetProjectFileObjectUrls: Ly
|
|
2243
|
-
} = Ra.actions,
|
|
2243
|
+
} = Ra.actions, sh = (t) => t.projectFileReducer.instances, ih = p([sh], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))), By = (t) => (e) => e.projectFileReducer.instances[t], Ny = (t) => t.projectFileReducer.activeProjectFileId, Hy = (t) => t.projectFileReducer.isImportingProjectFile, nh = Ra.reducer, ah = {
|
|
2244
2244
|
isRehydrated: !1
|
|
2245
2245
|
}, _a = S({
|
|
2246
2246
|
name: "rehydrated",
|
|
2247
|
-
initialState:
|
|
2247
|
+
initialState: ah,
|
|
2248
2248
|
// The `reducers` field lets us define reducers and generate associated actions
|
|
2249
2249
|
reducers: {
|
|
2250
2250
|
setRehydrated: (t, e) => {
|
|
2251
2251
|
t.isRehydrated = e.payload;
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
2254
|
-
}), { setRehydrated: Wy } = _a.actions, Ky = (t) => t.rehydratedReducer.isRehydrated,
|
|
2254
|
+
}), { setRehydrated: Wy } = _a.actions, Ky = (t) => t.rehydratedReducer.isRehydrated, ch = _a.reducer, Fe = _((t) => t.uuid), qi = Fe.getInitialState({}), Oa = S({
|
|
2255
2255
|
name: "teams",
|
|
2256
2256
|
initialState: qi,
|
|
2257
2257
|
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qi)),
|
|
@@ -2262,7 +2262,7 @@ const qe = _(
|
|
|
2262
2262
|
updateTeam: Fe.updateOne,
|
|
2263
2263
|
deleteTeam: Fe.deleteOne
|
|
2264
2264
|
}
|
|
2265
|
-
}), { setTeam: Ee, initializeTeams:
|
|
2265
|
+
}), { setTeam: Ee, initializeTeams: rh, addTeam: oh, updateTeam: ji, deleteTeam: Mi } = Oa.actions, Ia = (t) => t.teamReducer.instances, Pa = p([Ia], (t) => Object.values(t)), ke = (t) => (e) => e.teamReducer.instances[t], Yy = y(
|
|
2266
2266
|
p(
|
|
2267
2267
|
[Ia, (t, e) => e],
|
|
2268
2268
|
(t, e) => {
|
|
@@ -2281,25 +2281,25 @@ const qe = _(
|
|
|
2281
2281
|
)
|
|
2282
2282
|
), Qy = y(
|
|
2283
2283
|
p([Pa, (t, e) => e], (t, e) => b(t.filter((s) => s.members.includes(e))))
|
|
2284
|
-
),
|
|
2284
|
+
), dh = Oa.reducer, uh = {
|
|
2285
2285
|
version: 0
|
|
2286
|
-
},
|
|
2286
|
+
}, lh = S({
|
|
2287
2287
|
name: "versioning",
|
|
2288
|
-
initialState:
|
|
2288
|
+
initialState: uh,
|
|
2289
2289
|
reducers: {}
|
|
2290
|
-
}),
|
|
2290
|
+
}), hh = lh.reducer;
|
|
2291
2291
|
let Fa;
|
|
2292
|
-
function
|
|
2292
|
+
function mh(t) {
|
|
2293
2293
|
Fa = t;
|
|
2294
2294
|
}
|
|
2295
2295
|
function $e() {
|
|
2296
2296
|
return Fa;
|
|
2297
2297
|
}
|
|
2298
2298
|
let va;
|
|
2299
|
-
function
|
|
2299
|
+
function ph(t) {
|
|
2300
2300
|
va = t;
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function fh() {
|
|
2303
2303
|
return va;
|
|
2304
2304
|
}
|
|
2305
2305
|
const wa = {};
|
|
@@ -2316,64 +2316,65 @@ class Ea {
|
|
|
2316
2316
|
this.client.store.dispatch(e);
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
const ka = "versioning", qa = () => Ma.length - 1, ja = (t) => (t[ka] = { version: qa() }, t), Ci = () => ja({}),
|
|
2319
|
+
const ka = "versioning", qa = () => Ma.length - 1, ja = (t) => (t[ka] = { version: qa() }, t), Ci = () => ja({}), Ah = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), yh = (t) => (e) => {
|
|
2320
2320
|
var s;
|
|
2321
2321
|
return e === void 0 && (e = {}), ((s = e[ka]) == null ? void 0 : s.version) === qa() ? e : t(e);
|
|
2322
|
-
}, Ma = [ja, Ci, Ci,
|
|
2323
|
-
[Ca]:
|
|
2324
|
-
fileReducer:
|
|
2325
|
-
authReducer:
|
|
2326
|
-
categoryReducer:
|
|
2327
|
-
assetReducer:
|
|
2322
|
+
}, Ma = [ja, Ci, Ci, Ah], bh = Object.fromEntries(Ma.map((t, e) => [e, yh(t)])), Ca = "versioning", gh = {
|
|
2323
|
+
[Ca]: hh,
|
|
2324
|
+
fileReducer: Yo,
|
|
2325
|
+
authReducer: bo,
|
|
2326
|
+
categoryReducer: Ro,
|
|
2327
|
+
assetReducer: Rr,
|
|
2328
2328
|
assetAttachmentReducer: wc,
|
|
2329
|
-
assetStageCompletionReducer:
|
|
2330
|
-
assetStageReducer:
|
|
2331
|
-
assetTypeReducer:
|
|
2332
|
-
assetTypeAttachmentReducer:
|
|
2333
|
-
issueReducer:
|
|
2334
|
-
issueAttachmentReducer:
|
|
2335
|
-
issueTypeReducer:
|
|
2336
|
-
issueTypeAttachmentReducer:
|
|
2337
|
-
organizationReducer:
|
|
2338
|
-
outboxReducer:
|
|
2339
|
-
projectReducer:
|
|
2340
|
-
projectAttachmentReducer:
|
|
2341
|
-
projectAccessReducer:
|
|
2342
|
-
organizationAccessReducer:
|
|
2343
|
-
projectFileReducer:
|
|
2344
|
-
rehydratedReducer:
|
|
2345
|
-
formReducer:
|
|
2346
|
-
formRevisionReducer:
|
|
2347
|
-
formRevisionAttachmentReducer:
|
|
2348
|
-
formSubmissionAttachmentReducer:
|
|
2349
|
-
formSubmissionReducer:
|
|
2350
|
-
userReducer:
|
|
2351
|
-
emailDomainsReducer:
|
|
2352
|
-
licenseReducer:
|
|
2353
|
-
documentsReducer:
|
|
2354
|
-
documentAttachmentReducer:
|
|
2355
|
-
teamReducer:
|
|
2329
|
+
assetStageCompletionReducer: Pr,
|
|
2330
|
+
assetStageReducer: kr,
|
|
2331
|
+
assetTypeReducer: Ao,
|
|
2332
|
+
assetTypeAttachmentReducer: Gr,
|
|
2333
|
+
issueReducer: lu,
|
|
2334
|
+
issueAttachmentReducer: Kd,
|
|
2335
|
+
issueTypeReducer: Ku,
|
|
2336
|
+
issueTypeAttachmentReducer: Su,
|
|
2337
|
+
organizationReducer: ql,
|
|
2338
|
+
outboxReducer: xl,
|
|
2339
|
+
projectReducer: Ol,
|
|
2340
|
+
projectAttachmentReducer: Kl,
|
|
2341
|
+
projectAccessReducer: gl,
|
|
2342
|
+
organizationAccessReducer: ml,
|
|
2343
|
+
projectFileReducer: nh,
|
|
2344
|
+
rehydratedReducer: ch,
|
|
2345
|
+
formReducer: ld,
|
|
2346
|
+
formRevisionReducer: dd,
|
|
2347
|
+
formRevisionAttachmentReducer: td,
|
|
2348
|
+
formSubmissionAttachmentReducer: bd,
|
|
2349
|
+
formSubmissionReducer: Od,
|
|
2350
|
+
userReducer: ol,
|
|
2351
|
+
emailDomainsReducer: No,
|
|
2352
|
+
licenseReducer: al,
|
|
2353
|
+
documentsReducer: zo,
|
|
2354
|
+
documentAttachmentReducer: qo,
|
|
2355
|
+
teamReducer: dh,
|
|
2356
2356
|
agentsReducer: Tc,
|
|
2357
|
-
issueCommentReducer:
|
|
2358
|
-
issueCommentAttachmentReducer:
|
|
2359
|
-
issueUpdateReducer:
|
|
2360
|
-
geoImageReducer:
|
|
2361
|
-
issueAssociationReducer:
|
|
2362
|
-
issueTypeFieldsReducer:
|
|
2363
|
-
issueTypeFieldValuesReducer:
|
|
2364
|
-
issueTypeFieldsAttachmentReducer:
|
|
2365
|
-
issueTypeFieldValuesAttachmentReducer:
|
|
2366
|
-
assetTypeFieldsReducer:
|
|
2367
|
-
assetTypeFieldValuesReducer:
|
|
2368
|
-
assetTypeFieldsAttachmentReducer:
|
|
2369
|
-
assetTypeFieldValuesAttachmentReducer:
|
|
2370
|
-
assetProcedureReducer:
|
|
2371
|
-
assetProcedureInstanceReducer:
|
|
2372
|
-
assetProcedureFieldsReducer:
|
|
2373
|
-
assetProcedureFieldValuesReducer:
|
|
2374
|
-
assetProcedureFieldsAttachmentReducer:
|
|
2375
|
-
assetProcedureFieldValuesAttachmentReducer:
|
|
2376
|
-
|
|
2357
|
+
issueCommentReducer: cu,
|
|
2358
|
+
issueCommentAttachmentReducer: iu,
|
|
2359
|
+
issueUpdateReducer: sl,
|
|
2360
|
+
geoImageReducer: jd,
|
|
2361
|
+
issueAssociationReducer: $d,
|
|
2362
|
+
issueTypeFieldsReducer: Du,
|
|
2363
|
+
issueTypeFieldValuesReducer: Eu,
|
|
2364
|
+
issueTypeFieldsAttachmentReducer: Fu,
|
|
2365
|
+
issueTypeFieldValuesAttachmentReducer: Gu,
|
|
2366
|
+
assetTypeFieldsReducer: to,
|
|
2367
|
+
assetTypeFieldValuesReducer: po,
|
|
2368
|
+
assetTypeFieldsAttachmentReducer: Yr,
|
|
2369
|
+
assetTypeFieldValuesAttachmentReducer: ro,
|
|
2370
|
+
assetProcedureReducer: br,
|
|
2371
|
+
assetProcedureInstanceReducer: fr,
|
|
2372
|
+
assetProcedureFieldsReducer: Xc,
|
|
2373
|
+
assetProcedureFieldValuesReducer: ur,
|
|
2374
|
+
assetProcedureFieldsAttachmentReducer: Hc,
|
|
2375
|
+
assetProcedureFieldValuesAttachmentReducer: nr,
|
|
2376
|
+
assetProcedureAttachmentReducer: Uc
|
|
2377
|
+
}, Di = La(gh), Sh = "RESET", Xy = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Di(void 0, e) : Di(t, e);
|
|
2377
2378
|
let rt = null;
|
|
2378
2379
|
function ve() {
|
|
2379
2380
|
const t = $e();
|
|
@@ -2384,34 +2385,34 @@ function ve() {
|
|
|
2384
2385
|
const e = t.getState().offline.outbox, s = Ce._fromOutbox(e);
|
|
2385
2386
|
return rt = s, s;
|
|
2386
2387
|
}
|
|
2387
|
-
const
|
|
2388
|
+
const Th = (t) => {
|
|
2388
2389
|
if (t) throw t;
|
|
2389
2390
|
const e = $e();
|
|
2390
2391
|
e ? e.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
|
|
2391
|
-
},
|
|
2392
|
+
}, Rh = (t, e, s) => {
|
|
2392
2393
|
const i = ve();
|
|
2393
2394
|
return i ? (i.addRequest(e), i.getQueue()) : (console.warn("Outbox coordinator not set; cannot enqueue request yet."), []);
|
|
2394
|
-
},
|
|
2395
|
+
}, _h = (t, e, s) => {
|
|
2395
2396
|
const i = ve();
|
|
2396
2397
|
if (!i)
|
|
2397
2398
|
return console.warn("Outbox coordinator not set; cannot dequeue request yet."), [];
|
|
2398
2399
|
const a = e.meta.offlineAction.payload.uuid;
|
|
2399
2400
|
return i.remove(a), i.getQueue();
|
|
2400
2401
|
};
|
|
2401
|
-
async function
|
|
2402
|
+
async function Oh(t, e) {
|
|
2402
2403
|
if (!e.payload)
|
|
2403
2404
|
throw new Error("Received empty payload");
|
|
2404
|
-
return
|
|
2405
|
+
return qh(e);
|
|
2405
2406
|
}
|
|
2406
|
-
const
|
|
2407
|
+
const Ih = {
|
|
2407
2408
|
...qt,
|
|
2408
|
-
effect:
|
|
2409
|
+
effect: Oh,
|
|
2409
2410
|
// Casting needed because we are saving FullOfflineAction objects, not just OfflineAction objects,
|
|
2410
2411
|
// but redux-offline does not know this.
|
|
2411
2412
|
discard: Ua,
|
|
2412
2413
|
returnPromises: !0,
|
|
2413
|
-
persistCallback:
|
|
2414
|
-
retry:
|
|
2414
|
+
persistCallback: Th,
|
|
2415
|
+
retry: Mh,
|
|
2415
2416
|
// Modify the configuration of the offline store to use localforage
|
|
2416
2417
|
// which uses IndexedDB by default (persists even on mobile when installed as a PWA, unlike localStorage)
|
|
2417
2418
|
persistOptions: { storage: Wa },
|
|
@@ -2420,13 +2421,13 @@ const Oh = {
|
|
|
2420
2421
|
// that same issue"
|
|
2421
2422
|
queue: {
|
|
2422
2423
|
...qt.queue,
|
|
2423
|
-
enqueue:
|
|
2424
|
-
dequeue:
|
|
2424
|
+
enqueue: Rh,
|
|
2425
|
+
dequeue: _h,
|
|
2425
2426
|
// Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
|
|
2426
|
-
peek: (...t) =>
|
|
2427
|
+
peek: (...t) => jh(...t)
|
|
2427
2428
|
}
|
|
2428
|
-
},
|
|
2429
|
-
function
|
|
2429
|
+
}, Ph = Ka(bh, Ca), Zy = Ba(Ha(Ih), Ph);
|
|
2430
|
+
function Fh(t) {
|
|
2430
2431
|
function e(s) {
|
|
2431
2432
|
return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
|
|
2432
2433
|
}
|
|
@@ -2496,13 +2497,13 @@ async function Da(t, e) {
|
|
|
2496
2497
|
try {
|
|
2497
2498
|
return await ye.query(d);
|
|
2498
2499
|
} catch (v) {
|
|
2499
|
-
const M =
|
|
2500
|
+
const M = Fh(v), we = M == null ? void 0 : M.status;
|
|
2500
2501
|
if (i && we === 401)
|
|
2501
2502
|
return await s.auth.handleUnauthorized(ye, M), ye.query(d);
|
|
2502
2503
|
throw new j({ response: M, innerError: v, discard: za.includes(we) });
|
|
2503
2504
|
}
|
|
2504
2505
|
}
|
|
2505
|
-
class
|
|
2506
|
+
class vh {
|
|
2506
2507
|
constructor(e) {
|
|
2507
2508
|
A(this, "_all");
|
|
2508
2509
|
A(this, "_previous");
|
|
@@ -2524,33 +2525,33 @@ class xa {
|
|
|
2524
2525
|
this.next = null;
|
|
2525
2526
|
}
|
|
2526
2527
|
then(e) {
|
|
2527
|
-
return new
|
|
2528
|
+
return new vh(this).then(e);
|
|
2528
2529
|
}
|
|
2529
2530
|
async run(e) {
|
|
2530
2531
|
if (this.next)
|
|
2531
2532
|
return this.next.run(e);
|
|
2532
2533
|
{
|
|
2533
2534
|
if (console.debug("Middleware finished. Performing request:", e), !$e()) throw new Error("Client store not set");
|
|
2534
|
-
const i =
|
|
2535
|
+
const i = fh();
|
|
2535
2536
|
if (!i) throw new Error("Client SDK not set");
|
|
2536
2537
|
return Da(e, i);
|
|
2537
2538
|
}
|
|
2538
2539
|
}
|
|
2539
2540
|
}
|
|
2540
|
-
class
|
|
2541
|
+
class wh extends xa {
|
|
2541
2542
|
async run(e) {
|
|
2542
2543
|
return super.run(e);
|
|
2543
2544
|
}
|
|
2544
2545
|
}
|
|
2545
|
-
class
|
|
2546
|
+
class Eh extends xa {
|
|
2546
2547
|
async run(e) {
|
|
2547
2548
|
return super.run(e);
|
|
2548
2549
|
}
|
|
2549
2550
|
}
|
|
2550
|
-
const
|
|
2551
|
-
function
|
|
2551
|
+
const kh = new wh().then(new Eh()).compile();
|
|
2552
|
+
function qh(t) {
|
|
2552
2553
|
var e;
|
|
2553
|
-
return (e =
|
|
2554
|
+
return (e = kh[0]) == null ? void 0 : e.run(t);
|
|
2554
2555
|
}
|
|
2555
2556
|
const za = [400, 409, 403, 404, 405, 500];
|
|
2556
2557
|
function Ua(t, e, s = 0) {
|
|
@@ -2573,7 +2574,7 @@ Retries:`,
|
|
|
2573
2574
|
), t;
|
|
2574
2575
|
const i = $e(), a = i.getState().outboxReducer.deletedRequests, c = e.payload.uuid;
|
|
2575
2576
|
function o() {
|
|
2576
|
-
i.dispatch(
|
|
2577
|
+
i.dispatch(Cl(c));
|
|
2577
2578
|
const d = ve();
|
|
2578
2579
|
if (!d)
|
|
2579
2580
|
throw new Error("Outbox coordinator not set");
|
|
@@ -2602,15 +2603,15 @@ Action:`, e);
|
|
|
2602
2603
|
throw new Error("Outbox coordinator not set");
|
|
2603
2604
|
return l.registerRetry(e.payload.uuid), !1;
|
|
2604
2605
|
}
|
|
2605
|
-
function
|
|
2606
|
+
function jh(t, e, s) {
|
|
2606
2607
|
var i;
|
|
2607
2608
|
return (i = ve()) == null ? void 0 : i.peek();
|
|
2608
2609
|
}
|
|
2609
|
-
function
|
|
2610
|
-
return $e().dispatch(
|
|
2610
|
+
function Mh(t, e) {
|
|
2611
|
+
return $e().dispatch(Dl((/* @__PURE__ */ new Date()).getTime())), ac;
|
|
2611
2612
|
}
|
|
2612
|
-
const ze = "An unknown error occurred",
|
|
2613
|
-
function
|
|
2613
|
+
const ze = "An unknown error occurred", Ch = 500, xi = ["non_field_errors", "detail"];
|
|
2614
|
+
function Dh(t, e) {
|
|
2614
2615
|
let s;
|
|
2615
2616
|
if (t != null && t.body)
|
|
2616
2617
|
if (typeof t.body == "object") {
|
|
@@ -2630,7 +2631,7 @@ function Ch(t, e) {
|
|
|
2630
2631
|
}
|
|
2631
2632
|
} else typeof t.body == "string" && (s = t.body);
|
|
2632
2633
|
else t != null && t.text ? s = t.text : e instanceof Error && (s = e.message);
|
|
2633
|
-
return !s || s.length >
|
|
2634
|
+
return !s || s.length > Ch ? ze : s;
|
|
2634
2635
|
}
|
|
2635
2636
|
class j extends Error {
|
|
2636
2637
|
constructor(s) {
|
|
@@ -2641,10 +2642,10 @@ class j extends Error {
|
|
|
2641
2642
|
A(this, "message");
|
|
2642
2643
|
A(this, "options");
|
|
2643
2644
|
const { response: i, innerError: n } = s;
|
|
2644
|
-
this.message = s.message ??
|
|
2645
|
+
this.message = s.message ?? Dh(i, n) ?? ze, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
|
|
2645
2646
|
}
|
|
2646
2647
|
}
|
|
2647
|
-
class
|
|
2648
|
+
class xh extends Ea {
|
|
2648
2649
|
constructor(e) {
|
|
2649
2650
|
super(e);
|
|
2650
2651
|
}
|
|
@@ -2970,7 +2971,7 @@ class ib extends E {
|
|
|
2970
2971
|
};
|
|
2971
2972
|
c.push(T);
|
|
2972
2973
|
}
|
|
2973
|
-
this.dispatch(
|
|
2974
|
+
this.dispatch(Vc(a));
|
|
2974
2975
|
const o = this.enqueueRequest({
|
|
2975
2976
|
description: "Add asset procedure fields attachments",
|
|
2976
2977
|
method: u.POST,
|
|
@@ -2984,10 +2985,10 @@ class ib extends E {
|
|
|
2984
2985
|
blocks: a.map((r) => r.uuid)
|
|
2985
2986
|
});
|
|
2986
2987
|
return o.then((r) => {
|
|
2987
|
-
this.processPresignedUrls(r.presigned_urls), this.dispatch(
|
|
2988
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(Gc(r.attachments));
|
|
2988
2989
|
}).catch(() => {
|
|
2989
2990
|
this.dispatch(
|
|
2990
|
-
|
|
2991
|
+
Lc(
|
|
2991
2992
|
a.map((r) => r.uuid)
|
|
2992
2993
|
)
|
|
2993
2994
|
);
|
|
@@ -3004,7 +3005,7 @@ class ib extends E {
|
|
|
3004
3005
|
blockers: [],
|
|
3005
3006
|
blocks: []
|
|
3006
3007
|
});
|
|
3007
|
-
this.dispatch(
|
|
3008
|
+
this.dispatch($c(s));
|
|
3008
3009
|
}
|
|
3009
3010
|
}
|
|
3010
3011
|
class nb extends I {
|
|
@@ -3015,7 +3016,7 @@ class nb extends I {
|
|
|
3015
3016
|
created_by: i,
|
|
3016
3017
|
submitted_at: n
|
|
3017
3018
|
});
|
|
3018
|
-
this.dispatch(
|
|
3019
|
+
this.dispatch(Kc(a));
|
|
3019
3020
|
const c = this.enqueueRequest({
|
|
3020
3021
|
description: "Add Asset Procedure Fields",
|
|
3021
3022
|
method: u.POST,
|
|
@@ -3025,9 +3026,9 @@ class nb extends I {
|
|
|
3025
3026
|
blocks: [a.uuid]
|
|
3026
3027
|
});
|
|
3027
3028
|
return c.then((l) => {
|
|
3028
|
-
this.dispatch(
|
|
3029
|
+
this.dispatch(Yc(l));
|
|
3029
3030
|
}).catch((l) => {
|
|
3030
|
-
throw this.dispatch(
|
|
3031
|
+
throw this.dispatch(Jc(a.uuid)), l;
|
|
3031
3032
|
}), [a, c];
|
|
3032
3033
|
}
|
|
3033
3034
|
async refreshStore(e) {
|
|
@@ -3041,7 +3042,7 @@ class nb extends I {
|
|
|
3041
3042
|
blockers: [],
|
|
3042
3043
|
blocks: []
|
|
3043
3044
|
});
|
|
3044
|
-
this.dispatch(
|
|
3045
|
+
this.dispatch(Wc(s));
|
|
3045
3046
|
}
|
|
3046
3047
|
}
|
|
3047
3048
|
function Ve(t, e) {
|
|
@@ -3102,7 +3103,7 @@ class ab extends E {
|
|
|
3102
3103
|
return Promise.all(l).then((d) => {
|
|
3103
3104
|
for (const m of d) this.processPresignedUrls(m.presigned_urls);
|
|
3104
3105
|
const h = d.flatMap((m) => m.attachments);
|
|
3105
|
-
this.dispatch(
|
|
3106
|
+
this.dispatch(er(h));
|
|
3106
3107
|
}).catch((d) => {
|
|
3107
3108
|
throw this.dispatch(
|
|
3108
3109
|
mt(
|
|
@@ -3115,7 +3116,7 @@ class ab extends E {
|
|
|
3115
3116
|
];
|
|
3116
3117
|
}
|
|
3117
3118
|
async bulkDelete(e) {
|
|
3118
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3119
|
+
const { store: s } = this.client, i = s.getState(), n = sr(e)(i);
|
|
3119
3120
|
this.dispatch(mt(e));
|
|
3120
3121
|
try {
|
|
3121
3122
|
await this.enqueueRequest({
|
|
@@ -3141,7 +3142,7 @@ class ab extends E {
|
|
|
3141
3142
|
blockers: [],
|
|
3142
3143
|
blocks: []
|
|
3143
3144
|
});
|
|
3144
|
-
this.dispatch(
|
|
3145
|
+
this.dispatch(Zc(s));
|
|
3145
3146
|
}
|
|
3146
3147
|
}
|
|
3147
3148
|
class cb extends I {
|
|
@@ -3190,7 +3191,7 @@ class cb extends I {
|
|
|
3190
3191
|
field_values: d
|
|
3191
3192
|
});
|
|
3192
3193
|
}
|
|
3193
|
-
this.dispatch(
|
|
3194
|
+
this.dispatch(cr(n));
|
|
3194
3195
|
const o = [];
|
|
3195
3196
|
for (const r of c) {
|
|
3196
3197
|
const d = r.field_values.map((T) => T.asset), h = r.field_values.map((T) => T.fields_revision), m = r.field_values.map((T) => T.asset_procedure_instance), f = r.field_values.map((T) => T.uuid), g = this.enqueueRequest({
|
|
@@ -3204,10 +3205,10 @@ class cb extends I {
|
|
|
3204
3205
|
o.push(g);
|
|
3205
3206
|
}
|
|
3206
3207
|
return Promise.all(o).then((r) => {
|
|
3207
|
-
this.dispatch(
|
|
3208
|
+
this.dispatch(rr(r.flat()));
|
|
3208
3209
|
}).catch(() => {
|
|
3209
3210
|
this.dispatch(
|
|
3210
|
-
|
|
3211
|
+
or(n.map((r) => r.uuid))
|
|
3211
3212
|
);
|
|
3212
3213
|
}), [n, o];
|
|
3213
3214
|
}
|
|
@@ -3242,7 +3243,7 @@ class cb extends I {
|
|
|
3242
3243
|
const { store: s } = this.client, i = s.getState(), n = Nt(e)(i);
|
|
3243
3244
|
if (!n)
|
|
3244
3245
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
3245
|
-
const a =
|
|
3246
|
+
const a = ir(e)(i);
|
|
3246
3247
|
this.dispatch(Bt(e)), this.dispatch(
|
|
3247
3248
|
mt(a.map((c) => c.uuid))
|
|
3248
3249
|
);
|
|
@@ -3269,7 +3270,7 @@ class cb extends I {
|
|
|
3269
3270
|
blockers: [],
|
|
3270
3271
|
blocks: []
|
|
3271
3272
|
});
|
|
3272
|
-
this.dispatch(
|
|
3273
|
+
this.dispatch(ar(s));
|
|
3273
3274
|
}
|
|
3274
3275
|
}
|
|
3275
3276
|
class rb extends I {
|
|
@@ -3343,7 +3344,7 @@ class rb extends I {
|
|
|
3343
3344
|
blockers: [],
|
|
3344
3345
|
blocks: []
|
|
3345
3346
|
});
|
|
3346
|
-
this.dispatch(
|
|
3347
|
+
this.dispatch(lr(s));
|
|
3347
3348
|
}
|
|
3348
3349
|
}
|
|
3349
3350
|
class ob extends I {
|
|
@@ -3396,15 +3397,15 @@ class ob extends I {
|
|
|
3396
3397
|
const { store: s } = this.client, i = s.getState(), n = Zt(e)(i);
|
|
3397
3398
|
if (!n)
|
|
3398
3399
|
throw new Error(`Expected asset procedure with uuid ${e} to exist`);
|
|
3399
|
-
const a =
|
|
3400
|
-
return this.dispatch(Xt(e)), this.dispatch(
|
|
3400
|
+
const a = pr(e)(i);
|
|
3401
|
+
return this.dispatch(Xt(e)), this.dispatch(mr(a.map((c) => c.uuid))), this.enqueueRequest({
|
|
3401
3402
|
description: "Delete asset procedure",
|
|
3402
3403
|
method: u.DELETE,
|
|
3403
3404
|
url: `/asset-procedures/${e}/`,
|
|
3404
3405
|
blockers: [e],
|
|
3405
3406
|
blocks: []
|
|
3406
3407
|
}).catch((c) => {
|
|
3407
|
-
throw this.dispatch(Qt(n)), this.dispatch(
|
|
3408
|
+
throw this.dispatch(Qt(n)), this.dispatch(hr(a)), c;
|
|
3408
3409
|
});
|
|
3409
3410
|
}
|
|
3410
3411
|
async refreshStore(e) {
|
|
@@ -3418,7 +3419,7 @@ class ob extends I {
|
|
|
3418
3419
|
blockers: [],
|
|
3419
3420
|
blocks: []
|
|
3420
3421
|
});
|
|
3421
|
-
this.dispatch(
|
|
3422
|
+
this.dispatch(Ar(s));
|
|
3422
3423
|
}
|
|
3423
3424
|
}
|
|
3424
3425
|
class db extends I {
|
|
@@ -3476,7 +3477,7 @@ class db extends I {
|
|
|
3476
3477
|
async remove(e) {
|
|
3477
3478
|
const { store: s } = this.client, i = s.getState(), n = is(e)(i);
|
|
3478
3479
|
if (!n) throw new Error(`No asset with uuid ${e} found in the store`);
|
|
3479
|
-
const a = vc(e)(i), c =
|
|
3480
|
+
const a = vc(e)(i), c = _d(e)(i), o = Ud(e)(i);
|
|
3480
3481
|
if (this.dispatch(ss(e)), a.length > 0) {
|
|
3481
3482
|
const l = a.map(({ uuid: r }) => r);
|
|
3482
3483
|
this.dispatch(Ki(l));
|
|
@@ -3545,7 +3546,7 @@ class db extends I {
|
|
|
3545
3546
|
blockers: [],
|
|
3546
3547
|
blocks: []
|
|
3547
3548
|
});
|
|
3548
|
-
this.dispatch(
|
|
3549
|
+
this.dispatch(gr(s));
|
|
3549
3550
|
}
|
|
3550
3551
|
}
|
|
3551
3552
|
class ub extends I {
|
|
@@ -3566,13 +3567,13 @@ class ub extends I {
|
|
|
3566
3567
|
blocks: [a.uuid]
|
|
3567
3568
|
});
|
|
3568
3569
|
return c.then((l) => {
|
|
3569
|
-
this.dispatch(
|
|
3570
|
+
this.dispatch(Or(l));
|
|
3570
3571
|
}).catch(() => {
|
|
3571
3572
|
this.dispatch(rs(a.uuid));
|
|
3572
3573
|
}), [a, c];
|
|
3573
3574
|
}
|
|
3574
3575
|
delete(e) {
|
|
3575
|
-
const { store: s } = this.client, i =
|
|
3576
|
+
const { store: s } = this.client, i = Fr(e)(s.getState());
|
|
3576
3577
|
if (!i)
|
|
3577
3578
|
throw new Error(`Expected asset stage completion with uuid ${e} to exist`);
|
|
3578
3579
|
this.dispatch(rs(e));
|
|
@@ -3611,13 +3612,13 @@ class ub extends I {
|
|
|
3611
3612
|
blocks: o
|
|
3612
3613
|
});
|
|
3613
3614
|
return l.then((d) => {
|
|
3614
|
-
this.dispatch(
|
|
3615
|
+
this.dispatch(Ir(d));
|
|
3615
3616
|
}).catch(() => {
|
|
3616
3617
|
this.dispatch(os(o));
|
|
3617
3618
|
}), [c, l];
|
|
3618
3619
|
}
|
|
3619
3620
|
bulkDelete(e) {
|
|
3620
|
-
const { store: s } = this.client, i =
|
|
3621
|
+
const { store: s } = this.client, i = vr(e)(s.getState());
|
|
3621
3622
|
this.dispatch(os(e));
|
|
3622
3623
|
const n = this.enqueueRequest({
|
|
3623
3624
|
description: "Deleting asset stage completions",
|
|
@@ -3644,7 +3645,7 @@ class ub extends I {
|
|
|
3644
3645
|
blockers: [],
|
|
3645
3646
|
blocks: []
|
|
3646
3647
|
});
|
|
3647
|
-
this.dispatch(
|
|
3648
|
+
this.dispatch(_r(s));
|
|
3648
3649
|
}
|
|
3649
3650
|
}
|
|
3650
3651
|
class lb extends I {
|
|
@@ -3703,7 +3704,7 @@ class lb extends I {
|
|
|
3703
3704
|
}), n;
|
|
3704
3705
|
}
|
|
3705
3706
|
update(e) {
|
|
3706
|
-
const { store: s } = this.client, i =
|
|
3707
|
+
const { store: s } = this.client, i = qr(e.uuid)(s.getState());
|
|
3707
3708
|
if (!i) throw new Error(`No asset stage with uuid ${e.uuid} found in the store`);
|
|
3708
3709
|
const n = {
|
|
3709
3710
|
...i,
|
|
@@ -3726,7 +3727,7 @@ class lb extends I {
|
|
|
3726
3727
|
return a.then((c) => {
|
|
3727
3728
|
this.dispatch(ls(c));
|
|
3728
3729
|
}).catch(() => {
|
|
3729
|
-
this.dispatch(
|
|
3730
|
+
this.dispatch(Er(i));
|
|
3730
3731
|
}), [n, a];
|
|
3731
3732
|
}
|
|
3732
3733
|
async refreshStore(e) {
|
|
@@ -3740,7 +3741,7 @@ class lb extends I {
|
|
|
3740
3741
|
blockers: [],
|
|
3741
3742
|
blocks: []
|
|
3742
3743
|
});
|
|
3743
|
-
this.dispatch(
|
|
3744
|
+
this.dispatch(wr(s));
|
|
3744
3745
|
}
|
|
3745
3746
|
}
|
|
3746
3747
|
class hb extends Ae {
|
|
@@ -3749,11 +3750,11 @@ class hb extends Ae {
|
|
|
3749
3750
|
A(this, "name", "Asset Type Attachment");
|
|
3750
3751
|
A(this, "url", "/asset-type-attachments");
|
|
3751
3752
|
A(this, "addAttachments", yn);
|
|
3752
|
-
A(this, "updateAttachments",
|
|
3753
|
+
A(this, "updateAttachments", Dr);
|
|
3753
3754
|
A(this, "removeAttachments", bn);
|
|
3754
|
-
A(this, "removeAttachment",
|
|
3755
|
-
A(this, "setAttachment",
|
|
3756
|
-
A(this, "selectAttachment",
|
|
3755
|
+
A(this, "removeAttachment", xr);
|
|
3756
|
+
A(this, "setAttachment", Cr);
|
|
3757
|
+
A(this, "selectAttachment", $r);
|
|
3757
3758
|
}
|
|
3758
3759
|
buildOfflineAttachment(s) {
|
|
3759
3760
|
return O({
|
|
@@ -3790,7 +3791,7 @@ class hb extends Ae {
|
|
|
3790
3791
|
blocks: [],
|
|
3791
3792
|
blockers: []
|
|
3792
3793
|
});
|
|
3793
|
-
this.dispatch(
|
|
3794
|
+
this.dispatch(Mr(i));
|
|
3794
3795
|
}
|
|
3795
3796
|
}
|
|
3796
3797
|
class mb extends E {
|
|
@@ -3821,7 +3822,7 @@ class mb extends E {
|
|
|
3821
3822
|
};
|
|
3822
3823
|
c.push(T);
|
|
3823
3824
|
}
|
|
3824
|
-
this.dispatch(
|
|
3825
|
+
this.dispatch(Br(a));
|
|
3825
3826
|
const o = this.enqueueRequest({
|
|
3826
3827
|
description: "Add asset type fields attachments",
|
|
3827
3828
|
method: u.POST,
|
|
@@ -3835,10 +3836,10 @@ class mb extends E {
|
|
|
3835
3836
|
blocks: a.map((r) => r.uuid)
|
|
3836
3837
|
});
|
|
3837
3838
|
return o.then((r) => {
|
|
3838
|
-
this.processPresignedUrls(r.presigned_urls), this.dispatch(
|
|
3839
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(Nr(r.attachments));
|
|
3839
3840
|
}).catch(() => {
|
|
3840
3841
|
this.dispatch(
|
|
3841
|
-
|
|
3842
|
+
Hr(
|
|
3842
3843
|
a.map((r) => r.uuid)
|
|
3843
3844
|
)
|
|
3844
3845
|
);
|
|
@@ -3855,7 +3856,7 @@ class mb extends E {
|
|
|
3855
3856
|
blockers: [e],
|
|
3856
3857
|
blocks: []
|
|
3857
3858
|
});
|
|
3858
|
-
this.dispatch(
|
|
3859
|
+
this.dispatch(Lr(s));
|
|
3859
3860
|
}
|
|
3860
3861
|
}
|
|
3861
3862
|
class pb extends I {
|
|
@@ -3866,7 +3867,7 @@ class pb extends I {
|
|
|
3866
3867
|
created_by: i,
|
|
3867
3868
|
submitted_at: n
|
|
3868
3869
|
});
|
|
3869
|
-
this.dispatch(
|
|
3870
|
+
this.dispatch(Qr(a));
|
|
3870
3871
|
const c = this.enqueueRequest({
|
|
3871
3872
|
description: "Add Asset Type Fields",
|
|
3872
3873
|
method: u.POST,
|
|
@@ -3876,9 +3877,9 @@ class pb extends I {
|
|
|
3876
3877
|
blocks: [a.uuid]
|
|
3877
3878
|
});
|
|
3878
3879
|
return c.then((l) => {
|
|
3879
|
-
this.dispatch(
|
|
3880
|
+
this.dispatch(Xr(l));
|
|
3880
3881
|
}).catch((l) => {
|
|
3881
|
-
throw this.dispatch(
|
|
3882
|
+
throw this.dispatch(Zr(a.uuid)), l;
|
|
3882
3883
|
}), [a, c];
|
|
3883
3884
|
}
|
|
3884
3885
|
async refreshStore(e) {
|
|
@@ -3892,7 +3893,7 @@ class pb extends I {
|
|
|
3892
3893
|
blockers: [],
|
|
3893
3894
|
blocks: []
|
|
3894
3895
|
});
|
|
3895
|
-
this.dispatch(
|
|
3896
|
+
this.dispatch(Jr(s));
|
|
3896
3897
|
}
|
|
3897
3898
|
}
|
|
3898
3899
|
class fb extends E {
|
|
@@ -3943,7 +3944,7 @@ class fb extends E {
|
|
|
3943
3944
|
return Promise.all(l).then((d) => {
|
|
3944
3945
|
for (const m of d) this.processPresignedUrls(m.presigned_urls);
|
|
3945
3946
|
const h = d.flatMap((m) => m.attachments);
|
|
3946
|
-
this.dispatch(
|
|
3947
|
+
this.dispatch(io(h));
|
|
3947
3948
|
}).catch((d) => {
|
|
3948
3949
|
throw this.dispatch(
|
|
3949
3950
|
ft(
|
|
@@ -3956,7 +3957,7 @@ class fb extends E {
|
|
|
3956
3957
|
];
|
|
3957
3958
|
}
|
|
3958
3959
|
async bulkDelete(e) {
|
|
3959
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3960
|
+
const { store: s } = this.client, i = s.getState(), n = ao(e)(i);
|
|
3960
3961
|
this.dispatch(ft(e));
|
|
3961
3962
|
try {
|
|
3962
3963
|
await this.enqueueRequest({
|
|
@@ -3982,7 +3983,7 @@ class fb extends E {
|
|
|
3982
3983
|
blockers: [],
|
|
3983
3984
|
blocks: []
|
|
3984
3985
|
});
|
|
3985
|
-
this.dispatch(
|
|
3986
|
+
this.dispatch(so(s));
|
|
3986
3987
|
}
|
|
3987
3988
|
}
|
|
3988
3989
|
class Ab extends I {
|
|
@@ -4030,7 +4031,7 @@ class Ab extends I {
|
|
|
4030
4031
|
field_values: d
|
|
4031
4032
|
});
|
|
4032
4033
|
}
|
|
4033
|
-
this.dispatch(
|
|
4034
|
+
this.dispatch(uo(n));
|
|
4034
4035
|
const o = [];
|
|
4035
4036
|
for (const r of c) {
|
|
4036
4037
|
const d = r.field_values.map((g) => g.asset), h = r.field_values.map((g) => g.fields_revision), m = r.field_values.map((g) => g.uuid), f = this.enqueueRequest({
|
|
@@ -4044,9 +4045,9 @@ class Ab extends I {
|
|
|
4044
4045
|
o.push(f);
|
|
4045
4046
|
}
|
|
4046
4047
|
return Promise.all(o).then((r) => {
|
|
4047
|
-
this.dispatch(
|
|
4048
|
+
this.dispatch(lo(r.flat()));
|
|
4048
4049
|
}).catch(() => {
|
|
4049
|
-
this.dispatch(
|
|
4050
|
+
this.dispatch(ho(n.map((r) => r.uuid)));
|
|
4050
4051
|
}), [n, o];
|
|
4051
4052
|
}
|
|
4052
4053
|
update(e) {
|
|
@@ -4080,7 +4081,7 @@ class Ab extends I {
|
|
|
4080
4081
|
const { store: s } = this.client, i = s.getState(), n = Ts(e)(i);
|
|
4081
4082
|
if (!n)
|
|
4082
4083
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
4083
|
-
const a =
|
|
4084
|
+
const a = co(e)(i);
|
|
4084
4085
|
this.dispatch(Ss(e)), this.dispatch(ft(a.map((c) => c.uuid)));
|
|
4085
4086
|
try {
|
|
4086
4087
|
await this.enqueueRequest({
|
|
@@ -4105,7 +4106,7 @@ class Ab extends I {
|
|
|
4105
4106
|
blockers: [],
|
|
4106
4107
|
blocks: []
|
|
4107
4108
|
});
|
|
4108
|
-
this.dispatch(
|
|
4109
|
+
this.dispatch(oo(s));
|
|
4109
4110
|
}
|
|
4110
4111
|
}
|
|
4111
4112
|
class yb extends I {
|
|
@@ -4163,8 +4164,8 @@ class yb extends I {
|
|
|
4163
4164
|
const { store: s } = this.client, i = s.getState(), n = Is(e)(i);
|
|
4164
4165
|
if (!n)
|
|
4165
4166
|
throw new Error(`Expected asset type with uuid ${e} to exist`);
|
|
4166
|
-
const a = hn(e)(i), c =
|
|
4167
|
-
return this.dispatch(Os(e)), this.dispatch(
|
|
4167
|
+
const a = hn(e)(i), c = Vr(e)(i);
|
|
4168
|
+
return this.dispatch(Os(e)), this.dispatch(Sr(a.map((o) => o.uuid))), this.dispatch(bn(c.map(({ uuid: o }) => o))), this.enqueueRequest({
|
|
4168
4169
|
description: "Delete asset type",
|
|
4169
4170
|
method: u.DELETE,
|
|
4170
4171
|
url: `/asset-types/${e}/`,
|
|
@@ -4185,7 +4186,7 @@ class yb extends I {
|
|
|
4185
4186
|
blockers: [],
|
|
4186
4187
|
blocks: []
|
|
4187
4188
|
});
|
|
4188
|
-
this.dispatch(
|
|
4189
|
+
this.dispatch(fo(s));
|
|
4189
4190
|
}
|
|
4190
4191
|
}
|
|
4191
4192
|
class bb extends I {
|
|
@@ -4212,7 +4213,7 @@ class bb extends I {
|
|
|
4212
4213
|
if (!i)
|
|
4213
4214
|
throw new Error(`Expected an existing category with uuid ${e.uuid}`);
|
|
4214
4215
|
const n = { ...i, ...e };
|
|
4215
|
-
this.dispatch(
|
|
4216
|
+
this.dispatch(So(n));
|
|
4216
4217
|
const a = this.enqueueRequest({
|
|
4217
4218
|
description: "Edit Category",
|
|
4218
4219
|
method: u.PATCH,
|
|
@@ -4227,7 +4228,7 @@ class bb extends I {
|
|
|
4227
4228
|
const { store: s } = this.client, i = ws(e)(s.getState());
|
|
4228
4229
|
if (!i)
|
|
4229
4230
|
throw new Error(`No category with uuid ${e} found in the store`);
|
|
4230
|
-
this.dispatch(
|
|
4231
|
+
this.dispatch(To(e));
|
|
4231
4232
|
const n = this.enqueueRequest({
|
|
4232
4233
|
description: "Delete Category",
|
|
4233
4234
|
method: u.DELETE,
|
|
@@ -4250,7 +4251,7 @@ class bb extends I {
|
|
|
4250
4251
|
blocks: [],
|
|
4251
4252
|
blockers: []
|
|
4252
4253
|
});
|
|
4253
|
-
this.dispatch(
|
|
4254
|
+
this.dispatch(go(s));
|
|
4254
4255
|
}
|
|
4255
4256
|
}
|
|
4256
4257
|
class gb extends Ae {
|
|
@@ -4258,12 +4259,12 @@ class gb extends Ae {
|
|
|
4258
4259
|
super(...arguments);
|
|
4259
4260
|
A(this, "name", "Document Attachment");
|
|
4260
4261
|
A(this, "url", "/document-attachments");
|
|
4261
|
-
A(this, "addAttachments",
|
|
4262
|
-
A(this, "updateAttachments",
|
|
4263
|
-
A(this, "removeAttachments",
|
|
4264
|
-
A(this, "removeAttachment",
|
|
4265
|
-
A(this, "setAttachment",
|
|
4266
|
-
A(this, "selectAttachment",
|
|
4262
|
+
A(this, "addAttachments", Oo);
|
|
4263
|
+
A(this, "updateAttachments", Po);
|
|
4264
|
+
A(this, "removeAttachments", vo);
|
|
4265
|
+
A(this, "removeAttachment", Fo);
|
|
4266
|
+
A(this, "setAttachment", Io);
|
|
4267
|
+
A(this, "selectAttachment", ko);
|
|
4267
4268
|
}
|
|
4268
4269
|
buildOfflineAttachment(s) {
|
|
4269
4270
|
return O({
|
|
@@ -4357,7 +4358,7 @@ class gb extends Ae {
|
|
|
4357
4358
|
blocks: [],
|
|
4358
4359
|
blockers: []
|
|
4359
4360
|
});
|
|
4360
|
-
this.dispatch(
|
|
4361
|
+
this.dispatch(_o(n));
|
|
4361
4362
|
const a = await this.enqueueRequest({
|
|
4362
4363
|
description: "Get document attachments",
|
|
4363
4364
|
method: u.GET,
|
|
@@ -4376,7 +4377,7 @@ class Sb extends I {
|
|
|
4376
4377
|
created_by: i,
|
|
4377
4378
|
submitted_at: n
|
|
4378
4379
|
});
|
|
4379
|
-
this.dispatch(
|
|
4380
|
+
this.dispatch(Mo([a]));
|
|
4380
4381
|
const c = this.enqueueRequest({
|
|
4381
4382
|
description: "Create Document",
|
|
4382
4383
|
method: u.POST,
|
|
@@ -4430,7 +4431,7 @@ class Sb extends I {
|
|
|
4430
4431
|
);
|
|
4431
4432
|
c.push(r), r.parent_document && c.push(a[r.parent_document]);
|
|
4432
4433
|
}
|
|
4433
|
-
this.dispatch(
|
|
4434
|
+
this.dispatch(Co({ documentId: e, targetDocumentId: s, position: i }));
|
|
4434
4435
|
const l = this.enqueueRequest({
|
|
4435
4436
|
description: "Move Document",
|
|
4436
4437
|
method: u.PATCH,
|
|
@@ -4449,7 +4450,7 @@ class Sb extends I {
|
|
|
4449
4450
|
}), l;
|
|
4450
4451
|
}
|
|
4451
4452
|
delete(e) {
|
|
4452
|
-
const { store: s } = this.client, i = xe(s.getState()), n =
|
|
4453
|
+
const { store: s } = this.client, i = xe(s.getState()), n = xo(e)(s.getState());
|
|
4453
4454
|
if (!n)
|
|
4454
4455
|
throw new Error(`attempting to delete a document with uuid ${e} that does not exist in store.documents`);
|
|
4455
4456
|
const a = n.parent_document ? i[n.parent_document] : void 0;
|
|
@@ -4481,7 +4482,7 @@ class Sb extends I {
|
|
|
4481
4482
|
blockers: [],
|
|
4482
4483
|
blocks: []
|
|
4483
4484
|
});
|
|
4484
|
-
this.dispatch(
|
|
4485
|
+
this.dispatch(jo([...await i, ...await n]));
|
|
4485
4486
|
}
|
|
4486
4487
|
}
|
|
4487
4488
|
class Tb extends I {
|
|
@@ -4496,14 +4497,14 @@ class Tb extends I {
|
|
|
4496
4497
|
});
|
|
4497
4498
|
}
|
|
4498
4499
|
async remove(e) {
|
|
4499
|
-
return this.dispatch(
|
|
4500
|
+
return this.dispatch(Go(e.uuid)), this.enqueueRequest({
|
|
4500
4501
|
description: "Remove email domain from organization",
|
|
4501
4502
|
method: u.DELETE,
|
|
4502
4503
|
url: `/organization-email-domains/${e.uuid}/`,
|
|
4503
4504
|
blockers: [e.domain],
|
|
4504
4505
|
blocks: []
|
|
4505
4506
|
}).catch((s) => {
|
|
4506
|
-
throw this.dispatch(
|
|
4507
|
+
throw this.dispatch(Vo(e)), s;
|
|
4507
4508
|
});
|
|
4508
4509
|
}
|
|
4509
4510
|
async refreshStore(e) {
|
|
@@ -4517,7 +4518,7 @@ class Tb extends I {
|
|
|
4517
4518
|
blockers: [e],
|
|
4518
4519
|
blocks: []
|
|
4519
4520
|
});
|
|
4520
|
-
this.dispatch(
|
|
4521
|
+
this.dispatch($o(s));
|
|
4521
4522
|
}
|
|
4522
4523
|
}
|
|
4523
4524
|
class Rb extends I {
|
|
@@ -4545,7 +4546,7 @@ class Rb extends I {
|
|
|
4545
4546
|
}
|
|
4546
4547
|
const Xe = {}, ot = /* @__PURE__ */ new Set();
|
|
4547
4548
|
let Ze = 0, dt = 0, ut = 0;
|
|
4548
|
-
const
|
|
4549
|
+
const zh = 20;
|
|
4549
4550
|
class _b extends I {
|
|
4550
4551
|
constructor() {
|
|
4551
4552
|
super(...arguments);
|
|
@@ -4574,7 +4575,7 @@ class _b extends I {
|
|
|
4574
4575
|
blockers: [],
|
|
4575
4576
|
blocks: [`s3-${n}`]
|
|
4576
4577
|
});
|
|
4577
|
-
return "url" in a && this.dispatch(
|
|
4578
|
+
return "url" in a && this.dispatch(Wo({ sha1: s, ...a })), a;
|
|
4578
4579
|
}
|
|
4579
4580
|
/**
|
|
4580
4581
|
* Adds a file to the cache using the sha1 hash as the key and returns the sha1 hash.
|
|
@@ -4592,7 +4593,7 @@ class _b extends I {
|
|
|
4592
4593
|
if (!s.name || !s.size || !s.type)
|
|
4593
4594
|
throw new Error("Cannot add files to cache that do not have a name, size and type.");
|
|
4594
4595
|
const n = await this._dbPromise;
|
|
4595
|
-
!!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Ze++) : (await n.put("files", s, i), dt++), ot.add(i), ut++, ut %
|
|
4596
|
+
!!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Ze++) : (await n.put("files", s, i), dt++), ot.add(i), ut++, ut % zh === 0 && console.debug(
|
|
4596
4597
|
`File cache summary: ${Ze} hits and ${dt} misses, ${Ze / (Ze + dt) * 100}% hit rate over ${ut} calls to addCache.`
|
|
4597
4598
|
);
|
|
4598
4599
|
}
|
|
@@ -4604,7 +4605,7 @@ class _b extends I {
|
|
|
4604
4605
|
}
|
|
4605
4606
|
async getOrRenewUploadUrl(s) {
|
|
4606
4607
|
const i = this.client.store.getState();
|
|
4607
|
-
return
|
|
4608
|
+
return Ko(s)(i) ?? await this.renewUploadUrl(s);
|
|
4608
4609
|
}
|
|
4609
4610
|
/** Ensure the file has been added to the file cache before calling `uploadFileToS3()` */
|
|
4610
4611
|
async uploadFileToS3(s) {
|
|
@@ -4731,7 +4732,7 @@ class Ob extends E {
|
|
|
4731
4732
|
};
|
|
4732
4733
|
c.push(T);
|
|
4733
4734
|
}
|
|
4734
|
-
this.dispatch(
|
|
4735
|
+
this.dispatch(Qo(a));
|
|
4735
4736
|
const o = this.enqueueRequest({
|
|
4736
4737
|
description: "Attach files to form revision",
|
|
4737
4738
|
method: u.POST,
|
|
@@ -4745,10 +4746,10 @@ class Ob extends E {
|
|
|
4745
4746
|
blocks: a.map((r) => r.uuid)
|
|
4746
4747
|
});
|
|
4747
4748
|
return o.then((r) => {
|
|
4748
|
-
this.processPresignedUrls(r.presigned_urls), this.dispatch(
|
|
4749
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(Xo(r.attachments));
|
|
4749
4750
|
}).catch(() => {
|
|
4750
4751
|
this.dispatch(
|
|
4751
|
-
|
|
4752
|
+
Zo(a.map((r) => r.uuid))
|
|
4752
4753
|
);
|
|
4753
4754
|
}), [a, o.then(({ attachments: r }) => r)];
|
|
4754
4755
|
}
|
|
@@ -4763,7 +4764,7 @@ class Ob extends E {
|
|
|
4763
4764
|
blockers: [e],
|
|
4764
4765
|
blocks: []
|
|
4765
4766
|
});
|
|
4766
|
-
this.dispatch(
|
|
4767
|
+
this.dispatch(Jo(s));
|
|
4767
4768
|
}
|
|
4768
4769
|
}
|
|
4769
4770
|
class Ib extends E {
|
|
@@ -4784,7 +4785,7 @@ class Ib extends E {
|
|
|
4784
4785
|
blocks: [a.uuid]
|
|
4785
4786
|
});
|
|
4786
4787
|
return c.then((l) => {
|
|
4787
|
-
this.dispatch(
|
|
4788
|
+
this.dispatch(id(l));
|
|
4788
4789
|
}).catch(() => {
|
|
4789
4790
|
this.dispatch(xn(a.uuid));
|
|
4790
4791
|
}), [a, c];
|
|
@@ -4800,7 +4801,7 @@ class Ib extends E {
|
|
|
4800
4801
|
blockers: [e],
|
|
4801
4802
|
blocks: []
|
|
4802
4803
|
});
|
|
4803
|
-
this.dispatch(
|
|
4804
|
+
this.dispatch(nd(s));
|
|
4804
4805
|
}
|
|
4805
4806
|
}
|
|
4806
4807
|
class Pb extends E {
|
|
@@ -4839,13 +4840,13 @@ class Pb extends E {
|
|
|
4839
4840
|
}), [c, o, l];
|
|
4840
4841
|
}
|
|
4841
4842
|
async delete(e) {
|
|
4842
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4843
|
+
const { store: s } = this.client, i = s.getState(), n = md(e)(i);
|
|
4843
4844
|
if (!n)
|
|
4844
4845
|
throw new Error("Expected form to exist");
|
|
4845
|
-
const a =
|
|
4846
|
+
const a = Td(e)(i);
|
|
4846
4847
|
a.length > 0 && this.dispatch(Pt(a.map(({ uuid: o }) => o)));
|
|
4847
|
-
const c =
|
|
4848
|
-
c.length > 0 && this.dispatch(
|
|
4848
|
+
const c = od(e)(i);
|
|
4849
|
+
c.length > 0 && this.dispatch(cd(c.map(({ uuid: o }) => o))), this.dispatch(zs(e));
|
|
4849
4850
|
try {
|
|
4850
4851
|
return await this.enqueueRequest({
|
|
4851
4852
|
description: "Delete form",
|
|
@@ -4855,7 +4856,7 @@ class Pb extends E {
|
|
|
4855
4856
|
blocks: []
|
|
4856
4857
|
});
|
|
4857
4858
|
} catch (o) {
|
|
4858
|
-
throw this.dispatch(xs(n)), c.length > 0 && this.dispatch(
|
|
4859
|
+
throw this.dispatch(xs(n)), c.length > 0 && this.dispatch(ad(c)), a.length > 0 && this.dispatch(It(a)), o;
|
|
4859
4860
|
}
|
|
4860
4861
|
}
|
|
4861
4862
|
async refreshStore(e) {
|
|
@@ -4869,7 +4870,7 @@ class Pb extends E {
|
|
|
4869
4870
|
blockers: [e],
|
|
4870
4871
|
blocks: []
|
|
4871
4872
|
});
|
|
4872
|
-
this.dispatch(
|
|
4873
|
+
this.dispatch(ud(s));
|
|
4873
4874
|
}
|
|
4874
4875
|
}
|
|
4875
4876
|
class Fb extends E {
|
|
@@ -4914,7 +4915,7 @@ class Fb extends E {
|
|
|
4914
4915
|
blocks: a.map((r) => r.uuid)
|
|
4915
4916
|
});
|
|
4916
4917
|
return o.then((r) => {
|
|
4917
|
-
this.processPresignedUrls(r.presigned_urls), this.dispatch(
|
|
4918
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(fd(r.attachments));
|
|
4918
4919
|
}).catch((r) => {
|
|
4919
4920
|
throw this.dispatch(
|
|
4920
4921
|
yt(
|
|
@@ -4924,7 +4925,7 @@ class Fb extends E {
|
|
|
4924
4925
|
}), [a, o.then(({ attachments: r }) => r)];
|
|
4925
4926
|
}
|
|
4926
4927
|
async bulkDelete(e) {
|
|
4927
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4928
|
+
const { store: s } = this.client, i = s.getState(), n = Ad(e)(i);
|
|
4928
4929
|
this.dispatch(yt(e));
|
|
4929
4930
|
try {
|
|
4930
4931
|
await this.enqueueRequest({
|
|
@@ -4950,7 +4951,7 @@ class Fb extends E {
|
|
|
4950
4951
|
blockers: [],
|
|
4951
4952
|
blocks: []
|
|
4952
4953
|
});
|
|
4953
|
-
this.dispatch(
|
|
4954
|
+
this.dispatch(pd(s));
|
|
4954
4955
|
}
|
|
4955
4956
|
}
|
|
4956
4957
|
class vb extends E {
|
|
@@ -4985,7 +4986,7 @@ class vb extends E {
|
|
|
4985
4986
|
...n,
|
|
4986
4987
|
...e
|
|
4987
4988
|
};
|
|
4988
|
-
this.dispatch(
|
|
4989
|
+
this.dispatch(Sd(a));
|
|
4989
4990
|
const c = this.enqueueRequest({
|
|
4990
4991
|
description: "Delete user form submissions",
|
|
4991
4992
|
method: u.PATCH,
|
|
@@ -5004,7 +5005,7 @@ class vb extends E {
|
|
|
5004
5005
|
const { store: s } = this.client, i = s.getState(), n = Ls(e)(i);
|
|
5005
5006
|
if (!n)
|
|
5006
5007
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
5007
|
-
const a =
|
|
5008
|
+
const a = yd(e)(i);
|
|
5008
5009
|
this.dispatch(Gs(e)), this.dispatch(yt(a.map((c) => c.uuid)));
|
|
5009
5010
|
try {
|
|
5010
5011
|
return await this.enqueueRequest({
|
|
@@ -5029,7 +5030,7 @@ class vb extends E {
|
|
|
5029
5030
|
blockers: [],
|
|
5030
5031
|
blocks: []
|
|
5031
5032
|
});
|
|
5032
|
-
this.dispatch(
|
|
5033
|
+
this.dispatch(gd(s));
|
|
5033
5034
|
}
|
|
5034
5035
|
}
|
|
5035
5036
|
class wb extends E {
|
|
@@ -5043,7 +5044,7 @@ class wb extends E {
|
|
|
5043
5044
|
submitted_at: a,
|
|
5044
5045
|
created_by: c
|
|
5045
5046
|
});
|
|
5046
|
-
this.dispatch(
|
|
5047
|
+
this.dispatch(Fd(r));
|
|
5047
5048
|
const d = this.enqueueRequest({
|
|
5048
5049
|
description: "Add geo image",
|
|
5049
5050
|
method: u.POST,
|
|
@@ -5098,7 +5099,7 @@ class wb extends E {
|
|
|
5098
5099
|
original_date: R.original_date
|
|
5099
5100
|
});
|
|
5100
5101
|
}
|
|
5101
|
-
this.dispatch(
|
|
5102
|
+
this.dispatch(vd(c));
|
|
5102
5103
|
const d = this.enqueueRequest({
|
|
5103
5104
|
description: "Bulk add geo images",
|
|
5104
5105
|
method: u.POST,
|
|
@@ -5113,9 +5114,9 @@ class wb extends E {
|
|
|
5113
5114
|
blockers: o
|
|
5114
5115
|
});
|
|
5115
5116
|
return d.then((m) => {
|
|
5116
|
-
this.processPresignedUrls(m.presigned_urls), this.dispatch(
|
|
5117
|
+
this.processPresignedUrls(m.presigned_urls), this.dispatch(Pd(m.geo_images));
|
|
5117
5118
|
}).catch(() => {
|
|
5118
|
-
this.dispatch(
|
|
5119
|
+
this.dispatch(Ed(o));
|
|
5119
5120
|
}), [c, d.then((m) => m.geo_images)];
|
|
5120
5121
|
}
|
|
5121
5122
|
update(e) {
|
|
@@ -5123,7 +5124,7 @@ class wb extends E {
|
|
|
5123
5124
|
if (!n)
|
|
5124
5125
|
throw new Error(`Map image with uuid ${e.uuid} does not exist in the store`);
|
|
5125
5126
|
const a = { ...n, ...e };
|
|
5126
|
-
this.dispatch(
|
|
5127
|
+
this.dispatch(wd(a));
|
|
5127
5128
|
const c = this.enqueueRequest({
|
|
5128
5129
|
description: "Update geo image",
|
|
5129
5130
|
method: u.PATCH,
|
|
@@ -5165,7 +5166,7 @@ class wb extends E {
|
|
|
5165
5166
|
blocks: [e],
|
|
5166
5167
|
blockers: []
|
|
5167
5168
|
});
|
|
5168
|
-
this.dispatch(
|
|
5169
|
+
this.dispatch(Id(s));
|
|
5169
5170
|
}
|
|
5170
5171
|
}
|
|
5171
5172
|
class Eb extends I {
|
|
@@ -5190,13 +5191,13 @@ class Eb extends I {
|
|
|
5190
5191
|
blocks: [a.uuid]
|
|
5191
5192
|
});
|
|
5192
5193
|
return c.then((l) => {
|
|
5193
|
-
this.dispatch(
|
|
5194
|
+
this.dispatch(Cd(l));
|
|
5194
5195
|
}).catch(() => {
|
|
5195
5196
|
this.dispatch(Ys(a.uuid));
|
|
5196
5197
|
}), [a, c];
|
|
5197
5198
|
}
|
|
5198
5199
|
async delete(e) {
|
|
5199
|
-
const { store: s } = this.client, i =
|
|
5200
|
+
const { store: s } = this.client, i = Dd(e)(s.getState());
|
|
5200
5201
|
if (!i)
|
|
5201
5202
|
throw new Error(`Issue association with uuid ${e} not found in store.`);
|
|
5202
5203
|
this.dispatch(Ys(e));
|
|
@@ -5220,7 +5221,7 @@ class Eb extends I {
|
|
|
5220
5221
|
blockers: [],
|
|
5221
5222
|
blocks: []
|
|
5222
5223
|
});
|
|
5223
|
-
this.dispatch(
|
|
5224
|
+
this.dispatch(Md(s));
|
|
5224
5225
|
}
|
|
5225
5226
|
}
|
|
5226
5227
|
class kb extends Ae {
|
|
@@ -5230,11 +5231,11 @@ class kb extends Ae {
|
|
|
5230
5231
|
A(this, "url", "/issue-attachments");
|
|
5231
5232
|
A(this, "initializeAttachments", Qs);
|
|
5232
5233
|
A(this, "addAttachments", Yn);
|
|
5233
|
-
A(this, "updateAttachments",
|
|
5234
|
+
A(this, "updateAttachments", Gd);
|
|
5234
5235
|
A(this, "removeAttachments", Jn);
|
|
5235
|
-
A(this, "removeAttachment",
|
|
5236
|
-
A(this, "setAttachment",
|
|
5237
|
-
A(this, "selectAttachment",
|
|
5236
|
+
A(this, "removeAttachment", Ld);
|
|
5237
|
+
A(this, "setAttachment", Vd);
|
|
5238
|
+
A(this, "selectAttachment", Wd);
|
|
5238
5239
|
}
|
|
5239
5240
|
buildOfflineAttachment(s) {
|
|
5240
5241
|
return O({
|
|
@@ -5280,12 +5281,12 @@ class qb extends Ae {
|
|
|
5280
5281
|
A(this, "name", "Issue Comment Attachment");
|
|
5281
5282
|
A(this, "url", "/issue-comment-attachments");
|
|
5282
5283
|
A(this, "initializeAttachments", Zs);
|
|
5283
|
-
A(this, "addAttachments",
|
|
5284
|
-
A(this, "updateAttachments",
|
|
5285
|
-
A(this, "removeAttachments",
|
|
5286
|
-
A(this, "removeAttachment",
|
|
5287
|
-
A(this, "setAttachment",
|
|
5288
|
-
A(this, "selectAttachment",
|
|
5284
|
+
A(this, "addAttachments", Yd);
|
|
5285
|
+
A(this, "updateAttachments", Qd);
|
|
5286
|
+
A(this, "removeAttachments", Zd);
|
|
5287
|
+
A(this, "removeAttachment", Xd);
|
|
5288
|
+
A(this, "setAttachment", Jd);
|
|
5289
|
+
A(this, "selectAttachment", su);
|
|
5289
5290
|
}
|
|
5290
5291
|
buildOfflineAttachment(s) {
|
|
5291
5292
|
return O({
|
|
@@ -5394,7 +5395,7 @@ class jb extends I {
|
|
|
5394
5395
|
blockers: [],
|
|
5395
5396
|
blocks: []
|
|
5396
5397
|
});
|
|
5397
|
-
this.dispatch(
|
|
5398
|
+
this.dispatch(nu(s));
|
|
5398
5399
|
}
|
|
5399
5400
|
}
|
|
5400
5401
|
class Mb extends I {
|
|
@@ -5489,7 +5490,7 @@ class Mb extends I {
|
|
|
5489
5490
|
issue: i.uuid,
|
|
5490
5491
|
changes: a
|
|
5491
5492
|
});
|
|
5492
|
-
this.dispatch(
|
|
5493
|
+
this.dispatch(Ju(c));
|
|
5493
5494
|
const o = this.enqueueRequest({
|
|
5494
5495
|
description: "Edit issue",
|
|
5495
5496
|
method: u.PATCH,
|
|
@@ -5499,20 +5500,20 @@ class Mb extends I {
|
|
|
5499
5500
|
blocks: [e.uuid]
|
|
5500
5501
|
});
|
|
5501
5502
|
return o.catch(() => {
|
|
5502
|
-
this.dispatch(ct(i)), this.dispatch(
|
|
5503
|
+
this.dispatch(ct(i)), this.dispatch(Xu(c.uuid));
|
|
5503
5504
|
}), [n, o];
|
|
5504
5505
|
}
|
|
5505
5506
|
async remove(e) {
|
|
5506
5507
|
const { store: s } = this.client, i = s.getState(), n = oi(e)(i);
|
|
5507
5508
|
if (!n)
|
|
5508
5509
|
throw new Error(`No issue with uuid ${e} found in the store`);
|
|
5509
|
-
const a =
|
|
5510
|
-
for (const d of Dd(e)(i))
|
|
5511
|
-
l[d.uuid] = d;
|
|
5510
|
+
const a = Hd(e)(i), c = tl(e)(i), o = Rd(e)(i), l = {};
|
|
5512
5511
|
for (const d of xd(e)(i))
|
|
5513
5512
|
l[d.uuid] = d;
|
|
5513
|
+
for (const d of zd(e)(i))
|
|
5514
|
+
l[d.uuid] = d;
|
|
5514
5515
|
const r = Object.values(l);
|
|
5515
|
-
this.dispatch(ri(e)), a.length > 0 && this.dispatch(Jn(a.map(({ uuid: d }) => d))), c.length > 0 && this.dispatch(
|
|
5516
|
+
this.dispatch(ri(e)), a.length > 0 && this.dispatch(Jn(a.map(({ uuid: d }) => d))), c.length > 0 && this.dispatch(Zu(c.map(({ uuid: d }) => d))), o.length > 0 && this.dispatch(Pt(o.map(({ uuid: d }) => d))), r.length > 0 && this.dispatch(Wn(r.map(({ uuid: d }) => d)));
|
|
5516
5517
|
try {
|
|
5517
5518
|
return await this.enqueueRequest({
|
|
5518
5519
|
description: "Delete issue",
|
|
@@ -5522,7 +5523,7 @@ class Mb extends I {
|
|
|
5522
5523
|
blocks: []
|
|
5523
5524
|
});
|
|
5524
5525
|
} catch (d) {
|
|
5525
|
-
throw this.dispatch(ci(n)), this.dispatch(Yn(a)), this.dispatch(
|
|
5526
|
+
throw this.dispatch(ci(n)), this.dispatch(Yn(a)), this.dispatch(Qu(c)), this.dispatch(It(o)), this.dispatch(Hn(r)), d;
|
|
5526
5527
|
}
|
|
5527
5528
|
}
|
|
5528
5529
|
async refreshStore(e) {
|
|
@@ -5536,7 +5537,7 @@ class Mb extends I {
|
|
|
5536
5537
|
blockers: [],
|
|
5537
5538
|
blocks: []
|
|
5538
5539
|
});
|
|
5539
|
-
this.dispatch(
|
|
5540
|
+
this.dispatch(ru(s));
|
|
5540
5541
|
}
|
|
5541
5542
|
}
|
|
5542
5543
|
class Cb extends Ae {
|
|
@@ -5545,12 +5546,12 @@ class Cb extends Ae {
|
|
|
5545
5546
|
A(this, "name", "Issue Type Attachment");
|
|
5546
5547
|
A(this, "url", "/issue-type-attachments");
|
|
5547
5548
|
A(this, "initializeAttachments", ui);
|
|
5548
|
-
A(this, "addAttachments",
|
|
5549
|
-
A(this, "updateAttachments",
|
|
5550
|
-
A(this, "removeAttachments",
|
|
5551
|
-
A(this, "removeAttachment",
|
|
5552
|
-
A(this, "setAttachment",
|
|
5553
|
-
A(this, "selectAttachment",
|
|
5549
|
+
A(this, "addAttachments", hu);
|
|
5550
|
+
A(this, "updateAttachments", pu);
|
|
5551
|
+
A(this, "removeAttachments", Au);
|
|
5552
|
+
A(this, "removeAttachment", fu);
|
|
5553
|
+
A(this, "setAttachment", mu);
|
|
5554
|
+
A(this, "selectAttachment", gu);
|
|
5554
5555
|
}
|
|
5555
5556
|
buildOfflineAttachment(s) {
|
|
5556
5557
|
return O({
|
|
@@ -5618,7 +5619,7 @@ class Db extends E {
|
|
|
5618
5619
|
};
|
|
5619
5620
|
c.push(T);
|
|
5620
5621
|
}
|
|
5621
|
-
this.dispatch(
|
|
5622
|
+
this.dispatch(Ru(a));
|
|
5622
5623
|
const o = this.enqueueRequest({
|
|
5623
5624
|
description: "Add issue type fields attachments",
|
|
5624
5625
|
method: u.POST,
|
|
@@ -5632,10 +5633,10 @@ class Db extends E {
|
|
|
5632
5633
|
blocks: a.map((r) => r.uuid)
|
|
5633
5634
|
});
|
|
5634
5635
|
return o.then((r) => {
|
|
5635
|
-
this.processPresignedUrls(r.presigned_urls), this.dispatch(
|
|
5636
|
+
this.processPresignedUrls(r.presigned_urls), this.dispatch(_u(r.attachments));
|
|
5636
5637
|
}).catch(() => {
|
|
5637
5638
|
this.dispatch(
|
|
5638
|
-
|
|
5639
|
+
Ou(
|
|
5639
5640
|
a.map((r) => r.uuid)
|
|
5640
5641
|
)
|
|
5641
5642
|
);
|
|
@@ -5652,7 +5653,7 @@ class Db extends E {
|
|
|
5652
5653
|
blockers: [e],
|
|
5653
5654
|
blocks: []
|
|
5654
5655
|
});
|
|
5655
|
-
this.dispatch(
|
|
5656
|
+
this.dispatch(Tu(s));
|
|
5656
5657
|
}
|
|
5657
5658
|
}
|
|
5658
5659
|
class xb extends I {
|
|
@@ -5663,7 +5664,7 @@ class xb extends I {
|
|
|
5663
5664
|
created_by: i,
|
|
5664
5665
|
submitted_at: n
|
|
5665
5666
|
});
|
|
5666
|
-
this.dispatch(
|
|
5667
|
+
this.dispatch(qu(a));
|
|
5667
5668
|
const c = this.enqueueRequest({
|
|
5668
5669
|
description: "Add Issue Type Fields",
|
|
5669
5670
|
method: u.POST,
|
|
@@ -5673,9 +5674,9 @@ class xb extends I {
|
|
|
5673
5674
|
blocks: [a.uuid]
|
|
5674
5675
|
});
|
|
5675
5676
|
return c.then((l) => {
|
|
5676
|
-
this.dispatch(
|
|
5677
|
+
this.dispatch(ju(l));
|
|
5677
5678
|
}).catch((l) => {
|
|
5678
|
-
throw this.dispatch(
|
|
5679
|
+
throw this.dispatch(Mu(a.uuid)), l;
|
|
5679
5680
|
}), [a, c];
|
|
5680
5681
|
}
|
|
5681
5682
|
async refreshStore(e) {
|
|
@@ -5689,7 +5690,7 @@ class xb extends I {
|
|
|
5689
5690
|
blockers: [],
|
|
5690
5691
|
blocks: []
|
|
5691
5692
|
});
|
|
5692
|
-
this.dispatch(
|
|
5693
|
+
this.dispatch(ku(s));
|
|
5693
5694
|
}
|
|
5694
5695
|
}
|
|
5695
5696
|
class zb extends E {
|
|
@@ -5734,7 +5735,7 @@ class zb extends E {
|
|
|
5734
5735
|
blocks: a.map((r) => r.uuid)
|
|
5735
5736
|
});
|
|
5736
5737
|
return o.then(({ presigned_urls: r, attachments: d }) => {
|
|
5737
|
-
this.processPresignedUrls(r), this.dispatch(
|
|
5738
|
+
this.processPresignedUrls(r), this.dispatch(zu(d));
|
|
5738
5739
|
}).catch((r) => {
|
|
5739
5740
|
throw this.dispatch(
|
|
5740
5741
|
gt(
|
|
@@ -5744,7 +5745,7 @@ class zb extends E {
|
|
|
5744
5745
|
}), [a, o.then(({ attachments: r }) => r)];
|
|
5745
5746
|
}
|
|
5746
5747
|
async bulkDelete(e) {
|
|
5747
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5748
|
+
const { store: s } = this.client, i = s.getState(), n = $u(e)(i);
|
|
5748
5749
|
this.dispatch(gt(e));
|
|
5749
5750
|
try {
|
|
5750
5751
|
await this.enqueueRequest({
|
|
@@ -5770,7 +5771,7 @@ class zb extends E {
|
|
|
5770
5771
|
blockers: [],
|
|
5771
5772
|
blocks: []
|
|
5772
5773
|
});
|
|
5773
|
-
this.dispatch(
|
|
5774
|
+
this.dispatch(xu(s));
|
|
5774
5775
|
}
|
|
5775
5776
|
}
|
|
5776
5777
|
class Ub extends I {
|
|
@@ -5823,7 +5824,7 @@ class Ub extends I {
|
|
|
5823
5824
|
const { store: s } = this.client, i = s.getState(), n = fi(e)(i);
|
|
5824
5825
|
if (!n)
|
|
5825
5826
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
5826
|
-
const a =
|
|
5827
|
+
const a = Vu(e)(i);
|
|
5827
5828
|
this.dispatch(pi(e)), this.dispatch(gt(a.map((c) => c.uuid)));
|
|
5828
5829
|
try {
|
|
5829
5830
|
await this.enqueueRequest({
|
|
@@ -5848,7 +5849,7 @@ class Ub extends I {
|
|
|
5848
5849
|
blockers: [],
|
|
5849
5850
|
blocks: []
|
|
5850
5851
|
});
|
|
5851
|
-
this.dispatch(
|
|
5852
|
+
this.dispatch(vu(s));
|
|
5852
5853
|
}
|
|
5853
5854
|
}
|
|
5854
5855
|
class $b extends I {
|
|
@@ -5859,7 +5860,7 @@ class $b extends I {
|
|
|
5859
5860
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5860
5861
|
created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id
|
|
5861
5862
|
});
|
|
5862
|
-
this.dispatch(
|
|
5863
|
+
this.dispatch(Bu(n));
|
|
5863
5864
|
const a = this.enqueueRequest({
|
|
5864
5865
|
method: u.POST,
|
|
5865
5866
|
url: "/issue-types/",
|
|
@@ -5881,7 +5882,7 @@ class $b extends I {
|
|
|
5881
5882
|
...n,
|
|
5882
5883
|
...e
|
|
5883
5884
|
};
|
|
5884
|
-
this.dispatch(
|
|
5885
|
+
this.dispatch(Nu(a));
|
|
5885
5886
|
const c = this.enqueueRequest({
|
|
5886
5887
|
method: u.PATCH,
|
|
5887
5888
|
url: `/issue-types/${e.uuid}/`,
|
|
@@ -5900,7 +5901,7 @@ class $b extends I {
|
|
|
5900
5901
|
if (!n)
|
|
5901
5902
|
throw new Error(`IssueType with uuid ${e} does not exist in the store.`);
|
|
5902
5903
|
const a = oa(e)(i);
|
|
5903
|
-
this.dispatch(gi(e)), this.dispatch(
|
|
5904
|
+
this.dispatch(gi(e)), this.dispatch(du(a.map((o) => o.uuid)));
|
|
5904
5905
|
const c = this.enqueueRequest({
|
|
5905
5906
|
method: u.DELETE,
|
|
5906
5907
|
url: `/issue-types/${e}/`,
|
|
@@ -5908,7 +5909,7 @@ class $b extends I {
|
|
|
5908
5909
|
blocks: []
|
|
5909
5910
|
});
|
|
5910
5911
|
return c.catch(() => {
|
|
5911
|
-
this.dispatch(Qe(n)), this.dispatch(
|
|
5912
|
+
this.dispatch(Qe(n)), this.dispatch(ou(a));
|
|
5912
5913
|
}), c;
|
|
5913
5914
|
}
|
|
5914
5915
|
async refreshStore(e) {
|
|
@@ -5921,7 +5922,7 @@ class $b extends I {
|
|
|
5921
5922
|
blockers: [],
|
|
5922
5923
|
blocks: []
|
|
5923
5924
|
});
|
|
5924
|
-
this.dispatch(
|
|
5925
|
+
this.dispatch(Lu(s));
|
|
5925
5926
|
}
|
|
5926
5927
|
}
|
|
5927
5928
|
class Vb extends I {
|
|
@@ -5936,16 +5937,16 @@ class Vb extends I {
|
|
|
5936
5937
|
blockers: [],
|
|
5937
5938
|
blocks: []
|
|
5938
5939
|
});
|
|
5939
|
-
this.dispatch(
|
|
5940
|
+
this.dispatch(Yu(s));
|
|
5940
5941
|
}
|
|
5941
5942
|
}
|
|
5942
|
-
const
|
|
5943
|
-
function
|
|
5943
|
+
const Uh = 1800;
|
|
5944
|
+
function $h(t) {
|
|
5944
5945
|
if (!t.access) throw new Error("Missing access token");
|
|
5945
5946
|
if (!t.refresh) throw new Error("Missing refresh token");
|
|
5946
5947
|
return { accessToken: t.access, refreshToken: t.refresh };
|
|
5947
5948
|
}
|
|
5948
|
-
class Gb extends
|
|
5949
|
+
class Gb extends xh {
|
|
5949
5950
|
constructor() {
|
|
5950
5951
|
super(...arguments);
|
|
5951
5952
|
// _getTokenPair and _getRenewedTokens don't need to use enqueueRequest from the BaseApiService because
|
|
@@ -5986,7 +5987,7 @@ class Gb extends Dh {
|
|
|
5986
5987
|
* Logs the user out
|
|
5987
5988
|
*/
|
|
5988
5989
|
clearAuth() {
|
|
5989
|
-
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(
|
|
5990
|
+
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(yo(!1)), this.clearTokens(), this.dispatch({ type: Ja }), this.dispatch({ type: Sh });
|
|
5990
5991
|
}
|
|
5991
5992
|
/**
|
|
5992
5993
|
* Attempts to renew tokens
|
|
@@ -6016,7 +6017,7 @@ class Gb extends Dh {
|
|
|
6016
6017
|
} catch {
|
|
6017
6018
|
n = i;
|
|
6018
6019
|
}
|
|
6019
|
-
return n - i <
|
|
6020
|
+
return n - i < Uh;
|
|
6020
6021
|
}
|
|
6021
6022
|
getAuthHeader() {
|
|
6022
6023
|
return `Bearer ${this.getAccessToken()}`;
|
|
@@ -6063,7 +6064,7 @@ class Gb extends Dh {
|
|
|
6063
6064
|
blockers: [],
|
|
6064
6065
|
blocks: []
|
|
6065
6066
|
}).then((n) => {
|
|
6066
|
-
this.setTokens(
|
|
6067
|
+
this.setTokens($h(n));
|
|
6067
6068
|
});
|
|
6068
6069
|
}
|
|
6069
6070
|
}
|
|
@@ -6166,7 +6167,7 @@ class Lb extends I {
|
|
|
6166
6167
|
});
|
|
6167
6168
|
for (const c of a)
|
|
6168
6169
|
i[c.uuid] = c;
|
|
6169
|
-
this.dispatch(
|
|
6170
|
+
this.dispatch(il(Object.values(i)));
|
|
6170
6171
|
}
|
|
6171
6172
|
}
|
|
6172
6173
|
class Bb extends I {
|
|
@@ -6180,11 +6181,11 @@ class Bb extends I {
|
|
|
6180
6181
|
blocks: [e.uuid]
|
|
6181
6182
|
});
|
|
6182
6183
|
return s.then(() => {
|
|
6183
|
-
this.dispatch(
|
|
6184
|
+
this.dispatch(ul(e));
|
|
6184
6185
|
}), s;
|
|
6185
6186
|
}
|
|
6186
6187
|
async remove(e) {
|
|
6187
|
-
return this.dispatch(
|
|
6188
|
+
return this.dispatch(ll(e.uuid)), this.dispatch(rl(e.user)), this.enqueueRequest({
|
|
6188
6189
|
description: "Remove organization access",
|
|
6189
6190
|
method: u.DELETE,
|
|
6190
6191
|
url: `/organization-accesses/${e.uuid}/`,
|
|
@@ -6203,7 +6204,7 @@ class Bb extends I {
|
|
|
6203
6204
|
blockers: [],
|
|
6204
6205
|
blocks: []
|
|
6205
6206
|
});
|
|
6206
|
-
this.dispatch(
|
|
6207
|
+
this.dispatch(dl(s));
|
|
6207
6208
|
}
|
|
6208
6209
|
}
|
|
6209
6210
|
class Nb extends I {
|
|
@@ -6253,12 +6254,12 @@ class Nb extends I {
|
|
|
6253
6254
|
blockers: [],
|
|
6254
6255
|
blocks: []
|
|
6255
6256
|
});
|
|
6256
|
-
i[a.uuid] = a, this.dispatch(
|
|
6257
|
+
i[a.uuid] = a, this.dispatch(Fl(Object.values(i)));
|
|
6257
6258
|
}
|
|
6258
6259
|
}
|
|
6259
6260
|
class Hb extends I {
|
|
6260
6261
|
async update(e) {
|
|
6261
|
-
return this.dispatch(
|
|
6262
|
+
return this.dispatch(pl(e)), this.enqueueRequest({
|
|
6262
6263
|
description: "Edit project access",
|
|
6263
6264
|
method: u.PATCH,
|
|
6264
6265
|
url: `/project-accesses/${e.uuid}/`,
|
|
@@ -6269,7 +6270,7 @@ class Hb extends I {
|
|
|
6269
6270
|
}
|
|
6270
6271
|
// TODO: Re-add user to project if removal fails
|
|
6271
6272
|
async remove(e) {
|
|
6272
|
-
return this.dispatch(
|
|
6273
|
+
return this.dispatch(fl(e)), this.enqueueRequest({
|
|
6273
6274
|
description: "Delete project access",
|
|
6274
6275
|
method: u.DELETE,
|
|
6275
6276
|
url: `/project-accesses/${e}/`,
|
|
@@ -6296,12 +6297,12 @@ class Wb extends Ae {
|
|
|
6296
6297
|
super(...arguments);
|
|
6297
6298
|
A(this, "name", "Project Attachment");
|
|
6298
6299
|
A(this, "url", "/project-attachments");
|
|
6299
|
-
A(this, "addAttachments",
|
|
6300
|
-
A(this, "updateAttachments",
|
|
6300
|
+
A(this, "addAttachments", Ul);
|
|
6301
|
+
A(this, "updateAttachments", Gl);
|
|
6301
6302
|
A(this, "removeAttachments", Ta);
|
|
6302
|
-
A(this, "removeAttachment",
|
|
6303
|
-
A(this, "setAttachment",
|
|
6304
|
-
A(this, "selectAttachment",
|
|
6303
|
+
A(this, "removeAttachment", Ll);
|
|
6304
|
+
A(this, "setAttachment", $l);
|
|
6305
|
+
A(this, "selectAttachment", Hl);
|
|
6305
6306
|
}
|
|
6306
6307
|
buildOfflineAttachment(s) {
|
|
6307
6308
|
return O({
|
|
@@ -6338,7 +6339,7 @@ class Wb extends Ae {
|
|
|
6338
6339
|
blockers: [],
|
|
6339
6340
|
blocks: []
|
|
6340
6341
|
});
|
|
6341
|
-
this.dispatch(
|
|
6342
|
+
this.dispatch(zl(i));
|
|
6342
6343
|
}
|
|
6343
6344
|
}
|
|
6344
6345
|
class Kb extends I {
|
|
@@ -6398,10 +6399,10 @@ class Kb extends I {
|
|
|
6398
6399
|
const o = Promise.resolve(a).then((l) => this.enqueueRequest(l));
|
|
6399
6400
|
return o.then((l) => {
|
|
6400
6401
|
this.dispatch(ki(l));
|
|
6401
|
-
}), this.dispatch(
|
|
6402
|
+
}), this.dispatch(th), this.dispatch(eh(null)), this.dispatch(Zl(!1)), [n, o];
|
|
6402
6403
|
}
|
|
6403
6404
|
delete(e) {
|
|
6404
|
-
return this.dispatch(
|
|
6405
|
+
return this.dispatch(Ql(e)), this.enqueueRequest({
|
|
6405
6406
|
method: u.DELETE,
|
|
6406
6407
|
url: `/projects/files/${e}`,
|
|
6407
6408
|
blockers: [e],
|
|
@@ -6416,7 +6417,7 @@ class Kb extends I {
|
|
|
6416
6417
|
blockers: [],
|
|
6417
6418
|
blocks: []
|
|
6418
6419
|
});
|
|
6419
|
-
this.dispatch(
|
|
6420
|
+
this.dispatch(Yl(s));
|
|
6420
6421
|
}
|
|
6421
6422
|
}
|
|
6422
6423
|
class Yb extends I {
|
|
@@ -6439,7 +6440,7 @@ class Yb extends I {
|
|
|
6439
6440
|
async update(e) {
|
|
6440
6441
|
if (!e.bounds && !e.canvas_bounds)
|
|
6441
6442
|
throw new Error("Project must either have bounds or canvas_bounds set");
|
|
6442
|
-
return this.dispatch(
|
|
6443
|
+
return this.dispatch(Tl(e)), await this.enqueueRequest({
|
|
6443
6444
|
description: "Update project",
|
|
6444
6445
|
method: u.PATCH,
|
|
6445
6446
|
url: `/projects/${e.uuid}/`,
|
|
@@ -6455,13 +6456,13 @@ class Yb extends I {
|
|
|
6455
6456
|
const { store: s } = this.client, i = s.getState(), n = kt(i), a = n[e];
|
|
6456
6457
|
if (!a)
|
|
6457
6458
|
throw new Error("Expected project to exist");
|
|
6458
|
-
const c =
|
|
6459
|
-
this.dispatch(
|
|
6460
|
-
const o =
|
|
6459
|
+
const c = ih(i).filter((d) => d.project === e);
|
|
6460
|
+
this.dispatch(Xl(c.map(({ uuid: d }) => d)));
|
|
6461
|
+
const o = Wl(a.uuid)(i);
|
|
6461
6462
|
this.dispatch(Ta(o.map(({ uuid: d }) => d)));
|
|
6462
|
-
const l =
|
|
6463
|
-
this.dispatch(
|
|
6464
|
-
const r =
|
|
6463
|
+
const l = yl(i);
|
|
6464
|
+
this.dispatch(Al(l.map(({ uuid: d }) => d))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(Rl(a.uuid));
|
|
6465
|
+
const r = nl(a.uuid)(i);
|
|
6465
6466
|
r && this.dispatch(fe({ ...r, project: null }));
|
|
6466
6467
|
try {
|
|
6467
6468
|
await this.enqueueRequest({
|
|
@@ -6472,7 +6473,7 @@ class Yb extends I {
|
|
|
6472
6473
|
blocks: []
|
|
6473
6474
|
}), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
|
|
6474
6475
|
} catch (d) {
|
|
6475
|
-
throw this.dispatch(
|
|
6476
|
+
throw this.dispatch(Sl(Object.values(n))), this.dispatch(fa(Object.values(l))), this.dispatch(Jl(c)), this.dispatch(Vl(o)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), r && this.dispatch(fe({ ...r, project: a.uuid })), d;
|
|
6476
6477
|
}
|
|
6477
6478
|
}
|
|
6478
6479
|
invite(e, s) {
|
|
@@ -6506,7 +6507,7 @@ class Yb extends I {
|
|
|
6506
6507
|
blockers: [e],
|
|
6507
6508
|
blocks: [e]
|
|
6508
6509
|
}).then(() => {
|
|
6509
|
-
this.dispatch(
|
|
6510
|
+
this.dispatch(_l(e));
|
|
6510
6511
|
});
|
|
6511
6512
|
}
|
|
6512
6513
|
}
|
|
@@ -6518,7 +6519,7 @@ class Jb extends I {
|
|
|
6518
6519
|
// TODO: uncomment once supported
|
|
6519
6520
|
// created_by: state.userReducer.currentUser.uuid,
|
|
6520
6521
|
});
|
|
6521
|
-
this.dispatch(
|
|
6522
|
+
this.dispatch(oh(s));
|
|
6522
6523
|
const i = this.enqueueRequest({
|
|
6523
6524
|
description: "Create team",
|
|
6524
6525
|
method: u.POST,
|
|
@@ -6619,7 +6620,7 @@ class Jb extends I {
|
|
|
6619
6620
|
blockers: [],
|
|
6620
6621
|
blocks: []
|
|
6621
6622
|
});
|
|
6622
|
-
this.dispatch(
|
|
6623
|
+
this.dispatch(rh(s));
|
|
6623
6624
|
}
|
|
6624
6625
|
}
|
|
6625
6626
|
class Qb extends I {
|
|
@@ -6642,7 +6643,7 @@ class Qb extends I {
|
|
|
6642
6643
|
});
|
|
6643
6644
|
for (const c of a)
|
|
6644
6645
|
i[c.id] = c;
|
|
6645
|
-
this.dispatch(
|
|
6646
|
+
this.dispatch(cl(Object.values(i)));
|
|
6646
6647
|
}
|
|
6647
6648
|
}
|
|
6648
6649
|
class Xb {
|
|
@@ -6685,7 +6686,7 @@ class Xb {
|
|
|
6685
6686
|
});
|
|
6686
6687
|
} else {
|
|
6687
6688
|
const c = this.store.dispatch(
|
|
6688
|
-
|
|
6689
|
+
Ml(a)
|
|
6689
6690
|
), o = (r) => {
|
|
6690
6691
|
if (r)
|
|
6691
6692
|
n.resolve(r.body);
|
|
@@ -6859,9 +6860,9 @@ class Ce {
|
|
|
6859
6860
|
}
|
|
6860
6861
|
const Zb = (t, e) => {
|
|
6861
6862
|
const s = new e(t);
|
|
6862
|
-
return
|
|
6863
|
+
return ph(s), mh(t), s;
|
|
6863
6864
|
};
|
|
6864
|
-
var
|
|
6865
|
+
var Vh = /* @__PURE__ */ ((t) => (t[t.USER_REGISTRATION = 0] = "USER_REGISTRATION", t[t.APPLICATION_INVITE = 2] = "APPLICATION_INVITE", t[t.PROJECT_INVITE = 4] = "PROJECT_INVITE", t[t.ORGANIZATION_INVITE = 6] = "ORGANIZATION_INVITE", t[t.ADD_EMAIL_DOMAIN = 8] = "ADD_EMAIL_DOMAIN", t[t.RESET_PASSWORD = 10] = "RESET_PASSWORD", t))(Vh || {});
|
|
6865
6866
|
export {
|
|
6866
6867
|
j as APIError,
|
|
6867
6868
|
eb as AgentService,
|
|
@@ -6887,8 +6888,8 @@ export {
|
|
|
6887
6888
|
Xb as BaseSDK,
|
|
6888
6889
|
pc as COMMON_AUTO_FIELDS,
|
|
6889
6890
|
bb as CategoryService,
|
|
6890
|
-
|
|
6891
|
-
|
|
6891
|
+
cm as DEFAULT_ISSUE_PRIORITY,
|
|
6892
|
+
am as DEFAULT_ISSUE_STATUS,
|
|
6892
6893
|
cc as DeferredPromise,
|
|
6893
6894
|
gb as DocumentAttachmentService,
|
|
6894
6895
|
Sb as DocumentService,
|
|
@@ -6938,25 +6939,25 @@ export {
|
|
|
6938
6939
|
ze as UNKNOWN_ERROR_MESSAGE,
|
|
6939
6940
|
Qb as UserService,
|
|
6940
6941
|
Ca as VERSION_REDUCER_KEY,
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6942
|
+
Vh as VerificationCodeType,
|
|
6943
|
+
Dl as _setLatestRetryTime,
|
|
6944
|
+
_l as acceptProjectInvite,
|
|
6944
6945
|
ts as addAsset,
|
|
6945
|
-
|
|
6946
|
+
wm as addAssetAttachment,
|
|
6946
6947
|
Wi as addAssetAttachments,
|
|
6947
6948
|
Qt as addAssetProcedure,
|
|
6948
|
-
|
|
6949
|
+
qm as addAssetProcedureAttachment,
|
|
6949
6950
|
kc as addAssetProcedureAttachments,
|
|
6950
6951
|
Lt as addAssetProcedureFieldValues,
|
|
6951
6952
|
Qm as addAssetProcedureFieldValuesAttachment,
|
|
6952
6953
|
ht as addAssetProcedureFieldValuesAttachments,
|
|
6953
|
-
|
|
6954
|
-
|
|
6954
|
+
cr as addAssetProcedureFieldValuesMany,
|
|
6955
|
+
Kc as addAssetProcedureFields,
|
|
6955
6956
|
Dm as addAssetProcedureFieldsAttachment,
|
|
6956
|
-
|
|
6957
|
+
Vc as addAssetProcedureFieldsAttachments,
|
|
6957
6958
|
Lm as addAssetProcedureFieldsMany,
|
|
6958
6959
|
Wt as addAssetProcedureInstance,
|
|
6959
|
-
|
|
6960
|
+
hr as addAssetProcedureInstances,
|
|
6960
6961
|
hp as addAssetProcedures,
|
|
6961
6962
|
Pp as addAssetStage,
|
|
6962
6963
|
as as addAssetStageCompletion,
|
|
@@ -6968,31 +6969,31 @@ export {
|
|
|
6968
6969
|
gs as addAssetTypeFieldValues,
|
|
6969
6970
|
Kp as addAssetTypeFieldValuesAttachment,
|
|
6970
6971
|
pt as addAssetTypeFieldValuesAttachments,
|
|
6971
|
-
|
|
6972
|
-
|
|
6972
|
+
uo as addAssetTypeFieldValuesMany,
|
|
6973
|
+
Qr as addAssetTypeFields,
|
|
6973
6974
|
jp as addAssetTypeFieldsAttachment,
|
|
6974
|
-
|
|
6975
|
+
Br as addAssetTypeFieldsAttachments,
|
|
6975
6976
|
$p as addAssetTypeFieldsMany,
|
|
6976
6977
|
rf as addAssetTypes,
|
|
6977
6978
|
un as addAssets,
|
|
6978
6979
|
vs as addCategory,
|
|
6979
6980
|
bc as addConversation,
|
|
6980
6981
|
gf as addDocumentAttachment,
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6982
|
+
Oo as addDocumentAttachments,
|
|
6983
|
+
Mo as addDocuments,
|
|
6984
|
+
Vo as addEmailDomain,
|
|
6984
6985
|
xs as addForm,
|
|
6985
6986
|
Dn as addFormRevision,
|
|
6986
6987
|
Ff as addFormRevisionAttachment,
|
|
6987
|
-
|
|
6988
|
-
|
|
6988
|
+
Qo as addFormRevisionAttachments,
|
|
6989
|
+
ad as addFormRevisions,
|
|
6989
6990
|
Vs as addFormSubmission,
|
|
6990
6991
|
Uf as addFormSubmissionAttachment,
|
|
6991
6992
|
At as addFormSubmissionAttachments,
|
|
6992
6993
|
It as addFormSubmissions,
|
|
6993
6994
|
Df as addForms,
|
|
6994
|
-
|
|
6995
|
-
|
|
6995
|
+
Fd as addGeoImage,
|
|
6996
|
+
vd as addGeoImages,
|
|
6996
6997
|
ci as addIssue,
|
|
6997
6998
|
Ks as addIssueAssociation,
|
|
6998
6999
|
Hn as addIssueAssociations,
|
|
@@ -7000,85 +7001,85 @@ export {
|
|
|
7000
7001
|
Yn as addIssueAttachments,
|
|
7001
7002
|
si as addIssueComment,
|
|
7002
7003
|
tA as addIssueCommentAttachment,
|
|
7003
|
-
|
|
7004
|
+
Yd as addIssueCommentAttachments,
|
|
7004
7005
|
aA as addIssueComments,
|
|
7005
|
-
|
|
7006
|
+
Bu as addIssueType,
|
|
7006
7007
|
dA as addIssueTypeAttachment,
|
|
7007
|
-
|
|
7008
|
+
hu as addIssueTypeAttachments,
|
|
7008
7009
|
mi as addIssueTypeFieldValues,
|
|
7009
7010
|
CA as addIssueTypeFieldValuesAttachment,
|
|
7010
7011
|
bt as addIssueTypeFieldValuesAttachments,
|
|
7011
7012
|
SA as addIssueTypeFieldValuesMany,
|
|
7012
|
-
|
|
7013
|
+
qu as addIssueTypeFields,
|
|
7013
7014
|
mA as addIssueTypeFieldsAttachment,
|
|
7014
|
-
|
|
7015
|
+
Ru as addIssueTypeFieldsAttachments,
|
|
7015
7016
|
PA as addIssueTypeFieldsMany,
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7017
|
+
Ju as addIssueUpdate,
|
|
7018
|
+
Qu as addIssueUpdates,
|
|
7019
|
+
ou as addIssues,
|
|
7019
7020
|
NA as addLicenses,
|
|
7020
7021
|
Oy as addOrganization,
|
|
7021
7022
|
_y as addOrganizations,
|
|
7022
7023
|
fy as addProject,
|
|
7023
7024
|
xy as addProjectAttachment,
|
|
7024
|
-
|
|
7025
|
+
Ul as addProjectAttachments,
|
|
7025
7026
|
Vy as addProjectFile,
|
|
7026
|
-
|
|
7027
|
+
Jl as addProjectFiles,
|
|
7027
7028
|
py as addProjects,
|
|
7028
|
-
|
|
7029
|
+
oh as addTeam,
|
|
7029
7030
|
XA as addUser,
|
|
7030
7031
|
QA as addUsers,
|
|
7031
7032
|
Tc as agentsReducer,
|
|
7032
7033
|
Bi as agentsSlice,
|
|
7033
|
-
|
|
7034
|
+
hm as areArraysEqual,
|
|
7034
7035
|
wc as assetAttachmentReducer,
|
|
7035
7036
|
Hi as assetAttachmentSlice,
|
|
7036
|
-
|
|
7037
|
+
Uc as assetProcedureAttachmentReducer,
|
|
7037
7038
|
Yi as assetProcedureAttachmentSlice,
|
|
7038
|
-
|
|
7039
|
+
nr as assetProcedureFieldValuesAttachmentReducer,
|
|
7039
7040
|
Zi as assetProcedureFieldValuesAttachmentSlice,
|
|
7040
|
-
|
|
7041
|
+
ur as assetProcedureFieldValuesReducer,
|
|
7041
7042
|
tn as assetProcedureFieldValuesSlice,
|
|
7042
|
-
|
|
7043
|
+
Hc as assetProcedureFieldsAttachmentReducer,
|
|
7043
7044
|
Ji as assetProcedureFieldsAttachmentSlice,
|
|
7044
|
-
|
|
7045
|
+
Xc as assetProcedureFieldsReducer,
|
|
7045
7046
|
Qi as assetProcedureFieldsSlice,
|
|
7046
|
-
|
|
7047
|
+
fr as assetProcedureInstanceReducer,
|
|
7047
7048
|
nn as assetProcedureInstanceSlice,
|
|
7048
|
-
|
|
7049
|
+
br as assetProcedureReducer,
|
|
7049
7050
|
rn as assetProcedureSlice,
|
|
7050
|
-
|
|
7051
|
+
Rr as assetReducer,
|
|
7051
7052
|
dn as assetSlice,
|
|
7052
|
-
|
|
7053
|
+
Pr as assetStageCompletionReducer,
|
|
7053
7054
|
mn as assetStageCompletionSlice,
|
|
7054
|
-
|
|
7055
|
+
kr as assetStageReducer,
|
|
7055
7056
|
fn as assetStageSlice,
|
|
7056
|
-
|
|
7057
|
+
Gr as assetTypeAttachmentReducer,
|
|
7057
7058
|
An as assetTypeAttachmentSlice,
|
|
7058
|
-
|
|
7059
|
+
ro as assetTypeFieldValuesAttachmentReducer,
|
|
7059
7060
|
Tn as assetTypeFieldValuesAttachmentSlice,
|
|
7060
|
-
|
|
7061
|
+
po as assetTypeFieldValuesReducer,
|
|
7061
7062
|
_n as assetTypeFieldValuesSlice,
|
|
7062
|
-
|
|
7063
|
+
Yr as assetTypeFieldsAttachmentReducer,
|
|
7063
7064
|
gn as assetTypeFieldsAttachmentSlice,
|
|
7064
|
-
|
|
7065
|
+
to as assetTypeFieldsReducer,
|
|
7065
7066
|
Sn as assetTypeFieldsSlice,
|
|
7066
|
-
|
|
7067
|
+
Ao as assetTypeReducer,
|
|
7067
7068
|
In as assetTypeSlice,
|
|
7068
|
-
|
|
7069
|
+
bo as authReducer,
|
|
7069
7070
|
_t as authSlice,
|
|
7070
|
-
|
|
7071
|
-
|
|
7071
|
+
bm as blobToBase64,
|
|
7072
|
+
Ro as categoryReducer,
|
|
7072
7073
|
Fn as categorySlice,
|
|
7073
7074
|
mf as clearTokens,
|
|
7074
|
-
|
|
7075
|
-
|
|
7075
|
+
ym as constructUploadedFilePayloads,
|
|
7076
|
+
um as coordinatesAreEqual,
|
|
7076
7077
|
_ as createModelAdapter,
|
|
7077
|
-
|
|
7078
|
-
|
|
7078
|
+
dm as createMultiPointGeometry,
|
|
7079
|
+
jl as createOfflineAction,
|
|
7079
7080
|
F as createPayload,
|
|
7080
|
-
|
|
7081
|
-
|
|
7081
|
+
om as createPointGeometry,
|
|
7082
|
+
rm as createSelectionAdapter,
|
|
7082
7083
|
ss as deleteAsset,
|
|
7083
7084
|
Oc as deleteAssetAttachment,
|
|
7084
7085
|
Ki as deleteAssetAttachments,
|
|
@@ -7088,235 +7089,235 @@ export {
|
|
|
7088
7089
|
Bt as deleteAssetProcedureFieldValues,
|
|
7089
7090
|
tp as deleteAssetProcedureFieldValuesAttachment,
|
|
7090
7091
|
mt as deleteAssetProcedureFieldValuesAttachments,
|
|
7091
|
-
|
|
7092
|
-
|
|
7092
|
+
or as deleteAssetProcedureFieldValuesMany,
|
|
7093
|
+
Jc as deleteAssetProcedureFields,
|
|
7093
7094
|
$m as deleteAssetProcedureFieldsAttachment,
|
|
7094
|
-
|
|
7095
|
+
Lc as deleteAssetProcedureFieldsAttachments,
|
|
7095
7096
|
Wm as deleteAssetProcedureFieldsMany,
|
|
7096
7097
|
Kt as deleteAssetProcedureInstance,
|
|
7097
|
-
|
|
7098
|
+
mr as deleteAssetProcedureInstances,
|
|
7098
7099
|
pp as deleteAssetProcedures,
|
|
7099
7100
|
Fp as deleteAssetStage,
|
|
7100
7101
|
rs as deleteAssetStageCompletion,
|
|
7101
7102
|
os as deleteAssetStageCompletions,
|
|
7102
7103
|
hs as deleteAssetStages,
|
|
7103
7104
|
Os as deleteAssetType,
|
|
7104
|
-
|
|
7105
|
+
xr as deleteAssetTypeAttachment,
|
|
7105
7106
|
bn as deleteAssetTypeAttachments,
|
|
7106
7107
|
Ss as deleteAssetTypeFieldValues,
|
|
7107
7108
|
Xp as deleteAssetTypeFieldValuesAttachment,
|
|
7108
7109
|
ft as deleteAssetTypeFieldValuesAttachments,
|
|
7109
|
-
|
|
7110
|
-
|
|
7110
|
+
ho as deleteAssetTypeFieldValuesMany,
|
|
7111
|
+
Zr as deleteAssetTypeFields,
|
|
7111
7112
|
xp as deleteAssetTypeFieldsAttachment,
|
|
7112
|
-
|
|
7113
|
+
Hr as deleteAssetTypeFieldsAttachments,
|
|
7113
7114
|
Bp as deleteAssetTypeFieldsMany,
|
|
7114
7115
|
df as deleteAssetTypes,
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7116
|
+
Sr as deleteAssets,
|
|
7117
|
+
To as deleteCategory,
|
|
7118
|
+
Fo as deleteDocumentAttachment,
|
|
7119
|
+
vo as deleteDocumentAttachments,
|
|
7120
|
+
Go as deleteEmailDomain,
|
|
7120
7121
|
zs as deleteForm,
|
|
7121
7122
|
xn as deleteFormRevision,
|
|
7122
7123
|
kf as deleteFormRevisionAttachment,
|
|
7123
|
-
|
|
7124
|
-
|
|
7124
|
+
Zo as deleteFormRevisionAttachments,
|
|
7125
|
+
cd as deleteFormRevisions,
|
|
7125
7126
|
Gs as deleteFormSubmission,
|
|
7126
7127
|
Lf as deleteFormSubmissionAttachment,
|
|
7127
7128
|
yt as deleteFormSubmissionAttachments,
|
|
7128
7129
|
Pt as deleteFormSubmissions,
|
|
7129
7130
|
Ns as deleteGeoImage,
|
|
7130
|
-
|
|
7131
|
+
Ed as deleteGeoImages,
|
|
7131
7132
|
ri as deleteIssue,
|
|
7132
7133
|
Ys as deleteIssueAssociation,
|
|
7133
7134
|
Wn as deleteIssueAssociations,
|
|
7134
|
-
|
|
7135
|
+
Ld as deleteIssueAttachment,
|
|
7135
7136
|
Jn as deleteIssueAttachments,
|
|
7136
7137
|
ii as deleteIssueComment,
|
|
7137
|
-
|
|
7138
|
-
|
|
7138
|
+
Xd as deleteIssueCommentAttachment,
|
|
7139
|
+
Zd as deleteIssueCommentAttachments,
|
|
7139
7140
|
cA as deleteIssueComments,
|
|
7140
|
-
|
|
7141
|
-
|
|
7141
|
+
fu as deleteIssueTypeAttachment,
|
|
7142
|
+
Au as deleteIssueTypeAttachments,
|
|
7142
7143
|
pi as deleteIssueTypeFieldValues,
|
|
7143
7144
|
UA as deleteIssueTypeFieldValuesAttachment,
|
|
7144
7145
|
gt as deleteIssueTypeFieldValuesAttachments,
|
|
7145
7146
|
OA as deleteIssueTypeFieldValuesMany,
|
|
7146
|
-
|
|
7147
|
+
Mu as deleteIssueTypeFields,
|
|
7147
7148
|
yA as deleteIssueTypeFieldsAttachment,
|
|
7148
|
-
|
|
7149
|
+
Ou as deleteIssueTypeFieldsAttachments,
|
|
7149
7150
|
EA as deleteIssueTypeFieldsMany,
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7151
|
+
Xu as deleteIssueUpdate,
|
|
7152
|
+
Zu as deleteIssueUpdates,
|
|
7153
|
+
du as deleteIssues,
|
|
7153
7154
|
Fy as deleteOrganization,
|
|
7154
|
-
|
|
7155
|
+
ll as deleteOrganizationAccess,
|
|
7155
7156
|
vy as deleteOrganizations,
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7157
|
+
Rl as deleteProject,
|
|
7158
|
+
fl as deleteProjectAccess,
|
|
7159
|
+
Al as deleteProjectAccesses,
|
|
7160
|
+
Ll as deleteProjectAttachment,
|
|
7160
7161
|
Ta as deleteProjectAttachments,
|
|
7161
|
-
|
|
7162
|
-
|
|
7162
|
+
Ql as deleteProjectFile,
|
|
7163
|
+
Xl as deleteProjectFiles,
|
|
7163
7164
|
yy as deleteProjects,
|
|
7164
7165
|
Mi as deleteTeam,
|
|
7165
7166
|
ty as deleteUser,
|
|
7166
7167
|
sy as deleteUsers,
|
|
7167
|
-
|
|
7168
|
+
_h as dequeue,
|
|
7168
7169
|
Ua as discard,
|
|
7169
|
-
|
|
7170
|
+
qo as documentAttachmentReducer,
|
|
7170
7171
|
wn as documentAttachmentSlice,
|
|
7171
7172
|
En as documentSlice,
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7173
|
+
zo as documentsReducer,
|
|
7174
|
+
gm as downloadFile,
|
|
7175
|
+
Am as downloadInMemoryFile,
|
|
7176
|
+
No as emailDomainsReducer,
|
|
7176
7177
|
kn as emailDomainsSlice,
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7178
|
+
Pm as emailRegex,
|
|
7179
|
+
Rh as enqueue,
|
|
7180
|
+
Ml as enqueueRequest,
|
|
7180
7181
|
b as fallbackToEmptyArray,
|
|
7181
7182
|
Ue as fallbackToEmptyObject,
|
|
7182
|
-
|
|
7183
|
+
Yo as fileReducer,
|
|
7183
7184
|
jn as fileSlice,
|
|
7184
7185
|
mc as fileToBlob,
|
|
7185
|
-
|
|
7186
|
-
|
|
7186
|
+
ld as formReducer,
|
|
7187
|
+
td as formRevisionAttachmentReducer,
|
|
7187
7188
|
Mn as formRevisionAttachmentSlice,
|
|
7188
|
-
|
|
7189
|
+
dd as formRevisionReducer,
|
|
7189
7190
|
Cn as formRevisionsSlice,
|
|
7190
7191
|
zn as formSlice,
|
|
7191
|
-
|
|
7192
|
+
bd as formSubmissionAttachmentReducer,
|
|
7192
7193
|
Un as formSubmissionAttachmentSlice,
|
|
7193
|
-
|
|
7194
|
+
Od as formSubmissionReducer,
|
|
7194
7195
|
Vn as formSubmissionSlice,
|
|
7195
|
-
|
|
7196
|
+
jd as geoImageReducer,
|
|
7196
7197
|
Bn as geoImageSlice,
|
|
7197
|
-
|
|
7198
|
+
fm as getFileIdentifier,
|
|
7198
7199
|
jt as getFileS3Key,
|
|
7199
7200
|
oc as getLocalDateString,
|
|
7200
|
-
|
|
7201
|
+
pm as getLocalRelativeDateString,
|
|
7201
7202
|
ve as getOutboxCoordinator,
|
|
7202
7203
|
hc as getRenamedFile,
|
|
7203
7204
|
De as hashFile,
|
|
7204
7205
|
Zb as initSDK,
|
|
7205
7206
|
xt as initializeAssetAttachments,
|
|
7206
7207
|
Ec as initializeAssetProcedureAttachments,
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7208
|
+
ar as initializeAssetProcedureFieldValues,
|
|
7209
|
+
Zc as initializeAssetProcedureFieldValuesAttachments,
|
|
7210
|
+
Wc as initializeAssetProcedureFields,
|
|
7211
|
+
$c as initializeAssetProcedureFieldsAttachments,
|
|
7212
|
+
lr as initializeAssetProcedureInstances,
|
|
7213
|
+
Ar as initializeAssetProcedures,
|
|
7214
|
+
_r as initializeAssetStageCompletions,
|
|
7215
|
+
wr as initializeAssetStages,
|
|
7216
|
+
Mr as initializeAssetTypeAttachments,
|
|
7217
|
+
oo as initializeAssetTypeFieldValues,
|
|
7218
|
+
so as initializeAssetTypeFieldValuesAttachments,
|
|
7219
|
+
Jr as initializeAssetTypeFields,
|
|
7220
|
+
Lr as initializeAssetTypeFieldsAttachments,
|
|
7221
|
+
fo as initializeAssetTypes,
|
|
7222
|
+
gr as initializeAssets,
|
|
7223
|
+
go as initializeCategories,
|
|
7223
7224
|
yc as initializeConversations,
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7225
|
+
_o as initializeDocumentAttachments,
|
|
7226
|
+
$o as initializeEmailDomains,
|
|
7227
|
+
Jo as initializeFormRevisionAttachments,
|
|
7228
|
+
nd as initializeFormRevisions,
|
|
7229
|
+
pd as initializeFormSubmissionAttachments,
|
|
7230
|
+
gd as initializeFormSubmissions,
|
|
7231
|
+
ud as initializeForms,
|
|
7232
|
+
Id as initializeGeoImages,
|
|
7233
|
+
Md as initializeIssueAssociations,
|
|
7233
7234
|
Qs as initializeIssueAttachments,
|
|
7234
7235
|
Zs as initializeIssueCommentAttachments,
|
|
7235
7236
|
ui as initializeIssueTypeAttachments,
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7237
|
+
vu as initializeIssueTypeFieldValues,
|
|
7238
|
+
xu as initializeIssueTypeFieldValuesAttachments,
|
|
7239
|
+
ku as initializeIssueTypeFields,
|
|
7240
|
+
Tu as initializeIssueTypeFieldsAttachments,
|
|
7241
|
+
Lu as initializeIssueTypes,
|
|
7242
|
+
Yu as initializeIssueUpdates,
|
|
7243
|
+
ru as initializeIssues,
|
|
7244
|
+
il as initializeLicences,
|
|
7245
|
+
dl as initializeOrganizationAccesses,
|
|
7245
7246
|
Ty as initializeOrganizations,
|
|
7246
7247
|
fa as initializeProjectAccesses,
|
|
7247
|
-
|
|
7248
|
-
|
|
7248
|
+
zl as initializeProjectAttachments,
|
|
7249
|
+
Yl as initializeProjectFiles,
|
|
7249
7250
|
hy as initializeProjects,
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7251
|
+
rh as initializeTeams,
|
|
7252
|
+
cl as initializeUsers,
|
|
7253
|
+
mm as isToday,
|
|
7254
|
+
$d as issueAssociationReducer,
|
|
7254
7255
|
Nn as issueAssociationSlice,
|
|
7255
|
-
|
|
7256
|
+
Kd as issueAttachmentReducer,
|
|
7256
7257
|
Kn as issueAttachmentSlice,
|
|
7257
|
-
|
|
7258
|
+
iu as issueCommentAttachmentReducer,
|
|
7258
7259
|
Qn as issueCommentAttachmentSlice,
|
|
7259
|
-
|
|
7260
|
+
cu as issueCommentReducer,
|
|
7260
7261
|
Xn as issueCommentSlice,
|
|
7261
|
-
|
|
7262
|
+
lu as issueReducer,
|
|
7262
7263
|
Zn as issueSlice,
|
|
7263
|
-
|
|
7264
|
+
Su as issueTypeAttachmentReducer,
|
|
7264
7265
|
ea as issueTypeAttachmentSlice,
|
|
7265
|
-
|
|
7266
|
+
Gu as issueTypeFieldValuesAttachmentReducer,
|
|
7266
7267
|
aa as issueTypeFieldValuesAttachmentSlice,
|
|
7267
|
-
|
|
7268
|
+
Eu as issueTypeFieldValuesReducer,
|
|
7268
7269
|
sa as issueTypeFieldValuesSlice,
|
|
7269
|
-
|
|
7270
|
+
Fu as issueTypeFieldsAttachmentReducer,
|
|
7270
7271
|
ta as issueTypeFieldsAttachmentSlice,
|
|
7271
|
-
|
|
7272
|
+
Du as issueTypeFieldsReducer,
|
|
7272
7273
|
na as issueTypeFieldsSlice,
|
|
7273
|
-
|
|
7274
|
+
Ku as issueTypeReducer,
|
|
7274
7275
|
ra as issueTypeSlice,
|
|
7275
|
-
|
|
7276
|
+
sl as issueUpdateReducer,
|
|
7276
7277
|
da as issueUpdateSlice,
|
|
7277
|
-
|
|
7278
|
+
al as licenseReducer,
|
|
7278
7279
|
ua as licenseSlice,
|
|
7279
|
-
|
|
7280
|
-
|
|
7280
|
+
Sm as logOnlyOnce,
|
|
7281
|
+
Cl as markAsDeleted,
|
|
7281
7282
|
Dy as markForDeletion,
|
|
7282
7283
|
Li as memoize,
|
|
7283
|
-
|
|
7284
|
+
Co as moveDocument,
|
|
7284
7285
|
O as offline,
|
|
7285
|
-
|
|
7286
|
+
Im as onlyUniqueHashes,
|
|
7286
7287
|
Ac as onlyUniqueOfflineIds,
|
|
7287
|
-
|
|
7288
|
+
ml as organizationAccessReducer,
|
|
7288
7289
|
ha as organizationAccessSlice,
|
|
7289
|
-
|
|
7290
|
+
ql as organizationReducer,
|
|
7290
7291
|
ba as organizationSlice,
|
|
7291
|
-
|
|
7292
|
+
xl as outboxReducer,
|
|
7292
7293
|
ga as outboxSlice,
|
|
7293
7294
|
Zy as overmapEnhancer,
|
|
7294
|
-
|
|
7295
|
+
gh as overmapReducers,
|
|
7295
7296
|
Xy as overmapRootReducer,
|
|
7296
7297
|
Da as performRequest,
|
|
7297
|
-
|
|
7298
|
+
gl as projectAccessReducer,
|
|
7298
7299
|
pa as projectAccessSlice,
|
|
7299
|
-
|
|
7300
|
+
Kl as projectAttachmentReducer,
|
|
7300
7301
|
Sa as projectAttachmentSlice,
|
|
7301
|
-
|
|
7302
|
+
nh as projectFileReducer,
|
|
7302
7303
|
Ra as projectFileSlice,
|
|
7303
|
-
|
|
7304
|
+
Ol as projectReducer,
|
|
7304
7305
|
ya as projectSlice,
|
|
7305
|
-
|
|
7306
|
+
ch as rehydratedReducer,
|
|
7306
7307
|
_a as rehydratedSlice,
|
|
7307
7308
|
qs as removeDocuments,
|
|
7308
7309
|
gi as removeIssueType,
|
|
7309
|
-
|
|
7310
|
+
rl as removeUser,
|
|
7310
7311
|
Ly as resetProjectFileObjectUrls,
|
|
7311
|
-
|
|
7312
|
+
Sh as resetStore,
|
|
7312
7313
|
y as restructureCreateSelectorWithArgs,
|
|
7313
|
-
|
|
7314
|
+
th as saveActiveProjectFileBounds,
|
|
7314
7315
|
pf as selectAccessToken,
|
|
7315
7316
|
oy as selectActiveOrganizationAccess,
|
|
7316
7317
|
Ny as selectActiveProjectFileId,
|
|
7317
7318
|
WA as selectActiveStatusLicenses,
|
|
7318
|
-
|
|
7319
|
-
|
|
7319
|
+
Eo as selectAllDocumentAttachments,
|
|
7320
|
+
Nl as selectAllProjectAttachments,
|
|
7320
7321
|
Of as selectAncestorIdsOfDocument,
|
|
7321
7322
|
Fc as selectAssetAttachmentById,
|
|
7322
7323
|
Ic as selectAssetAttachmentMapping,
|
|
@@ -7328,166 +7329,166 @@ export {
|
|
|
7328
7329
|
Zt as selectAssetProcedureById,
|
|
7329
7330
|
sn as selectAssetProcedureFieldValues,
|
|
7330
7331
|
sp as selectAssetProcedureFieldValuesAttachmentById,
|
|
7331
|
-
|
|
7332
|
-
|
|
7332
|
+
tr as selectAssetProcedureFieldValuesAttachments,
|
|
7333
|
+
sr as selectAssetProcedureFieldValuesAttachmentsByIds,
|
|
7333
7334
|
en as selectAssetProcedureFieldValuesAttachmentsMapping,
|
|
7334
7335
|
Nt as selectAssetProcedureFieldValuesById,
|
|
7335
|
-
|
|
7336
|
+
dr as selectAssetProcedureFieldValuesMapping,
|
|
7336
7337
|
ap as selectAssetProcedureFieldValuesOfAsset,
|
|
7337
7338
|
Xi as selectAssetProcedureFields,
|
|
7338
7339
|
Gm as selectAssetProcedureFieldsAttachmentById,
|
|
7339
|
-
|
|
7340
|
-
|
|
7340
|
+
Nc as selectAssetProcedureFieldsAttachments,
|
|
7341
|
+
Bc as selectAssetProcedureFieldsAttachmentsMapping,
|
|
7341
7342
|
Jm as selectAssetProcedureFieldsById,
|
|
7342
|
-
|
|
7343
|
+
Qc as selectAssetProcedureFieldsMapping,
|
|
7343
7344
|
Km as selectAssetProcedureFieldsOfAssetProcedure,
|
|
7344
7345
|
Yt as selectAssetProcedureInstanceById,
|
|
7345
7346
|
cn as selectAssetProcedureInstances,
|
|
7346
7347
|
lp as selectAssetProcedureInstancesByIds,
|
|
7347
7348
|
an as selectAssetProcedureInstancesMapping,
|
|
7348
|
-
|
|
7349
|
+
pr as selectAssetProcedureInstancesOfAssetProcedure,
|
|
7349
7350
|
up as selectAssetProcedureInstancesOfAssetType,
|
|
7350
|
-
|
|
7351
|
+
yr as selectAssetProcedures,
|
|
7351
7352
|
bp as selectAssetProceduresByIds,
|
|
7352
7353
|
on as selectAssetProceduresMapping,
|
|
7353
7354
|
yp as selectAssetProceduresOfOrganization,
|
|
7354
|
-
|
|
7355
|
-
|
|
7355
|
+
qr as selectAssetStageById,
|
|
7356
|
+
Fr as selectAssetStageCompletionById,
|
|
7356
7357
|
pn as selectAssetStageCompletionMapping,
|
|
7357
7358
|
Op as selectAssetStageCompletions,
|
|
7358
|
-
|
|
7359
|
-
|
|
7359
|
+
vr as selectAssetStageCompletionsByIds,
|
|
7360
|
+
jr as selectAssetStages,
|
|
7360
7361
|
ms as selectAssetStagesByIds,
|
|
7361
7362
|
vp as selectAssetStagesMappingOfAssetProcedure,
|
|
7362
7363
|
wp as selectAssetStagesOfAssetProcedure,
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7364
|
+
$r as selectAssetTypeAttachmentById,
|
|
7365
|
+
zr as selectAssetTypeAttachmentMapping,
|
|
7366
|
+
Ur as selectAssetTypeAttachments,
|
|
7366
7367
|
Is as selectAssetTypeById,
|
|
7367
7368
|
On as selectAssetTypeFieldValues,
|
|
7368
7369
|
Zp as selectAssetTypeFieldValuesAttachmentById,
|
|
7369
|
-
|
|
7370
|
-
|
|
7370
|
+
no as selectAssetTypeFieldValuesAttachments,
|
|
7371
|
+
ao as selectAssetTypeFieldValuesAttachmentsByIds,
|
|
7371
7372
|
Rn as selectAssetTypeFieldValuesAttachmentsMapping,
|
|
7372
7373
|
Ts as selectAssetTypeFieldValuesById,
|
|
7373
|
-
|
|
7374
|
+
mo as selectAssetTypeFieldValuesMapping,
|
|
7374
7375
|
sf as selectAssetTypeFieldValuesOfAsset,
|
|
7375
7376
|
Rt as selectAssetTypeFields,
|
|
7376
7377
|
Up as selectAssetTypeFieldsAttachmentById,
|
|
7377
|
-
|
|
7378
|
-
|
|
7378
|
+
Kr as selectAssetTypeFieldsAttachments,
|
|
7379
|
+
Wr as selectAssetTypeFieldsAttachmentsMapping,
|
|
7379
7380
|
Wp as selectAssetTypeFieldsById,
|
|
7380
|
-
|
|
7381
|
+
eo as selectAssetTypeFieldsMapping,
|
|
7381
7382
|
Np as selectAssetTypeFieldsOfAssetType,
|
|
7382
7383
|
nf as selectAssetTypeValuesOfAssetType,
|
|
7383
7384
|
uf as selectAssetTypes,
|
|
7384
7385
|
lf as selectAssetTypesByIds,
|
|
7385
7386
|
Pn as selectAssetTypesMapping,
|
|
7386
|
-
|
|
7387
|
+
Tr as selectAssets,
|
|
7387
7388
|
Rp as selectAssetsByIds,
|
|
7388
7389
|
ln as selectAssetsMapping,
|
|
7389
7390
|
hn as selectAssetsOfAssetType,
|
|
7390
7391
|
vc as selectAttachmentsOfAsset,
|
|
7391
|
-
|
|
7392
|
-
|
|
7392
|
+
Cm as selectAttachmentsOfAssetProcedure,
|
|
7393
|
+
ir as selectAttachmentsOfAssetProcedureFieldValues,
|
|
7393
7394
|
Vm as selectAttachmentsOfAssetProcedureFields,
|
|
7394
|
-
|
|
7395
|
-
|
|
7395
|
+
Vr as selectAttachmentsOfAssetType,
|
|
7396
|
+
co as selectAttachmentsOfAssetTypeFieldValues,
|
|
7396
7397
|
zp as selectAttachmentsOfAssetTypeFields,
|
|
7397
7398
|
Rf as selectAttachmentsOfDocument,
|
|
7398
7399
|
qf as selectAttachmentsOfFormRevision,
|
|
7399
|
-
|
|
7400
|
-
|
|
7400
|
+
yd as selectAttachmentsOfFormSubmission,
|
|
7401
|
+
Hd as selectAttachmentsOfIssue,
|
|
7401
7402
|
nA as selectAttachmentsOfIssueComment,
|
|
7402
7403
|
hA as selectAttachmentsOfIssueType,
|
|
7403
|
-
|
|
7404
|
+
Vu as selectAttachmentsOfIssueTypeFieldValues,
|
|
7404
7405
|
bA as selectAttachmentsOfIssueTypeFields,
|
|
7405
|
-
|
|
7406
|
+
Wl as selectAttachmentsOfProject,
|
|
7406
7407
|
Af as selectCategories,
|
|
7407
7408
|
yf as selectCategoriesByIds,
|
|
7408
7409
|
ws as selectCategoryById,
|
|
7409
7410
|
vn as selectCategoryMapping,
|
|
7410
7411
|
rA as selectCommentsOfIssue,
|
|
7411
|
-
|
|
7412
|
+
vm as selectConversation,
|
|
7412
7413
|
Ni as selectConversationMapping,
|
|
7413
|
-
|
|
7414
|
+
Fm as selectConversations,
|
|
7414
7415
|
wt as selectCurrentUser,
|
|
7415
7416
|
My as selectDeletedRequests,
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7417
|
+
ko as selectDocumentAttachmentById,
|
|
7418
|
+
wo as selectDocumentAttachmentMapping,
|
|
7419
|
+
xo as selectDocumentById,
|
|
7420
|
+
Do as selectDocuments,
|
|
7420
7421
|
_f as selectDocumentsByIds,
|
|
7421
7422
|
xe as selectDocumentsMapping,
|
|
7422
|
-
|
|
7423
|
-
|
|
7423
|
+
Bo as selectEmailDomains,
|
|
7424
|
+
Lo as selectEmailDomainsAsMapping,
|
|
7424
7425
|
Pf as selectEmailDomainsOfOrganization,
|
|
7425
7426
|
cp as selectFieldValuesOfAssetProcedureInstance,
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7427
|
+
md as selectFormById,
|
|
7428
|
+
hd as selectFormMapping,
|
|
7429
|
+
ed as selectFormRevisionAttachmentsMapping,
|
|
7429
7430
|
jf as selectFormRevisionById,
|
|
7430
7431
|
Ot as selectFormRevisionMapping,
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7432
|
+
rd as selectFormRevisions,
|
|
7433
|
+
od as selectFormRevisionsOfForm,
|
|
7434
|
+
Ad as selectFormSubmissionAttachemntsByIds,
|
|
7434
7435
|
$n as selectFormSubmissionAttachmentsMapping,
|
|
7435
7436
|
Ls as selectFormSubmissionById,
|
|
7436
7437
|
Ln as selectFormSubmissions,
|
|
7437
7438
|
Gn as selectFormSubmissionsMapping,
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7439
|
+
_d as selectFormSubmissionsOfAsset,
|
|
7440
|
+
Td as selectFormSubmissionsOfForm,
|
|
7441
|
+
Rd as selectFormSubmissionsOfIssue,
|
|
7441
7442
|
zf as selectForms,
|
|
7442
7443
|
Hs as selectGeoImageById,
|
|
7443
|
-
|
|
7444
|
-
|
|
7444
|
+
kd as selectGeoImageMapping,
|
|
7445
|
+
qd as selectGeoImages,
|
|
7445
7446
|
Wf as selectGeoImagesOfProject,
|
|
7446
7447
|
Hy as selectIsImportingProjectFile,
|
|
7447
7448
|
ff as selectIsLoggedIn,
|
|
7448
|
-
|
|
7449
|
+
Dd as selectIssueAssociationById,
|
|
7449
7450
|
it as selectIssueAssociationMapping,
|
|
7450
7451
|
Qf as selectIssueAssociations,
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7452
|
+
Ud as selectIssueAssociationsOfAsset,
|
|
7453
|
+
zd as selectIssueAssociationsOfIssue,
|
|
7454
|
+
xd as selectIssueAssociationsToIssue,
|
|
7455
|
+
Wd as selectIssueAttachmentById,
|
|
7456
|
+
Bd as selectIssueAttachmentMapping,
|
|
7457
|
+
Nd as selectIssueAttachments,
|
|
7457
7458
|
oi as selectIssueById,
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7459
|
+
su as selectIssueCommentAttachmentById,
|
|
7460
|
+
eu as selectIssueCommentAttachmentMapping,
|
|
7461
|
+
tu as selectIssueCommentAttachments,
|
|
7461
7462
|
ni as selectIssueCommentById,
|
|
7462
|
-
|
|
7463
|
+
au as selectIssueCommentMapping,
|
|
7463
7464
|
bf as selectIssueCountOfCategory,
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7465
|
+
uu as selectIssueMapping,
|
|
7466
|
+
gu as selectIssueTypeAttachmentById,
|
|
7467
|
+
yu as selectIssueTypeAttachmentMapping,
|
|
7468
|
+
bu as selectIssueTypeAttachments,
|
|
7468
7469
|
Si as selectIssueTypeById,
|
|
7469
7470
|
ia as selectIssueTypeFieldValues,
|
|
7470
7471
|
$A as selectIssueTypeFieldValuesAttachmentById,
|
|
7471
|
-
|
|
7472
|
-
|
|
7472
|
+
Uu as selectIssueTypeFieldValuesAttachments,
|
|
7473
|
+
$u as selectIssueTypeFieldValuesAttachmentsByIds,
|
|
7473
7474
|
ca as selectIssueTypeFieldValuesAttachmentsMapping,
|
|
7474
7475
|
fi as selectIssueTypeFieldValuesById,
|
|
7475
|
-
|
|
7476
|
+
wu as selectIssueTypeFieldValuesMapping,
|
|
7476
7477
|
IA as selectIssueTypeFieldValuesOfIssue,
|
|
7477
7478
|
Ft as selectIssueTypeFields,
|
|
7478
7479
|
gA as selectIssueTypeFieldsAttachmentById,
|
|
7479
|
-
|
|
7480
|
-
|
|
7480
|
+
Pu as selectIssueTypeFieldsAttachments,
|
|
7481
|
+
Iu as selectIssueTypeFieldsAttachmentsMapping,
|
|
7481
7482
|
MA as selectIssueTypeFieldsById,
|
|
7482
|
-
|
|
7483
|
+
Cu as selectIssueTypeFieldsMapping,
|
|
7483
7484
|
kA as selectIssueTypeFieldsOfIssueType,
|
|
7484
|
-
|
|
7485
|
+
Hu as selectIssueTypeMapping,
|
|
7485
7486
|
jA as selectIssueTypeValuesOfIssueType,
|
|
7486
|
-
|
|
7487
|
+
Wu as selectIssueTypes,
|
|
7487
7488
|
VA as selectIssueTypesByIds,
|
|
7488
7489
|
GA as selectIssueTypesOfOrganization,
|
|
7489
|
-
|
|
7490
|
-
|
|
7490
|
+
el as selectIssueUpdateMapping,
|
|
7491
|
+
tl as selectIssueUpdatesOfIssue,
|
|
7491
7492
|
oA as selectIssuesByIds,
|
|
7492
7493
|
oa as selectIssuesOfIssueType,
|
|
7493
7494
|
LA as selectIssuesOfIssueTypeCount,
|
|
@@ -7497,35 +7498,35 @@ export {
|
|
|
7497
7498
|
qA as selectLatestIssueTypeFieldsOfIssueType,
|
|
7498
7499
|
Cy as selectLatestRetryTime,
|
|
7499
7500
|
HA as selectLicense,
|
|
7500
|
-
|
|
7501
|
+
nl as selectLicenseForProject,
|
|
7501
7502
|
vt as selectLicenses,
|
|
7502
7503
|
KA as selectLicensesForProjectsMapping,
|
|
7503
7504
|
qy as selectLicensesOfOrganization,
|
|
7504
7505
|
_p as selectNumberOfAssetsOfAssetType,
|
|
7505
7506
|
ry as selectOrganizationAccessById,
|
|
7506
7507
|
dy as selectOrganizationAccessForUser,
|
|
7507
|
-
|
|
7508
|
+
hl as selectOrganizationAccessUserMapping,
|
|
7508
7509
|
ma as selectOrganizationAccesses,
|
|
7509
7510
|
wy as selectOrganizationById,
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7511
|
+
kl as selectOrganizationUsersAsMapping,
|
|
7512
|
+
El as selectOrganizationUsersIds,
|
|
7513
|
+
wl as selectOrganizations,
|
|
7514
|
+
vl as selectOrganizationsMapping,
|
|
7514
7515
|
Ey as selectOrganizationsWithAccess,
|
|
7515
7516
|
uy as selectProjectAccessById,
|
|
7516
7517
|
ly as selectProjectAccessForUser,
|
|
7517
7518
|
Aa as selectProjectAccessMapping,
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7519
|
+
bl as selectProjectAccessUserMapping,
|
|
7520
|
+
yl as selectProjectAccesses,
|
|
7521
|
+
Hl as selectProjectAttachmentById,
|
|
7522
|
+
Bl as selectProjectAttachmentMapping,
|
|
7522
7523
|
gy as selectProjectById,
|
|
7523
7524
|
By as selectProjectFileById,
|
|
7524
|
-
|
|
7525
|
-
|
|
7525
|
+
sh as selectProjectFileMapping,
|
|
7526
|
+
ih as selectProjectFiles,
|
|
7526
7527
|
kt as selectProjectMapping,
|
|
7527
|
-
|
|
7528
|
-
|
|
7528
|
+
Pl as selectProjectUsersAsMapping,
|
|
7529
|
+
Il as selectProjectUsersIds,
|
|
7529
7530
|
by as selectProjects,
|
|
7530
7531
|
ky as selectProjectsOfOrganization,
|
|
7531
7532
|
Ky as selectRehydrated,
|
|
@@ -7539,17 +7540,17 @@ export {
|
|
|
7539
7540
|
Ia as selectTeamsMapping,
|
|
7540
7541
|
Jy as selectTeamsOfOrganization,
|
|
7541
7542
|
Qy as selectTeamsOfUser,
|
|
7542
|
-
|
|
7543
|
+
Ko as selectUploadUrl,
|
|
7543
7544
|
ay as selectUserById,
|
|
7544
7545
|
cy as selectUsersByIds,
|
|
7545
7546
|
Et as selectUsersMapping,
|
|
7546
|
-
|
|
7547
|
+
eh as setActiveProjectFileId,
|
|
7547
7548
|
Sp as setAsset,
|
|
7548
7549
|
Rc as setAssetAttachment,
|
|
7549
|
-
|
|
7550
|
+
Em as setAssetAttachments,
|
|
7550
7551
|
fp as setAssetProcedure,
|
|
7551
7552
|
qc as setAssetProcedureAttachment,
|
|
7552
|
-
|
|
7553
|
+
jm as setAssetProcedureAttachments,
|
|
7553
7554
|
ip as setAssetProcedureFieldValues,
|
|
7554
7555
|
Xm as setAssetProcedureFieldValuesAttachment,
|
|
7555
7556
|
Zm as setAssetProcedureFieldValuesAttachments,
|
|
@@ -7561,10 +7562,10 @@ export {
|
|
|
7561
7562
|
op as setAssetProcedureInstance,
|
|
7562
7563
|
dp as setAssetProcedureInstances,
|
|
7563
7564
|
Ap as setAssetProcedures,
|
|
7564
|
-
|
|
7565
|
+
Er as setAssetStage,
|
|
7565
7566
|
Ip as setAssetStages,
|
|
7566
7567
|
af as setAssetType,
|
|
7567
|
-
|
|
7568
|
+
Cr as setAssetTypeAttachment,
|
|
7568
7569
|
kp as setAssetTypeAttachments,
|
|
7569
7570
|
ef as setAssetTypeFieldValues,
|
|
7570
7571
|
Yp as setAssetTypeFieldValuesAttachment,
|
|
@@ -7578,11 +7579,11 @@ export {
|
|
|
7578
7579
|
Tp as setAssets,
|
|
7579
7580
|
gc as setConversation,
|
|
7580
7581
|
iy as setCurrentUser,
|
|
7581
|
-
|
|
7582
|
+
Io as setDocumentAttachment,
|
|
7582
7583
|
Sf as setDocumentAttachments,
|
|
7583
|
-
|
|
7584
|
+
jo as setDocuments,
|
|
7584
7585
|
Cf as setForm,
|
|
7585
|
-
|
|
7586
|
+
id as setFormRevision,
|
|
7586
7587
|
vf as setFormRevisionAttachment,
|
|
7587
7588
|
wf as setFormRevisionAttachments,
|
|
7588
7589
|
at as setFormSubmission,
|
|
@@ -7590,18 +7591,18 @@ export {
|
|
|
7590
7591
|
Vf as setFormSubmissionAttachments,
|
|
7591
7592
|
Bf as setFormSubmissions,
|
|
7592
7593
|
Ye as setGeoImage,
|
|
7593
|
-
|
|
7594
|
-
|
|
7594
|
+
Pd as setGeoImages,
|
|
7595
|
+
Zl as setIsImportingProjectFile,
|
|
7595
7596
|
Yf as setIssueAssociation,
|
|
7596
7597
|
Kf as setIssueAssociations,
|
|
7597
|
-
|
|
7598
|
+
Vd as setIssueAttachment,
|
|
7598
7599
|
Zf as setIssueAttachments,
|
|
7599
7600
|
ti as setIssueComment,
|
|
7600
|
-
|
|
7601
|
+
Jd as setIssueCommentAttachment,
|
|
7601
7602
|
sA as setIssueCommentAttachments,
|
|
7602
|
-
|
|
7603
|
+
nu as setIssueComments,
|
|
7603
7604
|
Qe as setIssueType,
|
|
7604
|
-
|
|
7605
|
+
mu as setIssueTypeAttachment,
|
|
7605
7606
|
uA as setIssueTypeAttachments,
|
|
7606
7607
|
TA as setIssueTypeFieldValues,
|
|
7607
7608
|
DA as setIssueTypeFieldValuesAttachment,
|
|
@@ -7612,112 +7613,112 @@ export {
|
|
|
7612
7613
|
fA as setIssueTypeFieldsAttachments,
|
|
7613
7614
|
vA as setIssueTypeFieldsMany,
|
|
7614
7615
|
BA as setIssueUpdate,
|
|
7615
|
-
|
|
7616
|
+
yo as setLoggedIn,
|
|
7616
7617
|
Ry as setOrganization,
|
|
7617
|
-
|
|
7618
|
+
Fl as setOrganizations,
|
|
7618
7619
|
ny as setProfilePicture,
|
|
7619
7620
|
my as setProject,
|
|
7620
|
-
|
|
7621
|
-
|
|
7621
|
+
$l as setProjectAttachment,
|
|
7622
|
+
Vl as setProjectAttachments,
|
|
7622
7623
|
Uy as setProjectFile,
|
|
7623
7624
|
$y as setProjectFiles,
|
|
7624
|
-
|
|
7625
|
+
Sl as setProjects,
|
|
7625
7626
|
Wy as setRehydrated,
|
|
7626
7627
|
Ee as setTeam,
|
|
7627
7628
|
hf as setTokens,
|
|
7628
|
-
|
|
7629
|
+
Wo as setUploadUrl,
|
|
7629
7630
|
JA as setUser,
|
|
7630
7631
|
YA as setUsers,
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7632
|
+
lm as shallowEqual,
|
|
7633
|
+
_m as slugify,
|
|
7634
|
+
Rm as spacesToDashesLower,
|
|
7635
|
+
dh as teamReducer,
|
|
7635
7636
|
Oa as teamSlice,
|
|
7636
|
-
|
|
7637
|
+
Tm as toFileNameSafeString,
|
|
7637
7638
|
fc as toOfflineIdRecord,
|
|
7638
|
-
|
|
7639
|
+
Om as truncate,
|
|
7639
7640
|
He as updateAsset,
|
|
7640
|
-
|
|
7641
|
+
km as updateAssetAttachment,
|
|
7641
7642
|
_c as updateAssetAttachments,
|
|
7642
7643
|
Ne as updateAssetProcedure,
|
|
7643
|
-
|
|
7644
|
+
Mm as updateAssetProcedureAttachment,
|
|
7644
7645
|
jc as updateAssetProcedureAttachments,
|
|
7645
7646
|
Le as updateAssetProcedureFieldValues,
|
|
7646
7647
|
ep as updateAssetProcedureFieldValuesAttachment,
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7648
|
+
er as updateAssetProcedureFieldValuesAttachments,
|
|
7649
|
+
rr as updateAssetProcedureFieldValuesMany,
|
|
7650
|
+
Yc as updateAssetProcedureFields,
|
|
7650
7651
|
Um as updateAssetProcedureFieldsAttachment,
|
|
7651
|
-
|
|
7652
|
+
Gc as updateAssetProcedureFieldsAttachments,
|
|
7652
7653
|
Hm as updateAssetProcedureFieldsMany,
|
|
7653
7654
|
Be as updateAssetProcedureInstance,
|
|
7654
7655
|
rp as updateAssetProcedureInstances,
|
|
7655
7656
|
mp as updateAssetProcedures,
|
|
7656
7657
|
ls as updateAssetStage,
|
|
7657
|
-
|
|
7658
|
-
|
|
7658
|
+
Or as updateAssetStageCompletion,
|
|
7659
|
+
Ir as updateAssetStageCompletions,
|
|
7659
7660
|
nt as updateAssetStages,
|
|
7660
7661
|
Ke as updateAssetType,
|
|
7661
7662
|
qp as updateAssetTypeAttachment,
|
|
7662
|
-
|
|
7663
|
+
Dr as updateAssetTypeAttachments,
|
|
7663
7664
|
We as updateAssetTypeFieldValues,
|
|
7664
7665
|
Qp as updateAssetTypeFieldValuesAttachment,
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7666
|
+
io as updateAssetTypeFieldValuesAttachments,
|
|
7667
|
+
lo as updateAssetTypeFieldValuesMany,
|
|
7668
|
+
Xr as updateAssetTypeFields,
|
|
7668
7669
|
Dp as updateAssetTypeFieldsAttachment,
|
|
7669
|
-
|
|
7670
|
+
Nr as updateAssetTypeFieldsAttachments,
|
|
7670
7671
|
Lp as updateAssetTypeFieldsMany,
|
|
7671
7672
|
of as updateAssetTypes,
|
|
7672
7673
|
gp as updateAssets,
|
|
7673
|
-
|
|
7674
|
+
So as updateCategory,
|
|
7674
7675
|
Sc as updateConversation,
|
|
7675
7676
|
Tf as updateDocumentAttachment,
|
|
7676
|
-
|
|
7677
|
+
Po as updateDocumentAttachments,
|
|
7677
7678
|
be as updateDocuments,
|
|
7678
7679
|
xf as updateForm,
|
|
7679
7680
|
Ef as updateFormRevisionAttachment,
|
|
7680
|
-
|
|
7681
|
-
|
|
7681
|
+
Xo as updateFormRevisionAttachments,
|
|
7682
|
+
Sd as updateFormSubmission,
|
|
7682
7683
|
Gf as updateFormSubmissionAttachment,
|
|
7683
|
-
|
|
7684
|
+
fd as updateFormSubmissionAttachments,
|
|
7684
7685
|
Nf as updateFormSubmissions,
|
|
7685
|
-
|
|
7686
|
+
wd as updateGeoImage,
|
|
7686
7687
|
Hf as updateGeoImages,
|
|
7687
7688
|
ct as updateIssue,
|
|
7688
|
-
|
|
7689
|
+
Cd as updateIssueAssociation,
|
|
7689
7690
|
Jf as updateIssueAssociations,
|
|
7690
7691
|
eA as updateIssueAttachment,
|
|
7691
|
-
|
|
7692
|
+
Gd as updateIssueAttachments,
|
|
7692
7693
|
iA as updateIssueCommentAttachment,
|
|
7693
|
-
|
|
7694
|
-
|
|
7694
|
+
Qd as updateIssueCommentAttachments,
|
|
7695
|
+
Nu as updateIssueType,
|
|
7695
7696
|
lA as updateIssueTypeAttachment,
|
|
7696
|
-
|
|
7697
|
+
pu as updateIssueTypeAttachments,
|
|
7697
7698
|
Je as updateIssueTypeFieldValues,
|
|
7698
7699
|
zA as updateIssueTypeFieldValuesAttachment,
|
|
7699
|
-
|
|
7700
|
+
zu as updateIssueTypeFieldValuesAttachments,
|
|
7700
7701
|
_A as updateIssueTypeFieldValuesMany,
|
|
7701
|
-
|
|
7702
|
+
ju as updateIssueTypeFields,
|
|
7702
7703
|
AA as updateIssueTypeFieldsAttachment,
|
|
7703
|
-
|
|
7704
|
+
_u as updateIssueTypeFieldsAttachments,
|
|
7704
7705
|
wA as updateIssueTypeFieldsMany,
|
|
7705
7706
|
fe as updateLicense,
|
|
7706
7707
|
Py as updateOrganization,
|
|
7707
|
-
|
|
7708
|
+
ul as updateOrganizationAccess,
|
|
7708
7709
|
Iy as updateOrganizations,
|
|
7709
|
-
|
|
7710
|
-
|
|
7710
|
+
Tl as updateProject,
|
|
7711
|
+
pl as updateProjectAccess,
|
|
7711
7712
|
zy as updateProjectAttachment,
|
|
7712
|
-
|
|
7713
|
+
Gl as updateProjectAttachments,
|
|
7713
7714
|
ki as updateProjectFile,
|
|
7714
7715
|
Gy as updateProjectFiles,
|
|
7715
7716
|
Ay as updateProjects,
|
|
7716
7717
|
ji as updateTeam,
|
|
7717
7718
|
ey as updateUser,
|
|
7718
7719
|
ZA as updateUsers,
|
|
7719
|
-
|
|
7720
|
+
ol as userReducer,
|
|
7720
7721
|
la as userSlice,
|
|
7721
|
-
|
|
7722
|
-
|
|
7722
|
+
hh as versioningReducer,
|
|
7723
|
+
lh as versioningSlice
|
|
7723
7724
|
};
|