@overmap-ai/core 1.0.69 → 1.0.71-active-project-state.0

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.
@@ -1576,13 +1576,6 @@ var __publicField = (obj, key, value) => {
1576
1576
  const selectProjectAccessById = (id) => (state) => {
1577
1577
  return state.projectAccessReducer.instances[id];
1578
1578
  };
1579
- const selectActiveProjectAccess = (state) => {
1580
- const currentUser = state.userReducer.currentUser;
1581
- const activeProjectId = state.projectReducer.activeProjectId;
1582
- return Object.values(state.projectAccessReducer.instances).find((projectAccess) => {
1583
- return projectAccess.user === (currentUser == null ? void 0 : currentUser.id) && projectAccess.project === activeProjectId;
1584
- }) ?? null;
1585
- };
1586
1579
  const selectProjectAccessForUser = (user) => (state) => {
1587
1580
  return Object.values(state.projectAccessReducer.instances).find(
1588
1581
  (projectAccess) => projectAccess.user === user.id
@@ -1597,8 +1590,7 @@ var __publicField = (obj, key, value) => {
1597
1590
  };
1598
1591
  const projectAccessReducer = projectAccessSlice.reducer;
1599
1592
  const initialState$m = {
1600
- projects: {},
1601
- activeProjectId: null
1593
+ projects: {}
1602
1594
  };
1603
1595
  const projectSlice = toolkit.createSlice({
1604
1596
  name: "projects",
@@ -1612,19 +1604,9 @@ var __publicField = (obj, key, value) => {
1612
1604
  });
1613
1605
  state.projects = projectsMap;
1614
1606
  },
1615
- setActiveProjectId: (state, action) => {
1616
- state.activeProjectId = action.payload;
1617
- },
1618
- updateOrCreateProject: (state, action) => {
1607
+ updateProject: (state, action) => {
1619
1608
  state.projects[action.payload.id] = action.payload;
1620
1609
  },
1621
- // Takes a list of Projects and updates existing ones to match the payload, or adds them
1622
- // to the store if they are not already present
1623
- updateOrCreateProjects: (state, action) => {
1624
- action.payload.forEach((project) => {
1625
- state.projects[project.id] = project;
1626
- });
1627
- },
1628
1610
  deleteProject: (state, action) => {
1629
1611
  delete state.projects[action.payload.id];
1630
1612
  },
@@ -1634,50 +1616,12 @@ var __publicField = (obj, key, value) => {
1634
1616
  } else {
1635
1617
  throw new Error("Accept project invite: user is not in this project");
1636
1618
  }
1637
- },
1638
- addActiveProjectIssuesCount: (state, action) => {
1639
- if (!state.activeProjectId || !(state.activeProjectId in state.projects)) {
1640
- throw new Error("Update issues count: no active project");
1641
- }
1642
- if (!state.projects[state.activeProjectId].issues_count) {
1643
- state.projects[state.activeProjectId].issues_count = action.payload;
1644
- } else {
1645
- state.projects[state.activeProjectId].issues_count += action.payload;
1646
- }
1647
- },
1648
- addActiveProjectFormSubmissionsCount: (state, action) => {
1649
- if (state.activeProjectId && state.activeProjectId in state.projects) {
1650
- if (!state.projects[state.activeProjectId].form_submissions_count) {
1651
- state.projects[state.activeProjectId].form_submissions_count = action.payload;
1652
- } else {
1653
- state.projects[state.activeProjectId].form_submissions_count += action.payload;
1654
- }
1655
- } else {
1656
- throw new Error("Update form submissions count: no active project");
1657
- }
1658
1619
  }
1659
1620
  }
1660
1621
  });
1661
- const {
1662
- setProjects,
1663
- updateOrCreateProject,
1664
- updateOrCreateProjects: addOrReplaceProjects,
1665
- setActiveProjectId,
1666
- deleteProject,
1667
- acceptProjectInvite,
1668
- addActiveProjectIssuesCount,
1669
- addActiveProjectFormSubmissionsCount
1670
- } = projectSlice.actions;
1622
+ const { setProjects, updateProject, deleteProject, acceptProjectInvite } = projectSlice.actions;
1671
1623
  const projectReducer = projectSlice.reducer;
