Skip to content

Commit eff8ad9

Browse files
authored
chore: add blockedInboxOrChannels to profile (#271)
1 parent bdffec8 commit eff8ad9

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

api_proxy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ definitions:
522522
title: Profile with wmail
523523
description: Describes the user's profile.
524524
properties:
525+
blocked_inbox_or_channels:
526+
$ref: "#/definitions/BlockedInboxOrChannels"
525527
email:
526528
$ref: '#/definitions/EmailAddress'
527529
family_name:

src/types/api_client/getProfileOKResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import * as t from "io-ts";
77
import { NonNegativeInteger } from "italia-ts-commons/lib/numbers";
8+
import { BlockedInboxOrChannels } from "../api/BlockedInboxOrChannels";
89
import { EmailAddress } from "../api/EmailAddress";
910
import { IsInboxEnabled } from "../api/IsInboxEnabled";
1011
import { IsWebhookEnabled } from "../api/IsWebhookEnabled";
@@ -19,6 +20,7 @@ const GetProfileOKResponseR = t.interface({
1920

2021
// optional attributes
2122
const GetProfileOKResponseO = t.partial({
23+
blockedInboxOrChannels: BlockedInboxOrChannels,
2224
email: EmailAddress,
2325
preferredLanguages: PreferredLanguages
2426
});

src/types/api_client/upsertProfileOKResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import * as t from "io-ts";
77
import { NonNegativeInteger } from "italia-ts-commons/lib/numbers";
8+
import { BlockedInboxOrChannels } from "../api/BlockedInboxOrChannels";
89
import { EmailAddress } from "../api/EmailAddress";
910
import { IsInboxEnabled } from "../api/IsInboxEnabled";
1011
import { IsWebhookEnabled } from "../api/IsWebhookEnabled";
@@ -19,6 +20,7 @@ const UpsertProfileOKResponseR = t.interface({
1920

2021
// optional attributes
2122
const UpsertProfileOKResponseO = t.partial({
23+
blockedInboxOrChannels: BlockedInboxOrChannels,
2224
email: EmailAddress,
2325
preferredLanguages: PreferredLanguages
2426
});

src/types/profile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export function toAppProfileWithEmail(
2525
user: User
2626
): ProfileWithEmail {
2727
return {
28+
blocked_inbox_or_channels: from.blockedInboxOrChannels,
2829
email: from.email,
2930
family_name: user.family_name,
3031
fiscal_code: user.fiscal_code,

0 commit comments

Comments
 (0)