@overmap-ai/core 1.0.78-workflows-2.9 → 1.0.78-workflows-2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/overmap-core.js
CHANGED
|
@@ -3804,12 +3804,12 @@ const f = (
|
|
|
3804
3804
|
updateWorkflowStepFieldValuesReviews: zb,
|
|
3805
3805
|
deleteWorkflowStepFieldValuesReview: qb,
|
|
3806
3806
|
deleteWorkflowStepFieldValuesReviews: nc
|
|
3807
|
-
} = sc.actions, Db = (t) => t.workflowStepFieldValuesReviewReducer.instances,
|
|
3807
|
+
} = sc.actions, Db = (t) => t.workflowStepFieldValuesReviewReducer.instances, gt = p(
|
|
3808
3808
|
[Db],
|
|
3809
3809
|
(t) => Object.values(t)
|
|
3810
3810
|
), $b = (t) => (s) => s.workflowStepFieldValuesReviewReducer.instances[t], jb = f(
|
|
3811
3811
|
p(
|
|
3812
|
-
[
|
|
3812
|
+
[gt, (t, s) => s],
|
|
3813
3813
|
(t, s) => {
|
|
3814
3814
|
const e = new Set(s);
|
|
3815
3815
|
return S(t.filter(({ uuid: i }) => e.has(i)));
|
|
@@ -3817,12 +3817,12 @@ const f = (
|
|
|
3817
3817
|
)
|
|
3818
3818
|
), xb = f(
|
|
3819
3819
|
p(
|
|
3820
|
-
[
|
|
3820
|
+
[gt, (t, s) => s],
|
|
3821
3821
|
(t, s) => S(t.filter((e) => e.field_values === s))
|
|
3822
3822
|
)
|
|
3823
3823
|
), UF = f(
|
|
3824
3824
|
p(
|
|
3825
|
-
[
|
|
3825
|
+
[gt, (t, s) => s],
|
|
3826
3826
|
(t, s) => {
|
|
3827
3827
|
let e;
|
|
3828
3828
|
for (const i of t) {
|
|
@@ -3836,7 +3836,7 @@ const f = (
|
|
|
3836
3836
|
p(
|
|
3837
3837
|
[
|
|
3838
3838
|
pt,
|
|
3839
|
-
|
|
3839
|
+
gt,
|
|
3840
3840
|
(t, s) => s,
|
|
3841
3841
|
(t, s, e) => e
|
|
3842
3842
|
],
|
|
@@ -3853,7 +3853,7 @@ const f = (
|
|
|
3853
3853
|
);
|
|
3854
3854
|
}
|
|
3855
3855
|
)
|
|
3856
|
-
), NF = p([
|
|
3856
|
+
), NF = p([gt], (t) => {
|
|
3857
3857
|
const s = {};
|
|
3858
3858
|
for (const e of t) {
|
|
3859
3859
|
const { field_values: i } = e, n = s[i];
|
|
@@ -4213,7 +4213,7 @@ function Wg(t, s, e) {
|
|
|
4213
4213
|
function Cg(t, s) {
|
|
4214
4214
|
return kt().dispatch(GO((/* @__PURE__ */ new Date()).getTime())), Wc;
|
|
4215
4215
|
}
|
|
4216
|
-
const
|
|
4216
|
+
const bt = "An unknown error occurred", Ug = 500, Gi = ["non_field_errors", "detail"];
|
|
4217
4217
|
function Lg(t, s) {
|
|
4218
4218
|
let e;
|
|
4219
4219
|
if (t != null && t.body)
|
|
@@ -4234,18 +4234,18 @@ function Lg(t, s) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
} else typeof t.body == "string" && (e = t.body);
|
|
4236
4236
|
else t != null && t.text ? e = t.text : s instanceof Error && (e = s.message);
|
|
4237
|
-
return !e || e.length > Ug ?
|
|
4237
|
+
return !e || e.length > Ug ? bt : e;
|
|
4238
4238
|
}
|
|
4239
4239
|
class C extends Error {
|
|
4240
4240
|
constructor(e) {
|
|
4241
|
-
super(
|
|
4241
|
+
super(bt);
|
|
4242
4242
|
// NOTE: Needs to conform to NetworkError in @redux-offline/redux-offline, which has `status` and `response`.
|
|
4243
4243
|
h(this, "status");
|
|
4244
4244
|
h(this, "response");
|
|
4245
4245
|
h(this, "message");
|
|
4246
4246
|
h(this, "options");
|
|
4247
4247
|
const { response: i, innerError: n } = e;
|
|
4248
|
-
this.message = e.message ?? Lg(i, n) ??
|
|
4248
|
+
this.message = e.message ?? Lg(i, n) ?? bt, this.status = (i == null ? void 0 : i.status) ?? 0, this.response = i, e.discard = e.discard ?? !1, this.options = e;
|
|
4249
4249
|
}
|
|
4250
4250
|
}
|
|
4251
4251
|
function Ng(t) {
|
|
@@ -7180,7 +7180,7 @@ class PM extends E {
|
|
|
7180
7180
|
return this.dispatch(n(o)), o;
|
|
7181
7181
|
}
|
|
7182
7182
|
}
|
|
7183
|
-
class
|
|
7183
|
+
class Tt extends Ot {
|
|
7184
7184
|
async get(s, e) {
|
|
7185
7185
|
return this.performRequest(
|
|
7186
7186
|
{
|
|
@@ -7207,7 +7207,7 @@ class gt extends Ot {
|
|
|
7207
7207
|
);
|
|
7208
7208
|
}
|
|
7209
7209
|
}
|
|
7210
|
-
class FM extends
|
|
7210
|
+
class FM extends Tt {
|
|
7211
7211
|
constructor() {
|
|
7212
7212
|
super(...arguments);
|
|
7213
7213
|
h(this, "name", "Email Domains");
|
|
@@ -7288,7 +7288,7 @@ class MM extends Ot {
|
|
|
7288
7288
|
});
|
|
7289
7289
|
}
|
|
7290
7290
|
}
|
|
7291
|
-
const
|
|
7291
|
+
const _t = {}, Ut = /* @__PURE__ */ new Set();
|
|
7292
7292
|
class RM extends Ot {
|
|
7293
7293
|
constructor() {
|
|
7294
7294
|
super(...arguments);
|
|
@@ -7340,7 +7340,7 @@ class RM extends Ot {
|
|
|
7340
7340
|
const a = e.split("?")[0] ?? e, r = await this.fetchCache(i);
|
|
7341
7341
|
if (r) return r;
|
|
7342
7342
|
let c;
|
|
7343
|
-
a in
|
|
7343
|
+
a in _t ? c = _t[a] : Qc(e) ? (c = Yc(e, n), _t[a] = c) : (c = new Promise((l) => {
|
|
7344
7344
|
this.performRequest({
|
|
7345
7345
|
method: u.GET,
|
|
7346
7346
|
url: e,
|
|
@@ -7353,12 +7353,12 @@ class RM extends Ot {
|
|
|
7353
7353
|
const y = new File([m], n, { type: m.type });
|
|
7354
7354
|
l(y);
|
|
7355
7355
|
});
|
|
7356
|
-
}),
|
|
7356
|
+
}), _t[a] = c);
|
|
7357
7357
|
let o;
|
|
7358
7358
|
try {
|
|
7359
7359
|
o = await c;
|
|
7360
7360
|
} catch (l) {
|
|
7361
|
-
throw l instanceof C && delete
|
|
7361
|
+
throw l instanceof C && delete _t[a], l;
|
|
7362
7362
|
}
|
|
7363
7363
|
const d = await Ct(o);
|
|
7364
7364
|
if (d !== i) {
|
|
@@ -9451,7 +9451,7 @@ class eR extends Hg {
|
|
|
9451
9451
|
try {
|
|
9452
9452
|
await this.renewTokens();
|
|
9453
9453
|
} catch (e) {
|
|
9454
|
-
return e instanceof C && this.clearAuth(), e instanceof Error ? Promise.reject(e) : Promise.reject(new Error((e ??
|
|
9454
|
+
return e instanceof C && this.clearAuth(), e instanceof Error ? Promise.reject(e) : Promise.reject(new Error((e ?? bt).toString()));
|
|
9455
9455
|
}
|
|
9456
9456
|
}
|
|
9457
9457
|
}
|
|
@@ -9487,7 +9487,7 @@ class eR extends Hg {
|
|
|
9487
9487
|
});
|
|
9488
9488
|
}
|
|
9489
9489
|
}
|
|
9490
|
-
class tR extends
|
|
9490
|
+
class tR extends Tt {
|
|
9491
9491
|
constructor() {
|
|
9492
9492
|
super(...arguments);
|
|
9493
9493
|
h(this, "name", "Organization Access");
|
|
@@ -9556,7 +9556,7 @@ class tR extends gt {
|
|
|
9556
9556
|
return this.dispatch(n(a)), a;
|
|
9557
9557
|
}
|
|
9558
9558
|
}
|
|
9559
|
-
class sR extends
|
|
9559
|
+
class sR extends Tt {
|
|
9560
9560
|
constructor() {
|
|
9561
9561
|
super(...arguments);
|
|
9562
9562
|
h(this, "name", "Organization");
|
|
@@ -9889,7 +9889,7 @@ class aR extends $ {
|
|
|
9889
9889
|
return this.dispatch(n(r)), r;
|
|
9890
9890
|
}
|
|
9891
9891
|
}
|
|
9892
|
-
class rR extends
|
|
9892
|
+
class rR extends Tt {
|
|
9893
9893
|
constructor() {
|
|
9894
9894
|
super(...arguments);
|
|
9895
9895
|
h(this, "name", "Project");
|
|
@@ -10132,7 +10132,7 @@ class oR extends E {
|
|
|
10132
10132
|
return this.dispatch(n(a)), a;
|
|
10133
10133
|
}
|
|
10134
10134
|
}
|
|
10135
|
-
class dR extends
|
|
10135
|
+
class dR extends Tt {
|
|
10136
10136
|
constructor() {
|
|
10137
10137
|
super(...arguments);
|
|
10138
10138
|
h(this, "name", "User");
|
|
@@ -10479,7 +10479,7 @@ class hR extends E {
|
|
|
10479
10479
|
return this.dispatch(n(r)), r;
|
|
10480
10480
|
}
|
|
10481
10481
|
}
|
|
10482
|
-
class pR extends
|
|
10482
|
+
class pR extends Tt {
|
|
10483
10483
|
constructor() {
|
|
10484
10484
|
super(...arguments);
|
|
10485
10485
|
h(this, "name", "Workflow Step Event");
|
|
@@ -11413,7 +11413,7 @@ class IR {
|
|
|
11413
11413
|
return Sc(s, r, this, i, n).then((c) => {
|
|
11414
11414
|
a.resolve(c.body);
|
|
11415
11415
|
}).catch((c) => {
|
|
11416
|
-
c instanceof Error ? a.reject(c) : a.reject(new Error((c ??
|
|
11416
|
+
c instanceof Error ? a.reject(c) : a.reject(new Error((c ?? bt).toString()));
|
|
11417
11417
|
}), a;
|
|
11418
11418
|
}
|
|
11419
11419
|
async performRequest(s, e, i, n) {
|
|
@@ -11483,7 +11483,7 @@ Converting error to APIError and discarding.`
|
|
|
11483
11483
|
return o;
|
|
11484
11484
|
}
|
|
11485
11485
|
}
|
|
11486
|
-
class
|
|
11486
|
+
class It {
|
|
11487
11487
|
constructor() {
|
|
11488
11488
|
h(this, "graph");
|
|
11489
11489
|
h(this, "requestAttemptCounter");
|
|
@@ -11493,7 +11493,7 @@ class _t {
|
|
|
11493
11493
|
* Used when the app is loaded. Reconstructs the dependency graph based on an outbox from the redux-offline store.
|
|
11494
11494
|
*/
|
|
11495
11495
|
static _fromOutbox(s) {
|
|
11496
|
-
const e = new
|
|
11496
|
+
const e = new It();
|
|
11497
11497
|
for (let i = 0; i < s.length; i++) {
|
|
11498
11498
|
const n = s[i];
|
|
11499
11499
|
if (!n) {
|
|
@@ -11507,7 +11507,7 @@ class _t {
|
|
|
11507
11507
|
console.error("Previous outbox item was undefined");
|
|
11508
11508
|
continue;
|
|
11509
11509
|
}
|
|
11510
|
-
r.payload.uuid !== n.payload.uuid && r.payload.blocks.some((c) => n.payload.blockers.includes(c)) &&
|
|
11510
|
+
r.payload.uuid !== n.payload.uuid && r.payload.blocks.some((c) => n.payload.blockers.includes(c)) && It._addDependency(
|
|
11511
11511
|
n.payload.uuid,
|
|
11512
11512
|
r.payload.uuid,
|
|
11513
11513
|
e.graph
|
|
@@ -11517,7 +11517,7 @@ class _t {
|
|
|
11517
11517
|
return e;
|
|
11518
11518
|
}
|
|
11519
11519
|
_addDependency(s, e) {
|
|
11520
|
-
|
|
11520
|
+
It._addDependency(s, e, this.graph);
|
|
11521
11521
|
}
|
|
11522
11522
|
static _addDependency(s, e, i) {
|
|
11523
11523
|
if (s === e)
|
|
@@ -11647,7 +11647,7 @@ function At() {
|
|
|
11647
11647
|
return console.warn("Client store not set; cannot get outbox coordinator yet."), null;
|
|
11648
11648
|
if (Lt)
|
|
11649
11649
|
return Lt;
|
|
11650
|
-
const s = t.getState().offline.outbox, e =
|
|
11650
|
+
const s = t.getState().offline.outbox, e = It._fromOutbox(s);
|
|
11651
11651
|
return Lt = e, e;
|
|
11652
11652
|
}
|
|
11653
11653
|
const bR = (t, s) => {
|
|
@@ -11738,7 +11738,7 @@ export {
|
|
|
11738
11738
|
gM as AssetTypeStatusService,
|
|
11739
11739
|
$c as AttachmentModel,
|
|
11740
11740
|
Ot as BaseApiService,
|
|
11741
|
-
|
|
11741
|
+
Tt as BaseModelApiService,
|
|
11742
11742
|
$ as BaseOfflineFileModelApiService,
|
|
11743
11743
|
E as BaseOfflineModelApiService,
|
|
11744
11744
|
IR as BaseSDK,
|
|
@@ -11790,7 +11790,7 @@ export {
|
|
|
11790
11790
|
qc as OrganizationAccessLevel,
|
|
11791
11791
|
tR as OrganizationAccessService,
|
|
11792
11792
|
sR as OrganizationService,
|
|
11793
|
-
|
|
11793
|
+
It as OutboxCoordinator,
|
|
11794
11794
|
iR as ProjectAccessService,
|
|
11795
11795
|
nR as ProjectAttachmentService,
|
|
11796
11796
|
aR as ProjectFileService,
|
|
@@ -11802,7 +11802,7 @@ export {
|
|
|
11802
11802
|
Nk as SelectorBuilder,
|
|
11803
11803
|
cR as TeamMembershipService,
|
|
11804
11804
|
oR as TeamService,
|
|
11805
|
-
|
|
11805
|
+
bt as UNKNOWN_ERROR_MESSAGE,
|
|
11806
11806
|
dR as UserService,
|
|
11807
11807
|
Et as VERSION_REDUCER_KEY,
|
|
11808
11808
|
ik as VerificationCodeType,
|
|
@@ -12756,7 +12756,7 @@ export {
|
|
|
12756
12756
|
Pb as selectWorkflowStepFieldValuesReviewRequestsByIds,
|
|
12757
12757
|
gb as selectWorkflowStepFieldValuesReviewRequestsMapping,
|
|
12758
12758
|
CF as selectWorkflowStepFieldValuesReviewRequestsOfWorkflowAndWorkflowStep,
|
|
12759
|
-
|
|
12759
|
+
gt as selectWorkflowStepFieldValuesReviews,
|
|
12760
12760
|
jb as selectWorkflowStepFieldValuesReviewsByIds,
|
|
12761
12761
|
Db as selectWorkflowStepFieldValuesReviewsMapping,
|
|
12762
12762
|
LF as selectWorkflowStepFieldValuesReviewsOfWorkflowAndWorkflowStep,
|