@overmap-ai/core 1.0.76 → 1.0.77-store-typing-improvements.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 +1294 -1289
- package/dist/overmap-core.umd.cjs +7 -7
- package/dist/sdk/base.d.ts +1 -1
- package/dist/sdk/globals.d.ts +1 -1
- package/dist/sdk/sdk.d.ts +1 -1
- package/dist/sdk/services/AgentService.d.ts +2 -1
- package/dist/sdk/services/AssetAttachmentService.d.ts +2 -1
- package/dist/sdk/services/AssetProcedureAttachmentService.d.ts +2 -1
- package/dist/sdk/services/AssetProcedureFieldValuesAttachmentService.d.ts +2 -1
- package/dist/sdk/services/AssetProcedureFieldValuesService.d.ts +2 -1
- package/dist/sdk/services/AssetProcedureFieldsAttachmentService.d.ts +2 -1
- package/dist/sdk/services/AssetProcedureFieldsService.d.ts +2 -1
- package/dist/sdk/services/AssetProcedureInstanceService.d.ts +2 -1
- package/dist/sdk/services/AssetProcedureService.d.ts +2 -1
- package/dist/sdk/services/AssetService.d.ts +2 -1
- package/dist/sdk/services/AssetStageCompletionService.d.ts +2 -1
- package/dist/sdk/services/AssetStageService.d.ts +2 -1
- package/dist/sdk/services/AssetTypeAttachmentService.d.ts +2 -1
- package/dist/sdk/services/AssetTypeFieldValuesAttachmentService.d.ts +2 -1
- package/dist/sdk/services/AssetTypeFieldValuesService.d.ts +2 -1
- package/dist/sdk/services/AssetTypeFieldsAttachmentService.d.ts +2 -1
- package/dist/sdk/services/AssetTypeFieldsService.d.ts +2 -1
- package/dist/sdk/services/AssetTypeService.d.ts +2 -1
- package/dist/sdk/services/BaseApiService.d.ts +1 -1
- package/dist/sdk/services/BaseAttachmentService.d.ts +2 -1
- package/dist/sdk/services/BaseAuthService.d.ts +1 -1
- package/dist/sdk/services/BaseService.d.ts +1 -1
- package/dist/sdk/services/BaseUploadService.d.ts +2 -1
- package/dist/sdk/services/CategoryService.d.ts +2 -1
- package/dist/sdk/services/DocumentAttachmentService.d.ts +2 -1
- package/dist/sdk/services/DocumentService.d.ts +2 -1
- package/dist/sdk/services/EmailDomainsService.d.ts +2 -1
- package/dist/sdk/services/EmailVerificationService.d.ts +2 -1
- package/dist/sdk/services/FileService.d.ts +1 -1
- package/dist/sdk/services/FormRevisionAttachmentService.d.ts +2 -1
- package/dist/sdk/services/FormRevisionService.d.ts +2 -1
- package/dist/sdk/services/FormService.d.ts +2 -1
- package/dist/sdk/services/FormSubmissionAttachmentService.d.ts +2 -1
- package/dist/sdk/services/FormSubmissionService.d.ts +2 -1
- package/dist/sdk/services/GeoImageService.d.ts +2 -1
- package/dist/sdk/services/IssueAssociationService.d.ts +2 -1
- package/dist/sdk/services/IssueAttachmentService.d.ts +2 -1
- package/dist/sdk/services/IssueCommentAttachmentService.d.ts +2 -1
- package/dist/sdk/services/IssueCommentService.d.ts +2 -1
- package/dist/sdk/services/IssueService.d.ts +2 -1
- package/dist/sdk/services/IssueTypeAttachmentService.d.ts +2 -1
- package/dist/sdk/services/IssueTypeFieldValuesAttachmentService.d.ts +2 -1
- package/dist/sdk/services/IssueTypeFieldValuesService.d.ts +2 -1
- package/dist/sdk/services/IssueTypeFieldsAttachmentService.d.ts +2 -1
- package/dist/sdk/services/IssueTypeFieldsService.d.ts +2 -1
- package/dist/sdk/services/IssueTypeService.d.ts +2 -1
- package/dist/sdk/services/IssueUpdateService.d.ts +2 -1
- package/dist/sdk/services/JWTAuthService.d.ts +1 -1
- package/dist/sdk/services/LicenseService.d.ts +2 -1
- package/dist/sdk/services/OrganizationAccessService.d.ts +2 -1
- package/dist/sdk/services/OrganizationService.d.ts +2 -1
- package/dist/sdk/services/ProjectAccessService.d.ts +2 -1
- package/dist/sdk/services/ProjectAttachmentService.d.ts +2 -1
- package/dist/sdk/services/ProjectFileService.d.ts +2 -1
- package/dist/sdk/services/ProjectService.d.ts +2 -1
- package/dist/sdk/services/TeamService.d.ts +2 -1
- package/dist/sdk/services/UserService.d.ts +2 -1
- package/dist/sdk/typings.d.ts +2 -1
- package/dist/store/adapters/index.d.ts +1 -0
- package/dist/store/adapters/modelAdapter.d.ts +1 -1
- package/dist/store/adapters/selectionAdapter.d.ts +1 -1
- package/dist/store/adapters/typings.d.ts +6 -0
- package/dist/store/constants.d.ts +2 -0
- package/dist/store/index.d.ts +3 -1
- package/dist/store/migrations.d.ts +1 -1
- package/dist/store/reducers.d.ts +181 -0
- package/dist/store/slices/agentsSlice.d.ts +3 -2
- package/dist/store/slices/assetAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/assetProcedureAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +61 -3
- package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +61 -3
- package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +61 -3
- package/dist/store/slices/assetProcedureFieldsSlice.d.ts +61 -3
- package/dist/store/slices/assetProcedureInstanceSlice.d.ts +61 -3
- package/dist/store/slices/assetProcedureSlice.d.ts +61 -3
- package/dist/store/slices/assetSlice.d.ts +61 -3
- package/dist/store/slices/assetStageCompletionSlice.d.ts +61 -3
- package/dist/store/slices/assetStageSlice.d.ts +62 -4
- package/dist/store/slices/assetTypeAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +61 -3
- package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +61 -3
- package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +61 -3
- package/dist/store/slices/assetTypeFieldsSlice.d.ts +61 -3
- package/dist/store/slices/assetTypeSlice.d.ts +3 -2
- package/dist/store/slices/authSlice.d.ts +1 -1
- package/dist/store/slices/categorySlice.d.ts +61 -3
- package/dist/store/slices/documentAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/documentSlice.d.ts +60 -2
- package/dist/store/slices/emailDomainsSlice.d.ts +61 -3
- package/dist/store/slices/fileSlice.d.ts +1 -1
- package/dist/store/slices/formRevisionAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/formRevisionSlice.d.ts +61 -3
- package/dist/store/slices/formSlice.d.ts +61 -3
- package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/formSubmissionSlice.d.ts +3 -2
- package/dist/store/slices/geoImageSlice.d.ts +61 -3
- package/dist/store/slices/issueAssociationSlice.d.ts +61 -3
- package/dist/store/slices/issueAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/issueCommentAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/issueCommentSlice.d.ts +3 -2
- package/dist/store/slices/issueSlice.d.ts +3 -2
- package/dist/store/slices/issueTypeAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +61 -3
- package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +61 -3
- package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +61 -3
- package/dist/store/slices/issueTypeFieldsSlice.d.ts +61 -3
- package/dist/store/slices/issueTypeSlice.d.ts +3 -2
- package/dist/store/slices/issueUpdateSlice.d.ts +3 -2
- package/dist/store/slices/licenseSlice.d.ts +3 -2
- package/dist/store/slices/organizationAccessSlice.d.ts +3 -2
- package/dist/store/slices/organizationSlice.d.ts +61 -3
- package/dist/store/slices/outboxSlice.d.ts +1 -1
- package/dist/store/slices/projectAccessSlice.d.ts +3 -2
- package/dist/store/slices/projectAttachmentSlice.d.ts +3 -2
- package/dist/store/slices/projectFileSlice.d.ts +61 -3
- package/dist/store/slices/projectSlice.d.ts +61 -3
- package/dist/store/slices/rehydratedSlice.d.ts +1 -1
- package/dist/store/slices/teamSlice.d.ts +3 -2
- package/dist/store/slices/userSlice.d.ts +3 -2
- package/dist/store/store.d.ts +1 -61
- package/dist/store/typings.d.ts +14 -6
- package/dist/typings/index.d.ts +0 -1
- package/dist/typings/models/index.d.ts +0 -1
- package/dist/typings/models/store.d.ts +0 -61
- package/dist/utils/utils.d.ts +2 -1
- package/package.json +1 -1
- package/dist/typings/store.d.ts +0 -7
package/dist/overmap-core.js
CHANGED
|
@@ -2,24 +2,24 @@ var Va = Object.defineProperty;
|
|
|
2
2
|
var Ga = (t, e, s) => e in t ? Va(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
3
|
var A = (t, e, s) => Ga(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import "@redux-offline/redux-offline/lib/types";
|
|
5
|
-
import { createSlice as S, createSelector as p, combineReducers as
|
|
5
|
+
import { createSlice as S, createSelector as p, combineReducers as Ui, compose as La } from "@reduxjs/toolkit";
|
|
6
6
|
import Ie from "superagent";
|
|
7
7
|
import { v4 as Oe } from "uuid";
|
|
8
|
-
import { saveAs as
|
|
9
|
-
import { offline as
|
|
10
|
-
import
|
|
8
|
+
import { saveAs as Ba } from "file-saver";
|
|
9
|
+
import { offline as Na } from "@redux-offline/redux-offline";
|
|
10
|
+
import jt from "@redux-offline/redux-offline/lib/defaults";
|
|
11
11
|
import "buffer";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import Ha from "localforage";
|
|
13
|
+
import Wa from "redux-persist-migrate";
|
|
14
14
|
import "@overmap-ai/forms";
|
|
15
|
-
import { openDB as
|
|
16
|
-
import { RESET_STATE as
|
|
17
|
-
import
|
|
18
|
-
import { DepGraph as
|
|
15
|
+
import { openDB as Ka } from "idb";
|
|
16
|
+
import { RESET_STATE as Ya } from "@redux-offline/redux-offline/lib/constants";
|
|
17
|
+
import Ja from "jwt-decode";
|
|
18
|
+
import { DepGraph as Qa } from "dependency-graph";
|
|
19
19
|
import "@tiptap/core";
|
|
20
|
-
const
|
|
21
|
-
var
|
|
22
|
-
const
|
|
20
|
+
const Xa = Object.freeze([]), Za = Object.freeze({});
|
|
21
|
+
var $i = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))($i || {}), Vi = /* @__PURE__ */ ((t) => (t[t.GUEST = 0] = "GUEST", t[t.BASIC = 2] = "BASIC", t[t.ADMIN = 4] = "ADMIN", t))(Vi || {}), u = /* @__PURE__ */ ((t) => (t.GET = "GET", t.POST = "POST", t.PATCH = "PATCH", t.PUT = "PUT", t.DELETE = "DELETE", t))(u || {}), ec = /* @__PURE__ */ ((t) => (t.Issue = "issue", t.Asset = "asset", t.AssetType = "asset_type", t.Project = "project", t.Document = "document", t))(ec || {}), Gi = /* @__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))(Gi || {}), Li = /* @__PURE__ */ ((t) => (t[t.BACKLOG = 0] = "BACKLOG", t[t.SELECTED = 2] = "SELECTED", t[t.DONE = 4] = "DONE", t))(Li || {}), w = /* @__PURE__ */ ((t) => (t.STATUS = "status", t.PRIORITY = "priority", t.CATEGORY = "category", t.DESCRIPTION = "description", t.TITLE = "title", t.ASSIGNED_TO = "assigned_to", t.DUE_DATE = "due_date", t))(w || {}), tc = /* @__PURE__ */ ((t) => (t.COMPLETED = "checkout.completed", t.CLOSED = "checkout.closed", t))(tc || {}), sc = /* @__PURE__ */ ((t) => (t[t.PRO = 0] = "PRO", t))(sc || {}), ic = /* @__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))(ic || {});
|
|
22
|
+
const nm = Li.BACKLOG, am = Gi.MEDIUM, nc = 6e4;
|
|
23
23
|
function _(t) {
|
|
24
24
|
return {
|
|
25
25
|
addOne: (h, m) => {
|
|
@@ -72,7 +72,7 @@ function _(t) {
|
|
|
72
72
|
})
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function cm() {
|
|
76
76
|
return {
|
|
77
77
|
initializeSelection: (l, r) => {
|
|
78
78
|
l.selection = Array.from(new Set(r.payload));
|
|
@@ -112,6 +112,7 @@ function rm() {
|
|
|
112
112
|
})
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
+
const it = "versioning", ac = "RESET";
|
|
115
116
|
var zi;
|
|
116
117
|
zi = Symbol.toStringTag;
|
|
117
118
|
class cc {
|
|
@@ -146,17 +147,17 @@ class cc {
|
|
|
146
147
|
throw new Error("`finally` not implemented");
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
|
-
const
|
|
150
|
+
const rm = (t) => ({
|
|
150
151
|
type: "Point",
|
|
151
152
|
coordinates: t
|
|
152
|
-
}),
|
|
153
|
+
}), om = (t) => ({
|
|
153
154
|
type: "MultiPoint",
|
|
154
155
|
coordinates: t
|
|
155
|
-
}),
|
|
156
|
-
let
|
|
156
|
+
}), dm = (t, e) => t[0] === e[0] && t[1] === e[1];
|
|
157
|
+
let ht = !1;
|
|
157
158
|
const rc = "";
|
|
158
|
-
["true", "1"].includes(rc.toLowerCase()) && (
|
|
159
|
-
function
|
|
159
|
+
["true", "1"].includes(rc.toLowerCase()) && (ht = !0);
|
|
160
|
+
function um(t, e) {
|
|
160
161
|
if (t === e) return !0;
|
|
161
162
|
if (typeof t != typeof e)
|
|
162
163
|
return !1;
|
|
@@ -169,31 +170,31 @@ function lm(t, e) {
|
|
|
169
170
|
}
|
|
170
171
|
return !0;
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
+
function Bi(t) {
|
|
173
174
|
const e = {};
|
|
174
175
|
return function() {
|
|
175
176
|
const s = Array.prototype.slice.call(arguments);
|
|
176
|
-
return s in e ? (
|
|
177
|
+
return s in e ? (ht && console.debug(`Memoization debug: Using memorized return value for ${t.toString()}(`, s, ")"), e[s]) : (ht && console.debug(`Memoization debug: Cache miss! Memoizing ${t.toString()}(`, s, ")"), e[s] = t.apply(this, s));
|
|
177
178
|
};
|
|
178
179
|
}
|
|
179
|
-
function
|
|
180
|
+
function lm(t, e) {
|
|
180
181
|
if (t.length !== e.length) return !1;
|
|
181
182
|
for (let s = 0; s < t.length; s++)
|
|
182
183
|
if (t[s] !== e[s]) return !1;
|
|
183
184
|
return !0;
|
|
184
185
|
}
|
|
185
|
-
const b = (t) => t.length === 0 ?
|
|
186
|
+
const b = (t) => t.length === 0 ? Xa : t, Ue = (t) => Object.keys(t).length === 0 ? Za : t, oc = Bi((t) => {
|
|
186
187
|
if (!t) return "";
|
|
187
|
-
const e = new Date(t), s = e.getFullYear() ===
|
|
188
|
+
const e = new Date(t), s = e.getFullYear() === Tt.getFullYear(), i = { day: "numeric", month: "short" };
|
|
188
189
|
return s || (i.year = "numeric"), e.toLocaleDateString([], i);
|
|
189
|
-
}), dc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), uc = 1e3 * 86400,
|
|
190
|
-
const i = Math.round((new Date(t).getTime() -
|
|
190
|
+
}), dc = new Intl.RelativeTimeFormat([], { style: "long", numeric: "auto" }), uc = 1e3 * 86400, Tt = /* @__PURE__ */ new Date(), hm = (t) => new Date(t).toDateString() === Tt.toDateString(), mm = Bi((t, e, s) => {
|
|
191
|
+
const i = Math.round((new Date(t).getTime() - Tt.getTime()) / uc);
|
|
191
192
|
return i < e || i > s ? oc(t) : dc.format(i, "days");
|
|
192
193
|
});
|
|
193
194
|
function lc(t) {
|
|
194
195
|
return new Uint8Array(t).reduce((s, i) => s + i.toString(16).padStart(2, "0"), "");
|
|
195
196
|
}
|
|
196
|
-
const
|
|
197
|
+
const Mt = async (t, e) => {
|
|
197
198
|
e || (e = await De(t));
|
|
198
199
|
let s = t.type;
|
|
199
200
|
if (s.includes("/") && (s = s.split("/")[1]), !s)
|
|
@@ -216,7 +217,7 @@ function De(t) {
|
|
|
216
217
|
}, i.readAsArrayBuffer(t);
|
|
217
218
|
});
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
+
function pm(t) {
|
|
220
221
|
if (!t.name || !t.type || !t.size) {
|
|
221
222
|
const e = "File has no name, type, and/or size";
|
|
222
223
|
throw new Error(e);
|
|
@@ -226,11 +227,11 @@ function fm(t) {
|
|
|
226
227
|
function hc(t, e) {
|
|
227
228
|
return new File([t], e, { type: t.type });
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function fm(t, e) {
|
|
230
231
|
const s = document.createElement("a");
|
|
231
232
|
s.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(e)), s.setAttribute("download", t), s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s);
|
|
232
233
|
}
|
|
233
|
-
const
|
|
234
|
+
const Am = async (t) => {
|
|
234
235
|
const e = {};
|
|
235
236
|
for (const s of t) {
|
|
236
237
|
const i = await De(s);
|
|
@@ -242,22 +243,22 @@ const ym = async (t) => {
|
|
|
242
243
|
};
|
|
243
244
|
}
|
|
244
245
|
return Object.values(e);
|
|
245
|
-
}, mc = async (t) => (await fetch(t)).blob(),
|
|
246
|
+
}, mc = async (t) => (await fetch(t)).blob(), ym = (t) => new Promise((e, s) => {
|
|
246
247
|
const i = new FileReader();
|
|
247
248
|
i.onloadend = () => {
|
|
248
249
|
var n;
|
|
249
250
|
e(((n = i.result) == null ? void 0 : n.toString()) || "");
|
|
250
251
|
}, i.readAsDataURL(t);
|
|
251
252
|
});
|
|
252
|
-
function
|
|
253
|
+
function bm(t) {
|
|
253
254
|
const e = new Blob([t]);
|
|
254
|
-
|
|
255
|
+
Ba(e, t.name);
|
|
255
256
|
}
|
|
256
|
-
const
|
|
257
|
-
function
|
|
258
|
-
const n =
|
|
257
|
+
const Ct = {};
|
|
258
|
+
function gm(t, e, s, ...i) {
|
|
259
|
+
const n = Ct[t];
|
|
259
260
|
let a = !1;
|
|
260
|
-
n ? n[e] || (n[e] = !0, a = !0) : (
|
|
261
|
+
n ? n[e] || (n[e] = !0, a = !0) : (Ct[t] = { [e]: !0 }, a = !0), a && console[s](...i);
|
|
261
262
|
}
|
|
262
263
|
const pc = ["created_at", "updated_at", "index", "revision"];
|
|
263
264
|
function O(t) {
|
|
@@ -269,7 +270,7 @@ function fc(t) {
|
|
|
269
270
|
e[s.uuid] = s;
|
|
270
271
|
return e;
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function Sm(t, e = void 0, s = 255) {
|
|
273
274
|
let i = t.replace(/[^a-z0-9_\-.]/gi, "_").replace(/_{2,}/g, "_");
|
|
274
275
|
if (!e) {
|
|
275
276
|
const a = t.split(".");
|
|
@@ -279,13 +280,13 @@ function Tm(t, e = void 0, s = 255) {
|
|
|
279
280
|
const n = e ? e.length : 0;
|
|
280
281
|
return i.length + n > s && (i = i.slice(0, s - n) + (e || "")), i;
|
|
281
282
|
}
|
|
282
|
-
function
|
|
283
|
+
function Tm(t) {
|
|
283
284
|
return t.toLowerCase().replace(" ", "-");
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
+
function Rm(t, e = !1) {
|
|
286
287
|
return t.normalize("NFKD").toLowerCase().replace(/[^\w\s-]/g, "").trim().replace(/[-\s]+/g, e ? "_" : "-");
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function _m(t, e) {
|
|
289
290
|
if (t.length <= e)
|
|
290
291
|
return t;
|
|
291
292
|
const s = t.slice(0, e - 1);
|
|
@@ -295,10 +296,10 @@ const y = (t) => (e) => (s) => t(s, e);
|
|
|
295
296
|
function Ac(t, e, s) {
|
|
296
297
|
return s.findIndex((i) => i.uuid === t.uuid) === e;
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
+
function Om(t, e, s) {
|
|
299
300
|
return s.findIndex((i) => i.file_sha1 === t.file_sha1) === e;
|
|
300
301
|
}
|
|
301
|
-
const
|
|
302
|
+
const Im = /^.+@.+\..+$/;
|
|
302
303
|
function F(t) {
|
|
303
304
|
const e = { ...t };
|
|
304
305
|
for (const s of [...pc, "created_by"])
|
|
@@ -307,30 +308,30 @@ function F(t) {
|
|
|
307
308
|
}
|
|
308
309
|
const qe = _(
|
|
309
310
|
(t) => t.uuid
|
|
310
|
-
),
|
|
311
|
+
), Dt = qe.getInitialState({}), Ni = S({
|
|
311
312
|
name: "agents",
|
|
312
|
-
initialState:
|
|
313
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
313
|
+
initialState: Dt,
|
|
314
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
|
|
314
315
|
reducers: {
|
|
315
316
|
initializeConversations: qe.initialize,
|
|
316
317
|
addConversation: qe.addOne,
|
|
317
318
|
setConversation: qe.setOne,
|
|
318
319
|
updateConversation: qe.updateOne
|
|
319
320
|
}
|
|
320
|
-
}), { initializeConversations: yc, addConversation: bc, setConversation: gc, updateConversation: Sc } =
|
|
321
|
-
[
|
|
321
|
+
}), { initializeConversations: yc, addConversation: bc, setConversation: gc, updateConversation: Sc } = Ni.actions, Hi = (t) => t.agentsReducer.instances, Pm = p(
|
|
322
|
+
[Hi],
|
|
322
323
|
(t) => Object.values(t)
|
|
323
|
-
),
|
|
324
|
+
), Fm = y(
|
|
324
325
|
p(
|
|
325
|
-
[
|
|
326
|
+
[Hi, (t, e) => e],
|
|
326
327
|
(t, e) => t[e]
|
|
327
328
|
)
|
|
328
|
-
), Tc =
|
|
329
|
+
), Tc = Ni.reducer, C = _(
|
|
329
330
|
(t) => t.uuid
|
|
330
|
-
),
|
|
331
|
+
), xt = C.getInitialState({}), Wi = S({
|
|
331
332
|
name: "assetAttachments",
|
|
332
|
-
initialState:
|
|
333
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
333
|
+
initialState: xt,
|
|
334
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xt)),
|
|
334
335
|
reducers: {
|
|
335
336
|
initializeAssetAttachments: C.initialize,
|
|
336
337
|
addAssetAttachment: C.addOne,
|
|
@@ -343,16 +344,16 @@ const qe = _(
|
|
|
343
344
|
deleteAssetAttachments: C.deleteMany
|
|
344
345
|
}
|
|
345
346
|
}), {
|
|
346
|
-
initializeAssetAttachments:
|
|
347
|
-
addAssetAttachment:
|
|
348
|
-
addAssetAttachments:
|
|
347
|
+
initializeAssetAttachments: zt,
|
|
348
|
+
addAssetAttachment: vm,
|
|
349
|
+
addAssetAttachments: Ki,
|
|
349
350
|
setAssetAttachment: Rc,
|
|
350
|
-
setAssetAttachments:
|
|
351
|
-
updateAssetAttachment:
|
|
351
|
+
setAssetAttachments: wm,
|
|
352
|
+
updateAssetAttachment: Em,
|
|
352
353
|
updateAssetAttachments: _c,
|
|
353
354
|
deleteAssetAttachment: Oc,
|
|
354
|
-
deleteAssetAttachments:
|
|
355
|
-
} =
|
|
355
|
+
deleteAssetAttachments: Yi
|
|
356
|
+
} = Wi.actions, Ic = (t) => t.assetAttachmentReducer.instances, Pc = p(
|
|
356
357
|
[Ic],
|
|
357
358
|
(t) => Object.values(t)
|
|
358
359
|
), Fc = (t) => (e) => e.assetAttachmentReducer.instances[t], vc = y(
|
|
@@ -360,10 +361,10 @@ const qe = _(
|
|
|
360
361
|
[Pc, (t, e) => e],
|
|
361
362
|
(t, e) => b(t.filter(({ asset: s }) => e === s))
|
|
362
363
|
)
|
|
363
|
-
), wc =
|
|
364
|
+
), wc = Wi.reducer, D = _((t) => t.uuid), Ut = D.getInitialState({}), Ji = S({
|
|
364
365
|
name: "assetProcedureAttachments",
|
|
365
|
-
initialState:
|
|
366
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
366
|
+
initialState: Ut,
|
|
367
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ut)),
|
|
367
368
|
reducers: {
|
|
368
369
|
initializeAssetProcedureAttachments: D.initialize,
|
|
369
370
|
addAssetProcedureAttachment: D.addOne,
|
|
@@ -377,18 +378,18 @@ const qe = _(
|
|
|
377
378
|
}
|
|
378
379
|
}), {
|
|
379
380
|
initializeAssetProcedureAttachments: Ec,
|
|
380
|
-
addAssetProcedureAttachment:
|
|
381
|
+
addAssetProcedureAttachment: km,
|
|
381
382
|
addAssetProcedureAttachments: kc,
|
|
382
383
|
setAssetProcedureAttachment: qc,
|
|
383
|
-
setAssetProcedureAttachments:
|
|
384
|
-
updateAssetProcedureAttachment:
|
|
384
|
+
setAssetProcedureAttachments: qm,
|
|
385
|
+
updateAssetProcedureAttachment: jm,
|
|
385
386
|
updateAssetProcedureAttachments: jc,
|
|
386
387
|
deleteAssetProcedureAttachment: Mc,
|
|
387
388
|
deleteAssetProcedureAttachments: Cc
|
|
388
|
-
} =
|
|
389
|
+
} = Ji.actions, Dc = (t) => t.assetProcedureAttachmentReducer.instances, xc = p(
|
|
389
390
|
[Dc],
|
|
390
391
|
(t) => Object.values(t)
|
|
391
|
-
), zc = (t) => (e) => e.assetProcedureAttachmentReducer.instances[t],
|
|
392
|
+
), zc = (t) => (e) => e.assetProcedureAttachmentReducer.instances[t], Mm = y(
|
|
392
393
|
p(
|
|
393
394
|
[
|
|
394
395
|
xc,
|
|
@@ -398,10 +399,10 @@ const qe = _(
|
|
|
398
399
|
t.filter(({ asset_procedure: s }) => e === s)
|
|
399
400
|
)
|
|
400
401
|
)
|
|
401
|
-
), Uc =
|
|
402
|
+
), Uc = Ji.reducer, x = _((t) => t.uuid), $t = x.getInitialState({}), Qi = S({
|
|
402
403
|
name: "assetProcedureFieldsAttachments",
|
|
403
|
-
initialState:
|
|
404
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
404
|
+
initialState: $t,
|
|
405
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, $t)),
|
|
405
406
|
reducers: {
|
|
406
407
|
initializeAssetProcedureFieldsAttachments: x.initialize,
|
|
407
408
|
addAssetProcedureFieldsAttachment: x.addOne,
|
|
@@ -415,25 +416,25 @@ const qe = _(
|
|
|
415
416
|
}
|
|
416
417
|
}), {
|
|
417
418
|
initializeAssetProcedureFieldsAttachments: $c,
|
|
418
|
-
addAssetProcedureFieldsAttachment:
|
|
419
|
+
addAssetProcedureFieldsAttachment: Cm,
|
|
419
420
|
addAssetProcedureFieldsAttachments: Vc,
|
|
420
|
-
setAssetProcedureFieldsAttachment:
|
|
421
|
-
setAssetProcedureFieldsAttachments:
|
|
422
|
-
updateAssetProcedureFieldsAttachment:
|
|
421
|
+
setAssetProcedureFieldsAttachment: Dm,
|
|
422
|
+
setAssetProcedureFieldsAttachments: xm,
|
|
423
|
+
updateAssetProcedureFieldsAttachment: zm,
|
|
423
424
|
updateAssetProcedureFieldsAttachments: Gc,
|
|
424
|
-
deleteAssetProcedureFieldsAttachment:
|
|
425
|
+
deleteAssetProcedureFieldsAttachment: Um,
|
|
425
426
|
deleteAssetProcedureFieldsAttachments: Lc
|
|
426
|
-
} =
|
|
427
|
+
} = Qi.actions, Bc = (t) => t.assetProcedureFieldsAttachmentReducer.instances, Nc = p(
|
|
427
428
|
[Bc],
|
|
428
429
|
(t) => Object.values(t)
|
|
429
|
-
),
|
|
430
|
+
), $m = y(
|
|
430
431
|
p([Nc, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
|
|
431
|
-
),
|
|
432
|
+
), Vm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Hc = Qi.reducer, z = _(
|
|
432
433
|
(t) => t.uuid
|
|
433
|
-
),
|
|
434
|
+
), Vt = z.getInitialState({}), Xi = S({
|
|
434
435
|
name: "assetProcedureFields",
|
|
435
|
-
initialState:
|
|
436
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
436
|
+
initialState: Vt,
|
|
437
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vt)),
|
|
437
438
|
reducers: {
|
|
438
439
|
initializeAssetProcedureFields: z.initialize,
|
|
439
440
|
addAssetProcedureFields: z.addOne,
|
|
@@ -448,24 +449,24 @@ const qe = _(
|
|
|
448
449
|
}), {
|
|
449
450
|
initializeAssetProcedureFields: Wc,
|
|
450
451
|
addAssetProcedureFields: Kc,
|
|
451
|
-
addAssetProcedureFieldsMany:
|
|
452
|
-
setAssetProcedureFields:
|
|
453
|
-
setAssetProcedureFieldsMany:
|
|
452
|
+
addAssetProcedureFieldsMany: Gm,
|
|
453
|
+
setAssetProcedureFields: Lm,
|
|
454
|
+
setAssetProcedureFieldsMany: Bm,
|
|
454
455
|
updateAssetProcedureFields: Yc,
|
|
455
|
-
updateAssetProcedureFieldsMany:
|
|
456
|
+
updateAssetProcedureFieldsMany: Nm,
|
|
456
457
|
deleteAssetProcedureFields: Jc,
|
|
457
|
-
deleteAssetProcedureFieldsMany:
|
|
458
|
-
} =
|
|
458
|
+
deleteAssetProcedureFieldsMany: Hm
|
|
459
|
+
} = Xi.actions, Qc = (t) => t.assetProcedureFieldsReducer.instances, Zi = p([Qc], (t) => Object.values(t)), Wm = y(
|
|
459
460
|
p(
|
|
460
|
-
[
|
|
461
|
+
[Zi, (t, e) => e],
|
|
461
462
|
(t, e) => b(t.filter((s) => s.asset_procedure === e))
|
|
462
463
|
)
|
|
463
|
-
),
|
|
464
|
-
p([
|
|
465
|
-
),
|
|
464
|
+
), Km = y(
|
|
465
|
+
p([Zi, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
466
|
+
), Ym = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], Xc = Xi.reducer, U = _((t) => t.uuid), Gt = U.getInitialState({}), en = S({
|
|
466
467
|
name: "assetProcedureFieldValuesAttachments",
|
|
467
|
-
initialState:
|
|
468
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
468
|
+
initialState: Gt,
|
|
469
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Gt)),
|
|
469
470
|
reducers: {
|
|
470
471
|
initializeAssetProcedureFieldValuesAttachments: U.initialize,
|
|
471
472
|
addAssetProcedureFieldValuesAttachment: U.addOne,
|
|
@@ -479,21 +480,21 @@ const qe = _(
|
|
|
479
480
|
}
|
|
480
481
|
}), {
|
|
481
482
|
initializeAssetProcedureFieldValuesAttachments: Zc,
|
|
482
|
-
addAssetProcedureFieldValuesAttachment:
|
|
483
|
-
addAssetProcedureFieldValuesAttachments:
|
|
484
|
-
setAssetProcedureFieldValuesAttachment:
|
|
485
|
-
setAssetProcedureFieldValuesAttachments:
|
|
486
|
-
updateAssetProcedureFieldValuesAttachment:
|
|
483
|
+
addAssetProcedureFieldValuesAttachment: Jm,
|
|
484
|
+
addAssetProcedureFieldValuesAttachments: mt,
|
|
485
|
+
setAssetProcedureFieldValuesAttachment: Qm,
|
|
486
|
+
setAssetProcedureFieldValuesAttachments: Xm,
|
|
487
|
+
updateAssetProcedureFieldValuesAttachment: Zm,
|
|
487
488
|
updateAssetProcedureFieldValuesAttachments: er,
|
|
488
|
-
deleteAssetProcedureFieldValuesAttachment:
|
|
489
|
-
deleteAssetProcedureFieldValuesAttachments:
|
|
490
|
-
} =
|
|
491
|
-
[
|
|
489
|
+
deleteAssetProcedureFieldValuesAttachment: ep,
|
|
490
|
+
deleteAssetProcedureFieldValuesAttachments: pt
|
|
491
|
+
} = en.actions, tn = (t) => t.assetProcedureFieldValuesAttachmentReducer.instances, tr = p(
|
|
492
|
+
[tn],
|
|
492
493
|
(t) => Object.values(t)
|
|
493
|
-
),
|
|
494
|
+
), tp = (t) => (e) => e.assetProcedureFieldValuesAttachmentReducer.instances[t], sr = y(
|
|
494
495
|
p(
|
|
495
496
|
[
|
|
496
|
-
|
|
497
|
+
tn,
|
|
497
498
|
(t, e) => e
|
|
498
499
|
],
|
|
499
500
|
(t, e) => {
|
|
@@ -506,10 +507,10 @@ const qe = _(
|
|
|
506
507
|
[tr, (t, e) => e],
|
|
507
508
|
(t, e) => b(t.filter((s) => s.field_values === e))
|
|
508
509
|
)
|
|
509
|
-
), nr =
|
|
510
|
+
), nr = en.reducer, $ = _((t) => t.uuid), Lt = $.getInitialState({}), sn = S({
|
|
510
511
|
name: "assetProcedureFieldValues",
|
|
511
|
-
initialState:
|
|
512
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
512
|
+
initialState: Lt,
|
|
513
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Lt)),
|
|
513
514
|
reducers: {
|
|
514
515
|
initializeAssetProcedureFieldValues: $.initialize,
|
|
515
516
|
addAssetProcedureFieldValues: $.addOne,
|
|
@@ -523,25 +524,25 @@ const qe = _(
|
|
|
523
524
|
}
|
|
524
525
|
}), {
|
|
525
526
|
initializeAssetProcedureFieldValues: ar,
|
|
526
|
-
addAssetProcedureFieldValues:
|
|
527
|
+
addAssetProcedureFieldValues: Bt,
|
|
527
528
|
addAssetProcedureFieldValuesMany: cr,
|
|
528
|
-
setAssetProcedureFieldValues:
|
|
529
|
-
setAssetProcedureFieldValuesMany:
|
|
529
|
+
setAssetProcedureFieldValues: sp,
|
|
530
|
+
setAssetProcedureFieldValuesMany: ip,
|
|
530
531
|
updateAssetProcedureFieldValues: Le,
|
|
531
532
|
updateAssetProcedureFieldValuesMany: rr,
|
|
532
|
-
deleteAssetProcedureFieldValues:
|
|
533
|
+
deleteAssetProcedureFieldValues: Nt,
|
|
533
534
|
deleteAssetProcedureFieldValuesMany: or
|
|
534
|
-
} =
|
|
535
|
+
} = sn.actions, dr = (t) => t.assetProcedureFieldValuesReducer.instances, nn = p(
|
|
535
536
|
[dr],
|
|
536
537
|
(t) => Object.values(t)
|
|
538
|
+
), np = y(
|
|
539
|
+
p([nn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
|
|
537
540
|
), ap = y(
|
|
538
|
-
p([
|
|
539
|
-
),
|
|
540
|
-
p([sn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure_instance === e)))
|
|
541
|
-
), Nt = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], ur = tn.reducer, V = _((t) => t.uuid), Ht = V.getInitialState({}), nn = S({
|
|
541
|
+
p([nn, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure_instance === e)))
|
|
542
|
+
), Ht = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], ur = sn.reducer, V = _((t) => t.uuid), Wt = V.getInitialState({}), an = S({
|
|
542
543
|
name: "assetProcedureInstances",
|
|
543
|
-
initialState:
|
|
544
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
544
|
+
initialState: Wt,
|
|
545
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Wt)),
|
|
545
546
|
reducers: {
|
|
546
547
|
initializeAssetProcedureInstances: V.initialize,
|
|
547
548
|
addAssetProcedureInstance: V.addOne,
|
|
@@ -555,38 +556,38 @@ const qe = _(
|
|
|
555
556
|
}
|
|
556
557
|
}), {
|
|
557
558
|
initializeAssetProcedureInstances: lr,
|
|
558
|
-
addAssetProcedureInstance:
|
|
559
|
+
addAssetProcedureInstance: Kt,
|
|
559
560
|
addAssetProcedureInstances: hr,
|
|
560
561
|
updateAssetProcedureInstance: Be,
|
|
561
|
-
updateAssetProcedureInstances:
|
|
562
|
-
deleteAssetProcedureInstance:
|
|
562
|
+
updateAssetProcedureInstances: cp,
|
|
563
|
+
deleteAssetProcedureInstance: Yt,
|
|
563
564
|
deleteAssetProcedureInstances: mr,
|
|
564
|
-
setAssetProcedureInstance:
|
|
565
|
-
setAssetProcedureInstances:
|
|
566
|
-
} =
|
|
567
|
-
[
|
|
565
|
+
setAssetProcedureInstance: rp,
|
|
566
|
+
setAssetProcedureInstances: op
|
|
567
|
+
} = an.actions, cn = (t) => t.assetProcedureInstanceReducer.instances, rn = p(
|
|
568
|
+
[cn],
|
|
568
569
|
(t) => Object.values(t)
|
|
569
570
|
), pr = y(
|
|
570
571
|
p(
|
|
571
|
-
[
|
|
572
|
+
[rn, (t, e) => e],
|
|
572
573
|
(t, e) => b(
|
|
573
574
|
t.filter(
|
|
574
575
|
(s) => s.asset_procedure === e
|
|
575
576
|
)
|
|
576
577
|
)
|
|
577
578
|
)
|
|
578
|
-
),
|
|
579
|
+
), dp = y(
|
|
579
580
|
p(
|
|
580
|
-
[
|
|
581
|
+
[rn, (t, e) => e],
|
|
581
582
|
(t, e) => b(
|
|
582
583
|
t.filter(
|
|
583
584
|
(s) => s.asset_type === e
|
|
584
585
|
)
|
|
585
586
|
)
|
|
586
587
|
)
|
|
587
|
-
),
|
|
588
|
+
), Jt = (t) => (e) => e.assetProcedureInstanceReducer.instances[t], up = y(
|
|
588
589
|
p(
|
|
589
|
-
[
|
|
590
|
+
[cn, (t, e) => e],
|
|
590
591
|
(t, e) => {
|
|
591
592
|
const s = [];
|
|
592
593
|
for (const i of e) {
|
|
@@ -596,12 +597,12 @@ const qe = _(
|
|
|
596
597
|
return b(s);
|
|
597
598
|
}
|
|
598
599
|
)
|
|
599
|
-
), fr =
|
|
600
|
+
), fr = an.reducer, G = _(
|
|
600
601
|
(t) => t.uuid
|
|
601
|
-
),
|
|
602
|
+
), Qt = G.getInitialState({}), on = S({
|
|
602
603
|
name: "assetProcedures",
|
|
603
|
-
initialState:
|
|
604
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
604
|
+
initialState: Qt,
|
|
605
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Qt)),
|
|
605
606
|
reducers: {
|
|
606
607
|
initializeAssetProcedures: G.initialize,
|
|
607
608
|
addAssetProcedure: G.addOne,
|
|
@@ -615,24 +616,24 @@ const qe = _(
|
|
|
615
616
|
}
|
|
616
617
|
}), {
|
|
617
618
|
initializeAssetProcedures: Ar,
|
|
618
|
-
addAssetProcedure:
|
|
619
|
-
addAssetProcedures:
|
|
619
|
+
addAssetProcedure: Xt,
|
|
620
|
+
addAssetProcedures: lp,
|
|
620
621
|
updateAssetProcedure: Ne,
|
|
621
|
-
updateAssetProcedures:
|
|
622
|
-
deleteAssetProcedure:
|
|
623
|
-
deleteAssetProcedures:
|
|
624
|
-
setAssetProcedure:
|
|
625
|
-
setAssetProcedures:
|
|
626
|
-
} =
|
|
622
|
+
updateAssetProcedures: hp,
|
|
623
|
+
deleteAssetProcedure: Zt,
|
|
624
|
+
deleteAssetProcedures: mp,
|
|
625
|
+
setAssetProcedure: pp,
|
|
626
|
+
setAssetProcedures: fp
|
|
627
|
+
} = on.actions, dn = (t) => t.assetProcedureReducer.instances, yr = p([dn], (t) => Object.values(t)), Ap = y(
|
|
627
628
|
p(
|
|
628
629
|
[yr, (t, e) => e],
|
|
629
630
|
(t, e) => b(
|
|
630
631
|
t.filter((s) => s.organization === e)
|
|
631
632
|
)
|
|
632
633
|
)
|
|
633
|
-
),
|
|
634
|
+
), es = (t) => (e) => e.assetProcedureReducer.instances[t], yp = y(
|
|
634
635
|
p(
|
|
635
|
-
[
|
|
636
|
+
[dn, (t, e) => e],
|
|
636
637
|
(t, e) => {
|
|
637
638
|
const s = [];
|
|
638
639
|
for (const i of e) {
|
|
@@ -642,10 +643,10 @@ const qe = _(
|
|
|
642
643
|
return b(s);
|
|
643
644
|
}
|
|
644
645
|
)
|
|
645
|
-
), br =
|
|
646
|
+
), br = on.reducer, L = _((t) => t.uuid), ts = L.getInitialState({}), un = S({
|
|
646
647
|
name: "assets",
|
|
647
|
-
initialState:
|
|
648
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
648
|
+
initialState: ts,
|
|
649
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ts)),
|
|
649
650
|
reducers: {
|
|
650
651
|
initializeAssets: L.initialize,
|
|
651
652
|
addAsset: L.addOne,
|
|
@@ -659,18 +660,18 @@ const qe = _(
|
|
|
659
660
|
}
|
|
660
661
|
}), {
|
|
661
662
|
initializeAssets: gr,
|
|
662
|
-
addAsset:
|
|
663
|
-
addAssets:
|
|
663
|
+
addAsset: ss,
|
|
664
|
+
addAssets: ln,
|
|
664
665
|
updateAsset: He,
|
|
665
|
-
updateAssets:
|
|
666
|
-
deleteAsset:
|
|
666
|
+
updateAssets: bp,
|
|
667
|
+
deleteAsset: is,
|
|
667
668
|
deleteAssets: Sr,
|
|
668
|
-
setAsset:
|
|
669
|
-
setAssets:
|
|
670
|
-
} =
|
|
669
|
+
setAsset: gp,
|
|
670
|
+
setAssets: Sp
|
|
671
|
+
} = un.actions, hn = (t) => t.assetReducer.instances, Tr = p([hn], (t) => b(Object.values(t))), mn = y(
|
|
671
672
|
p([Tr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
|
|
672
|
-
),
|
|
673
|
-
p([
|
|
673
|
+
), ns = (t) => (e) => e.assetReducer.instances[t], Tp = y(
|
|
674
|
+
p([hn, (t, e) => e], (t, e) => {
|
|
674
675
|
const s = [];
|
|
675
676
|
for (const i of e) {
|
|
676
677
|
const n = t[i];
|
|
@@ -678,12 +679,12 @@ const qe = _(
|
|
|
678
679
|
}
|
|
679
680
|
return b(s);
|
|
680
681
|
})
|
|
681
|
-
),
|
|
682
|
+
), Rp = (t) => (e) => mn(t)(e).length, Rr = un.reducer, pe = _(
|
|
682
683
|
(t) => t.uuid
|
|
683
|
-
),
|
|
684
|
+
), as = pe.getInitialState({}), pn = S({
|
|
684
685
|
name: "assetStageCompletions",
|
|
685
|
-
initialState:
|
|
686
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
686
|
+
initialState: as,
|
|
687
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, as)),
|
|
687
688
|
reducers: {
|
|
688
689
|
initializeAssetStageCompletions: pe.initialize,
|
|
689
690
|
addAssetStageCompletion: pe.addOne,
|
|
@@ -695,18 +696,18 @@ const qe = _(
|
|
|
695
696
|
}
|
|
696
697
|
}), {
|
|
697
698
|
initializeAssetStageCompletions: _r,
|
|
698
|
-
addAssetStageCompletion:
|
|
699
|
-
addAssetStageCompletions:
|
|
699
|
+
addAssetStageCompletion: cs,
|
|
700
|
+
addAssetStageCompletions: rs,
|
|
700
701
|
updateAssetStageCompletion: Or,
|
|
701
702
|
updateAssetStageCompletions: Ir,
|
|
702
|
-
deleteAssetStageCompletion:
|
|
703
|
-
deleteAssetStageCompletions:
|
|
704
|
-
} =
|
|
705
|
-
[
|
|
703
|
+
deleteAssetStageCompletion: os,
|
|
704
|
+
deleteAssetStageCompletions: ds
|
|
705
|
+
} = pn.actions, Pr = pn.reducer, fn = (t) => t.assetStageCompletionReducer.instances, _p = p(
|
|
706
|
+
[fn],
|
|
706
707
|
(t) => Object.values(t)
|
|
707
708
|
), Fr = (t) => (e) => e.assetStageCompletionReducer.instances[t], vr = y(
|
|
708
709
|
p(
|
|
709
|
-
[
|
|
710
|
+
[fn, (t, e) => e],
|
|
710
711
|
(t, e) => {
|
|
711
712
|
const s = new Set(e);
|
|
712
713
|
return b(
|
|
@@ -716,10 +717,10 @@ const qe = _(
|
|
|
716
717
|
);
|
|
717
718
|
}
|
|
718
719
|
)
|
|
719
|
-
), B = _((t) => t.uuid),
|
|
720
|
+
), B = _((t) => t.uuid), us = B.getInitialState({}), An = S({
|
|
720
721
|
name: "assetStages",
|
|
721
|
-
initialState:
|
|
722
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
722
|
+
initialState: us,
|
|
723
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, us)),
|
|
723
724
|
reducers: {
|
|
724
725
|
initializeAssetStages: B.initialize,
|
|
725
726
|
setAssetStage: B.setOne,
|
|
@@ -734,24 +735,24 @@ const qe = _(
|
|
|
734
735
|
}), {
|
|
735
736
|
initializeAssetStages: wr,
|
|
736
737
|
setAssetStage: Er,
|
|
737
|
-
setAssetStages:
|
|
738
|
-
addAssetStage:
|
|
739
|
-
addAssetStages:
|
|
740
|
-
updateAssetStage:
|
|
741
|
-
updateAssetStages:
|
|
742
|
-
deleteAssetStage:
|
|
743
|
-
deleteAssetStages:
|
|
744
|
-
} =
|
|
745
|
-
p([
|
|
738
|
+
setAssetStages: Op,
|
|
739
|
+
addAssetStage: Ip,
|
|
740
|
+
addAssetStages: ls,
|
|
741
|
+
updateAssetStage: hs,
|
|
742
|
+
updateAssetStages: at,
|
|
743
|
+
deleteAssetStage: Pp,
|
|
744
|
+
deleteAssetStages: ms
|
|
745
|
+
} = An.actions, kr = An.reducer, Rt = (t) => t.assetStageReducer.instances, qr = (t) => (e) => e.assetStageReducer.instances[t], jr = p([Rt], (t) => Object.values(t)), Fp = y(
|
|
746
|
+
p([Rt, (t, e) => e], (t, e) => {
|
|
746
747
|
const s = {};
|
|
747
748
|
for (const [i, n] of Object.entries(t))
|
|
748
749
|
n.asset_procedure === e && (s[i] = n);
|
|
749
750
|
return Ue(s);
|
|
750
751
|
})
|
|
751
|
-
),
|
|
752
|
+
), vp = y(
|
|
752
753
|
p([jr, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure === e)))
|
|
753
|
-
),
|
|
754
|
-
p([
|
|
754
|
+
), ps = y(
|
|
755
|
+
p([Rt, (t, e) => e], (t, e) => {
|
|
755
756
|
const s = [];
|
|
756
757
|
for (const i of e) {
|
|
757
758
|
const n = t[i];
|
|
@@ -761,10 +762,10 @@ const qe = _(
|
|
|
761
762
|
})
|
|
762
763
|
), N = _(
|
|
763
764
|
(t) => t.uuid
|
|
764
|
-
),
|
|
765
|
+
), fs = N.getInitialState({}), yn = S({
|
|
765
766
|
name: "assetTypeAttachments",
|
|
766
|
-
initialState:
|
|
767
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
767
|
+
initialState: fs,
|
|
768
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fs)),
|
|
768
769
|
reducers: {
|
|
769
770
|
initializeAssetTypeAttachments: N.initialize,
|
|
770
771
|
addAssetTypeAttachment: N.addOne,
|
|
@@ -778,15 +779,15 @@ const qe = _(
|
|
|
778
779
|
}
|
|
779
780
|
}), {
|
|
780
781
|
initializeAssetTypeAttachments: Mr,
|
|
781
|
-
addAssetTypeAttachment:
|
|
782
|
-
addAssetTypeAttachments:
|
|
782
|
+
addAssetTypeAttachment: wp,
|
|
783
|
+
addAssetTypeAttachments: bn,
|
|
783
784
|
setAssetTypeAttachment: Cr,
|
|
784
|
-
setAssetTypeAttachments:
|
|
785
|
-
updateAssetTypeAttachment:
|
|
785
|
+
setAssetTypeAttachments: Ep,
|
|
786
|
+
updateAssetTypeAttachment: kp,
|
|
786
787
|
updateAssetTypeAttachments: Dr,
|
|
787
788
|
deleteAssetTypeAttachment: xr,
|
|
788
|
-
deleteAssetTypeAttachments:
|
|
789
|
-
} =
|
|
789
|
+
deleteAssetTypeAttachments: gn
|
|
790
|
+
} = yn.actions, zr = (t) => t.assetTypeAttachmentReducer.instances, Ur = p(
|
|
790
791
|
[zr],
|
|
791
792
|
(t) => Object.values(t)
|
|
792
793
|
), $r = (t) => (e) => e.assetTypeAttachmentReducer.instances[t], Vr = y(
|
|
@@ -794,10 +795,10 @@ const qe = _(
|
|
|
794
795
|
[Ur, (t, e) => e],
|
|
795
796
|
(t, e) => b(t.filter(({ asset_type: s }) => e === s))
|
|
796
797
|
)
|
|
797
|
-
), Gr =
|
|
798
|
+
), Gr = yn.reducer, H = _((t) => t.uuid), As = H.getInitialState({}), Sn = S({
|
|
798
799
|
name: "assetTypeFieldsAttachments",
|
|
799
|
-
initialState:
|
|
800
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
800
|
+
initialState: As,
|
|
801
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, As)),
|
|
801
802
|
reducers: {
|
|
802
803
|
initializeAssetTypeFieldsAttachments: H.initialize,
|
|
803
804
|
addAssetTypeFieldsAttachment: H.addOne,
|
|
@@ -811,25 +812,25 @@ const qe = _(
|
|
|
811
812
|
}
|
|
812
813
|
}), {
|
|
813
814
|
initializeAssetTypeFieldsAttachments: Lr,
|
|
814
|
-
addAssetTypeFieldsAttachment:
|
|
815
|
+
addAssetTypeFieldsAttachment: qp,
|
|
815
816
|
addAssetTypeFieldsAttachments: Br,
|
|
816
|
-
setAssetTypeFieldsAttachment:
|
|
817
|
-
setAssetTypeFieldsAttachments:
|
|
818
|
-
updateAssetTypeFieldsAttachment:
|
|
817
|
+
setAssetTypeFieldsAttachment: jp,
|
|
818
|
+
setAssetTypeFieldsAttachments: Mp,
|
|
819
|
+
updateAssetTypeFieldsAttachment: Cp,
|
|
819
820
|
updateAssetTypeFieldsAttachments: Nr,
|
|
820
|
-
deleteAssetTypeFieldsAttachment:
|
|
821
|
+
deleteAssetTypeFieldsAttachment: Dp,
|
|
821
822
|
deleteAssetTypeFieldsAttachments: Hr
|
|
822
|
-
} =
|
|
823
|
+
} = Sn.actions, Wr = (t) => t.assetTypeFieldsAttachmentReducer.instances, Kr = p(
|
|
823
824
|
[Wr],
|
|
824
825
|
(t) => Object.values(t)
|
|
825
|
-
),
|
|
826
|
+
), xp = y(
|
|
826
827
|
p([Kr, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
|
|
827
|
-
),
|
|
828
|
+
), zp = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], Yr = Sn.reducer, W = _(
|
|
828
829
|
(t) => t.uuid
|
|
829
|
-
),
|
|
830
|
+
), ys = W.getInitialState({}), Tn = S({
|
|
830
831
|
name: "assetTypeFields",
|
|
831
|
-
initialState:
|
|
832
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
832
|
+
initialState: ys,
|
|
833
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ys)),
|
|
833
834
|
reducers: {
|
|
834
835
|
initializeAssetTypeFields: W.initialize,
|
|
835
836
|
addAssetTypeFields: W.addOne,
|
|
@@ -844,21 +845,21 @@ const qe = _(
|
|
|
844
845
|
}), {
|
|
845
846
|
initializeAssetTypeFields: Jr,
|
|
846
847
|
addAssetTypeFields: Qr,
|
|
847
|
-
addAssetTypeFieldsMany:
|
|
848
|
-
setAssetTypeFields:
|
|
849
|
-
setAssetTypeFieldsMany:
|
|
848
|
+
addAssetTypeFieldsMany: Up,
|
|
849
|
+
setAssetTypeFields: $p,
|
|
850
|
+
setAssetTypeFieldsMany: Vp,
|
|
850
851
|
updateAssetTypeFields: Xr,
|
|
851
|
-
updateAssetTypeFieldsMany:
|
|
852
|
+
updateAssetTypeFieldsMany: Gp,
|
|
852
853
|
deleteAssetTypeFields: Zr,
|
|
853
|
-
deleteAssetTypeFieldsMany:
|
|
854
|
-
} =
|
|
855
|
-
p([
|
|
856
|
-
),
|
|
857
|
-
p([
|
|
858
|
-
),
|
|
854
|
+
deleteAssetTypeFieldsMany: Lp
|
|
855
|
+
} = Tn.actions, eo = (t) => t.assetTypeFieldsReducer.instances, _t = p([eo], (t) => Object.values(t)), Bp = y(
|
|
856
|
+
p([_t, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
|
|
857
|
+
), Np = y(
|
|
858
|
+
p([_t, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
859
|
+
), Hp = (t) => (e) => e.assetTypeFieldsReducer.instances[t], to = Tn.reducer, K = _((t) => t.uuid), bs = K.getInitialState({}), Rn = S({
|
|
859
860
|
name: "assetTypeFieldValuesAttachments",
|
|
860
|
-
initialState:
|
|
861
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
861
|
+
initialState: bs,
|
|
862
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, bs)),
|
|
862
863
|
reducers: {
|
|
863
864
|
initializeAssetTypeFieldValuesAttachments: K.initialize,
|
|
864
865
|
addAssetTypeFieldValuesAttachment: K.addOne,
|
|
@@ -872,21 +873,21 @@ const qe = _(
|
|
|
872
873
|
}
|
|
873
874
|
}), {
|
|
874
875
|
initializeAssetTypeFieldValuesAttachments: so,
|
|
875
|
-
addAssetTypeFieldValuesAttachment:
|
|
876
|
-
addAssetTypeFieldValuesAttachments:
|
|
877
|
-
setAssetTypeFieldValuesAttachment:
|
|
878
|
-
setAssetTypeFieldValuesAttachments:
|
|
879
|
-
updateAssetTypeFieldValuesAttachment:
|
|
876
|
+
addAssetTypeFieldValuesAttachment: Wp,
|
|
877
|
+
addAssetTypeFieldValuesAttachments: ft,
|
|
878
|
+
setAssetTypeFieldValuesAttachment: Kp,
|
|
879
|
+
setAssetTypeFieldValuesAttachments: Yp,
|
|
880
|
+
updateAssetTypeFieldValuesAttachment: Jp,
|
|
880
881
|
updateAssetTypeFieldValuesAttachments: io,
|
|
881
|
-
deleteAssetTypeFieldValuesAttachment:
|
|
882
|
-
deleteAssetTypeFieldValuesAttachments:
|
|
883
|
-
} =
|
|
884
|
-
[
|
|
882
|
+
deleteAssetTypeFieldValuesAttachment: Qp,
|
|
883
|
+
deleteAssetTypeFieldValuesAttachments: At
|
|
884
|
+
} = Rn.actions, _n = (t) => t.assetTypeFieldValuesAttachmentReducer.instances, no = p(
|
|
885
|
+
[_n],
|
|
885
886
|
(t) => Object.values(t)
|
|
886
|
-
),
|
|
887
|
+
), Xp = (t) => (e) => e.assetTypeFieldValuesAttachmentReducer.instances[t], ao = y(
|
|
887
888
|
p(
|
|
888
889
|
[
|
|
889
|
-
|
|
890
|
+
_n,
|
|
890
891
|
(t, e) => e
|
|
891
892
|
],
|
|
892
893
|
(t, e) => {
|
|
@@ -898,12 +899,12 @@ const qe = _(
|
|
|
898
899
|
)
|
|
899
900
|
), co = y(
|
|
900
901
|
p([no, (t, e) => e], (t, e) => b(t.filter((s) => s.field_values === e)))
|
|
901
|
-
), ro =
|
|
902
|
+
), ro = Rn.reducer, Y = _(
|
|
902
903
|
(t) => t.uuid
|
|
903
|
-
),
|
|
904
|
+
), gs = Y.getInitialState({}), On = S({
|
|
904
905
|
name: "assetTypeFieldValues",
|
|
905
|
-
initialState:
|
|
906
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
906
|
+
initialState: gs,
|
|
907
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, gs)),
|
|
907
908
|
reducers: {
|
|
908
909
|
initializeAssetTypeFieldValues: Y.initialize,
|
|
909
910
|
addAssetTypeFieldValues: Y.addOne,
|
|
@@ -917,19 +918,19 @@ const qe = _(
|
|
|
917
918
|
}
|
|
918
919
|
}), {
|
|
919
920
|
initializeAssetTypeFieldValues: oo,
|
|
920
|
-
addAssetTypeFieldValues:
|
|
921
|
+
addAssetTypeFieldValues: Ss,
|
|
921
922
|
addAssetTypeFieldValuesMany: uo,
|
|
922
|
-
setAssetTypeFieldValues:
|
|
923
|
-
setAssetTypeFieldValuesMany:
|
|
923
|
+
setAssetTypeFieldValues: Zp,
|
|
924
|
+
setAssetTypeFieldValuesMany: ef,
|
|
924
925
|
updateAssetTypeFieldValues: We,
|
|
925
926
|
updateAssetTypeFieldValuesMany: lo,
|
|
926
|
-
deleteAssetTypeFieldValues:
|
|
927
|
+
deleteAssetTypeFieldValues: Ts,
|
|
927
928
|
deleteAssetTypeFieldValuesMany: ho
|
|
928
|
-
} =
|
|
929
|
-
p([
|
|
930
|
-
),
|
|
929
|
+
} = On.actions, mo = (t) => t.assetTypeFieldValuesReducer.instances, In = p([mo], (t) => Object.values(t)), tf = y(
|
|
930
|
+
p([In, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
|
|
931
|
+
), sf = y(
|
|
931
932
|
p(
|
|
932
|
-
[
|
|
933
|
+
[_t, In, (t, e) => e],
|
|
933
934
|
(t, e, s) => {
|
|
934
935
|
const i = new Set(
|
|
935
936
|
t.filter((n) => n.asset_type === s).map((n) => n.uuid)
|
|
@@ -937,10 +938,10 @@ const qe = _(
|
|
|
937
938
|
return b(e.filter((n) => i.has(n.fields_revision)));
|
|
938
939
|
}
|
|
939
940
|
)
|
|
940
|
-
),
|
|
941
|
+
), Rs = (t) => (e) => e.assetTypeFieldValuesReducer.instances[t], po = On.reducer, J = _((t) => t.uuid), _s = J.getInitialState({}), Pn = S({
|
|
941
942
|
name: "assetTypes",
|
|
942
|
-
initialState:
|
|
943
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
943
|
+
initialState: _s,
|
|
944
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, _s)),
|
|
944
945
|
reducers: {
|
|
945
946
|
initializeAssetTypes: J.initialize,
|
|
946
947
|
setAssetType: J.setOne,
|
|
@@ -954,20 +955,20 @@ const qe = _(
|
|
|
954
955
|
}
|
|
955
956
|
}), {
|
|
956
957
|
initializeAssetTypes: fo,
|
|
957
|
-
setAssetType:
|
|
958
|
-
setAssetTypes:
|
|
959
|
-
addAssetType:
|
|
960
|
-
addAssetTypes:
|
|
958
|
+
setAssetType: nf,
|
|
959
|
+
setAssetTypes: af,
|
|
960
|
+
addAssetType: Os,
|
|
961
|
+
addAssetTypes: cf,
|
|
961
962
|
updateAssetType: Ke,
|
|
962
|
-
updateAssetTypes:
|
|
963
|
-
deleteAssetType:
|
|
964
|
-
deleteAssetTypes:
|
|
965
|
-
} =
|
|
966
|
-
[
|
|
963
|
+
updateAssetTypes: rf,
|
|
964
|
+
deleteAssetType: Is,
|
|
965
|
+
deleteAssetTypes: of
|
|
966
|
+
} = Pn.actions, Fn = (t) => t.assetTypeReducer.instances, df = p(
|
|
967
|
+
[Fn],
|
|
967
968
|
(t) => Object.values(t)
|
|
968
|
-
),
|
|
969
|
+
), Ps = (t) => (e) => e.assetTypeReducer.instances[t], uf = y(
|
|
969
970
|
p(
|
|
970
|
-
[
|
|
971
|
+
[Fn, (t, e) => e],
|
|
971
972
|
(t, e) => {
|
|
972
973
|
const s = [];
|
|
973
974
|
for (const i of e) {
|
|
@@ -977,14 +978,14 @@ const qe = _(
|
|
|
977
978
|
return b(s);
|
|
978
979
|
}
|
|
979
980
|
)
|
|
980
|
-
), Ao =
|
|
981
|
+
), Ao = Pn.reducer, Fs = {
|
|
981
982
|
accessToken: "",
|
|
982
983
|
refreshToken: "",
|
|
983
984
|
isLoggedIn: !1
|
|
984
|
-
},
|
|
985
|
+
}, Ot = S({
|
|
985
986
|
name: "auth",
|
|
986
|
-
initialState:
|
|
987
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
987
|
+
initialState: Fs,
|
|
988
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Fs)),
|
|
988
989
|
reducers: {
|
|
989
990
|
setTokens: (t, e) => {
|
|
990
991
|
t.accessToken = e.payload.accessToken, t.refreshToken = e.payload.refreshToken;
|
|
@@ -993,22 +994,22 @@ const qe = _(
|
|
|
993
994
|
t.accessToken = "", t.refreshToken = "";
|
|
994
995
|
},
|
|
995
996
|
setLoggedIn: (t, e) => {
|
|
996
|
-
e.payload ||
|
|
997
|
+
e.payload || Ot.caseReducers.clearTokens(t), t.isLoggedIn = e.payload;
|
|
997
998
|
}
|
|
998
999
|
}
|
|
999
|
-
}), { setTokens:
|
|
1000
|
+
}), { setTokens: lf, clearTokens: hf, setLoggedIn: yo } = Ot.actions, mf = (t) => t.authReducer.accessToken, pf = (t) => t.authReducer.isLoggedIn, bo = Ot.reducer, je = _((t) => t.uuid), vs = je.getInitialState({}), vn = S({
|
|
1000
1001
|
name: "categories",
|
|
1001
|
-
initialState:
|
|
1002
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1002
|
+
initialState: vs,
|
|
1003
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vs)),
|
|
1003
1004
|
reducers: {
|
|
1004
1005
|
initializeCategories: je.initialize,
|
|
1005
1006
|
addCategory: je.addOne,
|
|
1006
1007
|
updateCategory: je.updateOne,
|
|
1007
1008
|
deleteCategory: je.deleteOne
|
|
1008
1009
|
}
|
|
1009
|
-
}), { initializeCategories: go, addCategory:
|
|
1010
|
+
}), { initializeCategories: go, addCategory: ws, updateCategory: So, deleteCategory: To } = vn.actions, wn = (t) => t.categoryReducer.instances, ff = p([wn], (t) => Object.values(t)), Es = (t) => (e) => e.categoryReducer.instances[t], Af = y(
|
|
1010
1011
|
p(
|
|
1011
|
-
[
|
|
1012
|
+
[wn, (t, e) => e],
|
|
1012
1013
|
(t, e) => {
|
|
1013
1014
|
const s = [];
|
|
1014
1015
|
for (const i of e) {
|
|
@@ -1018,12 +1019,12 @@ const qe = _(
|
|
|
1018
1019
|
return b(s);
|
|
1019
1020
|
}
|
|
1020
1021
|
)
|
|
1021
|
-
),
|
|
1022
|
+
), yf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, Ro = vn.reducer, Q = _(
|
|
1022
1023
|
(t) => t.uuid
|
|
1023
|
-
),
|
|
1024
|
+
), ks = Q.getInitialState({}), En = S({
|
|
1024
1025
|
name: "documentAttachments",
|
|
1025
|
-
initialState:
|
|
1026
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1026
|
+
initialState: ks,
|
|
1027
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ks)),
|
|
1027
1028
|
reducers: {
|
|
1028
1029
|
initializeDocumentAttachments: Q.initialize,
|
|
1029
1030
|
addDocumentAttachment: Q.addOne,
|
|
@@ -1037,29 +1038,29 @@ const qe = _(
|
|
|
1037
1038
|
}
|
|
1038
1039
|
}), {
|
|
1039
1040
|
initializeDocumentAttachments: _o,
|
|
1040
|
-
addDocumentAttachment:
|
|
1041
|
+
addDocumentAttachment: bf,
|
|
1041
1042
|
addDocumentAttachments: Oo,
|
|
1042
1043
|
setDocumentAttachment: Io,
|
|
1043
|
-
setDocumentAttachments:
|
|
1044
|
-
updateDocumentAttachment:
|
|
1044
|
+
setDocumentAttachments: gf,
|
|
1045
|
+
updateDocumentAttachment: Sf,
|
|
1045
1046
|
updateDocumentAttachments: Po,
|
|
1046
1047
|
deleteDocumentAttachment: Fo,
|
|
1047
1048
|
deleteDocumentAttachments: vo
|
|
1048
|
-
} =
|
|
1049
|
+
} = En.actions, wo = (t) => t.documentAttachmentReducer.instances, Eo = p(
|
|
1049
1050
|
[wo],
|
|
1050
1051
|
(t) => Object.values(t)
|
|
1051
|
-
), ko = (t) => (e) => e.documentAttachmentReducer.instances[t],
|
|
1052
|
+
), ko = (t) => (e) => e.documentAttachmentReducer.instances[t], Tf = y(
|
|
1052
1053
|
p(
|
|
1053
1054
|
[Eo, (t, e) => e],
|
|
1054
1055
|
(t, e) => b(t.filter(({ document: s }) => e === s))
|
|
1055
1056
|
)
|
|
1056
|
-
), qo =
|
|
1057
|
+
), qo = En.reducer, qs = {
|
|
1057
1058
|
documents: {}
|
|
1058
|
-
},
|
|
1059
|
+
}, kn = S({
|
|
1059
1060
|
name: "documents",
|
|
1060
|
-
initialState:
|
|
1061
|
+
initialState: qs,
|
|
1061
1062
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
1062
|
-
Object.assign(e,
|
|
1063
|
+
Object.assign(e, qs);
|
|
1063
1064
|
}),
|
|
1064
1065
|
reducers: {
|
|
1065
1066
|
setDocuments: (t, e) => {
|
|
@@ -1179,10 +1180,10 @@ const qe = _(
|
|
|
1179
1180
|
}
|
|
1180
1181
|
}
|
|
1181
1182
|
}
|
|
1182
|
-
}), { setDocuments: jo, addDocuments: Mo, updateDocuments: be, moveDocument: Co, removeDocuments:
|
|
1183
|
+
}), { setDocuments: jo, addDocuments: Mo, updateDocuments: be, moveDocument: Co, removeDocuments: js } = kn.actions, xe = (t) => t.documentsReducer.documents, Do = p(
|
|
1183
1184
|
[xe],
|
|
1184
1185
|
(t) => Object.values(t)
|
|
1185
|
-
), xo = (t) => (e) => e.documentsReducer.documents[t],
|
|
1186
|
+
), xo = (t) => (e) => e.documentsReducer.documents[t], Rf = y(
|
|
1186
1187
|
p(
|
|
1187
1188
|
[xe, (t, e) => e],
|
|
1188
1189
|
(t, e) => {
|
|
@@ -1194,7 +1195,7 @@ const qe = _(
|
|
|
1194
1195
|
return b(s);
|
|
1195
1196
|
}
|
|
1196
1197
|
)
|
|
1197
|
-
),
|
|
1198
|
+
), _f = y(
|
|
1198
1199
|
p(
|
|
1199
1200
|
[xe, (t, e) => e],
|
|
1200
1201
|
(t, e) => {
|
|
@@ -1206,12 +1207,12 @@ const qe = _(
|
|
|
1206
1207
|
return b(s);
|
|
1207
1208
|
}
|
|
1208
1209
|
)
|
|
1209
|
-
),
|
|
1210
|
+
), Of = p(
|
|
1210
1211
|
[Do],
|
|
1211
1212
|
(t) => b(t.filter((e) => !e.parent_document))
|
|
1212
|
-
), zo =
|
|
1213
|
+
), zo = kn.reducer, et = _(
|
|
1213
1214
|
(t) => t.uuid
|
|
1214
|
-
), Uo = et.getInitialState({}),
|
|
1215
|
+
), Uo = et.getInitialState({}), qn = S({
|
|
1215
1216
|
name: "emailDomains",
|
|
1216
1217
|
initialState: Uo,
|
|
1217
1218
|
reducers: {
|
|
@@ -1219,19 +1220,19 @@ const qe = _(
|
|
|
1219
1220
|
addEmailDomain: et.addOne,
|
|
1220
1221
|
deleteEmailDomain: et.deleteOne
|
|
1221
1222
|
}
|
|
1222
|
-
}), { initializeEmailDomains: $o, addEmailDomain: Vo, deleteEmailDomain: Go } =
|
|
1223
|
+
}), { initializeEmailDomains: $o, addEmailDomain: Vo, deleteEmailDomain: Go } = qn.actions, Lo = (t) => t.emailDomainsReducer.instances, Bo = p([Lo], (t) => Object.values(t)), If = y(
|
|
1223
1224
|
p(
|
|
1224
1225
|
[Bo, (t, e) => e],
|
|
1225
1226
|
(t, e) => b(
|
|
1226
1227
|
t.filter((s) => s.organization === e)
|
|
1227
1228
|
)
|
|
1228
1229
|
)
|
|
1229
|
-
), No =
|
|
1230
|
+
), No = qn.reducer, Ms = {
|
|
1230
1231
|
s3Urls: {}
|
|
1231
|
-
},
|
|
1232
|
+
}, jn = 1e3 * 60 * 60, Ho = jn * 24 * 7, Mn = S({
|
|
1232
1233
|
name: "file",
|
|
1233
|
-
initialState:
|
|
1234
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1234
|
+
initialState: Ms,
|
|
1235
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ms)),
|
|
1235
1236
|
reducers: {
|
|
1236
1237
|
setUploadUrl: (t, e) => {
|
|
1237
1238
|
const { url: s, fields: i, sha1: n } = e.payload, a = /* @__PURE__ */ new Date(), c = new Date(a.getTime() + Ho);
|
|
@@ -1242,17 +1243,17 @@ const qe = _(
|
|
|
1242
1243
|
};
|
|
1243
1244
|
}
|
|
1244
1245
|
}
|
|
1245
|
-
}), { setUploadUrl: Wo } =
|
|
1246
|
+
}), { setUploadUrl: Wo } = Mn.actions, Ko = (t) => (e) => {
|
|
1246
1247
|
const s = e.fileReducer.s3Urls[t];
|
|
1247
1248
|
if (!s)
|
|
1248
1249
|
return;
|
|
1249
1250
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
1250
|
-
if (!((s.exp ?? i) - i <
|
|
1251
|
+
if (!((s.exp ?? i) - i < jn))
|
|
1251
1252
|
return s;
|
|
1252
|
-
}, Yo =
|
|
1253
|
+
}, Yo = Mn.reducer, X = _((t) => t.uuid), Cs = X.getInitialState({}), Cn = S({
|
|
1253
1254
|
name: "formRevisionAttachments",
|
|
1254
|
-
initialState:
|
|
1255
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1255
|
+
initialState: Cs,
|
|
1256
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Cs)),
|
|
1256
1257
|
reducers: {
|
|
1257
1258
|
initializeFormRevisionAttachments: X.initialize,
|
|
1258
1259
|
addFormRevisionAttachment: X.addOne,
|
|
@@ -1266,28 +1267,28 @@ const qe = _(
|
|
|
1266
1267
|
}
|
|
1267
1268
|
}), {
|
|
1268
1269
|
initializeFormRevisionAttachments: Jo,
|
|
1269
|
-
addFormRevisionAttachment:
|
|
1270
|
+
addFormRevisionAttachment: Pf,
|
|
1270
1271
|
addFormRevisionAttachments: Qo,
|
|
1271
|
-
setFormRevisionAttachment:
|
|
1272
|
-
setFormRevisionAttachments:
|
|
1273
|
-
updateFormRevisionAttachment:
|
|
1272
|
+
setFormRevisionAttachment: Ff,
|
|
1273
|
+
setFormRevisionAttachments: vf,
|
|
1274
|
+
updateFormRevisionAttachment: wf,
|
|
1274
1275
|
updateFormRevisionAttachments: Xo,
|
|
1275
|
-
deleteFormRevisionAttachment:
|
|
1276
|
+
deleteFormRevisionAttachment: Ef,
|
|
1276
1277
|
deleteFormRevisionAttachments: Zo
|
|
1277
|
-
} =
|
|
1278
|
+
} = Cn.actions, ed = (t) => t.formRevisionAttachmentReducer.instances, kf = y(
|
|
1278
1279
|
p(
|
|
1279
1280
|
[ed, (t, e) => e],
|
|
1280
1281
|
(t, e) => b(
|
|
1281
1282
|
Object.values(t).filter((s) => s.form_revision === e)
|
|
1282
1283
|
)
|
|
1283
1284
|
)
|
|
1284
|
-
), td =
|
|
1285
|
+
), td = Cn.reducer, sd = (t, e) => {
|
|
1285
1286
|
const s = t.revision, i = e.revision;
|
|
1286
1287
|
return s === void 0 && i === void 0 ? t.submitted_at < e.submitted_at ? -1 : 1 : s === void 0 ? 1 : i === void 0 || s < i ? -1 : 1;
|
|
1287
|
-
}, ge = _((t) => t.uuid),
|
|
1288
|
+
}, ge = _((t) => t.uuid), Ds = ge.getInitialState({}), Dn = S({
|
|
1288
1289
|
name: "formRevisions",
|
|
1289
|
-
initialState:
|
|
1290
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1290
|
+
initialState: Ds,
|
|
1291
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ds)),
|
|
1291
1292
|
reducers: {
|
|
1292
1293
|
initializeFormRevisions: ge.initialize,
|
|
1293
1294
|
setFormRevision: ge.setOne,
|
|
@@ -1299,16 +1300,16 @@ const qe = _(
|
|
|
1299
1300
|
}), {
|
|
1300
1301
|
setFormRevision: id,
|
|
1301
1302
|
initializeFormRevisions: nd,
|
|
1302
|
-
addFormRevision:
|
|
1303
|
+
addFormRevision: xn,
|
|
1303
1304
|
addFormRevisions: ad,
|
|
1304
|
-
deleteFormRevision:
|
|
1305
|
+
deleteFormRevision: zn,
|
|
1305
1306
|
deleteFormRevisions: cd
|
|
1306
|
-
} =
|
|
1307
|
-
[
|
|
1307
|
+
} = Dn.actions, It = (t) => t.formRevisionReducer.instances, rd = p(
|
|
1308
|
+
[It],
|
|
1308
1309
|
(t) => Object.values(t)
|
|
1309
|
-
),
|
|
1310
|
+
), qf = (t) => (e) => e.formRevisionReducer.instances[t], jf = y(
|
|
1310
1311
|
p(
|
|
1311
|
-
[
|
|
1312
|
+
[It, (t, e) => e],
|
|
1312
1313
|
(t, e) => {
|
|
1313
1314
|
const s = Object.values(t).filter((a) => a.form === e);
|
|
1314
1315
|
if (s.length === 0) return;
|
|
@@ -1321,10 +1322,10 @@ const qe = _(
|
|
|
1321
1322
|
[rd, (t, e) => e],
|
|
1322
1323
|
(t, e) => b(t.filter((s) => s.form === e))
|
|
1323
1324
|
)
|
|
1324
|
-
), dd =
|
|
1325
|
+
), dd = Dn.reducer, Se = _((t) => t.uuid), xs = Se.getInitialState({}), Un = S({
|
|
1325
1326
|
name: "forms",
|
|
1326
|
-
initialState:
|
|
1327
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1327
|
+
initialState: xs,
|
|
1328
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, xs)),
|
|
1328
1329
|
reducers: {
|
|
1329
1330
|
initializeForms: Se.initialize,
|
|
1330
1331
|
setForm: Se.setOne,
|
|
@@ -1333,10 +1334,10 @@ const qe = _(
|
|
|
1333
1334
|
updateForm: Se.updateOne,
|
|
1334
1335
|
deleteForm: Se.deleteOne
|
|
1335
1336
|
}
|
|
1336
|
-
}), { initializeForms: ud, setForm:
|
|
1337
|
+
}), { initializeForms: ud, setForm: Mf, addForm: zs, addForms: Cf, updateForm: Df, deleteForm: Us } = Un.actions, ld = Un.reducer, hd = (t) => t.formReducer.instances, xf = p([hd], (t) => Object.values(t)), md = (t) => (e) => e.formReducer.instances[t], Z = _((t) => t.uuid), $s = Z.getInitialState({}), $n = S({
|
|
1337
1338
|
name: "formSubmissionAttachments",
|
|
1338
|
-
initialState:
|
|
1339
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1339
|
+
initialState: $s,
|
|
1340
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, $s)),
|
|
1340
1341
|
reducers: {
|
|
1341
1342
|
initializeFormSubmissionAttachments: Z.initialize,
|
|
1342
1343
|
addFormSubmissionAttachment: Z.addOne,
|
|
@@ -1350,18 +1351,18 @@ const qe = _(
|
|
|
1350
1351
|
}
|
|
1351
1352
|
}), {
|
|
1352
1353
|
initializeFormSubmissionAttachments: pd,
|
|
1353
|
-
addFormSubmissionAttachment:
|
|
1354
|
-
addFormSubmissionAttachments:
|
|
1355
|
-
setFormSubmissionAttachment:
|
|
1356
|
-
setFormSubmissionAttachments:
|
|
1357
|
-
updateFormSubmissionAttachment:
|
|
1354
|
+
addFormSubmissionAttachment: zf,
|
|
1355
|
+
addFormSubmissionAttachments: yt,
|
|
1356
|
+
setFormSubmissionAttachment: Uf,
|
|
1357
|
+
setFormSubmissionAttachments: $f,
|
|
1358
|
+
updateFormSubmissionAttachment: Vf,
|
|
1358
1359
|
updateFormSubmissionAttachments: fd,
|
|
1359
|
-
deleteFormSubmissionAttachment:
|
|
1360
|
-
deleteFormSubmissionAttachments:
|
|
1361
|
-
} =
|
|
1360
|
+
deleteFormSubmissionAttachment: Gf,
|
|
1361
|
+
deleteFormSubmissionAttachments: bt
|
|
1362
|
+
} = $n.actions, Vn = (t) => t.formSubmissionAttachmentReducer.instances, Ad = y(
|
|
1362
1363
|
p(
|
|
1363
1364
|
[
|
|
1364
|
-
|
|
1365
|
+
Vn,
|
|
1365
1366
|
(t, e) => e
|
|
1366
1367
|
],
|
|
1367
1368
|
(t, e) => {
|
|
@@ -1373,17 +1374,17 @@ const qe = _(
|
|
|
1373
1374
|
)
|
|
1374
1375
|
), yd = y(
|
|
1375
1376
|
p(
|
|
1376
|
-
[
|
|
1377
|
+
[Vn, (t, e) => e],
|
|
1377
1378
|
(t, e) => b(
|
|
1378
1379
|
Object.values(t).filter((s) => s.form_submission === e)
|
|
1379
1380
|
)
|
|
1380
1381
|
)
|
|
1381
|
-
), bd =
|
|
1382
|
+
), bd = $n.reducer, ee = _(
|
|
1382
1383
|
(t) => t.uuid
|
|
1383
|
-
),
|
|
1384
|
+
), Vs = ee.getInitialState({}), Gn = S({
|
|
1384
1385
|
name: "formSubmissions",
|
|
1385
|
-
initialState:
|
|
1386
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1386
|
+
initialState: Vs,
|
|
1387
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vs)),
|
|
1387
1388
|
reducers: {
|
|
1388
1389
|
initializeFormSubmissions: ee.initialize,
|
|
1389
1390
|
setFormSubmission: ee.setOne,
|
|
@@ -1397,22 +1398,22 @@ const qe = _(
|
|
|
1397
1398
|
}
|
|
1398
1399
|
}), {
|
|
1399
1400
|
initializeFormSubmissions: gd,
|
|
1400
|
-
setFormSubmission:
|
|
1401
|
-
setFormSubmissions:
|
|
1402
|
-
addFormSubmission:
|
|
1403
|
-
addFormSubmissions:
|
|
1401
|
+
setFormSubmission: ct,
|
|
1402
|
+
setFormSubmissions: Lf,
|
|
1403
|
+
addFormSubmission: Gs,
|
|
1404
|
+
addFormSubmissions: Pt,
|
|
1404
1405
|
updateFormSubmission: Sd,
|
|
1405
|
-
updateFormSubmissions:
|
|
1406
|
-
deleteFormSubmission:
|
|
1407
|
-
deleteFormSubmissions:
|
|
1408
|
-
} =
|
|
1409
|
-
[
|
|
1406
|
+
updateFormSubmissions: Bf,
|
|
1407
|
+
deleteFormSubmission: Ls,
|
|
1408
|
+
deleteFormSubmissions: Ft
|
|
1409
|
+
} = Gn.actions, Ln = (t) => t.formSubmissionReducer.instances, Bn = p(
|
|
1410
|
+
[Ln],
|
|
1410
1411
|
(t) => Object.values(t)
|
|
1411
|
-
),
|
|
1412
|
+
), Bs = (t) => (e) => e.formSubmissionReducer.instances[t], Td = y(
|
|
1412
1413
|
p(
|
|
1413
1414
|
[
|
|
1414
|
-
|
|
1415
|
-
|
|
1415
|
+
Ln,
|
|
1416
|
+
It,
|
|
1416
1417
|
(t, e) => e
|
|
1417
1418
|
],
|
|
1418
1419
|
(t, e, s) => {
|
|
@@ -1426,20 +1427,20 @@ const qe = _(
|
|
|
1426
1427
|
)
|
|
1427
1428
|
), Rd = y(
|
|
1428
1429
|
p(
|
|
1429
|
-
[
|
|
1430
|
+
[Bn, (t, e) => e],
|
|
1430
1431
|
(t, e) => Object.values(t).filter((s) => s.issue === e)
|
|
1431
1432
|
)
|
|
1432
1433
|
), _d = y(
|
|
1433
1434
|
p(
|
|
1434
|
-
[
|
|
1435
|
+
[Bn, (t, e) => e],
|
|
1435
1436
|
(t, e) => t.filter((s) => s.asset === e)
|
|
1436
1437
|
)
|
|
1437
|
-
), Od =
|
|
1438
|
+
), Od = Gn.reducer, te = _((t) => t.uuid), Ns = te.getInitialState({}), Nn = S({
|
|
1438
1439
|
name: "geoImages",
|
|
1439
|
-
initialState:
|
|
1440
|
+
initialState: Ns,
|
|
1440
1441
|
extraReducers: (t) => {
|
|
1441
1442
|
t.addCase("RESET", (e) => {
|
|
1442
|
-
Object.assign(e,
|
|
1443
|
+
Object.assign(e, Ns);
|
|
1443
1444
|
});
|
|
1444
1445
|
},
|
|
1445
1446
|
reducers: {
|
|
@@ -1460,17 +1461,17 @@ const qe = _(
|
|
|
1460
1461
|
addGeoImage: Fd,
|
|
1461
1462
|
addGeoImages: vd,
|
|
1462
1463
|
updateGeoImage: wd,
|
|
1463
|
-
updateGeoImages:
|
|
1464
|
-
deleteGeoImage:
|
|
1464
|
+
updateGeoImages: Nf,
|
|
1465
|
+
deleteGeoImage: Hs,
|
|
1465
1466
|
deleteGeoImages: Ed
|
|
1466
|
-
} =
|
|
1467
|
+
} = Nn.actions, kd = (t) => t.geoImageReducer.instances, qd = p([kd], (t) => Object.values(t)), Ws = (t) => (e) => e.geoImageReducer.instances[t], Hf = y(
|
|
1467
1468
|
p([qd, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
|
|
1468
|
-
), jd =
|
|
1469
|
+
), jd = Nn.reducer, se = _(
|
|
1469
1470
|
(t) => t.uuid
|
|
1470
|
-
),
|
|
1471
|
+
), Ks = se.getInitialState({}), Hn = S({
|
|
1471
1472
|
name: "issueAssociations",
|
|
1472
|
-
initialState:
|
|
1473
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1473
|
+
initialState: Ks,
|
|
1474
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ks)),
|
|
1474
1475
|
reducers: {
|
|
1475
1476
|
initializeIssueAssociations: se.initialize,
|
|
1476
1477
|
addIssueAssociation: se.addOne,
|
|
@@ -1484,37 +1485,37 @@ const qe = _(
|
|
|
1484
1485
|
}
|
|
1485
1486
|
}), {
|
|
1486
1487
|
initializeIssueAssociations: Md,
|
|
1487
|
-
setIssueAssociations:
|
|
1488
|
-
setIssueAssociation:
|
|
1488
|
+
setIssueAssociations: Wf,
|
|
1489
|
+
setIssueAssociation: Kf,
|
|
1489
1490
|
updateIssueAssociation: Cd,
|
|
1490
|
-
updateIssueAssociations:
|
|
1491
|
-
addIssueAssociation:
|
|
1492
|
-
addIssueAssociations:
|
|
1493
|
-
deleteIssueAssociation:
|
|
1494
|
-
deleteIssueAssociations:
|
|
1495
|
-
} =
|
|
1491
|
+
updateIssueAssociations: Yf,
|
|
1492
|
+
addIssueAssociation: Ys,
|
|
1493
|
+
addIssueAssociations: Wn,
|
|
1494
|
+
deleteIssueAssociation: Js,
|
|
1495
|
+
deleteIssueAssociations: Kn
|
|
1496
|
+
} = Hn.actions, nt = (t) => t.issueAssociationReducer.instances, Jf = p([nt], (t) => Object.values(t)), Dd = (t) => (e) => e.issueAssociationReducer.instances[t], xd = y(
|
|
1496
1497
|
p(
|
|
1497
|
-
[
|
|
1498
|
+
[nt, (t, e) => e],
|
|
1498
1499
|
(t, e) => b(
|
|
1499
1500
|
Object.values(t).filter((s) => s.associated_issue === e)
|
|
1500
1501
|
)
|
|
1501
1502
|
)
|
|
1502
1503
|
), zd = y(
|
|
1503
1504
|
p(
|
|
1504
|
-
[
|
|
1505
|
+
[nt, (t, e) => e],
|
|
1505
1506
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1506
1507
|
)
|
|
1507
1508
|
), Ud = y(
|
|
1508
1509
|
p(
|
|
1509
|
-
[
|
|
1510
|
+
[nt, (t, e) => e],
|
|
1510
1511
|
(t, e) => b(Object.values(t).filter((s) => s.asset === e))
|
|
1511
1512
|
)
|
|
1512
|
-
), $d =
|
|
1513
|
+
), $d = Hn.reducer, ie = _(
|
|
1513
1514
|
(t) => t.uuid
|
|
1514
|
-
),
|
|
1515
|
+
), Qs = ie.getInitialState({}), Yn = S({
|
|
1515
1516
|
name: "issueAttachments",
|
|
1516
|
-
initialState:
|
|
1517
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1517
|
+
initialState: Qs,
|
|
1518
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Qs)),
|
|
1518
1519
|
reducers: {
|
|
1519
1520
|
initializeIssueAttachments: ie.initialize,
|
|
1520
1521
|
addIssueAttachment: ie.addOne,
|
|
@@ -1527,16 +1528,16 @@ const qe = _(
|
|
|
1527
1528
|
deleteIssueAttachments: ie.deleteMany
|
|
1528
1529
|
}
|
|
1529
1530
|
}), {
|
|
1530
|
-
initializeIssueAttachments:
|
|
1531
|
-
addIssueAttachment:
|
|
1532
|
-
addIssueAttachments:
|
|
1531
|
+
initializeIssueAttachments: Xs,
|
|
1532
|
+
addIssueAttachment: Qf,
|
|
1533
|
+
addIssueAttachments: Jn,
|
|
1533
1534
|
setIssueAttachment: Vd,
|
|
1534
|
-
setIssueAttachments:
|
|
1535
|
-
updateIssueAttachment:
|
|
1535
|
+
setIssueAttachments: Xf,
|
|
1536
|
+
updateIssueAttachment: Zf,
|
|
1536
1537
|
updateIssueAttachments: Gd,
|
|
1537
1538
|
deleteIssueAttachment: Ld,
|
|
1538
|
-
deleteIssueAttachments:
|
|
1539
|
-
} =
|
|
1539
|
+
deleteIssueAttachments: Qn
|
|
1540
|
+
} = Yn.actions, Bd = (t) => t.issueAttachmentReducer.instances, Nd = p(
|
|
1540
1541
|
[Bd],
|
|
1541
1542
|
(t) => Object.values(t)
|
|
1542
1543
|
), Hd = y(
|
|
@@ -1544,10 +1545,10 @@ const qe = _(
|
|
|
1544
1545
|
[Nd, (t, e) => e],
|
|
1545
1546
|
(t, e) => b(t.filter(({ issue: s }) => e === s))
|
|
1546
1547
|
)
|
|
1547
|
-
), Wd = (t) => (e) => e.issueAttachmentReducer.instances[t], Kd =
|
|
1548
|
+
), Wd = (t) => (e) => e.issueAttachmentReducer.instances[t], Kd = Yn.reducer, ne = _((t) => t.uuid), Zs = ne.getInitialState({}), Xn = S({
|
|
1548
1549
|
name: "issueCommentAttachments",
|
|
1549
|
-
initialState:
|
|
1550
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1550
|
+
initialState: Zs,
|
|
1551
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Zs)),
|
|
1551
1552
|
reducers: {
|
|
1552
1553
|
initializeIssueCommentAttachments: ne.initialize,
|
|
1553
1554
|
addIssueCommentAttachment: ne.addOne,
|
|
@@ -1560,19 +1561,19 @@ const qe = _(
|
|
|
1560
1561
|
deleteIssueCommentAttachments: ne.deleteMany
|
|
1561
1562
|
}
|
|
1562
1563
|
}), {
|
|
1563
|
-
initializeIssueCommentAttachments:
|
|
1564
|
-
addIssueCommentAttachment:
|
|
1564
|
+
initializeIssueCommentAttachments: ei,
|
|
1565
|
+
addIssueCommentAttachment: eA,
|
|
1565
1566
|
addIssueCommentAttachments: Yd,
|
|
1566
1567
|
setIssueCommentAttachment: Jd,
|
|
1567
|
-
setIssueCommentAttachments:
|
|
1568
|
-
updateIssueCommentAttachment:
|
|
1568
|
+
setIssueCommentAttachments: tA,
|
|
1569
|
+
updateIssueCommentAttachment: sA,
|
|
1569
1570
|
updateIssueCommentAttachments: Qd,
|
|
1570
1571
|
deleteIssueCommentAttachment: Xd,
|
|
1571
1572
|
deleteIssueCommentAttachments: Zd
|
|
1572
|
-
} =
|
|
1573
|
+
} = Xn.actions, eu = (t) => t.issueCommentAttachmentReducer.instances, tu = p(
|
|
1573
1574
|
[eu],
|
|
1574
1575
|
(t) => Object.values(t)
|
|
1575
|
-
), su = (t) => (e) => e.issueCommentAttachmentReducer.instances[t],
|
|
1576
|
+
), su = (t) => (e) => e.issueCommentAttachmentReducer.instances[t], iA = y(
|
|
1576
1577
|
p(
|
|
1577
1578
|
[
|
|
1578
1579
|
tu,
|
|
@@ -1580,10 +1581,10 @@ const qe = _(
|
|
|
1580
1581
|
],
|
|
1581
1582
|
(t, e) => b(t.filter(({ issue_comment: s }) => e === s))
|
|
1582
1583
|
)
|
|
1583
|
-
), iu =
|
|
1584
|
+
), iu = Xn.reducer, Te = _((t) => t.uuid), ti = Te.getInitialState({}), Zn = S({
|
|
1584
1585
|
name: "issueComments",
|
|
1585
|
-
initialState:
|
|
1586
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1586
|
+
initialState: ti,
|
|
1587
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ti)),
|
|
1587
1588
|
reducers: {
|
|
1588
1589
|
addIssueComment: Te.addOne,
|
|
1589
1590
|
addIssueComments: Te.addMany,
|
|
@@ -1594,21 +1595,21 @@ const qe = _(
|
|
|
1594
1595
|
}
|
|
1595
1596
|
}), {
|
|
1596
1597
|
setIssueComments: nu,
|
|
1597
|
-
setIssueComment:
|
|
1598
|
-
addIssueComment:
|
|
1599
|
-
addIssueComments:
|
|
1600
|
-
deleteIssueComment:
|
|
1601
|
-
deleteIssueComments:
|
|
1602
|
-
} =
|
|
1598
|
+
setIssueComment: si,
|
|
1599
|
+
addIssueComment: ii,
|
|
1600
|
+
addIssueComments: nA,
|
|
1601
|
+
deleteIssueComment: ni,
|
|
1602
|
+
deleteIssueComments: aA
|
|
1603
|
+
} = Zn.actions, au = (t) => t.issueCommentReducer.instances, ai = (t) => (e) => e.issueCommentReducer.instances[t], cA = y(
|
|
1603
1604
|
p(
|
|
1604
1605
|
[au, (t, e) => e],
|
|
1605
1606
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1606
1607
|
)
|
|
1607
|
-
), cu =
|
|
1608
|
+
), cu = Zn.reducer, Re = _((t) => t.uuid), ci = Re.getInitialState({}), ea = S({
|
|
1608
1609
|
name: "issues",
|
|
1609
|
-
initialState:
|
|
1610
|
+
initialState: ci,
|
|
1610
1611
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
1611
|
-
Object.assign(e,
|
|
1612
|
+
Object.assign(e, ci);
|
|
1612
1613
|
}),
|
|
1613
1614
|
reducers: {
|
|
1614
1615
|
initializeIssues: Re.initialize,
|
|
@@ -1618,7 +1619,7 @@ const qe = _(
|
|
|
1618
1619
|
deleteIssue: Re.deleteOne,
|
|
1619
1620
|
deleteIssues: Re.deleteMany
|
|
1620
1621
|
}
|
|
1621
|
-
}), { initializeIssues: ru, addIssue:
|
|
1622
|
+
}), { initializeIssues: ru, addIssue: ri, addIssues: ou, updateIssue: rt, deleteIssue: oi, deleteIssues: du } = ea.actions, uu = (t) => t.issueReducer.instances, di = (t) => (e) => e.issueReducer.instances[t], rA = y(
|
|
1622
1623
|
p([uu, (t, e) => e], (t, e) => {
|
|
1623
1624
|
const s = [];
|
|
1624
1625
|
for (const i of e) {
|
|
@@ -1627,12 +1628,12 @@ const qe = _(
|
|
|
1627
1628
|
}
|
|
1628
1629
|
return b(s);
|
|
1629
1630
|
})
|
|
1630
|
-
), lu =
|
|
1631
|
+
), lu = ea.reducer, ae = _(
|
|
1631
1632
|
(t) => t.uuid
|
|
1632
|
-
),
|
|
1633
|
+
), ui = ae.getInitialState({}), ta = S({
|
|
1633
1634
|
name: "issueTypeAttachments",
|
|
1634
|
-
initialState:
|
|
1635
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1635
|
+
initialState: ui,
|
|
1636
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ui)),
|
|
1636
1637
|
reducers: {
|
|
1637
1638
|
initializeIssueTypeAttachments: ae.initialize,
|
|
1638
1639
|
addIssueTypeAttachment: ae.addOne,
|
|
@@ -1645,27 +1646,27 @@ const qe = _(
|
|
|
1645
1646
|
deleteIssueTypeAttachments: ae.deleteMany
|
|
1646
1647
|
}
|
|
1647
1648
|
}), {
|
|
1648
|
-
initializeIssueTypeAttachments:
|
|
1649
|
-
addIssueTypeAttachment:
|
|
1649
|
+
initializeIssueTypeAttachments: li,
|
|
1650
|
+
addIssueTypeAttachment: oA,
|
|
1650
1651
|
addIssueTypeAttachments: hu,
|
|
1651
1652
|
setIssueTypeAttachment: mu,
|
|
1652
|
-
setIssueTypeAttachments:
|
|
1653
|
-
updateIssueTypeAttachment:
|
|
1653
|
+
setIssueTypeAttachments: dA,
|
|
1654
|
+
updateIssueTypeAttachment: uA,
|
|
1654
1655
|
updateIssueTypeAttachments: pu,
|
|
1655
1656
|
deleteIssueTypeAttachment: fu,
|
|
1656
1657
|
deleteIssueTypeAttachments: Au
|
|
1657
|
-
} =
|
|
1658
|
+
} = ta.actions, yu = (t) => t.issueTypeAttachmentReducer.instances, bu = p(
|
|
1658
1659
|
[yu],
|
|
1659
1660
|
(t) => Object.values(t)
|
|
1660
|
-
), gu = (t) => (e) => e.issueTypeAttachmentReducer.instances[t],
|
|
1661
|
+
), gu = (t) => (e) => e.issueTypeAttachmentReducer.instances[t], lA = y(
|
|
1661
1662
|
p(
|
|
1662
1663
|
[bu, (t, e) => e],
|
|
1663
1664
|
(t, e) => b(t.filter(({ issue_type: s }) => e === s))
|
|
1664
1665
|
)
|
|
1665
|
-
), Su =
|
|
1666
|
+
), Su = ta.reducer, ce = _((t) => t.uuid), hi = ce.getInitialState({}), sa = S({
|
|
1666
1667
|
name: "issueTypeFieldsAttachments",
|
|
1667
|
-
initialState:
|
|
1668
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1668
|
+
initialState: hi,
|
|
1669
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, hi)),
|
|
1669
1670
|
reducers: {
|
|
1670
1671
|
initializeIssueTypeFieldsAttachments: ce.initialize,
|
|
1671
1672
|
addIssueTypeFieldsAttachment: ce.addOne,
|
|
@@ -1679,30 +1680,30 @@ const qe = _(
|
|
|
1679
1680
|
}
|
|
1680
1681
|
}), {
|
|
1681
1682
|
initializeIssueTypeFieldsAttachments: Tu,
|
|
1682
|
-
addIssueTypeFieldsAttachment:
|
|
1683
|
+
addIssueTypeFieldsAttachment: hA,
|
|
1683
1684
|
addIssueTypeFieldsAttachments: Ru,
|
|
1684
|
-
setIssueTypeFieldsAttachment:
|
|
1685
|
-
setIssueTypeFieldsAttachments:
|
|
1686
|
-
updateIssueTypeFieldsAttachment:
|
|
1685
|
+
setIssueTypeFieldsAttachment: mA,
|
|
1686
|
+
setIssueTypeFieldsAttachments: pA,
|
|
1687
|
+
updateIssueTypeFieldsAttachment: fA,
|
|
1687
1688
|
updateIssueTypeFieldsAttachments: _u,
|
|
1688
|
-
deleteIssueTypeFieldsAttachment:
|
|
1689
|
+
deleteIssueTypeFieldsAttachment: AA,
|
|
1689
1690
|
deleteIssueTypeFieldsAttachments: Ou
|
|
1690
|
-
} =
|
|
1691
|
+
} = sa.actions, Iu = (t) => t.issueTypeFieldsAttachmentReducer.instances, Pu = p(
|
|
1691
1692
|
[Iu],
|
|
1692
1693
|
(t) => Object.values(t)
|
|
1693
|
-
),
|
|
1694
|
+
), yA = y(
|
|
1694
1695
|
p(
|
|
1695
1696
|
[Pu, (t, e) => e],
|
|
1696
1697
|
(t, e) => b(
|
|
1697
1698
|
t.filter((s) => s.fields_revision === e)
|
|
1698
1699
|
)
|
|
1699
1700
|
)
|
|
1700
|
-
),
|
|
1701
|
+
), bA = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], Fu = sa.reducer, re = _(
|
|
1701
1702
|
(t) => t.uuid
|
|
1702
|
-
),
|
|
1703
|
+
), mi = re.getInitialState({}), ia = S({
|
|
1703
1704
|
name: "issueTypeFieldValues",
|
|
1704
|
-
initialState:
|
|
1705
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1705
|
+
initialState: mi,
|
|
1706
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, mi)),
|
|
1706
1707
|
reducers: {
|
|
1707
1708
|
initializeIssueTypeFieldValues: re.initialize,
|
|
1708
1709
|
addIssueTypeFieldValues: re.addOne,
|
|
@@ -1716,22 +1717,22 @@ const qe = _(
|
|
|
1716
1717
|
}
|
|
1717
1718
|
}), {
|
|
1718
1719
|
initializeIssueTypeFieldValues: vu,
|
|
1719
|
-
addIssueTypeFieldValues:
|
|
1720
|
-
addIssueTypeFieldValuesMany:
|
|
1721
|
-
setIssueTypeFieldValues:
|
|
1722
|
-
setIssueTypeFieldValuesMany:
|
|
1720
|
+
addIssueTypeFieldValues: pi,
|
|
1721
|
+
addIssueTypeFieldValuesMany: gA,
|
|
1722
|
+
setIssueTypeFieldValues: SA,
|
|
1723
|
+
setIssueTypeFieldValuesMany: TA,
|
|
1723
1724
|
updateIssueTypeFieldValues: Je,
|
|
1724
|
-
updateIssueTypeFieldValuesMany:
|
|
1725
|
-
deleteIssueTypeFieldValues:
|
|
1726
|
-
deleteIssueTypeFieldValuesMany:
|
|
1727
|
-
} =
|
|
1728
|
-
p([
|
|
1729
|
-
),
|
|
1725
|
+
updateIssueTypeFieldValuesMany: RA,
|
|
1726
|
+
deleteIssueTypeFieldValues: fi,
|
|
1727
|
+
deleteIssueTypeFieldValuesMany: _A
|
|
1728
|
+
} = ia.actions, wu = (t) => t.issueTypeFieldValuesReducer.instances, na = p([wu], (t) => Object.values(t)), OA = y(
|
|
1729
|
+
p([na, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
|
|
1730
|
+
), Ai = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], Eu = ia.reducer, oe = _(
|
|
1730
1731
|
(t) => t.uuid
|
|
1731
|
-
),
|
|
1732
|
+
), yi = oe.getInitialState({}), aa = S({
|
|
1732
1733
|
name: "issueTypeFields",
|
|
1733
|
-
initialState:
|
|
1734
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1734
|
+
initialState: yi,
|
|
1735
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, yi)),
|
|
1735
1736
|
reducers: {
|
|
1736
1737
|
initializeIssueTypeFields: oe.initialize,
|
|
1737
1738
|
addIssueTypeFields: oe.addOne,
|
|
@@ -1746,20 +1747,20 @@ const qe = _(
|
|
|
1746
1747
|
}), {
|
|
1747
1748
|
initializeIssueTypeFields: ku,
|
|
1748
1749
|
addIssueTypeFields: qu,
|
|
1749
|
-
addIssueTypeFieldsMany:
|
|
1750
|
-
setIssueTypeFields:
|
|
1751
|
-
setIssueTypeFieldsMany:
|
|
1750
|
+
addIssueTypeFieldsMany: IA,
|
|
1751
|
+
setIssueTypeFields: PA,
|
|
1752
|
+
setIssueTypeFieldsMany: FA,
|
|
1752
1753
|
updateIssueTypeFields: ju,
|
|
1753
|
-
updateIssueTypeFieldsMany:
|
|
1754
|
+
updateIssueTypeFieldsMany: vA,
|
|
1754
1755
|
deleteIssueTypeFields: Mu,
|
|
1755
|
-
deleteIssueTypeFieldsMany:
|
|
1756
|
-
} =
|
|
1757
|
-
p([
|
|
1756
|
+
deleteIssueTypeFieldsMany: wA
|
|
1757
|
+
} = aa.actions, Cu = (t) => t.issueTypeFieldsReducer.instances, vt = p([Cu], (t) => Object.values(t)), EA = y(
|
|
1758
|
+
p([vt, (t, e) => e], (t, e) => b(t.filter((s) => s.issue_type === e)))
|
|
1759
|
+
), kA = y(
|
|
1760
|
+
p([vt, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
1758
1761
|
), qA = y(
|
|
1759
|
-
p([Ft, (t, e) => e], (t, e) => t.filter((s) => s.issue_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
|
|
1760
|
-
), jA = y(
|
|
1761
1762
|
p(
|
|
1762
|
-
[
|
|
1763
|
+
[vt, na, (t, e) => e],
|
|
1763
1764
|
(t, e, s) => {
|
|
1764
1765
|
const i = new Set(
|
|
1765
1766
|
t.filter((n) => n.issue_type === s).map((n) => n.uuid)
|
|
@@ -1767,10 +1768,10 @@ const qe = _(
|
|
|
1767
1768
|
return b(e.filter((n) => i.has(n.fields_revision)));
|
|
1768
1769
|
}
|
|
1769
1770
|
)
|
|
1770
|
-
),
|
|
1771
|
+
), jA = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Du = aa.reducer, de = _((t) => t.uuid), bi = de.getInitialState({}), ca = S({
|
|
1771
1772
|
name: "issueTypeFieldValuesAttachments",
|
|
1772
|
-
initialState:
|
|
1773
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1773
|
+
initialState: bi,
|
|
1774
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, bi)),
|
|
1774
1775
|
reducers: {
|
|
1775
1776
|
initializeIssueTypeFieldValuesAttachments: de.initialize,
|
|
1776
1777
|
addIssueTypeFieldValuesAttachment: de.addOne,
|
|
@@ -1784,21 +1785,21 @@ const qe = _(
|
|
|
1784
1785
|
}
|
|
1785
1786
|
}), {
|
|
1786
1787
|
initializeIssueTypeFieldValuesAttachments: xu,
|
|
1787
|
-
addIssueTypeFieldValuesAttachment:
|
|
1788
|
-
addIssueTypeFieldValuesAttachments:
|
|
1789
|
-
setIssueTypeFieldValuesAttachment:
|
|
1790
|
-
setIssueTypeFieldValuesAttachments:
|
|
1791
|
-
updateIssueTypeFieldValuesAttachment:
|
|
1788
|
+
addIssueTypeFieldValuesAttachment: MA,
|
|
1789
|
+
addIssueTypeFieldValuesAttachments: gt,
|
|
1790
|
+
setIssueTypeFieldValuesAttachment: CA,
|
|
1791
|
+
setIssueTypeFieldValuesAttachments: DA,
|
|
1792
|
+
updateIssueTypeFieldValuesAttachment: xA,
|
|
1792
1793
|
updateIssueTypeFieldValuesAttachments: zu,
|
|
1793
|
-
deleteIssueTypeFieldValuesAttachment:
|
|
1794
|
-
deleteIssueTypeFieldValuesAttachments:
|
|
1795
|
-
} =
|
|
1796
|
-
[
|
|
1794
|
+
deleteIssueTypeFieldValuesAttachment: zA,
|
|
1795
|
+
deleteIssueTypeFieldValuesAttachments: St
|
|
1796
|
+
} = ca.actions, ra = (t) => t.issueTypeFieldValuesAttachmentReducer.instances, Uu = p(
|
|
1797
|
+
[ra],
|
|
1797
1798
|
(t) => Object.values(t)
|
|
1798
|
-
),
|
|
1799
|
+
), UA = (t) => (e) => e.issueTypeFieldValuesAttachmentReducer.instances[t], $u = y(
|
|
1799
1800
|
p(
|
|
1800
1801
|
[
|
|
1801
|
-
|
|
1802
|
+
ra,
|
|
1802
1803
|
(t, e) => e
|
|
1803
1804
|
],
|
|
1804
1805
|
(t, e) => {
|
|
@@ -1813,11 +1814,11 @@ const qe = _(
|
|
|
1813
1814
|
[Uu, (t, e) => e],
|
|
1814
1815
|
(t, e) => b(t.filter((s) => s.field_values === e))
|
|
1815
1816
|
)
|
|
1816
|
-
), Gu =
|
|
1817
|
+
), Gu = ca.reducer, Pe = _((t) => t.uuid), gi = Pe.getInitialState({}), oa = S({
|
|
1817
1818
|
name: "issueTypes",
|
|
1818
|
-
initialState:
|
|
1819
|
+
initialState: gi,
|
|
1819
1820
|
extraReducers: (t) => t.addCase("RESET", (e) => {
|
|
1820
|
-
Object.assign(e,
|
|
1821
|
+
Object.assign(e, gi);
|
|
1821
1822
|
}),
|
|
1822
1823
|
reducers: {
|
|
1823
1824
|
initializeIssueTypes: Pe.initialize,
|
|
@@ -1826,34 +1827,34 @@ const qe = _(
|
|
|
1826
1827
|
updateIssueType: Pe.updateOne,
|
|
1827
1828
|
removeIssueType: Pe.deleteOne
|
|
1828
1829
|
}
|
|
1829
|
-
}), { initializeIssueTypes: Lu, setIssueType: Qe, addIssueType: Bu, updateIssueType: Nu, removeIssueType:
|
|
1830
|
+
}), { initializeIssueTypes: Lu, setIssueType: Qe, addIssueType: Bu, updateIssueType: Nu, removeIssueType: Si } = oa.actions, Hu = (t) => t.issueTypeReducer.instances, Wu = p(
|
|
1830
1831
|
Hu,
|
|
1831
1832
|
(t) => Object.values(t)
|
|
1832
|
-
),
|
|
1833
|
+
), Ti = (t) => (e) => e.issueTypeReducer.instances[t], $A = (t) => (e) => {
|
|
1833
1834
|
const s = [];
|
|
1834
1835
|
for (const i of t) {
|
|
1835
1836
|
const n = e.issueTypeReducer.instances[i];
|
|
1836
1837
|
n ? s.push(n) : console.warn("selectIssueTypesByIds: No issue type exists with the id", i);
|
|
1837
1838
|
}
|
|
1838
1839
|
return s;
|
|
1839
|
-
},
|
|
1840
|
+
}, VA = y(
|
|
1840
1841
|
p(
|
|
1841
1842
|
[Wu, (t, e) => e],
|
|
1842
1843
|
(t, e) => b(t.filter((s) => s.organization === e))
|
|
1843
1844
|
)
|
|
1844
|
-
),
|
|
1845
|
+
), da = y(
|
|
1845
1846
|
p(
|
|
1846
1847
|
[(t) => t.issueReducer.instances, (t, e) => e],
|
|
1847
1848
|
(t, e) => b(
|
|
1848
1849
|
Object.values(t).filter((s) => s.issue_type === e)
|
|
1849
1850
|
)
|
|
1850
1851
|
)
|
|
1851
|
-
),
|
|
1852
|
+
), GA = (t) => (e) => da(t)(e).length, Ku = oa.reducer, _e = _(
|
|
1852
1853
|
(t) => t.uuid
|
|
1853
|
-
),
|
|
1854
|
+
), Ri = _e.getInitialState({}), ua = S({
|
|
1854
1855
|
name: "issueUpdates",
|
|
1855
|
-
initialState:
|
|
1856
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1856
|
+
initialState: Ri,
|
|
1857
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ri)),
|
|
1857
1858
|
reducers: {
|
|
1858
1859
|
initializeIssueUpdates: _e.setMany,
|
|
1859
1860
|
setIssueUpdate: _e.setOne,
|
|
@@ -1864,39 +1865,39 @@ const qe = _(
|
|
|
1864
1865
|
}
|
|
1865
1866
|
}), {
|
|
1866
1867
|
initializeIssueUpdates: Yu,
|
|
1867
|
-
setIssueUpdate:
|
|
1868
|
+
setIssueUpdate: LA,
|
|
1868
1869
|
addIssueUpdate: Ju,
|
|
1869
1870
|
addIssueUpdates: Qu,
|
|
1870
1871
|
deleteIssueUpdate: Xu,
|
|
1871
1872
|
deleteIssueUpdates: Zu
|
|
1872
|
-
} =
|
|
1873
|
+
} = ua.actions, el = (t) => t.issueUpdateReducer.instances, tl = y(
|
|
1873
1874
|
p(
|
|
1874
1875
|
[el, (t, e) => e],
|
|
1875
1876
|
(t, e) => b(Object.values(t).filter((s) => s.issue === e))
|
|
1876
1877
|
)
|
|
1877
|
-
), sl =
|
|
1878
|
+
), sl = ua.reducer, tt = _((t) => t.uuid), _i = tt.getInitialState({}), la = S({
|
|
1878
1879
|
name: "license",
|
|
1879
|
-
initialState:
|
|
1880
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1880
|
+
initialState: _i,
|
|
1881
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, _i)),
|
|
1881
1882
|
reducers: {
|
|
1882
1883
|
initializeLicences: tt.initialize,
|
|
1883
1884
|
addLicenses: tt.addMany,
|
|
1884
1885
|
updateLicense: tt.updateOne
|
|
1885
1886
|
}
|
|
1886
|
-
}), { initializeLicences: il, addLicenses:
|
|
1887
|
-
[
|
|
1887
|
+
}), { initializeLicences: il, addLicenses: BA, updateLicense: fe } = la.actions, wt = (t) => t.licenseReducer.instances, NA = (t) => (e) => e.licenseReducer.instances[t], nl = (t) => (e) => Object.values(e.licenseReducer.instances).find((s) => s.project === t), HA = p(
|
|
1888
|
+
[wt],
|
|
1888
1889
|
(t) => b(Object.values(t).filter((e) => e.is_active))
|
|
1889
|
-
),
|
|
1890
|
-
[
|
|
1890
|
+
), WA = p(
|
|
1891
|
+
[wt],
|
|
1891
1892
|
(t) => Ue(
|
|
1892
1893
|
Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
|
|
1893
1894
|
)
|
|
1894
|
-
), al =
|
|
1895
|
+
), al = la.reducer, q = _((t) => t.id), Oi = q.getInitialState({
|
|
1895
1896
|
currentUser: null
|
|
1896
|
-
}),
|
|
1897
|
+
}), ha = S({
|
|
1897
1898
|
name: "users",
|
|
1898
|
-
initialState:
|
|
1899
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1899
|
+
initialState: Oi,
|
|
1900
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Oi)),
|
|
1900
1901
|
reducers: {
|
|
1901
1902
|
initializeUsers: q.initialize,
|
|
1902
1903
|
setUsers: q.setMany,
|
|
@@ -1923,19 +1924,19 @@ const qe = _(
|
|
|
1923
1924
|
}
|
|
1924
1925
|
}), {
|
|
1925
1926
|
initializeUsers: cl,
|
|
1926
|
-
setUsers:
|
|
1927
|
-
setUser:
|
|
1928
|
-
addUsers:
|
|
1929
|
-
addUser:
|
|
1930
|
-
updateUsers:
|
|
1931
|
-
updateUser:
|
|
1932
|
-
deleteUser:
|
|
1933
|
-
deleteUsers:
|
|
1927
|
+
setUsers: KA,
|
|
1928
|
+
setUser: YA,
|
|
1929
|
+
addUsers: JA,
|
|
1930
|
+
addUser: QA,
|
|
1931
|
+
updateUsers: XA,
|
|
1932
|
+
updateUser: ZA,
|
|
1933
|
+
deleteUser: ey,
|
|
1934
|
+
deleteUsers: ty,
|
|
1934
1935
|
removeUser: rl,
|
|
1935
|
-
setCurrentUser:
|
|
1936
|
-
setProfilePicture:
|
|
1937
|
-
} =
|
|
1938
|
-
p([
|
|
1936
|
+
setCurrentUser: sy,
|
|
1937
|
+
setProfilePicture: iy
|
|
1938
|
+
} = ha.actions, ol = ha.reducer, Et = (t) => t.userReducer.currentUser, kt = (t) => t.userReducer.instances, ny = (t) => (e) => e.userReducer.instances[t], ay = y(
|
|
1939
|
+
p([kt, (t, e) => e], (t, e) => {
|
|
1939
1940
|
const s = [];
|
|
1940
1941
|
for (const i of e) {
|
|
1941
1942
|
const n = t[i];
|
|
@@ -1945,53 +1946,53 @@ const qe = _(
|
|
|
1945
1946
|
})
|
|
1946
1947
|
), st = _(
|
|
1947
1948
|
(t) => t.uuid
|
|
1948
|
-
),
|
|
1949
|
+
), Ii = st.getInitialState({}), ma = S({
|
|
1949
1950
|
name: "organizationAccess",
|
|
1950
|
-
initialState:
|
|
1951
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1951
|
+
initialState: Ii,
|
|
1952
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ii)),
|
|
1952
1953
|
reducers: {
|
|
1953
1954
|
initializeOrganizationAccesses: st.initialize,
|
|
1954
1955
|
updateOrganizationAccess: st.updateOne,
|
|
1955
1956
|
deleteOrganizationAccess: st.deleteOne
|
|
1956
1957
|
}
|
|
1957
|
-
}), { initializeOrganizationAccesses: dl, updateOrganizationAccess: ul, deleteOrganizationAccess: ll } =
|
|
1958
|
-
[
|
|
1958
|
+
}), { initializeOrganizationAccesses: dl, updateOrganizationAccess: ul, deleteOrganizationAccess: ll } = ma.actions, pa = (t) => t.organizationAccessReducer.instances, cy = (t) => (e) => e.organizationAccessReducer.instances[t], ry = p(
|
|
1959
|
+
[Et, pa],
|
|
1959
1960
|
(t, e) => Object.values(e).find(
|
|
1960
1961
|
(i) => i.user === (t == null ? void 0 : t.id)
|
|
1961
1962
|
) ?? null
|
|
1962
|
-
),
|
|
1963
|
+
), oy = (t) => (e) => Object.values(e.organizationAccessReducer.instances).find(
|
|
1963
1964
|
(s) => s.user === t.id
|
|
1964
1965
|
), hl = (t) => {
|
|
1965
1966
|
const e = {};
|
|
1966
1967
|
for (const s of Object.values(t.organizationAccessReducer.instances))
|
|
1967
1968
|
e[s.user] = s;
|
|
1968
1969
|
return Ue(e);
|
|
1969
|
-
}, ml =
|
|
1970
|
+
}, ml = ma.reducer, Me = _(
|
|
1970
1971
|
(t) => t.uuid
|
|
1971
|
-
),
|
|
1972
|
+
), Pi = Me.getInitialState({}), fa = S({
|
|
1972
1973
|
name: "projectAccess",
|
|
1973
|
-
initialState:
|
|
1974
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1974
|
+
initialState: Pi,
|
|
1975
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Pi)),
|
|
1975
1976
|
reducers: {
|
|
1976
1977
|
initializeProjectAccesses: Me.initialize,
|
|
1977
1978
|
updateProjectAccess: Me.updateOne,
|
|
1978
1979
|
deleteProjectAccess: Me.deleteOne,
|
|
1979
1980
|
deleteProjectAccesses: Me.deleteMany
|
|
1980
1981
|
}
|
|
1981
|
-
}), { initializeProjectAccesses:
|
|
1982
|
-
|
|
1982
|
+
}), { initializeProjectAccesses: Aa, updateProjectAccess: pl, deleteProjectAccess: fl, deleteProjectAccesses: Al } = fa.actions, ya = (t) => t.projectAccessReducer.instances, yl = p(
|
|
1983
|
+
ya,
|
|
1983
1984
|
(t) => Object.values(t)
|
|
1984
|
-
),
|
|
1985
|
+
), dy = (t) => (e) => e.projectAccessReducer.instances[t], uy = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
|
|
1985
1986
|
(s) => s.user === t.id
|
|
1986
1987
|
), bl = (t) => {
|
|
1987
1988
|
const e = {};
|
|
1988
1989
|
for (const s of Object.values(t.projectAccessReducer.instances))
|
|
1989
1990
|
e[s.user] = s;
|
|
1990
1991
|
return Ue(e);
|
|
1991
|
-
}, gl =
|
|
1992
|
+
}, gl = fa.reducer, ue = _((t) => t.uuid), Fi = ue.getInitialState({}), ba = S({
|
|
1992
1993
|
name: "projects",
|
|
1993
|
-
initialState:
|
|
1994
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
1994
|
+
initialState: Fi,
|
|
1995
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Fi)),
|
|
1995
1996
|
reducers: {
|
|
1996
1997
|
initializeProjects: ue.initialize,
|
|
1997
1998
|
setProjects: ue.setMany,
|
|
@@ -2010,24 +2011,24 @@ const qe = _(
|
|
|
2010
2011
|
}
|
|
2011
2012
|
}
|
|
2012
2013
|
}), {
|
|
2013
|
-
initializeProjects:
|
|
2014
|
+
initializeProjects: ly,
|
|
2014
2015
|
setProjects: Sl,
|
|
2015
|
-
setProject:
|
|
2016
|
-
addProjects:
|
|
2017
|
-
addProject:
|
|
2018
|
-
updateProjects:
|
|
2016
|
+
setProject: hy,
|
|
2017
|
+
addProjects: my,
|
|
2018
|
+
addProject: py,
|
|
2019
|
+
updateProjects: fy,
|
|
2019
2020
|
updateProject: Tl,
|
|
2020
2021
|
deleteProject: Rl,
|
|
2021
|
-
deleteProjects:
|
|
2022
|
+
deleteProjects: Ay,
|
|
2022
2023
|
acceptProjectInvite: _l
|
|
2023
|
-
} =
|
|
2024
|
-
[
|
|
2024
|
+
} = ba.actions, Ol = ba.reducer, qt = (t) => t.projectReducer.instances, yy = p([qt], (t) => b(Object.values(t))), by = (t) => (e) => e.projectReducer.instances[t], Il = p(
|
|
2025
|
+
[ya],
|
|
2025
2026
|
(t) => Object.values(t).map((e) => e.user)
|
|
2026
2027
|
), Pl = p(
|
|
2027
|
-
[Il,
|
|
2028
|
+
[Il, kt],
|
|
2028
2029
|
(t, e) => t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
2029
|
-
),
|
|
2030
|
-
[
|
|
2030
|
+
), gy = p(
|
|
2031
|
+
[Et, Pl, bl],
|
|
2031
2032
|
(t, e, s) => b(
|
|
2032
2033
|
Object.values(e).sort((i, n) => {
|
|
2033
2034
|
if (i.id === (t == null ? void 0 : t.id))
|
|
@@ -2035,13 +2036,13 @@ const qe = _(
|
|
|
2035
2036
|
if (n.id === (t == null ? void 0 : t.id))
|
|
2036
2037
|
return 1;
|
|
2037
2038
|
const a = s[i.id], c = s[n.id];
|
|
2038
|
-
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) ===
|
|
2039
|
+
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === $i.ADMIN ? -1 : 1;
|
|
2039
2040
|
})
|
|
2040
2041
|
)
|
|
2041
|
-
), le = _((t) => t.uuid),
|
|
2042
|
+
), le = _((t) => t.uuid), vi = le.getInitialState({}), ga = S({
|
|
2042
2043
|
name: "organizations",
|
|
2043
|
-
initialState:
|
|
2044
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
2044
|
+
initialState: vi,
|
|
2045
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vi)),
|
|
2045
2046
|
reducers: {
|
|
2046
2047
|
initializeOrganizations: le.initialize,
|
|
2047
2048
|
setOrganizations: le.setMany,
|
|
@@ -2054,44 +2055,44 @@ const qe = _(
|
|
|
2054
2055
|
deleteOrganizations: le.deleteMany
|
|
2055
2056
|
}
|
|
2056
2057
|
}), {
|
|
2057
|
-
initializeOrganizations:
|
|
2058
|
+
initializeOrganizations: Sy,
|
|
2058
2059
|
setOrganizations: Fl,
|
|
2059
|
-
setOrganization:
|
|
2060
|
-
addOrganizations:
|
|
2061
|
-
addOrganization:
|
|
2062
|
-
updateOrganizations:
|
|
2063
|
-
updateOrganization:
|
|
2064
|
-
deleteOrganization:
|
|
2065
|
-
deleteOrganizations:
|
|
2066
|
-
} =
|
|
2060
|
+
setOrganization: Ty,
|
|
2061
|
+
addOrganizations: Ry,
|
|
2062
|
+
addOrganization: _y,
|
|
2063
|
+
updateOrganizations: Oy,
|
|
2064
|
+
updateOrganization: Iy,
|
|
2065
|
+
deleteOrganization: Py,
|
|
2066
|
+
deleteOrganizations: Fy
|
|
2067
|
+
} = ga.actions, vl = (t) => t.organizationReducer.instances, wl = p([vl], (t) => Object.values(t)), vy = (t) => (e) => e.organizationReducer.instances[t], wy = p(
|
|
2067
2068
|
[wl],
|
|
2068
2069
|
(t) => b(
|
|
2069
2070
|
Object.values(t).filter((e) => e.has_access)
|
|
2070
2071
|
)
|
|
2071
2072
|
), El = p(
|
|
2072
|
-
[
|
|
2073
|
+
[pa],
|
|
2073
2074
|
(t) => Object.values(t).map((e) => e.user)
|
|
2074
|
-
),
|
|
2075
|
+
), Ey = y(
|
|
2075
2076
|
p(
|
|
2076
|
-
[
|
|
2077
|
+
[qt, (t, e) => e],
|
|
2077
2078
|
(t, e) => b(
|
|
2078
2079
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
2079
2080
|
)
|
|
2080
2081
|
)
|
|
2081
|
-
),
|
|
2082
|
+
), ky = y(
|
|
2082
2083
|
p(
|
|
2083
|
-
[
|
|
2084
|
+
[wt, (t, e) => e],
|
|
2084
2085
|
(t, e) => b(
|
|
2085
2086
|
Object.values(t).filter((s) => s.organization_owner === e)
|
|
2086
2087
|
)
|
|
2087
2088
|
)
|
|
2088
2089
|
), kl = p(
|
|
2089
|
-
[El,
|
|
2090
|
+
[El, kt],
|
|
2090
2091
|
(t, e) => Ue(
|
|
2091
2092
|
t.reduce((s, i) => ({ ...s, [i]: e[i] }), {})
|
|
2092
2093
|
)
|
|
2093
|
-
),
|
|
2094
|
-
[
|
|
2094
|
+
), qy = p(
|
|
2095
|
+
[Et, kl, hl],
|
|
2095
2096
|
(t, e, s) => b(
|
|
2096
2097
|
Object.values(e).sort((i, n) => {
|
|
2097
2098
|
if (i.id === (t == null ? void 0 : t.id))
|
|
@@ -2099,10 +2100,10 @@ const qe = _(
|
|
|
2099
2100
|
if (n.id === (t == null ? void 0 : t.id))
|
|
2100
2101
|
return 1;
|
|
2101
2102
|
const a = s[i.id], c = s[n.id];
|
|
2102
|
-
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) ===
|
|
2103
|
+
return (a == null ? void 0 : a.access_level) === (c == null ? void 0 : c.access_level) ? i.username.localeCompare(n.username) : (a == null ? void 0 : a.access_level) === Vi.ADMIN ? -1 : 1;
|
|
2103
2104
|
})
|
|
2104
2105
|
)
|
|
2105
|
-
), ql =
|
|
2106
|
+
), ql = ga.reducer, jl = (t, e, s) => {
|
|
2106
2107
|
const i = t.uuid ? t : { ...t, uuid: Oe() };
|
|
2107
2108
|
return {
|
|
2108
2109
|
payload: i,
|
|
@@ -2118,13 +2119,13 @@ const qe = _(
|
|
|
2118
2119
|
}
|
|
2119
2120
|
}
|
|
2120
2121
|
};
|
|
2121
|
-
},
|
|
2122
|
+
}, wi = {
|
|
2122
2123
|
deletedRequests: [],
|
|
2123
2124
|
latestRetryTime: 0
|
|
2124
|
-
},
|
|
2125
|
+
}, Sa = S({
|
|
2125
2126
|
name: "outbox",
|
|
2126
|
-
initialState:
|
|
2127
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
2127
|
+
initialState: wi,
|
|
2128
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, wi)),
|
|
2128
2129
|
reducers: {
|
|
2129
2130
|
// enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
|
|
2130
2131
|
// Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
|
|
@@ -2148,12 +2149,12 @@ const qe = _(
|
|
|
2148
2149
|
t.latestRetryTime = e.payload;
|
|
2149
2150
|
}
|
|
2150
2151
|
}
|
|
2151
|
-
}),
|
|
2152
|
+
}), jy = (t) => t.outboxReducer.deletedRequests, My = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Ml, markForDeletion: Cy, markAsDeleted: Cl, _setLatestRetryTime: Dl } = Sa.actions, xl = Sa.reducer, he = _(
|
|
2152
2153
|
(t) => t.uuid
|
|
2153
|
-
),
|
|
2154
|
+
), Ei = he.getInitialState({}), Ta = S({
|
|
2154
2155
|
name: "projectAttachments",
|
|
2155
|
-
initialState:
|
|
2156
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
2156
|
+
initialState: Ei,
|
|
2157
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ei)),
|
|
2157
2158
|
reducers: {
|
|
2158
2159
|
initializeProjectAttachments: he.initialize,
|
|
2159
2160
|
addProjectAttachment: he.addOne,
|
|
@@ -2167,15 +2168,15 @@ const qe = _(
|
|
|
2167
2168
|
}
|
|
2168
2169
|
}), {
|
|
2169
2170
|
initializeProjectAttachments: zl,
|
|
2170
|
-
addProjectAttachment:
|
|
2171
|
+
addProjectAttachment: Dy,
|
|
2171
2172
|
addProjectAttachments: Ul,
|
|
2172
2173
|
setProjectAttachment: $l,
|
|
2173
2174
|
setProjectAttachments: Vl,
|
|
2174
|
-
updateProjectAttachment:
|
|
2175
|
+
updateProjectAttachment: xy,
|
|
2175
2176
|
updateProjectAttachments: Gl,
|
|
2176
2177
|
deleteProjectAttachment: Ll,
|
|
2177
|
-
deleteProjectAttachments:
|
|
2178
|
-
} =
|
|
2178
|
+
deleteProjectAttachments: Ra
|
|
2179
|
+
} = Ta.actions, Bl = (t) => t.projectAttachmentReducer.instances, Nl = p(
|
|
2179
2180
|
[Bl],
|
|
2180
2181
|
(t) => Object.values(t)
|
|
2181
2182
|
), Hl = (t) => (e) => e.projectAttachmentReducer.instances[t], Wl = y(
|
|
@@ -2183,15 +2184,15 @@ const qe = _(
|
|
|
2183
2184
|
[Nl, (t, e) => e],
|
|
2184
2185
|
(t, e) => b(t.filter(({ project: s }) => e === s))
|
|
2185
2186
|
)
|
|
2186
|
-
), Kl =
|
|
2187
|
+
), Kl = Ta.reducer, me = _(
|
|
2187
2188
|
(t) => t.uuid
|
|
2188
|
-
),
|
|
2189
|
+
), ki = me.getInitialState({
|
|
2189
2190
|
activeProjectFileId: null,
|
|
2190
2191
|
isImportingProjectFile: !1
|
|
2191
|
-
}),
|
|
2192
|
+
}), _a = S({
|
|
2192
2193
|
name: "projectFiles",
|
|
2193
|
-
initialState:
|
|
2194
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
2194
|
+
initialState: ki,
|
|
2195
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ki)),
|
|
2195
2196
|
reducers: {
|
|
2196
2197
|
initializeProjectFiles: me.initialize,
|
|
2197
2198
|
setProjectFile: me.setOne,
|
|
@@ -2227,22 +2228,22 @@ const qe = _(
|
|
|
2227
2228
|
}
|
|
2228
2229
|
}), {
|
|
2229
2230
|
initializeProjectFiles: Yl,
|
|
2230
|
-
setProjectFile:
|
|
2231
|
-
setProjectFiles:
|
|
2232
|
-
addProjectFile:
|
|
2231
|
+
setProjectFile: zy,
|
|
2232
|
+
setProjectFiles: Uy,
|
|
2233
|
+
addProjectFile: $y,
|
|
2233
2234
|
addProjectFiles: Jl,
|
|
2234
|
-
updateProjectFile:
|
|
2235
|
-
updateProjectFiles:
|
|
2235
|
+
updateProjectFile: qi,
|
|
2236
|
+
updateProjectFiles: Vy,
|
|
2236
2237
|
deleteProjectFile: Ql,
|
|
2237
2238
|
deleteProjectFiles: Xl,
|
|
2238
2239
|
// TODO: move following to /web
|
|
2239
2240
|
setIsImportingProjectFile: Zl,
|
|
2240
2241
|
setActiveProjectFileId: eh,
|
|
2241
2242
|
saveActiveProjectFileBounds: th,
|
|
2242
|
-
resetProjectFileObjectUrls:
|
|
2243
|
-
} =
|
|
2243
|
+
resetProjectFileObjectUrls: Gy
|
|
2244
|
+
} = _a.actions, sh = (t) => t.projectFileReducer.instances, ih = p([sh], (t) => b(Object.values(t).sort((e, s) => e.z_index - s.z_index))), Ly = (t) => (e) => e.projectFileReducer.instances[t], By = (t) => t.projectFileReducer.activeProjectFileId, Ny = (t) => t.projectFileReducer.isImportingProjectFile, nh = _a.reducer, ah = {
|
|
2244
2245
|
isRehydrated: !1
|
|
2245
|
-
},
|
|
2246
|
+
}, Oa = S({
|
|
2246
2247
|
name: "rehydrated",
|
|
2247
2248
|
initialState: ah,
|
|
2248
2249
|
// The `reducers` field lets us define reducers and generate associated actions
|
|
@@ -2251,10 +2252,10 @@ const qe = _(
|
|
|
2251
2252
|
t.isRehydrated = e.payload;
|
|
2252
2253
|
}
|
|
2253
2254
|
}
|
|
2254
|
-
}), { setRehydrated:
|
|
2255
|
+
}), { setRehydrated: Hy } = Oa.actions, Wy = (t) => t.rehydratedReducer.isRehydrated, ch = Oa.reducer, Fe = _((t) => t.uuid), ji = Fe.getInitialState({}), Ia = S({
|
|
2255
2256
|
name: "teams",
|
|
2256
|
-
initialState:
|
|
2257
|
-
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e,
|
|
2257
|
+
initialState: ji,
|
|
2258
|
+
extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ji)),
|
|
2258
2259
|
reducers: {
|
|
2259
2260
|
setTeam: Fe.setOne,
|
|
2260
2261
|
initializeTeams: Fe.initialize,
|
|
@@ -2262,9 +2263,9 @@ const qe = _(
|
|
|
2262
2263
|
updateTeam: Fe.updateOne,
|
|
2263
2264
|
deleteTeam: Fe.deleteOne
|
|
2264
2265
|
}
|
|
2265
|
-
}), { setTeam: Ee, initializeTeams: rh, addTeam: oh, updateTeam:
|
|
2266
|
+
}), { setTeam: Ee, initializeTeams: rh, addTeam: oh, updateTeam: Mi, deleteTeam: Ci } = Ia.actions, Pa = (t) => t.teamReducer.instances, Fa = p([Pa], (t) => Object.values(t)), ke = (t) => (e) => e.teamReducer.instances[t], Ky = y(
|
|
2266
2267
|
p(
|
|
2267
|
-
[
|
|
2268
|
+
[Pa, (t, e) => e],
|
|
2268
2269
|
(t, e) => {
|
|
2269
2270
|
const s = [];
|
|
2270
2271
|
for (const i of e) {
|
|
@@ -2274,55 +2275,26 @@ const qe = _(
|
|
|
2274
2275
|
return b(s);
|
|
2275
2276
|
}
|
|
2276
2277
|
)
|
|
2277
|
-
),
|
|
2278
|
+
), Yy = y(
|
|
2278
2279
|
p(
|
|
2279
|
-
[
|
|
2280
|
+
[Fa, (t, e) => e],
|
|
2280
2281
|
(t, e) => b(t.filter((s) => s.organization === e))
|
|
2281
2282
|
)
|
|
2282
|
-
),
|
|
2283
|
-
p([
|
|
2284
|
-
), dh =
|
|
2283
|
+
), Jy = y(
|
|
2284
|
+
p([Fa, (t, e) => e], (t, e) => b(t.filter((s) => s.members.includes(e))))
|
|
2285
|
+
), dh = Ia.reducer, uh = {
|
|
2285
2286
|
version: 0
|
|
2286
2287
|
}, lh = S({
|
|
2287
2288
|
name: "versioning",
|
|
2288
2289
|
initialState: uh,
|
|
2289
2290
|
reducers: {}
|
|
2290
|
-
}), hh = lh.reducer
|
|
2291
|
-
|
|
2292
|
-
function mh(t) {
|
|
2293
|
-
Fa = t;
|
|
2294
|
-
}
|
|
2295
|
-
function $e() {
|
|
2296
|
-
return Fa;
|
|
2297
|
-
}
|
|
2298
|
-
let va;
|
|
2299
|
-
function ph(t) {
|
|
2300
|
-
va = t;
|
|
2301
|
-
}
|
|
2302
|
-
function fh() {
|
|
2303
|
-
return va;
|
|
2304
|
-
}
|
|
2305
|
-
const wa = {};
|
|
2306
|
-
class Ea {
|
|
2307
|
-
constructor(e) {
|
|
2308
|
-
A(this, "client");
|
|
2309
|
-
wa[this.constructor.name] = this, this.client = e;
|
|
2310
|
-
}
|
|
2311
|
-
async enqueueRequest(e) {
|
|
2312
|
-
return this.client.enqueueRequest(e, this.host, this.constructor.name);
|
|
2313
|
-
}
|
|
2314
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2315
|
-
dispatch(e) {
|
|
2316
|
-
this.client.store.dispatch(e);
|
|
2317
|
-
}
|
|
2318
|
-
}
|
|
2319
|
-
const ka = "versioning", qa = () => Ma.length - 1, ja = (t) => (t[ka] = { version: qa() }, t), Ci = () => ja({}), Ah = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), yh = (t) => (e) => {
|
|
2320
|
-
var s;
|
|
2321
|
-
return e === void 0 && (e = {}), ((s = e[ka]) == null ? void 0 : s.version) === qa() ? e : t(e);
|
|
2322
|
-
}, Ma = [ja, Ci, Ci, Ah], bh = Object.fromEntries(Ma.map((t, e) => [e, yh(t)])), Ca = "versioning", gh = {
|
|
2323
|
-
[Ca]: hh,
|
|
2291
|
+
}), hh = lh.reducer, va = {
|
|
2292
|
+
outboxReducer: xl,
|
|
2324
2293
|
fileReducer: Yo,
|
|
2325
|
-
authReducer: bo
|
|
2294
|
+
authReducer: bo
|
|
2295
|
+
}, Qy = Ui(va), mh = {
|
|
2296
|
+
...va,
|
|
2297
|
+
[it]: hh,
|
|
2326
2298
|
categoryReducer: Ro,
|
|
2327
2299
|
assetReducer: Rr,
|
|
2328
2300
|
assetAttachmentReducer: wc,
|
|
@@ -2335,7 +2307,6 @@ const ka = "versioning", qa = () => Ma.length - 1, ja = (t) => (t[ka] = { versio
|
|
|
2335
2307
|
issueTypeReducer: Ku,
|
|
2336
2308
|
issueTypeAttachmentReducer: Su,
|
|
2337
2309
|
organizationReducer: ql,
|
|
2338
|
-
outboxReducer: xl,
|
|
2339
2310
|
projectReducer: Ol,
|
|
2340
2311
|
projectAttachmentReducer: Kl,
|
|
2341
2312
|
projectAccessReducer: gl,
|
|
@@ -2374,60 +2345,92 @@ const ka = "versioning", qa = () => Ma.length - 1, ja = (t) => (t[ka] = { versio
|
|
|
2374
2345
|
assetProcedureFieldsAttachmentReducer: Hc,
|
|
2375
2346
|
assetProcedureFieldValuesAttachmentReducer: nr,
|
|
2376
2347
|
assetProcedureAttachmentReducer: Uc
|
|
2377
|
-
},
|
|
2378
|
-
let
|
|
2348
|
+
}, Xy = Ui(mh);
|
|
2349
|
+
let wa;
|
|
2350
|
+
function ph(t) {
|
|
2351
|
+
wa = t;
|
|
2352
|
+
}
|
|
2353
|
+
function $e() {
|
|
2354
|
+
return wa;
|
|
2355
|
+
}
|
|
2356
|
+
let Ea;
|
|
2357
|
+
function fh(t) {
|
|
2358
|
+
Ea = t;
|
|
2359
|
+
}
|
|
2360
|
+
function Ah() {
|
|
2361
|
+
return Ea;
|
|
2362
|
+
}
|
|
2363
|
+
const ka = {};
|
|
2364
|
+
class qa {
|
|
2365
|
+
constructor(e) {
|
|
2366
|
+
A(this, "client");
|
|
2367
|
+
ka[this.constructor.name] = this, this.client = e;
|
|
2368
|
+
}
|
|
2369
|
+
async enqueueRequest(e) {
|
|
2370
|
+
return this.client.enqueueRequest(e, this.host, this.constructor.name);
|
|
2371
|
+
}
|
|
2372
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2373
|
+
dispatch(e) {
|
|
2374
|
+
this.client.store.dispatch(e);
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
const ja = () => Ca.length - 1, Ma = (t) => (t[it] = { version: ja() }, t), Di = () => Ma({}), yh = (t) => (t.outboxReducer && (t.outboxReducer.deletedRequests = []), t), bh = (t) => (e) => {
|
|
2378
|
+
var s;
|
|
2379
|
+
return e === void 0 && (e = {}), ((s = e[it]) == null ? void 0 : s.version) === ja() ? e : t(e);
|
|
2380
|
+
}, Ca = [Ma, Di, Di, yh], gh = Object.fromEntries(Ca.map((t, e) => [e, bh(t)]));
|
|
2381
|
+
let ot = null;
|
|
2379
2382
|
function ve() {
|
|
2380
2383
|
const t = $e();
|
|
2381
2384
|
if (!t)
|
|
2382
2385
|
return console.warn("Client store not set; cannot get outbox coordinator yet."), null;
|
|
2383
|
-
if (
|
|
2384
|
-
return
|
|
2386
|
+
if (ot)
|
|
2387
|
+
return ot;
|
|
2385
2388
|
const e = t.getState().offline.outbox, s = Ce._fromOutbox(e);
|
|
2386
|
-
return
|
|
2389
|
+
return ot = s, s;
|
|
2387
2390
|
}
|
|
2388
|
-
const
|
|
2391
|
+
const Sh = (t) => {
|
|
2389
2392
|
if (t) throw t;
|
|
2390
2393
|
const e = $e();
|
|
2391
2394
|
e ? e.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }) : console.error("Client store not set");
|
|
2392
|
-
},
|
|
2395
|
+
}, Th = (t, e, s) => {
|
|
2393
2396
|
const i = ve();
|
|
2394
2397
|
return i ? (i.addRequest(e), i.getQueue()) : (console.warn("Outbox coordinator not set; cannot enqueue request yet."), []);
|
|
2395
|
-
},
|
|
2398
|
+
}, Rh = (t, e, s) => {
|
|
2396
2399
|
const i = ve();
|
|
2397
2400
|
if (!i)
|
|
2398
2401
|
return console.warn("Outbox coordinator not set; cannot dequeue request yet."), [];
|
|
2399
2402
|
const a = e.meta.offlineAction.payload.uuid;
|
|
2400
2403
|
return i.remove(a), i.getQueue();
|
|
2401
2404
|
};
|
|
2402
|
-
async function
|
|
2405
|
+
async function _h(t, e) {
|
|
2403
2406
|
if (!e.payload)
|
|
2404
2407
|
throw new Error("Received empty payload");
|
|
2405
|
-
return
|
|
2408
|
+
return kh(e);
|
|
2406
2409
|
}
|
|
2407
|
-
const
|
|
2408
|
-
...
|
|
2409
|
-
effect:
|
|
2410
|
+
const Oh = {
|
|
2411
|
+
...jt,
|
|
2412
|
+
effect: _h,
|
|
2410
2413
|
// Casting needed because we are saving FullOfflineAction objects, not just OfflineAction objects,
|
|
2411
2414
|
// but redux-offline does not know this.
|
|
2412
2415
|
discard: Ua,
|
|
2413
2416
|
returnPromises: !0,
|
|
2414
|
-
persistCallback:
|
|
2415
|
-
retry:
|
|
2417
|
+
persistCallback: Sh,
|
|
2418
|
+
retry: jh,
|
|
2416
2419
|
// Modify the configuration of the offline store to use localforage
|
|
2417
2420
|
// which uses IndexedDB by default (persists even on mobile when installed as a PWA, unlike localStorage)
|
|
2418
|
-
persistOptions: { storage:
|
|
2421
|
+
persistOptions: { storage: Ha },
|
|
2419
2422
|
// TODO: custom enqueue implementation to take care of intelligently cancelling "create/delete same issue",
|
|
2420
2423
|
// and custom dequeue for e.g. if user insists on removing a failed a "create issue", then remove the "edit
|
|
2421
2424
|
// that same issue"
|
|
2422
2425
|
queue: {
|
|
2423
|
-
...
|
|
2424
|
-
enqueue:
|
|
2425
|
-
dequeue:
|
|
2426
|
+
...jt.queue,
|
|
2427
|
+
enqueue: Th,
|
|
2428
|
+
dequeue: Rh,
|
|
2426
2429
|
// Bad typing, undefined is actually fine, and the action is a FullOfflineAction, not just an OfflineAction.
|
|
2427
|
-
peek: (...t) =>
|
|
2430
|
+
peek: (...t) => qh(...t)
|
|
2428
2431
|
}
|
|
2429
|
-
},
|
|
2430
|
-
function
|
|
2432
|
+
}, Ih = Wa(gh, it), Zy = La(Na(Oh), Ih);
|
|
2433
|
+
function Ph(t) {
|
|
2431
2434
|
function e(s) {
|
|
2432
2435
|
return typeof s == "object" && s !== null && ["ok", "redirect", "clientError", "serverError", "error"].every((n) => n in s);
|
|
2433
2436
|
}
|
|
@@ -2439,7 +2442,7 @@ function Fh(t) {
|
|
|
2439
2442
|
}
|
|
2440
2443
|
}
|
|
2441
2444
|
async function Da(t, e) {
|
|
2442
|
-
const s =
|
|
2445
|
+
const s = ka[t.meta.offline.effect.serviceName];
|
|
2443
2446
|
if (!s)
|
|
2444
2447
|
throw new Error(`Service ${t.meta.offline.effect.serviceName} not found`);
|
|
2445
2448
|
const i = s instanceof I;
|
|
@@ -2497,13 +2500,13 @@ async function Da(t, e) {
|
|
|
2497
2500
|
try {
|
|
2498
2501
|
return await ye.query(d);
|
|
2499
2502
|
} catch (v) {
|
|
2500
|
-
const M =
|
|
2503
|
+
const M = Ph(v), we = M == null ? void 0 : M.status;
|
|
2501
2504
|
if (i && we === 401)
|
|
2502
2505
|
return await s.auth.handleUnauthorized(ye, M), ye.query(d);
|
|
2503
2506
|
throw new j({ response: M, innerError: v, discard: za.includes(we) });
|
|
2504
2507
|
}
|
|
2505
2508
|
}
|
|
2506
|
-
class
|
|
2509
|
+
class Fh {
|
|
2507
2510
|
constructor(e) {
|
|
2508
2511
|
A(this, "_all");
|
|
2509
2512
|
A(this, "_previous");
|
|
@@ -2525,33 +2528,33 @@ class xa {
|
|
|
2525
2528
|
this.next = null;
|
|
2526
2529
|
}
|
|
2527
2530
|
then(e) {
|
|
2528
|
-
return new
|
|
2531
|
+
return new Fh(this).then(e);
|
|
2529
2532
|
}
|
|
2530
2533
|
async run(e) {
|
|
2531
2534
|
if (this.next)
|
|
2532
2535
|
return this.next.run(e);
|
|
2533
2536
|
{
|
|
2534
2537
|
if (console.debug("Middleware finished. Performing request:", e), !$e()) throw new Error("Client store not set");
|
|
2535
|
-
const i =
|
|
2538
|
+
const i = Ah();
|
|
2536
2539
|
if (!i) throw new Error("Client SDK not set");
|
|
2537
2540
|
return Da(e, i);
|
|
2538
2541
|
}
|
|
2539
2542
|
}
|
|
2540
2543
|
}
|
|
2541
|
-
class
|
|
2544
|
+
class vh extends xa {
|
|
2542
2545
|
async run(e) {
|
|
2543
2546
|
return super.run(e);
|
|
2544
2547
|
}
|
|
2545
2548
|
}
|
|
2546
|
-
class
|
|
2549
|
+
class wh extends xa {
|
|
2547
2550
|
async run(e) {
|
|
2548
2551
|
return super.run(e);
|
|
2549
2552
|
}
|
|
2550
2553
|
}
|
|
2551
|
-
const
|
|
2552
|
-
function
|
|
2554
|
+
const Eh = new vh().then(new wh()).compile();
|
|
2555
|
+
function kh(t) {
|
|
2553
2556
|
var e;
|
|
2554
|
-
return (e =
|
|
2557
|
+
return (e = Eh[0]) == null ? void 0 : e.run(t);
|
|
2555
2558
|
}
|
|
2556
2559
|
const za = [400, 409, 403, 404, 405, 500];
|
|
2557
2560
|
function Ua(t, e, s = 0) {
|
|
@@ -2603,15 +2606,15 @@ Action:`, e);
|
|
|
2603
2606
|
throw new Error("Outbox coordinator not set");
|
|
2604
2607
|
return l.registerRetry(e.payload.uuid), !1;
|
|
2605
2608
|
}
|
|
2606
|
-
function
|
|
2609
|
+
function qh(t, e, s) {
|
|
2607
2610
|
var i;
|
|
2608
2611
|
return (i = ve()) == null ? void 0 : i.peek();
|
|
2609
2612
|
}
|
|
2610
|
-
function
|
|
2611
|
-
return $e().dispatch(Dl((/* @__PURE__ */ new Date()).getTime())),
|
|
2613
|
+
function jh(t, e) {
|
|
2614
|
+
return $e().dispatch(Dl((/* @__PURE__ */ new Date()).getTime())), nc;
|
|
2612
2615
|
}
|
|
2613
|
-
const ze = "An unknown error occurred",
|
|
2614
|
-
function
|
|
2616
|
+
const ze = "An unknown error occurred", Mh = 500, xi = ["non_field_errors", "detail"];
|
|
2617
|
+
function Ch(t, e) {
|
|
2615
2618
|
let s;
|
|
2616
2619
|
if (t != null && t.body)
|
|
2617
2620
|
if (typeof t.body == "object") {
|
|
@@ -2631,7 +2634,7 @@ function Dh(t, e) {
|
|
|
2631
2634
|
}
|
|
2632
2635
|
} else typeof t.body == "string" && (s = t.body);
|
|
2633
2636
|
else t != null && t.text ? s = t.text : e instanceof Error && (s = e.message);
|
|
2634
|
-
return !s || s.length >
|
|
2637
|
+
return !s || s.length > Mh ? ze : s;
|
|
2635
2638
|
}
|
|
2636
2639
|
class j extends Error {
|
|
2637
2640
|
constructor(s) {
|
|
@@ -2642,15 +2645,15 @@ class j extends Error {
|
|
|
2642
2645
|
A(this, "message");
|
|
2643
2646
|
A(this, "options");
|
|
2644
2647
|
const { response: i, innerError: n } = s;
|
|
2645
|
-
this.message = s.message ??
|
|
2648
|
+
this.message = s.message ?? Ch(i, n) ?? ze, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, s.discard = s.discard ?? !1, this.options = s;
|
|
2646
2649
|
}
|
|
2647
2650
|
}
|
|
2648
|
-
class
|
|
2651
|
+
class Dh extends qa {
|
|
2649
2652
|
constructor(e) {
|
|
2650
2653
|
super(e);
|
|
2651
2654
|
}
|
|
2652
2655
|
}
|
|
2653
|
-
class I extends
|
|
2656
|
+
class I extends qa {
|
|
2654
2657
|
constructor(s, i) {
|
|
2655
2658
|
super(s);
|
|
2656
2659
|
A(this, "auth");
|
|
@@ -2847,10 +2850,10 @@ class tb extends Ae {
|
|
|
2847
2850
|
super(...arguments);
|
|
2848
2851
|
A(this, "name", "Asset Attachment");
|
|
2849
2852
|
A(this, "url", "/asset-attachments");
|
|
2850
|
-
A(this, "initializeAttachments",
|
|
2851
|
-
A(this, "addAttachments",
|
|
2853
|
+
A(this, "initializeAttachments", zt);
|
|
2854
|
+
A(this, "addAttachments", Ki);
|
|
2852
2855
|
A(this, "updateAttachments", _c);
|
|
2853
|
-
A(this, "removeAttachments",
|
|
2856
|
+
A(this, "removeAttachments", Yi);
|
|
2854
2857
|
A(this, "removeAttachment", Oc);
|
|
2855
2858
|
A(this, "setAttachment", Rc);
|
|
2856
2859
|
A(this, "selectAttachment", Fc);
|
|
@@ -2890,7 +2893,7 @@ class tb extends Ae {
|
|
|
2890
2893
|
blocks: [],
|
|
2891
2894
|
blockers: []
|
|
2892
2895
|
});
|
|
2893
|
-
this.dispatch(
|
|
2896
|
+
this.dispatch(zt(i));
|
|
2894
2897
|
}
|
|
2895
2898
|
}
|
|
2896
2899
|
class sb extends Ae {
|
|
@@ -3091,7 +3094,7 @@ class ab extends E {
|
|
|
3091
3094
|
files: Object.values(h)
|
|
3092
3095
|
});
|
|
3093
3096
|
}
|
|
3094
|
-
this.dispatch(
|
|
3097
|
+
this.dispatch(mt(c));
|
|
3095
3098
|
const l = o.map((d) => this.enqueueRequest({
|
|
3096
3099
|
description: "Add asset procedure field values attachments",
|
|
3097
3100
|
method: u.POST,
|
|
@@ -3106,7 +3109,7 @@ class ab extends E {
|
|
|
3106
3109
|
this.dispatch(er(h));
|
|
3107
3110
|
}).catch((d) => {
|
|
3108
3111
|
throw this.dispatch(
|
|
3109
|
-
|
|
3112
|
+
pt(
|
|
3110
3113
|
c.map((h) => h.uuid)
|
|
3111
3114
|
)
|
|
3112
3115
|
), d;
|
|
@@ -3117,7 +3120,7 @@ class ab extends E {
|
|
|
3117
3120
|
}
|
|
3118
3121
|
async bulkDelete(e) {
|
|
3119
3122
|
const { store: s } = this.client, i = s.getState(), n = sr(e)(i);
|
|
3120
|
-
this.dispatch(
|
|
3123
|
+
this.dispatch(pt(e));
|
|
3121
3124
|
try {
|
|
3122
3125
|
await this.enqueueRequest({
|
|
3123
3126
|
description: "Delete asset procedure field values attachments",
|
|
@@ -3128,7 +3131,7 @@ class ab extends E {
|
|
|
3128
3131
|
blocks: []
|
|
3129
3132
|
});
|
|
3130
3133
|
} catch (a) {
|
|
3131
|
-
throw this.dispatch(
|
|
3134
|
+
throw this.dispatch(mt(n)), a;
|
|
3132
3135
|
}
|
|
3133
3136
|
}
|
|
3134
3137
|
async refreshStore(e) {
|
|
@@ -3160,8 +3163,8 @@ class cb extends I {
|
|
|
3160
3163
|
blockers: [e.asset, e.fields_revision, e.asset_procedure_instance],
|
|
3161
3164
|
blocks: [n.uuid]
|
|
3162
3165
|
});
|
|
3163
|
-
return this.dispatch(
|
|
3164
|
-
this.dispatch(
|
|
3166
|
+
return this.dispatch(Bt(n)), a.then((o) => (this.dispatch(Le(o)), o)).catch(() => {
|
|
3167
|
+
this.dispatch(Nt(n.uuid));
|
|
3165
3168
|
}), [n, a];
|
|
3166
3169
|
}
|
|
3167
3170
|
bulkAdd(e, s) {
|
|
@@ -3213,7 +3216,7 @@ class cb extends I {
|
|
|
3213
3216
|
}), [n, o];
|
|
3214
3217
|
}
|
|
3215
3218
|
update(e) {
|
|
3216
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3219
|
+
const { store: s } = this.client, i = s.getState(), n = Ht(e.uuid)(i);
|
|
3217
3220
|
if (!n)
|
|
3218
3221
|
throw new Error(`Expected AssetProcedureFieldValues with uuid ${e.uuid} to exist`);
|
|
3219
3222
|
const a = {
|
|
@@ -3240,12 +3243,12 @@ class cb extends I {
|
|
|
3240
3243
|
}), [a, c];
|
|
3241
3244
|
}
|
|
3242
3245
|
async delete(e) {
|
|
3243
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3246
|
+
const { store: s } = this.client, i = s.getState(), n = Ht(e)(i);
|
|
3244
3247
|
if (!n)
|
|
3245
3248
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
3246
3249
|
const a = ir(e)(i);
|
|
3247
|
-
this.dispatch(
|
|
3248
|
-
|
|
3250
|
+
this.dispatch(Nt(e)), this.dispatch(
|
|
3251
|
+
pt(a.map((c) => c.uuid))
|
|
3249
3252
|
);
|
|
3250
3253
|
try {
|
|
3251
3254
|
await this.enqueueRequest({
|
|
@@ -3256,7 +3259,7 @@ class cb extends I {
|
|
|
3256
3259
|
blocks: []
|
|
3257
3260
|
});
|
|
3258
3261
|
} catch (c) {
|
|
3259
|
-
throw this.dispatch(
|
|
3262
|
+
throw this.dispatch(Bt(n)), this.dispatch(mt(a)), c;
|
|
3260
3263
|
}
|
|
3261
3264
|
}
|
|
3262
3265
|
async refreshStore(e) {
|
|
@@ -3281,7 +3284,7 @@ class rb extends I {
|
|
|
3281
3284
|
created_by: i,
|
|
3282
3285
|
submitted_at: n
|
|
3283
3286
|
});
|
|
3284
|
-
this.dispatch(
|
|
3287
|
+
this.dispatch(Kt(a));
|
|
3285
3288
|
const c = this.enqueueRequest({
|
|
3286
3289
|
description: "Create asset procedure instance",
|
|
3287
3290
|
method: u.POST,
|
|
@@ -3293,11 +3296,11 @@ class rb extends I {
|
|
|
3293
3296
|
return c.then((l) => {
|
|
3294
3297
|
this.dispatch(Be(l));
|
|
3295
3298
|
}).catch(() => {
|
|
3296
|
-
this.dispatch(
|
|
3299
|
+
this.dispatch(Yt(a.uuid));
|
|
3297
3300
|
}), [a, c];
|
|
3298
3301
|
}
|
|
3299
3302
|
update(e) {
|
|
3300
|
-
const { store: s } = this.client, i =
|
|
3303
|
+
const { store: s } = this.client, i = Jt(e.uuid)(s.getState());
|
|
3301
3304
|
if (!i)
|
|
3302
3305
|
throw new Error(`Expected asset procedure instance with uuid ${e.uuid} to exist`);
|
|
3303
3306
|
const n = {
|
|
@@ -3320,17 +3323,17 @@ class rb extends I {
|
|
|
3320
3323
|
}), [n, a];
|
|
3321
3324
|
}
|
|
3322
3325
|
async remove(e) {
|
|
3323
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3326
|
+
const { store: s } = this.client, i = s.getState(), n = Jt(e)(i);
|
|
3324
3327
|
if (!n)
|
|
3325
3328
|
throw new Error(`Expected asset procedure instance with uuid ${e} to exist`);
|
|
3326
|
-
return this.dispatch(
|
|
3329
|
+
return this.dispatch(Yt(e)), this.enqueueRequest({
|
|
3327
3330
|
description: "Delete asset procedure instance",
|
|
3328
3331
|
method: u.DELETE,
|
|
3329
3332
|
url: `/asset-procedure-instances/${e}/`,
|
|
3330
3333
|
blockers: [e],
|
|
3331
3334
|
blocks: []
|
|
3332
3335
|
}).catch((a) => {
|
|
3333
|
-
throw this.dispatch(
|
|
3336
|
+
throw this.dispatch(Kt(n)), a;
|
|
3334
3337
|
});
|
|
3335
3338
|
}
|
|
3336
3339
|
async refreshStore(e) {
|
|
@@ -3355,7 +3358,7 @@ class ob extends I {
|
|
|
3355
3358
|
created_by: i,
|
|
3356
3359
|
submitted_at: n
|
|
3357
3360
|
});
|
|
3358
|
-
this.dispatch(
|
|
3361
|
+
this.dispatch(Xt(a));
|
|
3359
3362
|
const c = this.enqueueRequest({
|
|
3360
3363
|
description: "Create asset procedure",
|
|
3361
3364
|
method: u.POST,
|
|
@@ -3367,11 +3370,11 @@ class ob extends I {
|
|
|
3367
3370
|
return c.then((l) => {
|
|
3368
3371
|
this.dispatch(Ne(l));
|
|
3369
3372
|
}).catch(() => {
|
|
3370
|
-
this.dispatch(
|
|
3373
|
+
this.dispatch(Zt(a.uuid));
|
|
3371
3374
|
}), [a, c];
|
|
3372
3375
|
}
|
|
3373
3376
|
update(e) {
|
|
3374
|
-
const { store: s } = this.client, i =
|
|
3377
|
+
const { store: s } = this.client, i = es(e.uuid)(s.getState());
|
|
3375
3378
|
if (!i)
|
|
3376
3379
|
throw new Error(`Expected asset procedure with uuid ${e.uuid} to exist`);
|
|
3377
3380
|
const n = {
|
|
@@ -3394,18 +3397,18 @@ class ob extends I {
|
|
|
3394
3397
|
}), [n, a];
|
|
3395
3398
|
}
|
|
3396
3399
|
async remove(e) {
|
|
3397
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3400
|
+
const { store: s } = this.client, i = s.getState(), n = es(e)(i);
|
|
3398
3401
|
if (!n)
|
|
3399
3402
|
throw new Error(`Expected asset procedure with uuid ${e} to exist`);
|
|
3400
3403
|
const a = pr(e)(i);
|
|
3401
|
-
return this.dispatch(
|
|
3404
|
+
return this.dispatch(Zt(e)), this.dispatch(mr(a.map((c) => c.uuid))), this.enqueueRequest({
|
|
3402
3405
|
description: "Delete asset procedure",
|
|
3403
3406
|
method: u.DELETE,
|
|
3404
3407
|
url: `/asset-procedures/${e}/`,
|
|
3405
3408
|
blockers: [e],
|
|
3406
3409
|
blocks: []
|
|
3407
3410
|
}).catch((c) => {
|
|
3408
|
-
throw this.dispatch(
|
|
3411
|
+
throw this.dispatch(Xt(n)), this.dispatch(hr(a)), c;
|
|
3409
3412
|
});
|
|
3410
3413
|
}
|
|
3411
3414
|
async refreshStore(e) {
|
|
@@ -3434,7 +3437,7 @@ class db extends I {
|
|
|
3434
3437
|
created_by: i,
|
|
3435
3438
|
submitted_at: n
|
|
3436
3439
|
});
|
|
3437
|
-
this.dispatch(
|
|
3440
|
+
this.dispatch(ss(a));
|
|
3438
3441
|
const c = this.enqueueRequest({
|
|
3439
3442
|
description: "Create asset",
|
|
3440
3443
|
method: u.POST,
|
|
@@ -3446,11 +3449,11 @@ class db extends I {
|
|
|
3446
3449
|
return c.then((l) => {
|
|
3447
3450
|
this.dispatch(He(l));
|
|
3448
3451
|
}).catch(() => {
|
|
3449
|
-
this.dispatch(
|
|
3452
|
+
this.dispatch(is(a.uuid));
|
|
3450
3453
|
}), [a, c];
|
|
3451
3454
|
}
|
|
3452
3455
|
update(e) {
|
|
3453
|
-
const { store: s } = this.client, i =
|
|
3456
|
+
const { store: s } = this.client, i = ns(e.uuid)(s.getState());
|
|
3454
3457
|
if (!i)
|
|
3455
3458
|
throw new Error(`No asset with uuid ${e.uuid} found in the store`);
|
|
3456
3459
|
const n = {
|
|
@@ -3475,20 +3478,20 @@ class db extends I {
|
|
|
3475
3478
|
}), [n, a];
|
|
3476
3479
|
}
|
|
3477
3480
|
async remove(e) {
|
|
3478
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
3481
|
+
const { store: s } = this.client, i = s.getState(), n = ns(e)(i);
|
|
3479
3482
|
if (!n) throw new Error(`No asset with uuid ${e} found in the store`);
|
|
3480
3483
|
const a = vc(e)(i), c = _d(e)(i), o = Ud(e)(i);
|
|
3481
|
-
if (this.dispatch(
|
|
3484
|
+
if (this.dispatch(is(e)), a.length > 0) {
|
|
3482
3485
|
const l = a.map(({ uuid: r }) => r);
|
|
3483
|
-
this.dispatch(
|
|
3486
|
+
this.dispatch(Yi(l));
|
|
3484
3487
|
}
|
|
3485
3488
|
if (c.length > 0) {
|
|
3486
3489
|
const l = c.map(({ uuid: r }) => r);
|
|
3487
|
-
this.dispatch(
|
|
3490
|
+
this.dispatch(Ft(l));
|
|
3488
3491
|
}
|
|
3489
3492
|
if (o.length > 0) {
|
|
3490
3493
|
const l = o.map(({ uuid: r }) => r);
|
|
3491
|
-
this.dispatch(
|
|
3494
|
+
this.dispatch(Kn(l));
|
|
3492
3495
|
}
|
|
3493
3496
|
return this.enqueueRequest({
|
|
3494
3497
|
description: "Delete asset",
|
|
@@ -3497,7 +3500,7 @@ class db extends I {
|
|
|
3497
3500
|
blockers: [e],
|
|
3498
3501
|
blocks: []
|
|
3499
3502
|
}).catch((l) => {
|
|
3500
|
-
throw this.dispatch(
|
|
3503
|
+
throw this.dispatch(ss(n)), this.dispatch(Ki(a)), this.dispatch(Pt(c)), this.dispatch(Wn(o)), l;
|
|
3501
3504
|
});
|
|
3502
3505
|
}
|
|
3503
3506
|
bulkAdd(e, s, i, n) {
|
|
@@ -3532,7 +3535,7 @@ class db extends I {
|
|
|
3532
3535
|
}
|
|
3533
3536
|
return Promise.all(l).then((d) => {
|
|
3534
3537
|
const h = d.flat();
|
|
3535
|
-
this.dispatch(
|
|
3538
|
+
this.dispatch(ln(h));
|
|
3536
3539
|
}), l;
|
|
3537
3540
|
}
|
|
3538
3541
|
async refreshStore(e) {
|
|
@@ -3557,7 +3560,7 @@ class ub extends I {
|
|
|
3557
3560
|
created_by: i,
|
|
3558
3561
|
submitted_at: n
|
|
3559
3562
|
});
|
|
3560
|
-
this.dispatch(
|
|
3563
|
+
this.dispatch(cs(a));
|
|
3561
3564
|
const c = this.enqueueRequest({
|
|
3562
3565
|
description: "Add asset stage completion",
|
|
3563
3566
|
method: u.POST,
|
|
@@ -3569,14 +3572,14 @@ class ub extends I {
|
|
|
3569
3572
|
return c.then((l) => {
|
|
3570
3573
|
this.dispatch(Or(l));
|
|
3571
3574
|
}).catch(() => {
|
|
3572
|
-
this.dispatch(
|
|
3575
|
+
this.dispatch(os(a.uuid));
|
|
3573
3576
|
}), [a, c];
|
|
3574
3577
|
}
|
|
3575
3578
|
delete(e) {
|
|
3576
3579
|
const { store: s } = this.client, i = Fr(e)(s.getState());
|
|
3577
3580
|
if (!i)
|
|
3578
3581
|
throw new Error(`Expected asset stage completion with uuid ${e} to exist`);
|
|
3579
|
-
this.dispatch(
|
|
3582
|
+
this.dispatch(os(e));
|
|
3580
3583
|
const n = this.enqueueRequest({
|
|
3581
3584
|
description: "Delete asset stage completion",
|
|
3582
3585
|
method: u.DELETE,
|
|
@@ -3585,7 +3588,7 @@ class ub extends I {
|
|
|
3585
3588
|
blocks: []
|
|
3586
3589
|
});
|
|
3587
3590
|
return n.catch(() => {
|
|
3588
|
-
this.dispatch(
|
|
3591
|
+
this.dispatch(cs(i));
|
|
3589
3592
|
}), n;
|
|
3590
3593
|
}
|
|
3591
3594
|
bulkAdd(e) {
|
|
@@ -3595,7 +3598,7 @@ class ub extends I {
|
|
|
3595
3598
|
created_by: n,
|
|
3596
3599
|
submitted_at: i
|
|
3597
3600
|
})), o = c.map(({ uuid: d }) => d);
|
|
3598
|
-
this.dispatch(
|
|
3601
|
+
this.dispatch(rs(c));
|
|
3599
3602
|
const l = this.enqueueRequest({
|
|
3600
3603
|
description: "Bulk create asset stage completions",
|
|
3601
3604
|
method: u.POST,
|
|
@@ -3614,12 +3617,12 @@ class ub extends I {
|
|
|
3614
3617
|
return l.then((d) => {
|
|
3615
3618
|
this.dispatch(Ir(d));
|
|
3616
3619
|
}).catch(() => {
|
|
3617
|
-
this.dispatch(
|
|
3620
|
+
this.dispatch(ds(o));
|
|
3618
3621
|
}), [c, l];
|
|
3619
3622
|
}
|
|
3620
3623
|
bulkDelete(e) {
|
|
3621
3624
|
const { store: s } = this.client, i = vr(e)(s.getState());
|
|
3622
|
-
this.dispatch(
|
|
3625
|
+
this.dispatch(ds(e));
|
|
3623
3626
|
const n = this.enqueueRequest({
|
|
3624
3627
|
description: "Deleting asset stage completions",
|
|
3625
3628
|
method: u.DELETE,
|
|
@@ -3631,7 +3634,7 @@ class ub extends I {
|
|
|
3631
3634
|
blocks: []
|
|
3632
3635
|
});
|
|
3633
3636
|
return n.catch(() => {
|
|
3634
|
-
this.dispatch(
|
|
3637
|
+
this.dispatch(rs(i));
|
|
3635
3638
|
}), n;
|
|
3636
3639
|
}
|
|
3637
3640
|
async refreshStore(e) {
|
|
@@ -3652,7 +3655,7 @@ class lb extends I {
|
|
|
3652
3655
|
bulkAdd(e, s) {
|
|
3653
3656
|
var l;
|
|
3654
3657
|
const i = (/* @__PURE__ */ new Date()).toISOString(), n = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, a = e.map((r) => O(r)), c = a.map((r) => ({ ...r, asset_procedure: s, created_by: n, submitted_at: i }));
|
|
3655
|
-
this.dispatch(
|
|
3658
|
+
this.dispatch(ls(c));
|
|
3656
3659
|
const o = this.enqueueRequest({
|
|
3657
3660
|
description: "Add asset stages",
|
|
3658
3661
|
method: u.POST,
|
|
@@ -3666,14 +3669,14 @@ class lb extends I {
|
|
|
3666
3669
|
blocks: a.map(({ uuid: r }) => r)
|
|
3667
3670
|
});
|
|
3668
3671
|
return o.then((r) => {
|
|
3669
|
-
this.dispatch(
|
|
3672
|
+
this.dispatch(at(r));
|
|
3670
3673
|
}).catch(() => {
|
|
3671
|
-
this.dispatch(
|
|
3674
|
+
this.dispatch(ms(c.map(({ uuid: r }) => r)));
|
|
3672
3675
|
}), [c, o];
|
|
3673
3676
|
}
|
|
3674
3677
|
async bulkUpdate(e, s) {
|
|
3675
|
-
const n = this.client.store.getState(), a =
|
|
3676
|
-
return this.dispatch(
|
|
3678
|
+
const n = this.client.store.getState(), a = ps(e.map(({ uuid: c }) => c))(n);
|
|
3679
|
+
return this.dispatch(at(e)), this.enqueueRequest({
|
|
3677
3680
|
description: "Edit asset stages",
|
|
3678
3681
|
method: u.PATCH,
|
|
3679
3682
|
url: `/asset-procedures/${s}/bulk-update-stages/`,
|
|
@@ -3683,12 +3686,12 @@ class lb extends I {
|
|
|
3683
3686
|
blockers: [s],
|
|
3684
3687
|
blocks: e.map(({ uuid: c }) => c)
|
|
3685
3688
|
}).catch((c) => {
|
|
3686
|
-
throw this.dispatch(
|
|
3689
|
+
throw this.dispatch(at(a)), c;
|
|
3687
3690
|
});
|
|
3688
3691
|
}
|
|
3689
3692
|
async bulkDelete(e) {
|
|
3690
|
-
const { store: s } = this.client, i =
|
|
3691
|
-
this.dispatch(
|
|
3693
|
+
const { store: s } = this.client, i = ps(e)(s.getState());
|
|
3694
|
+
this.dispatch(ms(e));
|
|
3692
3695
|
const n = this.enqueueRequest({
|
|
3693
3696
|
description: "Delete asset stages",
|
|
3694
3697
|
method: u.DELETE,
|
|
@@ -3700,7 +3703,7 @@ class lb extends I {
|
|
|
3700
3703
|
blocks: []
|
|
3701
3704
|
});
|
|
3702
3705
|
return n.catch(() => {
|
|
3703
|
-
this.dispatch(
|
|
3706
|
+
this.dispatch(ls(i));
|
|
3704
3707
|
}), n;
|
|
3705
3708
|
}
|
|
3706
3709
|
update(e) {
|
|
@@ -3710,7 +3713,7 @@ class lb extends I {
|
|
|
3710
3713
|
...i,
|
|
3711
3714
|
...e
|
|
3712
3715
|
};
|
|
3713
|
-
this.dispatch(
|
|
3716
|
+
this.dispatch(hs(n));
|
|
3714
3717
|
const a = this.enqueueRequest({
|
|
3715
3718
|
description: "Update asset stage",
|
|
3716
3719
|
method: u.PATCH,
|
|
@@ -3725,7 +3728,7 @@ class lb extends I {
|
|
|
3725
3728
|
blocks: [i.uuid]
|
|
3726
3729
|
});
|
|
3727
3730
|
return a.then((c) => {
|
|
3728
|
-
this.dispatch(
|
|
3731
|
+
this.dispatch(hs(c));
|
|
3729
3732
|
}).catch(() => {
|
|
3730
3733
|
this.dispatch(Er(i));
|
|
3731
3734
|
}), [n, a];
|
|
@@ -3749,9 +3752,9 @@ class hb extends Ae {
|
|
|
3749
3752
|
super(...arguments);
|
|
3750
3753
|
A(this, "name", "Asset Type Attachment");
|
|
3751
3754
|
A(this, "url", "/asset-type-attachments");
|
|
3752
|
-
A(this, "addAttachments",
|
|
3755
|
+
A(this, "addAttachments", bn);
|
|
3753
3756
|
A(this, "updateAttachments", Dr);
|
|
3754
|
-
A(this, "removeAttachments",
|
|
3757
|
+
A(this, "removeAttachments", gn);
|
|
3755
3758
|
A(this, "removeAttachment", xr);
|
|
3756
3759
|
A(this, "setAttachment", Cr);
|
|
3757
3760
|
A(this, "selectAttachment", $r);
|
|
@@ -3932,7 +3935,7 @@ class fb extends E {
|
|
|
3932
3935
|
files: Object.values(h)
|
|
3933
3936
|
});
|
|
3934
3937
|
}
|
|
3935
|
-
this.dispatch(
|
|
3938
|
+
this.dispatch(ft(c));
|
|
3936
3939
|
const l = o.map((d) => this.enqueueRequest({
|
|
3937
3940
|
description: "Add asset type field values attachments",
|
|
3938
3941
|
method: u.POST,
|
|
@@ -3947,7 +3950,7 @@ class fb extends E {
|
|
|
3947
3950
|
this.dispatch(io(h));
|
|
3948
3951
|
}).catch((d) => {
|
|
3949
3952
|
throw this.dispatch(
|
|
3950
|
-
|
|
3953
|
+
At(
|
|
3951
3954
|
c.map((h) => h.uuid)
|
|
3952
3955
|
)
|
|
3953
3956
|
), d;
|
|
@@ -3958,7 +3961,7 @@ class fb extends E {
|
|
|
3958
3961
|
}
|
|
3959
3962
|
async bulkDelete(e) {
|
|
3960
3963
|
const { store: s } = this.client, i = s.getState(), n = ao(e)(i);
|
|
3961
|
-
this.dispatch(
|
|
3964
|
+
this.dispatch(At(e));
|
|
3962
3965
|
try {
|
|
3963
3966
|
await this.enqueueRequest({
|
|
3964
3967
|
description: "Delete asset type field values attachments",
|
|
@@ -3969,7 +3972,7 @@ class fb extends E {
|
|
|
3969
3972
|
blocks: []
|
|
3970
3973
|
});
|
|
3971
3974
|
} catch (a) {
|
|
3972
|
-
throw this.dispatch(
|
|
3975
|
+
throw this.dispatch(ft(n)), a;
|
|
3973
3976
|
}
|
|
3974
3977
|
}
|
|
3975
3978
|
async refreshStore(e) {
|
|
@@ -4001,8 +4004,8 @@ class Ab extends I {
|
|
|
4001
4004
|
blockers: [e.asset, e.fields_revision],
|
|
4002
4005
|
blocks: [n.uuid]
|
|
4003
4006
|
});
|
|
4004
|
-
return this.dispatch(
|
|
4005
|
-
this.dispatch(
|
|
4007
|
+
return this.dispatch(Ss(n)), a.then((o) => (this.dispatch(We(o)), o)).catch(() => {
|
|
4008
|
+
this.dispatch(Ts(n.uuid));
|
|
4006
4009
|
}), [n, a];
|
|
4007
4010
|
}
|
|
4008
4011
|
bulkAdd(e, s) {
|
|
@@ -4051,7 +4054,7 @@ class Ab extends I {
|
|
|
4051
4054
|
}), [n, o];
|
|
4052
4055
|
}
|
|
4053
4056
|
update(e) {
|
|
4054
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4057
|
+
const { store: s } = this.client, i = s.getState(), n = Rs(e.uuid)(i);
|
|
4055
4058
|
if (!n)
|
|
4056
4059
|
throw new Error(`Expected AssetTypeFieldValues with uuid ${e.uuid} to exist`);
|
|
4057
4060
|
const a = {
|
|
@@ -4078,11 +4081,11 @@ class Ab extends I {
|
|
|
4078
4081
|
}), [a, c];
|
|
4079
4082
|
}
|
|
4080
4083
|
async delete(e) {
|
|
4081
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4084
|
+
const { store: s } = this.client, i = s.getState(), n = Rs(e)(i);
|
|
4082
4085
|
if (!n)
|
|
4083
4086
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
4084
4087
|
const a = co(e)(i);
|
|
4085
|
-
this.dispatch(
|
|
4088
|
+
this.dispatch(Ts(e)), this.dispatch(At(a.map((c) => c.uuid)));
|
|
4086
4089
|
try {
|
|
4087
4090
|
await this.enqueueRequest({
|
|
4088
4091
|
description: "Delete asset type field values",
|
|
@@ -4092,7 +4095,7 @@ class Ab extends I {
|
|
|
4092
4095
|
blocks: []
|
|
4093
4096
|
});
|
|
4094
4097
|
} catch (c) {
|
|
4095
|
-
throw this.dispatch(
|
|
4098
|
+
throw this.dispatch(Ss(n)), this.dispatch(ft(a)), c;
|
|
4096
4099
|
}
|
|
4097
4100
|
}
|
|
4098
4101
|
async refreshStore(e) {
|
|
@@ -4117,7 +4120,7 @@ class yb extends I {
|
|
|
4117
4120
|
created_by: i,
|
|
4118
4121
|
submitted_at: n
|
|
4119
4122
|
});
|
|
4120
|
-
this.dispatch(
|
|
4123
|
+
this.dispatch(Os(a));
|
|
4121
4124
|
const c = this.enqueueRequest({
|
|
4122
4125
|
description: "Create asset type",
|
|
4123
4126
|
method: u.POST,
|
|
@@ -4129,11 +4132,11 @@ class yb extends I {
|
|
|
4129
4132
|
return c.then((l) => {
|
|
4130
4133
|
this.dispatch(Ke(l));
|
|
4131
4134
|
}).catch(() => {
|
|
4132
|
-
this.dispatch(
|
|
4135
|
+
this.dispatch(Is(a.uuid));
|
|
4133
4136
|
}), [a, c];
|
|
4134
4137
|
}
|
|
4135
4138
|
update(e) {
|
|
4136
|
-
const { store: s } = this.client, i =
|
|
4139
|
+
const { store: s } = this.client, i = Ps(e.uuid)(s.getState());
|
|
4137
4140
|
if (!i)
|
|
4138
4141
|
throw new Error(`Expected asset type with uuid ${e.uuid} to exist`);
|
|
4139
4142
|
const n = {
|
|
@@ -4161,18 +4164,18 @@ class yb extends I {
|
|
|
4161
4164
|
}), [n, a];
|
|
4162
4165
|
}
|
|
4163
4166
|
async delete(e) {
|
|
4164
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4167
|
+
const { store: s } = this.client, i = s.getState(), n = Ps(e)(i);
|
|
4165
4168
|
if (!n)
|
|
4166
4169
|
throw new Error(`Expected asset type with uuid ${e} to exist`);
|
|
4167
|
-
const a =
|
|
4168
|
-
return this.dispatch(
|
|
4170
|
+
const a = mn(e)(i), c = Vr(e)(i);
|
|
4171
|
+
return this.dispatch(Is(e)), this.dispatch(Sr(a.map((o) => o.uuid))), this.dispatch(gn(c.map(({ uuid: o }) => o))), this.enqueueRequest({
|
|
4169
4172
|
description: "Delete asset type",
|
|
4170
4173
|
method: u.DELETE,
|
|
4171
4174
|
url: `/asset-types/${e}/`,
|
|
4172
4175
|
blockers: [e],
|
|
4173
4176
|
blocks: []
|
|
4174
4177
|
}).catch((o) => {
|
|
4175
|
-
throw this.dispatch(
|
|
4178
|
+
throw this.dispatch(Os(n)), this.dispatch(ln(a)), this.dispatch(bn(c)), o;
|
|
4176
4179
|
});
|
|
4177
4180
|
}
|
|
4178
4181
|
async refreshStore(e) {
|
|
@@ -4197,7 +4200,7 @@ class bb extends I {
|
|
|
4197
4200
|
created_by: i,
|
|
4198
4201
|
submitted_at: n
|
|
4199
4202
|
});
|
|
4200
|
-
this.dispatch(
|
|
4203
|
+
this.dispatch(ws(a));
|
|
4201
4204
|
const c = this.enqueueRequest({
|
|
4202
4205
|
description: "Create Category",
|
|
4203
4206
|
method: u.POST,
|
|
@@ -4209,7 +4212,7 @@ class bb extends I {
|
|
|
4209
4212
|
return [a, c];
|
|
4210
4213
|
}
|
|
4211
4214
|
update(e) {
|
|
4212
|
-
const s = this.client.store.getState(), i =
|
|
4215
|
+
const s = this.client.store.getState(), i = Es(e.uuid)(s);
|
|
4213
4216
|
if (!i)
|
|
4214
4217
|
throw new Error(`Expected an existing category with uuid ${e.uuid}`);
|
|
4215
4218
|
const n = { ...i, ...e };
|
|
@@ -4225,7 +4228,7 @@ class bb extends I {
|
|
|
4225
4228
|
return [n, a];
|
|
4226
4229
|
}
|
|
4227
4230
|
remove(e) {
|
|
4228
|
-
const { store: s } = this.client, i =
|
|
4231
|
+
const { store: s } = this.client, i = Es(e)(s.getState());
|
|
4229
4232
|
if (!i)
|
|
4230
4233
|
throw new Error(`No category with uuid ${e} found in the store`);
|
|
4231
4234
|
this.dispatch(To(e));
|
|
@@ -4237,7 +4240,7 @@ class bb extends I {
|
|
|
4237
4240
|
blocks: []
|
|
4238
4241
|
});
|
|
4239
4242
|
return n.catch(() => {
|
|
4240
|
-
this.dispatch(
|
|
4243
|
+
this.dispatch(ws(i));
|
|
4241
4244
|
}), n;
|
|
4242
4245
|
}
|
|
4243
4246
|
async refreshStore(e) {
|
|
@@ -4391,7 +4394,7 @@ class Sb extends I {
|
|
|
4391
4394
|
blocks: [a.uuid]
|
|
4392
4395
|
});
|
|
4393
4396
|
return c.catch(() => {
|
|
4394
|
-
this.dispatch(
|
|
4397
|
+
this.dispatch(js([a.uuid]));
|
|
4395
4398
|
}), [a, c];
|
|
4396
4399
|
}
|
|
4397
4400
|
update(e) {
|
|
@@ -4454,7 +4457,7 @@ class Sb extends I {
|
|
|
4454
4457
|
if (!n)
|
|
4455
4458
|
throw new Error(`attempting to delete a document with uuid ${e} that does not exist in store.documents`);
|
|
4456
4459
|
const a = n.parent_document ? i[n.parent_document] : void 0;
|
|
4457
|
-
this.dispatch(
|
|
4460
|
+
this.dispatch(js([e]));
|
|
4458
4461
|
const c = this.enqueueRequest({
|
|
4459
4462
|
description: "Delete Document",
|
|
4460
4463
|
method: u.DELETE,
|
|
@@ -4544,16 +4547,16 @@ class Rb extends I {
|
|
|
4544
4547
|
});
|
|
4545
4548
|
}
|
|
4546
4549
|
}
|
|
4547
|
-
const Xe = {},
|
|
4548
|
-
let Ze = 0,
|
|
4549
|
-
const
|
|
4550
|
+
const Xe = {}, dt = /* @__PURE__ */ new Set();
|
|
4551
|
+
let Ze = 0, ut = 0, lt = 0;
|
|
4552
|
+
const xh = 20;
|
|
4550
4553
|
class _b extends I {
|
|
4551
4554
|
constructor() {
|
|
4552
4555
|
super(...arguments);
|
|
4553
4556
|
A(this, "host");
|
|
4554
4557
|
// NOTE: If you alter the schema (of the IndexedDB database) in any way, you must increment the version in order to
|
|
4555
4558
|
// migrate the store. This allows idb to automatically migrate the user's existing data to the new schema.
|
|
4556
|
-
A(this, "_dbPromise",
|
|
4559
|
+
A(this, "_dbPromise", Ka("fileCache", 1, {
|
|
4557
4560
|
upgrade(s) {
|
|
4558
4561
|
s.createObjectStore("files");
|
|
4559
4562
|
}
|
|
@@ -4562,7 +4565,7 @@ class _b extends I {
|
|
|
4562
4565
|
async renewUploadUrl(s) {
|
|
4563
4566
|
const i = await this.fetchCache(s);
|
|
4564
4567
|
if (!i) throw new Error(`File with sha1 ${s} not found in cache`);
|
|
4565
|
-
const n = await
|
|
4568
|
+
const n = await Mt(i, s), a = await this.enqueueRequest({
|
|
4566
4569
|
description: "Get S3 URL",
|
|
4567
4570
|
method: u.GET,
|
|
4568
4571
|
url: "/authentication/files/presigned-upload-url/",
|
|
@@ -4584,7 +4587,7 @@ class _b extends I {
|
|
|
4584
4587
|
* @param sha1 The sha1 hash of the file to cache.
|
|
4585
4588
|
*/
|
|
4586
4589
|
async addCache(s, i) {
|
|
4587
|
-
if (
|
|
4590
|
+
if (dt.has(i))
|
|
4588
4591
|
return;
|
|
4589
4592
|
if (!s.type) {
|
|
4590
4593
|
const c = s.name.split("."), o = c[c.length - 1];
|
|
@@ -4593,12 +4596,12 @@ class _b extends I {
|
|
|
4593
4596
|
if (!s.name || !s.size || !s.type)
|
|
4594
4597
|
throw new Error("Cannot add files to cache that do not have a name, size and type.");
|
|
4595
4598
|
const n = await this._dbPromise;
|
|
4596
|
-
!!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Ze++) : (await n.put("files", s, i),
|
|
4597
|
-
`File cache summary: ${Ze} hits and ${
|
|
4599
|
+
!!await n.get("files", i) ? (console.error("File already cached (this is unexpected at this point):", s.name, i), Ze++) : (await n.put("files", s, i), ut++), dt.add(i), lt++, lt % xh === 0 && console.debug(
|
|
4600
|
+
`File cache summary: ${Ze} hits and ${ut} misses, ${Ze / (Ze + ut) * 100}% hit rate over ${lt} calls to addCache.`
|
|
4598
4601
|
);
|
|
4599
4602
|
}
|
|
4600
4603
|
async removeCache(s) {
|
|
4601
|
-
await (await this._dbPromise).delete("files", s),
|
|
4604
|
+
await (await this._dbPromise).delete("files", s), dt.delete(s);
|
|
4602
4605
|
}
|
|
4603
4606
|
async fetchCache(s) {
|
|
4604
4607
|
return (await this._dbPromise).get("files", s);
|
|
@@ -4611,7 +4614,7 @@ class _b extends I {
|
|
|
4611
4614
|
async uploadFileToS3(s) {
|
|
4612
4615
|
const i = await this.fetchCache(s);
|
|
4613
4616
|
if (!i) throw new Error(`File with sha1 ${s} not found in cache`);
|
|
4614
|
-
const n = await
|
|
4617
|
+
const n = await Mt(i, s), a = {
|
|
4615
4618
|
file_name: i.name,
|
|
4616
4619
|
file_sha1: s,
|
|
4617
4620
|
file: n
|
|
@@ -4775,7 +4778,7 @@ class Ib extends E {
|
|
|
4775
4778
|
created_by: n,
|
|
4776
4779
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
4777
4780
|
});
|
|
4778
|
-
this.dispatch(
|
|
4781
|
+
this.dispatch(xn(a));
|
|
4779
4782
|
const c = this.enqueueRequest({
|
|
4780
4783
|
description: "Create form revision",
|
|
4781
4784
|
method: u.POST,
|
|
@@ -4787,7 +4790,7 @@ class Ib extends E {
|
|
|
4787
4790
|
return c.then((l) => {
|
|
4788
4791
|
this.dispatch(id(l));
|
|
4789
4792
|
}).catch(() => {
|
|
4790
|
-
this.dispatch(
|
|
4793
|
+
this.dispatch(zn(a.uuid));
|
|
4791
4794
|
}), [a, c];
|
|
4792
4795
|
}
|
|
4793
4796
|
async refreshStore(e) {
|
|
@@ -4817,7 +4820,7 @@ class Pb extends E {
|
|
|
4817
4820
|
submitted_at: n,
|
|
4818
4821
|
created_by: a
|
|
4819
4822
|
});
|
|
4820
|
-
this.dispatch(
|
|
4823
|
+
this.dispatch(zs(c)), this.dispatch(xn(o));
|
|
4821
4824
|
const l = this.enqueueRequest({
|
|
4822
4825
|
description: "Create form",
|
|
4823
4826
|
method: u.POST,
|
|
@@ -4836,7 +4839,7 @@ class Pb extends E {
|
|
|
4836
4839
|
blocks: [c.uuid, o.uuid]
|
|
4837
4840
|
});
|
|
4838
4841
|
return l.catch((d) => {
|
|
4839
|
-
throw this.dispatch(
|
|
4842
|
+
throw this.dispatch(Us(c.uuid)), this.dispatch(zn(o.uuid)), d;
|
|
4840
4843
|
}), [c, o, l];
|
|
4841
4844
|
}
|
|
4842
4845
|
async delete(e) {
|
|
@@ -4844,9 +4847,9 @@ class Pb extends E {
|
|
|
4844
4847
|
if (!n)
|
|
4845
4848
|
throw new Error("Expected form to exist");
|
|
4846
4849
|
const a = Td(e)(i);
|
|
4847
|
-
a.length > 0 && this.dispatch(
|
|
4850
|
+
a.length > 0 && this.dispatch(Ft(a.map(({ uuid: o }) => o)));
|
|
4848
4851
|
const c = od(e)(i);
|
|
4849
|
-
c.length > 0 && this.dispatch(cd(c.map(({ uuid: o }) => o))), this.dispatch(
|
|
4852
|
+
c.length > 0 && this.dispatch(cd(c.map(({ uuid: o }) => o))), this.dispatch(Us(e));
|
|
4850
4853
|
try {
|
|
4851
4854
|
return await this.enqueueRequest({
|
|
4852
4855
|
description: "Delete form",
|
|
@@ -4856,7 +4859,7 @@ class Pb extends E {
|
|
|
4856
4859
|
blocks: []
|
|
4857
4860
|
});
|
|
4858
4861
|
} catch (o) {
|
|
4859
|
-
throw this.dispatch(
|
|
4862
|
+
throw this.dispatch(zs(n)), c.length > 0 && this.dispatch(ad(c)), a.length > 0 && this.dispatch(Pt(a)), o;
|
|
4860
4863
|
}
|
|
4861
4864
|
}
|
|
4862
4865
|
async refreshStore(e) {
|
|
@@ -4901,7 +4904,7 @@ class Fb extends E {
|
|
|
4901
4904
|
};
|
|
4902
4905
|
c.push(T);
|
|
4903
4906
|
}
|
|
4904
|
-
this.dispatch(
|
|
4907
|
+
this.dispatch(yt(a));
|
|
4905
4908
|
const o = this.enqueueRequest({
|
|
4906
4909
|
description: "Attach files to form submission",
|
|
4907
4910
|
method: u.POST,
|
|
@@ -4918,7 +4921,7 @@ class Fb extends E {
|
|
|
4918
4921
|
this.processPresignedUrls(r.presigned_urls), this.dispatch(fd(r.attachments));
|
|
4919
4922
|
}).catch((r) => {
|
|
4920
4923
|
throw this.dispatch(
|
|
4921
|
-
|
|
4924
|
+
bt(
|
|
4922
4925
|
a.map((d) => d.uuid)
|
|
4923
4926
|
)
|
|
4924
4927
|
), r;
|
|
@@ -4926,7 +4929,7 @@ class Fb extends E {
|
|
|
4926
4929
|
}
|
|
4927
4930
|
async bulkDelete(e) {
|
|
4928
4931
|
const { store: s } = this.client, i = s.getState(), n = Ad(e)(i);
|
|
4929
|
-
this.dispatch(
|
|
4932
|
+
this.dispatch(bt(e));
|
|
4930
4933
|
try {
|
|
4931
4934
|
await this.enqueueRequest({
|
|
4932
4935
|
description: "Delete form submission attachments",
|
|
@@ -4937,7 +4940,7 @@ class Fb extends E {
|
|
|
4937
4940
|
blocks: []
|
|
4938
4941
|
});
|
|
4939
4942
|
} catch (a) {
|
|
4940
|
-
throw this.dispatch(
|
|
4943
|
+
throw this.dispatch(yt(n)), a;
|
|
4941
4944
|
}
|
|
4942
4945
|
}
|
|
4943
4946
|
async refreshStore(e) {
|
|
@@ -4974,12 +4977,12 @@ class vb extends E {
|
|
|
4974
4977
|
],
|
|
4975
4978
|
blocks: [n.uuid]
|
|
4976
4979
|
});
|
|
4977
|
-
return this.dispatch(
|
|
4978
|
-
this.dispatch(
|
|
4980
|
+
return this.dispatch(Gs(n)), a.then((o) => (this.dispatch(ct(o)), o)).catch(() => {
|
|
4981
|
+
this.dispatch(Ls(n.uuid));
|
|
4979
4982
|
}), [n, a];
|
|
4980
4983
|
}
|
|
4981
4984
|
update(e) {
|
|
4982
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
4985
|
+
const { store: s } = this.client, i = s.getState(), n = Bs(e.uuid)(i);
|
|
4983
4986
|
if (!n)
|
|
4984
4987
|
throw new Error(`Expected submission with uuid ${e.uuid} to exist`);
|
|
4985
4988
|
const a = {
|
|
@@ -4996,17 +4999,17 @@ class vb extends E {
|
|
|
4996
4999
|
blocks: [a.uuid]
|
|
4997
5000
|
});
|
|
4998
5001
|
return c.then((o) => {
|
|
4999
|
-
this.dispatch(
|
|
5002
|
+
this.dispatch(ct(o));
|
|
5000
5003
|
}).catch(() => {
|
|
5001
|
-
this.dispatch(
|
|
5004
|
+
this.dispatch(ct(n));
|
|
5002
5005
|
}), [a, c];
|
|
5003
5006
|
}
|
|
5004
5007
|
async delete(e) {
|
|
5005
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5008
|
+
const { store: s } = this.client, i = s.getState(), n = Bs(e)(i);
|
|
5006
5009
|
if (!n)
|
|
5007
5010
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
5008
5011
|
const a = yd(e)(i);
|
|
5009
|
-
this.dispatch(
|
|
5012
|
+
this.dispatch(Ls(e)), this.dispatch(bt(a.map((c) => c.uuid)));
|
|
5010
5013
|
try {
|
|
5011
5014
|
return await this.enqueueRequest({
|
|
5012
5015
|
description: "Delete user form submissions",
|
|
@@ -5016,7 +5019,7 @@ class vb extends E {
|
|
|
5016
5019
|
blocks: []
|
|
5017
5020
|
});
|
|
5018
5021
|
} catch (c) {
|
|
5019
|
-
throw this.dispatch(
|
|
5022
|
+
throw this.dispatch(Gs(n)), this.dispatch(yt(a)), c;
|
|
5020
5023
|
}
|
|
5021
5024
|
}
|
|
5022
5025
|
async refreshStore(e) {
|
|
@@ -5069,7 +5072,7 @@ class wb extends E {
|
|
|
5069
5072
|
return d.then((m) => {
|
|
5070
5073
|
this.processPresignedUrls(m.presigned_urls), this.dispatch(Ye(m.geo_image));
|
|
5071
5074
|
}).catch(() => {
|
|
5072
|
-
this.dispatch(
|
|
5075
|
+
this.dispatch(Hs(r.uuid));
|
|
5073
5076
|
}), [r, d.then((m) => m.geo_image)];
|
|
5074
5077
|
}
|
|
5075
5078
|
async bulkAdd(e, s) {
|
|
@@ -5120,7 +5123,7 @@ class wb extends E {
|
|
|
5120
5123
|
}), [c, d.then((m) => m.geo_images)];
|
|
5121
5124
|
}
|
|
5122
5125
|
update(e) {
|
|
5123
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5126
|
+
const { store: s } = this.client, i = s.getState(), n = Ws(e.uuid)(i);
|
|
5124
5127
|
if (!n)
|
|
5125
5128
|
throw new Error(`Map image with uuid ${e.uuid} does not exist in the store`);
|
|
5126
5129
|
const a = { ...n, ...e };
|
|
@@ -5140,10 +5143,10 @@ class wb extends E {
|
|
|
5140
5143
|
}), [a, c];
|
|
5141
5144
|
}
|
|
5142
5145
|
async delete(e) {
|
|
5143
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5146
|
+
const { store: s } = this.client, i = s.getState(), n = Ws(e)(i);
|
|
5144
5147
|
if (!n)
|
|
5145
5148
|
throw new Error(`Map image with uuid ${e} does not exist in the store`);
|
|
5146
|
-
this.dispatch(
|
|
5149
|
+
this.dispatch(Hs(e));
|
|
5147
5150
|
const a = this.enqueueRequest({
|
|
5148
5151
|
description: "Delete geo image",
|
|
5149
5152
|
method: u.DELETE,
|
|
@@ -5177,7 +5180,7 @@ class Eb extends I {
|
|
|
5177
5180
|
submitted_at: i,
|
|
5178
5181
|
created_by: n
|
|
5179
5182
|
});
|
|
5180
|
-
this.dispatch(
|
|
5183
|
+
this.dispatch(Ys(a));
|
|
5181
5184
|
const c = this.enqueueRequest({
|
|
5182
5185
|
description: "Add issue association",
|
|
5183
5186
|
method: u.POST,
|
|
@@ -5193,14 +5196,14 @@ class Eb extends I {
|
|
|
5193
5196
|
return c.then((l) => {
|
|
5194
5197
|
this.dispatch(Cd(l));
|
|
5195
5198
|
}).catch(() => {
|
|
5196
|
-
this.dispatch(
|
|
5199
|
+
this.dispatch(Js(a.uuid));
|
|
5197
5200
|
}), [a, c];
|
|
5198
5201
|
}
|
|
5199
5202
|
async delete(e) {
|
|
5200
5203
|
const { store: s } = this.client, i = Dd(e)(s.getState());
|
|
5201
5204
|
if (!i)
|
|
5202
5205
|
throw new Error(`Issue association with uuid ${e} not found in store.`);
|
|
5203
|
-
this.dispatch(
|
|
5206
|
+
this.dispatch(Js(e));
|
|
5204
5207
|
const n = this.enqueueRequest({
|
|
5205
5208
|
description: "Delete issue association",
|
|
5206
5209
|
method: u.DELETE,
|
|
@@ -5209,7 +5212,7 @@ class Eb extends I {
|
|
|
5209
5212
|
blocks: []
|
|
5210
5213
|
});
|
|
5211
5214
|
return n.catch(() => {
|
|
5212
|
-
this.dispatch(
|
|
5215
|
+
this.dispatch(Ys(i));
|
|
5213
5216
|
}), n;
|
|
5214
5217
|
}
|
|
5215
5218
|
async refreshStore(e) {
|
|
@@ -5229,10 +5232,10 @@ class kb extends Ae {
|
|
|
5229
5232
|
super(...arguments);
|
|
5230
5233
|
A(this, "name", "Issue Attachment");
|
|
5231
5234
|
A(this, "url", "/issue-attachments");
|
|
5232
|
-
A(this, "initializeAttachments",
|
|
5233
|
-
A(this, "addAttachments",
|
|
5235
|
+
A(this, "initializeAttachments", Xs);
|
|
5236
|
+
A(this, "addAttachments", Jn);
|
|
5234
5237
|
A(this, "updateAttachments", Gd);
|
|
5235
|
-
A(this, "removeAttachments",
|
|
5238
|
+
A(this, "removeAttachments", Qn);
|
|
5236
5239
|
A(this, "removeAttachment", Ld);
|
|
5237
5240
|
A(this, "setAttachment", Vd);
|
|
5238
5241
|
A(this, "selectAttachment", Wd);
|
|
@@ -5272,7 +5275,7 @@ class kb extends Ae {
|
|
|
5272
5275
|
blocks: [],
|
|
5273
5276
|
blockers: []
|
|
5274
5277
|
});
|
|
5275
|
-
this.dispatch(
|
|
5278
|
+
this.dispatch(Xs(i));
|
|
5276
5279
|
}
|
|
5277
5280
|
}
|
|
5278
5281
|
class qb extends Ae {
|
|
@@ -5280,7 +5283,7 @@ class qb extends Ae {
|
|
|
5280
5283
|
super(...arguments);
|
|
5281
5284
|
A(this, "name", "Issue Comment Attachment");
|
|
5282
5285
|
A(this, "url", "/issue-comment-attachments");
|
|
5283
|
-
A(this, "initializeAttachments",
|
|
5286
|
+
A(this, "initializeAttachments", ei);
|
|
5284
5287
|
A(this, "addAttachments", Yd);
|
|
5285
5288
|
A(this, "updateAttachments", Qd);
|
|
5286
5289
|
A(this, "removeAttachments", Zd);
|
|
@@ -5323,7 +5326,7 @@ class qb extends Ae {
|
|
|
5323
5326
|
blocks: [],
|
|
5324
5327
|
blockers: []
|
|
5325
5328
|
});
|
|
5326
|
-
this.dispatch(
|
|
5329
|
+
this.dispatch(ei(i));
|
|
5327
5330
|
}
|
|
5328
5331
|
}
|
|
5329
5332
|
class jb extends I {
|
|
@@ -5334,7 +5337,7 @@ class jb extends I {
|
|
|
5334
5337
|
author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.id,
|
|
5335
5338
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
5336
5339
|
});
|
|
5337
|
-
this.dispatch(
|
|
5340
|
+
this.dispatch(ii(i));
|
|
5338
5341
|
const n = this.enqueueRequest({
|
|
5339
5342
|
description: "Add issue comment",
|
|
5340
5343
|
method: u.POST,
|
|
@@ -5344,18 +5347,18 @@ class jb extends I {
|
|
|
5344
5347
|
blocks: [i.uuid]
|
|
5345
5348
|
});
|
|
5346
5349
|
return n.catch(() => {
|
|
5347
|
-
this.dispatch(
|
|
5350
|
+
this.dispatch(ni(i.uuid));
|
|
5348
5351
|
}), [i, n];
|
|
5349
5352
|
}
|
|
5350
5353
|
update(e) {
|
|
5351
|
-
const { store: s } = this.client, i =
|
|
5354
|
+
const { store: s } = this.client, i = ai(e.uuid)(s.getState());
|
|
5352
5355
|
if (!i)
|
|
5353
5356
|
throw new Error(`Comment with uuid ${e.uuid} not found in store`);
|
|
5354
5357
|
const n = {
|
|
5355
5358
|
...i,
|
|
5356
5359
|
...e
|
|
5357
5360
|
};
|
|
5358
|
-
this.dispatch(
|
|
5361
|
+
this.dispatch(si(n));
|
|
5359
5362
|
const a = this.enqueueRequest({
|
|
5360
5363
|
description: "Edit issue comment",
|
|
5361
5364
|
method: u.PATCH,
|
|
@@ -5365,14 +5368,14 @@ class jb extends I {
|
|
|
5365
5368
|
blocks: [e.uuid]
|
|
5366
5369
|
});
|
|
5367
5370
|
return a.catch(() => {
|
|
5368
|
-
this.dispatch(
|
|
5371
|
+
this.dispatch(si(i));
|
|
5369
5372
|
}), [n, a];
|
|
5370
5373
|
}
|
|
5371
5374
|
remove(e) {
|
|
5372
|
-
const { store: s } = this.client, i =
|
|
5375
|
+
const { store: s } = this.client, i = ai(e)(s.getState());
|
|
5373
5376
|
if (!i)
|
|
5374
5377
|
throw new Error(`Comment with uuid ${e} not found in store`);
|
|
5375
|
-
this.dispatch(
|
|
5378
|
+
this.dispatch(ni(e));
|
|
5376
5379
|
const n = this.enqueueRequest({
|
|
5377
5380
|
description: "Delete comment",
|
|
5378
5381
|
method: u.DELETE,
|
|
@@ -5381,7 +5384,7 @@ class jb extends I {
|
|
|
5381
5384
|
blocks: []
|
|
5382
5385
|
});
|
|
5383
5386
|
return n.catch(() => {
|
|
5384
|
-
this.dispatch(
|
|
5387
|
+
this.dispatch(ii(i));
|
|
5385
5388
|
}), n;
|
|
5386
5389
|
}
|
|
5387
5390
|
async refreshStore(e) {
|
|
@@ -5406,7 +5409,7 @@ class Mb extends I {
|
|
|
5406
5409
|
submitted_at: n,
|
|
5407
5410
|
created_by: a
|
|
5408
5411
|
});
|
|
5409
|
-
this.dispatch(
|
|
5412
|
+
this.dispatch(ri(c));
|
|
5410
5413
|
const o = this.enqueueRequest({
|
|
5411
5414
|
description: "Create issue",
|
|
5412
5415
|
method: u.POST,
|
|
@@ -5421,18 +5424,18 @@ class Mb extends I {
|
|
|
5421
5424
|
blocks: [c.uuid]
|
|
5422
5425
|
});
|
|
5423
5426
|
return o.then((r) => {
|
|
5424
|
-
this.dispatch(
|
|
5427
|
+
this.dispatch(rt(r));
|
|
5425
5428
|
}).catch((r) => {
|
|
5426
|
-
throw this.dispatch(
|
|
5429
|
+
throw this.dispatch(oi(c.uuid)), r;
|
|
5427
5430
|
}), [c, o];
|
|
5428
5431
|
}
|
|
5429
5432
|
update(e) {
|
|
5430
5433
|
var l;
|
|
5431
|
-
const s = this.client.store.getState(), i =
|
|
5434
|
+
const s = this.client.store.getState(), i = di(e.uuid)(s);
|
|
5432
5435
|
if (!i)
|
|
5433
5436
|
throw new Error(`Attempting to update an issue with uuid ${e.uuid} that doesn't exist in the store`);
|
|
5434
5437
|
const n = { ...i, ...e };
|
|
5435
|
-
this.dispatch(
|
|
5438
|
+
this.dispatch(rt(n));
|
|
5436
5439
|
const a = {};
|
|
5437
5440
|
for (const r of [
|
|
5438
5441
|
w.TITLE,
|
|
@@ -5500,11 +5503,11 @@ class Mb extends I {
|
|
|
5500
5503
|
blocks: [e.uuid]
|
|
5501
5504
|
});
|
|
5502
5505
|
return o.catch(() => {
|
|
5503
|
-
this.dispatch(
|
|
5506
|
+
this.dispatch(rt(i)), this.dispatch(Xu(c.uuid));
|
|
5504
5507
|
}), [n, o];
|
|
5505
5508
|
}
|
|
5506
5509
|
async remove(e) {
|
|
5507
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5510
|
+
const { store: s } = this.client, i = s.getState(), n = di(e)(i);
|
|
5508
5511
|
if (!n)
|
|
5509
5512
|
throw new Error(`No issue with uuid ${e} found in the store`);
|
|
5510
5513
|
const a = Hd(e)(i), c = tl(e)(i), o = Rd(e)(i), l = {};
|
|
@@ -5513,7 +5516,7 @@ class Mb extends I {
|
|
|
5513
5516
|
for (const d of zd(e)(i))
|
|
5514
5517
|
l[d.uuid] = d;
|
|
5515
5518
|
const r = Object.values(l);
|
|
5516
|
-
this.dispatch(
|
|
5519
|
+
this.dispatch(oi(e)), a.length > 0 && this.dispatch(Qn(a.map(({ uuid: d }) => d))), c.length > 0 && this.dispatch(Zu(c.map(({ uuid: d }) => d))), o.length > 0 && this.dispatch(Ft(o.map(({ uuid: d }) => d))), r.length > 0 && this.dispatch(Kn(r.map(({ uuid: d }) => d)));
|
|
5517
5520
|
try {
|
|
5518
5521
|
return await this.enqueueRequest({
|
|
5519
5522
|
description: "Delete issue",
|
|
@@ -5523,7 +5526,7 @@ class Mb extends I {
|
|
|
5523
5526
|
blocks: []
|
|
5524
5527
|
});
|
|
5525
5528
|
} catch (d) {
|
|
5526
|
-
throw this.dispatch(
|
|
5529
|
+
throw this.dispatch(ri(n)), this.dispatch(Jn(a)), this.dispatch(Qu(c)), this.dispatch(Pt(o)), this.dispatch(Wn(r)), d;
|
|
5527
5530
|
}
|
|
5528
5531
|
}
|
|
5529
5532
|
async refreshStore(e) {
|
|
@@ -5545,7 +5548,7 @@ class Cb extends Ae {
|
|
|
5545
5548
|
super(...arguments);
|
|
5546
5549
|
A(this, "name", "Issue Type Attachment");
|
|
5547
5550
|
A(this, "url", "/issue-type-attachments");
|
|
5548
|
-
A(this, "initializeAttachments",
|
|
5551
|
+
A(this, "initializeAttachments", li);
|
|
5549
5552
|
A(this, "addAttachments", hu);
|
|
5550
5553
|
A(this, "updateAttachments", pu);
|
|
5551
5554
|
A(this, "removeAttachments", Au);
|
|
@@ -5588,7 +5591,7 @@ class Cb extends Ae {
|
|
|
5588
5591
|
blocks: [],
|
|
5589
5592
|
blockers: []
|
|
5590
5593
|
});
|
|
5591
|
-
this.dispatch(
|
|
5594
|
+
this.dispatch(li(i));
|
|
5592
5595
|
}
|
|
5593
5596
|
}
|
|
5594
5597
|
class Db extends E {
|
|
@@ -5721,7 +5724,7 @@ class zb extends E {
|
|
|
5721
5724
|
};
|
|
5722
5725
|
c.push(T);
|
|
5723
5726
|
}
|
|
5724
|
-
this.dispatch(
|
|
5727
|
+
this.dispatch(gt(a));
|
|
5725
5728
|
const o = this.enqueueRequest({
|
|
5726
5729
|
description: "Add issue type field values attachments",
|
|
5727
5730
|
method: u.POST,
|
|
@@ -5738,7 +5741,7 @@ class zb extends E {
|
|
|
5738
5741
|
this.processPresignedUrls(r), this.dispatch(zu(d));
|
|
5739
5742
|
}).catch((r) => {
|
|
5740
5743
|
throw this.dispatch(
|
|
5741
|
-
|
|
5744
|
+
St(
|
|
5742
5745
|
a.map((d) => d.uuid)
|
|
5743
5746
|
)
|
|
5744
5747
|
), r;
|
|
@@ -5746,7 +5749,7 @@ class zb extends E {
|
|
|
5746
5749
|
}
|
|
5747
5750
|
async bulkDelete(e) {
|
|
5748
5751
|
const { store: s } = this.client, i = s.getState(), n = $u(e)(i);
|
|
5749
|
-
this.dispatch(
|
|
5752
|
+
this.dispatch(St(e));
|
|
5750
5753
|
try {
|
|
5751
5754
|
await this.enqueueRequest({
|
|
5752
5755
|
description: "Delete issue type field values attachments",
|
|
@@ -5757,7 +5760,7 @@ class zb extends E {
|
|
|
5757
5760
|
blocks: []
|
|
5758
5761
|
});
|
|
5759
5762
|
} catch (a) {
|
|
5760
|
-
throw this.dispatch(
|
|
5763
|
+
throw this.dispatch(gt(n)), a;
|
|
5761
5764
|
}
|
|
5762
5765
|
}
|
|
5763
5766
|
async refreshStore(e) {
|
|
@@ -5789,12 +5792,12 @@ class Ub extends I {
|
|
|
5789
5792
|
blockers: [e.issue, e.fields_revision],
|
|
5790
5793
|
blocks: [n.uuid]
|
|
5791
5794
|
});
|
|
5792
|
-
return this.dispatch(
|
|
5793
|
-
this.dispatch(
|
|
5795
|
+
return this.dispatch(pi(n)), a.then((o) => (this.dispatch(Je(o)), o)).catch(() => {
|
|
5796
|
+
this.dispatch(fi(n.uuid));
|
|
5794
5797
|
}), [n, a];
|
|
5795
5798
|
}
|
|
5796
5799
|
update(e) {
|
|
5797
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5800
|
+
const { store: s } = this.client, i = s.getState(), n = Ai(e.uuid)(i);
|
|
5798
5801
|
if (!n)
|
|
5799
5802
|
throw new Error(`Expected IssueTypeFieldValues with uuid ${e.uuid} to exist`);
|
|
5800
5803
|
const a = {
|
|
@@ -5821,11 +5824,11 @@ class Ub extends I {
|
|
|
5821
5824
|
}), [a, c];
|
|
5822
5825
|
}
|
|
5823
5826
|
async delete(e) {
|
|
5824
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5827
|
+
const { store: s } = this.client, i = s.getState(), n = Ai(e)(i);
|
|
5825
5828
|
if (!n)
|
|
5826
5829
|
throw new Error(`Expected submission with uuid ${e} to exist`);
|
|
5827
5830
|
const a = Vu(e)(i);
|
|
5828
|
-
this.dispatch(
|
|
5831
|
+
this.dispatch(fi(e)), this.dispatch(St(a.map((c) => c.uuid)));
|
|
5829
5832
|
try {
|
|
5830
5833
|
await this.enqueueRequest({
|
|
5831
5834
|
description: "Delete issue type field values",
|
|
@@ -5835,7 +5838,7 @@ class Ub extends I {
|
|
|
5835
5838
|
blocks: []
|
|
5836
5839
|
});
|
|
5837
5840
|
} catch (c) {
|
|
5838
|
-
throw this.dispatch(
|
|
5841
|
+
throw this.dispatch(pi(n)), this.dispatch(gt(a)), c;
|
|
5839
5842
|
}
|
|
5840
5843
|
}
|
|
5841
5844
|
async refreshStore(e) {
|
|
@@ -5871,11 +5874,11 @@ class $b extends I {
|
|
|
5871
5874
|
return a.then((o) => {
|
|
5872
5875
|
this.dispatch(Qe(o));
|
|
5873
5876
|
}).catch(() => {
|
|
5874
|
-
this.dispatch(
|
|
5877
|
+
this.dispatch(Si(n.uuid));
|
|
5875
5878
|
}), [n, a];
|
|
5876
5879
|
}
|
|
5877
5880
|
update(e) {
|
|
5878
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5881
|
+
const { store: s } = this.client, i = s.getState(), n = Ti(e.uuid)(i);
|
|
5879
5882
|
if (!n)
|
|
5880
5883
|
throw new Error(`IssueType with uuid ${e.uuid} does not exist in the store.`);
|
|
5881
5884
|
const a = {
|
|
@@ -5897,11 +5900,11 @@ class $b extends I {
|
|
|
5897
5900
|
}), [a, c];
|
|
5898
5901
|
}
|
|
5899
5902
|
delete(e) {
|
|
5900
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
5903
|
+
const { store: s } = this.client, i = s.getState(), n = Ti(e)(i);
|
|
5901
5904
|
if (!n)
|
|
5902
5905
|
throw new Error(`IssueType with uuid ${e} does not exist in the store.`);
|
|
5903
|
-
const a =
|
|
5904
|
-
this.dispatch(
|
|
5906
|
+
const a = da(e)(i);
|
|
5907
|
+
this.dispatch(Si(e)), this.dispatch(du(a.map((o) => o.uuid)));
|
|
5905
5908
|
const c = this.enqueueRequest({
|
|
5906
5909
|
method: u.DELETE,
|
|
5907
5910
|
url: `/issue-types/${e}/`,
|
|
@@ -5940,13 +5943,13 @@ class Vb extends I {
|
|
|
5940
5943
|
this.dispatch(Yu(s));
|
|
5941
5944
|
}
|
|
5942
5945
|
}
|
|
5943
|
-
const
|
|
5944
|
-
function
|
|
5946
|
+
const zh = 1800;
|
|
5947
|
+
function Uh(t) {
|
|
5945
5948
|
if (!t.access) throw new Error("Missing access token");
|
|
5946
5949
|
if (!t.refresh) throw new Error("Missing refresh token");
|
|
5947
5950
|
return { accessToken: t.access, refreshToken: t.refresh };
|
|
5948
5951
|
}
|
|
5949
|
-
class Gb extends
|
|
5952
|
+
class Gb extends Dh {
|
|
5950
5953
|
constructor() {
|
|
5951
5954
|
super(...arguments);
|
|
5952
5955
|
// _getTokenPair and _getRenewedTokens don't need to use enqueueRequest from the BaseApiService because
|
|
@@ -5987,7 +5990,7 @@ class Gb extends xh {
|
|
|
5987
5990
|
* Logs the user out
|
|
5988
5991
|
*/
|
|
5989
5992
|
clearAuth() {
|
|
5990
|
-
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(yo(!1)), this.clearTokens(), this.dispatch({ type:
|
|
5993
|
+
console.debug(this.constructor.name, "clearing auth;"), this.dispatch(yo(!1)), this.clearTokens(), this.dispatch({ type: Ya }), this.dispatch({ type: ac });
|
|
5991
5994
|
}
|
|
5992
5995
|
/**
|
|
5993
5996
|
* Attempts to renew tokens
|
|
@@ -6013,11 +6016,11 @@ class Gb extends xh {
|
|
|
6013
6016
|
const i = Date.now() / 1e3;
|
|
6014
6017
|
let n;
|
|
6015
6018
|
try {
|
|
6016
|
-
n =
|
|
6019
|
+
n = Ja(s).exp ?? i;
|
|
6017
6020
|
} catch {
|
|
6018
6021
|
n = i;
|
|
6019
6022
|
}
|
|
6020
|
-
return n - i <
|
|
6023
|
+
return n - i < zh;
|
|
6021
6024
|
}
|
|
6022
6025
|
getAuthHeader() {
|
|
6023
6026
|
return `Bearer ${this.getAccessToken()}`;
|
|
@@ -6064,7 +6067,7 @@ class Gb extends xh {
|
|
|
6064
6067
|
blockers: [],
|
|
6065
6068
|
blocks: []
|
|
6066
6069
|
}).then((n) => {
|
|
6067
|
-
this.setTokens(
|
|
6070
|
+
this.setTokens(Uh(n));
|
|
6068
6071
|
});
|
|
6069
6072
|
}
|
|
6070
6073
|
}
|
|
@@ -6289,7 +6292,7 @@ class Hb extends I {
|
|
|
6289
6292
|
blockers: [],
|
|
6290
6293
|
blocks: []
|
|
6291
6294
|
});
|
|
6292
|
-
this.dispatch(
|
|
6295
|
+
this.dispatch(Aa(s));
|
|
6293
6296
|
}
|
|
6294
6297
|
}
|
|
6295
6298
|
class Wb extends Ae {
|
|
@@ -6299,7 +6302,7 @@ class Wb extends Ae {
|
|
|
6299
6302
|
A(this, "url", "/project-attachments");
|
|
6300
6303
|
A(this, "addAttachments", Ul);
|
|
6301
6304
|
A(this, "updateAttachments", Gl);
|
|
6302
|
-
A(this, "removeAttachments",
|
|
6305
|
+
A(this, "removeAttachments", Ra);
|
|
6303
6306
|
A(this, "removeAttachment", Ll);
|
|
6304
6307
|
A(this, "setAttachment", $l);
|
|
6305
6308
|
A(this, "selectAttachment", Hl);
|
|
@@ -6358,7 +6361,7 @@ class Kb extends I {
|
|
|
6358
6361
|
blocks: [e.uuid]
|
|
6359
6362
|
});
|
|
6360
6363
|
return i.then((n) => {
|
|
6361
|
-
this.dispatch(
|
|
6364
|
+
this.dispatch(qi(n));
|
|
6362
6365
|
}), i;
|
|
6363
6366
|
}
|
|
6364
6367
|
// TODO: This needs to be seperated into a update and create method
|
|
@@ -6398,7 +6401,7 @@ class Kb extends I {
|
|
|
6398
6401
|
});
|
|
6399
6402
|
const o = Promise.resolve(a).then((l) => this.enqueueRequest(l));
|
|
6400
6403
|
return o.then((l) => {
|
|
6401
|
-
this.dispatch(
|
|
6404
|
+
this.dispatch(qi(l));
|
|
6402
6405
|
}), this.dispatch(th), this.dispatch(eh(null)), this.dispatch(Zl(!1)), [n, o];
|
|
6403
6406
|
}
|
|
6404
6407
|
delete(e) {
|
|
@@ -6453,13 +6456,13 @@ class Yb extends I {
|
|
|
6453
6456
|
});
|
|
6454
6457
|
}
|
|
6455
6458
|
async delete(e) {
|
|
6456
|
-
const { store: s } = this.client, i = s.getState(), n =
|
|
6459
|
+
const { store: s } = this.client, i = s.getState(), n = qt(i), a = n[e];
|
|
6457
6460
|
if (!a)
|
|
6458
6461
|
throw new Error("Expected project to exist");
|
|
6459
6462
|
const c = ih(i).filter((d) => d.project === e);
|
|
6460
6463
|
this.dispatch(Xl(c.map(({ uuid: d }) => d)));
|
|
6461
6464
|
const o = Wl(a.uuid)(i);
|
|
6462
|
-
this.dispatch(
|
|
6465
|
+
this.dispatch(Ra(o.map(({ uuid: d }) => d)));
|
|
6463
6466
|
const l = yl(i);
|
|
6464
6467
|
this.dispatch(Al(l.map(({ uuid: d }) => d))), this.dispatch({ type: "rehydrated/setRehydrated", payload: !1 }), this.dispatch(Rl(a.uuid));
|
|
6465
6468
|
const r = nl(a.uuid)(i);
|
|
@@ -6473,7 +6476,7 @@ class Yb extends I {
|
|
|
6473
6476
|
blocks: []
|
|
6474
6477
|
}), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 });
|
|
6475
6478
|
} catch (d) {
|
|
6476
|
-
throw this.dispatch(Sl(Object.values(n))), this.dispatch(
|
|
6479
|
+
throw this.dispatch(Sl(Object.values(n))), this.dispatch(Aa(Object.values(l))), this.dispatch(Jl(c)), this.dispatch(Vl(o)), this.dispatch({ type: "rehydrated/setRehydrated", payload: !0 }), r && this.dispatch(fe({ ...r, project: a.uuid })), d;
|
|
6477
6480
|
}
|
|
6478
6481
|
}
|
|
6479
6482
|
invite(e, s) {
|
|
@@ -6531,7 +6534,7 @@ class Jb extends I {
|
|
|
6531
6534
|
return i.then((n) => {
|
|
6532
6535
|
this.dispatch(Ee(n));
|
|
6533
6536
|
}).catch(() => {
|
|
6534
|
-
this.dispatch(
|
|
6537
|
+
this.dispatch(Ci(s.uuid));
|
|
6535
6538
|
}), [s, i];
|
|
6536
6539
|
}
|
|
6537
6540
|
update(e) {
|
|
@@ -6542,7 +6545,7 @@ class Jb extends I {
|
|
|
6542
6545
|
...i,
|
|
6543
6546
|
...e
|
|
6544
6547
|
};
|
|
6545
|
-
this.dispatch(
|
|
6548
|
+
this.dispatch(Mi(n));
|
|
6546
6549
|
const a = this.enqueueRequest({
|
|
6547
6550
|
description: "Update team",
|
|
6548
6551
|
method: u.PATCH,
|
|
@@ -6561,7 +6564,7 @@ class Jb extends I {
|
|
|
6561
6564
|
const { store: s } = this.client, i = s.getState(), n = ke(e)(i);
|
|
6562
6565
|
if (!n)
|
|
6563
6566
|
throw new Error(`Expected team with uuid ${e} to exist`);
|
|
6564
|
-
this.dispatch(
|
|
6567
|
+
this.dispatch(Ci(e));
|
|
6565
6568
|
try {
|
|
6566
6569
|
return await this.enqueueRequest({
|
|
6567
6570
|
description: "Delete team",
|
|
@@ -6580,7 +6583,7 @@ class Jb extends I {
|
|
|
6580
6583
|
throw new Error(`Expected team with uuid ${e} to exist`);
|
|
6581
6584
|
if (s.length !== new Set(s).size)
|
|
6582
6585
|
throw new Error("Duplicate members found in the list");
|
|
6583
|
-
this.dispatch(
|
|
6586
|
+
this.dispatch(Mi({ ...n, members: s }));
|
|
6584
6587
|
const a = this.enqueueRequest({
|
|
6585
6588
|
description: "Set team members",
|
|
6586
6589
|
method: u.PUT,
|
|
@@ -6720,7 +6723,7 @@ class Ce {
|
|
|
6720
6723
|
constructor() {
|
|
6721
6724
|
A(this, "graph");
|
|
6722
6725
|
A(this, "requestAttemptCounter");
|
|
6723
|
-
this.graph = new
|
|
6726
|
+
this.graph = new Qa(), this.requestAttemptCounter = {};
|
|
6724
6727
|
}
|
|
6725
6728
|
/**
|
|
6726
6729
|
* Used when the app is loaded. Reconstructs the dependency graph based on an outbox from the redux-offline store.
|
|
@@ -6860,9 +6863,9 @@ class Ce {
|
|
|
6860
6863
|
}
|
|
6861
6864
|
const Zb = (t, e) => {
|
|
6862
6865
|
const s = new e(t);
|
|
6863
|
-
return
|
|
6866
|
+
return fh(s), ph(t), s;
|
|
6864
6867
|
};
|
|
6865
|
-
var
|
|
6868
|
+
var $h = /* @__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))($h || {});
|
|
6866
6869
|
export {
|
|
6867
6870
|
j as APIError,
|
|
6868
6871
|
eb as AgentService,
|
|
@@ -6883,18 +6886,18 @@ export {
|
|
|
6883
6886
|
mb as AssetTypeFieldsAttachmentService,
|
|
6884
6887
|
pb as AssetTypeFieldsService,
|
|
6885
6888
|
yb as AssetTypeService,
|
|
6886
|
-
|
|
6889
|
+
ec as AttachmentModel,
|
|
6887
6890
|
I as BaseApiService,
|
|
6888
6891
|
Xb as BaseSDK,
|
|
6889
6892
|
pc as COMMON_AUTO_FIELDS,
|
|
6890
6893
|
bb as CategoryService,
|
|
6891
|
-
|
|
6892
|
-
|
|
6894
|
+
am as DEFAULT_ISSUE_PRIORITY,
|
|
6895
|
+
nm as DEFAULT_ISSUE_STATUS,
|
|
6893
6896
|
cc as DeferredPromise,
|
|
6894
6897
|
gb as DocumentAttachmentService,
|
|
6895
6898
|
Sb as DocumentService,
|
|
6896
|
-
|
|
6897
|
-
|
|
6899
|
+
Xa as EMPTY_ARRAY,
|
|
6900
|
+
Za as EMPTY_OBJECT,
|
|
6898
6901
|
Tb as EmailDomainsService,
|
|
6899
6902
|
Rb as EmailVerificationService,
|
|
6900
6903
|
_b as FileService,
|
|
@@ -6909,9 +6912,9 @@ export {
|
|
|
6909
6912
|
kb as IssueAttachmentService,
|
|
6910
6913
|
qb as IssueCommentAttachmentService,
|
|
6911
6914
|
jb as IssueCommentService,
|
|
6912
|
-
|
|
6915
|
+
Gi as IssuePriority,
|
|
6913
6916
|
Mb as IssueService,
|
|
6914
|
-
|
|
6917
|
+
Li as IssueStatus,
|
|
6915
6918
|
Cb as IssueTypeAttachmentService,
|
|
6916
6919
|
zb as IssueTypeFieldValuesAttachmentService,
|
|
6917
6920
|
Ub as IssueTypeFieldValuesService,
|
|
@@ -6921,16 +6924,16 @@ export {
|
|
|
6921
6924
|
w as IssueUpdateChange,
|
|
6922
6925
|
Vb as IssueUpdateService,
|
|
6923
6926
|
Gb as JWTService,
|
|
6924
|
-
|
|
6927
|
+
sc as LicenseLevel,
|
|
6925
6928
|
Lb as LicenseService,
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
+
ic as LicenseStatus,
|
|
6930
|
+
nc as OUTBOX_RETRY_DELAY,
|
|
6931
|
+
Vi as OrganizationAccessLevel,
|
|
6929
6932
|
Bb as OrganizationAccessService,
|
|
6930
6933
|
Nb as OrganizationService,
|
|
6931
6934
|
Ce as OutboxCoordinator,
|
|
6932
|
-
|
|
6933
|
-
|
|
6935
|
+
tc as PaddleCheckoutEvent,
|
|
6936
|
+
$i as ProjectAccessLevel,
|
|
6934
6937
|
Hb as ProjectAccessService,
|
|
6935
6938
|
Wb as ProjectAttachmentService,
|
|
6936
6939
|
Kb as ProjectFileService,
|
|
@@ -6938,272 +6941,274 @@ export {
|
|
|
6938
6941
|
Jb as TeamService,
|
|
6939
6942
|
ze as UNKNOWN_ERROR_MESSAGE,
|
|
6940
6943
|
Qb as UserService,
|
|
6941
|
-
|
|
6942
|
-
|
|
6944
|
+
it as VERSION_REDUCER_KEY,
|
|
6945
|
+
$h as VerificationCodeType,
|
|
6943
6946
|
Dl as _setLatestRetryTime,
|
|
6944
6947
|
_l as acceptProjectInvite,
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6948
|
+
ss as addAsset,
|
|
6949
|
+
vm as addAssetAttachment,
|
|
6950
|
+
Ki as addAssetAttachments,
|
|
6951
|
+
Xt as addAssetProcedure,
|
|
6952
|
+
km as addAssetProcedureAttachment,
|
|
6950
6953
|
kc as addAssetProcedureAttachments,
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
+
Bt as addAssetProcedureFieldValues,
|
|
6955
|
+
Jm as addAssetProcedureFieldValuesAttachment,
|
|
6956
|
+
mt as addAssetProcedureFieldValuesAttachments,
|
|
6954
6957
|
cr as addAssetProcedureFieldValuesMany,
|
|
6955
6958
|
Kc as addAssetProcedureFields,
|
|
6956
|
-
|
|
6959
|
+
Cm as addAssetProcedureFieldsAttachment,
|
|
6957
6960
|
Vc as addAssetProcedureFieldsAttachments,
|
|
6958
|
-
|
|
6959
|
-
|
|
6961
|
+
Gm as addAssetProcedureFieldsMany,
|
|
6962
|
+
Kt as addAssetProcedureInstance,
|
|
6960
6963
|
hr as addAssetProcedureInstances,
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6964
|
+
lp as addAssetProcedures,
|
|
6965
|
+
Ip as addAssetStage,
|
|
6966
|
+
cs as addAssetStageCompletion,
|
|
6967
|
+
rs as addAssetStageCompletions,
|
|
6968
|
+
ls as addAssetStages,
|
|
6969
|
+
Os as addAssetType,
|
|
6970
|
+
wp as addAssetTypeAttachment,
|
|
6971
|
+
bn as addAssetTypeAttachments,
|
|
6972
|
+
Ss as addAssetTypeFieldValues,
|
|
6973
|
+
Wp as addAssetTypeFieldValuesAttachment,
|
|
6974
|
+
ft as addAssetTypeFieldValuesAttachments,
|
|
6972
6975
|
uo as addAssetTypeFieldValuesMany,
|
|
6973
6976
|
Qr as addAssetTypeFields,
|
|
6974
|
-
|
|
6977
|
+
qp as addAssetTypeFieldsAttachment,
|
|
6975
6978
|
Br as addAssetTypeFieldsAttachments,
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6979
|
+
Up as addAssetTypeFieldsMany,
|
|
6980
|
+
cf as addAssetTypes,
|
|
6981
|
+
ln as addAssets,
|
|
6982
|
+
ws as addCategory,
|
|
6980
6983
|
bc as addConversation,
|
|
6981
|
-
|
|
6984
|
+
bf as addDocumentAttachment,
|
|
6982
6985
|
Oo as addDocumentAttachments,
|
|
6983
6986
|
Mo as addDocuments,
|
|
6984
6987
|
Vo as addEmailDomain,
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
+
zs as addForm,
|
|
6989
|
+
xn as addFormRevision,
|
|
6990
|
+
Pf as addFormRevisionAttachment,
|
|
6988
6991
|
Qo as addFormRevisionAttachments,
|
|
6989
6992
|
ad as addFormRevisions,
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6993
|
+
Gs as addFormSubmission,
|
|
6994
|
+
zf as addFormSubmissionAttachment,
|
|
6995
|
+
yt as addFormSubmissionAttachments,
|
|
6996
|
+
Pt as addFormSubmissions,
|
|
6997
|
+
Cf as addForms,
|
|
6995
6998
|
Fd as addGeoImage,
|
|
6996
6999
|
vd as addGeoImages,
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7000
|
+
ri as addIssue,
|
|
7001
|
+
Ys as addIssueAssociation,
|
|
7002
|
+
Wn as addIssueAssociations,
|
|
7003
|
+
Qf as addIssueAttachment,
|
|
7004
|
+
Jn as addIssueAttachments,
|
|
7005
|
+
ii as addIssueComment,
|
|
7006
|
+
eA as addIssueCommentAttachment,
|
|
7004
7007
|
Yd as addIssueCommentAttachments,
|
|
7005
|
-
|
|
7008
|
+
nA as addIssueComments,
|
|
7006
7009
|
Bu as addIssueType,
|
|
7007
|
-
|
|
7010
|
+
oA as addIssueTypeAttachment,
|
|
7008
7011
|
hu as addIssueTypeAttachments,
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7012
|
+
pi as addIssueTypeFieldValues,
|
|
7013
|
+
MA as addIssueTypeFieldValuesAttachment,
|
|
7014
|
+
gt as addIssueTypeFieldValuesAttachments,
|
|
7015
|
+
gA as addIssueTypeFieldValuesMany,
|
|
7013
7016
|
qu as addIssueTypeFields,
|
|
7014
|
-
|
|
7017
|
+
hA as addIssueTypeFieldsAttachment,
|
|
7015
7018
|
Ru as addIssueTypeFieldsAttachments,
|
|
7016
|
-
|
|
7019
|
+
IA as addIssueTypeFieldsMany,
|
|
7017
7020
|
Ju as addIssueUpdate,
|
|
7018
7021
|
Qu as addIssueUpdates,
|
|
7019
7022
|
ou as addIssues,
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7023
|
+
BA as addLicenses,
|
|
7024
|
+
_y as addOrganization,
|
|
7025
|
+
Ry as addOrganizations,
|
|
7026
|
+
py as addProject,
|
|
7027
|
+
Dy as addProjectAttachment,
|
|
7025
7028
|
Ul as addProjectAttachments,
|
|
7026
|
-
|
|
7029
|
+
$y as addProjectFile,
|
|
7027
7030
|
Jl as addProjectFiles,
|
|
7028
|
-
|
|
7031
|
+
my as addProjects,
|
|
7029
7032
|
oh as addTeam,
|
|
7030
|
-
|
|
7031
|
-
|
|
7033
|
+
QA as addUser,
|
|
7034
|
+
JA as addUsers,
|
|
7032
7035
|
Tc as agentsReducer,
|
|
7033
|
-
|
|
7034
|
-
|
|
7036
|
+
Ni as agentsSlice,
|
|
7037
|
+
lm as areArraysEqual,
|
|
7035
7038
|
wc as assetAttachmentReducer,
|
|
7036
|
-
|
|
7039
|
+
Wi as assetAttachmentSlice,
|
|
7037
7040
|
Uc as assetProcedureAttachmentReducer,
|
|
7038
|
-
|
|
7041
|
+
Ji as assetProcedureAttachmentSlice,
|
|
7039
7042
|
nr as assetProcedureFieldValuesAttachmentReducer,
|
|
7040
|
-
|
|
7043
|
+
en as assetProcedureFieldValuesAttachmentSlice,
|
|
7041
7044
|
ur as assetProcedureFieldValuesReducer,
|
|
7042
|
-
|
|
7045
|
+
sn as assetProcedureFieldValuesSlice,
|
|
7043
7046
|
Hc as assetProcedureFieldsAttachmentReducer,
|
|
7044
|
-
|
|
7047
|
+
Qi as assetProcedureFieldsAttachmentSlice,
|
|
7045
7048
|
Xc as assetProcedureFieldsReducer,
|
|
7046
|
-
|
|
7049
|
+
Xi as assetProcedureFieldsSlice,
|
|
7047
7050
|
fr as assetProcedureInstanceReducer,
|
|
7048
|
-
|
|
7051
|
+
an as assetProcedureInstanceSlice,
|
|
7049
7052
|
br as assetProcedureReducer,
|
|
7050
|
-
|
|
7053
|
+
on as assetProcedureSlice,
|
|
7051
7054
|
Rr as assetReducer,
|
|
7052
|
-
|
|
7055
|
+
un as assetSlice,
|
|
7053
7056
|
Pr as assetStageCompletionReducer,
|
|
7054
|
-
|
|
7057
|
+
pn as assetStageCompletionSlice,
|
|
7055
7058
|
kr as assetStageReducer,
|
|
7056
|
-
|
|
7059
|
+
An as assetStageSlice,
|
|
7057
7060
|
Gr as assetTypeAttachmentReducer,
|
|
7058
|
-
|
|
7061
|
+
yn as assetTypeAttachmentSlice,
|
|
7059
7062
|
ro as assetTypeFieldValuesAttachmentReducer,
|
|
7060
|
-
|
|
7063
|
+
Rn as assetTypeFieldValuesAttachmentSlice,
|
|
7061
7064
|
po as assetTypeFieldValuesReducer,
|
|
7062
|
-
|
|
7065
|
+
On as assetTypeFieldValuesSlice,
|
|
7063
7066
|
Yr as assetTypeFieldsAttachmentReducer,
|
|
7064
|
-
|
|
7067
|
+
Sn as assetTypeFieldsAttachmentSlice,
|
|
7065
7068
|
to as assetTypeFieldsReducer,
|
|
7066
|
-
|
|
7069
|
+
Tn as assetTypeFieldsSlice,
|
|
7067
7070
|
Ao as assetTypeReducer,
|
|
7068
|
-
|
|
7071
|
+
Pn as assetTypeSlice,
|
|
7069
7072
|
bo as authReducer,
|
|
7070
|
-
|
|
7071
|
-
|
|
7073
|
+
Ot as authSlice,
|
|
7074
|
+
Qy as baseReducer,
|
|
7075
|
+
va as baseReducers,
|
|
7076
|
+
ym as blobToBase64,
|
|
7072
7077
|
Ro as categoryReducer,
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7078
|
+
vn as categorySlice,
|
|
7079
|
+
hf as clearTokens,
|
|
7080
|
+
Am as constructUploadedFilePayloads,
|
|
7081
|
+
dm as coordinatesAreEqual,
|
|
7077
7082
|
_ as createModelAdapter,
|
|
7078
|
-
|
|
7083
|
+
om as createMultiPointGeometry,
|
|
7079
7084
|
jl as createOfflineAction,
|
|
7080
7085
|
F as createPayload,
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7086
|
+
rm as createPointGeometry,
|
|
7087
|
+
cm as createSelectionAdapter,
|
|
7088
|
+
is as deleteAsset,
|
|
7084
7089
|
Oc as deleteAssetAttachment,
|
|
7085
|
-
|
|
7086
|
-
|
|
7090
|
+
Yi as deleteAssetAttachments,
|
|
7091
|
+
Zt as deleteAssetProcedure,
|
|
7087
7092
|
Mc as deleteAssetProcedureAttachment,
|
|
7088
7093
|
Cc as deleteAssetProcedureAttachments,
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7094
|
+
Nt as deleteAssetProcedureFieldValues,
|
|
7095
|
+
ep as deleteAssetProcedureFieldValuesAttachment,
|
|
7096
|
+
pt as deleteAssetProcedureFieldValuesAttachments,
|
|
7092
7097
|
or as deleteAssetProcedureFieldValuesMany,
|
|
7093
7098
|
Jc as deleteAssetProcedureFields,
|
|
7094
|
-
|
|
7099
|
+
Um as deleteAssetProcedureFieldsAttachment,
|
|
7095
7100
|
Lc as deleteAssetProcedureFieldsAttachments,
|
|
7096
|
-
|
|
7097
|
-
|
|
7101
|
+
Hm as deleteAssetProcedureFieldsMany,
|
|
7102
|
+
Yt as deleteAssetProcedureInstance,
|
|
7098
7103
|
mr as deleteAssetProcedureInstances,
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7104
|
+
mp as deleteAssetProcedures,
|
|
7105
|
+
Pp as deleteAssetStage,
|
|
7106
|
+
os as deleteAssetStageCompletion,
|
|
7107
|
+
ds as deleteAssetStageCompletions,
|
|
7108
|
+
ms as deleteAssetStages,
|
|
7109
|
+
Is as deleteAssetType,
|
|
7105
7110
|
xr as deleteAssetTypeAttachment,
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7111
|
+
gn as deleteAssetTypeAttachments,
|
|
7112
|
+
Ts as deleteAssetTypeFieldValues,
|
|
7113
|
+
Qp as deleteAssetTypeFieldValuesAttachment,
|
|
7114
|
+
At as deleteAssetTypeFieldValuesAttachments,
|
|
7110
7115
|
ho as deleteAssetTypeFieldValuesMany,
|
|
7111
7116
|
Zr as deleteAssetTypeFields,
|
|
7112
|
-
|
|
7117
|
+
Dp as deleteAssetTypeFieldsAttachment,
|
|
7113
7118
|
Hr as deleteAssetTypeFieldsAttachments,
|
|
7114
|
-
|
|
7115
|
-
|
|
7119
|
+
Lp as deleteAssetTypeFieldsMany,
|
|
7120
|
+
of as deleteAssetTypes,
|
|
7116
7121
|
Sr as deleteAssets,
|
|
7117
7122
|
To as deleteCategory,
|
|
7118
7123
|
Fo as deleteDocumentAttachment,
|
|
7119
7124
|
vo as deleteDocumentAttachments,
|
|
7120
7125
|
Go as deleteEmailDomain,
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7126
|
+
Us as deleteForm,
|
|
7127
|
+
zn as deleteFormRevision,
|
|
7128
|
+
Ef as deleteFormRevisionAttachment,
|
|
7124
7129
|
Zo as deleteFormRevisionAttachments,
|
|
7125
7130
|
cd as deleteFormRevisions,
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
+
Ls as deleteFormSubmission,
|
|
7132
|
+
Gf as deleteFormSubmissionAttachment,
|
|
7133
|
+
bt as deleteFormSubmissionAttachments,
|
|
7134
|
+
Ft as deleteFormSubmissions,
|
|
7135
|
+
Hs as deleteGeoImage,
|
|
7131
7136
|
Ed as deleteGeoImages,
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7137
|
+
oi as deleteIssue,
|
|
7138
|
+
Js as deleteIssueAssociation,
|
|
7139
|
+
Kn as deleteIssueAssociations,
|
|
7135
7140
|
Ld as deleteIssueAttachment,
|
|
7136
|
-
|
|
7137
|
-
|
|
7141
|
+
Qn as deleteIssueAttachments,
|
|
7142
|
+
ni as deleteIssueComment,
|
|
7138
7143
|
Xd as deleteIssueCommentAttachment,
|
|
7139
7144
|
Zd as deleteIssueCommentAttachments,
|
|
7140
|
-
|
|
7145
|
+
aA as deleteIssueComments,
|
|
7141
7146
|
fu as deleteIssueTypeAttachment,
|
|
7142
7147
|
Au as deleteIssueTypeAttachments,
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7148
|
+
fi as deleteIssueTypeFieldValues,
|
|
7149
|
+
zA as deleteIssueTypeFieldValuesAttachment,
|
|
7150
|
+
St as deleteIssueTypeFieldValuesAttachments,
|
|
7151
|
+
_A as deleteIssueTypeFieldValuesMany,
|
|
7147
7152
|
Mu as deleteIssueTypeFields,
|
|
7148
|
-
|
|
7153
|
+
AA as deleteIssueTypeFieldsAttachment,
|
|
7149
7154
|
Ou as deleteIssueTypeFieldsAttachments,
|
|
7150
|
-
|
|
7155
|
+
wA as deleteIssueTypeFieldsMany,
|
|
7151
7156
|
Xu as deleteIssueUpdate,
|
|
7152
7157
|
Zu as deleteIssueUpdates,
|
|
7153
7158
|
du as deleteIssues,
|
|
7154
|
-
|
|
7159
|
+
Py as deleteOrganization,
|
|
7155
7160
|
ll as deleteOrganizationAccess,
|
|
7156
|
-
|
|
7161
|
+
Fy as deleteOrganizations,
|
|
7157
7162
|
Rl as deleteProject,
|
|
7158
7163
|
fl as deleteProjectAccess,
|
|
7159
7164
|
Al as deleteProjectAccesses,
|
|
7160
7165
|
Ll as deleteProjectAttachment,
|
|
7161
|
-
|
|
7166
|
+
Ra as deleteProjectAttachments,
|
|
7162
7167
|
Ql as deleteProjectFile,
|
|
7163
7168
|
Xl as deleteProjectFiles,
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
+
Ay as deleteProjects,
|
|
7170
|
+
Ci as deleteTeam,
|
|
7171
|
+
ey as deleteUser,
|
|
7172
|
+
ty as deleteUsers,
|
|
7173
|
+
Rh as dequeue,
|
|
7169
7174
|
Ua as discard,
|
|
7170
7175
|
qo as documentAttachmentReducer,
|
|
7171
|
-
|
|
7172
|
-
|
|
7176
|
+
En as documentAttachmentSlice,
|
|
7177
|
+
kn as documentSlice,
|
|
7173
7178
|
zo as documentsReducer,
|
|
7174
|
-
|
|
7175
|
-
|
|
7179
|
+
bm as downloadFile,
|
|
7180
|
+
fm as downloadInMemoryFile,
|
|
7176
7181
|
No as emailDomainsReducer,
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7182
|
+
qn as emailDomainsSlice,
|
|
7183
|
+
Im as emailRegex,
|
|
7184
|
+
Th as enqueue,
|
|
7180
7185
|
Ml as enqueueRequest,
|
|
7181
7186
|
b as fallbackToEmptyArray,
|
|
7182
7187
|
Ue as fallbackToEmptyObject,
|
|
7183
7188
|
Yo as fileReducer,
|
|
7184
|
-
|
|
7189
|
+
Mn as fileSlice,
|
|
7185
7190
|
mc as fileToBlob,
|
|
7186
7191
|
ld as formReducer,
|
|
7187
7192
|
td as formRevisionAttachmentReducer,
|
|
7188
|
-
|
|
7193
|
+
Cn as formRevisionAttachmentSlice,
|
|
7189
7194
|
dd as formRevisionReducer,
|
|
7190
|
-
|
|
7191
|
-
|
|
7195
|
+
Dn as formRevisionsSlice,
|
|
7196
|
+
Un as formSlice,
|
|
7192
7197
|
bd as formSubmissionAttachmentReducer,
|
|
7193
|
-
|
|
7198
|
+
$n as formSubmissionAttachmentSlice,
|
|
7194
7199
|
Od as formSubmissionReducer,
|
|
7195
|
-
|
|
7200
|
+
Gn as formSubmissionSlice,
|
|
7196
7201
|
jd as geoImageReducer,
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7202
|
+
Nn as geoImageSlice,
|
|
7203
|
+
pm as getFileIdentifier,
|
|
7204
|
+
Mt as getFileS3Key,
|
|
7200
7205
|
oc as getLocalDateString,
|
|
7201
|
-
|
|
7206
|
+
mm as getLocalRelativeDateString,
|
|
7202
7207
|
ve as getOutboxCoordinator,
|
|
7203
7208
|
hc as getRenamedFile,
|
|
7204
7209
|
De as hashFile,
|
|
7205
7210
|
Zb as initSDK,
|
|
7206
|
-
|
|
7211
|
+
zt as initializeAssetAttachments,
|
|
7207
7212
|
Ec as initializeAssetProcedureAttachments,
|
|
7208
7213
|
ar as initializeAssetProcedureFieldValues,
|
|
7209
7214
|
Zc as initializeAssetProcedureFieldValuesAttachments,
|
|
@@ -7231,9 +7236,9 @@ export {
|
|
|
7231
7236
|
ud as initializeForms,
|
|
7232
7237
|
Id as initializeGeoImages,
|
|
7233
7238
|
Md as initializeIssueAssociations,
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7239
|
+
Xs as initializeIssueAttachments,
|
|
7240
|
+
ei as initializeIssueCommentAttachments,
|
|
7241
|
+
li as initializeIssueTypeAttachments,
|
|
7237
7242
|
vu as initializeIssueTypeFieldValues,
|
|
7238
7243
|
xu as initializeIssueTypeFieldValuesAttachments,
|
|
7239
7244
|
ku as initializeIssueTypeFields,
|
|
@@ -7243,482 +7248,482 @@ export {
|
|
|
7243
7248
|
ru as initializeIssues,
|
|
7244
7249
|
il as initializeLicences,
|
|
7245
7250
|
dl as initializeOrganizationAccesses,
|
|
7246
|
-
|
|
7247
|
-
|
|
7251
|
+
Sy as initializeOrganizations,
|
|
7252
|
+
Aa as initializeProjectAccesses,
|
|
7248
7253
|
zl as initializeProjectAttachments,
|
|
7249
7254
|
Yl as initializeProjectFiles,
|
|
7250
|
-
|
|
7255
|
+
ly as initializeProjects,
|
|
7251
7256
|
rh as initializeTeams,
|
|
7252
7257
|
cl as initializeUsers,
|
|
7253
|
-
|
|
7258
|
+
hm as isToday,
|
|
7254
7259
|
$d as issueAssociationReducer,
|
|
7255
|
-
|
|
7260
|
+
Hn as issueAssociationSlice,
|
|
7256
7261
|
Kd as issueAttachmentReducer,
|
|
7257
|
-
|
|
7262
|
+
Yn as issueAttachmentSlice,
|
|
7258
7263
|
iu as issueCommentAttachmentReducer,
|
|
7259
|
-
|
|
7264
|
+
Xn as issueCommentAttachmentSlice,
|
|
7260
7265
|
cu as issueCommentReducer,
|
|
7261
|
-
|
|
7266
|
+
Zn as issueCommentSlice,
|
|
7262
7267
|
lu as issueReducer,
|
|
7263
|
-
|
|
7268
|
+
ea as issueSlice,
|
|
7264
7269
|
Su as issueTypeAttachmentReducer,
|
|
7265
|
-
|
|
7270
|
+
ta as issueTypeAttachmentSlice,
|
|
7266
7271
|
Gu as issueTypeFieldValuesAttachmentReducer,
|
|
7267
|
-
|
|
7272
|
+
ca as issueTypeFieldValuesAttachmentSlice,
|
|
7268
7273
|
Eu as issueTypeFieldValuesReducer,
|
|
7269
|
-
|
|
7274
|
+
ia as issueTypeFieldValuesSlice,
|
|
7270
7275
|
Fu as issueTypeFieldsAttachmentReducer,
|
|
7271
|
-
|
|
7276
|
+
sa as issueTypeFieldsAttachmentSlice,
|
|
7272
7277
|
Du as issueTypeFieldsReducer,
|
|
7273
|
-
|
|
7278
|
+
aa as issueTypeFieldsSlice,
|
|
7274
7279
|
Ku as issueTypeReducer,
|
|
7275
|
-
|
|
7280
|
+
oa as issueTypeSlice,
|
|
7276
7281
|
sl as issueUpdateReducer,
|
|
7277
|
-
|
|
7282
|
+
ua as issueUpdateSlice,
|
|
7278
7283
|
al as licenseReducer,
|
|
7279
|
-
|
|
7280
|
-
|
|
7284
|
+
la as licenseSlice,
|
|
7285
|
+
gm as logOnlyOnce,
|
|
7281
7286
|
Cl as markAsDeleted,
|
|
7282
|
-
|
|
7283
|
-
|
|
7287
|
+
Cy as markForDeletion,
|
|
7288
|
+
Bi as memoize,
|
|
7284
7289
|
Co as moveDocument,
|
|
7285
7290
|
O as offline,
|
|
7286
|
-
|
|
7291
|
+
Om as onlyUniqueHashes,
|
|
7287
7292
|
Ac as onlyUniqueOfflineIds,
|
|
7288
7293
|
ml as organizationAccessReducer,
|
|
7289
|
-
|
|
7294
|
+
ma as organizationAccessSlice,
|
|
7290
7295
|
ql as organizationReducer,
|
|
7291
|
-
|
|
7296
|
+
ga as organizationSlice,
|
|
7292
7297
|
xl as outboxReducer,
|
|
7293
|
-
|
|
7298
|
+
Sa as outboxSlice,
|
|
7294
7299
|
Zy as overmapEnhancer,
|
|
7295
|
-
|
|
7296
|
-
|
|
7300
|
+
Xy as overmapReducer,
|
|
7301
|
+
mh as overmapReducers,
|
|
7297
7302
|
Da as performRequest,
|
|
7298
7303
|
gl as projectAccessReducer,
|
|
7299
|
-
|
|
7304
|
+
fa as projectAccessSlice,
|
|
7300
7305
|
Kl as projectAttachmentReducer,
|
|
7301
|
-
|
|
7306
|
+
Ta as projectAttachmentSlice,
|
|
7302
7307
|
nh as projectFileReducer,
|
|
7303
|
-
|
|
7308
|
+
_a as projectFileSlice,
|
|
7304
7309
|
Ol as projectReducer,
|
|
7305
|
-
|
|
7310
|
+
ba as projectSlice,
|
|
7306
7311
|
ch as rehydratedReducer,
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7312
|
+
Oa as rehydratedSlice,
|
|
7313
|
+
js as removeDocuments,
|
|
7314
|
+
Si as removeIssueType,
|
|
7310
7315
|
rl as removeUser,
|
|
7311
|
-
|
|
7312
|
-
|
|
7316
|
+
Gy as resetProjectFileObjectUrls,
|
|
7317
|
+
ac as resetStore,
|
|
7313
7318
|
y as restructureCreateSelectorWithArgs,
|
|
7314
7319
|
th as saveActiveProjectFileBounds,
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7320
|
+
mf as selectAccessToken,
|
|
7321
|
+
ry as selectActiveOrganizationAccess,
|
|
7322
|
+
By as selectActiveProjectFileId,
|
|
7323
|
+
HA as selectActiveStatusLicenses,
|
|
7319
7324
|
Eo as selectAllDocumentAttachments,
|
|
7320
7325
|
Nl as selectAllProjectAttachments,
|
|
7321
|
-
|
|
7326
|
+
_f as selectAncestorIdsOfDocument,
|
|
7322
7327
|
Fc as selectAssetAttachmentById,
|
|
7323
7328
|
Ic as selectAssetAttachmentMapping,
|
|
7324
7329
|
Pc as selectAssetAttachments,
|
|
7325
|
-
|
|
7330
|
+
ns as selectAssetById,
|
|
7326
7331
|
zc as selectAssetProcedureAttachmentById,
|
|
7327
7332
|
Dc as selectAssetProcedureAttachmentMapping,
|
|
7328
7333
|
xc as selectAssetProcedureAttachments,
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7334
|
+
es as selectAssetProcedureById,
|
|
7335
|
+
nn as selectAssetProcedureFieldValues,
|
|
7336
|
+
tp as selectAssetProcedureFieldValuesAttachmentById,
|
|
7332
7337
|
tr as selectAssetProcedureFieldValuesAttachments,
|
|
7333
7338
|
sr as selectAssetProcedureFieldValuesAttachmentsByIds,
|
|
7334
|
-
|
|
7335
|
-
|
|
7339
|
+
tn as selectAssetProcedureFieldValuesAttachmentsMapping,
|
|
7340
|
+
Ht as selectAssetProcedureFieldValuesById,
|
|
7336
7341
|
dr as selectAssetProcedureFieldValuesMapping,
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7342
|
+
np as selectAssetProcedureFieldValuesOfAsset,
|
|
7343
|
+
Zi as selectAssetProcedureFields,
|
|
7344
|
+
Vm as selectAssetProcedureFieldsAttachmentById,
|
|
7340
7345
|
Nc as selectAssetProcedureFieldsAttachments,
|
|
7341
7346
|
Bc as selectAssetProcedureFieldsAttachmentsMapping,
|
|
7342
|
-
|
|
7347
|
+
Ym as selectAssetProcedureFieldsById,
|
|
7343
7348
|
Qc as selectAssetProcedureFieldsMapping,
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
+
Wm as selectAssetProcedureFieldsOfAssetProcedure,
|
|
7350
|
+
Jt as selectAssetProcedureInstanceById,
|
|
7351
|
+
rn as selectAssetProcedureInstances,
|
|
7352
|
+
up as selectAssetProcedureInstancesByIds,
|
|
7353
|
+
cn as selectAssetProcedureInstancesMapping,
|
|
7349
7354
|
pr as selectAssetProcedureInstancesOfAssetProcedure,
|
|
7350
|
-
|
|
7355
|
+
dp as selectAssetProcedureInstancesOfAssetType,
|
|
7351
7356
|
yr as selectAssetProcedures,
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7357
|
+
yp as selectAssetProceduresByIds,
|
|
7358
|
+
dn as selectAssetProceduresMapping,
|
|
7359
|
+
Ap as selectAssetProceduresOfOrganization,
|
|
7355
7360
|
qr as selectAssetStageById,
|
|
7356
7361
|
Fr as selectAssetStageCompletionById,
|
|
7357
|
-
|
|
7358
|
-
|
|
7362
|
+
fn as selectAssetStageCompletionMapping,
|
|
7363
|
+
_p as selectAssetStageCompletions,
|
|
7359
7364
|
vr as selectAssetStageCompletionsByIds,
|
|
7360
7365
|
jr as selectAssetStages,
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7366
|
+
ps as selectAssetStagesByIds,
|
|
7367
|
+
Fp as selectAssetStagesMappingOfAssetProcedure,
|
|
7368
|
+
vp as selectAssetStagesOfAssetProcedure,
|
|
7364
7369
|
$r as selectAssetTypeAttachmentById,
|
|
7365
7370
|
zr as selectAssetTypeAttachmentMapping,
|
|
7366
7371
|
Ur as selectAssetTypeAttachments,
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7372
|
+
Ps as selectAssetTypeById,
|
|
7373
|
+
In as selectAssetTypeFieldValues,
|
|
7374
|
+
Xp as selectAssetTypeFieldValuesAttachmentById,
|
|
7370
7375
|
no as selectAssetTypeFieldValuesAttachments,
|
|
7371
7376
|
ao as selectAssetTypeFieldValuesAttachmentsByIds,
|
|
7372
|
-
|
|
7373
|
-
|
|
7377
|
+
_n as selectAssetTypeFieldValuesAttachmentsMapping,
|
|
7378
|
+
Rs as selectAssetTypeFieldValuesById,
|
|
7374
7379
|
mo as selectAssetTypeFieldValuesMapping,
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7380
|
+
tf as selectAssetTypeFieldValuesOfAsset,
|
|
7381
|
+
_t as selectAssetTypeFields,
|
|
7382
|
+
zp as selectAssetTypeFieldsAttachmentById,
|
|
7378
7383
|
Kr as selectAssetTypeFieldsAttachments,
|
|
7379
7384
|
Wr as selectAssetTypeFieldsAttachmentsMapping,
|
|
7380
|
-
|
|
7385
|
+
Hp as selectAssetTypeFieldsById,
|
|
7381
7386
|
eo as selectAssetTypeFieldsMapping,
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
+
Bp as selectAssetTypeFieldsOfAssetType,
|
|
7388
|
+
sf as selectAssetTypeValuesOfAssetType,
|
|
7389
|
+
df as selectAssetTypes,
|
|
7390
|
+
uf as selectAssetTypesByIds,
|
|
7391
|
+
Fn as selectAssetTypesMapping,
|
|
7387
7392
|
Tr as selectAssets,
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7393
|
+
Tp as selectAssetsByIds,
|
|
7394
|
+
hn as selectAssetsMapping,
|
|
7395
|
+
mn as selectAssetsOfAssetType,
|
|
7391
7396
|
vc as selectAttachmentsOfAsset,
|
|
7392
|
-
|
|
7397
|
+
Mm as selectAttachmentsOfAssetProcedure,
|
|
7393
7398
|
ir as selectAttachmentsOfAssetProcedureFieldValues,
|
|
7394
|
-
|
|
7399
|
+
$m as selectAttachmentsOfAssetProcedureFields,
|
|
7395
7400
|
Vr as selectAttachmentsOfAssetType,
|
|
7396
7401
|
co as selectAttachmentsOfAssetTypeFieldValues,
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7402
|
+
xp as selectAttachmentsOfAssetTypeFields,
|
|
7403
|
+
Tf as selectAttachmentsOfDocument,
|
|
7404
|
+
kf as selectAttachmentsOfFormRevision,
|
|
7400
7405
|
yd as selectAttachmentsOfFormSubmission,
|
|
7401
7406
|
Hd as selectAttachmentsOfIssue,
|
|
7402
|
-
|
|
7403
|
-
|
|
7407
|
+
iA as selectAttachmentsOfIssueComment,
|
|
7408
|
+
lA as selectAttachmentsOfIssueType,
|
|
7404
7409
|
Vu as selectAttachmentsOfIssueTypeFieldValues,
|
|
7405
|
-
|
|
7410
|
+
yA as selectAttachmentsOfIssueTypeFields,
|
|
7406
7411
|
Wl as selectAttachmentsOfProject,
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7412
|
+
ff as selectCategories,
|
|
7413
|
+
Af as selectCategoriesByIds,
|
|
7414
|
+
Es as selectCategoryById,
|
|
7415
|
+
wn as selectCategoryMapping,
|
|
7416
|
+
cA as selectCommentsOfIssue,
|
|
7417
|
+
Fm as selectConversation,
|
|
7418
|
+
Hi as selectConversationMapping,
|
|
7419
|
+
Pm as selectConversations,
|
|
7420
|
+
Et as selectCurrentUser,
|
|
7421
|
+
jy as selectDeletedRequests,
|
|
7417
7422
|
ko as selectDocumentAttachmentById,
|
|
7418
7423
|
wo as selectDocumentAttachmentMapping,
|
|
7419
7424
|
xo as selectDocumentById,
|
|
7420
7425
|
Do as selectDocuments,
|
|
7421
|
-
|
|
7426
|
+
Rf as selectDocumentsByIds,
|
|
7422
7427
|
xe as selectDocumentsMapping,
|
|
7423
7428
|
Bo as selectEmailDomains,
|
|
7424
7429
|
Lo as selectEmailDomainsAsMapping,
|
|
7425
|
-
|
|
7426
|
-
|
|
7430
|
+
If as selectEmailDomainsOfOrganization,
|
|
7431
|
+
ap as selectFieldValuesOfAssetProcedureInstance,
|
|
7427
7432
|
md as selectFormById,
|
|
7428
7433
|
hd as selectFormMapping,
|
|
7429
7434
|
ed as selectFormRevisionAttachmentsMapping,
|
|
7430
|
-
|
|
7431
|
-
|
|
7435
|
+
qf as selectFormRevisionById,
|
|
7436
|
+
It as selectFormRevisionMapping,
|
|
7432
7437
|
rd as selectFormRevisions,
|
|
7433
7438
|
od as selectFormRevisionsOfForm,
|
|
7434
7439
|
Ad as selectFormSubmissionAttachemntsByIds,
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7440
|
+
Vn as selectFormSubmissionAttachmentsMapping,
|
|
7441
|
+
Bs as selectFormSubmissionById,
|
|
7442
|
+
Bn as selectFormSubmissions,
|
|
7443
|
+
Ln as selectFormSubmissionsMapping,
|
|
7439
7444
|
_d as selectFormSubmissionsOfAsset,
|
|
7440
7445
|
Td as selectFormSubmissionsOfForm,
|
|
7441
7446
|
Rd as selectFormSubmissionsOfIssue,
|
|
7442
|
-
|
|
7443
|
-
|
|
7447
|
+
xf as selectForms,
|
|
7448
|
+
Ws as selectGeoImageById,
|
|
7444
7449
|
kd as selectGeoImageMapping,
|
|
7445
7450
|
qd as selectGeoImages,
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7451
|
+
Hf as selectGeoImagesOfProject,
|
|
7452
|
+
Ny as selectIsImportingProjectFile,
|
|
7453
|
+
pf as selectIsLoggedIn,
|
|
7449
7454
|
Dd as selectIssueAssociationById,
|
|
7450
|
-
|
|
7451
|
-
|
|
7455
|
+
nt as selectIssueAssociationMapping,
|
|
7456
|
+
Jf as selectIssueAssociations,
|
|
7452
7457
|
Ud as selectIssueAssociationsOfAsset,
|
|
7453
7458
|
zd as selectIssueAssociationsOfIssue,
|
|
7454
7459
|
xd as selectIssueAssociationsToIssue,
|
|
7455
7460
|
Wd as selectIssueAttachmentById,
|
|
7456
7461
|
Bd as selectIssueAttachmentMapping,
|
|
7457
7462
|
Nd as selectIssueAttachments,
|
|
7458
|
-
|
|
7463
|
+
di as selectIssueById,
|
|
7459
7464
|
su as selectIssueCommentAttachmentById,
|
|
7460
7465
|
eu as selectIssueCommentAttachmentMapping,
|
|
7461
7466
|
tu as selectIssueCommentAttachments,
|
|
7462
|
-
|
|
7467
|
+
ai as selectIssueCommentById,
|
|
7463
7468
|
au as selectIssueCommentMapping,
|
|
7464
|
-
|
|
7469
|
+
yf as selectIssueCountOfCategory,
|
|
7465
7470
|
uu as selectIssueMapping,
|
|
7466
7471
|
gu as selectIssueTypeAttachmentById,
|
|
7467
7472
|
yu as selectIssueTypeAttachmentMapping,
|
|
7468
7473
|
bu as selectIssueTypeAttachments,
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7474
|
+
Ti as selectIssueTypeById,
|
|
7475
|
+
na as selectIssueTypeFieldValues,
|
|
7476
|
+
UA as selectIssueTypeFieldValuesAttachmentById,
|
|
7472
7477
|
Uu as selectIssueTypeFieldValuesAttachments,
|
|
7473
7478
|
$u as selectIssueTypeFieldValuesAttachmentsByIds,
|
|
7474
|
-
|
|
7475
|
-
|
|
7479
|
+
ra as selectIssueTypeFieldValuesAttachmentsMapping,
|
|
7480
|
+
Ai as selectIssueTypeFieldValuesById,
|
|
7476
7481
|
wu as selectIssueTypeFieldValuesMapping,
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7482
|
+
OA as selectIssueTypeFieldValuesOfIssue,
|
|
7483
|
+
vt as selectIssueTypeFields,
|
|
7484
|
+
bA as selectIssueTypeFieldsAttachmentById,
|
|
7480
7485
|
Pu as selectIssueTypeFieldsAttachments,
|
|
7481
7486
|
Iu as selectIssueTypeFieldsAttachmentsMapping,
|
|
7482
|
-
|
|
7487
|
+
jA as selectIssueTypeFieldsById,
|
|
7483
7488
|
Cu as selectIssueTypeFieldsMapping,
|
|
7484
|
-
|
|
7489
|
+
EA as selectIssueTypeFieldsOfIssueType,
|
|
7485
7490
|
Hu as selectIssueTypeMapping,
|
|
7486
|
-
|
|
7491
|
+
qA as selectIssueTypeValuesOfIssueType,
|
|
7487
7492
|
Wu as selectIssueTypes,
|
|
7488
|
-
|
|
7489
|
-
|
|
7493
|
+
$A as selectIssueTypesByIds,
|
|
7494
|
+
VA as selectIssueTypesOfOrganization,
|
|
7490
7495
|
el as selectIssueUpdateMapping,
|
|
7491
7496
|
tl as selectIssueUpdatesOfIssue,
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7497
|
+
rA as selectIssuesByIds,
|
|
7498
|
+
da as selectIssuesOfIssueType,
|
|
7499
|
+
GA as selectIssuesOfIssueTypeCount,
|
|
7500
|
+
Km as selectLatestAssetProcedureFieldsOfAssetProcedure,
|
|
7501
|
+
Np as selectLatestAssetTypeFieldsOfAssetType,
|
|
7502
|
+
jf as selectLatestFormRevisionOfForm,
|
|
7503
|
+
kA as selectLatestIssueTypeFieldsOfIssueType,
|
|
7504
|
+
My as selectLatestRetryTime,
|
|
7505
|
+
NA as selectLicense,
|
|
7501
7506
|
nl as selectLicenseForProject,
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7507
|
+
wt as selectLicenses,
|
|
7508
|
+
WA as selectLicensesForProjectsMapping,
|
|
7509
|
+
ky as selectLicensesOfOrganization,
|
|
7510
|
+
Rp as selectNumberOfAssetsOfAssetType,
|
|
7511
|
+
cy as selectOrganizationAccessById,
|
|
7512
|
+
oy as selectOrganizationAccessForUser,
|
|
7508
7513
|
hl as selectOrganizationAccessUserMapping,
|
|
7509
|
-
|
|
7510
|
-
|
|
7514
|
+
pa as selectOrganizationAccesses,
|
|
7515
|
+
vy as selectOrganizationById,
|
|
7511
7516
|
kl as selectOrganizationUsersAsMapping,
|
|
7512
7517
|
El as selectOrganizationUsersIds,
|
|
7513
7518
|
wl as selectOrganizations,
|
|
7514
7519
|
vl as selectOrganizationsMapping,
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7520
|
+
wy as selectOrganizationsWithAccess,
|
|
7521
|
+
dy as selectProjectAccessById,
|
|
7522
|
+
uy as selectProjectAccessForUser,
|
|
7523
|
+
ya as selectProjectAccessMapping,
|
|
7519
7524
|
bl as selectProjectAccessUserMapping,
|
|
7520
7525
|
yl as selectProjectAccesses,
|
|
7521
7526
|
Hl as selectProjectAttachmentById,
|
|
7522
7527
|
Bl as selectProjectAttachmentMapping,
|
|
7523
|
-
|
|
7524
|
-
|
|
7528
|
+
by as selectProjectById,
|
|
7529
|
+
Ly as selectProjectFileById,
|
|
7525
7530
|
sh as selectProjectFileMapping,
|
|
7526
7531
|
ih as selectProjectFiles,
|
|
7527
|
-
|
|
7532
|
+
qt as selectProjectMapping,
|
|
7528
7533
|
Pl as selectProjectUsersAsMapping,
|
|
7529
7534
|
Il as selectProjectUsersIds,
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7535
|
+
yy as selectProjects,
|
|
7536
|
+
Ey as selectProjectsOfOrganization,
|
|
7537
|
+
Wy as selectRehydrated,
|
|
7538
|
+
Of as selectRootDocuments,
|
|
7539
|
+
qy as selectSortedOrganizationUsers,
|
|
7540
|
+
gy as selectSortedProjectUsers,
|
|
7541
|
+
Rt as selectStageMapping,
|
|
7537
7542
|
ke as selectTeamById,
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
+
Fa as selectTeams,
|
|
7544
|
+
Ky as selectTeamsByIds,
|
|
7545
|
+
Pa as selectTeamsMapping,
|
|
7546
|
+
Yy as selectTeamsOfOrganization,
|
|
7547
|
+
Jy as selectTeamsOfUser,
|
|
7543
7548
|
Ko as selectUploadUrl,
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7549
|
+
ny as selectUserById,
|
|
7550
|
+
ay as selectUsersByIds,
|
|
7551
|
+
kt as selectUsersMapping,
|
|
7547
7552
|
eh as setActiveProjectFileId,
|
|
7548
|
-
|
|
7553
|
+
gp as setAsset,
|
|
7549
7554
|
Rc as setAssetAttachment,
|
|
7550
|
-
|
|
7551
|
-
|
|
7555
|
+
wm as setAssetAttachments,
|
|
7556
|
+
pp as setAssetProcedure,
|
|
7552
7557
|
qc as setAssetProcedureAttachment,
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7558
|
+
qm as setAssetProcedureAttachments,
|
|
7559
|
+
sp as setAssetProcedureFieldValues,
|
|
7560
|
+
Qm as setAssetProcedureFieldValuesAttachment,
|
|
7561
|
+
Xm as setAssetProcedureFieldValuesAttachments,
|
|
7562
|
+
ip as setAssetProcedureFieldValuesMany,
|
|
7563
|
+
Lm as setAssetProcedureFields,
|
|
7564
|
+
Dm as setAssetProcedureFieldsAttachment,
|
|
7565
|
+
xm as setAssetProcedureFieldsAttachments,
|
|
7566
|
+
Bm as setAssetProcedureFieldsMany,
|
|
7567
|
+
rp as setAssetProcedureInstance,
|
|
7568
|
+
op as setAssetProcedureInstances,
|
|
7569
|
+
fp as setAssetProcedures,
|
|
7565
7570
|
Er as setAssetStage,
|
|
7566
|
-
|
|
7567
|
-
|
|
7571
|
+
Op as setAssetStages,
|
|
7572
|
+
nf as setAssetType,
|
|
7568
7573
|
Cr as setAssetTypeAttachment,
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7574
|
+
Ep as setAssetTypeAttachments,
|
|
7575
|
+
Zp as setAssetTypeFieldValues,
|
|
7576
|
+
Kp as setAssetTypeFieldValuesAttachment,
|
|
7577
|
+
Yp as setAssetTypeFieldValuesAttachments,
|
|
7578
|
+
ef as setAssetTypeFieldValuesMany,
|
|
7579
|
+
$p as setAssetTypeFields,
|
|
7580
|
+
jp as setAssetTypeFieldsAttachment,
|
|
7581
|
+
Mp as setAssetTypeFieldsAttachments,
|
|
7582
|
+
Vp as setAssetTypeFieldsMany,
|
|
7583
|
+
af as setAssetTypes,
|
|
7584
|
+
Sp as setAssets,
|
|
7580
7585
|
gc as setConversation,
|
|
7581
|
-
|
|
7586
|
+
sy as setCurrentUser,
|
|
7582
7587
|
Io as setDocumentAttachment,
|
|
7583
|
-
|
|
7588
|
+
gf as setDocumentAttachments,
|
|
7584
7589
|
jo as setDocuments,
|
|
7585
|
-
|
|
7590
|
+
Mf as setForm,
|
|
7586
7591
|
id as setFormRevision,
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7592
|
+
Ff as setFormRevisionAttachment,
|
|
7593
|
+
vf as setFormRevisionAttachments,
|
|
7594
|
+
ct as setFormSubmission,
|
|
7595
|
+
Uf as setFormSubmissionAttachment,
|
|
7596
|
+
$f as setFormSubmissionAttachments,
|
|
7597
|
+
Lf as setFormSubmissions,
|
|
7593
7598
|
Ye as setGeoImage,
|
|
7594
7599
|
Pd as setGeoImages,
|
|
7595
7600
|
Zl as setIsImportingProjectFile,
|
|
7596
|
-
|
|
7597
|
-
|
|
7601
|
+
Kf as setIssueAssociation,
|
|
7602
|
+
Wf as setIssueAssociations,
|
|
7598
7603
|
Vd as setIssueAttachment,
|
|
7599
|
-
|
|
7600
|
-
|
|
7604
|
+
Xf as setIssueAttachments,
|
|
7605
|
+
si as setIssueComment,
|
|
7601
7606
|
Jd as setIssueCommentAttachment,
|
|
7602
|
-
|
|
7607
|
+
tA as setIssueCommentAttachments,
|
|
7603
7608
|
nu as setIssueComments,
|
|
7604
7609
|
Qe as setIssueType,
|
|
7605
7610
|
mu as setIssueTypeAttachment,
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7611
|
+
dA as setIssueTypeAttachments,
|
|
7612
|
+
SA as setIssueTypeFieldValues,
|
|
7613
|
+
CA as setIssueTypeFieldValuesAttachment,
|
|
7614
|
+
DA as setIssueTypeFieldValuesAttachments,
|
|
7615
|
+
TA as setIssueTypeFieldValuesMany,
|
|
7616
|
+
PA as setIssueTypeFields,
|
|
7617
|
+
mA as setIssueTypeFieldsAttachment,
|
|
7618
|
+
pA as setIssueTypeFieldsAttachments,
|
|
7619
|
+
FA as setIssueTypeFieldsMany,
|
|
7620
|
+
LA as setIssueUpdate,
|
|
7616
7621
|
yo as setLoggedIn,
|
|
7617
|
-
|
|
7622
|
+
Ty as setOrganization,
|
|
7618
7623
|
Fl as setOrganizations,
|
|
7619
|
-
|
|
7620
|
-
|
|
7624
|
+
iy as setProfilePicture,
|
|
7625
|
+
hy as setProject,
|
|
7621
7626
|
$l as setProjectAttachment,
|
|
7622
7627
|
Vl as setProjectAttachments,
|
|
7623
|
-
|
|
7624
|
-
|
|
7628
|
+
zy as setProjectFile,
|
|
7629
|
+
Uy as setProjectFiles,
|
|
7625
7630
|
Sl as setProjects,
|
|
7626
|
-
|
|
7631
|
+
Hy as setRehydrated,
|
|
7627
7632
|
Ee as setTeam,
|
|
7628
|
-
|
|
7633
|
+
lf as setTokens,
|
|
7629
7634
|
Wo as setUploadUrl,
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
+
YA as setUser,
|
|
7636
|
+
KA as setUsers,
|
|
7637
|
+
um as shallowEqual,
|
|
7638
|
+
Rm as slugify,
|
|
7639
|
+
Tm as spacesToDashesLower,
|
|
7635
7640
|
dh as teamReducer,
|
|
7636
|
-
|
|
7637
|
-
|
|
7641
|
+
Ia as teamSlice,
|
|
7642
|
+
Sm as toFileNameSafeString,
|
|
7638
7643
|
fc as toOfflineIdRecord,
|
|
7639
|
-
|
|
7644
|
+
_m as truncate,
|
|
7640
7645
|
He as updateAsset,
|
|
7641
|
-
|
|
7646
|
+
Em as updateAssetAttachment,
|
|
7642
7647
|
_c as updateAssetAttachments,
|
|
7643
7648
|
Ne as updateAssetProcedure,
|
|
7644
|
-
|
|
7649
|
+
jm as updateAssetProcedureAttachment,
|
|
7645
7650
|
jc as updateAssetProcedureAttachments,
|
|
7646
7651
|
Le as updateAssetProcedureFieldValues,
|
|
7647
|
-
|
|
7652
|
+
Zm as updateAssetProcedureFieldValuesAttachment,
|
|
7648
7653
|
er as updateAssetProcedureFieldValuesAttachments,
|
|
7649
7654
|
rr as updateAssetProcedureFieldValuesMany,
|
|
7650
7655
|
Yc as updateAssetProcedureFields,
|
|
7651
|
-
|
|
7656
|
+
zm as updateAssetProcedureFieldsAttachment,
|
|
7652
7657
|
Gc as updateAssetProcedureFieldsAttachments,
|
|
7653
|
-
|
|
7658
|
+
Nm as updateAssetProcedureFieldsMany,
|
|
7654
7659
|
Be as updateAssetProcedureInstance,
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7660
|
+
cp as updateAssetProcedureInstances,
|
|
7661
|
+
hp as updateAssetProcedures,
|
|
7662
|
+
hs as updateAssetStage,
|
|
7658
7663
|
Or as updateAssetStageCompletion,
|
|
7659
7664
|
Ir as updateAssetStageCompletions,
|
|
7660
|
-
|
|
7665
|
+
at as updateAssetStages,
|
|
7661
7666
|
Ke as updateAssetType,
|
|
7662
|
-
|
|
7667
|
+
kp as updateAssetTypeAttachment,
|
|
7663
7668
|
Dr as updateAssetTypeAttachments,
|
|
7664
7669
|
We as updateAssetTypeFieldValues,
|
|
7665
|
-
|
|
7670
|
+
Jp as updateAssetTypeFieldValuesAttachment,
|
|
7666
7671
|
io as updateAssetTypeFieldValuesAttachments,
|
|
7667
7672
|
lo as updateAssetTypeFieldValuesMany,
|
|
7668
7673
|
Xr as updateAssetTypeFields,
|
|
7669
|
-
|
|
7674
|
+
Cp as updateAssetTypeFieldsAttachment,
|
|
7670
7675
|
Nr as updateAssetTypeFieldsAttachments,
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7676
|
+
Gp as updateAssetTypeFieldsMany,
|
|
7677
|
+
rf as updateAssetTypes,
|
|
7678
|
+
bp as updateAssets,
|
|
7674
7679
|
So as updateCategory,
|
|
7675
7680
|
Sc as updateConversation,
|
|
7676
|
-
|
|
7681
|
+
Sf as updateDocumentAttachment,
|
|
7677
7682
|
Po as updateDocumentAttachments,
|
|
7678
7683
|
be as updateDocuments,
|
|
7679
|
-
|
|
7680
|
-
|
|
7684
|
+
Df as updateForm,
|
|
7685
|
+
wf as updateFormRevisionAttachment,
|
|
7681
7686
|
Xo as updateFormRevisionAttachments,
|
|
7682
7687
|
Sd as updateFormSubmission,
|
|
7683
|
-
|
|
7688
|
+
Vf as updateFormSubmissionAttachment,
|
|
7684
7689
|
fd as updateFormSubmissionAttachments,
|
|
7685
|
-
|
|
7690
|
+
Bf as updateFormSubmissions,
|
|
7686
7691
|
wd as updateGeoImage,
|
|
7687
|
-
|
|
7688
|
-
|
|
7692
|
+
Nf as updateGeoImages,
|
|
7693
|
+
rt as updateIssue,
|
|
7689
7694
|
Cd as updateIssueAssociation,
|
|
7690
|
-
|
|
7691
|
-
|
|
7695
|
+
Yf as updateIssueAssociations,
|
|
7696
|
+
Zf as updateIssueAttachment,
|
|
7692
7697
|
Gd as updateIssueAttachments,
|
|
7693
|
-
|
|
7698
|
+
sA as updateIssueCommentAttachment,
|
|
7694
7699
|
Qd as updateIssueCommentAttachments,
|
|
7695
7700
|
Nu as updateIssueType,
|
|
7696
|
-
|
|
7701
|
+
uA as updateIssueTypeAttachment,
|
|
7697
7702
|
pu as updateIssueTypeAttachments,
|
|
7698
7703
|
Je as updateIssueTypeFieldValues,
|
|
7699
|
-
|
|
7704
|
+
xA as updateIssueTypeFieldValuesAttachment,
|
|
7700
7705
|
zu as updateIssueTypeFieldValuesAttachments,
|
|
7701
|
-
|
|
7706
|
+
RA as updateIssueTypeFieldValuesMany,
|
|
7702
7707
|
ju as updateIssueTypeFields,
|
|
7703
|
-
|
|
7708
|
+
fA as updateIssueTypeFieldsAttachment,
|
|
7704
7709
|
_u as updateIssueTypeFieldsAttachments,
|
|
7705
|
-
|
|
7710
|
+
vA as updateIssueTypeFieldsMany,
|
|
7706
7711
|
fe as updateLicense,
|
|
7707
|
-
|
|
7712
|
+
Iy as updateOrganization,
|
|
7708
7713
|
ul as updateOrganizationAccess,
|
|
7709
|
-
|
|
7714
|
+
Oy as updateOrganizations,
|
|
7710
7715
|
Tl as updateProject,
|
|
7711
7716
|
pl as updateProjectAccess,
|
|
7712
|
-
|
|
7717
|
+
xy as updateProjectAttachment,
|
|
7713
7718
|
Gl as updateProjectAttachments,
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7719
|
+
qi as updateProjectFile,
|
|
7720
|
+
Vy as updateProjectFiles,
|
|
7721
|
+
fy as updateProjects,
|
|
7722
|
+
Mi as updateTeam,
|
|
7723
|
+
ZA as updateUser,
|
|
7724
|
+
XA as updateUsers,
|
|
7720
7725
|
ol as userReducer,
|
|
7721
|
-
|
|
7726
|
+
ha as userSlice,
|
|
7722
7727
|
hh as versioningReducer,
|
|
7723
7728
|
lh as versioningSlice
|
|
7724
7729
|
};
|