react-query-lightbase-codegen 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/import-open-api.js +10 -10
- package/lib/esm/import-open-api.js +10 -10
- package/package.json +1 -1
|
@@ -432,7 +432,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
432
432
|
use${componentName}Query.updateCache = (
|
|
433
433
|
{params, updater, options}:
|
|
434
434
|
{params: ${componentName}Variables,
|
|
435
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
435
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
436
436
|
options?: SetDataOptions | undefined}
|
|
437
437
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
438
438
|
|
|
@@ -483,7 +483,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
483
483
|
use${componentName}Query.updateCache = (
|
|
484
484
|
{params, updater, options}:
|
|
485
485
|
{params: ${componentName}Variables,
|
|
486
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
486
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
487
487
|
options?: SetDataOptions | undefined}
|
|
488
488
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
489
489
|
|
|
@@ -524,7 +524,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
524
524
|
use${componentName}Query.queryKey = (): QueryKey => use${componentName}Query.baseKey()
|
|
525
525
|
|
|
526
526
|
use${componentName}Query.updateCache = ({updater, options}:
|
|
527
|
-
{updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
527
|
+
{updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
528
528
|
options?: SetDataOptions | undefined}
|
|
529
529
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(), updater, options);
|
|
530
530
|
|
|
@@ -576,7 +576,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
576
576
|
use${componentName}Query.updateCache = (
|
|
577
577
|
{params, updater, options}:
|
|
578
578
|
{params: ${componentName}Variables,
|
|
579
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
579
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
580
580
|
options?: SetDataOptions | undefined}
|
|
581
581
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
582
582
|
|
|
@@ -617,7 +617,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
617
617
|
use${componentName}Query.updateCache = (
|
|
618
618
|
{params, updater, options}:
|
|
619
619
|
{params: ${componentName}Variables,
|
|
620
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
620
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
621
621
|
options?: SetDataOptions | undefined}
|
|
622
622
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
623
623
|
|
|
@@ -670,7 +670,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
670
670
|
use${componentName}Query.updateCache = (
|
|
671
671
|
{params, updater, options}:
|
|
672
672
|
{params: ${componentName}Variables,
|
|
673
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
673
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
674
674
|
options?: SetDataOptions | undefined}
|
|
675
675
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
676
676
|
|
|
@@ -723,7 +723,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
723
723
|
use${componentName}Query.updateCache = (
|
|
724
724
|
{params, updater, options}:
|
|
725
725
|
{params: ${componentName}Variables,
|
|
726
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
726
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
727
727
|
options?: SetDataOptions | undefined}
|
|
728
728
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
729
729
|
|
|
@@ -785,7 +785,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
785
785
|
use${componentName}Query.updateCache = (
|
|
786
786
|
{params, updater, options}:
|
|
787
787
|
{params: ${componentName}Variables,
|
|
788
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
788
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
789
789
|
options?: SetDataOptions | undefined}
|
|
790
790
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
791
791
|
|
|
@@ -841,7 +841,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
841
841
|
use${componentName}Query.updateCache = (
|
|
842
842
|
{params, updater, options}:
|
|
843
843
|
{params: ${componentName}Variables,
|
|
844
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
844
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
845
845
|
options?: SetDataOptions | undefined}
|
|
846
846
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
847
847
|
|
|
@@ -895,7 +895,7 @@ const generateRestfulComponent = ({ operation, verb, route, operationIds, parame
|
|
|
895
895
|
use${componentName}Query.updateCache = (
|
|
896
896
|
{params, updater, options}:
|
|
897
897
|
{params: ${componentName}Variables,
|
|
898
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
898
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
899
899
|
options?: SetDataOptions | undefined}
|
|
900
900
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
901
901
|
|
|
@@ -412,7 +412,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
412
412
|
use${componentName}Query.updateCache = (
|
|
413
413
|
{params, updater, options}:
|
|
414
414
|
{params: ${componentName}Variables,
|
|
415
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
415
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
416
416
|
options?: SetDataOptions | undefined}
|
|
417
417
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
418
418
|
|
|
@@ -463,7 +463,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
463
463
|
use${componentName}Query.updateCache = (
|
|
464
464
|
{params, updater, options}:
|
|
465
465
|
{params: ${componentName}Variables,
|
|
466
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
466
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
467
467
|
options?: SetDataOptions | undefined}
|
|
468
468
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
469
469
|
|
|
@@ -504,7 +504,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
504
504
|
use${componentName}Query.queryKey = (): QueryKey => use${componentName}Query.baseKey()
|
|
505
505
|
|
|
506
506
|
use${componentName}Query.updateCache = ({updater, options}:
|
|
507
|
-
{updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
507
|
+
{updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
508
508
|
options?: SetDataOptions | undefined}
|
|
509
509
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(), updater, options);
|
|
510
510
|
|
|
@@ -556,7 +556,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
556
556
|
use${componentName}Query.updateCache = (
|
|
557
557
|
{params, updater, options}:
|
|
558
558
|
{params: ${componentName}Variables,
|
|
559
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
559
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
560
560
|
options?: SetDataOptions | undefined}
|
|
561
561
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
562
562
|
|
|
@@ -597,7 +597,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
597
597
|
use${componentName}Query.updateCache = (
|
|
598
598
|
{params, updater, options}:
|
|
599
599
|
{params: ${componentName}Variables,
|
|
600
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
600
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
601
601
|
options?: SetDataOptions | undefined}
|
|
602
602
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
603
603
|
|
|
@@ -650,7 +650,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
650
650
|
use${componentName}Query.updateCache = (
|
|
651
651
|
{params, updater, options}:
|
|
652
652
|
{params: ${componentName}Variables,
|
|
653
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
653
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
654
654
|
options?: SetDataOptions | undefined}
|
|
655
655
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
656
656
|
|
|
@@ -703,7 +703,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
703
703
|
use${componentName}Query.updateCache = (
|
|
704
704
|
{params, updater, options}:
|
|
705
705
|
{params: ${componentName}Variables,
|
|
706
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
706
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
707
707
|
options?: SetDataOptions | undefined}
|
|
708
708
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
709
709
|
|
|
@@ -765,7 +765,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
765
765
|
use${componentName}Query.updateCache = (
|
|
766
766
|
{params, updater, options}:
|
|
767
767
|
{params: ${componentName}Variables,
|
|
768
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
768
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
769
769
|
options?: SetDataOptions | undefined}
|
|
770
770
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
771
771
|
|
|
@@ -821,7 +821,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
821
821
|
use${componentName}Query.updateCache = (
|
|
822
822
|
{params, updater, options}:
|
|
823
823
|
{params: ${componentName}Variables,
|
|
824
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
824
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
825
825
|
options?: SetDataOptions | undefined}
|
|
826
826
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
827
827
|
|
|
@@ -875,7 +875,7 @@ export const generateRestfulComponent = ({ operation, verb, route, operationIds,
|
|
|
875
875
|
use${componentName}Query.updateCache = (
|
|
876
876
|
{params, updater, options}:
|
|
877
877
|
{params: ${componentName}Variables,
|
|
878
|
-
updater: Updater<${componentName}Return | undefined, ${componentName}Return>,
|
|
878
|
+
updater: Updater<${componentName}Return | undefined, ${componentName}Return | undefined>,
|
|
879
879
|
options?: SetDataOptions | undefined}
|
|
880
880
|
) => queryClient.setQueryData<${componentName}Return>(use${componentName}Query.queryKey(params), updater, options);
|
|
881
881
|
|