1
+ import { AllProjectsDataExport , ProjectExportDataV1 } from 'zod-models'
1
2
import constructProjectDataFetchers from '../api/projectDataFetchers'
2
3
import ProjectsZomeApi from '../api/projectsApi'
3
4
import { getAppWs } from '../hcWebsockets'
4
5
import { RootState } from '../redux/reducer'
5
6
import { ProjectMeta } from '../types'
6
7
import { ActionHashB64 , CellIdString } from '../types/shared'
7
8
import { cellIdFromString } from '../utils'
8
- import { AllProjectsDataExport } from './model/allProjectsDataExport'
9
- import { ProjectExportDataV1 } from './model/projectExportData'
10
9
11
10
export type ExportType = 'csv' | 'json'
12
11
@@ -31,7 +30,7 @@ export async function internalExportProjectsData(
31
30
store : any ,
32
31
toVersion : string ,
33
32
onStep : ( completed : number , toComplete : number ) => void ,
34
- integrityVersion : string
33
+ integrityVersion : number
35
34
) : Promise < AllProjectsDataExport | null > {
36
35
const initialState : RootState = store . getState ( )
37
36
@@ -105,6 +104,7 @@ export async function internalExportProjectsData(
105
104
export default async function exportProjectsData (
106
105
store : any ,
107
106
toVersion : string ,
107
+ fromIntegrityVersion : number ,
108
108
onStep : ( completed : number , toComplete : number ) => void
109
109
) {
110
110
return internalExportProjectsData (
@@ -114,8 +114,7 @@ export default async function exportProjectsData(
114
114
store ,
115
115
toVersion ,
116
116
onStep ,
117
- '8' // TODO: replace with INTEGRITY_VERSION_NUMBER
118
- // INTEGRITY_VERSION_NUMBER
117
+ fromIntegrityVersion
119
118
)
120
119
}
121
120
0 commit comments