Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add createUnionGroup #649

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

feat: add createUnionGroup #649

wants to merge 3 commits into from

Conversation

waddaboo
Copy link
Collaborator

Description

This PR introduces a new feature to create a union group from multiple groups.

This union group contains the group details of your created group, combined with the group members from the multiple groups ids provided.

Sample usage:
API

POST http://localhost:3000/groups/union
const groupCreationDetail = {
   name: "Union group 1",
   description: "This is a group description"
   treeDepth: 16,
   fingerprintDuration: 3600,
   groupIds: ["GroupId1", "GroupId2"]
}

const apiKey = "your-api-key"
await this.groupsService.createUnionGroupWithApiKey(groupCreationDetail, apiKey)

const adminId = "admin-id"
await this.groupsService.createUnionGroupManually(groupCreationDetail, adminId)

API SDK

const groupCreationDetail = {
   name: "Union group 1",
   description: "This is a group description"
   treeDepth: 16,
   fingerprintDuration: 3600,
   groupIds: ["GroupId1", "GroupId2"]
}

const apiKey = "your-api-key"

await apiSdk.createUnionGroup(groupCreationDetail, apiKey)

Related Issue

Closes #632

Does this introduce a breaking change?

  • Yes
  • No

@waddaboo waddaboo requested a review from vplasencia December 19, 2024 08:46
Copy link

vercel bot commented Dec 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bandada-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 8:46am
bandada-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 8:46am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant