@overmap-ai/core 1.0.71-mapbox.3 → 1.0.71-mapbox.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.
@@ -1520,13 +1520,6 @@ var __publicField = (obj, key, value) => {
1520
1520
  const selectProjectAccessById = (id) => (state) => {
1521
1521
  return state.projectAccessReducer.instances[id];
1522
1522
  };
1523
- const selectActiveProjectAccess = (state) => {
1524
- const currentUser = state.userReducer.currentUser;
1525
- const activeProjectId = state.projectReducer.activeProjectId;
1526
- return Object.values(state.projectAccessReducer.instances).find((projectAccess) => {
1527
- return projectAccess.user === (currentUser == null ? void 0 : currentUser.id) && projectAccess.project === activeProjectId;
1528
- }) ?? null;
1529
- };
1530
1523
  const selectProjectAccessForUser = (user) => (state) => {
1531
1524
  return Object.values(state.projectAccessReducer.instances).find(
1532
1525
  (projectAccess) => projectAccess.user === user.id
@@ -1541,8 +1534,7 @@ var __publicField = (obj, key, value) => {
1541
1534
  };
1542
1535
  const projectAccessReducer = projectAccessSlice.reducer;
1543
1536
  const initialState$m = {
1544
- projects: {},
1545
- activeProjectId: null
1537
+ projects: {}
1546
1538
  };
1547
1539
  const projectSlice = toolkit.createSlice({
1548
1540
  name: "projects",
@@ -1556,19 +1548,9 @@ var __publicField = (obj, key, value) => {
1556
1548
  });
1557
1549
  state.projects = projectsMap;
1558
1550
  },
1559
- setActiveProjectId: (state, action) => {
1560
- state.activeProjectId = action.payload;
1561
- },
1562
- updateOrCreateProject: (state, action) => {
1551
+ updateProject: (state, action) => {
1563
1552
  state.projects[action.payload.id] = action.payload;
1564
1553
  },
1565
- // Takes a list of Projects and updates existing ones to match the payload, or adds them
1566
- // to the store if they are not already present
1567
- updateOrCreateProjects: (state, action) => {
1568
- action.payload.forEach((project) => {
1569
- state.projects[project.id] = project;
1570
- });
1571
- },
1572
1554
  deleteProject: (state, action) => {
1573
1555
  delete state.projects[action.payload.id];
1574
1556
  },
@@ -1578,52 +1560,12 @@ var __publicField = (obj, key, value) => {
1578
1560
  } else {
1579
1561
  throw new Error("Accept project invite: user is not in this project");
1580
1562
  }
1581
- },
1582
- addActiveProjectIssuesCount: (state, action) => {
1583
- if (!state.activeProjectId || !(state.activeProjectId in state.projects)) {
1584
- throw new Error("Update issues count: no active project");
1585
- }
1586
- if (!state.projects[state.activeProjectId].issues_count) {
1587
- state.projects[state.activeProjectId].issues_count = action.payload;
1588
- } else {
1589
- state.projects[state.activeProjectId].issues_count += action.payload;
1590
- }
1591
- },
1592
- addActiveProjectFormSubmissionsCount: (state, action) => {
1593
- if (state.activeProjectId && state.activeProjectId in state.projects) {
1594
- if (!state.projects[state.activeProjectId].form_submissions_count) {
1595
- state.projects[state.activeProjectId].form_submissions_count = action.payload;
1596
- } else {
1597
- state.projects[state.activeProjectId].form_submissions_count += action.payload;
1598
- }
1599
- } else {
1600
- throw new Error("Update form submissions count: no active project");
1601
- }
1602
1563
  }
1603
1564
  }
1604
1565
  });
1605
- const {
1606
- setProjects,
1607
- updateOrCreateProject,
1608
- updateOrCreateProjects: addOrReplaceProjects,
1609
- setActiveProjectId,
1610
- deleteProject,
1611
- acceptProjectInvite,
1612
- addActiveProjectIssuesCount,
1613
- addActiveProjectFormSubmissionsCount
1614
- } = projectSlice.actions;
1566
+ const { setProjects, updateProject, deleteProject, acceptProjectInvite } = projectSlice.actions;
1615
1567
  const projectReducer = projectSlice.reducer;
