/* Options: Date: 2025-07-17 23:54:18 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://hcbtas-q-albamfs-api.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostPdfFileRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Margin implements IConvertible { String? top; String? bottom; String? left; String? right; Margin({this.top,this.bottom,this.left,this.right}); Margin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { top = json['top']; bottom = json['bottom']; left = json['left']; right = json['right']; return this; } Map toJson() => { 'top': top, 'bottom': bottom, 'left': left, 'right': right }; getTypeName() => "Margin"; TypeContext? context = _ctx; } class PaperSize implements IConvertible { double? width; double? height; PaperSize({this.width,this.height}); PaperSize.fromJson(Map json) { fromMap(json); } fromMap(Map json) { width = JsonConverters.toDouble(json['width']); height = JsonConverters.toDouble(json['height']); return this; } Map toJson() => { 'width': width, 'height': height }; getTypeName() => "PaperSize"; TypeContext? context = _ctx; } enum PageOrientation { Landscape, Portrait, } enum WaitUntil { Load, DOMContentLoaded, NetworkIdle0, NetworkIdle2, } enum CssMediaType { Print, Screen, } class WaitForSelectorOption implements IConvertible { String? selector; bool? isVisible; WaitForSelectorOption({this.selector,this.isVisible}); WaitForSelectorOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { selector = json['selector']; isVisible = json['isVisible']; return this; } Map toJson() => { 'selector': selector, 'isVisible': isVisible }; getTypeName() => "WaitForSelectorOption"; TypeContext? context = _ctx; } class GeneratePdfOptions implements IConvertible { String? filename; Margin? margin; PaperSize? paperSize; PageOrientation? pageOrientation; bool? displayHeader; bool? displayFooter; bool? displayPagination; String? headerHtml; String? footerHtml; WaitUntil? waitUntil; int? navigationTimeout; CssMediaType? cssMediaType; List? waitForSelectorOptions; bool? hasCustomPdfDate; String? customPdfDate; GeneratePdfOptions({this.filename,this.margin,this.paperSize,this.pageOrientation,this.displayHeader,this.displayFooter,this.displayPagination,this.headerHtml,this.footerHtml,this.waitUntil,this.navigationTimeout,this.cssMediaType,this.waitForSelectorOptions,this.hasCustomPdfDate,this.customPdfDate}); GeneratePdfOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { filename = json['filename']; margin = JsonConverters.fromJson(json['margin'],'Margin',context!); paperSize = JsonConverters.fromJson(json['paperSize'],'PaperSize',context!); pageOrientation = JsonConverters.fromJson(json['pageOrientation'],'PageOrientation',context!); displayHeader = json['displayHeader']; displayFooter = json['displayFooter']; displayPagination = json['displayPagination']; headerHtml = json['headerHtml']; footerHtml = json['footerHtml']; waitUntil = JsonConverters.fromJson(json['waitUntil'],'WaitUntil',context!); navigationTimeout = json['navigationTimeout']; cssMediaType = JsonConverters.fromJson(json['cssMediaType'],'CssMediaType',context!); waitForSelectorOptions = JsonConverters.fromJson(json['waitForSelectorOptions'],'List',context!); hasCustomPdfDate = json['hasCustomPdfDate']; customPdfDate = json['customPdfDate']; return this; } Map toJson() => { 'filename': filename, 'margin': JsonConverters.toJson(margin,'Margin',context!), 'paperSize': JsonConverters.toJson(paperSize,'PaperSize',context!), 'pageOrientation': JsonConverters.toJson(pageOrientation,'PageOrientation',context!), 'displayHeader': displayHeader, 'displayFooter': displayFooter, 'displayPagination': displayPagination, 'headerHtml': headerHtml, 'footerHtml': footerHtml, 'waitUntil': JsonConverters.toJson(waitUntil,'WaitUntil',context!), 'navigationTimeout': navigationTimeout, 'cssMediaType': JsonConverters.toJson(cssMediaType,'CssMediaType',context!), 'waitForSelectorOptions': JsonConverters.toJson(waitForSelectorOptions,'List',context!), 'hasCustomPdfDate': hasCustomPdfDate, 'customPdfDate': customPdfDate }; getTypeName() => "GeneratePdfOptions"; TypeContext? context = _ctx; } abstract class IVirtualDirectory { } abstract class IVirtualPathProvider { IVirtualDirectory? rootDirectory; String? virtualPathSeparator; String? realPathSeparator; } abstract class IVirtualFile { IVirtualPathProvider? virtualPathProvider; String? extension; int? length; } // @flags() class CacheControl { static const CacheControl None = const CacheControl._(0); static const CacheControl Public = const CacheControl._(1); static const CacheControl Private = const CacheControl._(2); static const CacheControl MustRevalidate = const CacheControl._(4); static const CacheControl NoCache = const CacheControl._(8); static const CacheControl NoStore = const CacheControl._(16); static const CacheControl NoTransform = const CacheControl._(32); static const CacheControl ProxyRevalidate = const CacheControl._(64); final int _value; const CacheControl._(this._value); int get value => _value; static List get values => const [None,Public,Private,MustRevalidate,NoCache,NoStore,NoTransform,ProxyRevalidate]; } abstract class IContentTypeWriter { } // @flags() class RequestAttributes { static const RequestAttributes None = const RequestAttributes._(0); static const RequestAttributes Localhost = const RequestAttributes._(1); static const RequestAttributes LocalSubnet = const RequestAttributes._(2); static const RequestAttributes External = const RequestAttributes._(4); static const RequestAttributes Secure = const RequestAttributes._(8); static const RequestAttributes InSecure = const RequestAttributes._(16); static const RequestAttributes AnySecurityMode = const RequestAttributes._(24); static const RequestAttributes HttpHead = const RequestAttributes._(32); static const RequestAttributes HttpGet = const RequestAttributes._(64); static const RequestAttributes HttpPost = const RequestAttributes._(128); static const RequestAttributes HttpPut = const RequestAttributes._(256); static const RequestAttributes HttpDelete = const RequestAttributes._(512); static const RequestAttributes HttpPatch = const RequestAttributes._(1024); static const RequestAttributes HttpOptions = const RequestAttributes._(2048); static const RequestAttributes HttpOther = const RequestAttributes._(4096); static const RequestAttributes AnyHttpMethod = const RequestAttributes._(8160); static const RequestAttributes OneWay = const RequestAttributes._(8192); static const RequestAttributes Reply = const RequestAttributes._(16384); static const RequestAttributes AnyCallStyle = const RequestAttributes._(24576); static const RequestAttributes Soap11 = const RequestAttributes._(32768); static const RequestAttributes Soap12 = const RequestAttributes._(65536); static const RequestAttributes Xml = const RequestAttributes._(131072); static const RequestAttributes Json = const RequestAttributes._(262144); static const RequestAttributes Jsv = const RequestAttributes._(524288); static const RequestAttributes ProtoBuf = const RequestAttributes._(1048576); static const RequestAttributes Csv = const RequestAttributes._(2097152); static const RequestAttributes Html = const RequestAttributes._(4194304); static const RequestAttributes Wire = const RequestAttributes._(8388608); static const RequestAttributes MsgPack = const RequestAttributes._(16777216); static const RequestAttributes FormatOther = const RequestAttributes._(33554432); static const RequestAttributes AnyFormat = const RequestAttributes._(67076096); static const RequestAttributes Http = const RequestAttributes._(67108864); static const RequestAttributes MessageQueue = const RequestAttributes._(134217728); static const RequestAttributes Tcp = const RequestAttributes._(268435456); static const RequestAttributes Grpc = const RequestAttributes._(536870912); static const RequestAttributes EndpointOther = const RequestAttributes._(1073741824); static const RequestAttributes AnyEndpoint = const RequestAttributes._(2080374784); static const RequestAttributes InProcess = const RequestAttributes._(-2147483648); static const RequestAttributes InternalNetworkAccess = const RequestAttributes._(-2147483645); static const RequestAttributes AnyNetworkAccessType = const RequestAttributes._(-2147483641); static const RequestAttributes Any = const RequestAttributes._(-1); final int _value; const RequestAttributes._(this._value); int get value => _value; static List get values => const [None,Localhost,LocalSubnet,External,Secure,InSecure,AnySecurityMode,HttpHead,HttpGet,HttpPost,HttpPut,HttpDelete,HttpPatch,HttpOptions,HttpOther,AnyHttpMethod,OneWay,Reply,AnyCallStyle,Soap11,Soap12,Xml,Json,Jsv,ProtoBuf,Csv,Html,Wire,MsgPack,FormatOther,AnyFormat,Http,MessageQueue,Tcp,Grpc,EndpointOther,AnyEndpoint,InProcess,InternalNetworkAccess,AnyNetworkAccessType,Any]; } abstract class IRequestPreferences { bool? acceptsBrotli; bool? acceptsDeflate; bool? acceptsGzip; } abstract class IRequest { dynamic? originalRequest; IResponse? response; String? operationName; String? verb; RequestAttributes? requestAttributes; IRequestPreferences? requestPreferences; dynamic? dto; String? contentType; bool? isLocal; String? userAgent; Map? cookies; String? responseContentType; bool? hasExplicitResponseContentType; Map? items; NameValueCollection? headers; NameValueCollection? queryString; NameValueCollection? formData; bool? useBufferedStream; String? rawUrl; String? absoluteUri; String? userHostAddress; String? remoteIp; String? authorization; bool? isSecureConnection; List? acceptTypes; String? pathInfo; String? originalPathInfo; Uint8List? inputStream; int? contentLength; List? files; Uri? urlReferrer; } abstract class IResponse { dynamic? originalResponse; IRequest? request; int? statusCode; String? statusDescription; String? contentType; Uint8List? outputStream; dynamic? dto; bool? useBufferedStream; bool? isClosed; bool? keepAlive; bool? hasStarted; Map? items; } class HttpResult implements IConvertible { String? responseText; Uint8List? responseStream; FileInfo? fileInfo; IVirtualFile? virtualFile; String? contentType; Map? headers; List? cookies; String? eTag; Duration? age; Duration? maxAge; DateTime? expires; DateTime? lastModified; CacheControl? cacheControl; Func? resultScope; bool? allowsPartialResponse; Map? options; int? status; HttpStatusCode? statusCode; String? statusDescription; dynamic? response; IContentTypeWriter? responseFilter; IRequest? requestContext; String? view; String? template; int? paddingLength; bool? isPartialRequest; HttpResult({this.responseText,this.responseStream,this.fileInfo,this.virtualFile,this.contentType,this.headers,this.cookies,this.eTag,this.age,this.maxAge,this.expires,this.lastModified,this.cacheControl,this.resultScope,this.allowsPartialResponse,this.options,this.status,this.statusCode,this.statusDescription,this.response,this.responseFilter,this.requestContext,this.view,this.template,this.paddingLength,this.isPartialRequest}); HttpResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseText = json['responseText']; responseStream = JsonConverters.fromJson(json['responseStream'],'Uint8List',context!); fileInfo = JsonConverters.fromJson(json['fileInfo'],'FileInfo',context!); virtualFile = JsonConverters.fromJson(json['virtualFile'],'IVirtualFile',context!); contentType = json['contentType']; headers = JsonConverters.toStringMap(json['headers']); cookies = JsonConverters.fromJson(json['cookies'],'List',context!); eTag = json['eTag']; age = JsonConverters.fromJson(json['age'],'Duration',context!); maxAge = JsonConverters.fromJson(json['maxAge'],'Duration',context!); expires = JsonConverters.fromJson(json['expires'],'DateTime',context!); lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!); cacheControl = JsonConverters.fromJson(json['cacheControl'],'CacheControl',context!); resultScope = JsonConverters.fromJson(json['resultScope'],'Func',context!); allowsPartialResponse = json['allowsPartialResponse']; options = JsonConverters.fromJson(json['options'],'Map',context!); status = json['status']; statusCode = JsonConverters.fromJson(json['statusCode'],'HttpStatusCode',context!); statusDescription = json['statusDescription']; response = JsonConverters.fromJson(json['response'],'dynamic',context!); responseFilter = JsonConverters.fromJson(json['responseFilter'],'IContentTypeWriter',context!); requestContext = JsonConverters.fromJson(json['requestContext'],'IRequest',context!); view = json['view']; template = json['template']; paddingLength = json['paddingLength']; isPartialRequest = json['isPartialRequest']; return this; } Map toJson() => { 'responseText': responseText, 'responseStream': JsonConverters.toJson(responseStream,'Uint8List',context!), 'fileInfo': JsonConverters.toJson(fileInfo,'FileInfo',context!), 'virtualFile': JsonConverters.toJson(virtualFile,'IVirtualFile',context!), 'contentType': contentType, 'headers': headers, 'cookies': JsonConverters.toJson(cookies,'List',context!), 'eTag': eTag, 'age': JsonConverters.toJson(age,'Duration',context!), 'maxAge': JsonConverters.toJson(maxAge,'Duration',context!), 'expires': JsonConverters.toJson(expires,'DateTime',context!), 'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!), 'cacheControl': JsonConverters.toJson(cacheControl,'CacheControl',context!), 'resultScope': JsonConverters.toJson(resultScope,'Func',context!), 'allowsPartialResponse': allowsPartialResponse, 'options': JsonConverters.toJson(options,'Map',context!), 'status': status, 'statusCode': JsonConverters.toJson(statusCode,'HttpStatusCode',context!), 'statusDescription': statusDescription, 'response': JsonConverters.toJson(response,'dynamic',context!), 'responseFilter': JsonConverters.toJson(responseFilter,'IContentTypeWriter',context!), 'requestContext': JsonConverters.toJson(requestContext,'IRequest',context!), 'view': view, 'template': template, 'paddingLength': paddingLength, 'isPartialRequest': isPartialRequest }; getTypeName() => "HttpResult"; TypeContext? context = _ctx; } // @Route("/pdf/file", "POST") class PostPdfFileRequest implements IReturn, IConvertible { String? url; GeneratePdfOptions? options; PostPdfFileRequest({this.url,this.options}); PostPdfFileRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { url = json['url']; options = JsonConverters.fromJson(json['options'],'GeneratePdfOptions',context!); return this; } Map toJson() => { 'url': url, 'options': JsonConverters.toJson(options,'GeneratePdfOptions',context!) }; createResponse() => HttpResult(); getResponseTypeName() => "HttpResult"; getTypeName() => "PostPdfFileRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: { 'Margin': TypeInfo(TypeOf.Class, create:() => Margin()), 'PaperSize': TypeInfo(TypeOf.Class, create:() => PaperSize()), 'PageOrientation': TypeInfo(TypeOf.Enum, enumValues:PageOrientation.values), 'WaitUntil': TypeInfo(TypeOf.Enum, enumValues:WaitUntil.values), 'CssMediaType': TypeInfo(TypeOf.Enum, enumValues:CssMediaType.values), 'WaitForSelectorOption': TypeInfo(TypeOf.Class, create:() => WaitForSelectorOption()), 'GeneratePdfOptions': TypeInfo(TypeOf.Class, create:() => GeneratePdfOptions()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'IVirtualDirectory': TypeInfo(TypeOf.Interface), 'IVirtualPathProvider': TypeInfo(TypeOf.Interface), 'IVirtualFile': TypeInfo(TypeOf.Interface), 'CacheControl': TypeInfo(TypeOf.Enum, enumValues:CacheControl.values), 'IContentTypeWriter': TypeInfo(TypeOf.Interface), 'RequestAttributes': TypeInfo(TypeOf.Enum, enumValues:RequestAttributes.values), 'IRequestPreferences': TypeInfo(TypeOf.Interface), 'IRequest': TypeInfo(TypeOf.Interface), 'IResponse': TypeInfo(TypeOf.Interface), 'HttpResult': TypeInfo(TypeOf.Class, create:() => HttpResult()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'FileInfo': TypeInfo(TypeOf.Class, create:() => FileInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Cookie': TypeInfo(TypeOf.Class, create:() => Cookie()), 'Func': TypeInfo(TypeOf.Class, create:() => Func()), 'IDisposable': TypeInfo(TypeOf.Class, create:() => IDisposable()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'PostPdfFileRequest': TypeInfo(TypeOf.Class, create:() => PostPdfFileRequest()), });