@overmap-ai/core 1.0.74-integration-improvements.1 → 1.0.74-integration-improvements.2

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.
Files changed (68) hide show
  1. package/dist/overmap-core.js +151 -128
  2. package/dist/overmap-core.umd.cjs +7 -7
  3. package/dist/sdk/services/AssetAttachmentService.d.ts +1 -1
  4. package/dist/sdk/services/AssetTypeAttachmentService.d.ts +1 -1
  5. package/dist/sdk/services/BaseAttachmentService.d.ts +1 -1
  6. package/dist/sdk/services/DocumentAttachmentService.d.ts +1 -1
  7. package/dist/sdk/services/IssueAttachmentService.d.ts +1 -1
  8. package/dist/sdk/services/IssueCommentAttachmentService.d.ts +1 -1
  9. package/dist/sdk/services/IssueTypeAttachmentService.d.ts +1 -1
  10. package/dist/sdk/services/ProjectAttachmentService.d.ts +1 -1
  11. package/dist/sdk/services/ProjectService.d.ts +1 -1
  12. package/dist/sdk/services/TeamService.d.ts +3 -3
  13. package/dist/store/adapters/modelAdapter.d.ts +12 -12
  14. package/dist/store/slices/agentsSlice.d.ts +5 -5
  15. package/dist/store/slices/assetAttachmentSlice.d.ts +16 -10
  16. package/dist/store/slices/assetProcedureFieldValuesAttachmentSlice.d.ts +16 -10
  17. package/dist/store/slices/assetProcedureFieldValuesSlice.d.ts +16 -10
  18. package/dist/store/slices/assetProcedureFieldsAttachmentSlice.d.ts +16 -10
  19. package/dist/store/slices/assetProcedureFieldsSlice.d.ts +16 -10
  20. package/dist/store/slices/assetProcedureInstanceSlice.d.ts +16 -10
  21. package/dist/store/slices/assetProcedureSlice.d.ts +16 -10
  22. package/dist/store/slices/assetSlice.d.ts +16 -10
  23. package/dist/store/slices/assetStageCompletionSlice.d.ts +14 -8
  24. package/dist/store/slices/assetStageSlice.d.ts +16 -10
  25. package/dist/store/slices/assetTypeAttachmentSlice.d.ts +16 -10
  26. package/dist/store/slices/assetTypeFieldValuesAttachmentSlice.d.ts +16 -10
  27. package/dist/store/slices/assetTypeFieldValuesSlice.d.ts +16 -10
  28. package/dist/store/slices/assetTypeFieldsAttachmentSlice.d.ts +16 -10
  29. package/dist/store/slices/assetTypeFieldsSlice.d.ts +16 -10
  30. package/dist/store/slices/assetTypeSlice.d.ts +16 -10
  31. package/dist/store/slices/categorySlice.d.ts +8 -5
  32. package/dist/store/slices/documentAttachmentSlice.d.ts +16 -10
  33. package/dist/store/slices/emailDomainsSlice.d.ts +7 -4
  34. package/dist/store/slices/formRevisionAttachmentSlice.d.ts +16 -10
  35. package/dist/store/slices/formRevisionSlice.d.ts +13 -7
  36. package/dist/store/slices/formSlice.d.ts +10 -7
  37. package/dist/store/slices/formSubmissionAttachmentSlice.d.ts +16 -10
  38. package/dist/store/slices/formSubmissionSlice.d.ts +16 -10
  39. package/dist/store/slices/geoImageSlice.d.ts +16 -10
  40. package/dist/store/slices/issueAssociationSlice.d.ts +16 -10
  41. package/dist/store/slices/issueAttachmentSlice.d.ts +16 -10
  42. package/dist/store/slices/issueCommentAttachmentSlice.d.ts +16 -10
  43. package/dist/store/slices/issueCommentSlice.d.ts +13 -7
  44. package/dist/store/slices/issueSlice.d.ts +13 -7
  45. package/dist/store/slices/issueTypeAttachmentSlice.d.ts +16 -10
  46. package/dist/store/slices/issueTypeFieldValuesAttachmentSlice.d.ts +16 -10
  47. package/dist/store/slices/issueTypeFieldValuesSlice.d.ts +16 -10
  48. package/dist/store/slices/issueTypeFieldsAttachmentSlice.d.ts +16 -10
  49. package/dist/store/slices/issueTypeFieldsSlice.d.ts +16 -10
  50. package/dist/store/slices/issueTypeSlice.d.ts +9 -6
  51. package/dist/store/slices/issueUpdateSlice.d.ts +13 -7
  52. package/dist/store/slices/licenseSlice.d.ts +4 -4
  53. package/dist/store/slices/organizationAccessSlice.d.ts +7 -4
  54. package/dist/store/slices/organizationSlice.d.ts +18 -12
  55. package/dist/store/slices/projectAccessSlice.d.ts +11 -5
  56. package/dist/store/slices/projectAttachmentSlice.d.ts +16 -10
  57. package/dist/store/slices/projectFileSlice.d.ts +16 -10
  58. package/dist/store/slices/projectSlice.d.ts +18 -12
  59. package/dist/store/slices/teamSlice.d.ts +10 -7
  60. package/dist/store/slices/userSlice.d.ts +24 -15
  61. package/dist/store/typings.d.ts +2 -2
  62. package/dist/typings/models/base.d.ts +4 -1
  63. package/dist/typings/models/issues.d.ts +3 -3
  64. package/dist/typings/models/organizations.d.ts +2 -1
  65. package/dist/typings/models/projects.d.ts +4 -3
  66. package/dist/typings/models/teams.d.ts +2 -2
  67. package/dist/typings/models/users.d.ts +2 -2
  68. package/package.json +1 -1
@@ -305,7 +305,9 @@ function P(t) {
305
305
  s in e && delete e[s];
306
306
  return e;
307
307
  }
308
- const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
308
+ const ke = _(
309
+ (t) => t.uuid
310
+ ), Ct = ke.getInitialState({}), Li = T({
309
311
  name: "agents",
310
312
  initialState: Ct,
311
313
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ct)),
@@ -323,7 +325,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
323
325
  [Bi, (t, e) => e],
324
326
  (t, e) => t[e]
325
327
  )
326
- ), gc = Li.reducer, C = _((t) => t.uuid), Dt = C.getInitialState({}), Ni = T({
328
+ ), gc = Li.reducer, C = _(
329
+ (t) => t.uuid
330
+ ), Dt = C.getInitialState({}), Ni = T({
327
331
  name: "assetAttachments",
328
332
  initialState: Dt,
329
333
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Dt)),
@@ -356,9 +360,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
356
360
  [Oc, (t, e) => e],
357
361
  (t, e) => b(t.filter(({ asset: s }) => e === s))
358
362
  )