1672
1624
  const selectProjectMapping = (state) => state.projectReducer.projects;
1673
- const selectActiveProjectId = (state) => state.projectReducer.activeProjectId;
1674
- const selectActiveProject = (state) => {
1675
- const activeProjectId = selectActiveProjectId(state);
1676
- if (!activeProjectId) {
1677
- return null;
1678
- }
1679
- return state.projectReducer.projects[activeProjectId] ?? null;
1680
- };
1681
1625
  const selectProjectById = (id) => (state) => {
1682
1626
  return state.projectReducer.projects[id];
1683
1627
  };
@@ -1926,14 +1870,9 @@ var __publicField = (obj, key, value) => {
1926
1870
  resetProjectFileObjectUrls
1927
1871
  } = projectFileSlice.actions;
1928
1872
  const selectProjectFileMapping = (state) => state.projectFileReducer.projectFiles;
1929
- const selectProjectFiles = toolkit.createSelector(
1930
- [selectProjectFileMapping, selectActiveProjectId],
1931
- (mapping, activeProjectId) => {
1932
- return fallbackToEmptyArray(
1933
- Object.values(mapping).filter((file) => file.project === activeProjectId).sort((a, b) => a.z_index - b.z_index)
1934
- );
1935
- }
1936
- );
1873
+ const selectProjectFiles = toolkit.createSelector([selectProjectFileMapping], (mapping) => {
1874
+ return fallbackToEmptyArray(Object.values(mapping).sort((a, b) => a.z_index - b.z_index));
1875
+ });
1937
1876
  const selectActiveProjectFileId = (state) => state.projectFileReducer.activeProjectFileId;
1938
1877
  const selectIsImportingProjectFile = (state) => state.projectFileReducer.isImportingProjectFile;
1939
1878
  const selectProjectFileById = (id) => (state) => {
@@ -4803,7 +4742,6 @@ var __publicField = (obj, key, value) => {
4803
4742
  created_by: createdBy
4804
4743
  });
4805
4744
  this.dispatch(addIssue(offlineIssue));
