mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
[SM-288] Rename requests and responses to follow naming convention (#3806)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { ImportDirectoryRequestGroup } from "./import-directory-request-group";
|
||||
|
||||
export class OrganizationImportGroupRequest {
|
||||
name: string;
|
||||
externalId: string;
|
||||
memberExternalIds: string[];
|
||||
|
||||
constructor(model: Required<OrganizationImportGroupRequest> | ImportDirectoryRequestGroup) {
|
||||
this.name = model.name;
|
||||
this.externalId = model.externalId;
|
||||
|
||||
if (model instanceof ImportDirectoryRequestGroup) {
|
||||
this.memberExternalIds = model.users;
|
||||
} else {
|
||||
this.memberExternalIds = model.memberExternalIds;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user