359
- ), Pc = Ni.reducer, D = _(
360
- (t) => t.uuid
361
- ), zt = D.getInitialState({}), Ki = T({
363
+ ), Pc = Ni.reducer, D = _((t) => t.uuid), zt = D.getInitialState({}), Ki = T({
362
364
  name: "assetProcedureFieldsAttachments",
363
365
  initialState: zt,
364
366
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zt)),
@@ -388,7 +390,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
388
390
  (t) => Object.values(t)
389
391
  ), Fm = A(
390
392
  p([jc, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
391
- ), Pm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Mc = Ki.reducer, x = _((t) => t.uuid), Ut = x.getInitialState({}), Yi = T({
393
+ ), Pm = (t) => (e) => e.assetProcedureFieldsAttachmentReducer.instances[t], Mc = Ki.reducer, x = _(
394
+ (t) => t.uuid
395
+ ), Ut = x.getInitialState({}), Yi = T({
392
396
  name: "assetProcedureFields",
393
397
  initialState: Ut,
394
398
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ut)),
@@ -420,9 +424,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
420
424
  )
421
425
  ), Mm = A(
422
426
  p([Ji, (t, e) => e], (t, e) => t.filter((s) => s.asset_procedure === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
423
- ), Cm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], $c = Yi.reducer, z = _(
424
- (t) => t.uuid
425
- ), $t = z.getInitialState({}), Qi = T({
427
+ ), Cm = (t) => (e) => e.assetProcedureFieldsReducer.instances[t], $c = Yi.reducer, z = _((t) => t.uuid), $t = z.getInitialState({}), Qi = T({
426
428
  name: "assetProcedureFieldValuesAttachments",
427
429
  initialState: $t,
428
430
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, $t)),
@@ -466,9 +468,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
466
468
  [Lc, (t, e) => e],
467
469
  (t, e) => b(t.filter((s) => s.field_values === e))
468
470
  )
469
- ), Hc = Qi.reducer, U = _(
470
- (t) => t.uuid
471
- ), Vt = U.getInitialState({}), Zi = T({
471
+ ), Hc = Qi.reducer, U = _((t) => t.uuid), Vt = U.getInitialState({}), Zi = T({
472
472
  name: "assetProcedureFieldValues",
473
473
  initialState: Vt,
474
474
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Vt)),
@@ -500,9 +500,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
500
500
  p([en, (t, e) => e], (t, e) => b(t.filter((s) => s.asset === e)))
501
501
  ), Nm = A(
502
502
  p([en, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_procedure_instance === e)))
503
- ), Bt = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], Xc = Zi.reducer, $ = _(
504
- (t) => t.uuid
505
- ), Nt = $.getInitialState({}), tn = T({
503
+ ), Bt = (t) => (e) => e.assetProcedureFieldValuesReducer.instances[t], Xc = Zi.reducer, $ = _((t) => t.uuid), Nt = $.getInitialState({}), tn = T({
506
504
  name: "assetProcedureInstances",
507
505
  initialState: Nt,
508
506
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Nt)),
@@ -560,7 +558,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
560
558
  return b(s);
561
559
  }
562
560
  )
563
- ), ir = tn.reducer, V = _((t) => t.uuid), Yt = V.getInitialState({}), an = T({
561
+ ), ir = tn.reducer, V = _(
562
+ (t) => t.uuid
563
+ ), Yt = V.getInitialState({}), an = T({
564
564
  name: "assetProcedures",
565
565
  initialState: Yt,
566
566
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Yt)),
@@ -721,7 +721,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
721
721
  }
722
722
  return b(s);
723
723
  })
724
- ), B = _((t) => t.uuid), ms = B.getInitialState({}), pn = T({
724
+ ), B = _(
725
+ (t) => t.uuid
726
+ ), ms = B.getInitialState({}), pn = T({
725
727
  name: "assetTypeAttachments",
726
728
  initialState: ms,
727
729
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ms)),
@@ -754,9 +756,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
754
756
  [Pr, (t, e) => e],
755
757
  (t, e) => b(t.filter(({ asset_type: s }) => e === s))
756
758
  )
757
- ), Er = pn.reducer, N = _(
758
- (t) => t.uuid
759
- ), ps = N.getInitialState({}), An = T({
759
+ ), Er = pn.reducer, N = _((t) => t.uuid), ps = N.getInitialState({}), An = T({
760
760
  name: "assetTypeFieldsAttachments",
761
761
  initialState: ps,
762
762
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ps)),
@@ -786,7 +786,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
786
786
  (t) => Object.values(t)
787
787
  ), _p = A(
788
788
  p([Dr, (t, e) => e], (t, e) => b(t.filter((s) => s.fields_revision === e)))
789
- ), Op = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], xr = An.reducer, H = _((t) => t.uuid), fs = H.getInitialState({}), bn = T({
789
+ ), Op = (t) => (e) => e.assetTypeFieldsAttachmentReducer.instances[t], xr = An.reducer, H = _(
790
+ (t) => t.uuid
791
+ ), fs = H.getInitialState({}), bn = T({
790
792
  name: "assetTypeFields",
791
793
  initialState: fs,
792
794
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fs)),
@@ -815,9 +817,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
815
817
  p([Rt, (t, e) => e], (t, e) => b(t.filter((s) => s.asset_type === e)))
816
818
  ), kp = A(
817
819
  p([Rt, (t, e) => e], (t, e) => t.filter((s) => s.asset_type === e).sort((s, i) => s.submitted_at > i.submitted_at ? -1 : 1)[0])
818
- ), qp = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Lr = bn.reducer, W = _(
819
- (t) => t.uuid
820
- ), ys = W.getInitialState({}), gn = T({
820
+ ), qp = (t) => (e) => e.assetTypeFieldsReducer.instances[t], Lr = bn.reducer, W = _((t) => t.uuid), ys = W.getInitialState({}), gn = T({
821
821
  name: "assetTypeFieldValuesAttachments",
822
822
  initialState: ys,
823
823
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ys)),
@@ -860,7 +860,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
860
860
  )
