You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Set to true to include status code in response: {status: response.status, response: model}
/// </summary>
publicboolIncludeStatusCode{get;set;}=false;
/// <summary>
/// Create files by PostgreSQL schema. File name will use formatted FilePath where {0} is is the schema name in the pascal case.
/// </summary>
publicboolBySchema{get;set;}=false;
/// <summary>
/// Create separate file with global types {name}Types.d.ts
/// </summary>
publicboolCreateSeparateTypeFile{get;set;}=true;
/// <summary>
/// Emit request/response (and composite) interfaces with the `export` keyword so they can be imported by other modules.
/// When false (default), interfaces are emitted as plain `interface` declarations (module-private when inline, ambient/global in the separate `.d.ts` file).
/// When true and CreateSeparateTypeFile is true, the separate type file becomes an importable module (`{name}Types.ts` with `export interface`) instead of an ambient `{name}Types.d.ts`, and the generated client file imports the named types from it.
/// Has no effect when SkipTypes is true.
/// </summary>
publicboolExportTypes{get;set;}=false;
/// <summary>
/// Lines to add to each header. {0} format placeholder is current timestamp
/// </summary>
publicList<string>HeaderLines{get;set;}=["// autogenerated at {0}","",""];
/// <summary>
/// Module name to import "baseUrl" constant, instead of defining it in a module.
/// </summary>
publicstring?ImportBaseUrlFrom{get;set;}=null;
/// <summary>
/// Module name to import "pasreQuery" function, instead of defining it in a module.
/// </summary>
publicstring?ImportParseQueryFrom{get;set;}=null;
/// <summary>
/// Include optional parameter `parseUrl: (url: string) => string = url=>url` that will parse constructed url.
/// </summary>
publicboolIncludeParseUrlParam{get;set;}=false;
/// <summary>
/// Include optional parameter `parseRequest: (request: RequestInit) => RequestInit = request=>request` that will parse constructed request.
/// Skip generating types and produce pure JavaScript code. Setting this to true will also change .ts extension to .js where applicable.
/// </summary>
publicboolSkipTypes{get;set;}=false;
/// <summary>
/// Keep TypeScript models unique, meaning, models will same fields and types will be merged into one model with name of the last model. Significantly reduces number of generated models.
/// </summary>
publicboolUniqueModels{get;set;}=false;
/// <summary>
/// Name of the header to use for XSRF token. Set to null to skip.
/// </summary>
publicstring?XsrfTokenHeaderName{get;set;}=null;
/// <summary>
/// Export event sources create functions for streaming events.
/// </summary>
publicboolExportEventSources{get;set;}=true;
/// <summary>
/// List if custom imports to add to the generated code. It adds line to a file. Use full expression like `import { MyType } from './my-type';`
/// </summary>
publicstring[]CustomImports{get;set;}=[];
/// <summary>
/// List if custom headers to add to the each request in generated code. Header key is automatically quoted if it doesn't contain quotes.
/// When true, include PostgreSQL schema name in the generated type names to avoid name collisions. Set to false to simplify type names when no name collisions are expected.
/// </summary>
publicboolIncludeSchemaInNames{get;set;}=false;
/// <summary>
/// Expression to parse error response. Default is "await response.json()".