File tree Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -522,6 +522,8 @@ definitions:
522
522
title : Profile with wmail
523
523
description : Describes the user's profile.
524
524
properties :
525
+ blocked_inbox_or_channels :
526
+ $ref : " #/definitions/BlockedInboxOrChannels"
525
527
email :
526
528
$ref : ' #/definitions/EmailAddress'
527
529
family_name :
Original file line number Diff line number Diff line change 5
5
6
6
import * as t from "io-ts" ;
7
7
import { NonNegativeInteger } from "italia-ts-commons/lib/numbers" ;
8
+ import { BlockedInboxOrChannels } from "../api/BlockedInboxOrChannels" ;
8
9
import { EmailAddress } from "../api/EmailAddress" ;
9
10
import { IsInboxEnabled } from "../api/IsInboxEnabled" ;
10
11
import { IsWebhookEnabled } from "../api/IsWebhookEnabled" ;
@@ -19,6 +20,7 @@ const GetProfileOKResponseR = t.interface({
19
20
20
21
// optional attributes
21
22
const GetProfileOKResponseO = t . partial ( {
23
+ blockedInboxOrChannels : BlockedInboxOrChannels ,
22
24
email : EmailAddress ,
23
25
preferredLanguages : PreferredLanguages
24
26
} ) ;
Original file line number Diff line number Diff line change 5
5
6
6
import * as t from "io-ts" ;
7
7
import { NonNegativeInteger } from "italia-ts-commons/lib/numbers" ;
8
+ import { BlockedInboxOrChannels } from "../api/BlockedInboxOrChannels" ;
8
9
import { EmailAddress } from "../api/EmailAddress" ;
9
10
import { IsInboxEnabled } from "../api/IsInboxEnabled" ;
10
11
import { IsWebhookEnabled } from "../api/IsWebhookEnabled" ;
@@ -19,6 +20,7 @@ const UpsertProfileOKResponseR = t.interface({
19
20
20
21
// optional attributes
21
22
const UpsertProfileOKResponseO = t . partial ( {
23
+ blockedInboxOrChannels : BlockedInboxOrChannels ,
22
24
email : EmailAddress ,
23
25
preferredLanguages : PreferredLanguages
24
26
} ) ;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export function toAppProfileWithEmail(
25
25
user : User
26
26
) : ProfileWithEmail {
27
27
return {
28
+ blocked_inbox_or_channels : from . blockedInboxOrChannels ,
28
29
email : from . email ,
29
30
family_name : user . family_name ,
30
31
fiscal_code : user . fiscal_code ,
You can’t perform that action at this time.
0 commit comments