861
861
  ), Kr = A(
862
862
  p([Hr, (t, e) => e], (t, e) => b(t.filter((s) => s.field_values === e)))
863
- ), Yr = gn.reducer, K = _((t) => t.uuid), As = K.getInitialState({}), Tn = T({
863
+ ), Yr = gn.reducer, K = _(
864
+ (t) => t.uuid
865
+ ), As = K.getInitialState({}), Tn = T({
864
866
  name: "assetTypeFieldValues",
865
867
  initialState: As,
866
868
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, As)),
@@ -978,7 +980,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
978
980
  return b(s);
979
981
  }
980
982
  )
981
- ), sf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, uo = In.reducer, J = _((t) => t.uuid), ws = J.getInitialState({}), Pn = T({
983
+ ), sf = (t) => (e) => Object.values(e.issueReducer.instances).filter((s) => s.category === t).length, uo = In.reducer, J = _(
984
+ (t) => t.uuid
985
+ ), ws = J.getInitialState({}), Pn = T({
982
986
  name: "documentAttachments",
983
987
  initialState: ws,
984
988
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ws)),
@@ -1167,7 +1171,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1167
1171
  ), uf = p(
1168
1172
  [Oo],
1169
1173
  (t) => b(t.filter((e) => !e.parent_document))
1170
- ), Fo = vn.reducer, Ze = _((t) => t.uuid), Po = Ze.getInitialState({}), wn = T({
1174
+ ), Fo = vn.reducer, Ze = _(
1175
+ (t) => t.uuid
1176
+ ), Po = Ze.getInitialState({}), wn = T({
1171
1177
  name: "emailDomains",
1172
1178
  initialState: Po,
1173
1179
  reducers: {
@@ -1205,9 +1211,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1205
1211
  const i = (/* @__PURE__ */ new Date()).getTime();
1206
1212
  if (!((s.exp ?? i) - i < En))
1207
1213
  return s;
1208
- }, xo = kn.reducer, Q = _(
1209
- (t) => t.uuid
1210
- ), js = Q.getInitialState({}), qn = T({
1214
+ }, xo = kn.reducer, Q = _((t) => t.uuid), js = Q.getInitialState({}), qn = T({
1211
1215
  name: "formRevisionAttachments",
1212
1216
  initialState: js,
1213
1217
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, js)),
@@ -1291,9 +1295,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1291
1295
  updateForm: be.updateOne,
1292
1296
  deleteForm: be.deleteOne
1293
1297
  }
1294
- }), { initializeForms: Xo, setForm: Sf, addForm: Ds, addForms: Tf, updateForm: Rf, deleteForm: xs } = Dn.actions, Zo = Dn.reducer, ed = (t) => t.formReducer.instances, _f = p([ed], (t) => Object.values(t)), td = (t) => (e) => e.formReducer.instances[t], X = _(
1295
- (t) => t.uuid
1296
- ), zs = X.getInitialState({}), xn = T({
1298
+ }), { initializeForms: Xo, setForm: Sf, addForm: Ds, addForms: Tf, updateForm: Rf, deleteForm: xs } = Dn.actions, Zo = Dn.reducer, ed = (t) => t.formReducer.instances, _f = p([ed], (t) => Object.values(t)), td = (t) => (e) => e.formReducer.instances[t], X = _((t) => t.uuid), zs = X.getInitialState({}), xn = T({
1297
1299
  name: "formSubmissionAttachments",
1298
1300
  initialState: zs,
1299
1301
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, zs)),
@@ -1338,7 +1340,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1338
1340
  Object.values(t).filter((s) => s.form_submission === e)
1339
1341
  )
1340
1342
  )
1341
- ), cd = xn.reducer, Z = _((t) => t.uuid), Us = Z.getInitialState({}), Un = T({
1343
+ ), cd = xn.reducer, Z = _(
1344
+ (t) => t.uuid
1345
+ ), Us = Z.getInitialState({}), Un = T({
1342
1346
  name: "formSubmissions",
1343
1347
  initialState: Us,
1344
1348
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Us)),
@@ -1423,7 +1427,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1423
1427
  deleteGeoImages: bd
1424
1428
  } = Gn.actions, gd = (t) => t.geoImageReducer.instances, Sd = p([gd], (t) => Object.values(t)), Ns = (t) => (e) => e.geoImageReducer.instances[t], qf = A(
1425
1429
  p([Sd, (t, e) => e], (t, e) => b(t.filter((s) => s.project === e)))
1426
- ), Td = Gn.reducer, te = _((t) => t.uuid), Hs = te.getInitialState({}), Ln = T({
1430
+ ), Td = Gn.reducer, te = _(
1431
+ (t) => t.uuid
1432
+ ), Hs = te.getInitialState({}), Ln = T({
1427
1433
  name: "issueAssociations",
1428
1434
  initialState: Hs,
1429
1435
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Hs)),
@@ -1465,7 +1471,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1465
1471
  [it, (t, e) => e],
1466
1472
  (t, e) => b(Object.values(t).filter((s) => s.asset === e))
1467
1473
  )
1468
- ), vd = Ln.reducer, se = _((t) => t.uuid), Ys = se.getInitialState({}), Hn = T({
1474
+ ), vd = Ln.reducer, se = _(
1475
+ (t) => t.uuid
1476
+ ), Ys = se.getInitialState({}), Hn = T({
1469
1477
  name: "issueAttachments",
1470
1478
  initialState: Ys,
1471
1479
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Ys)),
@@ -1498,9 +1506,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1498
1506
  [jd, (t, e) => e],
1499
1507
  (t, e) => b(t.filter(({ issue: s }) => e === s))
1500
1508
  )
1501
- ), Cd = (t) => (e) => e.issueAttachmentReducer.instances[t], Dd = Hn.reducer, ie = _(
1502
- (t) => t.uuid
1503
- ), Qs = ie.getInitialState({}), Yn = T({
1509
+ ), Cd = (t) => (e) => e.issueAttachmentReducer.instances[t], Dd = Hn.reducer, ie = _((t) => t.uuid), Qs = ie.getInitialState({}), Yn = T({
1504
1510
  name: "issueCommentAttachments",
1505
1511
  initialState: Qs,
1506
1512
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Qs)),
@@ -1583,7 +1589,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1583
1589
  }
1584
1590
  return b(s);
1585
1591
  })
1586
- ), Zd = Qn.reducer, ne = _((t) => t.uuid), oi = ne.getInitialState({}), Xn = T({
1592
+ ), Zd = Qn.reducer, ne = _(
1593
+ (t) => t.uuid
1594
+ ), oi = ne.getInitialState({}), Xn = T({
1587
1595
  name: "issueTypeAttachments",
1588
1596
  initialState: oi,
1589
1597
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, oi)),
@@ -1616,9 +1624,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1616
1624
  [cu, (t, e) => e],
1617
1625
  (t, e) => b(t.filter(({ issue_type: s }) => e === s))
1618
1626
  )
