Skip to content

gi-nx


gi-nx / shareWithTeam

ts
const shareWithTeam: (teamName: string, projects: ProjectFeatureCollection) => Promise<{
  data: any;
  status: number;
}[]>;

Share projects with a team. Creates the team if it doesn't exist.

Parameters ​

ParameterTypeDescription
teamNamestringName of the team to share with
projectsProjectFeatureCollectionFeatureCollection of projects to share

Returns ​

Promise<{ data: any; status: number; }[]>

Promise that resolves when sharing is complete

Needs Permission ​

Example ​

typescript
const selectedProjects = { type: "FeatureCollection", features: [...] };
await rpc.invoke("shareWithTeam", ["Design Team", selectedProjects]);