@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.
@@ -1661,6 +1661,9 @@ var __publicField = (obj, key, value) => {
1661
1661
  [selectComponentAttachmentMapping],
1662
1662
  (mapping) => Object.values(mapping)
1663
1663
  );
1664
+ const selectComponentAttachment = (attachmentId) => (state) => {
1665
+ return state.componentReducer.attachments[attachmentId];
1666
+ };
1664
1667
  const selectAttachmentsOfComponent = restructureCreateSelectorWithArgs(
1665
1668
  toolkit.createSelector(
1666
1669
  [selectAllComponentAttachments, (_state, componentId) => componentId],
@@ -1950,6 +1953,9 @@ var __publicField = (obj, key, value) => {
1950
1953
  [selectComponentTypeAttachmentMapping],
1951
1954
  (mapping) => Object.values(mapping)
1952
1955
  );
1956
+ const selectComponentTypeAttachment = (attachmentId) => (state) => {
1957
+ return state.componentTypeReducer.attachments[attachmentId];
1958
+ };
1953
1959
  const selectAttachmentsOfComponentType = restructureCreateSelectorWithArgs(
1954
1960
  toolkit.createSelector(
1955
1961
  [selectAllComponentTypeAttachments, (_state, componentTypeId) => componentTypeId],
@@ -2344,6 +2350,9 @@ var __publicField = (obj, key, value) => {
2344
2350
  }
2345
2351
  )
2346
2352
  );
2353
+ const selectIssueAttachment = (attachmentId) => (root) => {
2354
+ return root.issueReducer.attachments[attachmentId];
2355
+ };
2347
2356
  const selectAttachmentsOfIssueByType = restructureCreateSelectorWithArgs(
2348
2357
  toolkit.createSelector(
2349
2358
  [selectIssueAttachments, (_state, issueId) => issueId],
@@ -3992,6 +4001,9 @@ var __publicField = (obj, key, value) => {
3992
4001
  [selectDocumentAttachmentMapping],
3993
4002
  (mapping) => Object.values(mapping)
3994
4003
  );
4004
+ const selectDocumentAttachment = (attachmentId) => (state) => {
4005
+ return state.documentsReducer.attachments[attachmentId];
4006
+ };
3995
4007
  const selectAttachmentsOfDocument = restructureCreateSelectorWithArgs(
3996
4008
  toolkit.createSelector(
3997
4009
  [selectAllDocumentAttachments, (_state, documentId) => documentId],
@@ -15882,9 +15894,11 @@ var __publicField = (obj, key, value) => {
15882
15894
  exports2.selectCompletedStageIdsForComponent = selectCompletedStageIdsForComponent;
15883
15895
  exports2.selectCompletedStages = selectCompletedStages;
15884
15896
  exports2.selectComponent = selectComponent;
15897
+ exports2.selectComponentAttachment = selectComponentAttachment;
15885
15898
  exports2.selectComponentAttachmentMapping = selectComponentAttachmentMapping;
15886
15899
  exports2.selectComponentSubmissionMapping = selectComponentSubmissionMapping;
15887
15900
  exports2.selectComponentType = selectComponentType;
15901
+ exports2.selectComponentTypeAttachment = selectComponentTypeAttachment;
15888
15902
  exports2.selectComponentTypeAttachmentMapping = selectComponentTypeAttachmentMapping;
15889
15903
  exports2.selectComponentTypeForm = selectComponentTypeForm;
15890
15904
  exports2.selectComponentTypeFromComponent = selectComponentTypeFromComponent;
@@ -15902,6 +15916,7 @@ var __publicField = (obj, key, value) => {
15902
15916
  exports2.selectCurrentUser = selectCurrentUser;
15903
15917
  exports2.selectDeletedRequests = selectDeletedRequests;
15904
15918
  exports2.selectDocument = selectDocument;
15919
+ exports2.selectDocumentAttachment = selectDocumentAttachment;
15905
15920
  exports2.selectDocumentAttachmentMapping = selectDocumentAttachmentMapping;
15906
15921
  exports2.selectDocuments = selectDocuments;
15907
15922
  exports2.selectDocumentsMapping = selectDocumentsMapping;
@@ -15924,6 +15939,7 @@ var __publicField = (obj, key, value) => {
15924
15939
  exports2.selectIsLoading = selectIsLoading;
15925
15940
  exports2.selectIsLoggedIn = selectIsLoggedIn;
15926
15941
  exports2.selectIssue = selectIssue;
15942
+ exports2.selectIssueAttachment = selectIssueAttachment;
15927
15943
  exports2.selectIssueAttachmentMapping = selectIssueAttachmentMapping;
15928
15944
  exports2.selectIssueAttachments = selectIssueAttachments;
15929
15945
  exports2.selectIssueMapping = selectIssueMapping;