1619
- ), ou = Xn.reducer, ae = _(
1620
- (t) => t.uuid
1621
- ), ui = ae.getInitialState({}), Zn = T({
1627
+ ), ou = Xn.reducer, ae = _((t) => t.uuid), ui = ae.getInitialState({}), Zn = T({
1622
1628
  name: "issueTypeFieldsAttachments",
1623
1629
  initialState: ui,
1624
1630
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, ui)),
@@ -1653,7 +1659,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1653
1659
  t.filter((s) => s.fields_revision === e)
1654
1660
  )
1655
1661
  )
1656
- ), ny = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], fu = Zn.reducer, ce = _((t) => t.uuid), li = ce.getInitialState({}), ea = T({
1662
+ ), ny = (t) => (e) => e.issueTypeFieldsAttachmentReducer.instances[t], fu = Zn.reducer, ce = _(
1663
+ (t) => t.uuid
1664
+ ), li = ce.getInitialState({}), ea = T({
1657
1665
  name: "issueTypeFieldValues",
1658
1666
  initialState: li,
1659
1667
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, li)),
@@ -1680,7 +1688,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1680
1688
  deleteIssueTypeFieldValuesMany: dy
1681
1689
  } = ea.actions, Au = (t) => t.issueTypeFieldValuesReducer.instances, ta = p([Au], (t) => Object.values(t)), uy = A(
1682
1690
  p([ta, (t, e) => e], (t, e) => b(t.filter((s) => s.issue === e)))
1683
- ), pi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], bu = ea.reducer, re = _((t) => t.uuid), fi = re.getInitialState({}), sa = T({
1691
+ ), pi = (t) => (e) => e.issueTypeFieldValuesReducer.instances[t], bu = ea.reducer, re = _(
1692
+ (t) => t.uuid
1693
+ ), fi = re.getInitialState({}), sa = T({
1684
1694
  name: "issueTypeFields",
1685
1695
  initialState: fi,
1686
1696
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, fi)),
@@ -1719,9 +1729,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1719
1729
  return b(e.filter((n) => i.has(n.fields_revision)));
1720
1730
  }
1721
1731
  )
1722
- ), gy = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Ou = sa.reducer, oe = _(
1723
- (t) => t.uuid
1724
- ), yi = oe.getInitialState({}), ia = T({
1732
+ ), gy = (t) => (e) => e.issueTypeFieldsReducer.instances[t], Ou = sa.reducer, oe = _((t) => t.uuid), yi = oe.getInitialState({}), ia = T({
1725
1733
  name: "issueTypeFieldValuesAttachments",
1726
1734
  initialState: yi,
1727
1735
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, yi)),
@@ -1802,7 +1810,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1802
1810
  Object.values(t).filter((s) => s.issue_type === e)
1803
1811
  )
1804
1812
  )
1805
- ), vy = (t) => (e) => ca(t)(e).length, Du = aa.reducer, Te = _((t) => t.uuid), Si = Te.getInitialState({}), ra = T({
1813
+ ), vy = (t) => (e) => ca(t)(e).length, Du = aa.reducer, Te = _(
1814
+ (t) => t.uuid
1815
+ ), Si = Te.getInitialState({}), ra = T({
1806
1816
  name: "issueUpdates",
1807
1817
  initialState: Si,
1808
1818
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Si)),
@@ -1843,7 +1853,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1843
1853
  (t) => ze(
1844
1854
  Object.values(t).filter((e) => e.project).reduce((e, s) => ({ ...e, [s.project]: s }), {})
1845
1855
  )
1846
- ), Wu = oa.reducer, q = _((t) => t.uuid), Ri = q.getInitialState({
1856
+ ), Wu = oa.reducer, q = _((t) => t.id), Ri = q.getInitialState({
1847
1857
  currentUser: null
1848
1858
  }), da = T({
1849
1859
  name: "users",
@@ -1867,15 +1877,15 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1867
1877
  setProfilePicture: (t, e) => {
1868
1878
  if (!t.currentUser) return;
1869
1879
  t.currentUser.profile.file = e.payload.file ?? null, t.currentUser.profile.file_sha1 = e.payload.file_sha1 ?? null;
1870
- const s = t.instances[t.currentUser.uuid];
1880
+ const s = t.instances[t.currentUser.id];
1871
1881
  if (!s)
1872
1882
  throw new Error("Unable to find current user in users slice");
1873
1883
  s.profile.file = e.payload.file ?? null, s.profile.file_sha1 = e.payload.file_sha1 ?? null;
1874
1884
  }
1875
1885
  }
1876
1886
  }), {
1877
- initializeUsers: My,
1878
- setUsers: Ku,
1887
+ initializeUsers: Ku,
1888
+ setUsers: My,
1879
1889
  setUser: Cy,
1880
1890
  addUsers: Dy,
1881
1891
  addUser: xy,
@@ -1909,16 +1919,18 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1909
1919
  }), { initializeOrganizationAccesses: Qu, updateOrganizationAccess: Xu, deleteOrganizationAccess: Zu } = ua.actions, la = (t) => t.organizationAccessReducer.instances, Hy = (t) => (e) => e.organizationAccessReducer.instances[t], Wy = p(
1910
1920
  [wt, la],
1911
1921
  (t, e) => Object.values(e).find(
1912
- (i) => i.user === (t == null ? void 0 : t.uuid)
1922
+ (i) => i.user === (t == null ? void 0 : t.id)
1913
1923
  ) ?? null
1914
1924
  ), Ky = (t) => (e) => Object.values(e.organizationAccessReducer.instances).find(
1915
- (s) => s.user === t.uuid
1925
+ (s) => s.user === t.id
1916
1926
  ), el = (t) => {
1917
1927
  const e = {};
1918
1928
  for (const s of Object.values(t.organizationAccessReducer.instances))
1919
1929
  e[s.user] = s;
1920
1930
  return ze(e);
1921
- }, tl = ua.reducer, je = _((t) => t.uuid), Oi = je.getInitialState({}), ha = T({
1931
+ }, tl = ua.reducer, je = _(
1932
+ (t) => t.uuid
1933
+ ), Oi = je.getInitialState({}), ha = T({
1922
1934
  name: "projectAccess",
1923
1935
  initialState: Oi,
1924
1936
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, Oi)),
@@ -1932,7 +1944,7 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1932
1944
  pa,
1933
1945
  (t) => Object.values(t)
1934
1946
  ), Yy = (t) => (e) => e.projectAccessReducer.instances[t], Jy = (t) => (e) => Object.values(e.projectAccessReducer.instances).find(
1935
- (s) => s.user === t.uuid
1947
+ (s) => s.user === t.id
1936
1948
  ), cl = (t) => {
1937
1949
  const e = {};
1938
1950
  for (const s of Object.values(t.projectAccessReducer.instances))
@@ -1980,11 +1992,11 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
1980
1992
  [wt, pl, cl],
1981
1993
  (t, e, s) => b(
1982
1994
  Object.values(e).sort((i, n) => {
1983
- if (i.uuid === (t == null ? void 0 : t.uuid))
1995
+ if (i.id === (t == null ? void 0 : t.id))
1984
1996
  return -1;
1985
- if (n.uuid === (t == null ? void 0 : t.uuid))
1997
+ if (n.id === (t == null ? void 0 : t.id))
1986
1998
  return 1;
1987
- const a = s[i.uuid], c = s[n.uuid];
1999
+ const a = s[i.id], c = s[n.id];
1988
2000
  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) === zi.ADMIN ? -1 : 1;
1989
2001
  })
1990
2002
  )