1616
1568
  const selectProjectMapping = (state) => state.projectReducer.projects;
1617
- const selectActiveProjectId = (state) => state.projectReducer.activeProjectId;
1618
- const selectActiveProject = toolkit.createSelector(
1619
- [selectProjectMapping, selectActiveProjectId],
1620
- (projectsMapping, activeprojectId) => {
1621
- if (activeprojectId === null) {
1622
- return null;
1623
- }
1624
- return projectsMapping[activeprojectId] ?? null;
1625
- }
1626
- );
1627
1569
  const selectProjectById = (id) => (state) => {
1628
1570
  return state.projectReducer.projects[id];
1629
1571
  };
@@ -1798,39 +1740,26 @@ var __publicField = (obj, key, value) => {
1798
1740
  const selectLatestRetryTime = (state) => state.outboxReducer.latestRetryTime;
1799
1741
  const { enqueueRequest, markForDeletion, markAsDeleted, _setLatestRetryTime } = outboxSlice.actions;
1800
1742
  const outboxReducer = outboxSlice.reducer;
1801
- const initialState$j = {
1802
- projectFiles: {},
1743
+ const projectFileModelAdapter = createModelAdapter((projectFile) => projectFile.offline_id);
1744
+ const initialState$j = projectFileModelAdapter.getInitialState({
1803
1745
  activeProjectFileId: null,
1804
1746
  isImportingProjectFile: false
1805
- };
1747
+ });
1806
1748
  const projectFileSlice = toolkit.createSlice({
1807
1749
  name: "projectFiles",
1808
1750
  initialState: initialState$j,
1809
1751
  extraReducers: (builder) => builder.addCase("RESET", (state) => Object.assign(state, initialState$j)),
1810
1752
  reducers: {
1811
- addOrReplaceProjectFiles: (state, action) => {
1812
- for (let fileObj of action.payload) {
1813
- let file = fileObj.file;
1814
- if (file.includes("+")) {
1815
- console.warn("Attempting to apply fix for image URL with '+' character:", file);
1816
- const parts = file.split("/");
1817
- if (parts.length < 2) {
1818
- throw new Error("Invalid URL: " + file);
1819
- }
1820
- const lastPart = encodeURIComponent(parts[parts.length - 1]);
1821
- file = parts.slice(0, -1).join("/") + "/" + lastPart;
1822
- console.warn("Fixed URL:", file);
1823
- fileObj = { ...fileObj, file };
1824
- }
1825
- state.projectFiles[fileObj.offline_id] = fileObj;
1826
- }
1827
- },
1828
- addOrReplaceProjectFile: (state, action) => {
1829
- if (!action.payload.project) {
1830
- throw new Error("ProjectFile has no project. A project must be set before storing.");
1831
- }
1832
- state.projectFiles[action.payload.offline_id] = action.payload;
1833
- },
1753
+ initializeProjectFiles: projectFileModelAdapter.initialize,
1754
+ setProjectFile: projectFileModelAdapter.setOne,
1755
+ setProjectFiles: projectFileModelAdapter.setMany,
1756
+ addProjectFile: projectFileModelAdapter.addOne,
1757
+ addProjectFiles: projectFileModelAdapter.addMany,
1758
+ updateProjectFile: projectFileModelAdapter.updateOne,
1759
+ updateProjectFiles: projectFileModelAdapter.updateMany,
1760
+ deleteProjectFile: projectFileModelAdapter.deleteOne,
1761
+ deleteProjectFiles: projectFileModelAdapter.deleteMany,
1762
+ // TODO: move following to /web
1834
1763
  setIsImportingProjectFile: (state, action) => {
1835
1764
  state.isImportingProjectFile = action.payload;
1836
1765
  },
@@ -1839,55 +1768,46 @@ var __publicField = (obj, key, value) => {
1839
1768
  if (!activeProjectFileId) {
1840
1769
  throw new Error("Tried to save bounds for active project file, but no active project file was set.");
1841
1770
  }
1842
- if (!state.projectFiles[activeProjectFileId]) {
1771
+ if (!state.instances[activeProjectFileId]) {
1843
1772
  throw new Error(
1844
1773
  `Tried to save bounds for active project file, but project file with ID ${activeProjectFileId}
1845
1774
  doesn't exist.`
1846
1775
  );
1847
1776
  }
1848
- state.projectFiles[activeProjectFileId].bounds = action.payload;
1777
+ state.instances[activeProjectFileId].bounds = action.payload;
1849
1778
  },
1850
- // TODO: Move to MapContext. Should not be persisted.
1851
1779
  setActiveProjectFileId: (state, action) => {
1852
1780
  state.activeProjectFileId = action.payload;
1853
1781
  },
1854
- removeProjectFile: (state, action) => {
1855
- delete state.projectFiles[action.payload];
1856
- },
1857
- removeProjectFilesOfProject: (state, action) => {
1858
- const filesToDelete = Object.values(state.projectFiles).filter((file) => file.project === action.payload);
1859
- for (const file of filesToDelete) {
1860
- delete state.projectFiles[file.offline_id];
1861
- }
1862
- },
1863
1782
  resetProjectFileObjectUrls: (state, ..._args) => {
1864
- for (const key in state.projectFiles) {
1865
- delete state.projectFiles[key].objectURL;
1783
+ for (const key in state.instances) {
1784
+ delete state.instances[key].objectURL;
1866
1785
  }
1867
1786
  }
1868
1787
  }
1869
1788
  });
1870
1789
  const {
1871
- addOrReplaceProjectFiles,
1872
- addOrReplaceProjectFile,
1790
+ initializeProjectFiles,
1791
+ setProjectFile,
1792
+ setProjectFiles,
1793
+ addProjectFile,
1794
+ addProjectFiles,
1795
+ updateProjectFile,
1796
+ updateProjectFiles,
1797
+ deleteProjectFile,
1798
+ deleteProjectFiles,
1799
+ // TODO: move following to /web
1873
1800
  setIsImportingProjectFile,
1874
1801
  setActiveProjectFileId,
1875
1802
  saveActiveProjectFileBounds,
1876
- removeProjectFile,
1877
- removeProjectFilesOfProject,
1878
1803
  resetProjectFileObjectUrls
1879
1804
  } = projectFileSlice.actions;
1880
- const selectProjectFileMapping = (state) => state.projectFileReducer.projectFiles;
1881
- const selectProjectFiles = toolkit.createSelector(
1882
- [selectProjectFileMapping, selectActiveProjectId],
1883
- (mapping, activeProjectId) => {
1884
- return fallbackToEmptyArray(
1885
- Object.values(mapping).filter((file) => file.project === activeProjectId).sort((a, b) => a.z_index - b.z_index)
1886
- );
1887
- }
1888
- );
1805
+ const selectProjectFileMapping = (state) => state.projectFileReducer.instances;
1806
+ const selectProjectFiles = toolkit.createSelector([selectProjectFileMapping], (mapping) => {
1807
+ return fallbackToEmptyArray(Object.values(mapping).sort((a, b) => a.z_index - b.z_index));
1808
+ });
1889
1809
  const selectProjectFileById = (id) => (state) => {
1890
- return state.projectFileReducer.projectFiles[id];
1810
+ return state.projectFileReducer.instances[id];
1891
1811
  };
1892
1812
  const selectActiveProjectFileId = (state) => state.projectFileReducer.activeProjectFileId;
1893
1813
  const selectIsImportingProjectFile = (state) => state.projectFileReducer.isImportingProjectFile;
@@ -4757,7 +4677,6 @@ var __publicField = (obj, key, value) => {
4757
4677
  created_by: createdBy
4758
4678
  });
4759
4679
  this.dispatch(addIssue(offlineIssue));
4760
- this.dispatch(addActiveProjectIssuesCount(1));
4761
4680
  const promise = this.enqueueRequest({
4762
4681
  description: "Create issue",
4763
4682
  method: HttpMethod.POST,
@@ -4774,7 +4693,6 @@ var __publicField = (obj, key, value) => {
4774
4693
  this.dispatch(updateIssue(result));
4775
4694
  }).catch((error) => {
4776
4695
  this.dispatch(deleteIssue(offlineIssue.offline_id));
4777
- this.dispatch(addActiveProjectIssuesCount(-1));
4778
4696
  throw error;
4779
4697
  });
4780
4698
  return [offlineIssue, promise];
@@ -4890,7 +4808,6 @@ var __publicField = (obj, key, value) => {
4890
4808
  issueAssociationsRecord[issueAssociation.offline_id] = issueAssociation;
4891
4809
  const issueAssociations = Object.values(issueAssociationsRecord);
4892
4810
  this.dispatch(deleteIssue(id));
4893
- this.dispatch(addActiveProjectIssuesCount(-1));
4894
4811
  if (attachmentsOfIssue.length > 0)
4895
4812
  this.dispatch(deleteIssueAttachments(attachmentsOfIssue.map(({ offline_id }) => offline_id)));
4896
4813
  if (updatesOfIssue.length > 0)
@@ -4911,7 +4828,6 @@ var __publicField = (obj, key, value) => {
4911
4828
  this.dispatch(addIssue(backup));
4912
4829
  this.dispatch(addIssueAttachments(attachmentsOfIssue));
4913
4830
  this.dispatch(addIssueUpdates(updatesOfIssue));
4914
- this.dispatch(addActiveProjectIssuesCount(1));
4915
4831
  this.dispatch(addFormSubmissions(formSubmissionsOfIssue));
4916
4832
  this.dispatch(addIssueAssociations(issueAssociations));
4917
4833
  throw e;
@@ -5070,7 +4986,7 @@ var __publicField = (obj, key, value) => {
5070
4986
  blocks: [file.offline_id]
5071
4987
  });
5072
4988
  void promise.then((result) => {
5073
- this.dispatch(addOrReplaceProjectFile(result));
4989
+ this.dispatch(updateProjectFile(result));
5074
4990
  });
5075
4991
  return promise;
5076
4992
  }
@@ -5082,7 +4998,7 @@ var __publicField = (obj, key, value) => {
5082
4998
  if (!activeProjectFileId) {
5083
4999
  throw new Error("No active project file");
5084
5000
  }
5085
- const activeProjectFile = state.projectFileReducer.projectFiles[activeProjectFileId];
5001
+ const activeProjectFile = state.projectFileReducer.instances[activeProjectFileId];
5086
5002
  if (!activeProjectFile) {
5087
5003
  throw new Error("No active project file");
5088
5004
  }
@@ -5121,7 +5037,7 @@ var __publicField = (obj, key, value) => {
5121
5037
  return this.enqueueRequest(requestDetails2);
5122
5038
  });
5123
5039
  void promise.then((result) => {
5124
- this.dispatch(addOrReplaceProjectFile(result));
5040
+ this.dispatch(updateProjectFile(result));
5125
5041
  });
5126
5042
  this.dispatch(saveActiveProjectFileBounds);
5127
5043
  this.dispatch(setActiveProjectFileId(null));
@@ -5129,7 +5045,7 @@ var __publicField = (obj, key, value) => {
5129
5045
  return [activeProjectFile, promise];
5130
5046
  }
5131
5047
  delete(projectFileId) {
5132
- this.dispatch(removeProjectFile(projectFileId));
5048
+ this.dispatch(deleteProjectFile(projectFileId));
5133
5049
  return this.enqueueRequest({
5134
5050
  method: HttpMethod.DELETE,
5135
5051
  url: `/projects/files/${projectFileId}`,
@@ -5145,8 +5061,7 @@ var __publicField = (obj, key, value) => {
5145
5061
  blockers: [],
5146
5062
  blocks: []
5147
5063
  });
5148
- this.dispatch(addOrReplaceProjectFiles([]));
5149
- this.dispatch(addOrReplaceProjectFiles(result));
5064
+ this.dispatch(initializeProjectFiles(result));
5150
5065
  }
5151
5066
  }
5152
5067
  class ProjectAttachmentService extends BaseAttachmentService {
@@ -5202,7 +5117,7 @@ var __publicField = (obj, key, value) => {
5202
5117
  if (!project.bounds && !project.canvas_bounds) {
5203
5118
  throw new Error("Project must either have bounds or canvas_bounds set");
5204
5119
  }
5205
- this.dispatch(updateOrCreateProject(project));
5120
+ this.dispatch(updateProject(project));
5206
5121
  return await this.enqueueRequest({
5207
5122
  description: "Update project",
5208
5123
  method: HttpMethod.PATCH,
@@ -5224,7 +5139,7 @@ var __publicField = (obj, key, value) => {
5224
5139
  throw new Error("Expected project to exist");
5225
5140
  }
5226
5141
  const filesToDelete = selectProjectFiles(state).filter((file) => file.project === projectId);
5227
- this.dispatch(removeProjectFilesOfProject(project.id));
5142
+ this.dispatch(deleteProjectFiles(filesToDelete.map(({ offline_id }) => offline_id)));
5228
5143
  const attachmentsOfProject = selectAttachmentsOfProject(project.id)(state);
5229
5144
  this.dispatch(deleteProjectAttachments(attachmentsOfProject.map(({ offline_id }) => offline_id)));
5230
5145
  const projectAccesses = selectProjectAccesses(state);
@@ -5247,7 +5162,7 @@ var __publicField = (obj, key, value) => {
5247
5162
  } catch (e) {
5248
5163
  this.dispatch(setProjects(Object.values(projects)));
5249
5164
  this.dispatch(initializeProjectAccesses(Object.values(projectAccesses)));
5250
- this.dispatch(addOrReplaceProjectFiles(filesToDelete));
5165
+ this.dispatch(addProjectFiles(filesToDelete));
5251
5166
  this.dispatch(setProjectAttachments(attachmentsOfProject));
5252
5167
  this.dispatch({ type: "rehydrated/setRehydrated", payload: true });
5253
5168
  if (license) {
@@ -5742,12 +5657,10 @@ var __publicField = (obj, key, value) => {
5742
5657
  files
5743
5658
  );
5744
5659
  promise.then((result) => {
5745
- this.dispatch(addActiveProjectFormSubmissionsCount(1));
5746
5660
  this.dispatch(setFormSubmission(result));
5747
5661
  return result;
5748
5662
  }).catch(() => {
5749
5663
  this.dispatch(deleteFormSubmission(offlineSubmission.offline_id));
5750
- this.dispatch(addActiveProjectFormSubmissionsCount(-1));
5751
5664
  });
5752
5665
  return [offlineSubmission, offlineFormSubmissionAttachments, promise, attachmentsPromise];
5753
5666
  }
@@ -5914,7 +5827,6 @@ var __publicField = (obj, key, value) => {
5914
5827
  }
5915
5828
  const submissionAttachments = selectAttachmentsOfFormSubmission(id)(state);
5916
5829
  this.dispatch(deleteFormSubmission(id));
5917
- this.dispatch(addActiveProjectFormSubmissionsCount(-1));
5918
5830
  this.dispatch(deleteFormSubmissionAttachments(submissionAttachments.map((x) => x.offline_id)));
5919
5831
  try {
5920
5832
  return await this.enqueueRequest({
@@ -5925,7 +5837,6 @@ var __publicField = (obj, key, value) => {
5925
5837
  blocks: []
5926
5838
  });
5927
5839
  } catch (e) {
5928
- this.dispatch(addActiveProjectFormSubmissionsCount(1));
5929
5840
  this.dispatch(addFormSubmission(submissionToBeDeleted));
5930
5841
  this.dispatch(addFormSubmissionAttachments(submissionAttachments));
5931
5842
  throw e;
@@ -6802,15 +6713,14 @@ var __publicField = (obj, key, value) => {
6802
6713
  }
6803
6714
  }
6804
6715
  class AgentService extends BaseApiService {
6805
- async startConversation(prompt) {
6806
- const activeProjectId = this.client.store.getState().projectReducer.activeProjectId;
6716
+ async startConversation(prompt, projectId) {
6807
6717
  return this.enqueueRequest({
6808
6718
  description: "Start agent conversation",
6809
6719
  method: HttpMethod.POST,
6810
6720
  url: "/agents/prompt/",
6811
6721
  payload: {
6812
6722
  prompt,
6813
- active_project: activeProjectId
6723
+ active_project: projectId
6814
6724
  },
6815
6725
  blockers: ["prompt"],
6816
6726
  blocks: ["prompt"]
@@ -6819,21 +6729,14 @@ var __publicField = (obj, key, value) => {
6819
6729
  return response;
6820
6730
  });
6821
6731
  }
6822
- /**
6823
- * Prompt the agent with a message.
6824
- * @param prompt The message to prompt the agent with.
6825
- * @param conversationId If continuing an existing message, the UUID of that conversation.
6826
- */
6827
- async continueConversation(prompt, conversationId) {
6828
- const { store } = this.client;
6829
- const activeProjectId = store.getState().projectReducer.activeProjectId;
6732
+ async continueConversation(prompt, conversationId, projectId) {
6830
6733
  return this.enqueueRequest({
6831
6734
  description: "Prompt agent",
6832
6735
  method: HttpMethod.POST,
6833
6736
  url: "/agents/prompt/",
6834
6737
  payload: {
6835
6738
  prompt,
6836
- active_project: activeProjectId
6739
+ active_project: projectId
6837
6740
  },
6838
6741
  blockers: ["prompt"],
6839
6742
  blocks: ["prompt"],
@@ -7336,8 +7239,6 @@ var __publicField = (obj, key, value) => {
7336
7239
  exports2._selectLatestFormRevision = _selectLatestFormRevision;
7337
7240
  exports2._setLatestRetryTime = _setLatestRetryTime;
7338
7241
  exports2.acceptProjectInvite = acceptProjectInvite;
7339
- exports2.addActiveProjectFormSubmissionsCount = addActiveProjectFormSubmissionsCount;
7340
- exports2.addActiveProjectIssuesCount = addActiveProjectIssuesCount;
7341
7242
  exports2.addAsset = addAsset;
7342
7243
  exports2.addAssetAttachment = addAssetAttachment;
7343
7244
  exports2.addAssetAttachments = addAssetAttachments;
@@ -7380,11 +7281,10 @@ var __publicField = (obj, key, value) => {
7380
7281
  exports2.addIssueUpdates = addIssueUpdates;
7381
7282
  exports2.addIssues = addIssues;
7382
7283
  exports2.addLicenses = addLicenses;
7383
- exports2.addOrReplaceProjectFile = addOrReplaceProjectFile;
7384
- exports2.addOrReplaceProjectFiles = addOrReplaceProjectFiles;
7385
- exports2.addOrReplaceProjects = addOrReplaceProjects;
7386
7284
  exports2.addProjectAttachment = addProjectAttachment;
7387
7285
  exports2.addProjectAttachments = addProjectAttachments;
7286
+ exports2.addProjectFile = addProjectFile;
7287
+ exports2.addProjectFiles = addProjectFiles;
7388
7288
  exports2.addTeam = addTeam;
7389
7289
  exports2.addUsers = addUsers;
7390
7290
  exports2.addWorkspace = addWorkspace;
@@ -7458,6 +7358,8 @@ var __publicField = (obj, key, value) => {
7458
7358
  exports2.deleteProjectAccesses = deleteProjectAccesses;
7459
7359
  exports2.deleteProjectAttachment = deleteProjectAttachment;
7460
7360
  exports2.deleteProjectAttachments = deleteProjectAttachments;
7361
+ exports2.deleteProjectFile = deleteProjectFile;
7362
+ exports2.deleteProjectFiles = deleteProjectFiles;
7461
7363
  exports2.deleteTeam = deleteTeam;
7462
7364
  exports2.deleteWorkspace = deleteWorkspace;
7463
7365
  exports2.dequeue = dequeue;
@@ -7525,6 +7427,7 @@ var __publicField = (obj, key, value) => {
7525
7427
  exports2.initializeOrganizationAccesses = initializeOrganizationAccesses;
7526
7428
  exports2.initializeProjectAccesses = initializeProjectAccesses;
7527
7429
  exports2.initializeProjectAttachments = initializeProjectAttachments;
7430
+ exports2.initializeProjectFiles = initializeProjectFiles;
7528
7431
  exports2.initializeTeams = initializeTeams;
7529
7432
  exports2.initializeWorkspaces = initializeWorkspaces;
7530
7433
  exports2.isToday = isToday;
@@ -7573,8 +7476,6 @@ var __publicField = (obj, key, value) => {
7573
7476
  exports2.rehydratedSlice = rehydratedSlice;
7574
7477
  exports2.removeDocuments = removeDocuments;
7575
7478
  exports2.removeIssueType = removeIssueType;
7576
- exports2.removeProjectFile = removeProjectFile;
7577
- exports2.removeProjectFilesOfProject = removeProjectFilesOfProject;
7578
7479
  exports2.removeUser = removeUser;
7579
7480
  exports2.resetProjectFileObjectUrls = resetProjectFileObjectUrls;
7580
7481
  exports2.resetStore = resetStore;
@@ -7582,10 +7483,7 @@ var __publicField = (obj, key, value) => {
7582
7483
  exports2.saveActiveProjectFileBounds = saveActiveProjectFileBounds;
7583
7484
  exports2.selectAccessToken = selectAccessToken;
7584
7485
  exports2.selectActiveOrganizationAccess = selectActiveOrganizationAccess;
7585
- exports2.selectActiveProject = selectActiveProject;
7586
- exports2.selectActiveProjectAccess = selectActiveProjectAccess;
7587
7486
  exports2.selectActiveProjectFileId = selectActiveProjectFileId;
7588
- exports2.selectActiveProjectId = selectActiveProjectId;
7589
7487
  exports2.selectActiveStatusLicenses = selectActiveStatusLicenses;
7590
7488
  exports2.selectAllDocumentAttachments = selectAllDocumentAttachments;
7591
7489
  exports2.selectAllProjectAttachments = selectAllProjectAttachments;
@@ -7758,7 +7656,6 @@ var __publicField = (obj, key, value) => {
7758
7656
  exports2.selectWorkspaceMapping = selectWorkspaceMapping;
7759
7657
  exports2.selectWorkspaces = selectWorkspaces;
7760
7658
  exports2.setActiveProjectFileId = setActiveProjectFileId;
7761
- exports2.setActiveProjectId = setActiveProjectId;
7762
7659
  exports2.setAsset = setAsset;
7763
7660
  exports2.setAssetAttachment = setAssetAttachment;
7764
7661
  exports2.setAssetAttachments = setAssetAttachments;
@@ -7798,6 +7695,8 @@ var __publicField = (obj, key, value) => {
7798
7695
  exports2.setProfilePicture = setProfilePicture;
7799
7696
  exports2.setProjectAttachment = setProjectAttachment;
7800
7697
  exports2.setProjectAttachments = setProjectAttachments;
7698
+ exports2.setProjectFile = setProjectFile;
7699
+ exports2.setProjectFiles = setProjectFiles;
7801
7700
  exports2.setProjects = setProjects;
7802
7701
  exports2.setRehydrated = setRehydrated;
7803
7702
  exports2.setTeam = setTeam;
@@ -7847,11 +7746,13 @@ var __publicField = (obj, key, value) => {
7847
7746
  exports2.updateIssueAttachments = updateIssueAttachments;
7848
7747
  exports2.updateIssueType = updateIssueType;
7849
7748
  exports2.updateLicense = updateLicense;
7850
- exports2.updateOrCreateProject = updateOrCreateProject;
7851
7749
  exports2.updateOrganizationAccess = updateOrganizationAccess;
7750
+ exports2.updateProject = updateProject;
7852
7751
  exports2.updateProjectAccess = updateProjectAccess;
7853
7752
  exports2.updateProjectAttachment = updateProjectAttachment;
7854
7753
  exports2.updateProjectAttachments = updateProjectAttachments;
7754
+ exports2.updateProjectFile = updateProjectFile;
7755
+ exports2.updateProjectFiles = updateProjectFiles;
7855
7756
  exports2.updateTeam = updateTeam;
7856
7757
  exports2.updateWorkspace = updateWorkspace;
7857
7758
  exports2.userReducer = userReducer;