@@ -84,10 +84,9 @@ type APIInterface interface {
84
84
TrackEvent (ctx context.Context , event * RemoteTrackMessage ) (err error )
85
85
GetSupportedWorkspaceClasses (ctx context.Context ) (res []* SupportedWorkspaceClass , err error )
86
86
87
- CreateTeam (ctx context.Context , teamName string ) (* Team , error )
88
- GetTeamMembers (ctx context.Context , teamID string ) ([]* TeamMemberInfo , error )
89
- JoinTeam (ctx context.Context , teamID string ) (* Team , error )
90
- GetGenericInvite (ctx context.Context , teamID string ) (* TeamMembershipInvite , error )
87
+ CreateTeam (ctx context.Context , params string ) (* Team , error )
88
+ GetTeamMembers (ctx context.Context , params string ) ([]* TeamMemberInfo , error )
89
+ JoinTeam (ctx context.Context , params string ) (* Team , error )
91
90
92
91
InstanceUpdates (ctx context.Context , instanceID string ) (<- chan * WorkspaceInstance , error )
93
92
}
@@ -209,15 +208,6 @@ const (
209
208
// FunctionGetSupportedWorkspaceClasses is the name of the getSupportedWorkspaceClasses function
210
209
FunctionGetSupportedWorkspaceClasses FunctionName = "getSupportedWorkspaceClasses"
211
210
212
- // FunctionCreateTeam is the name of the createTeam function
213
- FunctionCreateTeam FunctionName = "createTeam"
214
- // FunctionJoinTeam is the name of the joinTeam function
215
- FunctionJoinTeam FunctionName = "joinTeam"
216
- // FunctionGetTeamMembers is the name of the getTeamMembers function
217
- FunctionGetTeamMembers FunctionName = "getTeamMembers"
218
- // FunctionGetGenericInvite is the name of the getGenericInvite function
219
- FunctionGetGenericInvite FunctionName = "getGenericInvite"
220
-
221
211
// FunctionOnInstanceUpdate is the name of the onInstanceUpdate callback function
222
212
FunctionOnInstanceUpdate = "onInstanceUpdate"
223
213
)
@@ -1402,7 +1392,7 @@ func (gp *APIoverJSONRPC) CreateTeam(ctx context.Context, teamName string) (res
1402
1392
return
1403
1393
}
1404
1394
_params := []interface {}{teamName }
1405
- err = gp .C .Call (ctx , string ( FunctionCreateTeam ) , _params , & res )
1395
+ err = gp .C .Call (ctx , "createTeam" , _params , & res )
1406
1396
return
1407
1397
}
1408
1398
@@ -1412,7 +1402,7 @@ func (gp *APIoverJSONRPC) GetTeamMembers(ctx context.Context, teamID string) (re
1412
1402
return
1413
1403
}
1414
1404
_params := []interface {}{teamID }
1415
- err = gp .C .Call (ctx , string ( FunctionGetTeamMembers ) , _params , & res )
1405
+ err = gp .C .Call (ctx , "getTeamMembers" , _params , & res )
1416
1406
return
1417
1407
}
1418
1408
@@ -1422,17 +1412,7 @@ func (gp *APIoverJSONRPC) JoinTeam(ctx context.Context, inviteID string) (res *T
1422
1412
return
1423
1413
}
1424
1414
_params := []interface {}{inviteID }
1425
- err = gp .C .Call (ctx , string (FunctionJoinTeam ), _params , & res )
1426
- return
1427
- }
1428
-
1429
- func (gp * APIoverJSONRPC ) GetGenericInvite (ctx context.Context , teamID string ) (res * TeamMembershipInvite , err error ) {
1430
- if gp == nil {
1431
- err = errNotConnected
1432
- return
1433
- }
1434
- _params := []interface {}{teamID }
1435
- err = gp .C .Call (ctx , string (FunctionGetGenericInvite ), _params , & res )
1415
+ err = gp .C .Call (ctx , "joinTeam" , _params , & res )
1436
1416
return
1437
1417
}
1438
1418
@@ -2151,12 +2131,3 @@ type TeamMemberInfo struct {
2151
2131
Role TeamMemberRole `json:"role,omitempty"`
2152
2132
MemberSince string `json:"memberSince,omitempty"`
2153
2133
}
2154
-
2155
- type TeamMembershipInvite struct {
2156
- ID string `json:"id,omitempty"`
2157
- TeamID string `json:"teamId,omitempty"`
2158
- Role TeamMemberRole `json:"role,omitempty"`
2159
- CreationTime string `json:"creationTime,omitempty"`
2160
- InvalidationTime string `json:"invalidationTime,omitempty"`
2161
- InvitedEmail string `json:"invitedEmail,omitempty"`
2162
- }
0 commit comments