@overmap-ai/core 1.0.74 → 1.0.75-more-clean-ups.0
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 +643 -642
- package/dist/overmap-core.umd.cjs +6 -6
- package/dist/store/slices/projectSlice.d.ts +22 -1
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -5,7 +5,7 @@ import { v4 as le } from "uuid";
|
|
|
5
5
|
import { createSlice as _, createSelector as p, combineReducers as Kn, compose as Yn } from "@reduxjs/toolkit";
|
|
6
6
|
import { saveAs as Jn } from "file-saver";
|
|
7
7
|
import { offline as Xn } from "@redux-offline/redux-offline";
|
|
8
|
-
import
|
|
8
|
+
import yt from "@redux-offline/redux-offline/lib/defaults";
|
|
9
9
|
import Qn from "localforage";
|
|
10
10
|
import Zn from "redux-persist-migrate";
|
|
11
11
|
import ue from "superagent";
|
|
@@ -14,8 +14,8 @@ import { openDB as ta } from "idb";
|
|
|
14
14
|
import { RESET_STATE as sa } from "@redux-offline/redux-offline/lib/constants";
|
|
15
15
|
import ia from "jwt-decode";
|
|
16
16
|
const na = Object.freeze([]), aa = Object.freeze({});
|
|
17
|
-
var
|
|
18
|
-
const Zl =
|
|
17
|
+
var ei = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(ei || {}), ti = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(ti || {}), d = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(d || {}), oa = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(oa || {}), si = /* @__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))(si || {}), ii = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(ii || {}), I = /* @__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))(I || {}), ca = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(ca || {}), ra = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(ra || {}), da = /* @__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))(da || {});
|
|
18
|
+
const Zl = ii.BACKLOG, eu = si.MEDIUM, la = 6e4;
|
|
19
19
|
function O(t) {
|
|
20
20
|
return {
|
|
21
21
|
addOne: (h, m) => {
|
|
@@ -68,11 +68,11 @@ function O(t) {
|
|
|
68
68
|
})
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
71
|
+
var Zs;
|
|
72
|
+
Zs = Symbol.toStringTag;
|
|
73
73
|
class ua {
|
|
74
74
|
constructor() {
|
|
75
|
-
y(this,
|
|
75
|
+
y(this, Zs, "Promise");
|
|
76
76
|
y(this, "_promise");
|
|
77
77
|
y(this, "_resolve");
|
|
78
78
|
y(this, "_reject");
|
|
@@ -125,7 +125,7 @@ function ma(t, e) {
|
|
|
125
125
|
}
|
|
126
126
|
return !0;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ni(t) {
|
|
129
129
|
const e = {};
|
|
130
130
|
return function() {
|
|
131
131
|
const s = Array.prototype.slice.call(arguments);
|
|
@@ -138,18 +138,18 @@ function nu(t, e) {
|
|
|
138
138
|
if (t[s] !== e[s]) return !1;
|
|
139
139
|
return !0;
|
|
140
140
|
}
|
|
141
|
-
const g = (t) => t.length === 0 ? na : t, fe = (t) => Object.keys(t).length === 0 ? aa : t, pa =
|
|
141
|
+
const g = (t) => t.length === 0 ? na : t, fe = (t) => Object.keys(t).length === 0 ? aa : t, pa = ni((t) => {
|
|
142
142
|
if (!t) return "";
|
|
143
143
|
const e = new Date(t), s = e.getFullYear() === st.getFullYear(), i = { day: "numeric", month: "short" };
|
|
144
144
|
return s || (i.year = "numeric"), e.toLocaleDateString([], i);
|
|
145
|
-
}), fa = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), ya = 1e3 * 86400, st = /* @__PURE__ */ new Date(), au = (t) => new Date(t).toDateString() === st.toDateString(), ou =
|
|
145
|
+
}), fa = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), ya = 1e3 * 86400, st = /* @__PURE__ */ new Date(), au = (t) => new Date(t).toDateString() === st.toDateString(), ou = ni((t, e, s) => {
|
|
146
146
|
const i = Math.round((new Date(t).getTime() - st.getTime()) / ya);
|
|
147
147
|
return i < e || i > s ? pa(t) : fa.format(i, "days");
|
|
148
148
|
});
|
|
149
149
|
function Aa(t) {
|
|
150
150
|
return new Uint8Array(t).reduce((s, i) => s + i.toString(16).padStart(2, "0"), "");
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const At = async (t, e) => {
|
|
153
153
|
e || (e = await Re(t));
|
|
154
154
|
let s = t.type;
|
|
155
155
|
if (s.includes("/") && (s = s.split("/")[1]), !s)
|
|
@@ -209,11 +209,11 @@ function uu(t) {
|
|
|
209
209
|
const e = new Blob([t]);
|
|
210
210
|
Jn(e, t.name);
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const gt = {};
|
|
213
213
|
function hu(t, e, s, ...i) {
|
|
214
|
-
const n =
|
|
214
|
+
const n = gt[t];
|
|
215
215
|
let a = !1;
|
|
216
|
-
n ? n[e] || (n[e] = !0, a = !0) : (
|
|
216
|
+
n ? n[e] || (n[e] = !0, a = !0) : (gt[t] = { [e]: !0 }, a = !0), a && console[s](...i);
|
|
217
217
|
}
|
|
218
218
|
function R(t) {
|
|
219
219
|
return { ...t, offline_id: le() };
|
|
@@ -255,28 +255,28 @@ function Au(t, e, s) {
|
|
|
255
255
|
}
|
|
256
256
|
const gu = /^.+@.+\..+$/, be = O(
|
|
257
257
|
(t) => t.offline_id
|
|
258
|
-
),
|
|
258
|
+
), bt = be.getInitialState({}), ai = _({
|
|
259
259
|
name: "agents",
|
|
260
|
-
initialState:
|
|
261
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
260
|
+
initialState: bt,
|
|
261
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, bt)),
|
|
262
262
|
reducers: {
|
|
263
263
|
initializeConversations: be.initialize,
|
|
264
264
|
addConversation: be.addOne,
|
|
265
265
|
setConversation: be.setOne,
|
|
266
266
|
updateConversation: be.updateOne
|
|
267
267
|
}
|
|
268
|
-
}), { initializeConversations: Ta, addConversation: Ra, setConversation: Oa, updateConversation: wa } =
|
|
269
|
-
[
|
|
268
|
+
}), { initializeConversations: Ta, addConversation: Ra, setConversation: Oa, updateConversation: wa } = ai.actions, oi = (t) => t.agentsReducer.instances, bu = p(
|
|
269
|
+
[oi],
|
|
270
270
|
(t) => Object.values(t)
|
|
271
271
|
), _u = A(
|
|
272
272
|
p(
|
|
273
|
-
[
|
|
273
|
+
[oi, (t, e) => e],
|
|
274
274
|
(t, e) => t[e]
|
|
275
275
|
)
|
|
276
|
-
), va =
|
|
276
|
+
), va = ai.reducer, j = O((t) => t.offline_id), _t = j.getInitialState({}), ci = _({
|
|
277
277
|
name: "assetAttachments",
|
|
278
|
-
initialState:
|
|
279
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
278
|
+
initialState: _t,
|
|
279
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, _t)),
|
|
280
280
|
reducers: {
|
|
281
281
|
initializeAssetAttachments: j.initialize,
|
|
282
282
|
addAssetAttachment: j.addOne,
|
|
@@ -289,26 +289,26 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
289
289
|
deleteAssetAttachments: j.deleteMany
|
|
290
290
|
}
|
|
291
291
|
}), {
|
|
292
|
-
initializeAssetAttachments:
|
|
292
|
+
initializeAssetAttachments: St,
|
|
293
293
|
addAssetAttachment: Su,
|
|
294
|
-
addAssetAttachments:
|
|
294
|
+
addAssetAttachments: ri,
|
|
295
295
|
setAssetAttachment: Ia,
|
|
296
296
|
setAssetAttachments: Tu,
|
|
297
297
|
updateAssetAttachment: Ru,
|
|
298
298
|
updateAssetAttachments: Ea,
|
|
299
299
|
deleteAssetAttachment: Fa,
|
|
300
|
-
deleteAssetAttachments:
|
|
301
|
-
} =
|
|
300
|
+
deleteAssetAttachments: di
|
|
301
|
+
} = ci.actions, ka = (t) => t.assetAttachmentReducer.instances, li = p(
|
|
302
302
|
[ka],
|
|
303
303
|
(t) => Object.values(t)
|
|
304
304
|
), qa = (t) => (e) => e.assetAttachmentReducer.instances[t], ja = A(
|
|
305
305
|
p(
|
|
306
|
-
[
|
|
306
|
+
[li, (t, e) => e],
|
|
307
307
|
(t, e) => g(t.filter(({ asset: s }) => e === s))
|
|
308
308
|
)
|
|
309
309
|
), Ou = A(
|
|
310
310
|
p(
|
|
311
|
-
[
|
|
311
|
+
[li, (t, e) => e],
|
|
312
312
|
(t, e) => {
|
|
313
313
|
const s = t.filter(({ asset: a }) => e === a), i = s.filter(
|
|
314
314
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -320,10 +320,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
320
320
|
return { fileAttachments: i, imageAttachments: n };
|
|
321
321
|
}
|
|
322
322
|
)
|
|
323
|
-
), Pa =
|
|
323
|
+
), Pa = ci.reducer, P = O((t) => t.offline_id), Tt = P.getInitialState({}), ui = _({
|
|
324
324
|
name: "assets",
|
|
325
|
-
initialState:
|
|
326
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
325
|
+
initialState: Tt,
|
|
326
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Tt)),
|
|
327
327
|
reducers: {
|
|
328
328
|
initializeAssets: P.initialize,
|
|
329
329
|
addAsset: P.addOne,
|
|
@@ -337,18 +337,18 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
337
337
|
}
|
|
338
338
|
}), {
|
|
339
339
|
initializeAssets: Da,
|
|
340
|
-
addAsset:
|
|
341
|
-
addAssets:
|
|
340
|
+
addAsset: Rt,
|
|
341
|
+
addAssets: hi,
|
|
342
342
|
updateAsset: Ee,
|
|
343
343
|
updateAssets: wu,
|
|
344
|
-
deleteAsset:
|
|
344
|
+
deleteAsset: Ot,
|
|
345
345
|
deleteAssets: Ca,
|
|
346
346
|
setAsset: vu,
|
|
347
347
|
setAssets: Iu
|
|
348
|
-
} =
|
|
348
|
+
} = ui.actions, mi = (t) => t.assetReducer.instances, xa = p([mi], (t) => g(Object.values(t))), pi = A(
|
|
349
349
|
p([xa, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
|
|
350
|
-
),
|
|
351
|
-
p([
|
|
350
|
+
), wt = (t) => (e) => e.assetReducer.instances[t], Eu = A(
|
|
351
|
+
p([mi, (t, e) => e], (t, e) => {
|
|
352
352
|
const s = [];
|
|
353
353
|
for (const i of e) {
|
|
354
354
|
const n = t[i];
|
|
@@ -356,12 +356,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
356
356
|
}
|
|
357
357
|
return g(s);
|
|
358
358
|
})
|
|
359
|
-
), Fu = (t) => (e) =>
|
|
359
|
+
), Fu = (t) => (e) => pi(t)(e).length, Ma = ui.reducer, te = O(
|
|
360
360
|
(t) => t.offline_id
|
|
361
|
-
),
|
|
361
|
+
), vt = te.getInitialState({}), fi = _({
|
|
362
362
|
name: "assetStageCompletions",
|
|
363
|
-
initialState:
|
|
364
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
363
|
+
initialState: vt,
|
|
364
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vt)),
|
|
365
365
|
reducers: {
|
|
366
366
|
initializeAssetStageCompletions: te.initialize,
|
|
367
367
|
addAssetStageCompletion: te.addOne,
|
|
@@ -373,14 +373,14 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
373
373
|
}
|
|
374
374
|
}), {
|
|
375
375
|
initializeAssetStageCompletions: za,
|
|
376
|
-
addAssetStageCompletion:
|
|
377
|
-
addAssetStageCompletions:
|
|
376
|
+
addAssetStageCompletion: It,
|
|
377
|
+
addAssetStageCompletions: Et,
|
|
378
378
|
updateAssetStageCompletion: $a,
|
|
379
379
|
updateAssetStageCompletions: Ua,
|
|
380
|
-
deleteAssetStageCompletion:
|
|
381
|
-
deleteAssetStageCompletions:
|
|
382
|
-
} =
|
|
383
|
-
[
|
|
380
|
+
deleteAssetStageCompletion: Ft,
|
|
381
|
+
deleteAssetStageCompletions: kt
|
|
382
|
+
} = fi.actions, yi = (t) => t.assetStageCompletionReducer.instances, ku = p(
|
|
383
|
+
[yi],
|
|
384
384
|
(t) => {
|
|
385
385
|
const e = {};
|
|
386
386
|
for (const s of Object.values(t)) {
|
|
@@ -391,7 +391,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
391
391
|
}
|
|
392
392
|
), Va = (t) => (e) => e.assetStageCompletionReducer.instances[t], Ga = A(
|
|
393
393
|
p(
|
|
394
|
-
[
|
|
394
|
+
[yi, (t, e) => e],
|
|
395
395
|
(t, e) => {
|
|
396
396
|
const s = new Set(e);
|
|
397
397
|
return g(
|
|
@@ -401,10 +401,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
)
|
|
404
|
-
), La =
|
|
404
|
+
), La = fi.reducer, D = O((t) => t.offline_id), qt = D.getInitialState({}), Ai = _({
|
|
405
405
|
name: "assetStages",
|
|
406
|
-
initialState:
|
|
407
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
406
|
+
initialState: qt,
|
|
407
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qt)),
|
|
408
408
|
reducers: {
|
|
409
409
|
initializeAssetStages: D.initialize,
|
|
410
410
|
setAssetStage: D.setOne,
|
|
@@ -422,11 +422,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
422
422
|
setAssetStages: qu,
|
|
423
423
|
addAssetStage: ju,
|
|
424
424
|
addAssetStages: Ke,
|
|
425
|
-
updateAssetStage:
|
|
425
|
+
updateAssetStage: jt,
|
|
426
426
|
updateAssetStages: Ue,
|
|
427
427
|
deleteAssetStage: Pu,
|
|
428
428
|
deleteAssetStages: Ye
|
|
429
|
-
} =
|
|
429
|
+
} = Ai.actions, Ha = Ai.reducer, it = (t) => t.assetStageReducer.instances, Wa = (t) => (e) => e.assetStageReducer.instances[t], Ka = p([it], (t) => Object.values(t)), Du = A(
|
|
430
430
|
p([it, (t, e) => e], (t, e) => {
|
|
431
431
|
const s = {};
|
|
432
432
|
for (const [i, n] of Object.entries(t))
|
|
@@ -437,7 +437,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
437
437
|
p([Ka, (t, e) => e], (t, e) => g(
|
|
438
438
|
t.filter((s) => s.asset_type === e).sort((s, i) => s.priority - i.priority)
|
|
439
439
|
))
|
|
440
|
-
),
|
|
440
|
+
), Pt = A(
|
|
441
441
|
p([it, (t, e) => e], (t, e) => {
|
|
442
442
|
const s = [];
|
|
443
443
|
for (const i of e) {
|
|
@@ -448,10 +448,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
448
448
|
})
|
|
449
449
|
), C = O(
|
|
450
450
|
(t) => t.offline_id
|
|
451
|
-
),
|
|
451
|
+
), Dt = C.getInitialState({}), gi = _({
|
|
452
452
|
name: "assetTypeAttachments",
|
|
453
|
-
initialState:
|
|
454
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
453
|
+
initialState: Dt,
|
|
454
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
|
|
455
455
|
reducers: {
|
|
456
456
|
initializeAssetTypeAttachments: C.initialize,
|
|
457
457
|
addAssetTypeAttachment: C.addOne,
|
|
@@ -466,24 +466,24 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
466
466
|
}), {
|
|
467
467
|
initializeAssetTypeAttachments: Ja,
|
|
468
468
|
addAssetTypeAttachment: Cu,
|
|
469
|
-
addAssetTypeAttachments:
|
|
469
|
+
addAssetTypeAttachments: bi,
|
|
470
470
|
setAssetTypeAttachment: Xa,
|
|
471
471
|
setAssetTypeAttachments: xu,
|
|
472
472
|
updateAssetTypeAttachment: Mu,
|
|
473
473
|
updateAssetTypeAttachments: Qa,
|
|
474
474
|
deleteAssetTypeAttachment: Za,
|
|
475
|
-
deleteAssetTypeAttachments:
|
|
476
|
-
} =
|
|
475
|
+
deleteAssetTypeAttachments: _i
|
|
476
|
+
} = gi.actions, eo = (t) => t.assetTypeAttachmentReducer.instances, Si = p(
|
|
477
477
|
[eo],
|
|
478
478
|
(t) => Object.values(t)
|
|
479
479
|
), to = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], so = A(
|
|
480
480
|
p(
|
|
481
|
-
[
|
|
481
|
+
[Si, (t, e) => e],
|
|
482
482
|
(t, e) => g(t.filter(({ asset_type: s }) => e === s))
|
|
483
483
|
)
|
|
484
484
|
), zu = A(
|
|
485
485
|
p(
|
|
486
|
-
[
|
|
486
|
+
[Si, (t, e) => e],
|
|
487
487
|
(t, e) => {
|
|
488
488
|
const s = t.filter(({ asset_type: a }) => a === e), i = s.filter(
|
|
489
489
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -495,12 +495,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
495
495
|
return { fileAttachments: i, imageAttachments: n };
|
|
496
496
|
}
|
|
497
497
|
)
|
|
498
|
-
), io =
|
|
498
|
+
), io = gi.reducer, x = O(
|
|
499
499
|
(t) => t.offline_id
|
|
500
|
-
),
|
|
500
|
+
), Ct = x.getInitialState({}), Ti = _({
|
|
501
501
|
name: "assetTypeFieldsAttachments",
|
|
502
|
-
initialState:
|
|
503
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
502
|
+
initialState: Ct,
|
|
503
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
|
|
504
504
|
reducers: {
|
|
505
505
|
initializeAssetTypeFieldsAttachments: x.initialize,
|
|
506
506
|
addAssetTypeFieldsAttachment: x.addOne,
|
|
@@ -522,15 +522,15 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
522
522
|
updateAssetTypeFieldsAttachments: oo,
|
|
523
523
|
deleteAssetTypeFieldsAttachment: Lu,
|
|
524
524
|
deleteAssetTypeFieldsAttachments: co
|
|
525
|
-
} =
|
|
525
|
+
} = Ti.actions, ro = (t) => t.assetTypeFieldsAttachmentReducer.instances, lo = p(
|
|
526
526
|
[ro],
|
|
527
527
|
(t) => Object.values(t)
|
|
528
528
|
), Bu = A(
|
|
529
529
|
p([lo, (t, e) => e], (t, e) => g(t.filter((s) => s.fields_revision === e)))
|
|
530
|
-
), Nu = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], uo =
|
|
530
|
+
), Nu = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], uo = Ti.reducer, M = O((t) => t.offline_id), xt = M.getInitialState({}), Ri = _({
|
|
531
531
|
name: "assetTypeFields",
|
|
532
|
-
initialState:
|
|
533
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
532
|
+
initialState: xt,
|
|
533
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xt)),
|
|
534
534
|
reducers: {
|
|
535
535
|
initializeAssetTypeFields: M.initialize,
|
|
536
536
|
addAssetTypeFields: M.addOne,
|
|
@@ -552,16 +552,16 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
552
552
|
updateAssetTypeFieldsMany: Yu,
|
|
553
553
|
deleteAssetTypeFields: fo,
|
|
554
554
|
deleteAssetTypeFieldsMany: Ju
|
|
555
|
-
} =
|
|
555
|
+
} = Ri.actions, yo = (t) => t.assetTypeFieldsReducer.instances, nt = p([yo], (t) => Object.values(t)), Xu = A(
|
|
556
556
|
p([nt, (t, e) => e], (t, e) => g(t.filter((s) => s.asset_type === e)))
|
|
557
557
|
), Qu = A(
|
|
558
558
|
p([nt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
559
|
-
), Zu = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Ao =
|
|
559
|
+
), Zu = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Ao = Ri.reducer, z = O(
|
|
560
560
|
(t) => t.offline_id
|
|
561
|
-
),
|
|
561
|
+
), Mt = z.getInitialState({}), Oi = _({
|
|
562
562
|
name: "assetTypeFieldValuesAttachments",
|
|
563
|
-
initialState:
|
|
564
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
563
|
+
initialState: Mt,
|
|
564
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Mt)),
|
|
565
565
|
reducers: {
|
|
566
566
|
initializeAssetTypeFieldValuesAttachments: z.initialize,
|
|
567
567
|
addAssetTypeFieldValuesAttachment: z.addOne,
|
|
@@ -583,12 +583,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
583
583
|
updateAssetTypeFieldValuesAttachments: bo,
|
|
584
584
|
deleteAssetTypeFieldValuesAttachment: nh,
|
|
585
585
|
deleteAssetTypeFieldValuesAttachments: Xe
|
|
586
|
-
} =
|
|
587
|
-
[
|
|
586
|
+
} = Oi.actions, wi = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, _o = p(
|
|
587
|
+
[wi],
|
|
588
588
|
(t) => Object.values(t)
|
|
589
589
|
), ah = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], So = A(
|
|
590
590
|
p(
|
|
591
|
-
[
|
|
591
|
+
[wi, (t, e) => e],
|
|
592
592
|
(t, e) => {
|
|
593
593
|
const s = new Set(e);
|
|
594
594
|
return g(
|
|
@@ -598,12 +598,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
598
598
|
)
|
|
599
599
|
), To = A(
|
|
600
600
|
p([_o, (t, e) => e], (t, e) => g(t.filter((s) => s.field_values === e)))
|
|
601
|
-
), Ro =
|
|
601
|
+
), Ro = Oi.reducer, $ = O(
|
|
602
602
|
(t) => t.offline_id
|
|
603
|
-
),
|
|
603
|
+
), zt = $.getInitialState({}), vi = _({
|
|
604
604
|
name: "assetTypeFieldValues",
|
|
605
|
-
initialState:
|
|
606
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
605
|
+
initialState: zt,
|
|
606
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zt)),
|
|
607
607
|
reducers: {
|
|
608
608
|
initializeAssetTypeFieldValues: $.initialize,
|
|
609
609
|
addAssetTypeFieldValues: $.addOne,
|
|
@@ -617,19 +617,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
617
617
|
}
|
|
618
618
|
}), {
|
|
619
619
|
initializeAssetTypeFieldValues: Oo,
|
|
620
|
-
addAssetTypeFieldValues:
|
|
620
|
+
addAssetTypeFieldValues: $t,
|
|
621
621
|
addAssetTypeFieldValuesMany: wo,
|
|
622
622
|
setAssetTypeFieldValues: oh,
|
|
623
623
|
setAssetTypeFieldValuesMany: ch,
|
|
624
624
|
updateAssetTypeFieldValues: Fe,
|
|
625
625
|
updateAssetTypeFieldValuesMany: vo,
|
|
626
|
-
deleteAssetTypeFieldValues:
|
|
626
|
+
deleteAssetTypeFieldValues: Ut,
|
|
627
627
|
deleteAssetTypeFieldValuesMany: Io
|
|
628
|
-
} =
|
|
629
|
-
p([
|
|
628
|
+
} = vi.actions, Eo = (t) => t.assetTypeFieldValuesReducer.instances, Ii = p([Eo], (t) => Object.values(t)), rh = A(
|
|
629
|
+
p([Ii, (t, e) => e], (t, e) => g(t.filter((s) => s.asset === e)))
|
|
630
630
|
), dh = A(
|
|
631
631
|
p(
|
|
632
|
-
[nt,
|
|
632
|
+
[nt, Ii, (t, e) => e],
|
|
633
633
|
(t, e, s) => {
|
|
634
634
|
const i = new Set(
|
|
635
635
|
t.filter((n) => n.asset_type === s).map((n) => n.offline_id)
|
|
@@ -637,10 +637,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
637
637
|
return g(e.filter((n) => i.has(n.fields_revision)));
|
|
638
638
|
}
|
|
639
639
|
)
|
|
640
|
-
),
|
|
640
|
+
), Vt = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], Fo = vi.reducer, U = O((t) => t.offline_id), Gt = U.getInitialState({}), Ei = _({
|
|
641
641
|
name: "assetTypes",
|
|
642
|
-
initialState:
|
|
643
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
642
|
+
initialState: Gt,
|
|
643
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gt)),
|
|
644
644
|
reducers: {
|
|
645
645
|
initializeAssetTypes: U.initialize,
|
|
646
646
|
setAssetType: U.setOne,
|
|
@@ -656,18 +656,18 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
656
656
|
initializeAssetTypes: ko,
|
|
657
657
|
setAssetType: lh,
|
|
658
658
|
setAssetTypes: uh,
|
|
659
|
-
addAssetType:
|
|
659
|
+
addAssetType: Lt,
|
|
660
660
|
addAssetTypes: hh,
|
|
661
661
|
updateAssetType: ke,
|
|
662
662
|
updateAssetTypes: mh,
|
|
663
|
-
deleteAssetType:
|
|
663
|
+
deleteAssetType: Bt,
|
|
664
664
|
deleteAssetTypes: ph
|
|
665
|
-
} =
|
|
666
|
-
[
|
|
665
|
+
} = Ei.actions, Fi = (t) => t.assetTypeReducer.instances, fh = p(
|
|
666
|
+
[Fi],
|
|
667
667
|
(t) => Object.values(t)
|
|
668
|
-
),
|
|
668
|
+
), Nt = (t) => (e) => e.assetTypeReducer.instances[t], yh = A(
|
|
669
669
|
p(
|
|
670
|
-
[
|
|
670
|
+
[Fi, (t, e) => e],
|
|
671
671
|
(t, e) => {
|
|
672
672
|
const s = [];
|
|
673
673
|
for (const i of e) {
|
|
@@ -677,14 +677,14 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
677
677
|
return g(s);
|
|
678
678
|
}
|
|
679
679
|
)
|
|
680
|
-
), qo =
|
|
680
|
+
), qo = Ei.reducer, Ht = {
|
|
681
681
|
accessToken: "",
|
|
682
682
|
refreshToken: "",
|
|
683
683
|
isLoggedIn: !1
|
|
684
684
|
}, at = _({
|
|
685
685
|
name: "auth",
|
|
686
|
-
initialState:
|
|
687
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
686
|
+
initialState: Ht,
|
|
687
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ht)),
|
|
688
688
|
reducers: {
|
|
689
689
|
setTokens: (t, e) => {
|
|
690
690
|
t.accessToken = e.payload.accessToken, t.refreshToken = e.payload.refreshToken;
|
|
@@ -696,19 +696,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
696
696
|
e.payload || at.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
}), { setTokens: Ah, clearTokens: gh, setLoggedIn: jo } = at.actions, bh = (t) => t.authReducer.accessToken, _h = (t) => t.authReducer.isLoggedIn, Po = at.reducer, _e = O((t) => t.offline_id),
|
|
699
|
+
}), { setTokens: Ah, clearTokens: gh, setLoggedIn: jo } = at.actions, bh = (t) => t.authReducer.accessToken, _h = (t) => t.authReducer.isLoggedIn, Po = at.reducer, _e = O((t) => t.offline_id), Wt = _e.getInitialState({}), ki = _({
|
|
700
700
|
name: "categories",
|
|
701
|
-
initialState:
|
|
702
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
701
|
+
initialState: Wt,
|
|
702
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Wt)),
|
|
703
703
|
reducers: {
|
|
704
704
|
initializeCategories: _e.initialize,
|
|
705
705
|
addCategory: _e.addOne,
|
|
706
706
|
updateCategory: _e.updateOne,
|
|
707
707
|
deleteCategory: _e.deleteOne
|
|
708
708
|
}
|
|
709
|
-
}), { initializeCategories: Do, addCategory:
|
|
709
|
+
}), { initializeCategories: Do, addCategory: Kt, updateCategory: Co, deleteCategory: xo } = ki.actions, qi = (t) => t.categoryReducer.instances, Sh = p([qi], (t) => Object.values(t)), Yt = (t) => (e) => e.categoryReducer.instances[t], Th = A(
|
|
710
710
|
p(
|
|
711
|
-
[
|
|
711
|
+
[qi, (t, e) => e],
|
|
712
712
|
(t, e) => {
|
|
713
713
|
const s = [];
|
|
714
714
|
for (const i of e) {
|
|
@@ -718,10 +718,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
718
718
|
return g(s);
|
|
719
719
|
}
|
|
720
720
|
)
|
|
721
|
-
), Rh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, Mo =
|
|
721
|
+
), Rh = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, Mo = ki.reducer, V = O((t) => t.offline_id), Jt = V.getInitialState({}), ji = _({
|
|
722
722
|
name: "documentAttachments",
|
|
723
|
-
initialState:
|
|
724
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
723
|
+
initialState: Jt,
|
|
724
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Jt)),
|
|
725
725
|
reducers: {
|
|
726
726
|
initializeDocumentAttachments: V.initialize,
|
|
727
727
|
addDocumentAttachment: V.addOne,
|
|
@@ -743,17 +743,17 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
743
743
|
updateDocumentAttachments: Vo,
|
|
744
744
|
deleteDocumentAttachment: Go,
|
|
745
745
|
deleteDocumentAttachments: Lo
|
|
746
|
-
} =
|
|
746
|
+
} = ji.actions, Bo = (t) => t.documentAttachmentReducer.instances, Pi = p(
|
|
747
747
|
[Bo],
|
|
748
748
|
(t) => Object.values(t)
|
|
749
749
|
), No = (t) => (e) => e.documentAttachmentReducer.instances[t], Ih = A(
|
|
750
750
|
p(
|
|
751
|
-
[
|
|
751
|
+
[Pi, (t, e) => e],
|
|
752
752
|
(t, e) => g(t.filter(({ document: s }) => e === s))
|
|
753
753
|
)
|
|
754
754
|
), Eh = A(
|
|
755
755
|
p(
|
|
756
|
-
[
|
|
756
|
+
[Pi, (t, e) => e],
|
|
757
757
|
(t, e) => {
|
|
758
758
|
const s = t.filter(({ document: a }) => e === a), i = s.filter(
|
|
759
759
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -765,13 +765,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
765
765
|
return { fileAttachments: i, imageAttachments: n };
|
|
766
766
|
}
|
|
767
767
|
)
|
|
768
|
-
), Ho =
|
|
768
|
+
), Ho = ji.reducer, Xt = {
|
|
769
769
|
documents: {}
|
|
770
|
-
},
|
|
770
|
+
}, Di = _({
|
|
771
771
|
name: "documents",
|
|
772
|
-
initialState:
|
|
772
|
+
initialState: Xt,
|
|
773
773
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
774
|
-
Object.assign(e,
|
|
774
|
+
Object.assign(e, Xt);
|
|
775
775
|
}),
|
|
776
776
|
reducers: {
|
|
777
777
|
setDocuments: (t, e) => {
|
|
@@ -893,7 +893,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
}), { setDocuments: Wo, addDocuments: Ko, updateDocuments: ne, moveDocument: Yo, removeDocuments:
|
|
896
|
+
}), { setDocuments: Wo, addDocuments: Ko, updateDocuments: ne, moveDocument: Yo, removeDocuments: Qt } = Di.actions, Oe = (t) => t.documentsReducer.documents, Jo = p(
|
|
897
897
|
[Oe],
|
|
898
898
|
(t) => Object.values(t)
|
|
899
899
|
), Xo = (t) => (e) => e.documentsReducer.documents[t], Fh = A(
|
|
@@ -920,7 +920,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
920
920
|
), qh = p(
|
|
921
921
|
[Jo],
|
|
922
922
|
(t) => g(t.filter((e) => !e.parent_document))
|
|
923
|
-
), Qo =
|
|
923
|
+
), Qo = Di.reducer, xe = O((t) => t.offline_id), Zo = xe.getInitialState({}), Ci = _({
|
|
924
924
|
name: "emailDomains",
|
|
925
925
|
initialState: Zo,
|
|
926
926
|
reducers: {
|
|
@@ -928,19 +928,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
928
928
|
addEmailDomain: xe.addOne,
|
|
929
929
|
deleteEmailDomain: xe.deleteOne
|
|
930
930
|
}
|
|
931
|
-
}), { initializeEmailDomains: ec, addEmailDomain: tc, deleteEmailDomain: sc } =
|
|
931
|
+
}), { initializeEmailDomains: ec, addEmailDomain: tc, deleteEmailDomain: sc } = Ci.actions, ic = (t) => t.emailDomainsReducer.instances, nc = p([ic], (t) => Object.values(t)), jh = A(
|
|
932
932
|
p(
|
|
933
933
|
[nc, (t, e) => e],
|
|
934
934
|
(t, e) => g(
|
|
935
935
|
t.filter((s) => s.organization === e)
|
|
936
936
|
)
|
|
937
937
|
)
|
|
938
|
-
), ac =
|
|
938
|
+
), ac = Ci.reducer, Zt = {
|
|
939
939
|
s3Urls: {}
|
|
940
|
-
},
|
|
940
|
+
}, xi = 1e3 * 60 * 60, oc = xi * 24 * 7, Mi = _({
|
|
941
941
|
name: "file",
|
|
942
|
-
initialState:
|
|
943
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
942
|
+
initialState: Zt,
|
|
943
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Zt)),
|
|
944
944
|
reducers: {
|
|
945
945
|
setUploadUrl: (t, e) => {
|
|
946
946
|
const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), o = new Date(a.getTime() + oc);
|
|
@@ -951,19 +951,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
}), { setUploadUrl: cc } =
|
|
954
|
+
}), { setUploadUrl: cc } = Mi.actions, rc = (t) => (e) => {
|
|
955
955
|
const s = e.fileReducer.s3Urls[t];
|
|
956
956
|
if (!s)
|
|
957
957
|
return;
|
|
958
958
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
959
|
-
if (!((s.exp ?? i) - i <
|
|
959
|
+
if (!((s.exp ?? i) - i < xi))
|
|
960
960
|
return s;
|
|
961
|
-
}, dc =
|
|
961
|
+
}, dc = Mi.reducer, G = O(
|
|
962
962
|
(t) => t.offline_id
|
|
963
|
-
),
|
|
963
|
+
), es = G.getInitialState({}), zi = _({
|
|
964
964
|
name: "formRevisionAttachments",
|
|
965
|
-
initialState:
|
|
966
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
965
|
+
initialState: es,
|
|
966
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, es)),
|
|
967
967
|
reducers: {
|
|
968
968
|
initializeFormRevisionAttachments: G.initialize,
|
|
969
969
|
addFormRevisionAttachment: G.addOne,
|
|
@@ -985,20 +985,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
985
985
|
updateFormRevisionAttachments: hc,
|
|
986
986
|
deleteFormRevisionAttachment: Mh,
|
|
987
987
|
deleteFormRevisionAttachments: mc
|
|
988
|
-
} =
|
|
988
|
+
} = zi.actions, pc = (t) => t.formRevisionAttachmentReducer.instances, zh = A(
|
|
989
989
|
p(
|
|
990
990
|
[pc, (t, e) => e],
|
|
991
991
|
(t, e) => g(
|
|
992
992
|
Object.values(t).filter((s) => s.form_revision === e)
|
|
993
993
|
)
|
|
994
994
|
)
|
|
995
|
-
), fc =
|
|
995
|
+
), fc = zi.reducer, yc = (t, e) => {
|
|
996
996
|
const s = t.revision, i = e.revision;
|
|
997
997
|
return s === "Pending" && i === "Pending" ? t.submitted_at < e.submitted_at ? -1 : 1 : s === "Pending" ? 1 : i === "Pending" || s < i ? -1 : 1;
|
|
998
|
-
}, ae = O((t) => t.offline_id),
|
|
998
|
+
}, ae = O((t) => t.offline_id), ts = ae.getInitialState({}), $i = _({
|
|
999
999
|
name: "formRevisions",
|
|
1000
|
-
initialState:
|
|
1001
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1000
|
+
initialState: ts,
|
|
1001
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ts)),
|
|
1002
1002
|
reducers: {
|
|
1003
1003
|
initializeFormRevisions: ae.initialize,
|
|
1004
1004
|
setFormRevision: ae.setOne,
|
|
@@ -1010,11 +1010,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1010
1010
|
}), {
|
|
1011
1011
|
setFormRevision: Ac,
|
|
1012
1012
|
initializeFormRevisions: gc,
|
|
1013
|
-
addFormRevision:
|
|
1013
|
+
addFormRevision: Ui,
|
|
1014
1014
|
addFormRevisions: bc,
|
|
1015
|
-
deleteFormRevision:
|
|
1015
|
+
deleteFormRevision: Vi,
|
|
1016
1016
|
deleteFormRevisions: _c
|
|
1017
|
-
} =
|
|
1017
|
+
} = $i.actions, ot = (t) => t.formRevisionReducer.instances, Sc = p(
|
|
1018
1018
|
[ot],
|
|
1019
1019
|
(t) => Object.values(t)
|
|
1020
1020
|
), $h = (t) => (e) => e.formRevisionReducer.instances[t], Tc = (t, e) => {
|
|
@@ -1039,10 +1039,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1039
1039
|
[Sc, (t, e) => e],
|
|
1040
1040
|
(t, e) => g(t.filter((s) => s.form === e))
|
|
1041
1041
|
)
|
|
1042
|
-
), Oc =
|
|
1042
|
+
), Oc = $i.reducer, oe = O((t) => t.offline_id), ss = oe.getInitialState({}), Gi = _({
|
|
1043
1043
|
name: "forms",
|
|
1044
|
-
initialState:
|
|
1045
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1044
|
+
initialState: ss,
|
|
1045
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ss)),
|
|
1046
1046
|
reducers: {
|
|
1047
1047
|
initializeForms: oe.initialize,
|
|
1048
1048
|
setForm: oe.setOne,
|
|
@@ -1051,7 +1051,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1051
1051
|
updateForm: oe.updateOne,
|
|
1052
1052
|
deleteForm: oe.deleteOne
|
|
1053
1053
|
}
|
|
1054
|
-
}), { initializeForms: wc, setForm: Vh, addForm:
|
|
1054
|
+
}), { initializeForms: wc, setForm: Vh, addForm: is, addForms: Gh, updateForm: Lh, deleteForm: ns } = Gi.actions, vc = Gi.reducer, Ic = (t) => t.formReducer.instances, Bh = p([Ic], (t) => Object.values(t)), Ec = (t) => (e) => e.formReducer.instances[t], Nh = A(
|
|
1055
1055
|
p(
|
|
1056
1056
|
[
|
|
1057
1057
|
(t) => t.formReducer.instances,
|
|
@@ -1072,10 +1072,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1072
1072
|
)
|
|
1073
1073
|
), L = O(
|
|
1074
1074
|
(t) => t.offline_id
|
|
1075
|
-
),
|
|
1075
|
+
), as = L.getInitialState({}), Li = _({
|
|
1076
1076
|
name: "formSubmissionAttachments",
|
|
1077
|
-
initialState:
|
|
1078
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1077
|
+
initialState: as,
|
|
1078
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, as)),
|
|
1079
1079
|
reducers: {
|
|
1080
1080
|
initializeFormSubmissionAttachments: L.initialize,
|
|
1081
1081
|
addFormSubmissionAttachment: L.addOne,
|
|
@@ -1097,9 +1097,9 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1097
1097
|
updateFormSubmissionAttachments: kc,
|
|
1098
1098
|
deleteFormSubmissionAttachment: Jh,
|
|
1099
1099
|
deleteFormSubmissionAttachments: Ze
|
|
1100
|
-
} =
|
|
1100
|
+
} = Li.actions, Bi = (t) => t.formSubmissionAttachmentReducer.instances, qc = A(
|
|
1101
1101
|
p(
|
|
1102
|
-
[
|
|
1102
|
+
[Bi, (t, e) => e],
|
|
1103
1103
|
(t, e) => {
|
|
1104
1104
|
const s = new Set(e);
|
|
1105
1105
|
return g(
|
|
@@ -1109,17 +1109,17 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1109
1109
|
)
|
|
1110
1110
|
), jc = A(
|
|
1111
1111
|
p(
|
|
1112
|
-
[
|
|
1112
|
+
[Bi, (t, e) => e],
|
|
1113
1113
|
(t, e) => g(
|
|
1114
1114
|
Object.values(t).filter(
|
|
1115
1115
|
(s) => s.form_submission === e
|
|
1116
1116
|
)
|
|
1117
1117
|
)
|
|
1118
1118
|
)
|
|
1119
|
-
), Pc =
|
|
1119
|
+
), Pc = Li.reducer, B = O((t) => t.offline_id), os = B.getInitialState({}), Ni = _({
|
|
1120
1120
|
name: "formSubmissions",
|
|
1121
|
-
initialState:
|
|
1122
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1121
|
+
initialState: os,
|
|
1122
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, os)),
|
|
1123
1123
|
reducers: {
|
|
1124
1124
|
initializeFormSubmissions: B.initialize,
|
|
1125
1125
|
setFormSubmission: B.setOne,
|
|
@@ -1135,19 +1135,19 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1135
1135
|
initializeFormSubmissions: Dc,
|
|
1136
1136
|
setFormSubmission: Ve,
|
|
1137
1137
|
setFormSubmissions: Xh,
|
|
1138
|
-
addFormSubmission:
|
|
1138
|
+
addFormSubmission: cs,
|
|
1139
1139
|
addFormSubmissions: ct,
|
|
1140
1140
|
updateFormSubmission: Cc,
|
|
1141
1141
|
updateFormSubmissions: Qh,
|
|
1142
|
-
deleteFormSubmission:
|
|
1142
|
+
deleteFormSubmission: rs,
|
|
1143
1143
|
deleteFormSubmissions: rt
|
|
1144
|
-
} =
|
|
1145
|
-
[
|
|
1144
|
+
} = Ni.actions, Hi = (t) => t.formSubmissionReducer.instances, Wi = p(
|
|
1145
|
+
[Hi],
|
|
1146
1146
|
(t) => Object.values(t)
|
|
1147
|
-
),
|
|
1147
|
+
), ds = (t) => (e) => e.formSubmissionReducer.instances[t], xc = A(
|
|
1148
1148
|
p(
|
|
1149
1149
|
[
|
|
1150
|
-
|
|
1150
|
+
Hi,
|
|
1151
1151
|
ot,
|
|
1152
1152
|
(t, e) => e
|
|
1153
1153
|
],
|
|
@@ -1162,20 +1162,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1162
1162
|
)
|
|
1163
1163
|
), Mc = A(
|
|
1164
1164
|
p(
|
|
1165
|
-
[
|
|
1165
|
+
[Wi, (t, e) => e],
|
|
1166
1166
|
(t, e) => Object.values(t).filter((s) => s.issue === e)
|
|
1167
1167
|
)
|
|
1168
1168
|
), zc = A(
|
|
1169
1169
|
p(
|
|
1170
|
-
[
|
|
1170
|
+
[Wi, (t, e) => e],
|
|
1171
1171
|
(t, e) => t.filter((s) => s.asset === e)
|
|
1172
1172
|
)
|
|
1173
|
-
), $c =
|
|
1173
|
+
), $c = Ni.reducer, N = O((t) => t.offline_id), ls = N.getInitialState({}), Ki = _({
|
|
1174
1174
|
name: "geoImages",
|
|
1175
|
-
initialState:
|
|
1175
|
+
initialState: ls,
|
|
1176
1176
|
extraReducers: (t) => {
|
|
1177
1177
|
t.addCase("RESET", (e) => {
|
|
1178
|
-
Object.assign(e,
|
|
1178
|
+
Object.assign(e, ls);
|
|
1179
1179
|
});
|
|
1180
1180
|
},
|
|
1181
1181
|
reducers: {
|
|
@@ -1197,14 +1197,14 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1197
1197
|
addGeoImages: Lc,
|
|
1198
1198
|
updateGeoImage: Bc,
|
|
1199
1199
|
updateGeoImages: Zh,
|
|
1200
|
-
deleteGeoImage:
|
|
1200
|
+
deleteGeoImage: us,
|
|
1201
1201
|
deleteGeoImages: Nc
|
|
1202
|
-
} =
|
|
1202
|
+
} = Ki.actions, Hc = (t) => t.geoImageReducer.instances, Wc = p([Hc], (t) => Object.values(t)), hs = (t) => (e) => e.geoImageReducer.instances[t], em = A(
|
|
1203
1203
|
p([Wc, (t, e) => e], (t, e) => g(t.filter((s) => s.project === e)))
|
|
1204
|
-
), Kc =
|
|
1204
|
+
), Kc = Ki.reducer, H = O((t) => t.offline_id), ms = H.getInitialState({}), Yi = _({
|
|
1205
1205
|
name: "issueAssociations",
|
|
1206
|
-
initialState:
|
|
1207
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1206
|
+
initialState: ms,
|
|
1207
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ms)),
|
|
1208
1208
|
reducers: {
|
|
1209
1209
|
initializeIssueAssociations: H.initialize,
|
|
1210
1210
|
addIssueAssociation: H.addOne,
|
|
@@ -1222,11 +1222,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1222
1222
|
setIssueAssociation: sm,
|
|
1223
1223
|
updateIssueAssociation: Jc,
|
|
1224
1224
|
updateIssueAssociations: im,
|
|
1225
|
-
addIssueAssociation:
|
|
1226
|
-
addIssueAssociations:
|
|
1227
|
-
deleteIssueAssociation:
|
|
1228
|
-
deleteIssueAssociations:
|
|
1229
|
-
} =
|
|
1225
|
+
addIssueAssociation: ps,
|
|
1226
|
+
addIssueAssociations: Ji,
|
|
1227
|
+
deleteIssueAssociation: fs,
|
|
1228
|
+
deleteIssueAssociations: Xi
|
|
1229
|
+
} = Yi.actions, $e = (t) => t.issueAssociationReducer.instances, nm = p([$e], (t) => Object.values(t)), Xc = (t) => (e) => e.issueAssociationReducer.instances[t], Qc = A(
|
|
1230
1230
|
p(
|
|
1231
1231
|
[$e, (t, e) => e],
|
|
1232
1232
|
(t, e) => g(
|
|
@@ -1243,10 +1243,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1243
1243
|
[$e, (t, e) => e],
|
|
1244
1244
|
(t, e) => g(Object.values(t).filter((s) => s.asset === e))
|
|
1245
1245
|
)
|
|
1246
|
-
), tr =
|
|
1246
|
+
), tr = Yi.reducer, W = O((t) => t.offline_id), ys = W.getInitialState({}), Qi = _({
|
|
1247
1247
|
name: "issueAttachments",
|
|
1248
|
-
initialState:
|
|
1249
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1248
|
+
initialState: ys,
|
|
1249
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ys)),
|
|
1250
1250
|
reducers: {
|
|
1251
1251
|
initializeIssueAttachments: W.initialize,
|
|
1252
1252
|
addIssueAttachment: W.addOne,
|
|
@@ -1261,24 +1261,24 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1261
1261
|
}), {
|
|
1262
1262
|
initializeIssueAttachments: sr,
|
|
1263
1263
|
addIssueAttachment: am,
|
|
1264
|
-
addIssueAttachments:
|
|
1264
|
+
addIssueAttachments: Zi,
|
|
1265
1265
|
setIssueAttachment: ir,
|
|
1266
1266
|
setIssueAttachments: om,
|
|
1267
1267
|
updateIssueAttachment: cm,
|
|
1268
1268
|
updateIssueAttachments: nr,
|
|
1269
1269
|
deleteIssueAttachment: ar,
|
|
1270
|
-
deleteIssueAttachments:
|
|
1271
|
-
} =
|
|
1270
|
+
deleteIssueAttachments: en
|
|
1271
|
+
} = Qi.actions, or = (t) => t.issueAttachmentReducer.instances, tn = p(
|
|
1272
1272
|
[or],
|
|
1273
1273
|
(t) => Object.values(t)
|
|
1274
1274
|
), cr = A(
|
|
1275
1275
|
p(
|
|
1276
|
-
[
|
|
1276
|
+
[tn, (t, e) => e],
|
|
1277
1277
|
(t, e) => g(t.filter(({ issue: s }) => e === s))
|
|
1278
1278
|
)
|
|
1279
1279
|
), rr = (t) => (e) => e.issueAttachmentReducer.instances[t], rm = A(
|
|
1280
1280
|
p(
|
|
1281
|
-
[
|
|
1281
|
+
[tn, (t, e) => e],
|
|
1282
1282
|
(t, e) => {
|
|
1283
1283
|
const s = t.filter(({ issue: a }) => a === e), i = s.filter(
|
|
1284
1284
|
// this null check here is necessary, there are cases where file_type is null or undefined
|
|
@@ -1290,10 +1290,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1290
1290
|
return { fileAttachments: i, imageAttachments: n };
|
|
1291
1291
|
}
|
|
1292
1292
|
)
|
|
1293
|
-
), dr =
|
|
1293
|
+
), dr = Qi.reducer, ce = O((t) => t.offline_id), As = ce.getInitialState({}), sn = _({
|
|
1294
1294
|
name: "issueComments",
|
|
1295
|
-
initialState:
|
|
1296
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1295
|
+
initialState: As,
|
|
1296
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, As)),
|
|
1297
1297
|
reducers: {
|
|
1298
1298
|
addIssueComment: ce.addOne,
|
|
1299
1299
|
addIssueComments: ce.addMany,
|
|
@@ -1304,18 +1304,18 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1304
1304
|
}
|
|
1305
1305
|
}), {
|
|
1306
1306
|
setIssueComments: lr,
|
|
1307
|
-
setIssueComment:
|
|
1308
|
-
addIssueComment:
|
|
1307
|
+
setIssueComment: gs,
|
|
1308
|
+
addIssueComment: bs,
|
|
1309
1309
|
addIssueComments: dm,
|
|
1310
|
-
deleteIssueComment:
|
|
1310
|
+
deleteIssueComment: _s,
|
|
1311
1311
|
deleteIssueComments: lm
|
|
1312
|
-
} =
|
|
1312
|
+
} = sn.actions, ur = (t) => t.issueCommentReducer.instances, hr = (t) => (e) => e.issueCommentReducer.instances[t], um = A(
|
|
1313
1313
|
p([ur, (t, e) => e], (t, e) => g(Object.values(t).filter((s) => s.issue === e)))
|
|
1314
|
-
), mr =
|
|
1314
|
+
), mr = sn.reducer, re = O((t) => t.offline_id), Ss = re.getInitialState({}), nn = _({
|
|
1315
1315
|
name: "issues",
|
|
1316
|
-
initialState:
|
|
1316
|
+
initialState: Ss,
|
|
1317
1317
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
1318
|
-
Object.assign(e,
|
|
1318
|
+
Object.assign(e, Ss);
|
|
1319
1319
|
}),
|
|
1320
1320
|
reducers: {
|
|
1321
1321
|
initializeIssues: re.initialize,
|
|
@@ -1325,7 +1325,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1325
1325
|
deleteIssue: re.deleteOne,
|
|
1326
1326
|
deleteIssues: re.deleteMany
|
|
1327
1327
|
}
|
|
1328
|
-
}), { initializeIssues: pr, addIssue:
|
|
1328
|
+
}), { initializeIssues: pr, addIssue: Ts, addIssues: fr, updateIssue: Ge, deleteIssue: Rs, deleteIssues: yr } = nn.actions, Ar = (t) => t.issueReducer.instances, Os = (t) => (e) => e.issueReducer.instances[t], hm = A(
|
|
1329
1329
|
p([Ar, (t, e) => e], (t, e) => {
|
|
1330
1330
|
const s = [];
|
|
1331
1331
|
for (const i of e) {
|
|
@@ -1334,12 +1334,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1334
1334
|
}
|
|
1335
1335
|
return g(s);
|
|
1336
1336
|
})
|
|
1337
|
-
), gr =
|
|
1337
|
+
), gr = nn.reducer, K = O(
|
|
1338
1338
|
(t) => t.offline_id
|
|
1339
|
-
),
|
|
1339
|
+
), ws = K.getInitialState({}), an = _({
|
|
1340
1340
|
name: "issueTypeFieldsAttachments",
|
|
1341
|
-
initialState:
|
|
1342
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1341
|
+
initialState: ws,
|
|
1342
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ws)),
|
|
1343
1343
|
reducers: {
|
|
1344
1344
|
initializeIssueTypeFieldsAttachments: K.initialize,
|
|
1345
1345
|
addIssueTypeFieldsAttachment: K.addOne,
|
|
@@ -1361,7 +1361,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1361
1361
|
updateIssueTypeFieldsAttachments: Sr,
|
|
1362
1362
|
deleteIssueTypeFieldsAttachment: Am,
|
|
1363
1363
|
deleteIssueTypeFieldsAttachments: Tr
|
|
1364
|
-
} =
|
|
1364
|
+
} = an.actions, Rr = (t) => t.issueTypeFieldsAttachmentReducer.instances, Or = p(
|
|
1365
1365
|
[Rr],
|
|
1366
1366
|
(t) => Object.values(t)
|
|
1367
1367
|
), gm = A(
|
|
@@ -1371,12 +1371,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1371
1371
|
t.filter((s) => s.fields_revision === e)
|
|
1372
1372
|
)
|
|
1373
1373
|
)
|
|
1374
|
-
), bm = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], wr =
|
|
1374
|
+
), bm = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], wr = an.reducer, Y = O(
|
|
1375
1375
|
(t) => t.offline_id
|
|
1376
|
-
),
|
|
1376
|
+
), vs = Y.getInitialState({}), on = _({
|
|
1377
1377
|
name: "issueTypeFieldValues",
|
|
1378
|
-
initialState:
|
|
1379
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1378
|
+
initialState: vs,
|
|
1379
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vs)),
|
|
1380
1380
|
reducers: {
|
|
1381
1381
|
initializeIssueTypeFieldValues: Y.initialize,
|
|
1382
1382
|
addIssueTypeFieldValues: Y.addOne,
|
|
@@ -1390,20 +1390,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1390
1390
|
}
|
|
1391
1391
|
}), {
|
|
1392
1392
|
initializeIssueTypeFieldValues: vr,
|
|
1393
|
-
addIssueTypeFieldValues:
|
|
1393
|
+
addIssueTypeFieldValues: Is,
|
|
1394
1394
|
addIssueTypeFieldValuesMany: _m,
|
|
1395
1395
|
setIssueTypeFieldValues: Sm,
|
|
1396
1396
|
setIssueTypeFieldValuesMany: Tm,
|
|
1397
1397
|
updateIssueTypeFieldValues: je,
|
|
1398
1398
|
updateIssueTypeFieldValuesMany: Rm,
|
|
1399
|
-
deleteIssueTypeFieldValues:
|
|
1399
|
+
deleteIssueTypeFieldValues: Es,
|
|
1400
1400
|
deleteIssueTypeFieldValuesMany: Om
|
|
1401
|
-
} =
|
|
1402
|
-
p([
|
|
1403
|
-
),
|
|
1401
|
+
} = on.actions, Ir = (t) => t.issueTypeFieldValuesReducer.instances, cn = p([Ir], (t) => Object.values(t)), wm = A(
|
|
1402
|
+
p([cn, (t, e) => e], (t, e) => g(t.filter((s) => s.issue === e)))
|
|
1403
|
+
), Fs = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Er = on.reducer, J = O((t) => t.offline_id), ks = J.getInitialState({}), rn = _({
|
|
1404
1404
|
name: "issueTypeFields",
|
|
1405
|
-
initialState:
|
|
1406
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1405
|
+
initialState: ks,
|
|
1406
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ks)),
|
|
1407
1407
|
reducers: {
|
|
1408
1408
|
initializeIssueTypeFields: J.initialize,
|
|
1409
1409
|
addIssueTypeFields: J.addOne,
|
|
@@ -1425,13 +1425,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1425
1425
|
updateIssueTypeFieldsMany: Fm,
|
|
1426
1426
|
deleteIssueTypeFields: jr,
|
|
1427
1427
|
deleteIssueTypeFieldsMany: km
|
|
1428
|
-
} =
|
|
1428
|
+
} = rn.actions, Pr = (t) => t.issueTypeFieldsReducer.instances, dt = p([Pr], (t) => Object.values(t)), qm = A(
|
|
1429
1429
|
p([dt, (t, e) => e], (t, e) => g(t.filter((s) => s.issue_type === e)))
|
|
1430
1430
|
), jm = A(
|
|
1431
1431
|
p([dt, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
1432
1432
|
), Pm = A(
|
|
1433
1433
|
p(
|
|
1434
|
-
[dt,
|
|
1434
|
+
[dt, cn, (t, e) => e],
|
|
1435
1435
|
(t, e, s) => {
|
|
1436
1436
|
const i = new Set(
|
|
1437
1437
|
t.filter((n) => n.issue_type === s).map((n) => n.offline_id)
|
|
@@ -1439,12 +1439,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1439
1439
|
return g(e.filter((n) => i.has(n.fields_revision)));
|
|
1440
1440
|
}
|
|
1441
1441
|
)
|
|
1442
|
-
), Dm = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Dr =
|
|
1442
|
+
), Dm = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Dr = rn.reducer, X = O(
|
|
1443
1443
|
(t) => t.offline_id
|
|
1444
|
-
),
|
|
1444
|
+
), qs = X.getInitialState({}), dn = _({
|
|
1445
1445
|
name: "issueTypeFieldValuesAttachments",
|
|
1446
|
-
initialState:
|
|
1447
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1446
|
+
initialState: qs,
|
|
1447
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, qs)),
|
|
1448
1448
|
reducers: {
|
|
1449
1449
|
initializeIssueTypeFieldValuesAttachments: X.initialize,
|
|
1450
1450
|
addIssueTypeFieldValuesAttachment: X.addOne,
|
|
@@ -1466,12 +1466,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1466
1466
|
updateIssueTypeFieldValuesAttachments: xr,
|
|
1467
1467
|
deleteIssueTypeFieldValuesAttachment: $m,
|
|
1468
1468
|
deleteIssueTypeFieldValuesAttachments: tt
|
|
1469
|
-
} =
|
|
1470
|
-
[
|
|
1469
|
+
} = dn.actions, ln = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Mr = p(
|
|
1470
|
+
[ln],
|
|
1471
1471
|
(t) => Object.values(t)
|
|
1472
1472
|
), Um = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], zr = A(
|
|
1473
1473
|
p(
|
|
1474
|
-
[
|
|
1474
|
+
[ln, (t, e) => e],
|
|
1475
1475
|
(t, e) => {
|
|
1476
1476
|
const s = new Set(e);
|
|
1477
1477
|
return g(
|
|
@@ -1484,11 +1484,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1484
1484
|
[Mr, (t, e) => e],
|
|
1485
1485
|
(t, e) => g(t.filter((s) => s.field_values === e))
|
|
1486
1486
|
)
|
|
1487
|
-
), Ur =
|
|
1487
|
+
), Ur = dn.reducer, he = O((t) => t.offline_id), js = he.getInitialState({}), un = _({
|
|
1488
1488
|
name: "issueTypes",
|
|
1489
|
-
initialState:
|
|
1489
|
+
initialState: js,
|
|
1490
1490
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
1491
|
-
Object.assign(e,
|
|
1491
|
+
Object.assign(e, js);
|
|
1492
1492
|
}),
|
|
1493
1493
|
reducers: {
|
|
1494
1494
|
initializeIssueTypes: he.initialize,
|
|
@@ -1497,10 +1497,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1497
1497
|
updateIssueType: he.updateOne,
|
|
1498
1498
|
removeIssueType: he.deleteOne
|
|
1499
1499
|
}
|
|
1500
|
-
}), { initializeIssueTypes: Vr, setIssueType: Pe, addIssueType: Gr, updateIssueType: Lr, removeIssueType:
|
|
1500
|
+
}), { initializeIssueTypes: Vr, setIssueType: Pe, addIssueType: Gr, updateIssueType: Lr, removeIssueType: Ps } = un.actions, Br = (t) => t.issueTypeReducer.instances, Nr = p(
|
|
1501
1501
|
Br,
|
|
1502
1502
|
(t) => Object.values(t)
|
|
1503
|
-
),
|
|
1503
|
+
), Ds = (t) => (e) => e.issueTypeReducer.instances[t], Vm = (t) => (e) => {
|
|
1504
1504
|
const s = [];
|
|
1505
1505
|
for (const i of t) {
|
|
1506
1506
|
const n = e.issueTypeReducer.instances[i];
|
|
@@ -1512,17 +1512,17 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1512
1512
|
[Nr, (t, e) => e],
|
|
1513
1513
|
(t, e) => g(t.filter((s) => s.organization === e))
|
|
1514
1514
|
)
|
|
1515
|
-
),
|
|
1515
|
+
), hn = A(
|
|
1516
1516
|
p(
|
|
1517
1517
|
[(t) => t.issueReducer.instances, (t, e) => e],
|
|
1518
1518
|
(t, e) => g(
|
|
1519
1519
|
Object.values(t).filter((s) => s.issue_type === e)
|
|
1520
1520
|
)
|
|
1521
1521
|
)
|
|
1522
|
-
), Lm = (t) => (e) =>
|
|
1522
|
+
), Lm = (t) => (e) => hn(t)(e).length, Hr = un.reducer, de = O((t) => t.offline_id), Cs = de.getInitialState({}), mn = _({
|
|
1523
1523
|
name: "issueUpdates",
|
|
1524
|
-
initialState:
|
|
1525
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1524
|
+
initialState: Cs,
|
|
1525
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Cs)),
|
|
1526
1526
|
reducers: {
|
|
1527
1527
|
initializeIssueUpdates: de.setMany,
|
|
1528
1528
|
setIssueUpdate: de.setOne,
|
|
@@ -1538,21 +1538,21 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1538
1538
|
addIssueUpdates: Yr,
|
|
1539
1539
|
deleteIssueUpdate: Jr,
|
|
1540
1540
|
deleteIssueUpdates: Xr
|
|
1541
|
-
} =
|
|
1541
|
+
} = mn.actions, Qr = (t) => t.issueUpdateReducer.instances, Zr = A(
|
|
1542
1542
|
p(
|
|
1543
1543
|
[Qr, (t, e) => e],
|
|
1544
1544
|
(t, e) => g(Object.values(t).filter((s) => s.issue === e))
|
|
1545
1545
|
)
|
|
1546
|
-
), ed =
|
|
1546
|
+
), ed = mn.reducer, Me = O((t) => t.offline_id), xs = Me.getInitialState({}), pn = _({
|
|
1547
1547
|
name: "license",
|
|
1548
|
-
initialState:
|
|
1549
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1548
|
+
initialState: xs,
|
|
1549
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xs)),
|
|
1550
1550
|
reducers: {
|
|
1551
1551
|
initializeLicences: Me.initialize,
|
|
1552
1552
|
addLicenses: Me.addMany,
|
|
1553
1553
|
updateLicense: Me.updateOne
|
|
1554
1554
|
}
|
|
1555
|
-
}), { initializeLicences: td, addLicenses: Nm, updateLicense: se } =
|
|
1555
|
+
}), { initializeLicences: td, addLicenses: Nm, updateLicense: se } = pn.actions, lt = (t) => t.licenseReducer.instances, Hm = (t) => (e) => e.licenseReducer.instances[t], sd = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), Wm = p(
|
|
1556
1556
|
[lt],
|
|
1557
1557
|
(t) => g(Object.values(t).filter((e) => e.is_active))
|
|
1558
1558
|
), Km = p(
|
|
@@ -1560,13 +1560,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1560
1560
|
(t) => fe(
|
|
1561
1561
|
Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
|
|
1562
1562
|
)
|
|
1563
|
-
), id =
|
|
1563
|
+
), id = pn.reducer, Ms = {
|
|
1564
1564
|
users: {},
|
|
1565
1565
|
currentUser: null
|
|
1566
|
-
},
|
|
1566
|
+
}, fn = _({
|
|
1567
1567
|
name: "users",
|
|
1568
|
-
initialState:
|
|
1569
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1568
|
+
initialState: Ms,
|
|
1569
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ms)),
|
|
1570
1570
|
reducers: {
|
|
1571
1571
|
setUsers: (t, e) => {
|
|
1572
1572
|
const s = {};
|
|
@@ -1593,7 +1593,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1593
1593
|
delete t.users[e.payload];
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
|
-
}), { setCurrentUser: Ym, setProfilePicture: Jm, setUsers: nd, addUsers: Xm, removeUser: ad } =
|
|
1596
|
+
}), { setCurrentUser: Ym, setProfilePicture: Jm, setUsers: nd, addUsers: Xm, removeUser: ad } = fn.actions, od = fn.reducer, ut = (t) => t.userReducer.currentUser, ht = (t) => t.userReducer.users, Qm = (t) => (e) => e.userReducer.users[t], Zm = A(
|
|
1597
1597
|
p([ht, (t, e) => e], (t, e) => {
|
|
1598
1598
|
const s = [];
|
|
1599
1599
|
for (const i of e) {
|
|
@@ -1604,17 +1604,17 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1604
1604
|
})
|
|
1605
1605
|
), ze = O(
|
|
1606
1606
|
(t) => t.offline_id
|
|
1607
|
-
),
|
|
1607
|
+
), zs = ze.getInitialState({}), yn = _({
|
|
1608
1608
|
name: "organizationAccess",
|
|
1609
|
-
initialState:
|
|
1610
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1609
|
+
initialState: zs,
|
|
1610
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zs)),
|
|
1611
1611
|
reducers: {
|
|
1612
1612
|
initializeOrganizationAccesses: ze.initialize,
|
|
1613
1613
|
updateOrganizationAccess: ze.updateOne,
|
|
1614
1614
|
deleteOrganizationAccess: ze.deleteOne
|
|
1615
1615
|
}
|
|
1616
|
-
}), { initializeOrganizationAccesses: cd, updateOrganizationAccess: rd, deleteOrganizationAccess: dd } =
|
|
1617
|
-
[ut,
|
|
1616
|
+
}), { initializeOrganizationAccesses: cd, updateOrganizationAccess: rd, deleteOrganizationAccess: dd } = yn.actions, An = (t) => t.organizationAccessReducer.instances, ep = (t) => (e) => e.organizationAccessReducer.instances[t], tp = p(
|
|
1617
|
+
[ut, An],
|
|
1618
1618
|
(t, e) => Object.values(e).find(
|
|
1619
1619
|
(i) => i.user === (t == null ? void 0 : t.id)
|
|
1620
1620
|
) ?? null
|
|
@@ -1625,18 +1625,18 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1625
1625
|
for (const s of Object.values(t.organizationAccessReducer.instances))
|
|
1626
1626
|
e[s.user] = s;
|
|
1627
1627
|
return fe(e);
|
|
1628
|
-
}, ud =
|
|
1628
|
+
}, ud = yn.reducer, Se = O((t) => t.offline_id), $s = Se.getInitialState({}), gn = _({
|
|
1629
1629
|
name: "projectAccess",
|
|
1630
|
-
initialState:
|
|
1631
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1630
|
+
initialState: $s,
|
|
1631
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, $s)),
|
|
1632
1632
|
reducers: {
|
|
1633
1633
|
initializeProjectAccesses: Se.initialize,
|
|
1634
1634
|
updateProjectAccess: Se.updateOne,
|
|
1635
1635
|
deleteProjectAccess: Se.deleteOne,
|
|
1636
1636
|
deleteProjectAccesses: Se.deleteMany
|
|
1637
1637
|
}
|
|
1638
|
-
}), { initializeProjectAccesses:
|
|
1639
|
-
|
|
1638
|
+
}), { initializeProjectAccesses: bn, updateProjectAccess: hd, deleteProjectAccess: md, deleteProjectAccesses: pd } = gn.actions, _n = (t) => t.projectAccessReducer.instances, fd = p(
|
|
1639
|
+
_n,
|
|
1640
1640
|
(t) => Object.values(t)
|
|
1641
1641
|
), ip = (t) => (e) => e.projectAccessReducer.instances[t], np = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
|
|
1642
1642
|
(s) => s.user === t.id
|
|
@@ -1645,12 +1645,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1645
1645
|
for (const s of Object.values(t.projectAccessReducer.instances))
|
|
1646
1646
|
e[s.user] = s;
|
|
1647
1647
|
return fe(e);
|
|
1648
|
-
}, Ad =
|
|
1648
|
+
}, Ad = gn.reducer, Us = {
|
|
1649
1649
|
projects: {}
|
|
1650
|
-
},
|
|
1650
|
+
}, Sn = _({
|
|
1651
1651
|
name: "projects",
|
|
1652
|
-
initialState:
|
|
1653
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1652
|
+
initialState: Us,
|
|
1653
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Us)),
|
|
1654
1654
|
reducers: {
|
|
1655
1655
|
setProjects: (t, e) => {
|
|
1656
1656
|
const s = {};
|
|
@@ -1671,13 +1671,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1671
1671
|
throw new Error("Accept project invite: user is not in this project");
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
}), { setProjects: gd, updateProject: bd, deleteProject: _d, acceptProjectInvite: Sd } =
|
|
1675
|
-
[
|
|
1674
|
+
}), { setProjects: gd, updateProject: bd, deleteProject: _d, acceptProjectInvite: Sd } = Sn.actions, Td = Sn.reducer, mt = (t) => t.projectReducer.projects, ap = p([mt], (t) => g(Object.values(t))), op = (t) => (e) => e.projectReducer.projects[t], Rd = p(
|
|
1675
|
+
[_n],
|
|
1676
1676
|
(t) => Object.values(t).map((e) => e.user)
|
|
1677
1677
|
), Od = p(
|
|
1678
1678
|
[Rd, ht],
|
|
1679
1679
|
(t, e) => t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
1680
|
-
),
|
|
1680
|
+
), cp = p(
|
|
1681
1681
|
[ut, Od, yd],
|
|
1682
1682
|
(t, e, s) => g(
|
|
1683
1683
|
Object.values(e).sort((i, n) => {
|
|
@@ -1686,37 +1686,37 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1686
1686
|
if (n.id === (t == null ? void 0 : t.id))
|
|
1687
1687
|
return 1;
|
|
1688
1688
|
const a = s[i.id], o = s[n.id];
|
|
1689
|
-
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) ===
|
|
1689
|
+
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === ei.ADMIN ? -1 : 1;
|
|
1690
1690
|
})
|
|
1691
1691
|
)
|
|
1692
|
-
),
|
|
1692
|
+
), Vs = {
|
|
1693
1693
|
organizations: {}
|
|
1694
1694
|
}, Tn = _({
|
|
1695
1695
|
name: "organizations",
|
|
1696
|
-
initialState:
|
|
1697
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1696
|
+
initialState: Vs,
|
|
1697
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vs)),
|
|
1698
1698
|
reducers: {
|
|
1699
1699
|
setOrganizations: (t, e) => {
|
|
1700
1700
|
for (const s of e.payload)
|
|
1701
1701
|
t.organizations[s.id] = s;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
}), { setOrganizations: wd } = Tn.actions, vd = (t) => t.organizationReducer.organizations, Id = p([vd], (t) => Object.values(t)),
|
|
1704
|
+
}), { setOrganizations: wd } = Tn.actions, vd = (t) => t.organizationReducer.organizations, Id = p([vd], (t) => Object.values(t)), rp = (t) => (e) => e.organizationReducer.organizations[t], dp = p(
|
|
1705
1705
|
[Id],
|
|
1706
1706
|
(t) => g(
|
|
1707
1707
|
Object.values(t).filter((e) => e.has_access)
|
|
1708
1708
|
)
|
|
1709
1709
|
), Ed = p(
|
|
1710
|
-
[
|
|
1710
|
+
[An],
|
|
1711
1711
|
(t) => Object.values(t).map((e) => e.user)
|
|
1712
|
-
),
|
|
1712
|
+
), lp = A(
|
|
1713
1713
|
p(
|
|
1714
|
-
[
|
|
1714
|
+
[mt, (t, e) => e],
|
|
1715
1715
|
(t, e) => g(
|
|
1716
1716
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
1717
1717
|
)
|
|
1718
1718
|
)
|
|
1719
|
-
),
|
|
1719
|
+
), up = A(
|
|
1720
1720
|
p([lt, (t, e) => e], (t, e) => g(
|
|
1721
1721
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
1722
1722
|
))
|
|
@@ -1725,7 +1725,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1725
1725
|
(t, e) => fe(
|
|
1726
1726
|
t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
1727
1727
|
)
|
|
1728
|
-
),
|
|
1728
|
+
), hp = p(
|
|
1729
1729
|
[ut, Fd, ld],
|
|
1730
1730
|
(t, e, s) => g(
|
|
1731
1731
|
Object.values(e).sort((i, n) => {
|
|
@@ -1734,7 +1734,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1734
1734
|
if (n.id === (t == null ? void 0 : t.id))
|
|
1735
1735
|
return 1;
|
|
1736
1736
|
const a = s[i.id], o = s[n.id];
|
|
1737
|
-
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) ===
|
|
1737
|
+
return (a == null ? void 0 : a.access_level) === (o == null ? void 0 : o.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === ti.ADMIN ? -1 : 1;
|
|
1738
1738
|
})
|
|
1739
1739
|
)
|
|
1740
1740
|
), kd = Tn.reducer, qd = (t, e, s) => {
|
|
@@ -1753,13 +1753,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
1755
|
};
|
|
1756
|
-
},
|
|
1756
|
+
}, Gs = {
|
|
1757
1757
|
deletedRequests: [],
|
|
1758
1758
|
latestRetryTime: 0
|
|
1759
1759
|
}, Rn = _({
|
|
1760
1760
|
name: "outbox",
|
|
1761
|
-
initialState:
|
|
1762
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1761
|
+
initialState: Gs,
|
|
1762
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gs)),
|
|
1763
1763
|
reducers: {
|
|
1764
1764
|
// enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
|
|
1765
1765
|
// Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
|
|
@@ -1783,10 +1783,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1783
1783
|
t.latestRetryTime = e.payload;
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
}),
|
|
1786
|
+
}), mp = (t) => t.outboxReducer.deletedRequests, pp = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: jd, markForDeletion: fp, markAsDeleted: Pd, _setLatestRetryTime: Dd } = Rn.actions, Cd = Rn.reducer, Q = O((t) => t.offline_id), Ls = Q.getInitialState({}), On = _({
|
|
1787
1787
|
name: "projectAttachments",
|
|
1788
|
-
initialState:
|
|
1789
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1788
|
+
initialState: Ls,
|
|
1789
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ls)),
|
|
1790
1790
|
reducers: {
|
|
1791
1791
|
initializeProjectAttachments: Q.initialize,
|
|
1792
1792
|
addProjectAttachment: Q.addOne,
|
|
@@ -1800,11 +1800,11 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1800
1800
|
}
|
|
1801
1801
|
}), {
|
|
1802
1802
|
initializeProjectAttachments: xd,
|
|
1803
|
-
addProjectAttachment:
|
|
1803
|
+
addProjectAttachment: yp,
|
|
1804
1804
|
addProjectAttachments: Md,
|
|
1805
1805
|
setProjectAttachment: zd,
|
|
1806
1806
|
setProjectAttachments: $d,
|
|
1807
|
-
updateProjectAttachment:
|
|
1807
|
+
updateProjectAttachment: Ap,
|
|
1808
1808
|
updateProjectAttachments: Ud,
|
|
1809
1809
|
deleteProjectAttachment: Vd,
|
|
1810
1810
|
deleteProjectAttachments: wn
|
|
@@ -1813,7 +1813,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1813
1813
|
(t) => Object.values(t)
|
|
1814
1814
|
), Ld = (t) => (e) => e.projectAttachmentReducer.instances[t], Bd = A(
|
|
1815
1815
|
p([vn, (t, e) => e], (t, e) => g(t.filter(({ project: s }) => e === s)))
|
|
1816
|
-
),
|
|
1816
|
+
), gp = A(
|
|
1817
1817
|
p(
|
|
1818
1818
|
[vn, (t, e) => e],
|
|
1819
1819
|
(t, e) => {
|
|
@@ -1827,13 +1827,13 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1827
1827
|
return { fileAttachments: i, imageAttachments: n };
|
|
1828
1828
|
}
|
|
1829
1829
|
)
|
|
1830
|
-
), Nd = On.reducer, Z = O((t) => t.offline_id),
|
|
1830
|
+
), Nd = On.reducer, Z = O((t) => t.offline_id), Bs = Z.getInitialState({
|
|
1831
1831
|
activeProjectFileId: null,
|
|
1832
1832
|
isImportingProjectFile: !1
|
|
1833
1833
|
}), In = _({
|
|
1834
1834
|
name: "projectFiles",
|
|
1835
|
-
initialState:
|
|
1836
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1835
|
+
initialState: Bs,
|
|
1836
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Bs)),
|
|
1837
1837
|
reducers: {
|
|
1838
1838
|
initializeProjectFiles: Z.initialize,
|
|
1839
1839
|
setProjectFile: Z.setOne,
|
|
@@ -1869,20 +1869,20 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1869
1869
|
}
|
|
1870
1870
|
}), {
|
|
1871
1871
|
initializeProjectFiles: Hd,
|
|
1872
|
-
setProjectFile:
|
|
1873
|
-
setProjectFiles:
|
|
1874
|
-
addProjectFile:
|
|
1872
|
+
setProjectFile: bp,
|
|
1873
|
+
setProjectFiles: _p,
|
|
1874
|
+
addProjectFile: Sp,
|
|
1875
1875
|
addProjectFiles: Wd,
|
|
1876
|
-
updateProjectFile:
|
|
1877
|
-
updateProjectFiles:
|
|
1876
|
+
updateProjectFile: Ns,
|
|
1877
|
+
updateProjectFiles: Tp,
|
|
1878
1878
|
deleteProjectFile: Kd,
|
|
1879
1879
|
deleteProjectFiles: Yd,
|
|
1880
1880
|
// TODO: move following to /web
|
|
1881
1881
|
setIsImportingProjectFile: Jd,
|
|
1882
1882
|
setActiveProjectFileId: Xd,
|
|
1883
1883
|
saveActiveProjectFileBounds: Qd,
|
|
1884
|
-
resetProjectFileObjectUrls:
|
|
1885
|
-
} = In.actions, Zd = (t) => t.projectFileReducer.instances, el = p([Zd], (t) => g(Object.values(t).sort((e, s) => e.z_index - s.z_index))),
|
|
1884
|
+
resetProjectFileObjectUrls: Rp
|
|
1885
|
+
} = In.actions, Zd = (t) => t.projectFileReducer.instances, el = p([Zd], (t) => g(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Op = (t) => (e) => e.projectFileReducer.instances[t], wp = (t) => t.projectFileReducer.activeProjectFileId, vp = (t) => t.projectFileReducer.isImportingProjectFile, tl = In.reducer, sl = {
|
|
1886
1886
|
isRehydrated: !1
|
|
1887
1887
|
}, En = _({
|
|
1888
1888
|
name: "rehydrated",
|
|
@@ -1893,10 +1893,10 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1893
1893
|
t.isRehydrated = e.payload;
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
}), { setRehydrated:
|
|
1896
|
+
}), { setRehydrated: Ip } = En.actions, Ep = (t) => t.rehydratedReducer.isRehydrated, il = En.reducer, me = O((t) => t.offline_id), Hs = me.getInitialState({}), Fn = _({
|
|
1897
1897
|
name: "teams",
|
|
1898
|
-
initialState:
|
|
1899
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1898
|
+
initialState: Hs,
|
|
1899
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Hs)),
|
|
1900
1900
|
reducers: {
|
|
1901
1901
|
setTeam: me.setOne,
|
|
1902
1902
|
initializeTeams: me.initialize,
|
|
@@ -1904,7 +1904,7 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1904
1904
|
updateTeam: me.updateOne,
|
|
1905
1905
|
deleteTeam: me.deleteOne
|
|
1906
1906
|
}
|
|
1907
|
-
}), { setTeam: Ae, initializeTeams: nl, addTeam: al, updateTeam:
|
|
1907
|
+
}), { setTeam: Ae, initializeTeams: nl, addTeam: al, updateTeam: Ws, deleteTeam: Ks } = Fn.actions, kn = (t) => t.teamReducer.instances, qn = p([kn], (t) => Object.values(t)), ge = (t) => (e) => e.teamReducer.instances[t], Fp = A(
|
|
1908
1908
|
p(
|
|
1909
1909
|
[kn, (t, e) => e],
|
|
1910
1910
|
(t, e) => {
|
|
@@ -1916,12 +1916,12 @@ const gu = /^.+@.+\..+$/, be = O(
|
|
|
1916
1916
|
return g(s);
|
|
1917
1917
|
}
|
|
1918
1918
|
)
|
|
1919
|
-
),
|
|
1919
|
+
), kp = A(
|
|
1920
1920
|
p(
|
|
1921
1921
|
[qn, (t, e) => e],
|
|
1922
1922
|
(t, e) => g(t.filter((s) => s.organization === e))
|
|
1923
1923
|
)
|
|
1924
|
-
),
|
|
1924
|
+
), qp = A(
|
|
1925
1925
|
p([qn, (t, e) => e], (t, e) => g(t.filter((s) => s.members.includes(e))))
|
|
1926
1926
|
), ol = Fn.reducer, cl = {
|
|
1927
1927
|
version: 0
|
|
@@ -1958,10 +1958,10 @@ class Cn {
|
|
|
1958
1958
|
this.client.store.dispatch(e);
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
|
-
const xn = "versioning", Mn = () => $n.length - 1, zn = (t) => (t[xn] = { version: Mn() }, t),
|
|
1961
|
+
const xn = "versioning", Mn = () => $n.length - 1, zn = (t) => (t[xn] = { version: Mn() }, t), Ys = () => zn({}), ml = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), pl = (t) => (e) => {
|
|
1962
1962
|
var s;
|
|
1963
1963
|
return e === void 0 && (e = {}), ((s = e[xn]) == null ? void 0 : s.version) === Mn() ? e : t(e);
|
|
1964
|
-
}, $n = [zn,
|
|
1964
|
+
}, $n = [zn, Ys, Ys, ml], fl = Object.fromEntries($n.map((t, e) => [e, pl(t)])), Un = "versioning", yl = {
|
|
1965
1965
|
// TODO: attachmentReducer,
|
|
1966
1966
|
[Un]: dl,
|
|
1967
1967
|
fileReducer: dc,
|
|
@@ -2008,7 +2008,7 @@ const xn = "versioning", Mn = () => $n.length - 1, zn = (t) => (t[xn] = { versio
|
|
|
2008
2008
|
assetTypeFieldValuesReducer: Fo,
|
|
2009
2009
|
assetTypeFieldsAttachmentReducer: uo,
|
|
2010
2010
|
assetTypeFieldValuesAttachmentReducer: Ro
|
|
2011
|
-
},
|
|
2011
|
+
}, Js = Kn(yl), Al = "RESET", jp = (t, e) => e.type === "auth/setLoggedIn" && !e.payload ? Js(void 0, e) : Js(t, e);
|
|
2012
2012
|
let Le = null;
|
|
2013
2013
|
function pe() {
|
|
2014
2014
|
const t = ve();
|
|
@@ -2039,7 +2039,7 @@ async function Sl(t, e) {
|
|
|
2039
2039
|
return Fl(e);
|
|
2040
2040
|
}
|
|
2041
2041
|
const Tl = {
|
|
2042
|
-
...
|
|
2042
|
+
...yt,
|
|
2043
2043
|
effect: Sl,
|
|
2044
2044
|
// Casting needed because we are saving FullOfflineAction objects, not just OfflineAction objects,
|
|
2045
2045
|
// but redux-offline does not know this.
|
|
@@ -2054,13 +2054,13 @@ const Tl = {
|
|
|
2054
2054
|
// and custom dequeue for e.g. if user insists on removing a failed a "create issue", then remove the "edit
|
|
2055
2055
|
// that same issue"
|
|
2056
2056
|
queue: {
|
|
2057
|
-
...
|
|
2057
|
+
...yt.queue,
|
|
2058
2058
|
enqueue: bl,
|
|
2059
2059
|
dequeue: _l,
|
|
2060
2060
|
// Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
|
|
2061
2061
|
peek: (...t) => kl(...t)
|
|
2062
2062
|
}
|
|
2063
|
-
}, Rl = Zn(fl, Un),
|
|
2063
|
+
}, Rl = Zn(fl, Un), Pp = Yn(Xn(Tl), Rl);
|
|
2064
2064
|
function Ol(t) {
|
|
2065
2065
|
function e(s) {
|
|
2066
2066
|
return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
|
|
@@ -2244,7 +2244,7 @@ function kl(t, e, s) {
|
|
|
2244
2244
|
function ql(t, e) {
|
|
2245
2245
|
return ve().dispatch(Dd((/* @__PURE__ */ new Date()).getTime())), la;
|
|
2246
2246
|
}
|
|
2247
|
-
const we = "An unknown error occurred", jl = 500,
|
|
2247
|
+
const we = "An unknown error occurred", jl = 500, Xs = ["non_field_errors", "detail"];
|
|
2248
2248
|
function Pl(t, e) {
|
|
2249
2249
|
let s;
|
|
2250
2250
|
if (t != null && t.body)
|
|
@@ -2256,7 +2256,7 @@ function Pl(t, e) {
|
|
|
2256
2256
|
s = i.message;
|
|
2257
2257
|
else
|
|
2258
2258
|
try {
|
|
2259
|
-
s = Object.entries(i).map(([n, a]) => typeof a == "string" ?
|
|
2259
|
+
s = Object.entries(i).map(([n, a]) => typeof a == "string" ? Xs.includes(n) ? a : `${n}: ${a}` : Array.isArray(a) ? Xs.includes(n) ? a.join(`
|
|
2260
2260
|
`) : a.map((o) => `${n}: ${o}`).join(`
|
|
2261
2261
|
`) : `${n}: ${JSON.stringify(a)}`).join(`
|
|
2262
2262
|
`);
|
|
@@ -2279,7 +2279,7 @@ class F extends Error {
|
|
|
2279
2279
|
this.message = s.message ?? Pl(i, n) ?? we, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
|
|
2280
2280
|
}
|
|
2281
2281
|
}
|
|
2282
|
-
class
|
|
2282
|
+
class Dp {
|
|
2283
2283
|
constructor(e) {
|
|
2284
2284
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2285
2285
|
y(this, "store");
|
|
@@ -2491,7 +2491,7 @@ class Te {
|
|
|
2491
2491
|
this.requestAttemptCounter[e] = (this.requestAttemptCounter[e] || 0) + 1;
|
|
2492
2492
|
}
|
|
2493
2493
|
}
|
|
2494
|
-
const
|
|
2494
|
+
const Cp = (t, e) => {
|
|
2495
2495
|
const s = new e(t);
|
|
2496
2496
|
return ul(s), ll(t), s;
|
|
2497
2497
|
};
|
|
@@ -2502,7 +2502,7 @@ class w extends Cn {
|
|
|
2502
2502
|
this.auth = i;
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
|
-
class
|
|
2505
|
+
class xp extends w {
|
|
2506
2506
|
async startConversation(e, s) {
|
|
2507
2507
|
return this.enqueueRequest({
|
|
2508
2508
|
description: "Start agent conversation",
|
|
@@ -2689,15 +2689,15 @@ class Ie extends k {
|
|
|
2689
2689
|
}), n;
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
|
-
class
|
|
2692
|
+
class Mp extends Ie {
|
|
2693
2693
|
constructor() {
|
|
2694
2694
|
super(...arguments);
|
|
2695
2695
|
y(this, "name", "Asset Attachment");
|
|
2696
2696
|
y(this, "url", "/asset-attachments");
|
|
2697
|
-
y(this, "initializeAttachments",
|
|
2698
|
-
y(this, "addAttachments",
|
|
2697
|
+
y(this, "initializeAttachments", St);
|
|
2698
|
+
y(this, "addAttachments", ri);
|
|
2699
2699
|
y(this, "updateAttachments", Ea);
|
|
2700
|
-
y(this, "removeAttachments",
|
|
2700
|
+
y(this, "removeAttachments", di);
|
|
2701
2701
|
y(this, "removeAttachment", Fa);
|
|
2702
2702
|
y(this, "setAttachment", Ia);
|
|
2703
2703
|
y(this, "selectAttachment", qa);
|
|
@@ -2737,10 +2737,10 @@ class xp extends Ie {
|
|
|
2737
2737
|
blocks: [],
|
|
2738
2738
|
blockers: []
|
|
2739
2739
|
});
|
|
2740
|
-
this.dispatch(
|
|
2740
|
+
this.dispatch(St(i));
|
|
2741
2741
|
}
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function pt(t, e) {
|
|
2744
2744
|
const s = [];
|
|
2745
2745
|
let i = 0;
|
|
2746
2746
|
const n = t.length;
|
|
@@ -2748,7 +2748,7 @@ function mt(t, e) {
|
|
|
2748
2748
|
s.push(t.slice(i, i += e));
|
|
2749
2749
|
return s;
|
|
2750
2750
|
}
|
|
2751
|
-
class
|
|
2751
|
+
class zp extends w {
|
|
2752
2752
|
// Basic CRUD functions
|
|
2753
2753
|
add(e) {
|
|
2754
2754
|
const { store: s } = this.client;
|
|
@@ -2759,7 +2759,7 @@ class Mp extends w {
|
|
|
2759
2759
|
created_by: i,
|
|
2760
2760
|
submitted_at: n
|
|
2761
2761
|
});
|
|
2762
|
-
this.dispatch(
|
|
2762
|
+
this.dispatch(Rt(a));
|
|
2763
2763
|
const o = this.enqueueRequest({
|
|
2764
2764
|
description: "Create asset",
|
|
2765
2765
|
method: d.POST,
|
|
@@ -2771,11 +2771,11 @@ class Mp extends w {
|
|
|
2771
2771
|
return o.then((r) => {
|
|
2772
2772
|
this.dispatch(Ee(r));
|
|
2773
2773
|
}).catch(() => {
|
|
2774
|
-
this.dispatch(
|
|
2774
|
+
this.dispatch(Ot(a.offline_id));
|
|
2775
2775
|
}), [a, o];
|
|
2776
2776
|
}
|
|
2777
2777
|
update(e) {
|
|
2778
|
-
const { store: s } = this.client, i =
|
|
2778
|
+
const { store: s } = this.client, i = wt(e.offline_id)(s.getState());
|
|
2779
2779
|
if (!i)
|
|
2780
2780
|
throw new Error(`No asset with id ${e.offline_id} found in the store`);
|
|
2781
2781
|
const n = {
|
|
@@ -2800,12 +2800,12 @@ class Mp extends w {
|
|
|
2800
2800
|
}), [n, a];
|
|
2801
2801
|
}
|
|
2802
2802
|
async remove(e) {
|
|
2803
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
2803
|
+
const { store: s } = this.client, i = s.getState(), n = wt(e)(i);
|
|
2804
2804
|
if (!n) throw new Error(`No asset with id ${e} found in the store`);
|
|
2805
2805
|
const a = ja(e)(i), o = zc(e)(i), r = er(e)(i);
|
|
2806
|
-
if (this.dispatch(
|
|
2806
|
+
if (this.dispatch(Ot(e)), a.length > 0) {
|
|
2807
2807
|
const u = a.map(({ offline_id: c }) => c);
|
|
2808
|
-
this.dispatch(
|
|
2808
|
+
this.dispatch(di(u));
|
|
2809
2809
|
}
|
|
2810
2810
|
if (o.length > 0) {
|
|
2811
2811
|
const u = o.map(({ offline_id: c }) => c);
|
|
@@ -2813,7 +2813,7 @@ class Mp extends w {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
if (r.length > 0) {
|
|
2815
2815
|
const u = r.map(({ offline_id: c }) => c);
|
|
2816
|
-
this.dispatch(
|
|
2816
|
+
this.dispatch(Xi(u));
|
|
2817
2817
|
}
|
|
2818
2818
|
return this.enqueueRequest({
|
|
2819
2819
|
description: "Delete asset",
|
|
@@ -2822,11 +2822,11 @@ class Mp extends w {
|
|
|
2822
2822
|
blockers: [e],
|
|
2823
2823
|
blocks: []
|
|
2824
2824
|
}).catch((u) => {
|
|
2825
|
-
throw this.dispatch(
|
|
2825
|
+
throw this.dispatch(Rt(n)), this.dispatch(ri(a)), this.dispatch(ct(o)), this.dispatch(Ji(r)), u;
|
|
2826
2826
|
});
|
|
2827
2827
|
}
|
|
2828
2828
|
bulkAdd(e, s, i, n) {
|
|
2829
|
-
const a = (/* @__PURE__ */ new Date()).toISOString(), o = le(), r =
|
|
2829
|
+
const a = (/* @__PURE__ */ new Date()).toISOString(), o = le(), r = pt(e, n).map((l) => {
|
|
2830
2830
|
const h = l.map((m) => R(m));
|
|
2831
2831
|
return {
|
|
2832
2832
|
batchId: le(),
|
|
@@ -2857,7 +2857,7 @@ class Mp extends w {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
return Promise.all(u).then((l) => {
|
|
2859
2859
|
const h = l.flat();
|
|
2860
|
-
this.dispatch(
|
|
2860
|
+
this.dispatch(hi(h));
|
|
2861
2861
|
}), u;
|
|
2862
2862
|
}
|
|
2863
2863
|
async refreshStore(e) {
|
|
@@ -2874,14 +2874,14 @@ class Mp extends w {
|
|
|
2874
2874
|
this.dispatch(Da(s));
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
|
-
class
|
|
2877
|
+
class $p extends w {
|
|
2878
2878
|
add(e) {
|
|
2879
2879
|
const { store: s } = this.client, i = s.getState().userReducer.currentUser.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
|
|
2880
2880
|
...e,
|
|
2881
2881
|
created_by: i,
|
|
2882
2882
|
submitted_at: n
|
|
2883
2883
|
});
|
|
2884
|
-
this.dispatch(
|
|
2884
|
+
this.dispatch(It(a));
|
|
2885
2885
|
const o = this.enqueueRequest({
|
|
2886
2886
|
description: "Add asset stage completion",
|
|
2887
2887
|
method: d.POST,
|
|
@@ -2898,14 +2898,14 @@ class zp extends w {
|
|
|
2898
2898
|
return o.then((r) => {
|
|
2899
2899
|
this.dispatch($a(r));
|
|
2900
2900
|
}).catch(() => {
|
|
2901
|
-
this.dispatch(
|
|
2901
|
+
this.dispatch(Ft(a.offline_id));
|
|
2902
2902
|
}), [a, o];
|
|
2903
2903
|
}
|
|
2904
2904
|
delete(e) {
|
|
2905
2905
|
const { store: s } = this.client, i = Va(e)(s.getState());
|
|
2906
2906
|
if (!i)
|
|
2907
2907
|
throw new Error(`Expected asset stage completion with id ${e} to exist`);
|
|
2908
|
-
this.dispatch(
|
|
2908
|
+
this.dispatch(Ft(e));
|
|
2909
2909
|
const n = this.enqueueRequest({
|
|
2910
2910
|
description: "Delete asset stage completion",
|
|
2911
2911
|
method: d.DELETE,
|
|
@@ -2914,7 +2914,7 @@ class zp extends w {
|
|
|
2914
2914
|
blocks: []
|
|
2915
2915
|
});
|
|
2916
2916
|
return n.catch(() => {
|
|
2917
|
-
this.dispatch(
|
|
2917
|
+
this.dispatch(It(i));
|
|
2918
2918
|
}), n;
|
|
2919
2919
|
}
|
|
2920
2920
|
bulkAdd(e) {
|
|
@@ -2923,7 +2923,7 @@ class zp extends w {
|
|
|
2923
2923
|
created_by: n,
|
|
2924
2924
|
submitted_at: i
|
|
2925
2925
|
})), r = o.map(({ offline_id: c }) => c);
|
|
2926
|
-
this.dispatch(
|
|
2926
|
+
this.dispatch(Et(o));
|
|
2927
2927
|
const u = this.enqueueRequest({
|
|
2928
2928
|
description: "Bulk create asset stage completions",
|
|
2929
2929
|
method: d.POST,
|
|
@@ -2938,12 +2938,12 @@ class zp extends w {
|
|
|
2938
2938
|
return u.then((c) => {
|
|
2939
2939
|
this.dispatch(Ua(c));
|
|
2940
2940
|
}).catch(() => {
|
|
2941
|
-
this.dispatch(
|
|
2941
|
+
this.dispatch(kt(r));
|
|
2942
2942
|
}), [o, u];
|
|
2943
2943
|
}
|
|
2944
2944
|
bulkDelete(e) {
|
|
2945
2945
|
const { store: s } = this.client, i = Ga(e)(s.getState());
|
|
2946
|
-
this.dispatch(
|
|
2946
|
+
this.dispatch(kt(e));
|
|
2947
2947
|
const n = this.enqueueRequest({
|
|
2948
2948
|
description: "Deleting asset stage completions",
|
|
2949
2949
|
method: d.DELETE,
|
|
@@ -2955,7 +2955,7 @@ class zp extends w {
|
|
|
2955
2955
|
blocks: []
|
|
2956
2956
|
});
|
|
2957
2957
|
return n.catch(() => {
|
|
2958
|
-
this.dispatch(
|
|
2958
|
+
this.dispatch(Et(i));
|
|
2959
2959
|
}), n;
|
|
2960
2960
|
}
|
|
2961
2961
|
async refreshStore(e) {
|
|
@@ -2972,7 +2972,7 @@ class zp extends w {
|
|
|
2972
2972
|
this.dispatch(za(s));
|
|
2973
2973
|
}
|
|
2974
2974
|
}
|
|
2975
|
-
class
|
|
2975
|
+
class Up extends w {
|
|
2976
2976
|
bulkAdd(e, s) {
|
|
2977
2977
|
const i = (/* @__PURE__ */ new Date()).toISOString(), n = this.client.store.getState().userReducer.currentUser.id, a = e.map((u) => R(u)), o = a.map((u) => ({ ...u, asset_type: s, created_by: n, submitted_at: i }));
|
|
2978
2978
|
this.dispatch(Ke(o));
|
|
@@ -2995,7 +2995,7 @@ class $p extends w {
|
|
|
2995
2995
|
}), [o, r];
|
|
2996
2996
|
}
|
|
2997
2997
|
async bulkUpdate(e, s) {
|
|
2998
|
-
const n = this.client.store.getState(), a =
|
|
2998
|
+
const n = this.client.store.getState(), a = Pt(e.map(({ offline_id: o }) => o))(n);
|
|
2999
2999
|
return this.dispatch(Ue(e)), this.enqueueRequest({
|
|
3000
3000
|
description: "Edit asset stages",
|
|
3001
3001
|
method: d.PATCH,
|
|
@@ -3010,7 +3010,7 @@ class $p extends w {
|
|
|
3010
3010
|
});
|
|
3011
3011
|
}
|
|
3012
3012
|
async bulkDelete(e) {
|
|
3013
|
-
const { store: s } = this.client, i =
|
|
3013
|
+
const { store: s } = this.client, i = Pt(e)(s.getState());
|
|
3014
3014
|
this.dispatch(Ye(e));
|
|
3015
3015
|
const n = this.enqueueRequest({
|
|
3016
3016
|
description: "Delete asset stages",
|
|
@@ -3033,7 +3033,7 @@ class $p extends w {
|
|
|
3033
3033
|
...i,
|
|
3034
3034
|
...e
|
|
3035
3035
|
};
|
|
3036
|
-
this.dispatch(
|
|
3036
|
+
this.dispatch(jt(n));
|
|
3037
3037
|
const a = this.enqueueRequest({
|
|
3038
3038
|
description: "Update asset stage",
|
|
3039
3039
|
method: d.PATCH,
|
|
@@ -3048,7 +3048,7 @@ class $p extends w {
|
|
|
3048
3048
|
blocks: [i.offline_id]
|
|
3049
3049
|
});
|
|
3050
3050
|
return a.then((o) => {
|
|
3051
|
-
this.dispatch(
|
|
3051
|
+
this.dispatch(jt(o));
|
|
3052
3052
|
}).catch(() => {
|
|
3053
3053
|
this.dispatch(Na(i));
|
|
3054
3054
|
}), [n, a];
|
|
@@ -3067,14 +3067,14 @@ class $p extends w {
|
|
|
3067
3067
|
this.dispatch(Ba(s));
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
3070
|
-
class
|
|
3070
|
+
class Vp extends Ie {
|
|
3071
3071
|
constructor() {
|
|
3072
3072
|
super(...arguments);
|
|
3073
3073
|
y(this, "name", "Asset Type Attachment");
|
|
3074
3074
|
y(this, "url", "/asset-type-attachments");
|
|
3075
|
-
y(this, "addAttachments",
|
|
3075
|
+
y(this, "addAttachments", bi);
|
|
3076
3076
|
y(this, "updateAttachments", Qa);
|
|
3077
|
-
y(this, "removeAttachments",
|
|
3077
|
+
y(this, "removeAttachments", _i);
|
|
3078
3078
|
y(this, "removeAttachment", Za);
|
|
3079
3079
|
y(this, "setAttachment", Xa);
|
|
3080
3080
|
y(this, "selectAttachment", to);
|
|
@@ -3117,7 +3117,7 @@ class Up extends Ie {
|
|
|
3117
3117
|
this.dispatch(Ja(i));
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
|
-
class
|
|
3120
|
+
class Gp extends k {
|
|
3121
3121
|
async bulkAdd(e) {
|
|
3122
3122
|
var u;
|
|
3123
3123
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
|
|
@@ -3182,7 +3182,7 @@ class Vp extends k {
|
|
|
3182
3182
|
this.dispatch(no(s));
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
class
|
|
3185
|
+
class Lp extends w {
|
|
3186
3186
|
add(e) {
|
|
3187
3187
|
var r;
|
|
3188
3188
|
const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
|
|
@@ -3219,10 +3219,10 @@ class Gp extends w {
|
|
|
3219
3219
|
this.dispatch(ho(s));
|
|
3220
3220
|
}
|
|
3221
3221
|
}
|
|
3222
|
-
class
|
|
3222
|
+
class Bp extends k {
|
|
3223
3223
|
async bulkAdd(e, s) {
|
|
3224
3224
|
var c;
|
|
3225
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), n = (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id, a =
|
|
3225
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), n = (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id, a = pt(e, s ?? e.length), o = [], r = [];
|
|
3226
3226
|
for (const l of a) {
|
|
3227
3227
|
const h = {}, m = [];
|
|
3228
3228
|
for (const f of l) {
|
|
@@ -3239,7 +3239,7 @@ class Lp extends k {
|
|
|
3239
3239
|
field_identifier: T
|
|
3240
3240
|
});
|
|
3241
3241
|
o.push(ee);
|
|
3242
|
-
const
|
|
3242
|
+
const ft = {
|
|
3243
3243
|
offline_id: ee.offline_id,
|
|
3244
3244
|
file_name: S.name,
|
|
3245
3245
|
file_sha1: E.sha1,
|
|
@@ -3247,7 +3247,7 @@ class Lp extends k {
|
|
|
3247
3247
|
field_identifier: T,
|
|
3248
3248
|
field_values: b
|
|
3249
3249
|
};
|
|
3250
|
-
m.push(
|
|
3250
|
+
m.push(ft);
|
|
3251
3251
|
}
|
|
3252
3252
|
r.push({
|
|
3253
3253
|
submitted_at: i,
|
|
@@ -3309,7 +3309,7 @@ class Lp extends k {
|
|
|
3309
3309
|
this.dispatch(go(s));
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
const Dl = (t) => Array.isArray(t) && t[0] instanceof File,
|
|
3312
|
+
const Dl = (t) => Array.isArray(t) && t[0] instanceof File, Qs = (t) => {
|
|
3313
3313
|
const e = {}, s = {};
|
|
3314
3314
|
for (const i in t) {
|
|
3315
3315
|
const n = t[i];
|
|
@@ -3317,7 +3317,7 @@ const Dl = (t) => Array.isArray(t) && t[0] instanceof File, Xs = (t) => {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
return { values: s, files: e };
|
|
3319
3319
|
};
|
|
3320
|
-
class
|
|
3320
|
+
class Np extends k {
|
|
3321
3321
|
add(e) {
|
|
3322
3322
|
var o;
|
|
3323
3323
|
const { store: s } = this.client, i = s.getState(), n = R({
|
|
@@ -3337,12 +3337,12 @@ class Bp extends k {
|
|
|
3337
3337
|
],
|
|
3338
3338
|
blocks: [n.offline_id]
|
|
3339
3339
|
});
|
|
3340
|
-
return this.dispatch(
|
|
3341
|
-
this.dispatch(
|
|
3340
|
+
return this.dispatch(cs(n)), a.then((r) => (this.dispatch(Ve(r)), r)).catch(() => {
|
|
3341
|
+
this.dispatch(rs(n.offline_id));
|
|
3342
3342
|
}), [n, a];
|
|
3343
3343
|
}
|
|
3344
3344
|
update(e) {
|
|
3345
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3345
|
+
const { store: s } = this.client, i = s.getState(), n = ds(e.offline_id)(i);
|
|
3346
3346
|
if (!n)
|
|
3347
3347
|
throw new Error(`Expected submission with offline_id ${e.offline_id} to exist`);
|
|
3348
3348
|
const a = {
|
|
@@ -3365,11 +3365,11 @@ class Bp extends k {
|
|
|
3365
3365
|
}), [a, o];
|
|
3366
3366
|
}
|
|
3367
3367
|
async delete(e) {
|
|
3368
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3368
|
+
const { store: s } = this.client, i = s.getState(), n = ds(e)(i);
|
|
3369
3369
|
if (!n)
|
|
3370
3370
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
3371
3371
|
const a = jc(e)(i);
|
|
3372
|
-
this.dispatch(
|
|
3372
|
+
this.dispatch(rs(e)), this.dispatch(Ze(a.map((o) => o.offline_id)));
|
|
3373
3373
|
try {
|
|
3374
3374
|
return await this.enqueueRequest({
|
|
3375
3375
|
description: "Delete user form submissions",
|
|
@@ -3379,7 +3379,7 @@ class Bp extends k {
|
|
|
3379
3379
|
blocks: []
|
|
3380
3380
|
});
|
|
3381
3381
|
} catch (o) {
|
|
3382
|
-
throw this.dispatch(
|
|
3382
|
+
throw this.dispatch(cs(n)), this.dispatch(Qe(a)), o;
|
|
3383
3383
|
}
|
|
3384
3384
|
}
|
|
3385
3385
|
async refreshStore(e) {
|
|
@@ -3396,7 +3396,7 @@ class Bp extends k {
|
|
|
3396
3396
|
this.dispatch(Dc(s));
|
|
3397
3397
|
}
|
|
3398
3398
|
}
|
|
3399
|
-
class
|
|
3399
|
+
class Hp extends w {
|
|
3400
3400
|
add(e) {
|
|
3401
3401
|
var o;
|
|
3402
3402
|
const { store: s } = this.client, i = s.getState(), n = R({
|
|
@@ -3411,19 +3411,19 @@ class Np extends w {
|
|
|
3411
3411
|
blockers: [e.asset, e.fields_revision],
|
|
3412
3412
|
blocks: [n.offline_id]
|
|
3413
3413
|
});
|
|
3414
|
-
return this.dispatch(
|
|
3415
|
-
this.dispatch(
|
|
3414
|
+
return this.dispatch($t(n)), a.then((r) => (this.dispatch(Fe(r)), r)).catch(() => {
|
|
3415
|
+
this.dispatch(Ut(n.offline_id));
|
|
3416
3416
|
}), [n, a];
|
|
3417
3417
|
}
|
|
3418
3418
|
bulkAdd(e, s) {
|
|
3419
3419
|
var c;
|
|
3420
|
-
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } =
|
|
3420
|
+
const i = (/* @__PURE__ */ new Date()).toISOString(), { values: n } = Qs(e.values), a = [], o = pt(e.payloads, s ?? e.payloads.length), r = [];
|
|
3421
3421
|
for (const l of o) {
|
|
3422
3422
|
const h = [];
|
|
3423
3423
|
for (const m of l) {
|
|
3424
3424
|
const f = R({
|
|
3425
3425
|
...m,
|
|
3426
|
-
values:
|
|
3426
|
+
values: Qs(m.values).values,
|
|
3427
3427
|
created_by: (c = this.client.store.getState().userReducer.currentUser) == null ? void 0 : c.id,
|
|
3428
3428
|
submitted_at: i
|
|
3429
3429
|
});
|
|
@@ -3461,7 +3461,7 @@ class Np extends w {
|
|
|
3461
3461
|
}), [a, u];
|
|
3462
3462
|
}
|
|
3463
3463
|
update(e) {
|
|
3464
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3464
|
+
const { store: s } = this.client, i = s.getState(), n = Vt(e.offline_id)(i);
|
|
3465
3465
|
if (!n)
|
|
3466
3466
|
throw new Error(`Expected AssetTypeFieldValues with offline_id ${e.offline_id} to exist`);
|
|
3467
3467
|
const a = {
|
|
@@ -3488,11 +3488,11 @@ class Np extends w {
|
|
|
3488
3488
|
}), [a, o];
|
|
3489
3489
|
}
|
|
3490
3490
|
async delete(e) {
|
|
3491
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3491
|
+
const { store: s } = this.client, i = s.getState(), n = Vt(e)(i);
|
|
3492
3492
|
if (!n)
|
|
3493
3493
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
3494
3494
|
const a = To(e)(i);
|
|
3495
|
-
this.dispatch(
|
|
3495
|
+
this.dispatch(Ut(e)), this.dispatch(Xe(a.map((o) => o.offline_id)));
|
|
3496
3496
|
try {
|
|
3497
3497
|
await this.enqueueRequest({
|
|
3498
3498
|
description: "Delete asset type field values",
|
|
@@ -3502,7 +3502,7 @@ class Np extends w {
|
|
|
3502
3502
|
blocks: []
|
|
3503
3503
|
});
|
|
3504
3504
|
} catch (o) {
|
|
3505
|
-
throw this.dispatch(
|
|
3505
|
+
throw this.dispatch($t(n)), this.dispatch(Je(a)), o;
|
|
3506
3506
|
}
|
|
3507
3507
|
}
|
|
3508
3508
|
async refreshStore(e) {
|
|
@@ -3519,14 +3519,14 @@ class Np extends w {
|
|
|
3519
3519
|
this.dispatch(Oo(s));
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
|
-
class
|
|
3522
|
+
class Wp extends w {
|
|
3523
3523
|
add(e) {
|
|
3524
3524
|
const { store: s } = this.client, i = s.getState().userReducer.currentUser.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
|
|
3525
3525
|
...e,
|
|
3526
3526
|
created_by: i,
|
|
3527
3527
|
submitted_at: n
|
|
3528
3528
|
});
|
|
3529
|
-
this.dispatch(
|
|
3529
|
+
this.dispatch(Lt(a));
|
|
3530
3530
|
const o = this.enqueueRequest({
|
|
3531
3531
|
description: "Create asset type",
|
|
3532
3532
|
method: d.POST,
|
|
@@ -3538,11 +3538,11 @@ class Hp extends w {
|
|
|
3538
3538
|
return o.then((r) => {
|
|
3539
3539
|
this.dispatch(ke(r));
|
|
3540
3540
|
}).catch(() => {
|
|
3541
|
-
this.dispatch(
|
|
3541
|
+
this.dispatch(Bt(a.offline_id));
|
|
3542
3542
|
}), [a, o];
|
|
3543
3543
|
}
|
|
3544
3544
|
update(e) {
|
|
3545
|
-
const { store: s } = this.client, i =
|
|
3545
|
+
const { store: s } = this.client, i = Nt(e.offline_id)(s.getState());
|
|
3546
3546
|
if (!i)
|
|
3547
3547
|
throw new Error(`Expected asset type with offline_id ${e.offline_id} to exist`);
|
|
3548
3548
|
const n = {
|
|
@@ -3570,18 +3570,18 @@ class Hp extends w {
|
|
|
3570
3570
|
}), [n, a];
|
|
3571
3571
|
}
|
|
3572
3572
|
async delete(e) {
|
|
3573
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3573
|
+
const { store: s } = this.client, i = s.getState(), n = Nt(e)(i);
|
|
3574
3574
|
if (!n)
|
|
3575
3575
|
throw new Error(`Expected asset type with offline_id ${e} to exist`);
|
|
3576
|
-
const a =
|
|
3577
|
-
return this.dispatch(
|
|
3576
|
+
const a = pi(e)(i), o = Ya(e)(i), r = so(e)(i);
|
|
3577
|
+
return this.dispatch(Bt(e)), this.dispatch(Ca(a.map((u) => u.offline_id))), this.dispatch(Ye(o.map((u) => u.offline_id))), this.dispatch(_i(r.map(({ offline_id: u }) => u))), this.enqueueRequest({
|
|
3578
3578
|
description: "Delete asset type",
|
|
3579
3579
|
method: d.DELETE,
|
|
3580
3580
|
url: `/asset-types/${e}/`,
|
|
3581
3581
|
blockers: [e],
|
|
3582
3582
|
blocks: []
|
|
3583
3583
|
}).catch((u) => {
|
|
3584
|
-
throw this.dispatch(
|
|
3584
|
+
throw this.dispatch(Lt(n)), this.dispatch(hi(a)), this.dispatch(Ke(o)), this.dispatch(bi(r)), u;
|
|
3585
3585
|
});
|
|
3586
3586
|
}
|
|
3587
3587
|
async refreshStore(e) {
|
|
@@ -3598,7 +3598,7 @@ class Hp extends w {
|
|
|
3598
3598
|
this.dispatch(ko(s));
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
|
-
class
|
|
3601
|
+
class Kp extends w {
|
|
3602
3602
|
add(e) {
|
|
3603
3603
|
var r;
|
|
3604
3604
|
const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
|
|
@@ -3606,7 +3606,7 @@ class Wp extends w {
|
|
|
3606
3606
|
created_by: i,
|
|
3607
3607
|
submitted_at: n
|
|
3608
3608
|
});
|
|
3609
|
-
this.dispatch(
|
|
3609
|
+
this.dispatch(Kt(a));
|
|
3610
3610
|
const o = this.enqueueRequest({
|
|
3611
3611
|
description: "Create Category",
|
|
3612
3612
|
method: d.POST,
|
|
@@ -3618,7 +3618,7 @@ class Wp extends w {
|
|
|
3618
3618
|
return [a, o];
|
|
3619
3619
|
}
|
|
3620
3620
|
update(e) {
|
|
3621
|
-
const s = this.client.store.getState(), i =
|
|
3621
|
+
const s = this.client.store.getState(), i = Yt(e.offline_id)(s);
|
|
3622
3622
|
if (!i)
|
|
3623
3623
|
throw new Error(`Expected an existing category with offline_id ${e.offline_id}`);
|
|
3624
3624
|
const n = { ...i, ...e };
|
|
@@ -3634,7 +3634,7 @@ class Wp extends w {
|
|
|
3634
3634
|
return [n, a];
|
|
3635
3635
|
}
|
|
3636
3636
|
remove(e) {
|
|
3637
|
-
const { store: s } = this.client, i =
|
|
3637
|
+
const { store: s } = this.client, i = Yt(e)(s.getState());
|
|
3638
3638
|
if (!i)
|
|
3639
3639
|
throw new Error(`No category with id ${e} found in the store`);
|
|
3640
3640
|
this.dispatch(xo(e));
|
|
@@ -3646,7 +3646,7 @@ class Wp extends w {
|
|
|
3646
3646
|
blocks: []
|
|
3647
3647
|
});
|
|
3648
3648
|
return n.catch(() => {
|
|
3649
|
-
this.dispatch(
|
|
3649
|
+
this.dispatch(Kt(i));
|
|
3650
3650
|
}), n;
|
|
3651
3651
|
}
|
|
3652
3652
|
async refreshStore(e) {
|
|
@@ -3663,7 +3663,7 @@ class Wp extends w {
|
|
|
3663
3663
|
this.dispatch(Do(s));
|
|
3664
3664
|
}
|
|
3665
3665
|
}
|
|
3666
|
-
class
|
|
3666
|
+
class Yp extends Ie {
|
|
3667
3667
|
constructor() {
|
|
3668
3668
|
super(...arguments);
|
|
3669
3669
|
y(this, "name", "Document Attachment");
|
|
@@ -3778,7 +3778,7 @@ class Kp extends Ie {
|
|
|
3778
3778
|
this.dispatch(this.addAttachments(a));
|
|
3779
3779
|
}
|
|
3780
3780
|
}
|
|
3781
|
-
class
|
|
3781
|
+
class Jp extends w {
|
|
3782
3782
|
add(e) {
|
|
3783
3783
|
var r;
|
|
3784
3784
|
const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
|
|
@@ -3800,7 +3800,7 @@ class Yp extends w {
|
|
|
3800
3800
|
blocks: [a.offline_id]
|
|
3801
3801
|
});
|
|
3802
3802
|
return o.catch(() => {
|
|
3803
|
-
this.dispatch(
|
|
3803
|
+
this.dispatch(Qt([a.offline_id]));
|
|
3804
3804
|
}), [a, o];
|
|
3805
3805
|
}
|
|
3806
3806
|
update(e) {
|
|
@@ -3865,7 +3865,7 @@ class Yp extends w {
|
|
|
3865
3865
|
`attempting to delete a document with offline_id ${e} that does not exist in store.documents`
|
|
3866
3866
|
);
|
|
3867
3867
|
const a = n.parent_document ? i[n.parent_document] : void 0;
|
|
3868
|
-
this.dispatch(
|
|
3868
|
+
this.dispatch(Qt([e]));
|
|
3869
3869
|
const o = this.enqueueRequest({
|
|
3870
3870
|
description: "Delete Document",
|
|
3871
3871
|
method: d.DELETE,
|
|
@@ -3896,7 +3896,7 @@ class Yp extends w {
|
|
|
3896
3896
|
this.dispatch(Wo([...await i, ...await n]));
|
|
3897
3897
|
}
|
|
3898
3898
|
}
|
|
3899
|
-
class
|
|
3899
|
+
class Xp extends w {
|
|
3900
3900
|
async add(e, s) {
|
|
3901
3901
|
return this.enqueueRequest({
|
|
3902
3902
|
description: "Add email domain to organization",
|
|
@@ -3929,7 +3929,7 @@ class Jp extends w {
|
|
|
3929
3929
|
this.dispatch(ec(s));
|
|
3930
3930
|
}
|
|
3931
3931
|
}
|
|
3932
|
-
class
|
|
3932
|
+
class Qp extends w {
|
|
3933
3933
|
async getVerificationCode(e) {
|
|
3934
3934
|
return this.enqueueRequest({
|
|
3935
3935
|
description: "Get verification code",
|
|
@@ -3955,7 +3955,7 @@ class Xp extends w {
|
|
|
3955
3955
|
const De = {}, Be = /* @__PURE__ */ new Set();
|
|
3956
3956
|
let Ce = 0, Ne = 0, He = 0;
|
|
3957
3957
|
const Cl = 20;
|
|
3958
|
-
class
|
|
3958
|
+
class Zp extends w {
|
|
3959
3959
|
constructor() {
|
|
3960
3960
|
super(...arguments);
|
|
3961
3961
|
y(this, "host");
|
|
@@ -3970,7 +3970,7 @@ class Qp extends w {
|
|
|
3970
3970
|
async renewUploadUrl(s) {
|
|
3971
3971
|
const i = await this.fetchCache(s);
|
|
3972
3972
|
if (!i) throw new Error(`File with sha1 ${s} not found in cache`);
|
|
3973
|
-
const n = await
|
|
3973
|
+
const n = await At(i, s), a = await this.enqueueRequest({
|
|
3974
3974
|
description: "Get S3 URL",
|
|
3975
3975
|
method: d.GET,
|
|
3976
3976
|
url: "/authentication/files/presigned-upload-url/",
|
|
@@ -4019,7 +4019,7 @@ class Qp extends w {
|
|
|
4019
4019
|
async uploadFileToS3(s) {
|
|
4020
4020
|
const i = await this.fetchCache(s);
|
|
4021
4021
|
if (!i) throw new Error(`File with sha1 ${s} not found in cache`);
|
|
4022
|
-
const n = await
|
|
4022
|
+
const n = await At(i, s), a = {
|
|
4023
4023
|
file_name: i.name,
|
|
4024
4024
|
file_sha1: s,
|
|
4025
4025
|
file: n
|
|
@@ -4112,7 +4112,7 @@ class Qp extends w {
|
|
|
4112
4112
|
return c;
|
|
4113
4113
|
}
|
|
4114
4114
|
}
|
|
4115
|
-
class
|
|
4115
|
+
class ef extends k {
|
|
4116
4116
|
async bulkAdd(e) {
|
|
4117
4117
|
var u;
|
|
4118
4118
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
|
|
@@ -4177,7 +4177,7 @@ class Zp extends k {
|
|
|
4177
4177
|
this.dispatch(lc(s));
|
|
4178
4178
|
}
|
|
4179
4179
|
}
|
|
4180
|
-
class
|
|
4180
|
+
class tf extends k {
|
|
4181
4181
|
add(e) {
|
|
4182
4182
|
var r;
|
|
4183
4183
|
const { store: s } = this.client, n = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = R({
|
|
@@ -4186,7 +4186,7 @@ class ef extends k {
|
|
|
4186
4186
|
revision: "Pending",
|
|
4187
4187
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4188
4188
|
});
|
|
4189
|
-
this.dispatch(
|
|
4189
|
+
this.dispatch(Ui(a));
|
|
4190
4190
|
const o = this.enqueueRequest({
|
|
4191
4191
|
description: "Create form revision",
|
|
4192
4192
|
method: d.POST,
|
|
@@ -4198,7 +4198,7 @@ class ef extends k {
|
|
|
4198
4198
|
return o.then((u) => {
|
|
4199
4199
|
this.dispatch(Ac(u));
|
|
4200
4200
|
}).catch(() => {
|
|
4201
|
-
this.dispatch(
|
|
4201
|
+
this.dispatch(Vi(a.offline_id));
|
|
4202
4202
|
}), [a, o];
|
|
4203
4203
|
}
|
|
4204
4204
|
async refreshStore(e) {
|
|
@@ -4215,7 +4215,7 @@ class ef extends k {
|
|
|
4215
4215
|
this.dispatch(gc(s));
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
4218
|
-
const
|
|
4218
|
+
const sf = async (t) => {
|
|
4219
4219
|
const e = {}, s = [];
|
|
4220
4220
|
for (const i of t) {
|
|
4221
4221
|
if (i.type !== "section")
|
|
@@ -4239,7 +4239,7 @@ const tf = async (t) => {
|
|
|
4239
4239
|
}
|
|
4240
4240
|
return { fields: s, images: e };
|
|
4241
4241
|
};
|
|
4242
|
-
class
|
|
4242
|
+
class nf extends k {
|
|
4243
4243
|
add(e, s) {
|
|
4244
4244
|
var c;
|
|
4245
4245
|
const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (c = i.getState().userReducer.currentUser) == null ? void 0 : c.id, o = R({
|
|
@@ -4253,7 +4253,7 @@ class sf extends k {
|
|
|
4253
4253
|
submitted_at: n,
|
|
4254
4254
|
created_by: a
|
|
4255
4255
|
});
|
|
4256
|
-
this.dispatch(
|
|
4256
|
+
this.dispatch(is(o)), this.dispatch(Ui(r));
|
|
4257
4257
|
const u = this.enqueueRequest({
|
|
4258
4258
|
description: "Create form",
|
|
4259
4259
|
method: d.POST,
|
|
@@ -4272,7 +4272,7 @@ class sf extends k {
|
|
|
4272
4272
|
blocks: [o.offline_id, r.offline_id]
|
|
4273
4273
|
});
|
|
4274
4274
|
return u.catch((l) => {
|
|
4275
|
-
throw this.dispatch(
|
|
4275
|
+
throw this.dispatch(ns(o.offline_id)), this.dispatch(Vi(r.offline_id)), l;
|
|
4276
4276
|
}), [o, r, u];
|
|
4277
4277
|
}
|
|
4278
4278
|
async delete(e) {
|
|
@@ -4282,7 +4282,7 @@ class sf extends k {
|
|
|
4282
4282
|
const a = xc(e)(i);
|
|
4283
4283
|
a.length > 0 && this.dispatch(rt(a.map(({ offline_id: r }) => r)));
|
|
4284
4284
|
const o = Rc(e)(i);
|
|
4285
|
-
o.length > 0 && this.dispatch(_c(o.map(({ offline_id: r }) => r))), this.dispatch(
|
|
4285
|
+
o.length > 0 && this.dispatch(_c(o.map(({ offline_id: r }) => r))), this.dispatch(ns(e));
|
|
4286
4286
|
try {
|
|
4287
4287
|
return await this.enqueueRequest({
|
|
4288
4288
|
description: "Delete form",
|
|
@@ -4292,7 +4292,7 @@ class sf extends k {
|
|
|
4292
4292
|
blocks: []
|
|
4293
4293
|
});
|
|
4294
4294
|
} catch (r) {
|
|
4295
|
-
throw this.dispatch(
|
|
4295
|
+
throw this.dispatch(is(n)), o.length > 0 && this.dispatch(bc(o)), a.length > 0 && this.dispatch(ct(a)), r;
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
4298
|
async refreshStore(e) {
|
|
@@ -4309,7 +4309,7 @@ class sf extends k {
|
|
|
4309
4309
|
this.dispatch(wc(s));
|
|
4310
4310
|
}
|
|
4311
4311
|
}
|
|
4312
|
-
class
|
|
4312
|
+
class af extends k {
|
|
4313
4313
|
async bulkAdd(e) {
|
|
4314
4314
|
var u;
|
|
4315
4315
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
|
|
@@ -4390,7 +4390,7 @@ class nf extends k {
|
|
|
4390
4390
|
this.dispatch(Fc(s));
|
|
4391
4391
|
}
|
|
4392
4392
|
}
|
|
4393
|
-
class
|
|
4393
|
+
class of extends k {
|
|
4394
4394
|
async add(e) {
|
|
4395
4395
|
var h;
|
|
4396
4396
|
const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), o = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.id, r = n.project, u = await this.getFilePayload(i), c = R({
|
|
@@ -4426,7 +4426,7 @@ class af extends k {
|
|
|
4426
4426
|
return l.then((m) => {
|
|
4427
4427
|
this.processPresignedUrls(m.presigned_urls), this.dispatch(qe(m.geo_image));
|
|
4428
4428
|
}).catch(() => {
|
|
4429
|
-
this.dispatch(
|
|
4429
|
+
this.dispatch(us(c.offline_id));
|
|
4430
4430
|
}), [c, l.then((m) => m.geo_image)];
|
|
4431
4431
|
}
|
|
4432
4432
|
async bulkAdd(e, s) {
|
|
@@ -4477,7 +4477,7 @@ class af extends k {
|
|
|
4477
4477
|
}), [o, l.then((m) => m.geo_images)];
|
|
4478
4478
|
}
|
|
4479
4479
|
update(e) {
|
|
4480
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4480
|
+
const { store: s } = this.client, i = s.getState(), n = hs(e.offline_id)(i);
|
|
4481
4481
|
if (!n)
|
|
4482
4482
|
throw new Error(`Map image with offline_id ${e.offline_id} does not exist in the store`);
|
|
4483
4483
|
const a = { ...n, ...e };
|
|
@@ -4497,10 +4497,10 @@ class af extends k {
|
|
|
4497
4497
|
}), [a, o];
|
|
4498
4498
|
}
|
|
4499
4499
|
async delete(e) {
|
|
4500
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4500
|
+
const { store: s } = this.client, i = s.getState(), n = hs(e)(i);
|
|
4501
4501
|
if (!n)
|
|
4502
4502
|
throw new Error(`Map image with offline_id ${e} does not exist in the store`);
|
|
4503
|
-
this.dispatch(
|
|
4503
|
+
this.dispatch(us(e));
|
|
4504
4504
|
const a = this.enqueueRequest({
|
|
4505
4505
|
description: "Delete geo image",
|
|
4506
4506
|
method: d.DELETE,
|
|
@@ -4523,7 +4523,7 @@ class af extends k {
|
|
|
4523
4523
|
this.dispatch(Uc(s));
|
|
4524
4524
|
}
|
|
4525
4525
|
}
|
|
4526
|
-
class
|
|
4526
|
+
class cf extends w {
|
|
4527
4527
|
add(e) {
|
|
4528
4528
|
var r;
|
|
4529
4529
|
const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = R({
|
|
@@ -4531,7 +4531,7 @@ class of extends w {
|
|
|
4531
4531
|
submitted_at: i,
|
|
4532
4532
|
created_by: n
|
|
4533
4533
|
});
|
|
4534
|
-
this.dispatch(
|
|
4534
|
+
this.dispatch(ps(a));
|
|
4535
4535
|
const o = this.enqueueRequest({
|
|
4536
4536
|
description: "Add issue association",
|
|
4537
4537
|
method: d.POST,
|
|
@@ -4551,14 +4551,14 @@ class of extends w {
|
|
|
4551
4551
|
return o.then((u) => {
|
|
4552
4552
|
this.dispatch(Jc(u));
|
|
4553
4553
|
}).catch(() => {
|
|
4554
|
-
this.dispatch(
|
|
4554
|
+
this.dispatch(fs(a.offline_id));
|
|
4555
4555
|
}), [a, o];
|
|
4556
4556
|
}
|
|
4557
4557
|
async delete(e) {
|
|
4558
4558
|
const { store: s } = this.client, i = Xc(e)(s.getState());
|
|
4559
4559
|
if (!i)
|
|
4560
4560
|
throw new Error(`Issue association with id ${e} not found in store.`);
|
|
4561
|
-
this.dispatch(
|
|
4561
|
+
this.dispatch(fs(e));
|
|
4562
4562
|
const n = this.enqueueRequest({
|
|
4563
4563
|
description: "Delete issue association",
|
|
4564
4564
|
method: d.DELETE,
|
|
@@ -4567,7 +4567,7 @@ class of extends w {
|
|
|
4567
4567
|
blocks: []
|
|
4568
4568
|
});
|
|
4569
4569
|
return n.catch(() => {
|
|
4570
|
-
this.dispatch(
|
|
4570
|
+
this.dispatch(ps(i));
|
|
4571
4571
|
}), n;
|
|
4572
4572
|
}
|
|
4573
4573
|
async refreshStore(e) {
|
|
@@ -4582,14 +4582,14 @@ class of extends w {
|
|
|
4582
4582
|
this.dispatch(Yc(s));
|
|
4583
4583
|
}
|
|
4584
4584
|
}
|
|
4585
|
-
class
|
|
4585
|
+
class rf extends Ie {
|
|
4586
4586
|
constructor() {
|
|
4587
4587
|
super(...arguments);
|
|
4588
4588
|
y(this, "name", "Issue Attachment");
|
|
4589
4589
|
y(this, "url", "/issue-attachments");
|
|
4590
|
-
y(this, "addAttachments",
|
|
4590
|
+
y(this, "addAttachments", Zi);
|
|
4591
4591
|
y(this, "updateAttachments", nr);
|
|
4592
|
-
y(this, "removeAttachments",
|
|
4592
|
+
y(this, "removeAttachments", en);
|
|
4593
4593
|
y(this, "removeAttachment", ar);
|
|
4594
4594
|
y(this, "setAttachment", ir);
|
|
4595
4595
|
y(this, "selectAttachment", rr);
|
|
@@ -4632,7 +4632,7 @@ class cf extends Ie {
|
|
|
4632
4632
|
this.dispatch(sr(i));
|
|
4633
4633
|
}
|
|
4634
4634
|
}
|
|
4635
|
-
class
|
|
4635
|
+
class df extends w {
|
|
4636
4636
|
add(e) {
|
|
4637
4637
|
var a;
|
|
4638
4638
|
const { store: s } = this.client, i = R({
|
|
@@ -4640,7 +4640,7 @@ class rf extends w {
|
|
|
4640
4640
|
author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.id,
|
|
4641
4641
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4642
4642
|
});
|
|
4643
|
-
this.dispatch(
|
|
4643
|
+
this.dispatch(bs(i));
|
|
4644
4644
|
const n = this.enqueueRequest({
|
|
4645
4645
|
description: "Add issue comment",
|
|
4646
4646
|
method: d.POST,
|
|
@@ -4650,7 +4650,7 @@ class rf extends w {
|
|
|
4650
4650
|
blocks: [i.offline_id]
|
|
4651
4651
|
});
|
|
4652
4652
|
return n.catch(() => {
|
|
4653
|
-
this.dispatch(
|
|
4653
|
+
this.dispatch(_s(i.offline_id));
|
|
4654
4654
|
}), [i, n];
|
|
4655
4655
|
}
|
|
4656
4656
|
update(e) {
|
|
@@ -4661,7 +4661,7 @@ class rf extends w {
|
|
|
4661
4661
|
...i,
|
|
4662
4662
|
...e
|
|
4663
4663
|
};
|
|
4664
|
-
this.dispatch(
|
|
4664
|
+
this.dispatch(gs(n));
|
|
4665
4665
|
const a = this.enqueueRequest({
|
|
4666
4666
|
description: "Edit issue comment",
|
|
4667
4667
|
method: d.PATCH,
|
|
@@ -4671,14 +4671,14 @@ class rf extends w {
|
|
|
4671
4671
|
blocks: [e.offline_id]
|
|
4672
4672
|
});
|
|
4673
4673
|
return a.catch(() => {
|
|
4674
|
-
this.dispatch(
|
|
4674
|
+
this.dispatch(gs(i));
|
|
4675
4675
|
}), [n, a];
|
|
4676
4676
|
}
|
|
4677
4677
|
remove(e) {
|
|
4678
4678
|
const s = this.client.store.getState().issueCommentReducer.instances[e];
|
|
4679
4679
|
if (!s)
|
|
4680
4680
|
throw new Error(`Comment with offline_id ${e} not found in store`);
|
|
4681
|
-
this.dispatch(
|
|
4681
|
+
this.dispatch(_s(e));
|
|
4682
4682
|
const i = this.enqueueRequest({
|
|
4683
4683
|
description: "Delete comment",
|
|
4684
4684
|
method: d.DELETE,
|
|
@@ -4687,7 +4687,7 @@ class rf extends w {
|
|
|
4687
4687
|
blocks: []
|
|
4688
4688
|
});
|
|
4689
4689
|
return i.catch(() => {
|
|
4690
|
-
this.dispatch(
|
|
4690
|
+
this.dispatch(bs(s));
|
|
4691
4691
|
}), i;
|
|
4692
4692
|
}
|
|
4693
4693
|
async refreshStore(e) {
|
|
@@ -4704,7 +4704,7 @@ class rf extends w {
|
|
|
4704
4704
|
this.dispatch(lr(s));
|
|
4705
4705
|
}
|
|
4706
4706
|
}
|
|
4707
|
-
class
|
|
4707
|
+
class lf extends w {
|
|
4708
4708
|
add(e) {
|
|
4709
4709
|
var u;
|
|
4710
4710
|
const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (u = i.userReducer.currentUser) == null ? void 0 : u.id, o = R({
|
|
@@ -4712,7 +4712,7 @@ class df extends w {
|
|
|
4712
4712
|
submitted_at: n,
|
|
4713
4713
|
created_by: a
|
|
4714
4714
|
});
|
|
4715
|
-
this.dispatch(
|
|
4715
|
+
this.dispatch(Ts(o));
|
|
4716
4716
|
const r = this.enqueueRequest({
|
|
4717
4717
|
description: "Create issue",
|
|
4718
4718
|
method: d.POST,
|
|
@@ -4724,12 +4724,12 @@ class df extends w {
|
|
|
4724
4724
|
return r.then((c) => {
|
|
4725
4725
|
this.dispatch(Ge(c));
|
|
4726
4726
|
}).catch((c) => {
|
|
4727
|
-
throw this.dispatch(
|
|
4727
|
+
throw this.dispatch(Rs(o.offline_id)), c;
|
|
4728
4728
|
}), [o, r];
|
|
4729
4729
|
}
|
|
4730
4730
|
update(e) {
|
|
4731
4731
|
var u;
|
|
4732
|
-
const s = this.client.store.getState(), i =
|
|
4732
|
+
const s = this.client.store.getState(), i = Os(e.offline_id)(s);
|
|
4733
4733
|
if (!i)
|
|
4734
4734
|
throw new Error(
|
|
4735
4735
|
`Attempting to update an issue with offline_id ${e.offline_id} that doesn't exist in the store`
|
|
@@ -4807,7 +4807,7 @@ class df extends w {
|
|
|
4807
4807
|
}), [n, r];
|
|
4808
4808
|
}
|
|
4809
4809
|
async remove(e) {
|
|
4810
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4810
|
+
const { store: s } = this.client, i = s.getState(), n = Os(e)(i);
|
|
4811
4811
|
if (!n)
|
|
4812
4812
|
throw new Error(`No issue with id ${e} found in the store`);
|
|
4813
4813
|
const a = cr(e)(i), o = Zr(e)(i), r = Mc(e)(i), u = {};
|
|
@@ -4816,7 +4816,7 @@ class df extends w {
|
|
|
4816
4816
|
for (const l of Zc(e)(i))
|
|
4817
4817
|
u[l.offline_id] = l;
|
|
4818
4818
|
const c = Object.values(u);
|
|
4819
|
-
this.dispatch(
|
|
4819
|
+
this.dispatch(Rs(e)), a.length > 0 && this.dispatch(en(a.map(({ offline_id: l }) => l))), o.length > 0 && this.dispatch(Xr(o.map(({ offline_id: l }) => l))), r.length > 0 && this.dispatch(rt(r.map(({ offline_id: l }) => l))), c.length > 0 && this.dispatch(Xi(c.map(({ offline_id: l }) => l)));
|
|
4820
4820
|
try {
|
|
4821
4821
|
return await this.enqueueRequest({
|
|
4822
4822
|
description: "Delete issue",
|
|
@@ -4826,7 +4826,7 @@ class df extends w {
|
|
|
4826
4826
|
blocks: []
|
|
4827
4827
|
});
|
|
4828
4828
|
} catch (l) {
|
|
4829
|
-
throw this.dispatch(
|
|
4829
|
+
throw this.dispatch(Ts(n)), this.dispatch(Zi(a)), this.dispatch(Yr(o)), this.dispatch(ct(r)), this.dispatch(Ji(c)), l;
|
|
4830
4830
|
}
|
|
4831
4831
|
}
|
|
4832
4832
|
async refreshStore(e) {
|
|
@@ -4843,7 +4843,7 @@ class df extends w {
|
|
|
4843
4843
|
this.dispatch(pr(s));
|
|
4844
4844
|
}
|
|
4845
4845
|
}
|
|
4846
|
-
class
|
|
4846
|
+
class uf extends k {
|
|
4847
4847
|
async bulkAdd(e) {
|
|
4848
4848
|
var u;
|
|
4849
4849
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
|
|
@@ -4908,7 +4908,7 @@ class lf extends k {
|
|
|
4908
4908
|
this.dispatch(br(s));
|
|
4909
4909
|
}
|
|
4910
4910
|
}
|
|
4911
|
-
class
|
|
4911
|
+
class hf extends w {
|
|
4912
4912
|
add(e) {
|
|
4913
4913
|
var r;
|
|
4914
4914
|
const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = R({
|
|
@@ -4945,7 +4945,7 @@ class uf extends w {
|
|
|
4945
4945
|
this.dispatch(Fr(s));
|
|
4946
4946
|
}
|
|
4947
4947
|
}
|
|
4948
|
-
class
|
|
4948
|
+
class mf extends k {
|
|
4949
4949
|
async bulkAdd(e) {
|
|
4950
4950
|
var u;
|
|
4951
4951
|
const s = (/* @__PURE__ */ new Date()).toISOString(), i = (u = this.client.store.getState().userReducer.currentUser) == null ? void 0 : u.id, n = {}, a = [], o = [];
|
|
@@ -5026,7 +5026,7 @@ class hf extends k {
|
|
|
5026
5026
|
this.dispatch(Cr(s));
|
|
5027
5027
|
}
|
|
5028
5028
|
}
|
|
5029
|
-
class
|
|
5029
|
+
class pf extends w {
|
|
5030
5030
|
add(e) {
|
|
5031
5031
|
var o;
|
|
5032
5032
|
const { store: s } = this.client, i = s.getState(), n = R({
|
|
@@ -5041,12 +5041,12 @@ class mf extends w {
|
|
|
5041
5041
|
blockers: [e.issue, e.fields_revision],
|
|
5042
5042
|
blocks: [n.offline_id]
|
|
5043
5043
|
});
|
|
5044
|
-
return this.dispatch(
|
|
5045
|
-
this.dispatch(
|
|
5044
|
+
return this.dispatch(Is(n)), a.then((r) => (this.dispatch(je(r)), r)).catch(() => {
|
|
5045
|
+
this.dispatch(Es(n.offline_id));
|
|
5046
5046
|
}), [n, a];
|
|
5047
5047
|
}
|
|
5048
5048
|
update(e) {
|
|
5049
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5049
|
+
const { store: s } = this.client, i = s.getState(), n = Fs(e.offline_id)(i);
|
|
5050
5050
|
if (!n)
|
|
5051
5051
|
throw new Error(`Expected IssueTypeFieldValues with offline_id ${e.offline_id} to exist`);
|
|
5052
5052
|
const a = {
|
|
@@ -5073,11 +5073,11 @@ class mf extends w {
|
|
|
5073
5073
|
}), [a, o];
|
|
5074
5074
|
}
|
|
5075
5075
|
async delete(e) {
|
|
5076
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5076
|
+
const { store: s } = this.client, i = s.getState(), n = Fs(e)(i);
|
|
5077
5077
|
if (!n)
|
|
5078
5078
|
throw new Error(`Expected submission with offline_id ${e} to exist`);
|
|
5079
5079
|
const a = $r(e)(i);
|
|
5080
|
-
this.dispatch(
|
|
5080
|
+
this.dispatch(Es(e)), this.dispatch(tt(a.map((o) => o.offline_id)));
|
|
5081
5081
|
try {
|
|
5082
5082
|
await this.enqueueRequest({
|
|
5083
5083
|
description: "Delete issue type field values",
|
|
@@ -5087,7 +5087,7 @@ class mf extends w {
|
|
|
5087
5087
|
blocks: []
|
|
5088
5088
|
});
|
|
5089
5089
|
} catch (o) {
|
|
5090
|
-
throw this.dispatch(
|
|
5090
|
+
throw this.dispatch(Is(n)), this.dispatch(et(a)), o;
|
|
5091
5091
|
}
|
|
5092
5092
|
}
|
|
5093
5093
|
async refreshStore(e) {
|
|
@@ -5104,7 +5104,7 @@ class mf extends w {
|
|
|
5104
5104
|
this.dispatch(vr(s));
|
|
5105
5105
|
}
|
|
5106
5106
|
}
|
|
5107
|
-
class
|
|
5107
|
+
class ff extends w {
|
|
5108
5108
|
add(e) {
|
|
5109
5109
|
var o;
|
|
5110
5110
|
const { store: s } = this.client, i = s.getState(), n = R({
|
|
@@ -5123,11 +5123,11 @@ class pf extends w {
|
|
|
5123
5123
|
return a.then((r) => {
|
|
5124
5124
|
this.dispatch(Pe(r));
|
|
5125
5125
|
}).catch(() => {
|
|
5126
|
-
this.dispatch(
|
|
5126
|
+
this.dispatch(Ps(n.offline_id));
|
|
5127
5127
|
}), [n, a];
|
|
5128
5128
|
}
|
|
5129
5129
|
update(e) {
|
|
5130
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5130
|
+
const { store: s } = this.client, i = s.getState(), n = Ds(e.offline_id)(i);
|
|
5131
5131
|
if (!n)
|
|
5132
5132
|
throw new Error(`IssueType with offline_id ${e.offline_id} does not exist in the store.`);
|
|
5133
5133
|
const a = {
|
|
@@ -5149,11 +5149,11 @@ class pf extends w {
|
|
|
5149
5149
|
}), [a, o];
|
|
5150
5150
|
}
|
|
5151
5151
|
delete(e) {
|
|
5152
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5152
|
+
const { store: s } = this.client, i = s.getState(), n = Ds(e)(i);
|
|
5153
5153
|
if (!n)
|
|
5154
5154
|
throw new Error(`IssueType with offline_id ${e} does not exist in the store.`);
|
|
5155
|
-
const a =
|
|
5156
|
-
this.dispatch(
|
|
5155
|
+
const a = hn(e)(i);
|
|
5156
|
+
this.dispatch(Ps(e)), this.dispatch(yr(a.map((r) => r.offline_id)));
|
|
5157
5157
|
const o = this.enqueueRequest({
|
|
5158
5158
|
method: d.DELETE,
|
|
5159
5159
|
url: `/issue-types/${e}/`,
|
|
@@ -5177,7 +5177,7 @@ class pf extends w {
|
|
|
5177
5177
|
this.dispatch(Vr(s));
|
|
5178
5178
|
}
|
|
5179
5179
|
}
|
|
5180
|
-
class
|
|
5180
|
+
class yf extends w {
|
|
5181
5181
|
async refreshStore(e) {
|
|
5182
5182
|
const s = await this.enqueueRequest({
|
|
5183
5183
|
description: "Get issue updates",
|
|
@@ -5203,7 +5203,7 @@ function zl(t) {
|
|
|
5203
5203
|
if (!t.refresh) throw new Error("Missing refresh token");
|
|
5204
5204
|
return { accessToken: t.access, refreshToken: t.refresh };
|
|
5205
5205
|
}
|
|
5206
|
-
class
|
|
5206
|
+
class Af extends xl {
|
|
5207
5207
|
constructor() {
|
|
5208
5208
|
super(...arguments);
|
|
5209
5209
|
// _getTokenPair and _getRenewedTokens don't need to use enqueueRequest from the BaseApiService because
|
|
@@ -5325,7 +5325,7 @@ class yf extends xl {
|
|
|
5325
5325
|
});
|
|
5326
5326
|
}
|
|
5327
5327
|
}
|
|
5328
|
-
class
|
|
5328
|
+
class gf extends w {
|
|
5329
5329
|
async getLicense(e) {
|
|
5330
5330
|
const s = await this.enqueueRequest({
|
|
5331
5331
|
description: "Get license",
|
|
@@ -5430,7 +5430,7 @@ class Af extends w {
|
|
|
5430
5430
|
this.dispatch(td(Object.values(i)));
|
|
5431
5431
|
}
|
|
5432
5432
|
}
|
|
5433
|
-
class
|
|
5433
|
+
class bf extends w {
|
|
5434
5434
|
async update(e) {
|
|
5435
5435
|
const s = this.enqueueRequest({
|
|
5436
5436
|
description: "Edit organization access",
|
|
@@ -5464,7 +5464,7 @@ class gf extends w {
|
|
|
5464
5464
|
this.dispatch(cd(s));
|
|
5465
5465
|
}
|
|
5466
5466
|
}
|
|
5467
|
-
class
|
|
5467
|
+
class _f extends w {
|
|
5468
5468
|
create(e) {
|
|
5469
5469
|
return this.enqueueRequest({
|
|
5470
5470
|
description: "Create organization",
|
|
@@ -5514,7 +5514,7 @@ class bf extends w {
|
|
|
5514
5514
|
i[a.id] = a, this.dispatch(wd(Object.values(i)));
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
|
-
class
|
|
5517
|
+
class Sf extends w {
|
|
5518
5518
|
async update(e) {
|
|
5519
5519
|
return this.dispatch(hd(e)), this.enqueueRequest({
|
|
5520
5520
|
description: "Edit project access",
|
|
@@ -5543,10 +5543,10 @@ class _f extends w {
|
|
|
5543
5543
|
blockers: [],
|
|
5544
5544
|
blocks: []
|
|
5545
5545
|
});
|
|
5546
|
-
this.dispatch(
|
|
5546
|
+
this.dispatch(bn(s));
|
|
5547
5547
|
}
|
|
5548
5548
|
}
|
|
5549
|
-
class
|
|
5549
|
+
class Tf extends Ie {
|
|
5550
5550
|
constructor() {
|
|
5551
5551
|
super(...arguments);
|
|
5552
5552
|
y(this, "name", "Project Attachment");
|
|
@@ -5596,7 +5596,7 @@ class Sf extends Ie {
|
|
|
5596
5596
|
this.dispatch(xd(i));
|
|
5597
5597
|
}
|
|
5598
5598
|
}
|
|
5599
|
-
class
|
|
5599
|
+
class Rf extends w {
|
|
5600
5600
|
async saveExisting(e) {
|
|
5601
5601
|
if (!e.offline_id)
|
|
5602
5602
|
throw new Error(
|
|
@@ -5612,7 +5612,7 @@ class Tf extends w {
|
|
|
5612
5612
|
blocks: [e.offline_id]
|
|
5613
5613
|
});
|
|
5614
5614
|
return i.then((n) => {
|
|
5615
|
-
this.dispatch(
|
|
5615
|
+
this.dispatch(Ns(n));
|
|
5616
5616
|
}), i;
|
|
5617
5617
|
}
|
|
5618
5618
|
// TODO: This needs to be seperated into a update and create method
|
|
@@ -5652,7 +5652,7 @@ class Tf extends w {
|
|
|
5652
5652
|
});
|
|
5653
5653
|
const r = Promise.resolve(a).then((u) => this.enqueueRequest(u));
|
|
5654
5654
|
return r.then((u) => {
|
|
5655
|
-
this.dispatch(
|
|
5655
|
+
this.dispatch(Ns(u));
|
|
5656
5656
|
}), this.dispatch(Qd), this.dispatch(Xd(null)), this.dispatch(Jd(!1)), [n, r];
|
|
5657
5657
|
}
|
|
5658
5658
|
delete(e) {
|
|
@@ -5674,7 +5674,7 @@ class Tf extends w {
|
|
|
5674
5674
|
this.dispatch(Hd(s));
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
5677
|
-
class
|
|
5677
|
+
class Of extends w {
|
|
5678
5678
|
async add(e) {
|
|
5679
5679
|
if (!e.bounds && !e.canvas_bounds)
|
|
5680
5680
|
throw new Error("Project must either have bounds or canvas_bounds set");
|
|
@@ -5707,7 +5707,7 @@ class Rf extends w {
|
|
|
5707
5707
|
});
|
|
5708
5708
|
}
|
|
5709
5709
|
async delete(e) {
|
|
5710
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5710
|
+
const { store: s } = this.client, i = s.getState(), n = mt(i), a = n[e];
|
|
5711
5711
|
if (!a)
|
|
5712
5712
|
throw new Error("Expected project to exist");
|
|
5713
5713
|
const o = el(i).filter((l) => l.project === e);
|
|
@@ -5727,7 +5727,7 @@ class Rf extends w {
|
|
|
5727
5727
|
blocks: []
|
|
5728
5728
|
}), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
|
|
5729
5729
|
} catch (l) {
|
|
5730
|
-
throw this.dispatch(gd(Object.values(n))), this.dispatch(
|
|
5730
|
+
throw this.dispatch(gd(Object.values(n))), this.dispatch(bn(Object.values(u))), this.dispatch(Wd(o)), this.dispatch($d(r)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), c && this.dispatch(se({ ...c, project: a.id })), l;
|
|
5731
5731
|
}
|
|
5732
5732
|
}
|
|
5733
5733
|
invite(e, s) {
|
|
@@ -5765,7 +5765,7 @@ class Rf extends w {
|
|
|
5765
5765
|
});
|
|
5766
5766
|
}
|
|
5767
5767
|
}
|
|
5768
|
-
class
|
|
5768
|
+
class wf extends w {
|
|
5769
5769
|
add(e) {
|
|
5770
5770
|
const s = R({
|
|
5771
5771
|
...e,
|
|
@@ -5786,7 +5786,7 @@ class Of extends w {
|
|
|
5786
5786
|
return i.then((n) => {
|
|
5787
5787
|
this.dispatch(Ae(n));
|
|
5788
5788
|
}).catch(() => {
|
|
5789
|
-
this.dispatch(
|
|
5789
|
+
this.dispatch(Ks(s.offline_id));
|
|
5790
5790
|
}), [s, i];
|
|
5791
5791
|
}
|
|
5792
5792
|
update(e) {
|
|
@@ -5797,7 +5797,7 @@ class Of extends w {
|
|
|
5797
5797
|
...i,
|
|
5798
5798
|
...e
|
|
5799
5799
|
};
|
|
5800
|
-
this.dispatch(
|
|
5800
|
+
this.dispatch(Ws(n));
|
|
5801
5801
|
const a = this.enqueueRequest({
|
|
5802
5802
|
description: "Update team",
|
|
5803
5803
|
method: d.PATCH,
|
|
@@ -5816,7 +5816,7 @@ class Of extends w {
|
|
|
5816
5816
|
const { store: s } = this.client, i = s.getState(), n = ge(e)(i);
|
|
5817
5817
|
if (!n)
|
|
5818
5818
|
throw new Error(`Expected team with id ${e} to exist`);
|
|
5819
|
-
this.dispatch(
|
|
5819
|
+
this.dispatch(Ks(e));
|
|
5820
5820
|
try {
|
|
5821
5821
|
return await this.enqueueRequest({
|
|
5822
5822
|
description: "Delete team",
|
|
@@ -5835,7 +5835,7 @@ class Of extends w {
|
|
|
5835
5835
|
throw new Error(`Expected team with id ${e} to exist`);
|
|
5836
5836
|
if (s.length !== new Set(s).size)
|
|
5837
5837
|
throw new Error("Duplicate members found in the list");
|
|
5838
|
-
this.dispatch(
|
|
5838
|
+
this.dispatch(Ws({ ...n, members: s }));
|
|
5839
5839
|
const a = this.enqueueRequest({
|
|
5840
5840
|
description: "Set team members",
|
|
5841
5841
|
method: d.PUT,
|
|
@@ -5875,7 +5875,7 @@ class Of extends w {
|
|
|
5875
5875
|
this.dispatch(nl(s));
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
|
-
class
|
|
5878
|
+
class vf extends w {
|
|
5879
5879
|
async refreshStore(e, s) {
|
|
5880
5880
|
const i = {}, n = await this.enqueueRequest({
|
|
5881
5881
|
description: "Fetch organization users",
|
|
@@ -5901,85 +5901,85 @@ class wf extends w {
|
|
|
5901
5901
|
var $l = /* @__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))($l || {});
|
|
5902
5902
|
export {
|
|
5903
5903
|
F as APIError,
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5904
|
+
xp as AgentService,
|
|
5905
|
+
Mp as AssetAttachmentService,
|
|
5906
|
+
zp as AssetService,
|
|
5907
|
+
$p as AssetStageCompletionService,
|
|
5908
|
+
Up as AssetStageService,
|
|
5909
|
+
Vp as AssetTypeAttachmentService,
|
|
5910
|
+
Bp as AssetTypeFieldValuesAttachmentService,
|
|
5911
|
+
Hp as AssetTypeFieldValuesService,
|
|
5912
|
+
Gp as AssetTypeFieldsAttachmentService,
|
|
5913
|
+
Lp as AssetTypeFieldsService,
|
|
5914
|
+
Wp as AssetTypeService,
|
|
5915
5915
|
oa as AttachmentModel,
|
|
5916
5916
|
w as BaseApiService,
|
|
5917
|
-
|
|
5918
|
-
|
|
5917
|
+
Dp as BaseSDK,
|
|
5918
|
+
Kp as CategoryService,
|
|
5919
5919
|
eu as DEFAULT_ISSUE_PRIORITY,
|
|
5920
5920
|
Zl as DEFAULT_ISSUE_STATUS,
|
|
5921
5921
|
ua as DeferredPromise,
|
|
5922
|
-
|
|
5923
|
-
|
|
5922
|
+
Yp as DocumentAttachmentService,
|
|
5923
|
+
Jp as DocumentService,
|
|
5924
5924
|
na as EMPTY_ARRAY,
|
|
5925
5925
|
aa as EMPTY_OBJECT,
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5926
|
+
Xp as EmailDomainsService,
|
|
5927
|
+
Qp as EmailVerificationService,
|
|
5928
|
+
Zp as FileService,
|
|
5929
|
+
ef as FormRevisionAttachmentService,
|
|
5930
|
+
tf as FormRevisionService,
|
|
5931
|
+
nf as FormService,
|
|
5932
|
+
af as FormSubmissionAttachmentService,
|
|
5933
|
+
Np as FormSubmissionService,
|
|
5934
|
+
of as GeoImageService,
|
|
5935
5935
|
d as HttpMethod,
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5936
|
+
cf as IssueAssociationService,
|
|
5937
|
+
rf as IssueAttachmentService,
|
|
5938
|
+
df as IssueCommentService,
|
|
5939
|
+
si as IssuePriority,
|
|
5940
|
+
lf as IssueService,
|
|
5941
|
+
ii as IssueStatus,
|
|
5942
|
+
mf as IssueTypeFieldValuesAttachmentService,
|
|
5943
|
+
pf as IssueTypeFieldValuesService,
|
|
5944
|
+
uf as IssueTypeFieldsAttachmentService,
|
|
5945
|
+
hf as IssueTypeFieldsService,
|
|
5946
|
+
ff as IssueTypeService,
|
|
5947
5947
|
I as IssueUpdateChange,
|
|
5948
|
-
|
|
5949
|
-
|
|
5948
|
+
yf as IssueUpdateService,
|
|
5949
|
+
Af as JWTService,
|
|
5950
5950
|
ra as LicenseLevel,
|
|
5951
|
-
|
|
5951
|
+
gf as LicenseService,
|
|
5952
5952
|
da as LicenseStatus,
|
|
5953
5953
|
la as OUTBOX_RETRY_DELAY,
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5954
|
+
ti as OrganizationAccessLevel,
|
|
5955
|
+
bf as OrganizationAccessService,
|
|
5956
|
+
_f as OrganizationService,
|
|
5957
5957
|
Te as OutboxCoordinator,
|
|
5958
5958
|
ca as PaddleCheckoutEvent,
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5959
|
+
ei as ProjectAccessLevel,
|
|
5960
|
+
Sf as ProjectAccessService,
|
|
5961
|
+
Tf as ProjectAttachmentService,
|
|
5962
|
+
Rf as ProjectFileService,
|
|
5963
|
+
Of as ProjectService,
|
|
5964
|
+
wf as TeamService,
|
|
5965
5965
|
we as UNKNOWN_ERROR_MESSAGE,
|
|
5966
|
-
|
|
5966
|
+
vf as UserService,
|
|
5967
5967
|
Un as VERSION_REDUCER_KEY,
|
|
5968
5968
|
$l as VerificationCodeType,
|
|
5969
5969
|
Tc as _selectLatestFormRevision,
|
|
5970
5970
|
Dd as _setLatestRetryTime,
|
|
5971
5971
|
Sd as acceptProjectInvite,
|
|
5972
|
-
|
|
5972
|
+
Rt as addAsset,
|
|
5973
5973
|
Su as addAssetAttachment,
|
|
5974
|
-
|
|
5974
|
+
ri as addAssetAttachments,
|
|
5975
5975
|
ju as addAssetStage,
|
|
5976
|
-
|
|
5977
|
-
|
|
5976
|
+
It as addAssetStageCompletion,
|
|
5977
|
+
Et as addAssetStageCompletions,
|
|
5978
5978
|
Ke as addAssetStages,
|
|
5979
|
-
|
|
5979
|
+
Lt as addAssetType,
|
|
5980
5980
|
Cu as addAssetTypeAttachment,
|
|
5981
|
-
|
|
5982
|
-
|
|
5981
|
+
bi as addAssetTypeAttachments,
|
|
5982
|
+
$t as addAssetTypeFieldValues,
|
|
5983
5983
|
eh as addAssetTypeFieldValuesAttachment,
|
|
5984
5984
|
Je as addAssetTypeFieldValuesAttachments,
|
|
5985
5985
|
wo as addAssetTypeFieldValuesMany,
|
|
@@ -5988,34 +5988,34 @@ export {
|
|
|
5988
5988
|
ao as addAssetTypeFieldsAttachments,
|
|
5989
5989
|
Hu as addAssetTypeFieldsMany,
|
|
5990
5990
|
hh as addAssetTypes,
|
|
5991
|
-
|
|
5992
|
-
|
|
5991
|
+
hi as addAssets,
|
|
5992
|
+
Kt as addCategory,
|
|
5993
5993
|
Ra as addConversation,
|
|
5994
5994
|
Oh as addDocumentAttachment,
|
|
5995
5995
|
$o as addDocumentAttachments,
|
|
5996
5996
|
Ko as addDocuments,
|
|
5997
5997
|
tc as addEmailDomain,
|
|
5998
|
-
|
|
5999
|
-
|
|
5998
|
+
is as addForm,
|
|
5999
|
+
Ui as addFormRevision,
|
|
6000
6000
|
Ph as addFormRevisionAttachment,
|
|
6001
6001
|
uc as addFormRevisionAttachments,
|
|
6002
6002
|
bc as addFormRevisions,
|
|
6003
|
-
|
|
6003
|
+
cs as addFormSubmission,
|
|
6004
6004
|
Hh as addFormSubmissionAttachment,
|
|
6005
6005
|
Qe as addFormSubmissionAttachments,
|
|
6006
6006
|
ct as addFormSubmissions,
|
|
6007
6007
|
Gh as addForms,
|
|
6008
6008
|
Gc as addGeoImage,
|
|
6009
6009
|
Lc as addGeoImages,
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6010
|
+
Ts as addIssue,
|
|
6011
|
+
ps as addIssueAssociation,
|
|
6012
|
+
Ji as addIssueAssociations,
|
|
6013
6013
|
am as addIssueAttachment,
|
|
6014
|
-
|
|
6015
|
-
|
|
6014
|
+
Zi as addIssueAttachments,
|
|
6015
|
+
bs as addIssueComment,
|
|
6016
6016
|
dm as addIssueComments,
|
|
6017
6017
|
Gr as addIssueType,
|
|
6018
|
-
|
|
6018
|
+
Is as addIssueTypeFieldValues,
|
|
6019
6019
|
Cm as addIssueTypeFieldValuesAttachment,
|
|
6020
6020
|
et as addIssueTypeFieldValuesAttachments,
|
|
6021
6021
|
_m as addIssueTypeFieldValuesMany,
|
|
@@ -6027,40 +6027,40 @@ export {
|
|
|
6027
6027
|
Yr as addIssueUpdates,
|
|
6028
6028
|
fr as addIssues,
|
|
6029
6029
|
Nm as addLicenses,
|
|
6030
|
-
|
|
6030
|
+
yp as addProjectAttachment,
|
|
6031
6031
|
Md as addProjectAttachments,
|
|
6032
|
-
|
|
6032
|
+
Sp as addProjectFile,
|
|
6033
6033
|
Wd as addProjectFiles,
|
|
6034
6034
|
al as addTeam,
|
|
6035
6035
|
Xm as addUsers,
|
|
6036
6036
|
va as agentsReducer,
|
|
6037
|
-
|
|
6037
|
+
ai as agentsSlice,
|
|
6038
6038
|
nu as areArraysEqual,
|
|
6039
6039
|
Pa as assetAttachmentReducer,
|
|
6040
|
-
|
|
6040
|
+
ci as assetAttachmentSlice,
|
|
6041
6041
|
Ma as assetReducer,
|
|
6042
|
-
|
|
6042
|
+
ui as assetSlice,
|
|
6043
6043
|
La as assetStageCompletionReducer,
|
|
6044
|
-
|
|
6044
|
+
fi as assetStageCompletionSlice,
|
|
6045
6045
|
Ha as assetStageReducer,
|
|
6046
|
-
|
|
6046
|
+
Ai as assetStageSlice,
|
|
6047
6047
|
io as assetTypeAttachmentReducer,
|
|
6048
|
-
|
|
6048
|
+
gi as assetTypeAttachmentSlice,
|
|
6049
6049
|
Ro as assetTypeFieldValuesAttachmentReducer,
|
|
6050
|
-
|
|
6050
|
+
Oi as assetTypeFieldValuesAttachmentSlice,
|
|
6051
6051
|
Fo as assetTypeFieldValuesReducer,
|
|
6052
|
-
|
|
6052
|
+
vi as assetTypeFieldValuesSlice,
|
|
6053
6053
|
uo as assetTypeFieldsAttachmentReducer,
|
|
6054
|
-
|
|
6054
|
+
Ti as assetTypeFieldsAttachmentSlice,
|
|
6055
6055
|
Ao as assetTypeFieldsReducer,
|
|
6056
|
-
|
|
6056
|
+
Ri as assetTypeFieldsSlice,
|
|
6057
6057
|
qo as assetTypeReducer,
|
|
6058
|
-
|
|
6058
|
+
Ei as assetTypeSlice,
|
|
6059
6059
|
Po as authReducer,
|
|
6060
6060
|
at as authSlice,
|
|
6061
6061
|
lu as blobToBase64,
|
|
6062
6062
|
Mo as categoryReducer,
|
|
6063
|
-
|
|
6063
|
+
ki as categorySlice,
|
|
6064
6064
|
gh as clearTokens,
|
|
6065
6065
|
du as constructUploadedFilePayloads,
|
|
6066
6066
|
iu as coordinatesAreEqual,
|
|
@@ -6068,17 +6068,17 @@ export {
|
|
|
6068
6068
|
su as createMultiPointGeometry,
|
|
6069
6069
|
qd as createOfflineAction,
|
|
6070
6070
|
tu as createPointGeometry,
|
|
6071
|
-
|
|
6071
|
+
Ot as deleteAsset,
|
|
6072
6072
|
Fa as deleteAssetAttachment,
|
|
6073
|
-
|
|
6073
|
+
di as deleteAssetAttachments,
|
|
6074
6074
|
Pu as deleteAssetStage,
|
|
6075
|
-
|
|
6076
|
-
|
|
6075
|
+
Ft as deleteAssetStageCompletion,
|
|
6076
|
+
kt as deleteAssetStageCompletions,
|
|
6077
6077
|
Ye as deleteAssetStages,
|
|
6078
|
-
|
|
6078
|
+
Bt as deleteAssetType,
|
|
6079
6079
|
Za as deleteAssetTypeAttachment,
|
|
6080
|
-
|
|
6081
|
-
|
|
6080
|
+
_i as deleteAssetTypeAttachments,
|
|
6081
|
+
Ut as deleteAssetTypeFieldValues,
|
|
6082
6082
|
nh as deleteAssetTypeFieldValuesAttachment,
|
|
6083
6083
|
Xe as deleteAssetTypeFieldValuesAttachments,
|
|
6084
6084
|
Io as deleteAssetTypeFieldValuesMany,
|
|
@@ -6092,25 +6092,25 @@ export {
|
|
|
6092
6092
|
Go as deleteDocumentAttachment,
|
|
6093
6093
|
Lo as deleteDocumentAttachments,
|
|
6094
6094
|
sc as deleteEmailDomain,
|
|
6095
|
-
|
|
6096
|
-
|
|
6095
|
+
ns as deleteForm,
|
|
6096
|
+
Vi as deleteFormRevision,
|
|
6097
6097
|
Mh as deleteFormRevisionAttachment,
|
|
6098
6098
|
mc as deleteFormRevisionAttachments,
|
|
6099
6099
|
_c as deleteFormRevisions,
|
|
6100
|
-
|
|
6100
|
+
rs as deleteFormSubmission,
|
|
6101
6101
|
Jh as deleteFormSubmissionAttachment,
|
|
6102
6102
|
Ze as deleteFormSubmissionAttachments,
|
|
6103
6103
|
rt as deleteFormSubmissions,
|
|
6104
|
-
|
|
6104
|
+
us as deleteGeoImage,
|
|
6105
6105
|
Nc as deleteGeoImages,
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6106
|
+
Rs as deleteIssue,
|
|
6107
|
+
fs as deleteIssueAssociation,
|
|
6108
|
+
Xi as deleteIssueAssociations,
|
|
6109
6109
|
ar as deleteIssueAttachment,
|
|
6110
|
-
|
|
6111
|
-
|
|
6110
|
+
en as deleteIssueAttachments,
|
|
6111
|
+
_s as deleteIssueComment,
|
|
6112
6112
|
lm as deleteIssueComments,
|
|
6113
|
-
|
|
6113
|
+
Es as deleteIssueTypeFieldValues,
|
|
6114
6114
|
$m as deleteIssueTypeFieldValuesAttachment,
|
|
6115
6115
|
tt as deleteIssueTypeFieldValuesAttachments,
|
|
6116
6116
|
Om as deleteIssueTypeFieldValuesMany,
|
|
@@ -6129,46 +6129,46 @@ export {
|
|
|
6129
6129
|
wn as deleteProjectAttachments,
|
|
6130
6130
|
Kd as deleteProjectFile,
|
|
6131
6131
|
Yd as deleteProjectFiles,
|
|
6132
|
-
|
|
6132
|
+
Ks as deleteTeam,
|
|
6133
6133
|
_l as dequeue,
|
|
6134
6134
|
Bn as discard,
|
|
6135
6135
|
Ho as documentAttachmentReducer,
|
|
6136
|
-
|
|
6137
|
-
|
|
6136
|
+
ji as documentAttachmentSlice,
|
|
6137
|
+
Di as documentSlice,
|
|
6138
6138
|
Qo as documentsReducer,
|
|
6139
6139
|
uu as downloadFile,
|
|
6140
6140
|
ru as downloadInMemoryFile,
|
|
6141
6141
|
ac as emailDomainsReducer,
|
|
6142
|
-
|
|
6142
|
+
Ci as emailDomainsSlice,
|
|
6143
6143
|
gu as emailRegex,
|
|
6144
6144
|
bl as enqueue,
|
|
6145
6145
|
jd as enqueueRequest,
|
|
6146
6146
|
g as fallbackToEmptyArray,
|
|
6147
6147
|
fe as fallbackToEmptyObject,
|
|
6148
6148
|
dc as fileReducer,
|
|
6149
|
-
|
|
6149
|
+
Mi as fileSlice,
|
|
6150
6150
|
ba as fileToBlob,
|
|
6151
6151
|
vc as formReducer,
|
|
6152
6152
|
fc as formRevisionAttachmentReducer,
|
|
6153
|
-
|
|
6153
|
+
zi as formRevisionAttachmentSlice,
|
|
6154
6154
|
Oc as formRevisionReducer,
|
|
6155
|
-
|
|
6156
|
-
|
|
6155
|
+
$i as formRevisionsSlice,
|
|
6156
|
+
Gi as formSlice,
|
|
6157
6157
|
Pc as formSubmissionAttachmentReducer,
|
|
6158
|
-
|
|
6158
|
+
Li as formSubmissionAttachmentSlice,
|
|
6159
6159
|
$c as formSubmissionReducer,
|
|
6160
|
-
|
|
6160
|
+
Ni as formSubmissionSlice,
|
|
6161
6161
|
Kc as geoImageReducer,
|
|
6162
|
-
|
|
6162
|
+
Ki as geoImageSlice,
|
|
6163
6163
|
cu as getFileIdentifier,
|
|
6164
|
-
|
|
6164
|
+
At as getFileS3Key,
|
|
6165
6165
|
pa as getLocalDateString,
|
|
6166
6166
|
ou as getLocalRelativeDateString,
|
|
6167
6167
|
pe as getOutboxCoordinator,
|
|
6168
6168
|
ga as getRenamedFile,
|
|
6169
6169
|
Re as hashFile,
|
|
6170
|
-
|
|
6171
|
-
|
|
6170
|
+
Cp as initSDK,
|
|
6171
|
+
St as initializeAssetAttachments,
|
|
6172
6172
|
za as initializeAssetStageCompletions,
|
|
6173
6173
|
Ba as initializeAssetStages,
|
|
6174
6174
|
Ja as initializeAssetTypeAttachments,
|
|
@@ -6199,95 +6199,95 @@ export {
|
|
|
6199
6199
|
pr as initializeIssues,
|
|
6200
6200
|
td as initializeLicences,
|
|
6201
6201
|
cd as initializeOrganizationAccesses,
|
|
6202
|
-
|
|
6202
|
+
bn as initializeProjectAccesses,
|
|
6203
6203
|
xd as initializeProjectAttachments,
|
|
6204
6204
|
Hd as initializeProjectFiles,
|
|
6205
6205
|
nl as initializeTeams,
|
|
6206
6206
|
au as isToday,
|
|
6207
6207
|
tr as issueAssociationReducer,
|
|
6208
|
-
|
|
6208
|
+
Yi as issueAssociationSlice,
|
|
6209
6209
|
dr as issueAttachmentReducer,
|
|
6210
|
-
|
|
6210
|
+
Qi as issueAttachmentSlice,
|
|
6211
6211
|
mr as issueCommentReducer,
|
|
6212
|
-
|
|
6212
|
+
sn as issueCommentSlice,
|
|
6213
6213
|
gr as issueReducer,
|
|
6214
|
-
|
|
6214
|
+
nn as issueSlice,
|
|
6215
6215
|
Ur as issueTypeFieldValuesAttachmentReducer,
|
|
6216
|
-
|
|
6216
|
+
dn as issueTypeFieldValuesAttachmentSlice,
|
|
6217
6217
|
Er as issueTypeFieldValuesReducer,
|
|
6218
|
-
|
|
6218
|
+
on as issueTypeFieldValuesSlice,
|
|
6219
6219
|
wr as issueTypeFieldsAttachmentReducer,
|
|
6220
|
-
|
|
6220
|
+
an as issueTypeFieldsAttachmentSlice,
|
|
6221
6221
|
Dr as issueTypeFieldsReducer,
|
|
6222
|
-
|
|
6222
|
+
rn as issueTypeFieldsSlice,
|
|
6223
6223
|
Hr as issueTypeReducer,
|
|
6224
|
-
|
|
6224
|
+
un as issueTypeSlice,
|
|
6225
6225
|
ed as issueUpdateReducer,
|
|
6226
|
-
|
|
6226
|
+
mn as issueUpdateSlice,
|
|
6227
6227
|
id as licenseReducer,
|
|
6228
|
-
|
|
6228
|
+
pn as licenseSlice,
|
|
6229
6229
|
hu as logOnlyOnce,
|
|
6230
6230
|
Pd as markAsDeleted,
|
|
6231
|
-
|
|
6232
|
-
|
|
6231
|
+
fp as markForDeletion,
|
|
6232
|
+
ni as memoize,
|
|
6233
6233
|
Yo as moveDocument,
|
|
6234
6234
|
R as offline,
|
|
6235
6235
|
Au as onlyUniqueHashes,
|
|
6236
6236
|
Sa as onlyUniqueOfflineIds,
|
|
6237
6237
|
ud as organizationAccessReducer,
|
|
6238
|
-
|
|
6238
|
+
yn as organizationAccessSlice,
|
|
6239
6239
|
kd as organizationReducer,
|
|
6240
6240
|
Tn as organizationSlice,
|
|
6241
6241
|
Cd as outboxReducer,
|
|
6242
6242
|
Rn as outboxSlice,
|
|
6243
|
-
|
|
6243
|
+
Pp as overmapEnhancer,
|
|
6244
6244
|
yl as overmapReducers,
|
|
6245
|
-
|
|
6245
|
+
jp as overmapRootReducer,
|
|
6246
6246
|
Vn as performRequest,
|
|
6247
6247
|
Ad as projectAccessReducer,
|
|
6248
|
-
|
|
6248
|
+
gn as projectAccessSlice,
|
|
6249
6249
|
Nd as projectAttachmentReducer,
|
|
6250
6250
|
On as projectAttachmentSlice,
|
|
6251
6251
|
tl as projectFileReducer,
|
|
6252
6252
|
In as projectFileSlice,
|
|
6253
6253
|
Td as projectReducer,
|
|
6254
|
-
|
|
6254
|
+
Sn as projectSlice,
|
|
6255
6255
|
il as rehydratedReducer,
|
|
6256
6256
|
En as rehydratedSlice,
|
|
6257
|
-
|
|
6258
|
-
|
|
6257
|
+
Qt as removeDocuments,
|
|
6258
|
+
Ps as removeIssueType,
|
|
6259
6259
|
ad as removeUser,
|
|
6260
|
-
|
|
6260
|
+
Rp as resetProjectFileObjectUrls,
|
|
6261
6261
|
Al as resetStore,
|
|
6262
6262
|
A as restructureCreateSelectorWithArgs,
|
|
6263
6263
|
Qd as saveActiveProjectFileBounds,
|
|
6264
6264
|
bh as selectAccessToken,
|
|
6265
6265
|
tp as selectActiveOrganizationAccess,
|
|
6266
|
-
|
|
6266
|
+
wp as selectActiveProjectFileId,
|
|
6267
6267
|
Wm as selectActiveStatusLicenses,
|
|
6268
|
-
|
|
6268
|
+
Pi as selectAllDocumentAttachments,
|
|
6269
6269
|
vn as selectAllProjectAttachments,
|
|
6270
6270
|
kh as selectAncestorIdsOfDocument,
|
|
6271
6271
|
qa as selectAssetAttachmentById,
|
|
6272
6272
|
ka as selectAssetAttachmentMapping,
|
|
6273
|
-
|
|
6274
|
-
|
|
6273
|
+
li as selectAssetAttachments,
|
|
6274
|
+
wt as selectAssetById,
|
|
6275
6275
|
Wa as selectAssetStageById,
|
|
6276
6276
|
Va as selectAssetStageCompletionById,
|
|
6277
|
-
|
|
6277
|
+
yi as selectAssetStageCompletionMapping,
|
|
6278
6278
|
Ga as selectAssetStageCompletionsByIds,
|
|
6279
6279
|
Ka as selectAssetStages,
|
|
6280
|
-
|
|
6280
|
+
Pt as selectAssetStagesByIds,
|
|
6281
6281
|
to as selectAssetTypeAttachmentById,
|
|
6282
6282
|
eo as selectAssetTypeAttachmentMapping,
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6283
|
+
Si as selectAssetTypeAttachments,
|
|
6284
|
+
Nt as selectAssetTypeById,
|
|
6285
|
+
Ii as selectAssetTypeFieldValues,
|
|
6286
6286
|
ah as selectAssetTypeFieldValuesAttachmentById,
|
|
6287
6287
|
_o as selectAssetTypeFieldValuesAttachments,
|
|
6288
6288
|
So as selectAssetTypeFieldValuesAttachmentsByIds,
|
|
6289
|
-
|
|
6290
|
-
|
|
6289
|
+
wi as selectAssetTypeFieldValuesAttachmentsMapping,
|
|
6290
|
+
Vt as selectAssetTypeFieldValuesById,
|
|
6291
6291
|
Eo as selectAssetTypeFieldValuesMapping,
|
|
6292
6292
|
rh as selectAssetTypeFieldValuesOfAsset,
|
|
6293
6293
|
nt as selectAssetTypeFields,
|
|
@@ -6301,11 +6301,11 @@ export {
|
|
|
6301
6301
|
dh as selectAssetTypeValuesOfAssetType,
|
|
6302
6302
|
fh as selectAssetTypes,
|
|
6303
6303
|
yh as selectAssetTypesByIds,
|
|
6304
|
-
|
|
6304
|
+
Fi as selectAssetTypesMapping,
|
|
6305
6305
|
xa as selectAssets,
|
|
6306
6306
|
Eu as selectAssetsByIds,
|
|
6307
|
-
|
|
6308
|
-
|
|
6307
|
+
mi as selectAssetsMapping,
|
|
6308
|
+
pi as selectAssetsOfAssetType,
|
|
6309
6309
|
ja as selectAttachmentsOfAsset,
|
|
6310
6310
|
Ou as selectAttachmentsOfAssetByType,
|
|
6311
6311
|
so as selectAttachmentsOfAssetType,
|
|
@@ -6321,18 +6321,18 @@ export {
|
|
|
6321
6321
|
$r as selectAttachmentsOfIssueTypeFieldValues,
|
|
6322
6322
|
gm as selectAttachmentsOfIssueTypeFields,
|
|
6323
6323
|
Bd as selectAttachmentsOfProject,
|
|
6324
|
-
|
|
6324
|
+
gp as selectAttachmentsOfProjectByType,
|
|
6325
6325
|
Sh as selectCategories,
|
|
6326
6326
|
Th as selectCategoriesByIds,
|
|
6327
|
-
|
|
6328
|
-
|
|
6327
|
+
Yt as selectCategoryById,
|
|
6328
|
+
qi as selectCategoryMapping,
|
|
6329
6329
|
um as selectCommentsOfIssue,
|
|
6330
6330
|
ku as selectCompletedStagesByAsset,
|
|
6331
6331
|
_u as selectConversation,
|
|
6332
|
-
|
|
6332
|
+
oi as selectConversationMapping,
|
|
6333
6333
|
bu as selectConversations,
|
|
6334
6334
|
ut as selectCurrentUser,
|
|
6335
|
-
|
|
6335
|
+
mp as selectDeletedRequests,
|
|
6336
6336
|
No as selectDocumentAttachmentById,
|
|
6337
6337
|
Bo as selectDocumentAttachmentMapping,
|
|
6338
6338
|
Xo as selectDocumentById,
|
|
@@ -6351,19 +6351,19 @@ export {
|
|
|
6351
6351
|
Sc as selectFormRevisions,
|
|
6352
6352
|
Rc as selectFormRevisionsOfForm,
|
|
6353
6353
|
qc as selectFormSubmissionAttachemntsByIds,
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6354
|
+
Bi as selectFormSubmissionAttachmentsMapping,
|
|
6355
|
+
ds as selectFormSubmissionById,
|
|
6356
|
+
Wi as selectFormSubmissions,
|
|
6357
|
+
Hi as selectFormSubmissionsMapping,
|
|
6358
6358
|
zc as selectFormSubmissionsOfAsset,
|
|
6359
6359
|
xc as selectFormSubmissionsOfForm,
|
|
6360
6360
|
Mc as selectFormSubmissionsOfIssue,
|
|
6361
6361
|
Bh as selectForms,
|
|
6362
|
-
|
|
6362
|
+
hs as selectGeoImageById,
|
|
6363
6363
|
Hc as selectGeoImageMapping,
|
|
6364
6364
|
Wc as selectGeoImages,
|
|
6365
6365
|
em as selectGeoImagesOfProject,
|
|
6366
|
-
|
|
6366
|
+
vp as selectIsImportingProjectFile,
|
|
6367
6367
|
_h as selectIsLoggedIn,
|
|
6368
6368
|
Xc as selectIssueAssociationById,
|
|
6369
6369
|
$e as selectIssueAssociationMapping,
|
|
@@ -6373,19 +6373,19 @@ export {
|
|
|
6373
6373
|
Qc as selectIssueAssociationsToIssue,
|
|
6374
6374
|
rr as selectIssueAttachmentById,
|
|
6375
6375
|
or as selectIssueAttachmentMapping,
|
|
6376
|
-
|
|
6377
|
-
|
|
6376
|
+
tn as selectIssueAttachments,
|
|
6377
|
+
Os as selectIssueById,
|
|
6378
6378
|
hr as selectIssueCommentById,
|
|
6379
6379
|
ur as selectIssueCommentMapping,
|
|
6380
6380
|
Rh as selectIssueCountOfCategory,
|
|
6381
6381
|
Ar as selectIssueMapping,
|
|
6382
|
-
|
|
6383
|
-
|
|
6382
|
+
Ds as selectIssueTypeById,
|
|
6383
|
+
cn as selectIssueTypeFieldValues,
|
|
6384
6384
|
Um as selectIssueTypeFieldValuesAttachmentById,
|
|
6385
6385
|
Mr as selectIssueTypeFieldValuesAttachments,
|
|
6386
6386
|
zr as selectIssueTypeFieldValuesAttachmentsByIds,
|
|
6387
|
-
|
|
6388
|
-
|
|
6387
|
+
ln as selectIssueTypeFieldValuesAttachmentsMapping,
|
|
6388
|
+
Fs as selectIssueTypeFieldValuesById,
|
|
6389
6389
|
Ir as selectIssueTypeFieldValuesMapping,
|
|
6390
6390
|
wm as selectIssueTypeFieldValuesOfIssue,
|
|
6391
6391
|
dt as selectIssueTypeFields,
|
|
@@ -6403,61 +6403,62 @@ export {
|
|
|
6403
6403
|
Qr as selectIssueUpdateMapping,
|
|
6404
6404
|
Zr as selectIssueUpdatesOfIssue,
|
|
6405
6405
|
hm as selectIssuesByIds,
|
|
6406
|
-
|
|
6406
|
+
hn as selectIssuesOfIssueType,
|
|
6407
6407
|
Lm as selectIssuesOfIssueTypeCount,
|
|
6408
6408
|
Qu as selectLatestAssetTypeFieldsOfAssetType,
|
|
6409
6409
|
Uh as selectLatestFormRevisionOfForm,
|
|
6410
6410
|
jm as selectLatestIssueTypeFieldsOfIssueType,
|
|
6411
|
-
|
|
6411
|
+
pp as selectLatestRetryTime,
|
|
6412
6412
|
Hm as selectLicense,
|
|
6413
6413
|
sd as selectLicenseForProject,
|
|
6414
6414
|
lt as selectLicenses,
|
|
6415
6415
|
Km as selectLicensesForProjectsMapping,
|
|
6416
|
-
|
|
6416
|
+
up as selectLicensesOfOrganization,
|
|
6417
6417
|
Fu as selectNumberOfAssetsOfAssetType,
|
|
6418
6418
|
ep as selectOrganizationAccessById,
|
|
6419
6419
|
sp as selectOrganizationAccessForUser,
|
|
6420
6420
|
ld as selectOrganizationAccessUserMapping,
|
|
6421
|
-
|
|
6422
|
-
|
|
6421
|
+
An as selectOrganizationAccesses,
|
|
6422
|
+
rp as selectOrganizationById,
|
|
6423
6423
|
Fd as selectOrganizationUsersAsMapping,
|
|
6424
6424
|
Ed as selectOrganizationUsersIds,
|
|
6425
6425
|
Id as selectOrganizations,
|
|
6426
6426
|
vd as selectOrganizationsMapping,
|
|
6427
|
-
|
|
6427
|
+
dp as selectOrganizationsWithAccess,
|
|
6428
6428
|
ip as selectProjectAccessById,
|
|
6429
6429
|
np as selectProjectAccessForUser,
|
|
6430
|
-
|
|
6430
|
+
_n as selectProjectAccessMapping,
|
|
6431
6431
|
yd as selectProjectAccessUserMapping,
|
|
6432
6432
|
fd as selectProjectAccesses,
|
|
6433
6433
|
Ld as selectProjectAttachmentById,
|
|
6434
6434
|
Gd as selectProjectAttachmentMapping,
|
|
6435
|
-
|
|
6436
|
-
|
|
6435
|
+
op as selectProjectById,
|
|
6436
|
+
Op as selectProjectFileById,
|
|
6437
6437
|
Zd as selectProjectFileMapping,
|
|
6438
6438
|
el as selectProjectFiles,
|
|
6439
|
-
|
|
6439
|
+
mt as selectProjectMapping,
|
|
6440
6440
|
Od as selectProjectUsersAsMapping,
|
|
6441
6441
|
Rd as selectProjectUsersIds,
|
|
6442
|
-
|
|
6443
|
-
|
|
6442
|
+
ap as selectProjects,
|
|
6443
|
+
lp as selectProjectsOfOrganization,
|
|
6444
|
+
Ep as selectRehydrated,
|
|
6444
6445
|
qh as selectRootDocuments,
|
|
6445
|
-
|
|
6446
|
-
|
|
6446
|
+
hp as selectSortedOrganizationUsers,
|
|
6447
|
+
cp as selectSortedProjectUsers,
|
|
6447
6448
|
it as selectStageMapping,
|
|
6448
6449
|
Ya as selectStagesOfAssetType,
|
|
6449
6450
|
ge as selectTeamById,
|
|
6450
6451
|
qn as selectTeams,
|
|
6451
|
-
|
|
6452
|
+
Fp as selectTeamsByIds,
|
|
6452
6453
|
kn as selectTeamsMapping,
|
|
6453
|
-
|
|
6454
|
-
|
|
6454
|
+
kp as selectTeamsOfOrganization,
|
|
6455
|
+
qp as selectTeamsOfUser,
|
|
6455
6456
|
rc as selectUploadUrl,
|
|
6456
6457
|
Qm as selectUserById,
|
|
6457
6458
|
Zm as selectUsersByIds,
|
|
6458
6459
|
ht as selectUsersMapping,
|
|
6459
|
-
|
|
6460
|
-
|
|
6460
|
+
Qs as separateFilesFromValues,
|
|
6461
|
+
sf as separateImageFromFields,
|
|
6461
6462
|
Xd as setActiveProjectFileId,
|
|
6462
6463
|
vu as setAsset,
|
|
6463
6464
|
Ia as setAssetAttachment,
|
|
@@ -6497,7 +6498,7 @@ export {
|
|
|
6497
6498
|
tm as setIssueAssociations,
|
|
6498
6499
|
ir as setIssueAttachment,
|
|
6499
6500
|
om as setIssueAttachments,
|
|
6500
|
-
|
|
6501
|
+
gs as setIssueComment,
|
|
6501
6502
|
lr as setIssueComments,
|
|
6502
6503
|
Pe as setIssueType,
|
|
6503
6504
|
Sm as setIssueTypeFieldValues,
|
|
@@ -6514,10 +6515,10 @@ export {
|
|
|
6514
6515
|
Jm as setProfilePicture,
|
|
6515
6516
|
zd as setProjectAttachment,
|
|
6516
6517
|
$d as setProjectAttachments,
|
|
6517
|
-
|
|
6518
|
-
|
|
6518
|
+
bp as setProjectFile,
|
|
6519
|
+
_p as setProjectFiles,
|
|
6519
6520
|
gd as setProjects,
|
|
6520
|
-
|
|
6521
|
+
Ip as setRehydrated,
|
|
6521
6522
|
Ae as setTeam,
|
|
6522
6523
|
Ah as setTokens,
|
|
6523
6524
|
cc as setUploadUrl,
|
|
@@ -6533,7 +6534,7 @@ export {
|
|
|
6533
6534
|
Ee as updateAsset,
|
|
6534
6535
|
Ru as updateAssetAttachment,
|
|
6535
6536
|
Ea as updateAssetAttachments,
|
|
6536
|
-
|
|
6537
|
+
jt as updateAssetStage,
|
|
6537
6538
|
$a as updateAssetStageCompletion,
|
|
6538
6539
|
Ua as updateAssetStageCompletions,
|
|
6539
6540
|
Ue as updateAssetStages,
|
|
@@ -6582,13 +6583,13 @@ export {
|
|
|
6582
6583
|
rd as updateOrganizationAccess,
|
|
6583
6584
|
bd as updateProject,
|
|
6584
6585
|
hd as updateProjectAccess,
|
|
6585
|
-
|
|
6586
|
+
Ap as updateProjectAttachment,
|
|
6586
6587
|
Ud as updateProjectAttachments,
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6588
|
+
Ns as updateProjectFile,
|
|
6589
|
+
Tp as updateProjectFiles,
|
|
6590
|
+
Ws as updateTeam,
|
|
6590
6591
|
od as userReducer,
|
|
6591
|
-
|
|
6592
|
+
fn as userSlice,
|
|
6592
6593
|
dl as versioningReducer,
|
|
6593
6594
|
rl as versioningSlice
|
|
6594
6595
|
};
|