@overmap-ai/core 1.0.63-form-submission-drafts.2 → 1.0.63-form-submission-drafts.4

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.
@@ -1465,6 +1465,17 @@ const searchIssues = restructureCreateSelectorWithArgs(
1465
1465
  }
1466
1466
  )
1467
1467
  );
1468
+ const selectIssuesByIds = restructureCreateSelectorWithArgs(
1469
+ createSelector([selectIssueMapping, (_, issueIds) => issueIds], (issuesMapping, issueIds) => {
1470
+ const issues = [];
1471
+ for (const issueId of issueIds) {
1472
+ const issue = issuesMapping[issueId];
1473
+ if (issue)
1474
+ issues.push(issue);
1475
+ }
1476
+ return issues;
1477
+ })
1478
+ );
1468
1479
  const selectRecentIssuesAsSearchResults = createSelector(
1469
1480
  [selectIssueMapping, selectRecentIssueIds, selectWorkspaceMapping],
1470
1481
  (issueMapping, recentIssueIds, workspaceMapping) => {
@@ -3327,6 +3338,9 @@ const {
3327
3338
  deleteIssueAssociations
3328
3339
  } = issueAssociationSlice.actions;
3329
3340
  const selectIssueAssociationMapping = (state) => state.issueAssociationReducer.instances;
3341
+ const selectIssueAssociations = createSelector([selectIssueAssociationMapping], (associations) => {
3342
+ return Object.values(associations);
3343
+ });
3330
3344
  const selectIssueAssociationById = (id) => (state) => {
3331
3345
  return state.issueAssociationReducer.instances[id];
3332
3346
  };
@@ -7895,6 +7909,7 @@ export {
7895
7909
  selectIssue,
7896
7910
  selectIssueAssociationById,
7897
7911
  selectIssueAssociationMapping,
7912
+ selectIssueAssociations,
7898
7913
  selectIssueAssociationsOfAsset,
7899
7914
  selectIssueAssociationsOfIssue,
7900
7915
  selectIssueAssociationsToIssue,
@@ -7910,6 +7925,7 @@ export {
7910
7925
  selectIssueTypesOfOrganization,
7911
7926
  selectIssueUpdateMapping,
7912
7927
  selectIssueUpdatesOfIssue,
7928
+ selectIssuesByIds,
7913
7929
  selectIssuesOfIssueType,
7914
7930
  selectIssuesOfIssueTypeCount,
7915
7931
  selectLatestFormRevisionByForm,