-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into PM-9022-scaffold-the-extension-and-build-pip…
…eline
- Loading branch information
Showing
35 changed files
with
429 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
apps/desktop/native-messaging-test-runner/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/web/src/app/admin-console/organizations/core/services/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./group/group.service"; | ||
export * from "./group/group-api.service"; | ||
export * from "./user-admin.service"; |
10 changes: 10 additions & 0 deletions
10
apps/web/src/app/admin-console/organizations/core/views/add-edit-group-detail.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { CollectionAccessSelectionView } from "@bitwarden/admin-console/common"; | ||
|
||
export interface AddEditGroupDetail { | ||
id: string; | ||
organizationId: string; | ||
name: string; | ||
externalId: string; | ||
collections: CollectionAccessSelectionView[]; | ||
members: string[]; | ||
} |
20 changes: 20 additions & 0 deletions
20
apps/web/src/app/admin-console/organizations/core/views/group-details.view.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { CollectionAccessSelectionView } from "@bitwarden/admin-console/common"; | ||
import { View } from "@bitwarden/common/models/view/view"; | ||
|
||
import { GroupDetailsResponse } from "../services/group/responses/group.response"; | ||
|
||
export class GroupDetailsView implements View { | ||
id: string; | ||
organizationId: string; | ||
name: string; | ||
externalId: string; | ||
collections: CollectionAccessSelectionView[] = []; | ||
|
||
static fromResponse(response: GroupDetailsResponse): GroupDetailsView { | ||
const view: GroupDetailsView = Object.assign(new GroupDetailsView(), response); | ||
|
||
view.collections = response.collections.map((c) => new CollectionAccessSelectionView(c)); | ||
|
||
return view; | ||
} | ||
} |
13 changes: 2 additions & 11 deletions
13
apps/web/src/app/admin-console/organizations/core/views/group.view.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
import { CollectionAccessSelectionView } from "@bitwarden/admin-console/common"; | ||
import { View } from "@bitwarden/common/models/view/view"; | ||
|
||
import { GroupDetailsResponse, GroupResponse } from "../services/group/responses/group.response"; | ||
import { GroupResponse } from "../services/group/responses/group.response"; | ||
|
||
export class GroupView implements View { | ||
id: string; | ||
organizationId: string; | ||
name: string; | ||
externalId: string; | ||
collections: CollectionAccessSelectionView[] = []; | ||
members: string[] = []; | ||
|
||
static fromResponse(response: GroupResponse): GroupView { | ||
const view: GroupView = Object.assign(new GroupView(), response) as GroupView; | ||
|
||
if (response instanceof GroupDetailsResponse && response.collections != undefined) { | ||
view.collections = response.collections.map((c) => new CollectionAccessSelectionView(c)); | ||
} | ||
|
||
return view; | ||
return Object.assign(new GroupView(), response); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
apps/web/src/app/admin-console/organizations/core/views/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from "./group.view"; | ||
export * from "./group-details.view"; | ||
export * from "./organization-user.view"; | ||
export * from "./organization-user-admin-view"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.