import swatts from 'swatts';
swatts({
API: 'http://YOUR-DOMAIN.wtf/swagger/v1/swagger.json',
regexpMethods: {
nameInterface?: /(Container|ExtensionTotal)\[(.*)/,
matchInterfaceName?: /definitions\/(\w+)/,
excludeDTO: /(RequestDto|ExtensionEmpty)/,
replaceSpace: /^\s*[\r\n]/gm,
},
modificators: {
interfaceReplace?: { StatedContainerDto: 'any', 'StatedContainerDto[]': 'any[]' },
typeReplace: { 'integer': 'number' }
},
filePath: __dirname + '/types.ts'
})
export enum EnumUserRole {
administrator = 'administrator',
organizationOwner = 'organizationOwner',
}
export interface ProfileDto {
profileID: number;
timeZone: string;
firstName: string;
lastName: string;
email: string;
userRole: EnumUserRole;
}