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
| Parameter | Type | Description |
|---|---|---|
teamName | string | Name of the team to share with |
projects | ProjectFeatureCollection | FeatureCollection 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]);