@overmap-ai/core 1.0.53-add-agent-slice.0 → 1.0.53-fix-not-send-org-in-payload.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @overmap-ai/core
2
-
3
- The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
4
- packages.
1
+ # @overmap-ai/core
2
+
3
+ The `core` package contains core functionality for the Overmap platform. It is a peer dependency of all other overmap
4
+ packages.
@@ -678,15 +678,15 @@ const wrapMigration = (migrator) => (state) => {
678
678
  };
679
679
  const migrations = [initialVersioning, signOut, signOut, createOutboxState];
680
680
  const manifest = Object.fromEntries(migrations.map((migration2, i) => [i, wrapMigration(migration2)]));
681
- const initialState$s = {
681
+ const initialState$r = {
682
682
  accessToken: "",
683
683
  refreshToken: "",
684
684
  isLoggedIn: false
685
685
  };
686
686
  const authSlice = createSlice({
687
687
  name: "auth",
688
- initialState: initialState$s,
689
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$s)),
688
+ initialState: initialState$r,
689
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$r)),
690
690
  reducers: {
691
691
  setTokens: (state, action) => {
692
692
  state.accessToken = action.payload.accessToken;
@@ -1430,7 +1430,7 @@ const getLocalRelativeDateString = memoize((date, min, max) => {
1430
1430
  return getLocalDateString(date);
1431
1431
  return relative.format(days, "days");
1432
1432
  });
1433
- const initialState$r = {
1433
+ const initialState$q = {
1434
1434
  categories: {},
1435
1435
  usedCategoryColors: [],
1436
1436
  categoryVisibility: {
@@ -1440,8 +1440,8 @@ const initialState$r = {
1440
1440
  };
1441
1441
  const categorySlice = createSlice({
1442
1442
  name: "categories",
1443
- initialState: initialState$r,
1444
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$r)),
1443
+ initialState: initialState$q,
1444
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$q)),
1445
1445
  reducers: {
1446
1446
  setCategories: (state, action) => {
1447
1447
  if (!Array.isArray(action.payload))
@@ -1613,14 +1613,14 @@ function removeAttachments(state, action) {
1613
1613
  delete state.attachments[attachmentId];
1614
1614
  }
1615
1615
  }
1616
- const initialState$q = {
1616
+ const initialState$p = {
1617
1617
  components: {},
1618
1618
  attachments: {}
1619
1619
  };
1620
1620
  const componentSlice = createSlice({
1621
1621
  name: "components",
1622
- initialState: initialState$q,
1623
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$q)),
1622
+ initialState: initialState$p,
1623
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$p)),
1624
1624
  reducers: {
1625
1625
  addComponent: (state, action) => {
1626
1626
  state.components[action.payload.offline_id] = action.payload;
@@ -1776,13 +1776,13 @@ const {
1776
1776
  removeAllComponentsOfType
1777
1777
  } = componentSlice.actions;
1778
1778
  const componentReducer = componentSlice.reducer;
1779
- const initialState$p = {
1779
+ const initialState$o = {
1780
1780
  completionsByComponentId: {}
1781
1781
  };
1782
1782
  const componentStageCompletionSlice = createSlice({
1783
1783
  name: "componentStageCompletions",
1784
- initialState: initialState$p,
1785
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$p)),
1784
+ initialState: initialState$o,
1785
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$o)),
1786
1786
  reducers: {
1787
1787
  addStageCompletion: (state, action) => {
1788
1788
  let stageToCompletionDateMapping = state.completionsByComponentId[action.payload.component];
@@ -1833,13 +1833,13 @@ const selectCompletedStageIdsForComponent = (component) => (state) => {
1833
1833
  return Object.keys(state.componentStageCompletionReducer.completionsByComponentId[component.offline_id] ?? {});
1834
1834
  };
1835
1835
  const componentStageCompletionReducer = componentStageCompletionSlice.reducer;
1836
- const initialState$o = {
1836
+ const initialState$n = {
1837
1837
  stages: {}
1838
1838
  };
1839
1839
  const componentStageSlice = createSlice({
1840
1840
  name: "componentStages",
1841
- initialState: initialState$o,
1842
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$o)),
1841
+ initialState: initialState$n,
1842
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$n)),
1843
1843
  reducers: {
1844
1844
  addStages: (state, action) => {
1845
1845
  Object.assign(state.stages, toOfflineIdRecord(action.payload));
@@ -1949,15 +1949,15 @@ const selectStageFormIdsFromStageIds = restructureCreateSelectorWithArgs(
1949
1949
  );
1950
1950
  const { addStages, updateStages, removeStages, linkStageToForm, unlinkStageToForm } = componentStageSlice.actions;
1951
1951
  const componentStageReducer = componentStageSlice.reducer;
1952
- const initialState$n = {
1952
+ const initialState$m = {
1953
1953
  componentTypes: {},
1954
1954
  hiddenComponentTypeIds: {},
1955
1955
  attachments: {}
1956
1956
  };
1957
1957
  const componentTypeSlice = createSlice({
1958
1958
  name: "componentTypes",
1959
- initialState: initialState$n,
1960
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$n)),
1959
+ initialState: initialState$m,
1960
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$m)),
1961
1961
  reducers: {
1962
1962
  addComponentType: (state, action) => {
1963
1963
  state.componentTypes[action.payload.offline_id] = action.payload;
@@ -2068,13 +2068,13 @@ const {
2068
2068
  deleteComponentType
2069
2069
  } = componentTypeSlice.actions;
2070
2070
  const componentTypeReducer = componentTypeSlice.reducer;
2071
- const initialState$m = {
2071
+ const initialState$l = {
2072
2072
  workspaces: {},
2073
2073
  activeWorkspaceId: null
2074
2074
  };
2075
2075
  const workspaceSlice = createSlice({
2076
2076
  name: "workspace",
2077
- initialState: initialState$m,
2077
+ initialState: initialState$l,
2078
2078
  // The `reducers` field lets us define reducers and generate associated actions
2079
2079
  reducers: {
2080
2080
  setWorkspaces: (state, action) => {
@@ -2131,7 +2131,7 @@ const selectPermittedWorkspaceIds = createSelector(
2131
2131
  );
2132
2132
  const workspaceReducer = workspaceSlice.reducer;
2133
2133
  const maxRecentIssues = 10;
2134
- const initialState$l = {
2134
+ const initialState$k = {
2135
2135
  issues: {},
2136
2136
  attachments: {},
2137
2137
  comments: {},
@@ -2143,9 +2143,9 @@ const initialState$l = {
2143
2143
  };
2144
2144
  const issueSlice = createSlice({
2145
2145
  name: "issues",
2146
- initialState: initialState$l,
2146
+ initialState: initialState$k,
2147
2147
  extraReducers: (builder) => builder.addCase("RESET", (state) => {
2148
- Object.assign(state, initialState$l);
2148
+ Object.assign(state, initialState$k);
2149
2149
  }),
2150
2150
  reducers: {
2151
2151
  setIssues: (state, action) => {
@@ -2570,14 +2570,14 @@ const selectRecentIssuesAsSearchResults = createSelector(
2570
2570
  }
2571
2571
  );
2572
2572
  const issueReducer = issueSlice.reducer;
2573
- const initialState$k = {
2573
+ const initialState$j = {
2574
2574
  issueTypes: {}
2575
2575
  };
2576
2576
  const issueTypeSlice = createSlice({
2577
2577
  name: "issueTypes",
2578
- initialState: initialState$k,
2578
+ initialState: initialState$j,
2579
2579
  extraReducers: (builder) => builder.addCase("RESET", (state) => {
2580
- Object.assign(state, initialState$k);
2580
+ Object.assign(state, initialState$j);
2581
2581
  }),
2582
2582
  reducers: {
2583
2583
  setIssueTypes: (state, action) => {
@@ -2644,15 +2644,15 @@ const selectIssuesOfIssueTypeCount = (issueTypeId) => (state) => {
2644
2644
  return ((_a2 = selectIssuesOfIssueType(issueTypeId)(state)) == null ? void 0 : _a2.length) ?? 0;
2645
2645
  };
2646
2646
  const issueTypeReducer = issueTypeSlice.reducer;
2647
- const initialState$j = {
2647
+ const initialState$i = {
2648
2648
  s3Urls: {}
2649
2649
  };
2650
2650
  const msPerHour = 1e3 * 60 * 60;
2651
2651
  const msPerWeek = msPerHour * 24 * 7;
2652
2652
  const fileSlice = createSlice({
2653
2653
  name: "file",
2654
- initialState: initialState$j,
2655
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$j)),
2654
+ initialState: initialState$i,
2655
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$i)),
2656
2656
  reducers: {
2657
2657
  setUploadUrl: (state, action) => {
2658
2658
  const { url, fields, sha1 } = action.payload;
@@ -2679,7 +2679,7 @@ const selectUploadUrl = (sha1) => (state) => {
2679
2679
  return url;
2680
2680
  };
2681
2681
  const fileReducer = fileSlice.reducer;
2682
- const initialState$i = {
2682
+ const initialState$h = {
2683
2683
  // TODO: Change first MapStyle.SATELLITE to MaptStyle.None when project creation map is fixed
2684
2684
  mapStyle: MapStyle.SATELLITE,
2685
2685
  showTooltips: false,
@@ -2687,8 +2687,8 @@ const initialState$i = {
2687
2687
  };
2688
2688
  const mapSlice = createSlice({
2689
2689
  name: "map",
2690
- initialState: initialState$i,
2691
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$i)),
2690
+ initialState: initialState$h,
2691
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$h)),
2692
2692
  reducers: {
2693
2693
  setMapStyle: (state, action) => {
2694
2694
  state.mapStyle = action.payload;
@@ -2757,7 +2757,7 @@ var LicenseStatus = /* @__PURE__ */ ((LicenseStatus2) => {
2757
2757
  LicenseStatus2[LicenseStatus2["PAST_DUE"] = 8] = "PAST_DUE";
2758
2758
  return LicenseStatus2;
2759
2759
  })(LicenseStatus || {});
2760
- const initialState$h = {
2760
+ const initialState$g = {
2761
2761
  users: {},
2762
2762
  currentUser: {
2763
2763
  id: 0,
@@ -2768,8 +2768,8 @@ const initialState$h = {
2768
2768
  };
2769
2769
  const userSlice = createSlice({
2770
2770
  name: "users",
2771
- initialState: initialState$h,
2772
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$h)),
2771
+ initialState: initialState$g,
2772
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$g)),
2773
2773
  reducers: {
2774
2774
  setUsers: (state, action) => {
2775
2775
  const usersMapping = {};
@@ -2831,13 +2831,13 @@ const selectUser = (userId) => (state) => {
2831
2831
  const selectUsersAsMapping = (state) => state.userReducer.users;
2832
2832
  const selectFavouriteProjects = (state) => state.userReducer.currentUser.profile.favourite_project_ids;
2833
2833
  const userReducer = userSlice.reducer;
2834
- const initialState$g = {
2834
+ const initialState$f = {
2835
2835
  organizationAccesses: {}
2836
2836
  };
2837
2837
  const organizationAccessSlice = createSlice({
2838
2838
  name: "organizationAccess",
2839
- initialState: initialState$g,
2840
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$g)),
2839
+ initialState: initialState$f,
2840
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$f)),
2841
2841
  reducers: {
2842
2842
  setOrganizationAccesses: (state, action) => {
2843
2843
  if (!Array.isArray(action.payload))
@@ -2900,13 +2900,13 @@ const selectOrganizationAccessUserMapping = (state) => {
2900
2900
  return organizationAccesses;
2901
2901
  };
2902
2902
  const organizationAccessReducer = organizationAccessSlice.reducer;
2903
- const initialState$f = {
2903
+ const initialState$e = {
2904
2904
  licenses: {}
2905
2905
  };
2906
2906
  const licenseSlice = createSlice({
2907
2907
  name: "license",
2908
- initialState: initialState$f,
2909
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$f)),
2908
+ initialState: initialState$e,
2909
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$e)),
2910
2910
  reducers: {
2911
2911
  setLicenses: (state, action) => {
2912
2912
  if (!Array.isArray(action.payload))
@@ -2951,13 +2951,13 @@ const selectLicensesForProjectsMapping = createSelector(
2951
2951
  (licenses) => Object.values(licenses).filter((license) => license.project).reduce((accum, license) => ({ ...accum, [license.project]: license }), {})
2952
2952
  );
2953
2953
  const licenseReducer = licenseSlice.reducer;
2954
- const initialState$e = {
2954
+ const initialState$d = {
2955
2955
  projectAccesses: {}
2956
2956
  };
2957
2957
  const projectAccessSlice = createSlice({
2958
2958
  name: "projectAccess",
2959
- initialState: initialState$e,
2960
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$e)),
2959
+ initialState: initialState$d,
2960
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$d)),
2961
2961
  reducers: {
2962
2962
  setProjectAccesses: (state, action) => {
2963
2963
  if (!Array.isArray(action.payload))
@@ -3025,7 +3025,7 @@ const selectProjectAccessUserMapping = (state) => {
3025
3025
  return projectAccesses;
3026
3026
  };
3027
3027
  const projectAccessReducer = projectAccessSlice.reducer;
3028
- const initialState$d = {
3028
+ const initialState$c = {
3029
3029
  projects: {},
3030
3030
  activeProjectId: null,
3031
3031
  recentProjectIds: [],
@@ -3035,7 +3035,7 @@ const initialState$d = {
3035
3035
  };
3036
3036
  const projectSlice = createSlice({
3037
3037
  name: "projects",
3038
- initialState: initialState$d,
3038
+ initialState: initialState$c,
3039
3039
  reducers: {
3040
3040
  setProjects: (state, action) => {
3041
3041
  const projectsMap = {};
@@ -3222,14 +3222,14 @@ const selectAttachmentsOfProjectByType = restructureCreateSelectorWithArgs(
3222
3222
  }
3223
3223
  )
3224
3224
  );
3225
- const initialState$c = {
3225
+ const initialState$b = {
3226
3226
  organizations: {},
3227
3227
  activeOrganizationId: null
3228
3228
  };
3229
3229
  const organizationSlice = createSlice({
3230
3230
  name: "organizations",
3231
- initialState: initialState$c,
3232
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$c)),
3231
+ initialState: initialState$b,
3232
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$b)),
3233
3233
  reducers: {
3234
3234
  setOrganizations: (state, action) => {
3235
3235
  for (const org of action.payload) {
@@ -3348,14 +3348,14 @@ const createOfflineAction = (request2, baseUrl) => {
3348
3348
  }
3349
3349
  };
3350
3350
  };
3351
- const initialState$b = {
3351
+ const initialState$a = {
3352
3352
  deletedRequests: [],
3353
3353
  latestRetryTime: 0
3354
3354
  };
3355
3355
  const outboxSlice = createSlice({
3356
3356
  name: "outbox",
3357
- initialState: initialState$b,
3358
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$b)),
3357
+ initialState: initialState$a,
3358
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$a)),
3359
3359
  reducers: {
3360
3360
  // enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
3361
3361
  // Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
@@ -3387,7 +3387,7 @@ const selectDeletedRequests = (state) => state.outboxReducer.deletedRequests;
3387
3387
  const selectLatestRetryTime = (state) => state.outboxReducer.latestRetryTime;
3388
3388
  const { enqueueRequest, markForDeletion, markAsDeleted, _setLatestRetryTime } = outboxSlice.actions;
3389
3389
  const outboxReducer = outboxSlice.reducer;
3390
- const initialState$a = {
3390
+ const initialState$9 = {
3391
3391
  projectFiles: {},
3392
3392
  activeProjectFileId: null,
3393
3393
  isImportingProjectFile: false,
@@ -3395,8 +3395,8 @@ const initialState$a = {
3395
3395
  };
3396
3396
  const projectFileSlice = createSlice({
3397
3397
  name: "projectFiles",
3398
- initialState: initialState$a,
3399
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$a)),
3398
+ initialState: initialState$9,
3399
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$9)),
3400
3400
  reducers: {
3401
3401
  addOrReplaceProjectFiles: (state, action) => {
3402
3402
  for (let fileObj of action.payload) {
@@ -3497,12 +3497,12 @@ const selectProjectFiles = createSelector(
3497
3497
  const selectActiveProjectFileId = (state) => state.projectFileReducer.activeProjectFileId;
3498
3498
  const selectIsImportingProjectFile = (state) => state.projectFileReducer.isImportingProjectFile;
3499
3499
  const projectFileReducer = projectFileSlice.reducer;
3500
- const initialState$9 = {
3500
+ const initialState$8 = {
3501
3501
  isRehydrated: false
3502
3502
  };
3503
3503
  const rehydratedSlice = createSlice({
3504
3504
  name: "rehydrated",
3505
- initialState: initialState$9,
3505
+ initialState: initialState$8,
3506
3506
  // The `reducers` field lets us define reducers and generate associated actions
3507
3507
  reducers: {
3508
3508
  setRehydrated: (state, action) => {
@@ -3512,7 +3512,7 @@ const rehydratedSlice = createSlice({
3512
3512
  });
3513
3513
  const selectRehydrated = (state) => state.rehydratedReducer.isRehydrated;
3514
3514
  const rehydratedReducer = rehydratedSlice.reducer;
3515
- const initialState$8 = {
3515
+ const initialState$7 = {
3516
3516
  useIssueTemplate: false,
3517
3517
  placementMode: false,
3518
3518
  enableClustering: false,
@@ -3529,8 +3529,8 @@ const initialState$8 = {
3529
3529
  };
3530
3530
  const settingSlice = createSlice({
3531
3531
  name: "settings",
3532
- initialState: initialState$8,
3533
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$8)),
3532
+ initialState: initialState$7,
3533
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$7)),
3534
3534
  reducers: {
3535
3535
  setEnableDuplicateIssues: (state, action) => {
3536
3536
  state.useIssueTemplate = action.payload;
@@ -3589,14 +3589,14 @@ const formRevisionSortFn = (formRevisionA, formRevisionB) => {
3589
3589
  return revisionA < revisionB ? -1 : 1;
3590
3590
  }
3591
3591
  };
3592
- const initialState$7 = {
3592
+ const initialState$6 = {
3593
3593
  formRevisions: {},
3594
3594
  attachments: {}
3595
3595
  };
3596
3596
  const formRevisionsSlice = createSlice({
3597
3597
  name: "formRevisions",
3598
- initialState: initialState$7,
3599
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$7)),
3598
+ initialState: initialState$6,
3599
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$6)),
3600
3600
  reducers: {
3601
3601
  // revision related actions
3602
3602
  setFormRevision: (state, action) => {
@@ -3776,13 +3776,13 @@ const selectAttachmentsOfFormRevision = restructureCreateSelectorWithArgs(
3776
3776
  )
3777
3777
  );
3778
3778
  const formRevisionReducer = formRevisionsSlice.reducer;
3779
- const initialState$6 = {
3779
+ const initialState$5 = {
3780
3780
  forms: {}
3781
3781
  };
3782
3782
  const formSlice = createSlice({
3783
3783
  name: "forms",
3784
- initialState: initialState$6,
3785
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$6)),
3784
+ initialState: initialState$5,
3785
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$5)),
3786
3786
  reducers: {
3787
3787
  setForms: (state, action) => {
3788
3788
  state.forms = {};
@@ -3887,14 +3887,14 @@ const selectGeneralFormCount = createSelector([selectFormMapping], (userForms) =
3887
3887
  return Object.values(userForms).filter((form) => !form.component_type).length;
3888
3888
  });
3889
3889
  const formReducer = formSlice.reducer;
3890
- const initialState$5 = {
3890
+ const initialState$4 = {
3891
3891
  formSubmissions: {},
3892
3892
  attachments: {}
3893
3893
  };
3894
3894
  const formSubmissionSlice = createSlice({
3895
3895
  name: "formSubmissions",
3896
- initialState: initialState$5,
3897
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$5)),
3896
+ initialState: initialState$4,
3897
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$4)),
3898
3898
  reducers: {
3899
3899
  setFormSubmission: (state, action) => {
3900
3900
  state.formSubmissions[action.payload.offline_id] = action.payload;
@@ -4131,12 +4131,12 @@ const selectAttachmentsOfFormSubmission = restructureCreateSelectorWithArgs(
4131
4131
  )
4132
4132
  );
4133
4133
  const formSubmissionReducer = formSubmissionSlice.reducer;
4134
- const initialState$4 = {
4134
+ const initialState$3 = {
4135
4135
  emailDomains: {}
4136
4136
  };
4137
4137
  const emailDomainsSlice = createSlice({
4138
4138
  name: "emailDomains",
4139
- initialState: initialState$4,
4139
+ initialState: initialState$3,
4140
4140
  reducers: {
4141
4141
  setEmailDomains: (state, action) => {
4142
4142
  const emailDomains = {};
@@ -4163,15 +4163,15 @@ const selectSortedEmailDomains = (state) => Object.values(state.emailDomainsRedu
4163
4163
  (ed1, ed2) => ed1.domain.localeCompare(ed2.domain)
4164
4164
  );
4165
4165
  const emailDomainsReducer = emailDomainsSlice.reducer;
4166
- const initialState$3 = {
4166
+ const initialState$2 = {
4167
4167
  documents: {},
4168
4168
  attachments: {}
4169
4169
  };
4170
4170
  const documentSlice = createSlice({
4171
4171
  name: "documents",
4172
- initialState: initialState$3,
4172
+ initialState: initialState$2,
4173
4173
  extraReducers: (builder) => builder.addCase("RESET", (state) => {
4174
- Object.assign(state, initialState$3);
4174
+ Object.assign(state, initialState$2);
4175
4175
  }),
4176
4176
  reducers: {
4177
4177
  setDocuments: (state, action) => {
@@ -4396,13 +4396,13 @@ const selectAttachmentsOfDocumentByType = restructureCreateSelectorWithArgs(
4396
4396
  )
4397
4397
  );
4398
4398
  const documentsReducer = documentSlice.reducer;
4399
- const initialState$2 = {
4399
+ const initialState$1 = {
4400
4400
  teams: {}
4401
4401
  };
4402
4402
  const teamSlice = createSlice({
4403
4403
  name: "teams",
4404
- initialState: initialState$2,
4405
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$2)),
4404
+ initialState: initialState$1,
4405
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$1)),
4406
4406
  reducers: {
4407
4407
  setTeam: (state, action) => {
4408
4408
  state.teams[action.payload.offline_id] = action.payload;
@@ -4452,22 +4452,6 @@ const selectTeamsOfUser = restructureCreateSelectorWithArgs(
4452
4452
  })
4453
4453
  );
4454
4454
  const teamReducer = teamSlice.reducer;
4455
- const initialState$1 = {
4456
- conversationId: void 0
4457
- };
4458
- const agentSlice = createSlice({
4459
- name: "agents",
4460
- initialState: initialState$1,
4461
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$1)),
4462
- reducers: {
4463
- setConversationId: (state, action) => {
4464
- state.conversationId = action.payload;
4465
- }
4466
- }
4467
- });
4468
- const { setConversationId } = agentSlice.actions;
4469
- const selectConversationId = (state) => state.agentReducer.conversationId;
4470
- const agentReducer = agentSlice.reducer;
4471
4455
  const initialState = {
4472
4456
  version: 0
4473
4457
  };
@@ -4518,8 +4502,7 @@ const overmapReducers = {
4518
4502
  emailDomainsReducer,
4519
4503
  licenseReducer,
4520
4504
  documentsReducer,
4521
- teamReducer,
4522
- agentReducer
4505
+ teamReducer
4523
4506
  };
4524
4507
  const overmapReducer = combineReducers(overmapReducers);
4525
4508
  const resetStore = "RESET";
@@ -7311,7 +7294,7 @@ class UserFormService extends BaseApiService {
7311
7294
  const currentUser = state.userReducer.currentUser;
7312
7295
  const activeWorkspaceId = state.workspaceReducer.activeWorkspaceId;
7313
7296
  const submittedAt = (/* @__PURE__ */ new Date()).toISOString();
7314
- const offlineFormPayload = offline({});
7297
+ const offlineFormPayload = offline({ ...ownerAttrs });
7315
7298
  const offlineRevisionPayload = offline({ ...initialRevision, submitted_at: submittedAt });
7316
7299
  const retForm = {
7317
7300
  ...offlineFormPayload,
@@ -16668,8 +16651,6 @@ export {
16668
16651
  addToRecentIssues,
16669
16652
  addUsers,
16670
16653
  addWorkspace,
16671
- agentReducer,
16672
- agentSlice,
16673
16654
  areArraysEqual,
16674
16655
  authReducer,
16675
16656
  authSlice,
@@ -16910,7 +16891,6 @@ export {
16910
16891
  selectComponentsByType,
16911
16892
  selectComponentsFromComponentType,
16912
16893
  selectComponentsMapping,
16913
- selectConversationId,
16914
16894
  selectCreateProjectType,
16915
16895
  selectCurrentUser,
16916
16896
  selectDeletedRequests,
@@ -17051,7 +17031,6 @@ export {
17051
17031
  setComponentTypeAttachments,
17052
17032
  setComponentTypes,
17053
17033
  setComponents,
17054
- setConversationId,
17055
17034
  setCreateProjectType,
17056
17035
  setCurrentUser,
17057
17036
  setDocumentAttachments,