-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hub-discussions): channel edit optional update parameter for V2 (#…
- Loading branch information
1 parent
f125f72
commit 2096bae
Showing
7 changed files
with
2,738 additions
and
479 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
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
11 changes: 11 additions & 0 deletions
11
packages/discussions/src/utils/channels/channel-to-dto-map.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,11 @@ | ||
import { IChannel, IUpdateChannel } from "@esri/hub-common"; | ||
|
||
// TODO: V2 use IUpdateChannel as param type when hoisted to hub.js from service | ||
export function dtoToChannel(dto: any): IChannel { | ||
const { channelAclDefinition, ...rest } = dto; | ||
|
||
return { | ||
...rest, | ||
channelAcl: channelAclDefinition, | ||
}; | ||
} |
Oops, something went wrong.