@@ -55,6 +55,10 @@ export type NormalizedOutputOptions = {
55
55
baseUrl ?: string ;
56
56
} ;
57
57
58
+ export type NormalizedParamsSerializerOptions = {
59
+ qs ?: Record < string , any > ;
60
+ } ;
61
+
58
62
export type NormalizedOverrideOutput = {
59
63
title ?: ( title : string ) => string ;
60
64
transformer ?: OutputTransformer ;
@@ -74,6 +78,8 @@ export type NormalizedOverrideOutput = {
74
78
header : false | ( ( info : InfoObject ) => string [ ] | string ) ;
75
79
formData : boolean | NormalizedMutator ;
76
80
formUrlEncoded : boolean | NormalizedMutator ;
81
+ paramsSerializer ?: NormalizedMutator ;
82
+ paramsSerializerOptions ?: NormalizedParamsSerializerOptions ;
77
83
components : {
78
84
schemas : {
79
85
suffix : string ;
@@ -133,6 +139,7 @@ export type NormalizedOperationOptions = {
133
139
) => string ;
134
140
formData ?: boolean | NormalizedMutator ;
135
141
formUrlEncoded ?: boolean | NormalizedMutator ;
142
+ paramsSerializer ?: NormalizedMutator ;
136
143
requestOptions ?: object | boolean ;
137
144
} ;
138
145
@@ -238,6 +245,10 @@ export type MutatorObject = {
238
245
239
246
export type Mutator = string | MutatorObject ;
240
247
248
+ export type ParamsSerializerOptions = {
249
+ qs ?: Record < string , any > ;
250
+ } ;
251
+
241
252
export type OverrideOutput = {
242
253
title ?: ( title : string ) => string ;
243
254
transformer ?: OutputTransformer ;
@@ -257,6 +268,8 @@ export type OverrideOutput = {
257
268
header ?: boolean | ( ( info : InfoObject ) => string [ ] | string ) ;
258
269
formData ?: boolean | Mutator ;
259
270
formUrlEncoded ?: boolean | Mutator ;
271
+ paramsSerializer ?: Mutator ;
272
+ paramsSerializerOptions ?: ParamsSerializerOptions ;
260
273
components ?: {
261
274
schemas ?: {
262
275
suffix ?: string ;
@@ -355,6 +368,7 @@ export type OperationOptions = {
355
368
) => string ;
356
369
formData ?: boolean | Mutator ;
357
370
formUrlEncoded ?: boolean | Mutator ;
371
+ paramsSerializer ?: Mutator ;
358
372
requestOptions ?: object | boolean ;
359
373
} ;
360
374
@@ -487,6 +501,7 @@ export type GeneratorTarget = {
487
501
clientMutators ?: GeneratorMutator [ ] ;
488
502
formData ?: GeneratorMutator [ ] ;
489
503
formUrlEncoded ?: GeneratorMutator [ ] ;
504
+ paramsSerializer ?: GeneratorMutator [ ] ;
490
505
} ;
491
506
492
507
export type GeneratorTargetFull = {
@@ -501,6 +516,7 @@ export type GeneratorTargetFull = {
501
516
clientMutators ?: GeneratorMutator [ ] ;
502
517
formData ?: GeneratorMutator [ ] ;
503
518
formUrlEncoded ?: GeneratorMutator [ ] ;
519
+ paramsSerializer ?: GeneratorMutator [ ] ;
504
520
} ;
505
521
506
522
export type GeneratorOperation = {
@@ -513,6 +529,7 @@ export type GeneratorOperation = {
513
529
clientMutators ?: GeneratorMutator [ ] ;
514
530
formData ?: GeneratorMutator ;
515
531
formUrlEncoded ?: GeneratorMutator ;
532
+ paramsSerializer ?: GeneratorMutator ;
516
533
operationName : string ;
517
534
types ?: {
518
535
result : ( title ?: string ) => string ;
@@ -535,6 +552,7 @@ export type GeneratorVerbOptions = {
535
552
mutator ?: GeneratorMutator ;
536
553
formData ?: GeneratorMutator ;
537
554
formUrlEncoded ?: GeneratorMutator ;
555
+ paramsSerializer ?: GeneratorMutator ;
538
556
override : NormalizedOverrideOutput ;
539
557
deprecated ?: boolean ;
540
558
originalOperation : OperationObject ;
@@ -601,6 +619,7 @@ export type ClientTitleBuilder = (title: string) => string;
601
619
602
620
export type ClientDependenciesBuilder = (
603
621
hasGlobalMutator : boolean ,
622
+ hasParamsSerializerOptions : boolean ,
604
623
packageJson ?: PackageJson ,
605
624
) => GeneratorDependency [ ] ;
606
625
@@ -817,6 +836,7 @@ export type GeneratorClientImports = (data: {
817
836
hasSchemaDir : boolean ;
818
837
isAllowSyntheticDefaultImports : boolean ;
819
838
hasGlobalMutator : boolean ;
839
+ hasParamsSerializerOptions : boolean ;
820
840
packageJson ?: PackageJson ;
821
841
} ) => string ;
822
842
0 commit comments