@@ -438,6 +438,69 @@ export class Client<RequestOption> {
438438"
439439` ;
440440
441+ exports [` Typedef with template api.v2.domain 1` ] = `
442+ "//
443+ // Generated by @himenon/openapi-typescript-code-generator
444+ //
445+ // OpenApi : 3.1.0
446+ //
447+ // License : MIT
448+ //
449+
450+
451+ export namespace Schemas {
452+ export type Message = \\" hello\\ " | \\" world\\ " ;
453+ export type QueryParams = \\" a\\ " | \\" b\\ " | \\" c\\ " ;
454+ }
455+ export interface Parameter$getHelloWorld {
456+ /** query word */
457+ word : Schemas .QueryParams ;
458+ }
459+ export interface Response$getHelloWorld$Status$200 {
460+ \\" application/json\\ " : {
461+ message?: Schemas.Message;
462+ };
463+ }
464+ export type ResponseContentType$getHelloWorld = keyof Response$getHelloWorld$Status$200;
465+ export interface Params$getHelloWorld {
466+ parameter : Parameter$getHelloWorld ;
467+ }
468+ export type HttpMethod = \\ "GET\\ " | \\ "PUT\\ " | \\ "POST\\ " | \\ "DELETE\\ " | \\ "OPTIONS\\ " | \\ "HEAD\\ " | \\ "PATCH\\ " | \\ "TRACE\\ ";
469+ export interface ObjectLike {
470+ [key : string ]: any ;
471+ }
472+ export interface QueryParameter {
473+ value : any ;
474+ style ?: \\" form\\ " | \\" spaceDelimited\\ " | \\" pipeDelimited\\ " | \\" deepObject\\ " ;
475+ explode : boolean ;
476+ }
477+ export interface QueryParameters {
478+ [key : string ]: QueryParameter ;
479+ }
480+ export type SuccessResponses = Response$getHelloWorld$Status$200;
481+ export namespace ErrorResponse {
482+ export type getHelloWorld = void ;
483+ }
484+ export interface ApiClient<RequestOption > {
485+ request : <T = SuccessResponses >(httpMethod: HttpMethod, url: string, headers: ObjectLike | any, requestBody: ObjectLike | any, queryParameters: QueryParameters | undefined, options?: RequestOption) => Promise<T >;
486+ }
487+ export class Client<RequestOption > {
488+ private baseUrl : string ;
489+ constructor (private apiClient : ApiClient <RequestOption >, baseUrl: string) { this .baseUrl = baseUrl .replace (/ \\\\/ $ / , \\" \\ " ); }
490+ public async getHelloWorld(params: Params$getHelloWorld, option?: RequestOption): Promise<Response$getHelloWorld$Status$200[\\"application/json\\"]> {
491+ const url = this .baseUrl + \` /hello/world\` ;
492+ const headers = {
493+ Accept : \\" application/json\\ "
494+ } ;
495+ const queryParameters: QueryParameters = {
496+ word : { value: params .parameter .word , explode: false }
497+ } ;
498+ return this.apiClient.request(\\ "GET\\ ", url, headers, undefined, queryParameters, option);
499+ }
500+ }
501+ "
502+ ` ;
503+
441504exports [` Typedef with template argo-rollout 1` ] = `
442505"//
443506// Generated by @himenon/openapi-typescript-code-generator
0 commit comments