@overmap-ai/core 1.0.63-form-submission-drafts.3 → 1.0.63-form-submission-drafts.5

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.
@@ -1011,6 +1011,17 @@ const selectAssetsOfAssetType = restructureCreateSelectorWithArgs(
1011
1011
  const selectAsset = (assetId) => (state) => {
1012
1012
  return state.assetReducer.instances[assetId];
1013
1013
  };
1014
+ const selectAssetsByIds = restructureCreateSelectorWithArgs(
1015
+ createSelector([selectAssetsMapping, (_, assetIds) => assetIds], (assetsMapping, assetIds) => {
1016
+ const assets = [];
1017
+ for (const assetId of assetIds) {
1018
+ const asset = assetsMapping[assetId];
1019
+ if (asset)
1020
+ assets.push(asset);
1021
+ }
1022
+ return assets;
1023
+ })
1024
+ );
1014
1025
  const selectAssetToAssetTypeMapping = createSelector(
1015
1026
  [selectAssets, selectAssetTypesMapping],
1016
1027
  (assets, assetTypeMapping) => {
@@ -1465,6 +1476,17 @@ const searchIssues = restructureCreateSelectorWithArgs(
1465
1476
  }
1466
1477
  )
1467
1478
  );
1479
+ const selectIssuesByIds = restructureCreateSelectorWithArgs(
1480
+ createSelector([selectIssueMapping, (_, issueIds) => issueIds], (issuesMapping, issueIds) => {
1481
+ const issues = [];
1482
+ for (const issueId of issueIds) {
1483
+ const issue = issuesMapping[issueId];
1484
+ if (issue)
1485
+ issues.push(issue);
1486
+ }
1487
+ return issues;
1488
+ })
1489
+ );
1468
1490
  const selectRecentIssuesAsSearchResults = createSelector(
1469
1491
  [selectIssueMapping, selectRecentIssueIds, selectWorkspaceMapping],
1470
1492
  (issueMapping, recentIssueIds, workspaceMapping) => {
@@ -7827,6 +7849,7 @@ export {
7827
7849
  selectAssetTypesFromIds,
7828
7850
  selectAssetTypesMapping,
7829
7851
  selectAssets,
7852
+ selectAssetsByIds,
7830
7853
  selectAssetsMapping,
7831
7854
  selectAssetsOfAssetType,
7832
7855
  selectAttachedFormSubmissionsOfAsset,
@@ -7914,6 +7937,7 @@ export {
7914
7937
  selectIssueTypesOfOrganization,
7915
7938
  selectIssueUpdateMapping,
7916
7939
  selectIssueUpdatesOfIssue,
7940
+ selectIssuesByIds,
7917
7941
  selectIssuesOfIssueType,
7918
7942
  selectIssuesOfIssueTypeCount,
7919
7943
  selectLatestFormRevisionByForm,