/* Options: Date: 2024-11-23 10:18:35 Version: 8.41 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //IncludeTypes: //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface IReturnVoid { createResponse(): void; } export interface IPost { } export interface IGet { } export interface ICreateDb { } export interface IUpdateDb
{ } export interface IPatchDb
{ } export interface ISaveDb
{ } export interface IHasSessionId { sessionId?: string; } export interface IHasBearerToken { bearerToken?: string; } export interface IPut { } export interface IDelete { } export interface IPatch { } export interface IDeleteDb
{ } // @DataContract export class QueryBase { // @DataMember(Order=1) public skip?: number; // @DataMember(Order=2) public take?: number; // @DataMember(Order=3) public orderBy: string; // @DataMember(Order=4) public orderByDesc: string; // @DataMember(Order=5) public include: string; // @DataMember(Order=6) public fields: string; // @DataMember(Order=7) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class QueryDb_2 extends QueryBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class Item { public name: string; public description: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class Poco { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CustomType { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SetterType { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class DeclarativeChildValidation { public name: string; // @Validate(Validator="MaximumLength(20)") public value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class FluentChildValidation { public name: string; public value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class DeclarativeSingleValidation { public name: string; // @Validate(Validator="MaximumLength(20)") public value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class FluentSingleValidation { public name: string; public value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class CancelRequest implements IPost { // @DataMember(Order=1) public tag: string; // @DataMember(Order=2) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseError { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public fieldName: string; // @DataMember(Order=3) public message: string; // @DataMember(Order=4) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public errorCode: string; // @DataMember(Order=2) public message: string; // @DataMember(Order=3) public stackTrace: string; // @DataMember(Order=4) public errors: ResponseError[]; // @DataMember(Order=5) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class CancelRequestResponse { // @DataMember(Order=1) public tag: string; // @DataMember(Order=2) public elapsed: string; // @DataMember(Order=3) public meta: { [index: string]: string; }; // @DataMember(Order=4) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class UpdateEventSubscriber implements IPost { // @DataMember(Order=1) public id: string; // @DataMember(Order=2) public subscribeChannels: string[]; // @DataMember(Order=3) public unsubscribeChannels: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class UpdateEventSubscriberResponse { // @DataMember(Order=1) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class GetApiKeys implements IGet { // @DataMember(Order=1) public environment: string; // @DataMember(Order=2) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class UserApiKey { // @DataMember(Order=1) public key: string; // @DataMember(Order=2) public keyType: string; // @DataMember(Order=3) public expiryDate?: string; // @DataMember(Order=4) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class GetApiKeysResponse { // @DataMember(Order=1) public results: UserApiKey[]; // @DataMember(Order=2) public meta: { [index: string]: string; }; // @DataMember(Order=3) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class RegenerateApiKeys implements IPost { // @DataMember(Order=1) public environment: string; // @DataMember(Order=2) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class RegenerateApiKeysResponse { // @DataMember(Order=1) public results: UserApiKey[]; // @DataMember(Order=2) public meta: { [index: string]: string; }; // @DataMember(Order=3) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ConvertSessionToToken implements IPost { // @DataMember(Order=1) public preserveSession: boolean; // @DataMember(Order=2) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ConvertSessionToTokenResponse { // @DataMember(Order=1) public meta: { [index: string]: string; }; // @DataMember(Order=2) public accessToken: string; // @DataMember(Order=3) public refreshToken: string; // @DataMember(Order=4) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class NavItem { public label: string; public href: string; public exact?: boolean; public id: string; public className: string; public iconClass: string; public iconSrc: string; public show: string; public hide: string; public children: NavItem[]; public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class GetNavItems { // @DataMember(Order=1) public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class GetNavItemsResponse { // @DataMember(Order=1) public baseUrl: string; // @DataMember(Order=2) public results: NavItem[]; // @DataMember(Order=3) public navItemsMap: { [index: string]: NavItem[]; }; // @DataMember(Order=4) public meta: { [index: string]: string; }; // @DataMember(Order=5) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class IdResponse { // @DataMember(Order=1) public id: string; // @DataMember(Order=2) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class StringResponse { // @DataMember(Order=1) public result: string; // @DataMember(Order=2) public meta: { [index: string]: string; }; // @DataMember(Order=3) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class StringsResponse { // @DataMember(Order=1) public results: string[]; // @DataMember(Order=2) public meta: { [index: string]: string; }; // @DataMember(Order=3) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class AuditBase { // @DataMember(Order=1) public createdDate: string; // @DataMember(Order=2) // @Required() public createdBy: string; // @DataMember(Order=3) public modifiedDate: string; // @DataMember(Order=4) // @Required() public modifiedBy: string; // @DataMember(Order=5) public deletedDate?: string; // @DataMember(Order=6) public deletedBy: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export interface IGeneration { refId?: string; tag?: string; } export interface IAuthTokens { provider: string; userId: string; accessToken: string; accessTokenSecret: string; refreshToken: string; refreshTokenExpiry?: string; requestToken: string; requestTokenSecret: string; items: { [index: string]: string; }; } // @DataContract export class AuthUserSession { // @DataMember(Order=1) public referrerUrl: string; // @DataMember(Order=2) public id: string; // @DataMember(Order=3) public userAuthId: string; // @DataMember(Order=4) public userAuthName: string; // @DataMember(Order=5) public userName: string; // @DataMember(Order=6) public twitterUserId: string; // @DataMember(Order=7) public twitterScreenName: string; // @DataMember(Order=8) public facebookUserId: string; // @DataMember(Order=9) public facebookUserName: string; // @DataMember(Order=10) public firstName: string; // @DataMember(Order=11) public lastName: string; // @DataMember(Order=12) public displayName: string; // @DataMember(Order=13) public company: string; // @DataMember(Order=14) public email: string; // @DataMember(Order=15) public primaryEmail: string; // @DataMember(Order=16) public phoneNumber: string; // @DataMember(Order=17) public birthDate?: string; // @DataMember(Order=18) public birthDateRaw: string; // @DataMember(Order=19) public address: string; // @DataMember(Order=20) public address2: string; // @DataMember(Order=21) public city: string; // @DataMember(Order=22) public state: string; // @DataMember(Order=23) public country: string; // @DataMember(Order=24) public culture: string; // @DataMember(Order=25) public fullName: string; // @DataMember(Order=26) public gender: string; // @DataMember(Order=27) public language: string; // @DataMember(Order=28) public mailAddress: string; // @DataMember(Order=29) public nickname: string; // @DataMember(Order=30) public postalCode: string; // @DataMember(Order=31) public timeZone: string; // @DataMember(Order=32) public requestTokenSecret: string; // @DataMember(Order=33) public createdAt: string; // @DataMember(Order=34) public lastModified: string; // @DataMember(Order=35) public roles: string[]; // @DataMember(Order=36) public permissions: string[]; // @DataMember(Order=37) public isAuthenticated: boolean; // @DataMember(Order=38) public fromToken: boolean; // @DataMember(Order=39) public profileUrl: string; // @DataMember(Order=40) public sequence: string; // @DataMember(Order=41) public tag: number; // @DataMember(Order=42) public authProvider: string; // @DataMember(Order=43) public providerOAuthAccess: IAuthTokens[]; // @DataMember(Order=44) public meta: { [index: string]: string; }; // @DataMember(Order=45) public audiences: string[]; // @DataMember(Order=46) public scopes: string[]; // @DataMember(Order=47) public dns: string; // @DataMember(Order=48) public rsa: string; // @DataMember(Order=49) public sid: string; // @DataMember(Order=50) public hash: string; // @DataMember(Order=51) public homePhone: string; // @DataMember(Order=52) public mobilePhone: string; // @DataMember(Order=53) public webpage: string; // @DataMember(Order=54) public emailConfirmed?: boolean; // @DataMember(Order=55) public phoneNumberConfirmed?: boolean; // @DataMember(Order=56) public twoFactorEnabled?: boolean; // @DataMember(Order=57) public securityStamp: string; // @DataMember(Order=58) public type: string; // @DataMember(Order=59) public recoveryToken: string; // @DataMember(Order=60) public refId?: number; // @DataMember(Order=61) public refIdStr: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class NestedClass { public value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum EnumType { Value1 = 'Value1', Value2 = 'Value2', Value3 = 'Value3', } // @Flags() export enum EnumTypeFlags { Value1 = 0, Value2 = 1, Value3 = 2, } export enum EnumWithValues { None = 'None', Value1 = 'Member 1', Value2 = 'Value2', } // @Flags() export enum EnumFlags { Value0 = 0, Value1 = 1, Value2 = 2, Value3 = 4, Value123 = 7, } export enum EnumAsInt { Value1 = 1000, Value2 = 2000, Value3 = 3000, } export enum EnumStyle { lower = 'lower', UPPER = 'UPPER', PascalCase = 'PascalCase', camelCase = 'camelCase', camelUPPER = 'camelUPPER', PascalUPPER = 'PascalUPPER', } export enum EnumStyleMembers { Lower = 'lower', Upper = 'UPPER', PascalCase = 'PascalCase', CamelCase = 'camelCase', CamelUpper = 'camelUPPER', PascalUpper = 'PascalUPPER', } export class KeyValuePair { public key: TKey; public value: TValue; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class SubType { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class AllTypesBase { public id: number; public nullableId?: number; public byte: number; public short: number; public int: number; public long: number; public uShort: number; public uInt: number; public uLong: number; public float: number; public double: number; public decimal: number; public string: string; public dateTime: string; public timeSpan: string; public dateTimeOffset: string; public guid: string; public char: string; public keyValuePair: KeyValuePair; public nullableDateTime?: string; public nullableTimeSpan?: string; public stringList: string[]; public stringArray: string[]; public stringMap: { [index: string]: string; }; public intStringMap: { [index: number]: string; }; public subType: SubType; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloBase { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloBase_1 { public items: T[]; public counts: number[]; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export interface IPoco { name: string; } export interface IEmptyInterface { } export class EmptyClass { public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum DayOfWeek { Sunday = 'Sunday', Monday = 'Monday', Tuesday = 'Tuesday', Wednesday = 'Wednesday', Thursday = 'Thursday', Friday = 'Friday', Saturday = 'Saturday', } // @DataContract export enum ScopeType { Global = 1, Sale = 2, } export class Channel { public name: string; public value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class Device { public id: number; public type: string; public timeStamp: number; public channels: Channel[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class Logger { public id: number; public devices: Device[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class Rockstar { public id: number; public firstName: string; public lastName: string; public age?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class QueryDbTenant_2 extends QueryDb_2 { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export enum LivingStatus { Alive = 'Alive', Dead = 'Dead', } export class RockstarAuditTenant extends AuditBase { public tenantId: number; public id: number; public firstName: string; public lastName: string; public age?: number; public dateOfBirth: string; public dateDied?: string; public livingStatus: LivingStatus; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class RockstarBase { public firstName: string; public lastName: string; public age?: number; public dateOfBirth: string; public dateDied?: string; public livingStatus: LivingStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RockstarAuto extends RockstarBase { public id: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class QueryDb_1 extends QueryBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class OnlyDefinedInGenericType { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class OnlyDefinedInGenericTypeFrom { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class OnlyDefinedInGenericTypeInto { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RockstarAudit extends RockstarBase { public id: number; public createdDate: string; public createdBy: string; public createdInfo: string; public modifiedDate: string; public modifiedBy: string; public modifiedInfo: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class CreateAuditBase implements ICreateDb
{ public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class CreateAuditTenantBase extends CreateAuditBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class UpdateAuditBase implements IUpdateDb
{ public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class UpdateAuditTenantBase extends UpdateAuditBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class PatchAuditBase implements IPatchDb
{ public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class PatchAuditTenantBase extends PatchAuditBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class SoftDeleteAuditBase implements IUpdateDb
{ public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class SoftDeleteAuditTenantBase extends SoftDeleteAuditBase { public constructor(init?: Partial>) { super(init); (Object as any).assign(this, init); } } export class RockstarVersion extends RockstarBase { public id: number; public rowVersion: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @Route("/messages/crud/{Id}", "PUT") export class MessageCrud implements IReturnVoid, ISaveDb { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'MessageCrud'; } public getMethod() { return 'PUT'; } public createResponse() {} } /** @description Output object for generated artifacts */ export class ArtifactOutput { /** @description URL to access the generated image */ // @ApiMember(Description="URL to access the generated image") public url?: string; /** @description Filename of the generated image */ // @ApiMember(Description="Filename of the generated image") public fileName?: string; /** @description Provider used for image generation */ // @ApiMember(Description="Provider used for image generation") public provider?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Output object for generated text */ export class TextOutput { /** @description The generated text */ // @ApiMember(Description="The generated text") public text?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class UploadInfo { public name: string; public fileName: string; public contentLength: number; public contentType: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MetadataTestNestedChild { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MetadataTestChild { public name: string; public results: MetadataTestNestedChild[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MenuItemExampleItem { // @DataMember(Order=1) // @ApiMember() public name1: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MenuItemExample { // @DataMember(Order=1) // @ApiMember() public name1: string; public menuItemExampleItem: MenuItemExampleItem; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class MenuExample { // @DataMember(Order=1) // @ApiMember() public menuItemExample1: MenuItemExample; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ListResult { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ArrayResult { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloResponseBase { public refId: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloWithReturnResponse { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloType { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class InnerType { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum InnerEnum { Foo = 'Foo', Bar = 'Bar', Baz = 'Baz', } export class ReturnedDto { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CustomUserSession extends AuthUserSession { // @DataMember public customName: string; // @DataMember public customInfo: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class UnAuthInfo { public customInfo: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class TypesGroup { public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class QueryResponse { // @DataMember(Order=1) public offset: number; // @DataMember(Order=2) public total: number; // @DataMember(Order=3) public results: Poco[]; // @DataMember(Order=4) public meta: { [index: string]: string; }; // @DataMember(Order=5) public responseStatus: ResponseStatus; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class ChatMessage { public id: number; public channel: string; public fromUserId: string; public fromName: string; public displayName: string; public message: string; public userAuthId: string; public private: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GetChatHistoryResponse { public results: ChatMessage[]; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GetUserDetailsResponse { public provider: string; public userId: string; public userName: string; public fullName: string; public displayName: string; public firstName: string; public lastName: string; public company: string; public email: string; public phoneNumber: string; public birthDate?: string; public birthDateRaw: string; public address: string; public address2: string; public city: string; public state: string; public country: string; public culture: string; public gender: string; public language: string; public mailAddress: string; public nickname: string; public postalCode: string; public timeZone: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CustomHttpErrorResponse { public custom: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class QueryResponseAlt { public offset: number; public total: number; public results: Item[]; public meta: { [index: string]: string; }; public responseStatus: ResponseStatus; public constructor(init?: Partial>) { (Object as any).assign(this, init); } } export class Items { public results: Item[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class EmptyResponse { // @DataMember(Order=1) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ReturnCustom400Response { public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ThrowTypeResponse { public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ThrowValidationResponse { public age: number; public required: string; public email: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ThrowBusinessErrorResponse { public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Response object for generation requests */ export class GenerationResponse { /** @description List of generated outputs */ // @ApiMember(Description="List of generated outputs") public outputs?: ArtifactOutput[]; /** @description List of generated text outputs */ // @ApiMember(Description="List of generated text outputs") public textOutputs?: TextOutput[]; /** @description Detailed response status information */ // @ApiMember(Description="Detailed response status information") public responseStatus?: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class TestFileUploadsResponse { public id?: number; public refId?: string; public files: UploadInfo[]; public responseStatus?: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class Account { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class Project { public account: string; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SecuredResponse { public result: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CreateJwtResponse { public token: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CreateRefreshJwtResponse { public token: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MetadataTestResponse { public id: number; public results: MetadataTestChild[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class GetExampleResponse { // @DataMember(Order=1) public responseStatus: ResponseStatus; // @DataMember(Order=2) // @ApiMember() public menuExample1: MenuExample; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/messages/{Id}", "PUT") export class Message implements IReturn { public id: number; public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Message'; } public getMethod() { return 'PUT'; } public createResponse() { return new Message(); } } export class GetRandomIdsResponse { public results: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloResponse { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Description on HelloAllResponse type */ // @DataContract export class HelloAnnotatedResponse { // @DataMember public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class AllTypes implements IReturn { public id: number; public nullableId?: number; public byte: number; public short: number; public int: number; public long: number; public uShort: number; public uInt: number; public uLong: number; public float: number; public double: number; public decimal: number; public string: string; public dateTime: string; public timeSpan: string; public dateTimeOffset: string; public guid: string; public char: string; public keyValuePair: KeyValuePair; public nullableDateTime?: string; public nullableTimeSpan?: string; public stringList: string[]; public stringArray: string[]; public stringMap: { [index: string]: string; }; public intStringMap: { [index: number]: string; }; public subType: SubType; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'AllTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new AllTypes(); } } export class AllCollectionTypes implements IReturn { public intArray: number[]; public intList: number[]; public stringArray: string[]; public stringList: string[]; public floatArray: number[]; public doubleList: number[]; public byteArray: string; public charArray: string[]; public decimalList: number[]; public pocoArray: Poco[]; public pocoList: Poco[]; public pocoLookup: { [index: string]: Poco[]; }; public pocoLookupMap: { [index: string]: { [index:string]: Poco; }[]; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'AllCollectionTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new AllCollectionTypes(); } } export class HelloAllTypesResponse { public result: string; public allTypes: AllTypes; public allCollectionTypes: AllCollectionTypes; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SubAllTypes extends AllTypesBase { public hierarchy: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class HelloDateTime implements IReturn { public dateTime: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloDateTime'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloDateTime(); } } // @DataContract export class HelloWithDataContractResponse { // @DataMember(Name="result", Order=1, IsRequired=true, EmitDefaultValue=false) public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Description on HelloWithDescriptionResponse type */ export class HelloWithDescriptionResponse { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloWithInheritanceResponse extends HelloResponseBase { public result: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class HelloWithAlternateReturnResponse extends HelloWithReturnResponse { public altResult: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class HelloWithRouteResponse { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloWithTypeResponse { public result: HelloType; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloInnerTypesResponse { public innerType: InnerType; public innerEnum: InnerEnum; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HelloVerbResponse { public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class EnumResponse { public operator: ScopeType; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/hellotypes/{Name}") export class HelloTypes implements IReturn { public string: string; public bool: boolean; public int: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloTypes(); } } // @DataContract export class HelloZipResponse { // @DataMember public result: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class PingResponse { public responses: { [index: string]: ResponseStatus; }; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RequiresRoleResponse { public result: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class SendVerbResponse { public id: number; public pathInfo: string; public requestMethod: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class GetSessionResponse { public result: CustomUserSession; public unAuthInfo: UnAuthInfo; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract(Namespace="http://schemas.servicestack.net/types") export class GetStuffResponse { // @DataMember public summaryDate?: string; // @DataMember public summaryEndDate?: string; // @DataMember public symbol: string; // @DataMember public email: string; // @DataMember public isEnabled?: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class StoreLogsResponse { public existingLogs: Logger[]; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class TestAuthResponse { public userId: string; public sessionId: string; public userName: string; public displayName: string; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RequiresAdmin implements IReturn { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'RequiresAdmin'; } public getMethod() { return 'POST'; } public createResponse() { return new RequiresAdmin(); } } // @Route("/custom") // @Route("/custom/{Data}") export class CustomRoute implements IReturn { public data: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CustomRoute'; } public getMethod() { return 'POST'; } public createResponse() { return new CustomRoute(); } } // @Route("/wait/{ForMs}") export class Wait implements IReturn { public forMs: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Wait'; } public getMethod() { return 'POST'; } public createResponse() { return new Wait(); } } // @Route("/echo/types") export class EchoTypes implements IReturn { public byte: number; public short: number; public int: number; public long: number; public uShort: number; public uInt: number; public uLong: number; public float: number; public double: number; public decimal: number; public string: string; public dateTime: string; public timeSpan: string; public dateTimeOffset: string; public guid: string; public char: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'EchoTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new EchoTypes(); } } // @Route("/echo/collections") export class EchoCollections implements IReturn { public stringList: string[]; public stringArray: string[]; public stringMap: { [index: string]: string; }; public intStringMap: { [index: number]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'EchoCollections'; } public getMethod() { return 'POST'; } public createResponse() { return new EchoCollections(); } } // @Route("/echo/complex") export class EchoComplexTypes implements IReturn { public subType: SubType; public subTypes: SubType[]; public subTypeMap: { [index: string]: SubType; }; public stringMap: { [index: string]: string; }; public intStringMap: { [index: number]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'EchoComplexTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new EchoComplexTypes(); } } // @Route("/rockstars", "POST") export class StoreRockstars extends Array implements IReturn { public constructor(init?: Partial) { super(); (Object as any).assign(this, init); } public getTypeName() { return 'StoreRockstars'; } public getMethod() { return 'POST'; } public createResponse() { return new StoreRockstars(); } } // @DataContract export class RegisterResponse implements IHasSessionId, IHasBearerToken { // @DataMember(Order=1) public userId: string; // @DataMember(Order=2) public sessionId: string; // @DataMember(Order=3) public userName: string; // @DataMember(Order=4) public referrerUrl: string; // @DataMember(Order=5) public bearerToken: string; // @DataMember(Order=6) public refreshToken: string; // @DataMember(Order=7) public refreshTokenExpiry?: string; // @DataMember(Order=8) public roles: string[]; // @DataMember(Order=9) public permissions: string[]; // @DataMember(Order=10) public redirectUrl: string; // @DataMember(Order=11) public responseStatus: ResponseStatus; // @DataMember(Order=12) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class AuthenticateResponse implements IHasSessionId, IHasBearerToken { // @DataMember(Order=1) public userId: string; // @DataMember(Order=2) public sessionId: string; // @DataMember(Order=3) public userName: string; // @DataMember(Order=4) public displayName: string; // @DataMember(Order=5) public referrerUrl: string; // @DataMember(Order=6) public bearerToken: string; // @DataMember(Order=7) public refreshToken: string; // @DataMember(Order=8) public refreshTokenExpiry?: string; // @DataMember(Order=9) public profileUrl: string; // @DataMember(Order=10) public roles: string[]; // @DataMember(Order=11) public permissions: string[]; // @DataMember(Order=12) public authProvider: string; // @DataMember(Order=13) public responseStatus: ResponseStatus; // @DataMember(Order=14) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class AssignRolesResponse { // @DataMember(Order=1) public allRoles: string[]; // @DataMember(Order=2) public allPermissions: string[]; // @DataMember(Order=3) public meta: { [index: string]: string; }; // @DataMember(Order=4) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class UnAssignRolesResponse { // @DataMember(Order=1) public allRoles: string[]; // @DataMember(Order=2) public allPermissions: string[]; // @DataMember(Order=3) public meta: { [index: string]: string; }; // @DataMember(Order=4) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RockstarWithIdResponse { public id: number; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RockstarWithIdAndResultResponse { public id: number; public result: RockstarAuto; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RockstarWithIdAndCountResponse { public id: number; public count: number; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class RockstarWithIdAndRowVersionResponse { public id: number; public rowVersion: number; public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class GetAccessTokenResponse { // @DataMember(Order=1) public accessToken: string; // @DataMember(Order=2) public meta: { [index: string]: string; }; // @DataMember(Order=3) public responseStatus: ResponseStatus; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class QueryItems extends QueryDb_2 implements IReturn> { public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryItems'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } } // @Route("/channels/{Channel}/raw") export class PostRawToChannel implements IReturnVoid { public from: string; public toUserId: string; public channel: string; public message: string; public selector: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'PostRawToChannel'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/channels/{Channel}/chat") export class PostChatToChannel implements IReturn { public from: string; public toUserId: string; public channel: string; public message: string; public selector: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'PostChatToChannel'; } public getMethod() { return 'POST'; } public createResponse() { return new ChatMessage(); } } // @Route("/chathistory") export class GetChatHistory implements IReturn { public channels: string[]; public afterId?: number; public take?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetChatHistory'; } public getMethod() { return 'POST'; } public createResponse() { return new GetChatHistoryResponse(); } } // @Route("/reset") export class ClearChatHistory implements IReturnVoid { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ClearChatHistory'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/reset-serverevents") export class ResetServerEvents implements IReturnVoid { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ResetServerEvents'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/channels/{Channel}/object") export class PostObjectToChannel implements IReturnVoid { public toUserId: string; public channel: string; public selector: string; public customType: CustomType; public setterType: SetterType; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'PostObjectToChannel'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/account") export class GetUserDetails implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetUserDetails'; } public getMethod() { return 'GET'; } public createResponse() { return new GetUserDetailsResponse(); } } export class CustomHttpError implements IReturn { public statusCode: number; public statusDescription: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CustomHttpError'; } public getMethod() { return 'POST'; } public createResponse() { return new CustomHttpErrorResponse(); } } export class AltQueryItems implements IReturn> { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'AltQueryItems'; } public getMethod() { return 'POST'; } public createResponse() { return new QueryResponseAlt(); } } export class GetItems implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetItems'; } public getMethod() { return 'GET'; } public createResponse() { return new Items(); } } export class GetNakedItems implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetNakedItems'; } public getMethod() { return 'GET'; } public createResponse() { return new Array(); } } // @ValidateRequest(Validator="IsAuthenticated") export class DeclarativeValidationAuth { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DeclarativeValidationAuth'; } public getMethod() { return 'POST'; } public createResponse() {} } export class DeclarativeCollectiveValidationTest implements IReturn { // @Validate(Validator="NotEmpty") // @Validate(Validator="MaximumLength(20)") public site: string; public declarativeValidations: DeclarativeChildValidation[]; public fluentValidations: FluentChildValidation[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DeclarativeCollectiveValidationTest'; } public getMethod() { return 'POST'; } public createResponse() { return new EmptyResponse(); } } export class DeclarativeSingleValidationTest implements IReturn { // @Validate(Validator="NotEmpty") // @Validate(Validator="MaximumLength(20)") public site: string; public declarativeSingleValidation: DeclarativeSingleValidation; public fluentSingleValidation: FluentSingleValidation; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DeclarativeSingleValidationTest'; } public getMethod() { return 'POST'; } public createResponse() { return new EmptyResponse(); } } // @Route("/access-token") // @DataContract export class GetAccessToken implements IReturn, IPost { // @DataMember(Order=1) public refreshToken: string; // @DataMember(Order=2) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetAccessToken'; } public getMethod() { return 'POST'; } public createResponse() { return new GetAccessTokenResponse(); } } export class DummyTypes { public helloResponses: HelloResponse[]; public listResult: ListResult[]; public arrayResult: ArrayResult[]; public cancelRequest: CancelRequest; public cancelRequestResponse: CancelRequestResponse; public updateEventSubscriber: UpdateEventSubscriber; public updateEventSubscriberResponse: UpdateEventSubscriberResponse; public getApiKeys: GetApiKeys; public getApiKeysResponse: GetApiKeysResponse; public regenerateApiKeys: RegenerateApiKeys; public regenerateApiKeysResponse: RegenerateApiKeysResponse; public userApiKey: UserApiKey; public convertSessionToToken: ConvertSessionToToken; public convertSessionToTokenResponse: ConvertSessionToTokenResponse; public getAccessToken: GetAccessToken; public getAccessTokenResponse: GetAccessTokenResponse; public navItem: NavItem; public getNavItems: GetNavItems; public getNavItemsResponse: GetNavItemsResponse; public emptyResponse: EmptyResponse; public idResponse: IdResponse; public stringResponse: StringResponse; public stringsResponse: StringsResponse; public auditBase: AuditBase; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'DummyTypes'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/throwhttperror/{Status}") export class ThrowHttpError { public status?: number; public message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ThrowHttpError'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/throw404") // @Route("/throw404/{Message}") export class Throw404 { public message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Throw404'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/throwcustom400") // @Route("/throwcustom400/{Message}") export class ThrowCustom400 { public message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ThrowCustom400'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/returncustom400") // @Route("/returncustom400/{Message}") export class ReturnCustom400 implements IReturn { public message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnCustom400'; } public getMethod() { return 'POST'; } public createResponse() { return new ReturnCustom400Response(); } } // @Route("/throw/{Type}") export class ThrowType implements IReturn { public type: string; public message: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ThrowType'; } public getMethod() { return 'POST'; } public createResponse() { return new ThrowTypeResponse(); } } // @Route("/throwvalidation") export class ThrowValidation implements IReturn { public age: number; public required: string; public email: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ThrowValidation'; } public getMethod() { return 'POST'; } public createResponse() { return new ThrowValidationResponse(); } } // @Route("/throwbusinesserror") export class ThrowBusinessError implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ThrowBusinessError'; } public getMethod() { return 'POST'; } public createResponse() { return new ThrowBusinessErrorResponse(); } } /** @description Convert speech to text */ // @Api(Description="Convert speech to text") export class SpeechToText implements IReturn, IGeneration { /** @description The audio stream containing the speech to be transcribed */ // @ApiMember(Description="The audio stream containing the speech to be transcribed") // @Required() public audio: string; /** @description Optional client-provided identifier for the request */ // @ApiMember(Description="Optional client-provided identifier for the request") public refId?: string; /** @description Tag to identify the request */ // @ApiMember(Description="Tag to identify the request") public tag?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SpeechToText'; } public getMethod() { return 'POST'; } public createResponse() { return new GenerationResponse(); } } export class TestFileUploads implements IReturn { public id?: number; public refId?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'TestFileUploads'; } public getMethod() { return 'POST'; } public createResponse() { return new TestFileUploadsResponse(); } } export class RootPathRoutes { public path: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'RootPathRoutes'; } public getMethod() { return 'POST'; } public createResponse() {} } export class GetAccount implements IReturn { public account: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetAccount'; } public getMethod() { return 'POST'; } public createResponse() { return new Account(); } } export class GetProject implements IReturn { public account: string; public project: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetProject'; } public getMethod() { return 'POST'; } public createResponse() { return new Project(); } } // @Route("/image-stream") export class ImageAsStream implements IReturn { public format: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ImageAsStream'; } public getMethod() { return 'POST'; } public createResponse() { return new Blob(); } } // @Route("/image-bytes") export class ImageAsBytes implements IReturn { public format: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ImageAsBytes'; } public getMethod() { return 'POST'; } public createResponse() { return new Uint8Array(0); } } // @Route("/image-custom") export class ImageAsCustomResult implements IReturn { public format: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ImageAsCustomResult'; } public getMethod() { return 'POST'; } public createResponse() { return new Uint8Array(0); } } // @Route("/image-response") export class ImageWriteToResponse implements IReturn { public format: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ImageWriteToResponse'; } public getMethod() { return 'POST'; } public createResponse() { return new Uint8Array(0); } } // @Route("/image-file") export class ImageAsFile implements IReturn { public format: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ImageAsFile'; } public getMethod() { return 'POST'; } public createResponse() { return new Uint8Array(0); } } // @Route("/image-redirect") export class ImageAsRedirect { public format: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ImageAsRedirect'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/hello-image/{Name}") export class HelloImage implements IReturn { public name: string; public format: string; public width?: number; public height?: number; public fontSize?: number; public fontFamily: string; public foreground: string; public background: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloImage'; } public getMethod() { return 'GET'; } public createResponse() { return new Uint8Array(0); } } // @Route("/secured") // @ValidateRequest(Validator="IsAuthenticated") export class Secured implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Secured'; } public getMethod() { return 'POST'; } public createResponse() { return new SecuredResponse(); } } // @Route("/jwt") export class CreateJwt extends AuthUserSession implements IReturn { public jwtExpiry?: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'CreateJwt'; } public getMethod() { return 'POST'; } public createResponse() { return new CreateJwtResponse(); } } // @Route("/jwt-refresh") export class CreateRefreshJwt implements IReturn { public userAuthId: string; public jwtExpiry?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateRefreshJwt'; } public getMethod() { return 'POST'; } public createResponse() { return new CreateRefreshJwtResponse(); } } // @Route("/jwt-invalidate") export class InvalidateLastAccessToken implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'InvalidateLastAccessToken'; } public getMethod() { return 'POST'; } public createResponse() { return new EmptyResponse(); } } // @Route("/logs") export class ViewLogs implements IReturn { public clear: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ViewLogs'; } public getMethod() { return 'POST'; } public createResponse() { return ''; } } // @Route("/metadatatest") export class MetadataTest implements IReturn { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'MetadataTest'; } public getMethod() { return 'POST'; } public createResponse() { return new MetadataTestResponse(); } } // @Route("/metadatatest-array") export class MetadataTestArray implements IReturn { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'MetadataTestArray'; } public getMethod() { return 'POST'; } public createResponse() { return new Array(); } } // @Route("/example", "GET") // @DataContract export class GetExample implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetExample'; } public getMethod() { return 'GET'; } public createResponse() { return new GetExampleResponse(); } } // @Route("/messages/{Id}", "GET") export class RequestMessage implements IReturn { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'RequestMessage'; } public getMethod() { return 'GET'; } public createResponse() { return new Message(); } } // @Route("/randomids") export class GetRandomIds implements IReturn { public take?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetRandomIds'; } public getMethod() { return 'POST'; } public createResponse() { return new GetRandomIdsResponse(); } } // @Route("/textfile-test") export class TextFileTest { public asAttachment: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'TextFileTest'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/return/text") export class ReturnText { public text: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnText'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/return/html") export class ReturnHtml { public text: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnHtml'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/hello") // @Route("/hello/{Name}") export class Hello implements IReturn { // @Required() public name: string; public title: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Hello'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloResponse(); } } // @Route("/hello-secure/{Name}") // @ValidateRequest(Validator="IsAuthenticated") export class HelloSecure implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloSecure'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloResponse(); } } /** @description Description on HelloAll type */ // @DataContract export class HelloAnnotated implements IReturn { // @DataMember public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloAnnotated'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloAnnotatedResponse(); } } export class HelloWithNestedClass implements IReturn { public name: string; public nestedClassProp: NestedClass; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithNestedClass'; } public getMethod() { return 'GET'; } public createResponse() { return new HelloResponse(); } } export class HelloList implements IReturn { public names: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloList'; } public getMethod() { return 'POST'; } public createResponse() { return new Array(); } } export class HelloArray implements IReturn { public names: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloArray'; } public getMethod() { return 'POST'; } public createResponse() { return new Array(); } } export class HelloMap implements IReturn<{ [index: string]: ArrayResult; }> { public names: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloMap'; } public getMethod() { return 'POST'; } public createResponse() { return new { [index: string]: ArrayResult; }(); } } export class HelloQueryResponse implements IReturn> { public names: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloQueryResponse'; } public getMethod() { return 'POST'; } public createResponse() { return new QueryResponse(); } } export class HelloWithEnum { public enumProp: EnumType; public enumTypeFlags: EnumTypeFlags; public enumWithValues: EnumWithValues; public nullableEnumProp?: EnumType; public enumFlags: EnumFlags; public enumAsInt: EnumAsInt; public enumStyle: EnumStyle; public enumStyleMembers: EnumStyleMembers; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithEnum'; } public getMethod() { return 'POST'; } public createResponse() {} } export class HelloWithEnumList { public enumProp: EnumType[]; public enumWithValues: EnumWithValues[]; public nullableEnumProp: EnumType[]; public enumFlags: EnumFlags[]; public enumStyle: EnumStyle[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithEnumList'; } public getMethod() { return 'POST'; } public createResponse() {} } export class HelloWithEnumMap { public enumProp: { [index: string]: EnumType; }; public enumWithValues: { [index: string]: EnumWithValues; }; public nullableEnumProp: { [index: string]: EnumType; }; public enumFlags: { [index: string]: EnumFlags; }; public enumStyle: { [index: string]: EnumStyle; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithEnumMap'; } public getMethod() { return 'POST'; } public createResponse() {} } export class RestrictedAttributes { public id: number; public name: string; public hello: Hello; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'RestrictedAttributes'; } public getMethod() { return 'POST'; } public createResponse() {} } /** @description AllowedAttributes Description */ // @Route("/allowed-attributes", "GET") // @Api(Description="AllowedAttributes Description") // @ApiResponse(Description="Your request was not understood", StatusCode=400) // @DataContract export class AllowedAttributes { /** @description Range Description */ // @DataMember(Name="Aliased") // @ApiMember(DataType="double", Description="Range Description", IsRequired=true, ParameterType="path") public Aliased: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'AllowedAttributes'; } public getMethod() { return 'GET'; } public createResponse() {} } // @Route("/all-types") export class HelloAllTypes implements IReturn { public name: string; public allTypes: AllTypes; public allCollectionTypes: AllCollectionTypes; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloAllTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloAllTypesResponse(); } } export class HelloSubAllTypes extends AllTypesBase implements IReturn { public hierarchy: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'HelloSubAllTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new SubAllTypes(); } } export class HelloString implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloString'; } public getMethod() { return 'POST'; } public createResponse() { return ''; } } export class HelloVoid { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloVoid'; } public getMethod() { return 'POST'; } public createResponse() {} } // @DataContract export class HelloWithDataContract implements IReturn { // @DataMember(Name="name", Order=1, IsRequired=true, EmitDefaultValue=false) public name: string; // @DataMember(Name="id", Order=2, EmitDefaultValue=false) public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithDataContract'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloWithDataContractResponse(); } } /** @description Description on HelloWithDescription type */ export class HelloWithDescription implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithDescription'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloWithDescriptionResponse(); } } export class HelloWithInheritance extends HelloBase implements IReturn { public name: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithInheritance'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloWithInheritanceResponse(); } } export class HelloWithGenericInheritance extends HelloBase_1 { public result: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithGenericInheritance'; } public getMethod() { return 'POST'; } public createResponse() {} } export class HelloWithGenericInheritance2 extends HelloBase_1 { public result: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithGenericInheritance2'; } public getMethod() { return 'POST'; } public createResponse() {} } export class HelloWithReturn implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithReturn'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloWithAlternateReturnResponse(); } } // @Route("/helloroute") export class HelloWithRoute implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithRoute'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloWithRouteResponse(); } } export class HelloWithType implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloWithType'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloWithTypeResponse(); } } export class HelloInterface { public poco: IPoco; public emptyInterface: IEmptyInterface; public emptyClass: EmptyClass; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloInterface'; } public getMethod() { return 'POST'; } public createResponse() {} } export class HelloInnerTypes implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloInnerTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloInnerTypesResponse(); } } export class HelloBuiltin { public dayOfWeek: DayOfWeek; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloBuiltin'; } public getMethod() { return 'POST'; } public createResponse() {} } export class HelloGet implements IReturn, IGet { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloGet'; } public getMethod() { return 'GET'; } public createResponse() { return new HelloVerbResponse(); } } export class HelloPost extends HelloBase implements IReturn, IPost { public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'HelloPost'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloVerbResponse(); } } export class HelloPut implements IReturn, IPut { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloPut'; } public getMethod() { return 'PUT'; } public createResponse() { return new HelloVerbResponse(); } } export class HelloDelete implements IReturn, IDelete { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloDelete'; } public getMethod() { return 'DELETE'; } public createResponse() { return new HelloVerbResponse(); } } export class HelloPatch implements IReturn, IPatch { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloPatch'; } public getMethod() { return 'PATCH'; } public createResponse() { return new HelloVerbResponse(); } } export class HelloReturnVoid implements IReturnVoid { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloReturnVoid'; } public getMethod() { return 'POST'; } public createResponse() {} } export class EnumRequest implements IReturn, IPut { public operator: ScopeType; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'EnumRequest'; } public getMethod() { return 'PUT'; } public createResponse() { return new EnumResponse(); } } // @Route("/hellozip") // @DataContract export class HelloZip implements IReturn { // @DataMember public name: string; // @DataMember public test: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloZip'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloZipResponse(); } } // @Route("/ping") export class Ping implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Ping'; } public getMethod() { return 'POST'; } public createResponse() { return new PingResponse(); } } // @Route("/reset-connections") export class ResetConnections { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ResetConnections'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/requires-role") export class RequiresRole implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'RequiresRole'; } public getMethod() { return 'POST'; } public createResponse() { return new RequiresRoleResponse(); } } // @Route("/return/string") export class ReturnString implements IReturn { public data: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnString'; } public getMethod() { return 'POST'; } public createResponse() { return ''; } } // @Route("/return/bytes") export class ReturnBytes implements IReturn { public data: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnBytes'; } public getMethod() { return 'POST'; } public createResponse() { return new Uint8Array(0); } } // @Route("/return/stream") export class ReturnStream implements IReturn { public data: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnStream'; } public getMethod() { return 'POST'; } public createResponse() { return new Blob(); } } // @Route("/return/json") export class ReturnJson { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnJson'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/return/json/header") export class ReturnJsonHeader { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'ReturnJsonHeader'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/write/json") export class WriteJson { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'WriteJson'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/Request1", "GET") export class GetRequest1 implements IReturn, IGet { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetRequest1'; } public getMethod() { return 'GET'; } public createResponse() { return new Array(); } } // @Route("/Request2", "GET") export class GetRequest2 implements IReturn, IGet { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetRequest2'; } public getMethod() { return 'GET'; } public createResponse() { return new Array(); } } // @Route("/sendjson") export class SendJson implements IReturn { public id: number; public name: string; public requestStream: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendJson'; } public getMethod() { return 'POST'; } public createResponse() { return ''; } } // @Route("/sendtext") export class SendText implements IReturn { public id: number; public name: string; public contentType: string; public requestStream: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendText'; } public getMethod() { return 'POST'; } public createResponse() { return ''; } } // @Route("/sendraw") export class SendRaw implements IReturn { public id: number; public name: string; public contentType: string; public requestStream: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendRaw'; } public getMethod() { return 'POST'; } public createResponse() { return new Uint8Array(0); } } export class SendDefault implements IReturn { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendDefault'; } public getMethod() { return 'POST'; } public createResponse() { return new SendVerbResponse(); } } // @Route("/sendrestget/{Id}", "GET") export class SendRestGet implements IReturn, IGet { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendRestGet'; } public getMethod() { return 'GET'; } public createResponse() { return new SendVerbResponse(); } } export class SendGet implements IReturn, IGet { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendGet'; } public getMethod() { return 'GET'; } public createResponse() { return new SendVerbResponse(); } } export class SendPost implements IReturn, IPost { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendPost'; } public getMethod() { return 'POST'; } public createResponse() { return new SendVerbResponse(); } } export class SendPut implements IReturn, IPut { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendPut'; } public getMethod() { return 'PUT'; } public createResponse() { return new SendVerbResponse(); } } export class SendReturnVoid implements IReturnVoid { public id: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'SendReturnVoid'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/session") export class GetSession implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetSession'; } public getMethod() { return 'POST'; } public createResponse() { return new GetSessionResponse(); } } // @Route("/session/edit/{CustomName}") export class UpdateSession implements IReturn { public customName: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'UpdateSession'; } public getMethod() { return 'POST'; } public createResponse() { return new GetSessionResponse(); } } // @Route("/Stuff") // @DataContract(Namespace="http://schemas.servicestack.net/types") export class GetStuff implements IReturn { // @DataMember // @ApiMember(DataType="DateTime", Name="Summary Date") public summaryDate?: string; // @DataMember // @ApiMember(DataType="DateTime", Name="Summary End Date") public summaryEndDate?: string; // @DataMember // @ApiMember(DataType="string", Name="Symbol") public symbol: string; // @DataMember // @ApiMember(DataType="string", Name="Email") public email: string; // @DataMember // @ApiMember(DataType="bool", Name="Is Enabled") public isEnabled?: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'GetStuff'; } public getMethod() { return 'POST'; } public createResponse() { return new GetStuffResponse(); } } export class StoreLogs implements IReturn { public loggers: Logger[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'StoreLogs'; } public getMethod() { return 'POST'; } public createResponse() { return new StoreLogsResponse(); } } export class HelloAuth implements IReturn { public name: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HelloAuth'; } public getMethod() { return 'POST'; } public createResponse() { return new HelloResponse(); } } // @Route("/testauth") export class TestAuth implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'TestAuth'; } public getMethod() { return 'POST'; } public createResponse() { return new TestAuthResponse(); } } // @Route("/testdata/AllTypes") export class TestDataAllTypes implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'TestDataAllTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new AllTypes(); } } // @Route("/testdata/AllCollectionTypes") export class TestDataAllCollectionTypes implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'TestDataAllCollectionTypes'; } public getMethod() { return 'POST'; } public createResponse() { return new AllCollectionTypes(); } } // @Route("/void-response") export class TestVoidResponse { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'TestVoidResponse'; } public getMethod() { return 'POST'; } public createResponse() {} } // @Route("/null-response") export class TestNullResponse { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'TestNullResponse'; } public getMethod() { return 'POST'; } public createResponse() {} } /** @description Sign Up */ // @Route("/register", "PUT,POST") // @Api(Description="Sign Up") // @DataContract export class Register implements IReturn, IPost { // @DataMember(Order=1) public userName: string; // @DataMember(Order=2) public firstName: string; // @DataMember(Order=3) public lastName: string; // @DataMember(Order=4) public displayName: string; // @DataMember(Order=5) public email: string; // @DataMember(Order=6) public password: string; // @DataMember(Order=7) public confirmPassword: string; // @DataMember(Order=8) public autoLogin?: boolean; // @DataMember(Order=10) public errorView: string; // @DataMember(Order=11) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Register'; } public getMethod() { return 'POST'; } public createResponse() { return new RegisterResponse(); } } /** @description Sign In */ // @Route("/auth", "GET,POST") // @Route("/auth/{provider}", "GET,POST") // @Api(Description="Sign In") // @DataContract export class Authenticate implements IReturn, IPost { /** @description AuthProvider, e.g. credentials */ // @DataMember(Order=1) public provider: string; // @DataMember(Order=2) public userName: string; // @DataMember(Order=3) public password: string; // @DataMember(Order=4) public rememberMe?: boolean; // @DataMember(Order=5) public accessToken: string; // @DataMember(Order=6) public accessTokenSecret: string; // @DataMember(Order=7) public returnUrl: string; // @DataMember(Order=8) public errorView: string; // @DataMember(Order=9) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Authenticate'; } public getMethod() { return 'POST'; } public createResponse() { return new AuthenticateResponse(); } } // @Route("/assignroles", "POST") // @DataContract export class AssignRoles implements IReturn, IPost { // @DataMember(Order=1) public userName: string; // @DataMember(Order=2) public permissions: string[]; // @DataMember(Order=3) public roles: string[]; // @DataMember(Order=4) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'AssignRoles'; } public getMethod() { return 'POST'; } public createResponse() { return new AssignRolesResponse(); } } // @Route("/unassignroles", "POST") // @DataContract export class UnAssignRoles implements IReturn, IPost { // @DataMember(Order=1) public userName: string; // @DataMember(Order=2) public permissions: string[]; // @DataMember(Order=3) public roles: string[]; // @DataMember(Order=4) public meta: { [index: string]: string; }; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'UnAssignRoles'; } public getMethod() { return 'POST'; } public createResponse() { return new UnAssignRolesResponse(); } } export class QueryRockstarAudit extends QueryDbTenant_2 implements IReturn> { public id?: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryRockstarAudit'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } } export class QueryRockstarAuditSubOr extends QueryDb_2 implements IReturn> { public firstNameStartsWith: string; public ageOlderThan?: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryRockstarAuditSubOr'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } } export class QueryPocoBase extends QueryDb_1 implements IReturn> { public id: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryPocoBase'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } } export class QueryPocoIntoBase extends QueryDb_2 implements IReturn> { public id: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryPocoIntoBase'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } } // @Route("/message/query/{Id}", "GET") export class MessageQuery extends QueryDb_1 implements IReturn> { public id: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'MessageQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } } // @Route("/rockstars", "GET") export class QueryRockstars extends QueryDb_1 implements IReturn> { public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'QueryRockstars'; } public getMethod() { return 'GET'; } public createResponse() { return new QueryResponse(); } } export class CreateRockstarAudit extends RockstarBase implements IReturn, ICreateDb { public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'CreateRockstarAudit'; } public getMethod() { return 'POST'; } public createResponse() { return new RockstarWithIdResponse(); } } export class CreateRockstarAuditTenant extends CreateAuditTenantBase implements IReturn, IHasSessionId { public sessionId: string; public firstName: string; public lastName: string; public age?: number; public dateOfBirth: string; public dateDied?: string; public livingStatus: LivingStatus; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'CreateRockstarAuditTenant'; } public getMethod() { return 'POST'; } public createResponse() { return new RockstarWithIdAndResultResponse(); } } export class UpdateRockstarAuditTenant extends UpdateAuditTenantBase implements IReturn, IHasSessionId { public sessionId: string; public id: number; public firstName: string; public livingStatus?: LivingStatus; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'UpdateRockstarAuditTenant'; } public getMethod() { return 'PUT'; } public createResponse() { return new RockstarWithIdAndResultResponse(); } } export class PatchRockstarAuditTenant extends PatchAuditTenantBase implements IReturn, IHasSessionId { public sessionId: string; public id: number; public firstName: string; public livingStatus?: LivingStatus; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'PatchRockstarAuditTenant'; } public getMethod() { return 'PATCH'; } public createResponse() { return new RockstarWithIdAndResultResponse(); } } export class SoftDeleteAuditTenant extends SoftDeleteAuditTenantBase implements IReturn { public id: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'SoftDeleteAuditTenant'; } public getMethod() { return 'PUT'; } public createResponse() { return new RockstarWithIdAndResultResponse(); } } export class CreateRockstarAuditMqToken extends RockstarBase implements IReturn, ICreateDb, IHasBearerToken { public bearerToken: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'CreateRockstarAuditMqToken'; } public getMethod() { return 'POST'; } public createResponse() { return new RockstarWithIdResponse(); } } export class RealDeleteAuditTenant implements IReturn, IDeleteDb, IHasSessionId { public sessionId: string; public id: number; public age?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'RealDeleteAuditTenant'; } public getMethod() { return 'DELETE'; } public createResponse() { return new RockstarWithIdAndCountResponse(); } } export class CreateRockstarVersion extends RockstarBase implements IReturn, ICreateDb { public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'CreateRockstarVersion'; } public getMethod() { return 'POST'; } public createResponse() { return new RockstarWithIdAndRowVersionResponse(); } }