@overmap-ai/core 1.0.52 → 1.0.53-add-agent-slice.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.
@@ -668,15 +668,15 @@ var __publicField = (obj, key, value) => {
668
668
  };
669
669
  const migrations = [initialVersioning, signOut, signOut, createOutboxState];
670
670
  const manifest = Object.fromEntries(migrations.map((migration2, i) => [i, wrapMigration(migration2)]));
671
- const initialState$q = {
671
+ const initialState$s = {
672
672
  accessToken: "",
673
673
  refreshToken: "",
674
674
  isLoggedIn: false
675
675
  };
676
676
  const authSlice = toolkit.createSlice({
677
677
  name: "auth",
678
- initialState: initialState$q,
679
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$q)),
678
+ initialState: initialState$s,
679
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$s)),
680
680
  reducers: {
681
681
  setTokens: (state, action) => {
682
682
  state.accessToken = action.payload.accessToken;
@@ -1420,7 +1420,7 @@ var __publicField = (obj, key, value) => {
1420
1420
  return getLocalDateString(date);
1421
1421
  return relative.format(days, "days");
1422
1422
  });
1423
- const initialState$p = {
1423
+ const initialState$r = {
1424
1424
  categories: {},
1425
1425
  usedCategoryColors: [],
1426
1426
  categoryVisibility: {
@@ -1430,8 +1430,8 @@ var __publicField = (obj, key, value) => {
1430
1430
  };
1431
1431
  const categorySlice = toolkit.createSlice({
1432
1432
  name: "categories",
1433
- initialState: initialState$p,
1434
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$p)),
1433
+ initialState: initialState$r,
1434
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$r)),
1435
1435
  reducers: {
1436
1436
  setCategories: (state, action) => {
1437
1437
  if (!Array.isArray(action.payload))
@@ -1603,14 +1603,14 @@ var __publicField = (obj, key, value) => {
1603
1603
  delete state.attachments[attachmentId];
1604
1604
  }
1605
1605
  }
1606
- const initialState$o = {
1606
+ const initialState$q = {
1607
1607
  components: {},
1608
1608
  attachments: {}
1609
1609
  };
1610
1610
  const componentSlice = toolkit.createSlice({
1611
1611
  name: "components",
1612
- initialState: initialState$o,
1613
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$o)),
1612
+ initialState: initialState$q,
1613
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$q)),
1614
1614
  reducers: {
1615
1615
  addComponent: (state, action) => {
1616
1616
  state.components[action.payload.offline_id] = action.payload;
@@ -1766,13 +1766,13 @@ var __publicField = (obj, key, value) => {
1766
1766
  removeAllComponentsOfType
1767
1767
  } = componentSlice.actions;
1768
1768
  const componentReducer = componentSlice.reducer;
1769
- const initialState$n = {
1769
+ const initialState$p = {
1770
1770
  completionsByComponentId: {}
1771
1771
  };
1772
1772
  const componentStageCompletionSlice = toolkit.createSlice({
1773
1773
  name: "componentStageCompletions",
1774
- initialState: initialState$n,
1775
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$n)),
1774
+ initialState: initialState$p,
1775
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$p)),
1776
1776
  reducers: {
1777
1777
  addStageCompletion: (state, action) => {
1778
1778
  let stageToCompletionDateMapping = state.completionsByComponentId[action.payload.component];
@@ -1823,13 +1823,13 @@ var __publicField = (obj, key, value) => {
1823
1823
  return Object.keys(state.componentStageCompletionReducer.completionsByComponentId[component.offline_id] ?? {});
1824
1824
  };
1825
1825
  const componentStageCompletionReducer = componentStageCompletionSlice.reducer;
1826
- const initialState$m = {
1826
+ const initialState$o = {
1827
1827
  stages: {}
1828
1828
  };
1829
1829
  const componentStageSlice = toolkit.createSlice({
1830
1830
  name: "componentStages",
1831
- initialState: initialState$m,
1832
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$m)),
1831
+ initialState: initialState$o,
1832
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$o)),
1833
1833
  reducers: {
1834
1834
  addStages: (state, action) => {
1835
1835
  Object.assign(state.stages, toOfflineIdRecord(action.payload));
@@ -1939,15 +1939,15 @@ var __publicField = (obj, key, value) => {
1939
1939
  );
1940
1940
  const { addStages, updateStages, removeStages, linkStageToForm, unlinkStageToForm } = componentStageSlice.actions;
1941
1941
  const componentStageReducer = componentStageSlice.reducer;
1942
- const initialState$l = {
1942
+ const initialState$n = {
1943
1943
  componentTypes: {},
1944
1944
  hiddenComponentTypeIds: {},
1945
1945
  attachments: {}
1946
1946
  };
1947
1947
  const componentTypeSlice = toolkit.createSlice({
1948
1948
  name: "componentTypes",
1949
- initialState: initialState$l,
1950
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$l)),
1949
+ initialState: initialState$n,
1950
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$n)),
1951
1951
  reducers: {
1952
1952
  addComponentType: (state, action) => {
1953
1953
  state.componentTypes[action.payload.offline_id] = action.payload;
@@ -2058,13 +2058,13 @@ var __publicField = (obj, key, value) => {
2058
2058
  deleteComponentType
2059
2059
  } = componentTypeSlice.actions;
2060
2060
  const componentTypeReducer = componentTypeSlice.reducer;
2061
- const initialState$k = {
2061
+ const initialState$m = {
2062
2062
  workspaces: {},
2063
2063
  activeWorkspaceId: null
2064
2064
  };
2065
2065
  const workspaceSlice = toolkit.createSlice({
2066
2066
  name: "workspace",
2067
- initialState: initialState$k,
2067
+ initialState: initialState$m,
2068
2068
  // The `reducers` field lets us define reducers and generate associated actions
2069
2069
  reducers: {
2070
2070
  setWorkspaces: (state, action) => {
@@ -2121,7 +2121,7 @@ var __publicField = (obj, key, value) => {
2121
2121
  );
2122
2122
  const workspaceReducer = workspaceSlice.reducer;
2123
2123
  const maxRecentIssues = 10;
2124
- const initialState$j = {
2124
+ const initialState$l = {
2125
2125
  issues: {},
2126
2126
  attachments: {},
2127
2127
  comments: {},
@@ -2133,9 +2133,9 @@ var __publicField = (obj, key, value) => {
2133
2133
  };
2134
2134
  const issueSlice = toolkit.createSlice({
2135
2135
  name: "issues",
2136
- initialState: initialState$j,
2136
+ initialState: initialState$l,
2137
2137
  extraReducers: (builder) => builder.addCase("RESET", (state) => {
2138
- Object.assign(state, initialState$j);
2138
+ Object.assign(state, initialState$l);
2139
2139
  }),
2140
2140
  reducers: {
2141
2141
  setIssues: (state, action) => {
@@ -2166,6 +2166,16 @@ var __publicField = (obj, key, value) => {
2166
2166
  }
2167
2167
  state.issues[action.payload.offline_id] = action.payload;
2168
2168
  },
2169
+ addIssues: (state, action) => {
2170
+ for (const issue of action.payload) {
2171
+ if (issue.offline_id in state.issues) {
2172
+ throw new Error(`Tried to add duplicate issue with ID: ${issue.offline_id}`);
2173
+ }
2174
+ }
2175
+ for (const issue of action.payload) {
2176
+ state.issues[issue.offline_id] = issue;
2177
+ }
2178
+ },
2169
2179
  addIssueAttachment: addAttachment,
2170
2180
  addIssueAttachments: addAttachments,
2171
2181
  addIssueUpdate: (state, action) => {
@@ -2197,6 +2207,11 @@ var __publicField = (obj, key, value) => {
2197
2207
  throw new Error(`Failed to remove issue because ID doesn't exist: ${action.payload}`);
2198
2208
  }
2199
2209
  },
2210
+ removeIssues: (state, action) => {
2211
+ for (const issueId of action.payload) {
2212
+ delete state.issues[issueId];
2213
+ }
2214
+ },
2200
2215
  removeIssueAttachment: removeAttachment,
2201
2216
  removeIssueUpdate: (state, action) => {
2202
2217
  if (action.payload in state.updates) {
@@ -2301,6 +2316,7 @@ var __publicField = (obj, key, value) => {
2301
2316
  addIssueAttachment,
2302
2317
  addIssueAttachments,
2303
2318
  addIssue,
2319
+ addIssues,
2304
2320
  addIssueUpdate,
2305
2321
  addIssueUpdates,
2306
2322
  addOrReplaceIssueComment,
@@ -2309,6 +2325,7 @@ var __publicField = (obj, key, value) => {
2309
2325
  removeIssueAttachment,
2310
2326
  removeAttachmentsOfIssue,
2311
2327
  removeIssue,
2328
+ removeIssues,
2312
2329
  removeIssueUpdate,
2313
2330
  removeIssueUpdates,
2314
2331
  removeRecentIssue,
@@ -2543,15 +2560,89 @@ var __publicField = (obj, key, value) => {
2543
2560
  }
2544
2561
  );
2545
2562
  const issueReducer = issueSlice.reducer;
2546
- const initialState$i = {
2563
+ const initialState$k = {
2564
+ issueTypes: {}
2565
+ };
2566
+ const issueTypeSlice = toolkit.createSlice({
2567
+ name: "issueTypes",
2568
+ initialState: initialState$k,
2569
+ extraReducers: (builder) => builder.addCase("RESET", (state) => {
2570
+ Object.assign(state, initialState$k);
2571
+ }),
2572
+ reducers: {
2573
+ setIssueTypes: (state, action) => {
2574
+ for (const issueType of action.payload) {
2575
+ state.issueTypes[issueType.offline_id] = issueType;
2576
+ }
2577
+ },
2578
+ setIssueType: (state, action) => {
2579
+ state.issueTypes[action.payload.offline_id] = action.payload;
2580
+ },
2581
+ addIssueType: (state, action) => {
2582
+ if (action.payload.offline_id in state.issueTypes) {
2583
+ throw new Error(`IssueType with offline_id ${action.payload.offline_id} already exists in the store.`);
2584
+ }
2585
+ state.issueTypes[action.payload.offline_id] = action.payload;
2586
+ },
2587
+ updateIssueType: (state, action) => {
2588
+ if (!(action.payload.offline_id in state.issueTypes)) {
2589
+ throw new Error(`IssueType with offline_id ${action.payload.offline_id} does not exist in the store.`);
2590
+ }
2591
+ state.issueTypes[action.payload.offline_id] = action.payload;
2592
+ },
2593
+ removeIssueType: (state, action) => {
2594
+ if (!(action.payload in state.issueTypes)) {
2595
+ throw new Error(`IssueType with offline_id ${action.payload} does not exist in the store.`);
2596
+ }
2597
+ delete state.issueTypes[action.payload];
2598
+ }
2599
+ }
2600
+ });
2601
+ const { setIssueTypes, setIssueType, addIssueType, updateIssueType, removeIssueType } = issueTypeSlice.actions;
2602
+ const selectIssueTypeMapping = (state) => {
2603
+ return state.issueTypeReducer.issueTypes;
2604
+ };
2605
+ const selectIssueTypes = toolkit.createSelector(selectIssueTypeMapping, (issueTypes) => {
2606
+ return Object.values(issueTypes);
2607
+ });
2608
+ const selectIssueType = restructureCreateSelectorWithArgs(
2609
+ toolkit.createSelector(
2610
+ [selectIssueTypeMapping, (_, issueTypeId) => issueTypeId],
2611
+ (issueTypesMapping, issueTypeId) => {
2612
+ return issueTypesMapping[issueTypeId];
2613
+ }
2614
+ )
2615
+ );
2616
+ const selectIssueTypesOfOrganization = restructureCreateSelectorWithArgs(
2617
+ toolkit.createSelector(
2618
+ [selectIssueTypes, (_, organizationId) => organizationId],
2619
+ (issueTypes, organizationId) => {
2620
+ return issueTypes.filter((issueType) => issueType.organization === organizationId);
2621
+ }
2622
+ )
2623
+ );
2624
+ const selectIssuesOfIssueType = restructureCreateSelectorWithArgs(
2625
+ toolkit.createSelector(
2626
+ [(state) => state.issueReducer.issues, (_, issueTypeId) => issueTypeId],
2627
+ (issuesMapping, issueTypeId) => {
2628
+ return Object.values(issuesMapping).filter((issue) => issue.issue_type === issueTypeId);
2629
+ }
2630
+ )
2631
+ );
2632
+ const selectIssuesOfIssueTypeCount = (issueTypeId) => (state) => {
2633
+ var _a2;
2634
+ return ((_a2 = selectIssuesOfIssueType(issueTypeId)(state)) == null ? void 0 : _a2.length) ?? 0;
2635
+ };
2636
+ const issueTypeReducer = issueTypeSlice.reducer;
2637
+ const initialState$j = {
2547
2638
  s3Urls: {}
2548
2639
  };
2549
2640
  const msPerHour = 1e3 * 60 * 60;
2550
2641
  const msPerWeek = msPerHour * 24 * 7;
2551
2642
  const fileSlice = toolkit.createSlice({
2552
2643
  name: "file",
2553
- initialState: initialState$i,
2554
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$i)),
2644
+ initialState: initialState$j,
2645
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$j)),
2555
2646
  reducers: {
2556
2647
  setUploadUrl: (state, action) => {
2557
2648
  const { url, fields, sha1 } = action.payload;
@@ -2578,7 +2669,7 @@ var __publicField = (obj, key, value) => {
2578
2669
  return url;
2579
2670
  };
2580
2671
  const fileReducer = fileSlice.reducer;
2581
- const initialState$h = {
2672
+ const initialState$i = {
2582
2673
  // TODO: Change first MapStyle.SATELLITE to MaptStyle.None when project creation map is fixed
2583
2674
  mapStyle: MapStyle.SATELLITE,
2584
2675
  showTooltips: false,
@@ -2586,8 +2677,8 @@ var __publicField = (obj, key, value) => {
2586
2677
  };
2587
2678
  const mapSlice = toolkit.createSlice({
2588
2679
  name: "map",
2589
- initialState: initialState$h,
2590
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$h)),
2680
+ initialState: initialState$i,
2681
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$i)),
2591
2682
  reducers: {
2592
2683
  setMapStyle: (state, action) => {
2593
2684
  state.mapStyle = action.payload;
@@ -2656,7 +2747,7 @@ var __publicField = (obj, key, value) => {
2656
2747
  LicenseStatus2[LicenseStatus2["PAST_DUE"] = 8] = "PAST_DUE";
2657
2748
  return LicenseStatus2;
2658
2749
  })(LicenseStatus || {});
2659
- const initialState$g = {
2750
+ const initialState$h = {
2660
2751
  users: {},
2661
2752
  currentUser: {
2662
2753
  id: 0,
@@ -2667,8 +2758,8 @@ var __publicField = (obj, key, value) => {
2667
2758
  };
2668
2759
  const userSlice = toolkit.createSlice({
2669
2760
  name: "users",
2670
- initialState: initialState$g,
2671
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$g)),
2761
+ initialState: initialState$h,
2762
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$h)),
2672
2763
  reducers: {
2673
2764
  setUsers: (state, action) => {
2674
2765
  const usersMapping = {};
@@ -2730,13 +2821,13 @@ var __publicField = (obj, key, value) => {
2730
2821
  const selectUsersAsMapping = (state) => state.userReducer.users;
2731
2822
  const selectFavouriteProjects = (state) => state.userReducer.currentUser.profile.favourite_project_ids;
2732
2823
  const userReducer = userSlice.reducer;
2733
- const initialState$f = {
2824
+ const initialState$g = {
2734
2825
  organizationAccesses: {}
2735
2826
  };
2736
2827
  const organizationAccessSlice = toolkit.createSlice({
2737
2828
  name: "organizationAccess",
2738
- initialState: initialState$f,
2739
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$f)),
2829
+ initialState: initialState$g,
2830
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$g)),
2740
2831
  reducers: {
2741
2832
  setOrganizationAccesses: (state, action) => {
2742
2833
  if (!Array.isArray(action.payload))
@@ -2799,13 +2890,13 @@ var __publicField = (obj, key, value) => {
2799
2890
  return organizationAccesses;
2800
2891
  };
2801
2892
  const organizationAccessReducer = organizationAccessSlice.reducer;
2802
- const initialState$e = {
2893
+ const initialState$f = {
2803
2894
  licenses: {}
2804
2895
  };
2805
2896
  const licenseSlice = toolkit.createSlice({
2806
2897
  name: "license",
2807
- initialState: initialState$e,
2808
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$e)),
2898
+ initialState: initialState$f,
2899
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$f)),
2809
2900
  reducers: {
2810
2901
  setLicenses: (state, action) => {
2811
2902
  if (!Array.isArray(action.payload))
@@ -2850,13 +2941,13 @@ var __publicField = (obj, key, value) => {
2850
2941
  (licenses) => Object.values(licenses).filter((license) => license.project).reduce((accum, license) => ({ ...accum, [license.project]: license }), {})
2851
2942
  );
2852
2943
  const licenseReducer = licenseSlice.reducer;
2853
- const initialState$d = {
2944
+ const initialState$e = {
2854
2945
  projectAccesses: {}
2855
2946
  };
2856
2947
  const projectAccessSlice = toolkit.createSlice({
2857
2948
  name: "projectAccess",
2858
- initialState: initialState$d,
2859
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$d)),
2949
+ initialState: initialState$e,
2950
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$e)),
2860
2951
  reducers: {
2861
2952
  setProjectAccesses: (state, action) => {
2862
2953
  if (!Array.isArray(action.payload))
@@ -2924,7 +3015,7 @@ var __publicField = (obj, key, value) => {
2924
3015
  return projectAccesses;
2925
3016
  };
2926
3017
  const projectAccessReducer = projectAccessSlice.reducer;
2927
- const initialState$c = {
3018
+ const initialState$d = {
2928
3019
  projects: {},
2929
3020
  activeProjectId: null,
2930
3021
  recentProjectIds: [],
@@ -2934,7 +3025,7 @@ var __publicField = (obj, key, value) => {
2934
3025
  };
2935
3026
  const projectSlice = toolkit.createSlice({
2936
3027
  name: "projects",
2937
- initialState: initialState$c,
3028
+ initialState: initialState$d,
2938
3029
  reducers: {
2939
3030
  setProjects: (state, action) => {
2940
3031
  const projectsMap = {};
@@ -3121,14 +3212,14 @@ var __publicField = (obj, key, value) => {
3121
3212
  }
3122
3213
  )
3123
3214
  );
3124
- const initialState$b = {
3215
+ const initialState$c = {
3125
3216
  organizations: {},
3126
3217
  activeOrganizationId: null
3127
3218
  };
3128
3219
  const organizationSlice = toolkit.createSlice({
3129
3220
  name: "organizations",
3130
- initialState: initialState$b,
3131
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$b)),
3221
+ initialState: initialState$c,
3222
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$c)),
3132
3223
  reducers: {
3133
3224
  setOrganizations: (state, action) => {
3134
3225
  for (const org of action.payload) {
@@ -3247,14 +3338,14 @@ var __publicField = (obj, key, value) => {
3247
3338
  }
3248
3339
  };
3249
3340
  };
3250
- const initialState$a = {
3341
+ const initialState$b = {
3251
3342
  deletedRequests: [],
3252
3343
  latestRetryTime: 0
3253
3344
  };
3254
3345
  const outboxSlice = toolkit.createSlice({
3255
3346
  name: "outbox",
3256
- initialState: initialState$a,
3257
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$a)),
3347
+ initialState: initialState$b,
3348
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$b)),
3258
3349
  reducers: {
3259
3350
  // enqueueActions is a reducer that does nothing but enqueue API request to the Redux Offline outbox
3260
3351
  // Whenever an issue is being created, a reducer addIssue() is responsible for adding it to the offline store
@@ -3286,7 +3377,7 @@ var __publicField = (obj, key, value) => {
3286
3377
  const selectLatestRetryTime = (state) => state.outboxReducer.latestRetryTime;
3287
3378
  const { enqueueRequest, markForDeletion, markAsDeleted, _setLatestRetryTime } = outboxSlice.actions;
3288
3379
  const outboxReducer = outboxSlice.reducer;
3289
- const initialState$9 = {
3380
+ const initialState$a = {
3290
3381
  projectFiles: {},
3291
3382
  activeProjectFileId: null,
3292
3383
  isImportingProjectFile: false,
@@ -3294,8 +3385,8 @@ var __publicField = (obj, key, value) => {
3294
3385
  };
3295
3386
  const projectFileSlice = toolkit.createSlice({
3296
3387
  name: "projectFiles",
3297
- initialState: initialState$9,
3298
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$9)),
3388
+ initialState: initialState$a,
3389
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$a)),
3299
3390
  reducers: {
3300
3391
  addOrReplaceProjectFiles: (state, action) => {
3301
3392
  for (let fileObj of action.payload) {
@@ -3396,12 +3487,12 @@ var __publicField = (obj, key, value) => {
3396
3487
  const selectActiveProjectFileId = (state) => state.projectFileReducer.activeProjectFileId;
3397
3488
  const selectIsImportingProjectFile = (state) => state.projectFileReducer.isImportingProjectFile;
3398
3489
  const projectFileReducer = projectFileSlice.reducer;
3399
- const initialState$8 = {
3490
+ const initialState$9 = {
3400
3491
  isRehydrated: false
3401
3492
  };
3402
3493
  const rehydratedSlice = toolkit.createSlice({
3403
3494
  name: "rehydrated",
3404
- initialState: initialState$8,
3495
+ initialState: initialState$9,
3405
3496
  // The `reducers` field lets us define reducers and generate associated actions
3406
3497
  reducers: {
3407
3498
  setRehydrated: (state, action) => {
@@ -3411,7 +3502,7 @@ var __publicField = (obj, key, value) => {
3411
3502
  });
3412
3503
  const selectRehydrated = (state) => state.rehydratedReducer.isRehydrated;
3413
3504
  const rehydratedReducer = rehydratedSlice.reducer;
3414
- const initialState$7 = {
3505
+ const initialState$8 = {
3415
3506
  useIssueTemplate: false,
3416
3507
  placementMode: false,
3417
3508
  enableClustering: false,
@@ -3428,8 +3519,8 @@ var __publicField = (obj, key, value) => {
3428
3519
  };
3429
3520
  const settingSlice = toolkit.createSlice({
3430
3521
  name: "settings",
3431
- initialState: initialState$7,
3432
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$7)),
3522
+ initialState: initialState$8,
3523
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$8)),
3433
3524
  reducers: {
3434
3525
  setEnableDuplicateIssues: (state, action) => {
3435
3526
  state.useIssueTemplate = action.payload;
@@ -3488,14 +3579,14 @@ var __publicField = (obj, key, value) => {
3488
3579
  return revisionA < revisionB ? -1 : 1;
3489
3580
  }
3490
3581
  };
3491
- const initialState$6 = {
3582
+ const initialState$7 = {
3492
3583
  formRevisions: {},
3493
3584
  attachments: {}
3494
3585
  };
3495
3586
  const formRevisionsSlice = toolkit.createSlice({
3496
3587
  name: "formRevisions",
3497
- initialState: initialState$6,
3498
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$6)),
3588
+ initialState: initialState$7,
3589
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$7)),
3499
3590
  reducers: {
3500
3591
  // revision related actions
3501
3592
  setFormRevision: (state, action) => {
@@ -3675,13 +3766,13 @@ var __publicField = (obj, key, value) => {
3675
3766
  )
3676
3767
  );
3677
3768
  const formRevisionReducer = formRevisionsSlice.reducer;
3678
- const initialState$5 = {
3769
+ const initialState$6 = {
3679
3770
  forms: {}
3680
3771
  };
3681
3772
  const formSlice = toolkit.createSlice({
3682
3773
  name: "forms",
3683
- initialState: initialState$5,
3684
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$5)),
3774
+ initialState: initialState$6,
3775
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$6)),
3685
3776
  reducers: {
3686
3777
  setForms: (state, action) => {
3687
3778
  state.forms = {};
@@ -3771,6 +3862,14 @@ var __publicField = (obj, key, value) => {
3771
3862
  }
3772
3863
  )
3773
3864
  );
3865
+ const selectFormOfIssueType = restructureCreateSelectorWithArgs(
3866
+ toolkit.createSelector(
3867
+ [selectFormMapping, (_state, issueTypeId) => issueTypeId],
3868
+ (userForms, issueTypeId) => {
3869
+ return Object.values(userForms).find((userForm) => userForm.issue_type === issueTypeId);
3870
+ }
3871
+ )
3872
+ );
3774
3873
  const selectFormsCount = toolkit.createSelector([selectFormMapping], (userForms) => {
3775
3874
  return Object.keys(userForms).length;
3776
3875
  });
@@ -3778,14 +3877,14 @@ var __publicField = (obj, key, value) => {
3778
3877
  return Object.values(userForms).filter((form) => !form.component_type).length;
3779
3878
  });
3780
3879
  const formReducer = formSlice.reducer;
3781
- const initialState$4 = {
3880
+ const initialState$5 = {
3782
3881
  formSubmissions: {},
3783
3882
  attachments: {}
3784
3883
  };
3785
3884
  const formSubmissionSlice = toolkit.createSlice({
3786
3885
  name: "formSubmissions",
3787
- initialState: initialState$4,
3788
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$4)),
3886
+ initialState: initialState$5,
3887
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$5)),
3789
3888
  reducers: {
3790
3889
  setFormSubmission: (state, action) => {
3791
3890
  state.formSubmissions[action.payload.offline_id] = action.payload;
@@ -3936,6 +4035,43 @@ var __publicField = (obj, key, value) => {
3936
4035
  }
3937
4036
  )
3938
4037
  );
4038
+ const selectFormSubmissionsByFormRevisions = toolkit.createSelector([selectFormRevisionMapping, selectFormSubmissions], (revisions, submissions) => {
4039
+ var _a2;
4040
+ const submissionMapping = {};
4041
+ for (const revisionId in revisions) {
4042
+ submissionMapping[revisionId] = [];
4043
+ }
4044
+ for (const submission of submissions) {
4045
+ (_a2 = submissionMapping[submission.form_revision]) == null ? void 0 : _a2.push(submission);
4046
+ }
4047
+ return submissionMapping;
4048
+ });
4049
+ const selectSortedFormSubmissionsOfForm = restructureCreateSelectorWithArgs(
4050
+ toolkit.createSelector(
4051
+ [
4052
+ selectFormRevisionMapping,
4053
+ selectFormSubmissionsByFormRevisions,
4054
+ (_state, formId2) => formId2
4055
+ ],
4056
+ (revisionsMapping, submissionsByRevision, formId2) => {
4057
+ const submissionsByFormRevisions = {};
4058
+ for (const revisionId in revisionsMapping) {
4059
+ const revision = revisionsMapping[revisionId];
4060
+ const submissionsOfRevision = submissionsByRevision[revisionId];
4061
+ if (revision && submissionsOfRevision && revision.form === formId2) {
4062
+ submissionsByFormRevisions[revisionId] = submissionsOfRevision.sort(
4063
+ (a, b) => a.submitted_at < b.submitted_at ? -1 : 1
4064
+ );
4065
+ }
4066
+ }
4067
+ return Object.entries(submissionsByFormRevisions).sort((a, b) => {
4068
+ const aRevision = revisionsMapping[a[0]];
4069
+ const bRevision = revisionsMapping[b[0]];
4070
+ return formRevisionSortFn(aRevision, bRevision);
4071
+ }).map(([_revisionId, submissions]) => submissions).flat();
4072
+ }
4073
+ )
4074
+ );
3939
4075
  const selectFormSubmissionsOfIssue = restructureCreateSelectorWithArgs(
3940
4076
  toolkit.createSelector(
3941
4077
  [selectFormSubmissions, (_state, issueId) => issueId],
@@ -3985,12 +4121,12 @@ var __publicField = (obj, key, value) => {
3985
4121
  )
3986
4122
  );
3987
4123
  const formSubmissionReducer = formSubmissionSlice.reducer;
3988
- const initialState$3 = {
4124
+ const initialState$4 = {
3989
4125
  emailDomains: {}
3990
4126
  };
3991
4127
  const emailDomainsSlice = toolkit.createSlice({
3992
4128
  name: "emailDomains",
3993
- initialState: initialState$3,
4129
+ initialState: initialState$4,
3994
4130
  reducers: {
3995
4131
  setEmailDomains: (state, action) => {
3996
4132
  const emailDomains = {};
@@ -4017,15 +4153,15 @@ var __publicField = (obj, key, value) => {
4017
4153
  (ed1, ed2) => ed1.domain.localeCompare(ed2.domain)
4018
4154
  );
4019
4155
  const emailDomainsReducer = emailDomainsSlice.reducer;
4020
- const initialState$2 = {
4156
+ const initialState$3 = {
4021
4157
  documents: {},
4022
4158
  attachments: {}
4023
4159
  };
4024
4160
  const documentSlice = toolkit.createSlice({
4025
4161
  name: "documents",
4026
- initialState: initialState$2,
4162
+ initialState: initialState$3,
4027
4163
  extraReducers: (builder) => builder.addCase("RESET", (state) => {
4028
- Object.assign(state, initialState$2);
4164
+ Object.assign(state, initialState$3);
4029
4165
  }),
4030
4166
  reducers: {
4031
4167
  setDocuments: (state, action) => {
@@ -4250,13 +4386,13 @@ var __publicField = (obj, key, value) => {
4250
4386
  )
4251
4387
  );
4252
4388
  const documentsReducer = documentSlice.reducer;
4253
- const initialState$1 = {
4389
+ const initialState$2 = {
4254
4390
  teams: {}
4255
4391
  };
4256
4392
  const teamSlice = toolkit.createSlice({
4257
4393
  name: "teams",
4258
- initialState: initialState$1,
4259
- extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$1)),
4394
+ initialState: initialState$2,
4395
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$2)),
4260
4396
  reducers: {
4261
4397
  setTeam: (state, action) => {
4262
4398
  state.teams[action.payload.offline_id] = action.payload;
@@ -4306,6 +4442,22 @@ var __publicField = (obj, key, value) => {
4306
4442
  })
4307
4443
  );
4308
4444
  const teamReducer = teamSlice.reducer;
4445
+ const initialState$1 = {
4446
+ conversationId: void 0
4447
+ };
4448
+ const agentSlice = toolkit.createSlice({
4449
+ name: "agents",
4450
+ initialState: initialState$1,
4451
+ extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$1)),
4452
+ reducers: {
4453
+ setConversationId: (state, action) => {
4454
+ state.conversationId = action.payload;
4455
+ }
4456
+ }
4457
+ });
4458
+ const { setConversationId } = agentSlice.actions;
4459
+ const selectConversationId = (state) => state.agentReducer.conversationId;
4460
+ const agentReducer = agentSlice.reducer;
4309
4461
  const initialState = {
4310
4462
  version: 0
4311
4463
  };
@@ -4338,6 +4490,7 @@ var __publicField = (obj, key, value) => {
4338
4490
  componentStageReducer,
4339
4491
  componentTypeReducer,
4340
4492
  issueReducer,
4493
+ issueTypeReducer,
4341
4494
  mapReducer,
4342
4495
  organizationReducer,
4343
4496
  outboxReducer,
@@ -4355,7 +4508,8 @@ var __publicField = (obj, key, value) => {
4355
4508
  emailDomainsReducer,
4356
4509
  licenseReducer,
4357
4510
  documentsReducer,
4358
- teamReducer
4511
+ teamReducer,
4512
+ agentReducer
4359
4513
  };
4360
4514
  const overmapReducer = toolkit.combineReducers(overmapReducers);
4361
4515
  const resetStore = "RESET";
@@ -6282,7 +6436,7 @@ var __publicField = (obj, key, value) => {
6282
6436
  // Basic CRUD functions
6283
6437
  // TODO: Once all models are represented in `Created<TModel>`, use `Created` in `OptimisticModelResult`, so we don't
6284
6438
  // have to repeat it for all optimistic model results (all optimistic results are created).
6285
- add(issue) {
6439
+ add(issue, issue_type = null) {
6286
6440
  const { store } = this.client;
6287
6441
  const dateWithoutMilliseconds = /* @__PURE__ */ new Date();
6288
6442
  const state = store.getState();
@@ -6308,7 +6462,8 @@ var __publicField = (obj, key, value) => {
6308
6462
  method: HttpMethod.POST,
6309
6463
  url: "/issues/",
6310
6464
  queryParams: {
6311
- workspace_id: workspaceId
6465
+ workspace_id: workspaceId,
6466
+ ...issue_type ? { issue_type } : {}
6312
6467
  },
6313
6468
  payload: issuePayload,
6314
6469
  blockers: [
@@ -6493,6 +6648,103 @@ var __publicField = (obj, key, value) => {
6493
6648
  store.dispatch(setIssues(result));
6494
6649
  }
6495
6650
  }
6651
+ class IssueTypeService extends BaseApiService {
6652
+ add(payload) {
6653
+ const { store } = this.client;
6654
+ const activeOrganizationId = store.getState().organizationReducer.activeOrganizationId;
6655
+ if (!activeOrganizationId) {
6656
+ throw new Error(`No active organization, got ${activeOrganizationId} for activeOrganizationId.`);
6657
+ }
6658
+ const offlineIssueType = offline({
6659
+ ...payload,
6660
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
6661
+ created_by: store.getState().userReducer.currentUser.id,
6662
+ organization: activeOrganizationId
6663
+ });
6664
+ store.dispatch(addIssueType(offlineIssueType));
6665
+ const promise = this.enqueueRequest({
6666
+ method: HttpMethod.POST,
6667
+ url: `/organizations/${activeOrganizationId}/issue-types/`,
6668
+ // Sending only whats needed here
6669
+ payload: {
6670
+ offline_id: offlineIssueType.offline_id,
6671
+ submitted_at: offlineIssueType.submitted_at,
6672
+ icon: offlineIssueType.icon,
6673
+ icon_color: offlineIssueType.icon_color,
6674
+ name: offlineIssueType.name,
6675
+ description: offlineIssueType.description
6676
+ },
6677
+ blockers: [],
6678
+ blocks: [offlineIssueType.offline_id]
6679
+ });
6680
+ promise.then((createdIssueType) => {
6681
+ store.dispatch(setIssueType(createdIssueType));
6682
+ }).catch(() => {
6683
+ store.dispatch(removeIssueType(offlineIssueType.offline_id));
6684
+ });
6685
+ return [offlineIssueType, promise];
6686
+ }
6687
+ update(issueTypeFields) {
6688
+ const { store } = this.client;
6689
+ const issueTypeToBeUpdated = store.getState().issueTypeReducer.issueTypes[issueTypeFields.offline_id];
6690
+ if (!issueTypeToBeUpdated) {
6691
+ throw new Error(`IssueType with offline_id ${issueTypeFields.offline_id} does not exist in the store.`);
6692
+ }
6693
+ const offlineUpdatedIssueType = {
6694
+ ...issueTypeToBeUpdated,
6695
+ ...issueTypeFields
6696
+ };
6697
+ store.dispatch(updateIssueType(offlineUpdatedIssueType));
6698
+ const promise = this.enqueueRequest({
6699
+ method: HttpMethod.PATCH,
6700
+ url: `/issues/types/${issueTypeFields.offline_id}/`,
6701
+ payload: issueTypeFields,
6702
+ blockers: [issueTypeFields.offline_id],
6703
+ blocks: [issueTypeFields.offline_id]
6704
+ });
6705
+ promise.then((updatedIssueType) => {
6706
+ store.dispatch(setIssueType(updatedIssueType));
6707
+ }).catch(() => {
6708
+ store.dispatch(setIssueType(issueTypeToBeUpdated));
6709
+ });
6710
+ return [offlineUpdatedIssueType, promise];
6711
+ }
6712
+ delete(issueTypeId) {
6713
+ const { store } = this.client;
6714
+ const issueTypeToDelete = store.getState().issueTypeReducer.issueTypes[issueTypeId];
6715
+ if (!issueTypeToDelete) {
6716
+ throw new Error(`IssueType with offline_id ${issueTypeId} does not exist in the store.`);
6717
+ }
6718
+ const issuesOfIssueType = selectIssuesOfIssueType(issueTypeId)(store.getState()) ?? [];
6719
+ store.dispatch(removeIssueType(issueTypeId));
6720
+ store.dispatch(removeIssues(issuesOfIssueType.map((issue) => issue.offline_id)));
6721
+ const promise = this.enqueueRequest({
6722
+ method: HttpMethod.DELETE,
6723
+ url: `/issues/types/${issueTypeId}/`,
6724
+ blockers: [issueTypeId],
6725
+ blocks: []
6726
+ });
6727
+ promise.catch(() => {
6728
+ store.dispatch(setIssueType(issueTypeToDelete));
6729
+ store.dispatch(addIssues(issuesOfIssueType));
6730
+ });
6731
+ return promise;
6732
+ }
6733
+ async refreshStore() {
6734
+ const { store } = this.client;
6735
+ const activeOrganizationId = store.getState().organizationReducer.activeOrganizationId;
6736
+ if (!activeOrganizationId) {
6737
+ throw new Error(`No active organization, got ${activeOrganizationId} for activeOrganizationId.`);
6738
+ }
6739
+ const result = await this.enqueueRequest({
6740
+ method: HttpMethod.GET,
6741
+ url: `/organizations/${activeOrganizationId}/issue-types/`,
6742
+ blockers: [],
6743
+ blocks: []
6744
+ });
6745
+ store.dispatch(setIssueTypes(result));
6746
+ }
6747
+ }
6496
6748
  class MainService extends BaseApiService {
6497
6749
  async fetchInitialData(replaceExisting, uuid2) {
6498
6750
  if (replaceExisting) {
@@ -6668,6 +6920,7 @@ var __publicField = (obj, key, value) => {
6668
6920
  });
6669
6921
  void this.client.documents.refreshStore();
6670
6922
  void this.client.issueUpdates.refreshStore();
6923
+ void this.client.issueTypes.refreshStore();
6671
6924
  }
6672
6925
  store.dispatch(setIsFetchingInitialData(false));
6673
6926
  if (overwrite) {
@@ -7037,7 +7290,7 @@ var __publicField = (obj, key, value) => {
7037
7290
  });
7038
7291
  });
7039
7292
  }
7040
- async add(state, initialRevision, url, ownerUser, ownerOrganization, componentTypeId) {
7293
+ async add(state, initialRevision, url, ownerUser, ownerOrganization, componentTypeId, issueTypeId) {
7041
7294
  if (!!ownerUser === !!ownerOrganization) {
7042
7295
  throw new Error("Exactly one of ownerUser and ownerOrganization must be defined.");
7043
7296
  }
@@ -7057,6 +7310,7 @@ var __publicField = (obj, key, value) => {
7057
7310
  submitted_at: submittedAt,
7058
7311
  created_by: currentUser.id,
7059
7312
  ...componentTypeId && { component_type: componentTypeId },
7313
+ ...issueTypeId && { issue_type: issueTypeId },
7060
7314
  ...ownerAttrs
7061
7315
  };
7062
7316
  const { payloadWithoutImage, images } = await separateImageFromFields(offlineRevisionPayload);
@@ -7080,9 +7334,10 @@ var __publicField = (obj, key, value) => {
7080
7334
  payload: {
7081
7335
  ...offlineFormPayload,
7082
7336
  ...componentTypeId && { component_type: componentTypeId },
7337
+ ...issueTypeId && { issue_type: issueTypeId },
7083
7338
  initial_revision: payloadWithoutImage
7084
7339
  },
7085
- blockers: componentTypeId ? [componentTypeId] : [],
7340
+ blockers: componentTypeId ? [componentTypeId] : issueTypeId ? [issueTypeId] : [],
7086
7341
  blocks: [offlineFormPayload.offline_id, payloadWithoutImage.offline_id]
7087
7342
  });
7088
7343
  const attachImagesPromises = this.getAttachImagePromises(images, offlineRevisionPayload.offline_id);
@@ -7094,7 +7349,7 @@ var __publicField = (obj, key, value) => {
7094
7349
  const settledPromise = Promise.all([formPromise, ...attachImagesPromises]).then(() => formPromise);
7095
7350
  return [retForm, retRevision, formPromise, settledPromise];
7096
7351
  }
7097
- async addForOrganization(initialRevision, componentTypeId) {
7352
+ async addForOrganization(initialRevision, attachedTo) {
7098
7353
  const state = this.client.store.getState();
7099
7354
  const activeOrganizationId = state.organizationReducer.activeOrganizationId;
7100
7355
  if (!activeOrganizationId) {
@@ -7106,13 +7361,22 @@ var __publicField = (obj, key, value) => {
7106
7361
  `/forms/in-organization/${activeOrganizationId}/`,
7107
7362
  void 0,
7108
7363
  activeOrganizationId,
7109
- componentTypeId
7364
+ attachedTo && "componentTypeId" in attachedTo ? attachedTo.componentTypeId : void 0,
7365
+ attachedTo && "issueTypeId" in attachedTo ? attachedTo.issueTypeId : void 0
7110
7366
  );
7111
7367
  }
7112
- async addForCurrentUser(initialRevision, componentTypeId) {
7368
+ async addForCurrentUser(initialRevision, attachedTo) {
7113
7369
  const state = this.client.store.getState();
7114
7370
  const currentUser = state.userReducer.currentUser;
7115
- return await this.add(state, initialRevision, "/forms/my-forms/", currentUser.id, void 0, componentTypeId);
7371
+ return await this.add(
7372
+ state,
7373
+ initialRevision,
7374
+ "/forms/my-forms/",
7375
+ currentUser.id,
7376
+ void 0,
7377
+ attachedTo && "componentTypeId" in attachedTo ? attachedTo.componentTypeId : void 0,
7378
+ attachedTo && "issueTypeId" in attachedTo ? attachedTo.issueTypeId : void 0
7379
+ );
7116
7380
  }
7117
7381
  async createRevision(formId2, revision) {
7118
7382
  const offlineRevision = offline(revision);
@@ -8392,6 +8656,7 @@ var __publicField = (obj, key, value) => {
8392
8656
  __publicField(this, "organizations", new OrganizationService(this));
8393
8657
  __publicField(this, "organizationAccess", new OrganizationAccessService(this));
8394
8658
  __publicField(this, "issues", new IssueService(this));
8659
+ __publicField(this, "issueTypes", new IssueTypeService(this));
8395
8660
  __publicField(this, "issueComments", new IssueCommentService(this));
8396
8661
  __publicField(this, "issueUpdates", new IssueUpdateService(this));
8397
8662
  __publicField(this, "workspaces", new WorkspaceService(this));
@@ -14834,7 +15099,7 @@ var __publicField = (obj, key, value) => {
14834
15099
  }, [filter, maxResults, ownerFilter]);
14835
15100
  const userForms = useAppSelector(selectFilteredForms(ownerFilterOptions)) ?? [];
14836
15101
  const userFormMapping = useAppSelector(selectFormMapping);
14837
- const attachableUserForms = userForms.filter((form) => !form.component_type);
15102
+ const attachableUserForms = userForms.filter((form) => !form.component_type && !form.issue_type);
14838
15103
  const attachableUserFormMapping = Object.values(userFormMapping).filter(
14839
15104
  (form) => !form.component_type
14840
15105
  );
@@ -16287,6 +16552,7 @@ var __publicField = (obj, key, value) => {
16287
16552
  exports2.IssuePriority = IssuePriority;
16288
16553
  exports2.IssueService = IssueService;
16289
16554
  exports2.IssueStatus = IssueStatus;
16555
+ exports2.IssueTypeService = IssueTypeService;
16290
16556
  exports2.IssueUpdateChange = IssueUpdateChange;
16291
16557
  exports2.IssueUpdateService = IssueUpdateService;
16292
16558
  exports2.LicenseLevel = LicenseLevel;
@@ -16371,8 +16637,10 @@ var __publicField = (obj, key, value) => {
16371
16637
  exports2.addIssueAttachments = addIssueAttachments;
16372
16638
  exports2.addIssueComment = addIssueComment;
16373
16639
  exports2.addIssueComments = addIssueComments;
16640
+ exports2.addIssueType = addIssueType;
16374
16641
  exports2.addIssueUpdate = addIssueUpdate;
16375
16642
  exports2.addIssueUpdates = addIssueUpdates;
16643
+ exports2.addIssues = addIssues;
16376
16644
  exports2.addLicenses = addLicenses;
16377
16645
  exports2.addOrReplaceCategories = addOrReplaceCategories;
16378
16646
  exports2.addOrReplaceIssueComment = addOrReplaceIssueComment;
@@ -16389,6 +16657,8 @@ var __publicField = (obj, key, value) => {
16389
16657
  exports2.addToRecentIssues = addToRecentIssues;
16390
16658
  exports2.addUsers = addUsers;
16391
16659
  exports2.addWorkspace = addWorkspace;
16660
+ exports2.agentReducer = agentReducer;
16661
+ exports2.agentSlice = agentSlice;
16392
16662
  exports2.areArraysEqual = areArraysEqual;
16393
16663
  exports2.authReducer = authReducer;
16394
16664
  exports2.authSlice = authSlice;
@@ -16484,6 +16754,8 @@ var __publicField = (obj, key, value) => {
16484
16754
  exports2.issueReducer = issueReducer;
16485
16755
  exports2.issueSlice = issueSlice;
16486
16756
  exports2.issueToSearchResult = issueToSearchResult;
16757
+ exports2.issueTypeReducer = issueTypeReducer;
16758
+ exports2.issueTypeSlice = issueTypeSlice;
16487
16759
  exports2.licenseReducer = licenseReducer;
16488
16760
  exports2.licenseSlice = licenseSlice;
16489
16761
  exports2.linkStageToForm = linkStageToForm;
@@ -16542,8 +16814,10 @@ var __publicField = (obj, key, value) => {
16542
16814
  exports2.removeIssueAttachment = removeIssueAttachment;
16543
16815
  exports2.removeIssueComment = removeIssueComment;
16544
16816
  exports2.removeIssueComments = removeIssueComments;
16817
+ exports2.removeIssueType = removeIssueType;
16545
16818
  exports2.removeIssueUpdate = removeIssueUpdate;
16546
16819
  exports2.removeIssueUpdates = removeIssueUpdates;
16820
+ exports2.removeIssues = removeIssues;
16547
16821
  exports2.removeOrganizationAccess = removeOrganizationAccess;
16548
16822
  exports2.removeProjectAccess = removeProjectAccess;
16549
16823
  exports2.removeProjectAccessesOfProject = removeProjectAccessesOfProject;
@@ -16625,6 +16899,7 @@ var __publicField = (obj, key, value) => {
16625
16899
  exports2.selectComponentsByType = selectComponentsByType;
16626
16900
  exports2.selectComponentsFromComponentType = selectComponentsFromComponentType;
16627
16901
  exports2.selectComponentsMapping = selectComponentsMapping;
16902
+ exports2.selectConversationId = selectConversationId;
16628
16903
  exports2.selectCreateProjectType = selectCreateProjectType;
16629
16904
  exports2.selectCurrentUser = selectCurrentUser;
16630
16905
  exports2.selectDeletedRequests = selectDeletedRequests;
@@ -16647,6 +16922,7 @@ var __publicField = (obj, key, value) => {
16647
16922
  exports2.selectForm = selectForm;
16648
16923
  exports2.selectFormMapping = selectFormMapping;
16649
16924
  exports2.selectFormOfComponentType = selectFormOfComponentType;
16925
+ exports2.selectFormOfIssueType = selectFormOfIssueType;
16650
16926
  exports2.selectFormRevision = selectFormRevision;
16651
16927
  exports2.selectFormRevisionMapping = selectFormRevisionMapping;
16652
16928
  exports2.selectFormRevisions = selectFormRevisions;
@@ -16655,6 +16931,7 @@ var __publicField = (obj, key, value) => {
16655
16931
  exports2.selectFormSubmissionAttachmentsMapping = selectFormSubmissionAttachmentsMapping;
16656
16932
  exports2.selectFormSubmissions = selectFormSubmissions;
16657
16933
  exports2.selectFormSubmissionsByComponents = selectFormSubmissionsByComponents;
16934
+ exports2.selectFormSubmissionsByFormRevisions = selectFormSubmissionsByFormRevisions;
16658
16935
  exports2.selectFormSubmissionsMapping = selectFormSubmissionsMapping;
16659
16936
  exports2.selectFormSubmissionsOfComponent = selectFormSubmissionsOfComponent;
16660
16937
  exports2.selectFormSubmissionsOfForm = selectFormSubmissionsOfForm;
@@ -16673,9 +16950,15 @@ var __publicField = (obj, key, value) => {
16673
16950
  exports2.selectIssueAttachments = selectIssueAttachments;
16674
16951
  exports2.selectIssueCountOfCategory = selectIssueCountOfCategory;
16675
16952
  exports2.selectIssueMapping = selectIssueMapping;
16953
+ exports2.selectIssueType = selectIssueType;
16954
+ exports2.selectIssueTypeMapping = selectIssueTypeMapping;
16955
+ exports2.selectIssueTypes = selectIssueTypes;
16956
+ exports2.selectIssueTypesOfOrganization = selectIssueTypesOfOrganization;
16676
16957
  exports2.selectIssueUpdateMapping = selectIssueUpdateMapping;
16677
16958
  exports2.selectIssueUpdatesOfIssue = selectIssueUpdatesOfIssue;
16678
16959
  exports2.selectIssues = selectIssues;
16960
+ exports2.selectIssuesOfIssueType = selectIssuesOfIssueType;
16961
+ exports2.selectIssuesOfIssueTypeCount = selectIssuesOfIssueTypeCount;
16679
16962
  exports2.selectLatestFormRevisionByForm = selectLatestFormRevisionByForm;
16680
16963
  exports2.selectLatestFormRevisionOfForm = selectLatestFormRevisionOfForm;
16681
16964
  exports2.selectLatestFormRevisionsOfComponentTypes = selectLatestFormRevisionsOfComponentTypes;
@@ -16718,6 +17001,7 @@ var __publicField = (obj, key, value) => {
16718
17001
  exports2.selectRootDocuments = selectRootDocuments;
16719
17002
  exports2.selectShowTooltips = selectShowTooltips;
16720
17003
  exports2.selectSortedEmailDomains = selectSortedEmailDomains;
17004
+ exports2.selectSortedFormSubmissionsOfForm = selectSortedFormSubmissionsOfForm;
16721
17005
  exports2.selectSortedOrganizationLicenses = selectSortedOrganizationLicenses;
16722
17006
  exports2.selectSortedOrganizationUsers = selectSortedOrganizationUsers;
16723
17007
  exports2.selectSortedProjectUsers = selectSortedProjectUsers;
@@ -16756,6 +17040,7 @@ var __publicField = (obj, key, value) => {
16756
17040
  exports2.setComponentTypeAttachments = setComponentTypeAttachments;
16757
17041
  exports2.setComponentTypes = setComponentTypes;
16758
17042
  exports2.setComponents = setComponents;
17043
+ exports2.setConversationId = setConversationId;
16759
17044
  exports2.setCreateProjectType = setCreateProjectType;
16760
17045
  exports2.setCurrentUser = setCurrentUser;
16761
17046
  exports2.setDocumentAttachments = setDocumentAttachments;
@@ -16777,6 +17062,8 @@ var __publicField = (obj, key, value) => {
16777
17062
  exports2.setIssueAttachments = setIssueAttachments;
16778
17063
  exports2.setIssueComment = setIssueComment;
16779
17064
  exports2.setIssueComments = setIssueComments;
17065
+ exports2.setIssueType = setIssueType;
17066
+ exports2.setIssueTypes = setIssueTypes;
16780
17067
  exports2.setIssueUpdates = setIssueUpdates;
16781
17068
  exports2.setIssues = setIssues;
16782
17069
  exports2.setLicenses = setLicenses;
@@ -16828,6 +17115,7 @@ var __publicField = (obj, key, value) => {
16828
17115
  exports2.updateFormSubmissions = updateFormSubmissions;
16829
17116
  exports2.updateIssue = updateIssue;
16830
17117
  exports2.updateIssueAttachment = updateIssueAttachment;
17118
+ exports2.updateIssueType = updateIssueType;
16831
17119
  exports2.updateLicense = updateLicense;
16832
17120
  exports2.updateOrCreateProject = updateOrCreateProject;
16833
17121
  exports2.updateOrganizationAccess = updateOrganizationAccess;