/* Options: Date: 2026-03-13 22:08:45 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://milliet.io //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: url_shortener.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export enum operationType { NoOperation = '0x4E71', ShortenUrl = 'ShortenUrl', GetOriginalUrl = 'GetOriginalUrl', RedirectUrl = 'RedirectUrl', } export class url_shortenerResponse { public tiny_url: string; public original_url: string; public created_date: string; public expiry_date?: string; public collision?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/url_shortener", "GET,POST") export class url_shortener implements IReturn { /** @description operation type */ // @ApiMember(DataType="string", Description="operation type", IsRequired=true, Name="operation", ParameterType="body") public operation: operationType; /** @description url */ // @ApiMember(DataType="string", Description="url", IsRequired=true, Name="url", ParameterType="body") public url: string; /** @description days to expire */ // @ApiMember(DataType="string", Description="days to expire", Name="days", ParameterType="body") public days?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'url_shortener'; } public getMethod() { return 'POST'; } public createResponse() { return new url_shortenerResponse(); } }