@@ -2044,11 +2056,11 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2044
2056
  [wt, gl, el],
2045
2057
  (t, e, s) => b(
2046
2058
  Object.values(e).sort((i, n) => {
2047
- if (i.uuid === (t == null ? void 0 : t.uuid))
2059
+ if (i.id === (t == null ? void 0 : t.id))
2048
2060
  return -1;
2049
- if (n.uuid === (t == null ? void 0 : t.uuid))
2061
+ if (n.id === (t == null ? void 0 : t.id))
2050
2062
  return 1;
2051
- const a = s[i.uuid], c = s[n.uuid];
2063
+ const a = s[i.id], c = s[n.id];
2052
2064
  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) === Ui.ADMIN ? -1 : 1;
2053
2065
  })
2054
2066
  )
@@ -2098,7 +2110,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2098
2110
  t.latestRetryTime = e.payload;
2099
2111
  }
2100
2112
  }
2101
- }), gA = (t) => t.outboxReducer.deletedRequests, SA = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Rl, markForDeletion: TA, markAsDeleted: _l, _setLatestRetryTime: Ol } = Aa.actions, Il = Aa.reducer, le = _((t) => t.uuid), vi = le.getInitialState({}), ba = T({
2113
+ }), gA = (t) => t.outboxReducer.deletedRequests, SA = (t) => t.outboxReducer.latestRetryTime, { enqueueRequest: Rl, markForDeletion: TA, markAsDeleted: _l, _setLatestRetryTime: Ol } = Aa.actions, Il = Aa.reducer, le = _(
2114
+ (t) => t.uuid
2115
+ ), vi = le.getInitialState({}), ba = T({
2102
2116
  name: "projectAttachments",
2103
2117
  initialState: vi,
2104
2118
  extraReducers: (t) => t.addCase("RESET", (e) => Object.assign(e, vi)),
@@ -2131,7 +2145,9 @@ const ke = _((t) => t.uuid), Ct = ke.getInitialState({}), Li = T({
2131
2145
  [jl, (t, e) => e],
2132
2146
  (t, e) => b(t.filter(({ project: s }) => e === s))
2133
2147
  )
2134
- ), Dl = ba.reducer, he = _((t) => t.uuid), wi = he.getInitialState({
2148
+ ), Dl = ba.reducer, he = _(
2149
+ (t) => t.uuid
2150
+ ), wi = he.getInitialState({
2135
2151
  activeProjectFileId: null,
2136
2152
  isImportingProjectFile: !1
2137
2153
  }), Sa = T({
@@ -2726,7 +2742,7 @@ class E extends I {
2726
2742
  class _e extends E {
2727
2743
  async _bulkAdd(e) {
2728
2744
  var r;
2729
- const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = [], c = [], d = {};
2745
+ const { store: s } = this.client, i = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = [], c = [], d = {};
2730
2746
  for (const o of e) {
2731
2747
  const { modelUuid: h, file: m } = o, f = await this.getFilePayload(m);
2732
2748
  f.sha1 in d || (d[f.sha1] = f);
@@ -2841,7 +2857,7 @@ class $A extends _e {
2841
2857
  class VA extends E {
2842
2858
  async bulkAdd(e) {
2843
2859
  var l;
2844
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
2860
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
2845
2861
  for (const r of e) {
2846
2862
  const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
2847
2863
  f.sha1 in n || (n[f.sha1] = f);
@@ -2906,7 +2922,7 @@ class VA extends E {
2906
2922
  class GA extends I {
2907
2923
  add(e) {
2908
2924
  var d;
2909
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
2925
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
2910
2926
  ...e,
2911
2927
  created_by: i,
2912
2928
  submitted_at: n
@@ -2951,7 +2967,7 @@ function $e(t, e) {
2951
2967
  class LA extends E {
2952
2968
  async bulkAdd(e, s) {
2953
2969
  var r;
2954
- const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid, a = $e(e, s ?? e.length), c = [], d = [];
2970
+ const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id, a = $e(e, s ?? e.length), c = [], d = [];
2955
2971
  for (const o of a) {
2956
2972
  const h = {}, m = [];
2957
2973
  for (const f of o) {
@@ -3053,7 +3069,7 @@ class BA extends E {
3053
3069
  var c;
3054
3070
  const { store: s } = this.client, i = s.getState(), n = O({
3055
3071
  ...e,
3056
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
3072
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
3057
3073
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
3058
3074
  }), a = this.enqueueRequest({
3059
3075
  description: "Add form submission",
@@ -3132,7 +3148,7 @@ class NA extends I {
3132
3148
  var c;
3133
3149
  const { store: s } = this.client, i = s.getState(), n = O({
3134
3150
  ...e,
3135
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
3151
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
3136
3152
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
3137
3153
  }), a = this.enqueueRequest({
3138
3154
  description: "Add asset procedure field values",
@@ -3155,7 +3171,7 @@ class NA extends I {
3155
3171
  const f = O({
3156
3172
  ...m,
3157
3173
  values: st(m.values).values,
3158
- created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid,
3174
+ created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id,
3159
3175
  submitted_at: i
3160
3176
  });
3161
3177
  a.push(f), h.push({
@@ -3257,7 +3273,8 @@ class NA extends I {
3257
3273
  }
3258
3274
  class HA extends I {
3259
3275
  add(e) {
3260
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3276
+ var d;
3277
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3261
3278
  ...e,
3262
3279
  created_by: i,
3263
3280
  submitted_at: n
@@ -3271,8 +3288,8 @@ class HA extends I {
3271
3288
  blockers: [e.asset_procedure, e.asset_type],
3272
3289
  blocks: [a.uuid]
3273
3290
  });
3274
- return c.then((d) => {
3275
- this.dispatch(Le(d));
3291
+ return c.then((l) => {
3292
+ this.dispatch(Le(l));
3276
3293
  }).catch(() => {
3277
3294
  this.dispatch(Wt(a.uuid));
3278
3295
  }), [a, c];
@@ -3330,7 +3347,8 @@ class HA extends I {
3330
3347
  }
3331
3348
  class WA extends I {
3332
3349
  add(e) {
3333
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3350
+ var d;
3351
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3334
3352
  ...e,
3335
3353
  created_by: i,
3336
3354
  submitted_at: n
@@ -3344,8 +3362,8 @@ class WA extends I {
3344
3362
  blockers: [],
3345
3363
  blocks: [a.uuid]
3346
3364
  });
3347
- return c.then((d) => {
3348
- this.dispatch(Be(d));
3365
+ return c.then((l) => {
3366
+ this.dispatch(Be(l));
3349
3367
  }).catch(() => {
3350
3368
  this.dispatch(Qt(a.uuid));
3351
3369
  }), [a, c];
@@ -3405,10 +3423,11 @@ class WA extends I {
3405
3423
  class KA extends I {
3406
3424
  // Basic CRUD functions
3407
3425
  add(e) {
3426
+ var d;
3408
3427
  const { store: s } = this.client;
3409
3428
  if (!e.canvas_marker && !e.geo_marker)
3410
3429
  throw new Error("Asset must have either a canvas_marker or geo_marker");
3411
- const i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3430
+ const i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3412
3431
  ...e,
3413
3432
  created_by: i,
3414
3433
  submitted_at: n
@@ -3422,8 +3441,8 @@ class KA extends I {
3422
3441
  blockers: [a.asset_type],
3423
3442
  blocks: [a.uuid]
3424
3443
  });
3425
- return c.then((d) => {
3426
- this.dispatch(Ne(d));
3444
+ return c.then((l) => {
3445
+ this.dispatch(Ne(l));
3427
3446
  }).catch(() => {
3428
3447
  this.dispatch(ts(a.uuid));
3429
3448
  }), [a, c];
@@ -3530,7 +3549,8 @@ class KA extends I {
3530
3549
  }
3531
3550
  class YA extends I {
3532
3551
  add(e) {
3533
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3552
+ var d;
3553
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3534
3554
  ...e,
3535
3555
  created_by: i,
3536
3556
  submitted_at: n
@@ -3544,8 +3564,8 @@ class YA extends I {
3544
3564
  blockers: [e.asset, e.stage],
3545
3565
  blocks: [a.uuid]
3546
3566
  });
3547
- return c.then((d) => {
3548
- this.dispatch(hr(d));
3567
+ return c.then((l) => {
3568
+ this.dispatch(hr(l));
3549
3569
  }).catch(() => {
3550
3570
  this.dispatch(cs(a.uuid));
3551
3571
  }), [a, c];
@@ -3567,11 +3587,12 @@ class YA extends I {
3567
3587
  }), n;
3568
3588
  }
3569
3589
  bulkAdd(e) {
3570
- const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = s.getState().userReducer.currentUser.uuid, a = e.map((r) => O(r)), c = a.map((r) => ({
3571
- ...r,
3590
+ var r;
3591
+ const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = s.getState().userReducer.currentUser) == null ? void 0 : r.id, a = e.map((o) => O(o)), c = a.map((o) => ({
3592
+ ...o,
3572
3593
  created_by: n,
3573
3594
  submitted_at: i
3574
- })), d = c.map(({ uuid: r }) => r);
3595
+ })), d = c.map(({ uuid: o }) => o);
3575
3596
  this.dispatch(as(c));
3576
3597
  const l = this.enqueueRequest({
3577
3598
  description: "Bulk create asset stage completions",
@@ -3582,14 +3603,14 @@ class YA extends I {
3582
3603
  completions: a
3583
3604
  },
3584
3605
  blockers: [
3585
- ...e.map((r) => r.asset_procedure_instance),
3586
- ...e.map((r) => r.stage),
3587
- ...e.map((r) => r.asset)
3606
+ ...e.map((o) => o.asset_procedure_instance),
3607
+ ...e.map((o) => o.stage),
3608
+ ...e.map((o) => o.asset)
3588
3609
  ],
3589
3610
  blocks: d
3590
3611
  });
3591
- return l.then((r) => {
3592
- this.dispatch(mr(r));
3612
+ return l.then((o) => {
3613
+ this.dispatch(mr(o));
3593
3614
  }).catch(() => {
3594
3615
  this.dispatch(rs(d));
3595
3616
  }), [c, l];
@@ -3627,7 +3648,8 @@ class YA extends I {
3627
3648
  }
3628
3649
  class JA extends I {
3629
3650
  bulkAdd(e, s) {
3630
- const i = (/* @__PURE__ */ new Date()).toISOString(), n = this.client.store.getState().userReducer.currentUser.uuid, a = e.map((l) => O(l)), c = a.map((l) => ({ ...l, asset_procedure: s, created_by: n, submitted_at: i }));
3651
+ var l;
3652
+ 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 }));
3631
3653
  this.dispatch(ds(c));
3632
3654
  const d = this.enqueueRequest({
3633
3655
  description: "Add asset stages",
@@ -3639,12 +3661,12 @@ class JA extends I {
3639
3661
  stages: a
3640
3662
  },
3641
3663
  blockers: [s],
3642
- blocks: a.map(({ uuid: l }) => l)
3664
+ blocks: a.map(({ uuid: r }) => r)
3643
3665
  });
3644
- return d.then((l) => {
3645
- this.dispatch(nt(l));
3666
+ return d.then((r) => {
3667
+ this.dispatch(nt(r));
3646
3668
  }).catch(() => {
3647
- this.dispatch(ls(c.map(({ uuid: l }) => l)));
3669
+ this.dispatch(ls(c.map(({ uuid: r }) => r)));
3648
3670
  }), [c, d];
3649
3671
  }
3650
3672
  async bulkUpdate(e, s) {
@@ -3773,7 +3795,7 @@ class QA extends _e {
3773
3795
  class XA extends E {
3774
3796
  async bulkAdd(e) {
3775
3797
  var l;
3776
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
3798
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
3777
3799
  for (const r of e) {
3778
3800
  const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
3779
3801
  f.sha1 in n || (n[f.sha1] = f);
@@ -3838,7 +3860,7 @@ class XA extends E {
3838
3860
  class ZA extends I {
3839
3861
  add(e) {
3840
3862
  var d;
3841
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3863
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
3842
3864
  ...e,
3843
3865
  created_by: i,
3844
3866
  submitted_at: n
@@ -3875,7 +3897,7 @@ class ZA extends I {
3875
3897
  class eb extends E {
3876
3898
  async bulkAdd(e, s) {
3877
3899
  var r;
3878
- const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid, a = $e(e, s ?? e.length), c = [], d = [];
3900
+ const i = (/* @__PURE__ */ new Date()).toISOString(), n = (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id, a = $e(e, s ?? e.length), c = [], d = [];
3879
3901
  for (const o of a) {
3880
3902
  const h = {}, m = [];
3881
3903
  for (const f of o) {
@@ -3967,7 +3989,7 @@ class tb extends I {
3967
3989
  var c;
3968
3990
  const { store: s } = this.client, i = s.getState(), n = O({
3969
3991
  ...e,
3970
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
3992
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
3971
3993
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
3972
3994
  }), a = this.enqueueRequest({
3973
3995
  description: "Add asset type field values",
@@ -3990,7 +4012,7 @@ class tb extends I {
3990
4012
  const f = O({
3991
4013
  ...m,
3992
4014
  values: st(m.values).values,
3993
- created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.uuid,
4015
+ created_by: (r = this.client.store.getState().userReducer.currentUser) == null ? void 0 : r.id,
3994
4016
  submitted_at: i
3995
4017
  });
3996
4018
  a.push(f), h.push({
@@ -4087,7 +4109,8 @@ class tb extends I {
4087
4109
  }
4088
4110
  class sb extends I {
4089
4111
  add(e) {
4090
- const { store: s } = this.client, i = s.getState().userReducer.currentUser.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4112
+ var d;
4113
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4091
4114
  ...e,
4092
4115
  created_by: i,
4093
4116
  submitted_at: n
@@ -4101,8 +4124,8 @@ class sb extends I {
4101
4124
  blockers: [],
4102
4125
  blocks: [a.uuid]
4103
4126
  });
4104
- return c.then((d) => {
4105
- this.dispatch(We(d));
4127
+ return c.then((l) => {
4128
+ this.dispatch(We(l));
4106
4129
  }).catch(() => {
4107
4130
  this.dispatch(_s(a.uuid));
4108
4131
  }), [a, c];
@@ -4167,7 +4190,7 @@ class sb extends I {
4167
4190
  class ib extends I {
4168
4191
  add(e) {
4169
4192
  var d;
4170
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4193
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4171
4194
  ...e,
4172
4195
  created_by: i,
4173
4196
  submitted_at: n
@@ -4262,7 +4285,7 @@ class nb extends _e {
4262
4285
  // NOTE: overriding the method from BaseAttachmentService since document attachments get vectorized
4263
4286
  async bulkAdd(s) {
4264
4287
  var h;
4265
- const { store: i } = this.client, n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, a = (/* @__PURE__ */ new Date()).toISOString(), c = [], d = [], l = {}, r = {};
4288
+ const { store: i } = this.client, n = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, a = (/* @__PURE__ */ new Date()).toISOString(), c = [], d = [], l = {}, r = {};
4266
4289
  for (const m of s) {
4267
4290
  const { documentUuid: f, file: S } = m, R = await this.getFilePayload(S);
4268
4291
  R.sha1 in l || (l[R.sha1] = R, r[R.sha1] = []);
@@ -4347,7 +4370,7 @@ class nb extends _e {
4347
4370
  class ab extends I {
4348
4371
  add(e) {
4349
4372
  var d;
4350
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4373
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
4351
4374
  ...e,
4352
4375
  created_by: i,
4353
4376
  submitted_at: n
@@ -4679,7 +4702,7 @@ class ob extends I {
4679
4702
  class db extends E {
4680
4703
  async bulkAdd(e) {
4681
4704
  var l;
4682
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
4705
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
4683
4706
  for (const r of e) {
4684
4707
  const { revisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
4685
4708
  f.sha1 in n || (n[f.sha1] = f);
@@ -4742,7 +4765,7 @@ class db extends E {
4742
4765
  class ub extends E {
4743
4766
  add(e) {
4744
4767
  var d;
4745
- const { store: s } = this.client, n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, a = O({
4768
+ const { store: s } = this.client, n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, a = O({
4746
4769
  ...e,
4747
4770
  created_by: n,
4748
4771
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
@@ -4803,7 +4826,7 @@ const lb = async (t) => {
4803
4826
  class hb extends E {
4804
4827
  add(e, s) {
4805
4828
  var r;
4806
- const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (r = i.getState().userReducer.currentUser) == null ? void 0 : r.uuid, c = O({
4829
+ const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (r = i.getState().userReducer.currentUser) == null ? void 0 : r.id, c = O({
4807
4830
  ...e,
4808
4831
  submitted_at: n,
4809
4832
  created_by: a
@@ -4872,7 +4895,7 @@ class hb extends E {
4872
4895
  class mb extends E {
4873
4896
  async bulkAdd(e) {
4874
4897
  var l;
4875
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
4898
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
4876
4899
  for (const r of e) {
4877
4900
  const { submissionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
4878
4901
  f.sha1 in n || (n[f.sha1] = f);
@@ -4953,7 +4976,7 @@ class mb extends E {
4953
4976
  class pb extends E {
4954
4977
  async add(e) {
4955
4978
  var h;
4956
- const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), c = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.uuid, d = n.project, l = await this.getFilePayload(i), r = O({
4979
+ const { store: s } = this.client, { file: i, ...n } = e, a = (/* @__PURE__ */ new Date()).toISOString(), c = (h = s.getState().userReducer.currentUser) == null ? void 0 : h.id, d = n.project, l = await this.getFilePayload(i), r = O({
4957
4980
  ...n,
4958
4981
  file_name: i.name,
4959
4982
  file_sha1: l.sha1,
@@ -4991,7 +5014,7 @@ class pb extends E {
4991
5014
  }
4992
5015
  async bulkAdd(e, s) {
4993
5016
  var h;
4994
- const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.uuid, c = [], d = [], l = [], r = {};
5017
+ const { store: i } = this.client, n = (/* @__PURE__ */ new Date()).toISOString(), a = (h = i.getState().userReducer.currentUser) == null ? void 0 : h.id, c = [], d = [], l = [], r = {};
4995
5018
  for (const m of e) {
4996
5019
  const { file: f, ...S } = m, R = await this.getFilePayload(f);
4997
5020
  R.sha1 in r || (r[R.sha1] = R);
@@ -5086,7 +5109,7 @@ class pb extends E {
5086
5109
  class fb extends I {
5087
5110
  add(e) {
5088
5111
  var d;
5089
- const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, a = O({
5112
+ const { store: s } = this.client, i = (/* @__PURE__ */ new Date()).toISOString(), n = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, a = O({
5090
5113
  ...e,
5091
5114
  submitted_at: i,
5092
5115
  created_by: n
@@ -5245,7 +5268,7 @@ class bb extends I {
5245
5268
  var a;
5246
5269
  const { store: s } = this.client, i = O({
5247
5270
  ...e,
5248
- author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.uuid,
5271
+ author: (a = s.getState().userReducer.currentUser) == null ? void 0 : a.id,
5249
5272
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
5250
5273
  });
5251
5274
  this.dispatch(ti(i));
@@ -5315,7 +5338,7 @@ class bb extends I {
5315
5338
  class gb extends I {
5316
5339
  add(e) {
5317
5340
  var l;
5318
- const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (l = i.userReducer.currentUser) == null ? void 0 : l.uuid, c = O({
5341
+ const { store: s } = this.client, i = s.getState(), n = (/* @__PURE__ */ new Date()).toISOString(), a = (l = i.userReducer.currentUser) == null ? void 0 : l.id, c = O({
5319
5342
  ...e,
5320
5343
  submitted_at: n,
5321
5344
  created_by: a
@@ -5393,13 +5416,13 @@ class gb extends I {
5393
5416
  );
5394
5417
  a[r] = o ? {
5395
5418
  full_name: o.username,
5396
- uuid: o.uuid
5419
+ id: o.id
5397
5420
  } : null;
5398
5421
  break;
5399
5422
  }
5400
5423
  }
5401
5424
  const c = O({
5402
- created_by: (l = s.userReducer.currentUser) == null ? void 0 : l.uuid,
5425
+ created_by: (l = s.userReducer.currentUser) == null ? void 0 : l.id,
5403
5426
  submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
5404
5427
  issue: i.uuid,
5405
5428
  changes: a
@@ -5508,7 +5531,7 @@ class Sb extends _e {
5508
5531
  class Tb extends E {
5509
5532
  async bulkAdd(e) {
5510
5533
  var l;
5511
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
5534
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
5512
5535
  for (const r of e) {
5513
5536
  const { fieldsRevisionUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
5514
5537
  f.sha1 in n || (n[f.sha1] = f);
@@ -5573,7 +5596,7 @@ class Tb extends E {
5573
5596
  class Rb extends I {
5574
5597
  add(e) {
5575
5598
  var d;
5576
- const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.uuid, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
5599
+ const { store: s } = this.client, i = (d = s.getState().userReducer.currentUser) == null ? void 0 : d.id, n = (/* @__PURE__ */ new Date()).toISOString(), a = O({
5577
5600
  ...e,
5578
5601
  created_by: i,
5579
5602
  submitted_at: n
@@ -5610,7 +5633,7 @@ class Rb extends I {
5610
5633
  class _b extends E {
5611
5634
  async bulkAdd(e) {
5612
5635
  var l;
5613
- const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.uuid, n = {}, a = [], c = [];
5636
+ const s = (/* @__PURE__ */ new Date()).toISOString(), i = (l = this.client.store.getState().userReducer.currentUser) == null ? void 0 : l.id, n = {}, a = [], c = [];
5614
5637
  for (const r of e) {
5615
5638
  const { fieldValuesUuid: o, fieldIdentifier: h, file: m } = r, f = await this.getFilePayload(m);
5616
5639
  f.sha1 in n || (n[f.sha1] = f);
@@ -5693,7 +5716,7 @@ class Ob extends I {
5693
5716
  var c;
5694
5717
  const { store: s } = this.client, i = s.getState(), n = O({
5695
5718
  ...e,
5696
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid,
5719
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id,
5697
5720
  submitted_at: (/* @__PURE__ */ new Date()).toISOString()
5698
5721
  }), a = this.enqueueRequest({
5699
5722
  description: "Add issue type field values",
@@ -5772,7 +5795,7 @@ class Ib extends I {
5772
5795
  const { store: s } = this.client, i = s.getState(), n = O({
5773
5796
  ...e,
5774
5797
  submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
5775
- created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.uuid
5798
+ created_by: (c = i.userReducer.currentUser) == null ? void 0 : c.id
5776
5799
  });
5777
5800
  this.dispatch(qu(n));
5778
5801
  const a = this.enqueueRequest({
@@ -6542,7 +6565,7 @@ class Db extends I {
6542
6565
  blocks: []
6543
6566
  });
6544
6567
  for (const c of n)
6545
- i[c.uuid] = c;
6568
+ i[c.id] = c;
6546
6569
  const a = await this.enqueueRequest({
6547
6570
  description: "Fetch project users",
6548
6571
  method: u.GET,
@@ -6551,7 +6574,7 @@ class Db extends I {
6551
6574
  blocks: []
6552
6575
  });
6553
6576
  for (const c of a)
6554
- i[c.uuid] = c;
6577
+ i[c.id] = c;
6555
6578
  this.dispatch(Ku(Object.values(i)));
6556
6579
  }
6557
6580
  }
@@ -7150,7 +7173,7 @@ export {
7150
7173
  xl as initializeProjectFiles,
7151
7174
  Qy as initializeProjects,
7152
7175
  Yl as initializeTeams,
7153
- My as initializeUsers,
7176
+ Ku as initializeUsers,
7154
7177
  sm as isToday,
7155
7178
  vd as issueAssociationReducer,
7156
7179
  Ln as issueAssociationSlice,
@@ -7525,7 +7548,7 @@ export {
7525
7548
  Jp as setTokens,
7526
7549
  Co as setUploadUrl,
7527
7550
  Cy as setUser,
7528
- Ku as setUsers,
7551
+ My as setUsers,
7529
7552
  em as shallowEqual,
7530
7553
  hm as slugify,
7531
7554
  lm as spacesToDashesLower,