File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ export const createHook = ({
366
366
if ( ! requestBodyComponent && ! paramsInPath . length && ! queryParam && headerParam ) {
367
367
const config = isUpdateRequest ? 'null,{headers}' : '{headers}' ;
368
368
output += `
369
- export type ${ componentName } Params = {
369
+ export type ${ componentName } Params = {
370
370
${ headerParam }
371
371
};
372
372
@@ -419,7 +419,7 @@ export const createHook = ({
419
419
output += `
420
420
export type ${ componentName } Params = ${ body } & {
421
421
${ headerParam }
422
- ${ paramsTypes }
422
+ ${ queryParamsType }
423
423
};
424
424
export const ${ fetchName } = async (${ bodyProps } : ${ componentName } Params) => {
425
425
${ generateBodyProps ( ) }
@@ -450,6 +450,7 @@ export const createHook = ({
450
450
export type ${ componentName } Params = ${ body } & {
451
451
${ headerParam }
452
452
${ paramsTypes }
453
+ ${ queryParamsType }
453
454
};
454
455
455
456
export const ${ fetchName } = async (${ bodyProps } : ${ componentName } Params) => {
Original file line number Diff line number Diff line change 1
1
import { importSpecs } from '../dist/importSpecs.js' ;
2
2
3
3
importSpecs ( {
4
- sourceUrls : [
5
- {
6
- name : 'locations' ,
7
- url : 'https://developer.yourtravis.com/apis/6551f664dcc3f80001c43645/documentation/raw' ,
8
- } ,
9
- {
10
- name : 'bookings' ,
11
- url : 'https://developer.yourtravis.com/apis/65af901265a19f00010aad03/documentation/raw' ,
12
- } ,
13
- {
14
- name : 'driver' ,
15
- url : 'https://developer.yourtravis.com/apis/664df3a089431e0001d72c9b/documentation/raw' ,
16
- } ,
17
- {
18
- name : 'vehicles' ,
19
- url : 'https://developer.yourtravis.com/apis/664df0135b6a0d0001d9bb5e/documentation/raw' ,
20
- } ,
21
- {
22
- name : 'fuel-cards' ,
23
- url : 'https://developer.yourtravis.com/apis/663a39195182e000017f0276/documentation/raw' ,
24
- } ,
25
- ] ,
26
- // sourceDirectory: 'test/specs-private',
4
+ sourceDirectory : 'test/specs-private' ,
27
5
exportDirectory : 'test/generated' ,
28
6
apiDirectory : '../../api' ,
29
7
queryClientDir : '../../queryClient' ,
You can’t perform that action at this time.
0 commit comments