@overmap-ai/core 1.0.48-add-teams.0 → 1.0.48-add-teams.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.
@@ -4007,6 +4007,9 @@ var __publicField = (obj, key, value) => {
4007
4007
  const selectTeams = toolkit.createSelector([selectTeamsMapping], (teams) => {
4008
4008
  return Object.values(teams);
4009
4009
  });
4010
+ const selectTeam = (teamId) => (state) => {
4011
+ return state.teamReducer.teams[teamId];
4012
+ };
4010
4013
  const selectTeamsOfOrganization = restructureCreateSelectorWithArgs(
4011
4014
  toolkit.createSelector(
4012
4015
  [selectTeams, (_state, organizationId) => organizationId],
@@ -7847,9 +7850,9 @@ var __publicField = (obj, key, value) => {
7847
7850
  }
7848
7851
  const offlineTeam = offline({
7849
7852
  ...teamPayload,
7850
- organization: activeOrganizationId
7853
+ organization: activeOrganizationId,
7854
+ submitted_at: (/* @__PURE__ */ new Date()).toISOString()
7851
7855
  // TODO: uncomment once supported
7852
- // submitted_at: new Date().toISOString(),
7853
7856
  // created_by: state.userReducer.currentUser.id,
7854
7857
  });
7855
7858
  store.dispatch(addTeam(offlineTeam));
@@ -16114,6 +16117,7 @@ var __publicField = (obj, key, value) => {
16114
16117
  exports2.selectSubmissionsForComponent = selectSubmissionsForComponent;
16115
16118
  exports2.selectSubmissionsForForm = selectSubmissionsForForm;
16116
16119
  exports2.selectSubmissionsForIssue = selectSubmissionsForIssue;
16120
+ exports2.selectTeam = selectTeam;
16117
16121
  exports2.selectTeams = selectTeams;
16118
16122
  exports2.selectTeamsMapping = selectTeamsMapping;
16119
16123
  exports2.selectTeamsOfOrganization = selectTeamsOfOrganization;