@overmap-ai/core 1.0.50-document-attachments.0 → 1.0.50-document-attachments.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.
@@ -1670,6 +1670,9 @@ const selectAllComponentAttachments = createSelector(
1670
1670
  [selectComponentAttachmentMapping],
1671
1671
  (mapping) => Object.values(mapping)
1672
1672
  );
1673
+ const selectComponentAttachment = (attachmentId) => (state) => {
1674
+ return state.componentReducer.attachments[attachmentId];
1675
+ };
1673
1676
  const selectAttachmentsOfComponent = restructureCreateSelectorWithArgs(
1674
1677
  createSelector(
1675
1678
  [selectAllComponentAttachments, (_state, componentId) => componentId],
@@ -1959,6 +1962,9 @@ const selectAllComponentTypeAttachments = createSelector(
1959
1962
  [selectComponentTypeAttachmentMapping],
1960
1963
  (mapping) => Object.values(mapping)
1961
1964
  );
1965
+ const selectComponentTypeAttachment = (attachmentId) => (state) => {
1966
+ return state.componentTypeReducer.attachments[attachmentId];
1967
+ };
1962
1968
  const selectAttachmentsOfComponentType = restructureCreateSelectorWithArgs(
1963
1969
  createSelector(
1964
1970
  [selectAllComponentTypeAttachments, (_state, componentTypeId) => componentTypeId],
@@ -2353,6 +2359,9 @@ const selectAttachmentsOfIssue = restructureCreateSelectorWithArgs(
2353
2359
  }
2354
2360
  )
2355
2361
  );
2362
+ const selectIssueAttachment = (attachmentId) => (root) => {
2363
+ return root.issueReducer.attachments[attachmentId];
2364
+ };
2356
2365
  const selectAttachmentsOfIssueByType = restructureCreateSelectorWithArgs(
2357
2366
  createSelector(
2358
2367
  [selectIssueAttachments, (_state, issueId) => issueId],
@@ -4001,6 +4010,9 @@ const selectAllDocumentAttachments = createSelector(
4001
4010
  [selectDocumentAttachmentMapping],
4002
4011
  (mapping) => Object.values(mapping)
4003
4012
  );
4013
+ const selectDocumentAttachment = (attachmentId) => (state) => {
4014
+ return state.documentsReducer.attachments[attachmentId];
4015
+ };
4004
4016
  const selectAttachmentsOfDocument = restructureCreateSelectorWithArgs(
4005
4017
  createSelector(
4006
4018
  [selectAllDocumentAttachments, (_state, documentId) => documentId],
@@ -15892,9 +15904,11 @@ export {
15892
15904
  selectCompletedStageIdsForComponent,
15893
15905
  selectCompletedStages,
15894
15906
  selectComponent,
15907
+ selectComponentAttachment,
15895
15908
  selectComponentAttachmentMapping,
15896
15909
  selectComponentSubmissionMapping,
15897
15910
  selectComponentType,
15911
+ selectComponentTypeAttachment,
15898
15912
  selectComponentTypeAttachmentMapping,
15899
15913
  selectComponentTypeForm,
15900
15914
  selectComponentTypeFromComponent,
@@ -15912,6 +15926,7 @@ export {
15912
15926
  selectCurrentUser,
15913
15927
  selectDeletedRequests,
15914
15928
  selectDocument,
15929
+ selectDocumentAttachment,
15915
15930
  selectDocumentAttachmentMapping,
15916
15931
  selectDocuments,
15917
15932
  selectDocumentsMapping,
@@ -15934,6 +15949,7 @@ export {
15934
15949
  selectIsLoading,
15935
15950
  selectIsLoggedIn,
15936
15951
  selectIssue,
15952
+ selectIssueAttachment,
15937
15953
  selectIssueAttachmentMapping,
15938
15954
  selectIssueAttachments,
15939
15955
  selectIssueMapping,