4806
- this.dispatch(addActiveProjectIssuesCount(1));
4807
4745
  const promise = this.enqueueRequest({
4808
4746
  description: "Create issue",
4809
4747
  method: HttpMethod.POST,
@@ -4820,7 +4758,6 @@ var __publicField = (obj, key, value) => {
4820
4758
  this.dispatch(updateIssue(result));
4821
4759
  }).catch((error) => {
4822
4760
  this.dispatch(deleteIssue(offlineIssue.offline_id));
4823
- this.dispatch(addActiveProjectIssuesCount(-1));
4824
4761
  throw error;
4825
4762
  });
4826
4763
  return [offlineIssue, promise];
@@ -4936,7 +4873,6 @@ var __publicField = (obj, key, value) => {
4936
4873
  issueAssociationsRecord[issueAssociation.offline_id] = issueAssociation;
4937
4874
  const issueAssociations = Object.values(issueAssociationsRecord);
4938
4875
  this.dispatch(deleteIssue(id));
4939
- this.dispatch(addActiveProjectIssuesCount(-1));
4940
4876
  if (attachmentsOfIssue.length > 0)
4941
4877
  this.dispatch(deleteIssueAttachments(attachmentsOfIssue.map(({ offline_id }) => offline_id)));
4942
4878
  if (updatesOfIssue.length > 0)
@@ -4957,7 +4893,6 @@ var __publicField = (obj, key, value) => {
4957
4893
  this.dispatch(addIssue(backup));
4958
4894
  this.dispatch(addIssueAttachments(attachmentsOfIssue));
4959
4895
  this.dispatch(addIssueUpdates(updatesOfIssue));
4960
- this.dispatch(addActiveProjectIssuesCount(1));
4961
4896
  this.dispatch(addFormSubmissions(formSubmissionsOfIssue));
4962
4897
  this.dispatch(addIssueAssociations(issueAssociations));
4963
4898
  throw e;
@@ -5125,13 +5060,9 @@ var __publicField = (obj, key, value) => {
5125
5060
  const { store } = this.client;
5126
5061
  const state = store.getState();
5127
5062
  const activeProjectFileId = state.projectFileReducer.activeProjectFileId;
5128
- const activeProjectId = state.projectReducer.activeProjectId;
5129
5063
  if (!activeProjectFileId) {
5130
5064
  throw new Error("No active project file");
5131
5065
  }
5132
- if (!activeProjectId) {
5133
- throw new Error("No active project");
5134
- }
5135
5066
  const activeProjectFile = state.projectFileReducer.projectFiles[activeProjectFileId];
5136
5067
  if (!activeProjectFile) {
5137
5068
  throw new Error("No active project file");
@@ -5156,7 +5087,7 @@ var __publicField = (obj, key, value) => {
5156
5087
  this.client.files.uploadFileToS3(activeProjectFile.file_sha1).then(([fileProps]) => {
5157
5088
  resolve({
5158
5089
  method: HttpMethod.POST,
5159
- url: `/projects/${activeProjectId}/files/`,
5090
+ url: `/projects/${activeProjectFile.project}/files/`,
5160
5091
  payload: {
5161
5092
  ...activeProjectFile,
5162
5093
  ...fileProps
@@ -5232,23 +5163,17 @@ var __publicField = (obj, key, value) => {
5232
5163
  }
5233
5164
  class ProjectService extends BaseApiService {
5234
5165
  async add(payload) {
5235
- if (!payload.organization_owner && !payload.user_owner) {
5236
- throw new Error("Project type was not chosen when trying to create a project");
5237
- }
5238
5166
  if (!payload.bounds && !payload.canvas_bounds) {
5239
5167
  throw new Error("Project must either have bounds or canvas_bounds set");
5240
5168
  }
5241
- const isOrganizationProject = !!payload.organization_owner;
5242
- const url = isOrganizationProject ? `/organizations/${payload.organization_owner}/projects/` : "/projects/";
5243
- const projectType = isOrganizationProject ? { organization_owner: payload.organization_owner } : { user_owner: payload.user_owner };
5244
5169
  return await this.enqueueRequest({
5245
5170
  description: "Create project",
5246
5171
  method: HttpMethod.POST,
5247
- url,
5172
+ url: "/projects/",
5248
5173
  payload: {
5249
5174
  name: payload.name,
5250
5175
  bounds: payload.bounds,
5251
- ...projectType
5176
+ organization_owner: payload.organization_owner
5252
5177
  },
5253
5178
  blockers: [],
5254
5179
  blocks: []
@@ -5258,7 +5183,7 @@ var __publicField = (obj, key, value) => {
5258
5183
  if (!project.bounds && !project.canvas_bounds) {
5259
5184
  throw new Error("Project must either have bounds or canvas_bounds set");
5260
5185
  }
5261
- this.dispatch(updateOrCreateProject(project));
5186
+ this.dispatch(updateProject(project));
5262
5187
  return await this.enqueueRequest({
5263
5188
  description: "Update project",
5264
5189
  method: HttpMethod.PATCH,
@@ -5572,28 +5497,28 @@ var __publicField = (obj, key, value) => {
5572
5497
  });
5573
5498
  return [fullRevision, offlineFormRevisionAttachments, promise, attachmentsPromise];
5574
5499
  }
5575
- async delete(formId) {
5500
+ async delete(id) {
5576
5501
  const { store } = this.client;
5577
5502
  const state = store.getState();
5578
- const form = selectFormById(formId)(state);
5503
+ const form = selectFormById(id)(state);
5579
5504
  if (!form) {
5580
5505
  throw new Error("Expected form to exist");
5581
5506
  }
5582
- const formSubmissions = selectFormSubmissionsOfForm(formId)(state);
5507
+ const formSubmissions = selectFormSubmissionsOfForm(id)(state);
5583
5508
  if (formSubmissions.length > 0) {
5584
5509
  this.dispatch(deleteFormSubmissions(formSubmissions.map(({ offline_id }) => offline_id)));
5585
5510
  }
5586
- const formRevisions = selectFormRevisionsOfForm(formId)(state);
5511
+ const formRevisions = selectFormRevisionsOfForm(id)(state);
5587
5512
  if (formRevisions.length > 0) {
5588
5513
  this.dispatch(deleteFormRevisions(formRevisions.map(({ offline_id }) => offline_id)));
5589
5514
  }
5590
- this.dispatch(deleteForm(formId));
5515
+ this.dispatch(deleteForm(id));
5591
5516
  try {
5592
5517
  return await this.enqueueRequest({
5593
5518
  description: "Delete form",
5594
5519
  method: HttpMethod.DELETE,
5595
- url: `/forms/${formId}/`,
5596
- blockers: [formId],
5520
+ url: `/forms/${id}/`,
5521
+ blockers: [id],
5597
5522
  blocks: []
5598
5523
  });
5599
5524
  } catch (e) {
@@ -5798,12 +5723,10 @@ var __publicField = (obj, key, value) => {
5798
5723
  files
5799
5724
  );
5800
5725
  promise.then((result) => {
5801
- this.dispatch(addActiveProjectFormSubmissionsCount(1));
5802
5726
  this.dispatch(setFormSubmission(result));
5803
5727
  return result;
5804
5728
  }).catch(() => {
5805
5729
  this.dispatch(deleteFormSubmission(offlineSubmission.offline_id));
5806
- this.dispatch(addActiveProjectFormSubmissionsCount(-1));
5807
5730
  });
5808
5731
  return [offlineSubmission, offlineFormSubmissionAttachments, promise, attachmentsPromise];
5809
5732
  }
@@ -5961,27 +5884,25 @@ var __publicField = (obj, key, value) => {
5961
5884
  deleteAttachmentsPromise
5962
5885
  ];
5963
5886
  }
5964
- async delete(submissionId) {
5887
+ async delete(id) {
5965
5888
  const { store } = this.client;
5966
5889
  const state = store.getState();
5967
- const submissionToBeDeleted = selectFormSubmissionById(submissionId)(state);
5890
+ const submissionToBeDeleted = selectFormSubmissionById(id)(state);
5968
5891
  if (!submissionToBeDeleted) {
5969
- throw new Error(`Expected submission with offline_id ${submissionId} to exist`);
5892
+ throw new Error(`Expected submission with offline_id ${id} to exist`);
5970
5893
  }
5971
- const submissionAttachments = selectAttachmentsOfFormSubmission(submissionId)(state);
5972
- this.dispatch(deleteFormSubmission(submissionId));
5973
- this.dispatch(addActiveProjectFormSubmissionsCount(-1));
5894
+ const submissionAttachments = selectAttachmentsOfFormSubmission(id)(state);
5895
+ this.dispatch(deleteFormSubmission(id));
5974
5896
  this.dispatch(deleteFormSubmissionAttachments(submissionAttachments.map((x) => x.offline_id)));
5975
5897
  try {
5976
5898
  return await this.enqueueRequest({
5977
5899
  description: "Delete user form submissions",
5978
5900
  method: HttpMethod.DELETE,
5979
- url: `/forms/submissions/${submissionId}/`,
5980
- blockers: [submissionId],
5901
+ url: `/forms/submissions/${id}/`,
5902
+ blockers: [id],
5981
5903
  blocks: []
5982
5904
  });
5983
5905
  } catch (e) {
5984
- this.dispatch(addActiveProjectFormSubmissionsCount(1));
5985
5906
  this.dispatch(addFormSubmission(submissionToBeDeleted));
5986
5907
  this.dispatch(addFormSubmissionAttachments(submissionAttachments));
5987
5908
  throw e;
@@ -6083,22 +6004,22 @@ var __publicField = (obj, key, value) => {
6083
6004
  });
6084
6005
  return [workspace, promise];
6085
6006
  }
6086
- delete(workspaceId) {
6007
+ delete(id) {
6087
6008
  const { store } = this.client;
6088
- const originalWorkspace = selectWorkspaceById(workspaceId)(store.getState());
6089
- this.dispatch(deleteWorkspace(workspaceId));
6009
+ const originalWorkspace = selectWorkspaceById(id)(store.getState());
6010
+ if (!originalWorkspace) {
6011
+ throw new Error(`Expected an existing workspace with id ${id}`);
6012
+ }
6013
+ this.dispatch(deleteWorkspace(id));
6090
6014
  const promise = this.enqueueRequest({
6091
6015
  description: "Delete Workspace",
6092
6016
  method: HttpMethod.DELETE,
6093
- url: `/workspaces/${workspaceId}/`,
6094
- blockers: [workspaceId],
6017
+ url: `/workspaces/${id}/`,
6018
+ blockers: [id],
6095
6019
  blocks: []
6096
6020
  });
6097
- void promise.then(() => {
6098
- }).catch((reason) => {
6099
- if (originalWorkspace) {
6100
- this.dispatch(addWorkspace(originalWorkspace));
6101
- }
6021
+ void promise.catch((reason) => {
6022
+ this.dispatch(addWorkspace(originalWorkspace));
6102
6023
  throw reason;
6103
6024
  });
6104
6025
  return promise;
@@ -6476,9 +6397,7 @@ var __publicField = (obj, key, value) => {
6476
6397
  method: HttpMethod.GET,
6477
6398
  url: `/billing/${license.offline_id}/`,
6478
6399
  isAuthNeeded: true,
6479
- blockers: [
6480
- license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
6481
- ],
6400
+ blockers: [license.organization_owner ? license.organization_owner.toString() : ""],
6482
6401
  blocks: []
6483
6402
  });
6484
6403
  this.dispatch(updateLicense(result));
@@ -6490,9 +6409,7 @@ var __publicField = (obj, key, value) => {
6490
6409
  method: HttpMethod.DELETE,
6491
6410
  url: `/billing/${license.offline_id}/suspend/`,
6492
6411
  isAuthNeeded: true,
6493
- blockers: [
6494
- license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
6495
- ],
6412
+ blockers: [license.organization_owner ? license.organization_owner.toString() : ""],
6496
6413
  blocks: []
6497
6414
  });
6498
6415
  this.dispatch(updateLicense(result));
@@ -6504,9 +6421,7 @@ var __publicField = (obj, key, value) => {
6504
6421
  method: HttpMethod.PATCH,
6505
6422
  url: `/billing/${license.offline_id}/suspend/`,
6506
6423
  isAuthNeeded: true,
6507
- blockers: [
6508
- license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
6509
- ],
6424
+ blockers: [license.organization_owner ? license.organization_owner.toString() : ""],
6510
6425
  blocks: []
6511
6426
  });
6512
6427
  this.dispatch(updateLicense(result));
@@ -6518,9 +6433,7 @@ var __publicField = (obj, key, value) => {
6518
6433
  method: HttpMethod.DELETE,
6519
6434
  url: `/billing/${license.offline_id}/`,
6520
6435
  isAuthNeeded: true,
6521
- blockers: [
6522
- license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
6523
- ],
6436
+ blockers: [license.organization_owner ? license.organization_owner.toString() : ""],
6524
6437
  blocks: []
6525
6438
  });
6526
6439
  this.dispatch(updateLicense(result));
@@ -6534,7 +6447,7 @@ var __publicField = (obj, key, value) => {
6534
6447
  isAuthNeeded: true,
6535
6448
  payload: { project: project.id },
6536
6449
  blockers: [
6537
- license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : "",
6450
+ license.organization_owner ? license.organization_owner.toString() : "",
6538
6451
  project.id ? project.id.toString() : ""
6539
6452
  ],
6540
6453
  blocks: ["add-issue", "add-form-entry", "change-access-level", "add-workspace"]
@@ -6548,9 +6461,7 @@ var __publicField = (obj, key, value) => {
6548
6461
  method: HttpMethod.DELETE,
6549
6462
  url: `/billing/${license.offline_id}/project/`,
6550
6463
  isAuthNeeded: true,
6551
- blockers: [
6552
- license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
6553
- ],
6464
+ blockers: [license.organization_owner ? license.organization_owner.toString() : ""],
6554
6465
  blocks: ["add-issue", "add-form-entry", "change-access-level", "add-workspace"]
6555
6466
  });
6556
6467
  this.dispatch(updateLicense(result));
@@ -6868,15 +6779,14 @@ var __publicField = (obj, key, value) => {
6868
6779
  }
6869
6780
  }
6870
6781
  class AgentService extends BaseApiService {
6871
- async startConversation(prompt) {
6872
- const activeProjectId = this.client.store.getState().projectReducer.activeProjectId;
6782
+ async startConversation(prompt, projectId) {
6873
6783
  return this.enqueueRequest({
6874
6784
  description: "Start agent conversation",
6875
6785
  method: HttpMethod.POST,
6876
6786
  url: "/agents/prompt/",
6877
6787
  payload: {
6878
6788
  prompt,
6879
- active_project: activeProjectId
6789
+ active_project: projectId
6880
6790
  },
6881
6791
  blockers: ["prompt"],
6882
6792
  blocks: ["prompt"]
@@ -6885,21 +6795,14 @@ var __publicField = (obj, key, value) => {
6885
6795
  return response;
6886
6796
  });
6887
6797
  }
6888
- /**
6889
- * Prompt the agent with a message.
6890
- * @param prompt The message to prompt the agent with.
6891
- * @param conversationId If continuing an existing message, the UUID of that conversation.
6892
- */
6893
- async continueConversation(prompt, conversationId) {
6894
- const { store } = this.client;
6895
- const activeProjectId = store.getState().projectReducer.activeProjectId;
6798
+ async continueConversation(prompt, conversationId, projectId) {
6896
6799
  return this.enqueueRequest({
6897
6800
  description: "Prompt agent",
6898
6801
  method: HttpMethod.POST,
6899
6802
  url: "/agents/prompt/",
6900
6803
  payload: {
6901
6804
  prompt,
6902
- active_project: activeProjectId
6805
+ active_project: projectId
6903
6806
  },
6904
6807
  blockers: ["prompt"],
6905
6808
  blocks: ["prompt"],
@@ -6991,21 +6894,21 @@ var __publicField = (obj, key, value) => {
6991
6894
  });
6992
6895
  return [offlineUpdatedTeam, promise];
6993
6896
  }
6994
- async delete(teamId) {
6897
+ async delete(id) {
6995
6898
  const { store } = this.client;
6996
6899
  const state = store.getState();
6997
- const team = selectTeamById(teamId)(state);
6900
+ const team = selectTeamById(id)(state);
6998
6901
  if (!team) {
6999
- throw new Error(`Expected team with id ${teamId} to exist`);
6902
+ throw new Error(`Expected team with id ${id} to exist`);
7000
6903
  }
7001
- this.dispatch(deleteTeam(teamId));
6904
+ this.dispatch(deleteTeam(id));
7002
6905
  try {
7003
6906
  return await this.enqueueRequest({
7004
6907
  description: "Delete team",
7005
6908
  method: HttpMethod.DELETE,
7006
- url: `/organizations/teams/${teamId}/`,
7007
- blockers: [teamId],
7008
- blocks: [teamId]
6909
+ url: `/organizations/teams/${id}/`,
6910
+ blockers: [id],
6911
+ blocks: [id]
7009
6912
  });
7010
6913
  } catch (e) {
7011
6914
  this.dispatch(setTeam(team));
@@ -7235,20 +7138,20 @@ var __publicField = (obj, key, value) => {
7235
7138
  });
7236
7139
  return [updatedGeoImage, promise];
7237
7140
  }
7238
- async delete(geoImageId) {
7141
+ async delete(id) {
7239
7142
  const { store } = this.client;
7240
7143
  const state = store.getState();
7241
- const geoImageToDelete = selectGeoImageById(geoImageId)(state);
7144
+ const geoImageToDelete = selectGeoImageById(id)(state);
7242
7145
  if (!geoImageToDelete) {
7243
- throw new Error(`Map image with offline_id ${geoImageId} does not exist in the store`);
7146
+ throw new Error(`Map image with offline_id ${id} does not exist in the store`);
7244
7147
  }
7245
- this.dispatch(deleteGeoImage(geoImageId));
7148
+ this.dispatch(deleteGeoImage(id));
7246
7149
  const promise = this.enqueueRequest({
7247
7150
  description: "Delete geo image",
7248
7151
  method: HttpMethod.DELETE,
7249
- url: `/geo-images/${geoImageId}/`,
7250
- blocks: [geoImageId],
7251
- blockers: [geoImageId]
7152
+ url: `/geo-images/${id}/`,
7153
+ blocks: [id],
7154
+ blockers: [id]
7252
7155
  });
7253
7156
  promise.catch(() => {
7254
7157
  this.dispatch(setGeoImage(geoImageToDelete));
@@ -7401,8 +7304,6 @@ var __publicField = (obj, key, value) => {
7401
7304
  exports2._selectLatestFormRevision = _selectLatestFormRevision;
7402
7305
  exports2._setLatestRetryTime = _setLatestRetryTime;
7403
7306
  exports2.acceptProjectInvite = acceptProjectInvite;
7404
- exports2.addActiveProjectFormSubmissionsCount = addActiveProjectFormSubmissionsCount;
7405
- exports2.addActiveProjectIssuesCount = addActiveProjectIssuesCount;
7406
7307
  exports2.addAsset = addAsset;
7407
7308
  exports2.addAssetAttachment = addAssetAttachment;
7408
7309
  exports2.addAssetAttachments = addAssetAttachments;
@@ -7447,7 +7348,6 @@ var __publicField = (obj, key, value) => {
7447
7348
  exports2.addLicenses = addLicenses;
7448
7349
  exports2.addOrReplaceProjectFile = addOrReplaceProjectFile;
7449
7350
  exports2.addOrReplaceProjectFiles = addOrReplaceProjectFiles;
7450
- exports2.addOrReplaceProjects = addOrReplaceProjects;
7451
7351
  exports2.addProjectAttachment = addProjectAttachment;
7452
7352
  exports2.addProjectAttachments = addProjectAttachments;
7453
7353
  exports2.addTeam = addTeam;
@@ -7656,10 +7556,7 @@ var __publicField = (obj, key, value) => {
7656
7556
  exports2.saveActiveProjectFileBounds = saveActiveProjectFileBounds;
7657
7557
  exports2.selectAccessToken = selectAccessToken;
7658
7558
  exports2.selectActiveOrganizationAccess = selectActiveOrganizationAccess;
7659
- exports2.selectActiveProject = selectActiveProject;
7660
- exports2.selectActiveProjectAccess = selectActiveProjectAccess;
7661
7559
  exports2.selectActiveProjectFileId = selectActiveProjectFileId;
7662
- exports2.selectActiveProjectId = selectActiveProjectId;
7663
7560
  exports2.selectActiveStatusLicenses = selectActiveStatusLicenses;
7664
7561
  exports2.selectAllDocumentAttachments = selectAllDocumentAttachments;
7665
7562
  exports2.selectAllProjectAttachments = selectAllProjectAttachments;
@@ -7834,7 +7731,6 @@ var __publicField = (obj, key, value) => {
7834
7731
  exports2.selectWorkspaceMapping = selectWorkspaceMapping;
7835
7732
  exports2.selectWorkspaces = selectWorkspaces;
7836
7733
  exports2.setActiveProjectFileId = setActiveProjectFileId;
7837
- exports2.setActiveProjectId = setActiveProjectId;
7838
7734
  exports2.setAsset = setAsset;
7839
7735
  exports2.setAssetAttachment = setAssetAttachment;
7840
7736
  exports2.setAssetAttachments = setAssetAttachments;
@@ -7923,8 +7819,8 @@ var __publicField = (obj, key, value) => {
7923
7819
  exports2.updateIssueAttachments = updateIssueAttachments;
7924
7820
  exports2.updateIssueType = updateIssueType;
7925
7821
  exports2.updateLicense = updateLicense;
7926
- exports2.updateOrCreateProject = updateOrCreateProject;
7927
7822
  exports2.updateOrganizationAccess = updateOrganizationAccess;
7823
+ exports2.updateProject = updateProject;
7928
7824
  exports2.updateProjectAccess = updateProjectAccess;
7929
7825
  exports2.updateProjectAttachment = updateProjectAttachment;
7930
7826
  exports2.updateProjectAttachments = updateProjectAttachments;