1
+ import { ProjectExportDataV1 } from 'zod-models'
1
2
import ProjectsZomeApi from '../../api/projectsApi'
2
3
import { getAppWs } from '../../hcWebsockets'
3
4
import { createConnection } from '../../redux/persistent/projects/connections/actions'
@@ -15,7 +16,6 @@ import {
15
16
EntryPoint ,
16
17
} from '../../types'
17
18
import { CellIdString } from '../../types/shared'
18
- import { ProjectExportDataV1 } from '../export'
19
19
import {
20
20
cloneDataSet ,
21
21
cloneTag ,
@@ -30,7 +30,7 @@ export async function internalCreateActionHashMapAndImportProjectData(
30
30
projectsCellIdString : CellIdString ,
31
31
dispatch : any ,
32
32
projectsZomeApi : ProjectsZomeApi ,
33
- _cloneDataSet : typeof cloneDataSet
33
+ iCloneDataSet : typeof cloneDataSet
34
34
) {
35
35
/*
36
36
outcomes, connections,
@@ -42,7 +42,7 @@ export async function internalCreateActionHashMapAndImportProjectData(
42
42
43
43
// TAGS
44
44
// do tags because outcomes reference them
45
- const tagActionHashMap = await _cloneDataSet < Tag > (
45
+ const tagActionHashMap = await iCloneDataSet < Tag > (
46
46
projectData . tags ,
47
47
cloneTag ,
48
48
projectsZomeApi . tag . create ,
@@ -51,7 +51,7 @@ export async function internalCreateActionHashMapAndImportProjectData(
51
51
projectsCellIdString
52
52
)
53
53
54
- const outcomeActionHashMap = await _cloneDataSet < Outcome > (
54
+ const outcomeActionHashMap = await iCloneDataSet < Outcome > (
55
55
projectData . outcomes ,
56
56
// closure in the depended upon hashmap
57
57
cloneOutcome ( tagActionHashMap ) ,
@@ -61,7 +61,7 @@ export async function internalCreateActionHashMapAndImportProjectData(
61
61
projectsCellIdString
62
62
)
63
63
64
- const connectionsActionHashMap = await _cloneDataSet < Connection > (
64
+ const connectionsActionHashMap = await iCloneDataSet < Connection > (
65
65
projectData . connections ,
66
66
// closure in the depended upon
67
67
cloneConnection ( outcomeActionHashMap ) ,
@@ -71,7 +71,7 @@ export async function internalCreateActionHashMapAndImportProjectData(
71
71
projectsCellIdString
72
72
)
73
73
74
- const outcomeMembersActionHashMap = await _cloneDataSet < OutcomeMember > (
74
+ const outcomeMembersActionHashMap = await iCloneDataSet < OutcomeMember > (
75
75
projectData . outcomeMembers ,
76
76
// closure in the depended upon
77
77
cloneData < OutcomeMember > ( outcomeActionHashMap ) ,
@@ -81,7 +81,7 @@ export async function internalCreateActionHashMapAndImportProjectData(
81
81
projectsCellIdString
82
82
)
83
83
84
- const outcomeCommentActionHashMap = await _cloneDataSet < OutcomeComment > (
84
+ const outcomeCommentActionHashMap = await iCloneDataSet < OutcomeComment > (
85
85
projectData . outcomeComments ,
86
86
// closure in the depended upon
87
87
cloneData < OutcomeComment > ( outcomeActionHashMap ) ,
@@ -91,7 +91,7 @@ export async function internalCreateActionHashMapAndImportProjectData(
91
91
projectsCellIdString
92
92
)
93
93
94
- const entryPointActionHashMap = await _cloneDataSet < EntryPoint > (
94
+ const entryPointActionHashMap = await iCloneDataSet < EntryPoint > (
95
95
projectData . entryPoints ,
96
96
// closure in the depended upon
97
97
cloneData < EntryPoint > ( outcomeActionHashMap ) ,
0 commit comments