File tree Expand file tree Collapse file tree
infra/repositories/transformers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ export interface Collection {
1616 isMetadataBlockRoot : boolean
1717 isFacetRoot : boolean
1818 childCount : number
19+ theme ?: CollectionTheme
20+ }
21+
22+ export interface CollectionTheme {
23+ id : number
24+ logo : string
25+ tagline : string
26+ linkUrl : string
27+ linkColor : string
28+ textColor : string
29+ backgroundColor : string
30+ logoBackgroundColor ?: string
1931}
2032
2133export interface CollectionInputLevel {
Original file line number Diff line number Diff line change @@ -14,6 +14,18 @@ export interface CollectionPayload {
1414 isMetadataBlockRoot : boolean
1515 isFacetRoot : boolean
1616 childCount : number
17+ theme ?: CollectionThemePayload
18+ }
19+
20+ export interface CollectionThemePayload {
21+ id : number
22+ logo : string
23+ tagline : string
24+ linkUrl : string
25+ linkColor : string
26+ textColor : string
27+ backgroundColor : string
28+ logoBackgroundColor ?: string
1729}
1830
1931export interface CollectionInputLevelPayload {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { AxiosResponse } from 'axios'
33import {
44 CollectionContactPayload ,
55 CollectionInputLevelPayload ,
6- CollectionPayload
6+ CollectionPayload ,
77} from './CollectionPayload'
88import { transformPayloadToOwnerNode } from '../../../../core/infra/repositories/transformers/dvObjectOwnerNodeTransformer'
99import { CollectionFacet } from '../../../domain/models/CollectionFacet'
@@ -74,6 +74,9 @@ const transformPayloadToCollection = (collectionPayload: CollectionPayload): Col
7474 isFacetRoot : collectionPayload . isFacetRoot ,
7575 description : collectionPayload . description ,
7676 childCount : collectionPayload . childCount ,
77+ ...( collectionPayload . theme && {
78+ theme : collectionPayload . theme
79+ } ) ,
7780 ...( collectionPayload . isPartOf && {
7881 isPartOf : transformPayloadToOwnerNode ( collectionPayload . isPartOf )
7982 } ) ,
You can’t perform that action at this time.
0 commit comments