Skip to content

Commit

Permalink
Added workspace id to v3 sdk (#134)
Browse files Browse the repository at this point in the history
* Added workspace id to v3 sdk

* use init setter
  • Loading branch information
JR-Morgan authored Oct 15, 2024
1 parent 3b859ba commit 8f8be74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Speckle.Sdk/Api/GraphQL/Models/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ public sealed class Project
public Model model { get; init; }
public List<ModelsTreeItem> modelChildrenTree { get; init; }
public ResourceCollection<ModelsTreeItem> modelsTree { get; init; }

public string workspaceId { get; init; }
}
5 changes: 5 additions & 0 deletions src/Speckle.Sdk/Api/GraphQL/Resources/ProjectResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ query Project($projectId: String!) {
createdAt
updatedAt
sourceApps
workspaceId
}
}
""";
Expand Down Expand Up @@ -170,6 +171,7 @@ query ProjectGetWithTeam($projectId: String!) {
role
}
}
workspaceId
}
}
""";
Expand Down Expand Up @@ -201,6 +203,7 @@ mutation ProjectCreate($input: ProjectCreateInput) {
createdAt
updatedAt
sourceApps
workspaceId
}
}
}
Expand Down Expand Up @@ -232,6 +235,7 @@ mutation ProjectUpdate($input: ProjectUpdateInput!) {
role
createdAt
updatedAt
workspaceId
}
}
}
Expand Down Expand Up @@ -323,6 +327,7 @@ mutation ProjectUpdateRole($input: ProjectUpdateRoleInput!) {
role
}
}
workspaceId
}
}
}
Expand Down

0 comments on commit 8f8be74

Please sign in to comment.