/** * Do not edit this file it is auto-generated by io-utils / gen-api-models. * See https://github.com/pagopa/io-utils */ /* tslint:disable */ import { ServiceScope } from "./ServiceScope"; import * as t from "io-ts"; import { NonEmptyString } from "italia-ts-commons/lib/strings"; /** * A set of metadata properties related to this service. */ // required attributes const ServiceMetadataR = t.interface({ scope: ServiceScope }); // optional attributes const ServiceMetadataO = t.partial({ description: NonEmptyString, web_url: NonEmptyString, app_ios: NonEmptyString, app_android: NonEmptyString, tos_url: NonEmptyString, privacy_url: NonEmptyString, address: NonEmptyString, phone: NonEmptyString, email: NonEmptyString, pec: NonEmptyString, cta: NonEmptyString, token_name: NonEmptyString, support_url: NonEmptyString }); export const ServiceMetadata = t.exact( t.intersection([ServiceMetadataR, ServiceMetadataO], "ServiceMetadata") ); export type ServiceMetadata = t.TypeOf;