Skip to content

Commit 62ce850

Browse files
committed
fix: add type aliases in sdk/mpr for backward compatibility
1 parent dbfb477 commit 62ce850

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

sdk/mpr/reader_types.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ import (
1414
"go.mongodb.org/mongo-driver/bson"
1515
)
1616

17+
// Type aliases for backward compatibility — these types are now defined in mdl/types.
18+
type (
19+
JavaAction = types.JavaAction
20+
JavaScriptAction = types.JavaScriptAction
21+
NavigationDocument = types.NavigationDocument
22+
NavigationProfile = types.NavigationProfile
23+
NavHomePage = types.NavHomePage
24+
NavRoleBasedHome = types.NavRoleBasedHome
25+
NavMenuItem = types.NavMenuItem
26+
NavOfflineEntity = types.NavOfflineEntity
27+
JsonStructure = types.JsonStructure
28+
JsonElement = types.JsonElement
29+
ImageCollection = types.ImageCollection
30+
Image = types.Image
31+
FolderInfo = types.FolderInfo
32+
UnitInfo = types.UnitInfo
33+
RawUnit = types.RawUnit
34+
ProjectVersion = types.ProjectVersion
35+
)
36+
1737
// ListJavaActions returns all Java actions in the project.
1838
func (r *Reader) ListJavaActions() ([]*types.JavaAction, error) {
1939
units, err := r.listUnitsByType("JavaActions$JavaAction")

0 commit comments

Comments
 (0)