@kubb/plugin-react-query 5.0.0-alpha.29 → 5.0.0-alpha.30
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/dist/components.d.ts +1 -1
- package/dist/{generators-BYwfalV0.js → generators-BZKMuZRH.js} +26 -21
- package/dist/generators-BZKMuZRH.js.map +1 -0
- package/dist/{generators-CGKLyDDJ.cjs → generators-CeU3eFdF.cjs} +26 -21
- package/dist/generators-CeU3eFdF.cjs.map +1 -0
- package/dist/generators.cjs +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +1 -1
- package/dist/index.cjs +14 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -8
- package/dist/index.js.map +1 -1
- package/dist/{types-BucRSPY5.d.ts → types-DMLrT2SW.d.ts} +11 -1
- package/package.json +7 -7
- package/src/generators/infiniteQueryGenerator.tsx +5 -8
- package/src/generators/mutationGenerator.tsx +5 -13
- package/src/generators/queryGenerator.tsx +5 -8
- package/src/generators/suspenseInfiniteQueryGenerator.tsx +5 -8
- package/src/generators/suspenseQueryGenerator.tsx +5 -8
- package/src/plugin.ts +11 -6
- package/src/types.ts +11 -0
- package/dist/generators-BYwfalV0.js.map +0 -1
- package/dist/generators-CGKLyDDJ.cjs.map +0 -1
package/dist/components.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./chunk--u3MIqq1.js";
|
|
2
|
-
import { a as MutationKey, i as QueryKey, r as PluginReactQuery, t as Infinite } from "./types-
|
|
2
|
+
import { a as MutationKey, i as QueryKey, r as PluginReactQuery, t as Infinite } from "./types-DMLrT2SW.js";
|
|
3
3
|
import { OperationSchemas } from "@kubb/plugin-oas";
|
|
4
4
|
import { Operation } from "@kubb/oas";
|
|
5
5
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
@@ -302,6 +302,7 @@ const infiniteQueryGenerator = createReactGenerator({
|
|
|
302
302
|
Operation({ config, operation, generator, plugin }) {
|
|
303
303
|
const { options, options: { output } } = plugin;
|
|
304
304
|
const driver = useDriver();
|
|
305
|
+
const root = path.resolve(config.root, config.output.path);
|
|
305
306
|
const oas = useOas();
|
|
306
307
|
const { getSchemas, getName, getFile } = useOperationManager(generator);
|
|
307
308
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -410,7 +411,7 @@ const infiniteQueryGenerator = createReactGenerator({
|
|
|
410
411
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
411
412
|
name: ["fetch"],
|
|
412
413
|
root: query.file.path,
|
|
413
|
-
path: path.resolve(
|
|
414
|
+
path: path.resolve(root, ".kubb/fetch.ts")
|
|
414
415
|
}),
|
|
415
416
|
/* @__PURE__ */ jsx(File.Import, {
|
|
416
417
|
name: [
|
|
@@ -419,13 +420,13 @@ const infiniteQueryGenerator = createReactGenerator({
|
|
|
419
420
|
"ResponseErrorConfig"
|
|
420
421
|
],
|
|
421
422
|
root: query.file.path,
|
|
422
|
-
path: path.resolve(
|
|
423
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
423
424
|
isTypeOnly: true
|
|
424
425
|
}),
|
|
425
426
|
options.client.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
|
|
426
427
|
name: ["ResponseConfig"],
|
|
427
428
|
root: query.file.path,
|
|
428
|
-
path: path.resolve(
|
|
429
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
429
430
|
isTypeOnly: true
|
|
430
431
|
})
|
|
431
432
|
] }),
|
|
@@ -437,7 +438,7 @@ const infiniteQueryGenerator = createReactGenerator({
|
|
|
437
438
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
438
439
|
name: ["buildFormData"],
|
|
439
440
|
root: query.file.path,
|
|
440
|
-
path: path.resolve(
|
|
441
|
+
path: path.resolve(root, ".kubb/config.ts")
|
|
441
442
|
}),
|
|
442
443
|
/* @__PURE__ */ jsx(File.Import, {
|
|
443
444
|
name: [
|
|
@@ -545,6 +546,7 @@ const mutationGenerator = createReactGenerator({
|
|
|
545
546
|
Operation({ config, plugin, operation, generator }) {
|
|
546
547
|
const { options, options: { output } } = plugin;
|
|
547
548
|
const driver = useDriver();
|
|
549
|
+
const root = path.resolve(config.root, config.output.path);
|
|
548
550
|
const oas = useOas();
|
|
549
551
|
const { getSchemas, getName, getFile } = useOperationManager(generator);
|
|
550
552
|
const isQuery = !!options.query && options.query?.methods.some((method) => operation.method === method);
|
|
@@ -637,7 +639,7 @@ const mutationGenerator = createReactGenerator({
|
|
|
637
639
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
638
640
|
name: ["fetch"],
|
|
639
641
|
root: mutation.file.path,
|
|
640
|
-
path: path.resolve(
|
|
642
|
+
path: path.resolve(root, ".kubb/fetch.ts")
|
|
641
643
|
}),
|
|
642
644
|
/* @__PURE__ */ jsx(File.Import, {
|
|
643
645
|
name: [
|
|
@@ -646,13 +648,13 @@ const mutationGenerator = createReactGenerator({
|
|
|
646
648
|
"ResponseErrorConfig"
|
|
647
649
|
],
|
|
648
650
|
root: mutation.file.path,
|
|
649
|
-
path: path.resolve(
|
|
651
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
650
652
|
isTypeOnly: true
|
|
651
653
|
}),
|
|
652
654
|
options.client.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
|
|
653
655
|
name: ["ResponseConfig"],
|
|
654
656
|
root: mutation.file.path,
|
|
655
|
-
path: path.resolve(
|
|
657
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
656
658
|
isTypeOnly: true
|
|
657
659
|
})
|
|
658
660
|
] }),
|
|
@@ -664,7 +666,7 @@ const mutationGenerator = createReactGenerator({
|
|
|
664
666
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
665
667
|
name: ["buildFormData"],
|
|
666
668
|
root: mutation.file.path,
|
|
667
|
-
path: path.resolve(
|
|
669
|
+
path: path.resolve(root, ".kubb/config.ts")
|
|
668
670
|
}),
|
|
669
671
|
options.customOptions && /* @__PURE__ */ jsx(File.Import, {
|
|
670
672
|
name: [options.customOptions.name],
|
|
@@ -756,6 +758,7 @@ const queryGenerator = createReactGenerator({
|
|
|
756
758
|
Operation({ config, plugin, operation, generator }) {
|
|
757
759
|
const { options, options: { output } } = plugin;
|
|
758
760
|
const driver = useDriver();
|
|
761
|
+
const root = path.resolve(config.root, config.output.path);
|
|
759
762
|
const oas = useOas();
|
|
760
763
|
const { getSchemas, getName, getFile } = useOperationManager(generator);
|
|
761
764
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -848,7 +851,7 @@ const queryGenerator = createReactGenerator({
|
|
|
848
851
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
849
852
|
name: ["fetch"],
|
|
850
853
|
root: query.file.path,
|
|
851
|
-
path: path.resolve(
|
|
854
|
+
path: path.resolve(root, ".kubb/fetch.ts")
|
|
852
855
|
}),
|
|
853
856
|
/* @__PURE__ */ jsx(File.Import, {
|
|
854
857
|
name: [
|
|
@@ -857,13 +860,13 @@ const queryGenerator = createReactGenerator({
|
|
|
857
860
|
"ResponseErrorConfig"
|
|
858
861
|
],
|
|
859
862
|
root: query.file.path,
|
|
860
|
-
path: path.resolve(
|
|
863
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
861
864
|
isTypeOnly: true
|
|
862
865
|
}),
|
|
863
866
|
options.client.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
|
|
864
867
|
name: ["ResponseConfig"],
|
|
865
868
|
root: query.file.path,
|
|
866
|
-
path: path.resolve(
|
|
869
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
867
870
|
isTypeOnly: true
|
|
868
871
|
})
|
|
869
872
|
] }),
|
|
@@ -875,7 +878,7 @@ const queryGenerator = createReactGenerator({
|
|
|
875
878
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
876
879
|
name: ["buildFormData"],
|
|
877
880
|
root: query.file.path,
|
|
878
|
-
path: path.resolve(
|
|
881
|
+
path: path.resolve(root, ".kubb/config.ts")
|
|
879
882
|
}),
|
|
880
883
|
options.customOptions && /* @__PURE__ */ jsx(File.Import, {
|
|
881
884
|
name: [options.customOptions.name],
|
|
@@ -970,6 +973,7 @@ const suspenseInfiniteQueryGenerator = createReactGenerator({
|
|
|
970
973
|
Operation({ config, operation, generator, plugin }) {
|
|
971
974
|
const { options, options: { output } } = plugin;
|
|
972
975
|
const driver = useDriver();
|
|
976
|
+
const root = path.resolve(config.root, config.output.path);
|
|
973
977
|
const oas = useOas();
|
|
974
978
|
const { getSchemas, getName, getFile } = useOperationManager(generator);
|
|
975
979
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -1071,7 +1075,7 @@ const suspenseInfiniteQueryGenerator = createReactGenerator({
|
|
|
1071
1075
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
1072
1076
|
name: ["fetch"],
|
|
1073
1077
|
root: query.file.path,
|
|
1074
|
-
path: path.resolve(
|
|
1078
|
+
path: path.resolve(root, ".kubb/fetch.ts")
|
|
1075
1079
|
}),
|
|
1076
1080
|
/* @__PURE__ */ jsx(File.Import, {
|
|
1077
1081
|
name: [
|
|
@@ -1080,13 +1084,13 @@ const suspenseInfiniteQueryGenerator = createReactGenerator({
|
|
|
1080
1084
|
"ResponseErrorConfig"
|
|
1081
1085
|
],
|
|
1082
1086
|
root: query.file.path,
|
|
1083
|
-
path: path.resolve(
|
|
1087
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
1084
1088
|
isTypeOnly: true
|
|
1085
1089
|
}),
|
|
1086
1090
|
options.client.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
|
|
1087
1091
|
name: ["ResponseConfig"],
|
|
1088
1092
|
root: query.file.path,
|
|
1089
|
-
path: path.resolve(
|
|
1093
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
1090
1094
|
isTypeOnly: true
|
|
1091
1095
|
})
|
|
1092
1096
|
] }),
|
|
@@ -1098,7 +1102,7 @@ const suspenseInfiniteQueryGenerator = createReactGenerator({
|
|
|
1098
1102
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
1099
1103
|
name: ["buildFormData"],
|
|
1100
1104
|
root: query.file.path,
|
|
1101
|
-
path: path.resolve(
|
|
1105
|
+
path: path.resolve(root, ".kubb/config.ts")
|
|
1102
1106
|
}),
|
|
1103
1107
|
options.customOptions && /* @__PURE__ */ jsx(File.Import, {
|
|
1104
1108
|
name: [options.customOptions.name],
|
|
@@ -1206,6 +1210,7 @@ const suspenseQueryGenerator = createReactGenerator({
|
|
|
1206
1210
|
Operation({ config, operation, generator, plugin }) {
|
|
1207
1211
|
const { options, options: { output } } = plugin;
|
|
1208
1212
|
const driver = useDriver();
|
|
1213
|
+
const root = path.resolve(config.root, config.output.path);
|
|
1209
1214
|
const oas = useOas();
|
|
1210
1215
|
const { getSchemas, getName, getFile } = useOperationManager(generator);
|
|
1211
1216
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -1306,7 +1311,7 @@ const suspenseQueryGenerator = createReactGenerator({
|
|
|
1306
1311
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
1307
1312
|
name: ["fetch"],
|
|
1308
1313
|
root: query.file.path,
|
|
1309
|
-
path: path.resolve(
|
|
1314
|
+
path: path.resolve(root, ".kubb/fetch.ts")
|
|
1310
1315
|
}),
|
|
1311
1316
|
/* @__PURE__ */ jsx(File.Import, {
|
|
1312
1317
|
name: [
|
|
@@ -1315,13 +1320,13 @@ const suspenseQueryGenerator = createReactGenerator({
|
|
|
1315
1320
|
"ResponseErrorConfig"
|
|
1316
1321
|
],
|
|
1317
1322
|
root: query.file.path,
|
|
1318
|
-
path: path.resolve(
|
|
1323
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
1319
1324
|
isTypeOnly: true
|
|
1320
1325
|
}),
|
|
1321
1326
|
options.client.dataReturnType === "full" && /* @__PURE__ */ jsx(File.Import, {
|
|
1322
1327
|
name: ["ResponseConfig"],
|
|
1323
1328
|
root: query.file.path,
|
|
1324
|
-
path: path.resolve(
|
|
1329
|
+
path: path.resolve(root, ".kubb/fetch.ts"),
|
|
1325
1330
|
isTypeOnly: true
|
|
1326
1331
|
})
|
|
1327
1332
|
] }),
|
|
@@ -1333,7 +1338,7 @@ const suspenseQueryGenerator = createReactGenerator({
|
|
|
1333
1338
|
!shouldUseClientPlugin && /* @__PURE__ */ jsx(File.Import, {
|
|
1334
1339
|
name: ["buildFormData"],
|
|
1335
1340
|
root: query.file.path,
|
|
1336
|
-
path: path.resolve(
|
|
1341
|
+
path: path.resolve(root, ".kubb/config.ts")
|
|
1337
1342
|
}),
|
|
1338
1343
|
options.customOptions && /* @__PURE__ */ jsx(File.Import, {
|
|
1339
1344
|
name: [options.customOptions.name],
|
|
@@ -1423,4 +1428,4 @@ const suspenseQueryGenerator = createReactGenerator({
|
|
|
1423
1428
|
//#endregion
|
|
1424
1429
|
export { infiniteQueryGenerator as a, mutationGenerator as i, suspenseInfiniteQueryGenerator as n, hookOptionsGenerator as o, queryGenerator as r, customHookOptionsFileGenerator as s, suspenseQueryGenerator as t };
|
|
1425
1430
|
|
|
1426
|
-
//# sourceMappingURL=generators-
|
|
1431
|
+
//# sourceMappingURL=generators-BZKMuZRH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generators-BZKMuZRH.js","names":["Client","Client","Client","Client","Client"],"sources":["../src/generators/customHookOptionsFileGenerator.tsx","../src/generators/hookOptionsGenerator.tsx","../src/generators/infiniteQueryGenerator.tsx","../src/generators/mutationGenerator.tsx","../src/generators/queryGenerator.tsx","../src/generators/suspenseInfiniteQueryGenerator.tsx","../src/generators/suspenseQueryGenerator.tsx"],"sourcesContent":["import fs from 'node:fs'\nimport path from 'node:path'\nimport { useDriver } from '@kubb/core/hooks'\nimport type { Operation } from '@kubb/oas'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { File, Function } from '@kubb/react-fabric'\nimport type { PluginReactQuery } from '../types'\n\nexport const customHookOptionsFileGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query-custom-hook-options-file',\n Operations({ operations, generator, plugin, config }) {\n const {\n options,\n options: { output },\n name: pluginName,\n } = plugin\n const driver = useDriver()\n\n const { getFile } = useOperationManager(generator)\n\n if (!options.customOptions) {\n return null\n }\n\n const override = output.override ?? config.output.override ?? false\n const { importPath, name } = options.customOptions\n\n const root = path.resolve(config.root, config.output.path)\n\n const reactQueryImportPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const getHookFilePath = (operations: Operation[]) => {\n const firstOperation = operations[0]\n if (firstOperation != null) {\n // Get the file of the first generated hook\n return getFile(firstOperation, { prefix: 'use' }).path\n }\n // Get the index file of the hooks directory\n return driver.getFile({ name: 'index', extname: '.ts', pluginName }).path\n }\n\n const ensureExtension = (filePath: string, extname: string) => {\n if (path.extname(filePath) === '') {\n return filePath + extname\n }\n return filePath\n }\n\n const getExternalFile = (filePath: string, rootPath: string) => {\n const actualFilePath = ensureExtension(filePath, '.ts')\n return {\n baseName: path.basename(actualFilePath) as `${string}.${string}`,\n name: path.basename(actualFilePath, path.extname(actualFilePath)),\n path: path.resolve(rootPath, actualFilePath),\n }\n }\n\n const basePath = path.dirname(getHookFilePath(operations))\n const file = getExternalFile(importPath, basePath)\n\n if (fs.existsSync(file.path) && !override) {\n return null\n }\n\n return (\n <File baseName={file.baseName} path={file.path}>\n <File.Import name={['QueryClient']} path={reactQueryImportPath} isTypeOnly />\n <File.Import name={['useQueryClient']} path={reactQueryImportPath} />\n <File.Import name={['HookOptions']} root={file.path} path={path.resolve(root, './index.ts')} />\n <File.Source name={file.name} isExportable isIndexable>\n <Function name=\"getCustomHookOptions\" params=\"{ queryClient }: { queryClient: QueryClient }\" returnType=\"Partial<HookOptions>\">\n {`return {\n // TODO: Define custom hook options here\n // Example:\n // useUpdatePetHook: {\n // onSuccess: () => {\n // void queryClient.invalidateQueries({ queryKey: ['pet'] })\n // }\n // }\n }`}\n </Function>\n <Function\n name={name}\n generics=\"T extends keyof HookOptions\"\n params=\"{ hookName, operationId }: { hookName: T, operationId: string }\"\n returnType=\"HookOptions[T]\"\n export\n >\n {`const queryClient = useQueryClient()\n const customOptions = getCustomHookOptions({ queryClient })\n return customOptions[hookName] ?? {}`}\n </Function>\n </File.Source>\n </File>\n )\n },\n})\n","import { useDriver } from '@kubb/core/hooks'\nimport type { Operation } from '@kubb/oas'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { File, Type } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport type { PluginReactQuery } from '../types'\n\nexport const hookOptionsGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query-hook-options',\n Operations({ operations, plugin, generator }) {\n const {\n options,\n options: { output },\n name: pluginName,\n } = plugin\n const driver = useDriver()\n\n const oas = useOas()\n const { getName, getFile } = useOperationManager(generator)\n\n if (!options.customOptions) {\n return null\n }\n\n const name = 'HookOptions'\n const file = driver.getFile({ name, extname: '.ts', pluginName })\n\n const getOperationOptions = (operation: Operation) => {\n const operationOptions = generator.getOptions(operation, operation.method)\n return { ...options, ...operationOptions }\n }\n\n const isQuery = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n return typeof operationOptions.query === 'boolean' ? true : operationOptions.query?.methods.some((method) => operation.method === method)\n }\n\n const isMutation = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n return (\n operationOptions.mutation !== false &&\n !isQuery(operation) &&\n difference(operationOptions.mutation ? operationOptions.mutation.methods : [], operationOptions.query ? operationOptions.query.methods : []).some(\n (method) => operation.method === method,\n )\n )\n }\n\n const isSuspense = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n return !!operationOptions.suspense\n }\n\n const isInfinite = (operation: Operation) => {\n const operationOptions = getOperationOptions(operation)\n const infiniteOptions = operationOptions.infinite && typeof operationOptions.infinite === 'object' ? operationOptions.infinite : undefined\n return !!infiniteOptions\n }\n\n // Query/mutation hooks\n const getHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use' })\n }\n\n const getHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use' })\n }\n\n // Query hooks\n const getQueryHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'QueryOptions' })\n }\n\n const getQueryHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getQueryHookOptions(operation)]} root={file.path} path={getHookFile(operation).path} />\n }\n\n // Mutation hooks\n const getMutationHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'MutationOptions' })\n }\n\n const getMutationHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getMutationHookOptions(operation)]} root={file.path} path={getHookFile(operation).path} />\n }\n\n // Suspense hooks\n const getSuspenseHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use', suffix: 'suspense' })\n }\n\n const getSuspenseHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use', suffix: 'suspense' })\n }\n\n const getSuspenseHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'SuspenseQueryOptions' })\n }\n\n const getSuspenseHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getSuspenseHookOptions(operation)]} root={file.path} path={getSuspenseHookFile(operation).path} />\n }\n\n // Infinite hooks\n const getInfiniteHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use', suffix: 'infinite' })\n }\n\n const getInfiniteHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use', suffix: 'infinite' })\n }\n\n const getInfiniteHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'InfiniteQueryOptions' })\n }\n\n const getInfiniteHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getInfiniteHookOptions(operation)]} root={file.path} path={getInfiniteHookFile(operation).path} />\n }\n\n // Suspense infinite hooks\n const getSuspenseInfiniteHookName = (operation: Operation) => {\n return getName(operation, { type: 'function', prefix: 'use', suffix: 'suspenseInfinite' })\n }\n\n const getSuspenseInfiniteHookFile = (operation: Operation) => {\n return getFile(operation, { prefix: 'use', suffix: 'suspenseInfinite' })\n }\n\n const getSuspenseInfiniteHookOptions = (operation: Operation) => {\n return getName(operation, { type: 'function', suffix: 'SuspenseInfiniteQueryOptions' })\n }\n\n const getSuspenseInfiniteHookOptionsImport = (operation: Operation) => {\n return <File.Import name={[getSuspenseInfiniteHookOptions(operation)]} root={file.path} path={getSuspenseInfiniteHookFile(operation).path} />\n }\n\n const imports = operations\n .flatMap((operation) => {\n if (isQuery(operation)) {\n return [\n getQueryHookOptionsImport(operation),\n isSuspense(operation) ? getSuspenseHookOptionsImport(operation) : undefined,\n isInfinite(operation) ? getInfiniteHookOptionsImport(operation) : undefined,\n isSuspense(operation) && isInfinite(operation) ? getSuspenseInfiniteHookOptionsImport(operation) : undefined,\n ].filter(Boolean)\n }\n if (isMutation(operation)) {\n return [getMutationHookOptionsImport(operation)]\n }\n return []\n })\n .filter(Boolean)\n\n const hookOptions = operations.reduce(\n (acc, operation) => {\n if (isQuery(operation)) {\n acc[getHookName(operation)] = `Partial<ReturnType<typeof ${getQueryHookOptions(operation)}>>`\n if (isSuspense(operation)) {\n acc[getSuspenseHookName(operation)] = `Partial<ReturnType<typeof ${getSuspenseHookOptions(operation)}>>`\n }\n if (isInfinite(operation)) {\n acc[getInfiniteHookName(operation)] = `Partial<ReturnType<typeof ${getInfiniteHookOptions(operation)}>>`\n }\n if (isSuspense(operation) && isInfinite(operation)) {\n acc[getSuspenseInfiniteHookName(operation)] = `Partial<ReturnType<typeof ${getSuspenseInfiniteHookOptions(operation)}>>`\n }\n }\n if (isMutation(operation)) {\n acc[getHookName(operation)] = `Partial<ReturnType<typeof ${getMutationHookOptions(operation)}>>`\n }\n return acc\n },\n {} as Record<string, string>,\n )\n\n return (\n <File\n baseName={file.baseName}\n path={file.path}\n meta={file.meta}\n banner={getBanner({ oas, output, config: driver.config })}\n footer={getFooter({ oas, output })}\n >\n {imports}\n <File.Source name={name} isExportable isIndexable isTypeOnly>\n <Type export name={name}>\n {`{ ${Object.keys(hookOptions).map((key) => `${JSON.stringify(key)}: ${hookOptions[key]}`)} }`}\n </Type>\n </File.Source>\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { useDriver } from '@kubb/core/hooks'\nimport { ClientLegacy as Client, pluginClientName } from '@kubb/plugin-client'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { InfiniteQuery, InfiniteQueryOptions, QueryKey } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const infiniteQueryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-infinite-query',\n Operation({ config, operation, generator, plugin }) {\n const {\n options,\n options: { output },\n } = plugin\n const driver = useDriver()\n const root = path.resolve(config.root, config.output.path)\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n const infiniteOptions = options.infinite && typeof options.infinite === 'object' ? options.infinite : undefined\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, { type: 'function', prefix: 'use', suffix: 'infinite' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use', suffix: 'infinite' }),\n }\n\n const hasClientPlugin = !!driver.getPlugin(pluginClientName)\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginName: pluginClientName,\n })\n : getName(operation, {\n type: 'function',\n suffix: 'infinite',\n }),\n file: getFile(operation, { pluginName: pluginClientName }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'InfiniteQueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'InfiniteQueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'InfiniteQueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginName: pluginTsName }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginName: pluginTsName, type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginName: pluginZodName }),\n schemas: getSchemas(operation, { pluginName: pluginZodName, type: 'function' }),\n }\n\n if (!isQuery || isMutation || !infiniteOptions) {\n return null\n }\n\n const normalizeKey = (key?: string | null) => (key ?? '').replace(/\\?$/, '')\n const queryParam = infiniteOptions.queryParam\n const cursorParam = infiniteOptions.cursorParam\n const queryParamKeys = type.schemas.queryParams?.keys ?? []\n const responseKeys = [...(type.schemas.responses?.flatMap((item) => item.keys ?? []) ?? []), ...(type.schemas.response?.keys ?? [])]\n\n const hasQueryParam = queryParam ? queryParamKeys.some((key) => normalizeKey(key) === queryParam) : false\n const hasCursorParam = cursorParam ? responseKeys.some((key) => normalizeKey(key) === cursorParam) : true\n\n if (!hasQueryParam || !hasCursorParam) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: driver.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n {!shouldUseClientPlugin && <File.Import name={'fetch'} path={options.client.importPath} />}\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n {!shouldUseClientPlugin && <File.Import name={['fetch']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} />}\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(root, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(root, '.kubb/config.ts')} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n {infiniteOptions && (\n <>\n <File.Import name={['InfiniteData']} isTypeOnly path={importPath} />\n <File.Import name={['infiniteQueryOptions']} path={importPath} />\n <InfiniteQueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n cursorParam={infiniteOptions.cursorParam}\n nextParam={infiniteOptions.nextParam}\n previousParam={infiniteOptions.previousParam}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n />\n </>\n )}\n {infiniteOptions && (\n <>\n <File.Import name={['useInfiniteQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'InfiniteQueryObserverOptions', 'UseInfiniteQueryResult']} path={importPath} isTypeOnly />\n <InfiniteQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { useDriver } from '@kubb/core/hooks'\nimport { ClientLegacy as Client, pluginClientName } from '@kubb/plugin-client'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { Mutation, MutationKey } from '../components'\nimport { MutationOptions } from '../components/MutationOptions.tsx'\nimport type { PluginReactQuery } from '../types'\n\nexport const mutationGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query',\n Operation({ config, plugin, operation, generator }) {\n const {\n options,\n options: { output },\n } = plugin\n const driver = useDriver()\n const root = path.resolve(config.root, config.output.path)\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = !!options.query && options.query?.methods.some((method) => operation.method === method)\n const isMutation =\n options.mutation !== false &&\n !isQuery &&\n difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some((method) => operation.method === method)\n\n const importPath = options.mutation ? options.mutation.importPath : '@tanstack/react-query'\n\n const mutation = {\n name: getName(operation, { type: 'function', prefix: 'use' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use' }),\n }\n\n const type = {\n file: getFile(operation, { pluginName: pluginTsName }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginName: pluginTsName, type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginName: pluginZodName }),\n schemas: getSchemas(operation, { pluginName: pluginZodName, type: 'function' }),\n }\n\n const hasClientPlugin = !!driver.getPlugin(pluginClientName)\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginName: pluginClientName,\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginName: pluginClientName }),\n }\n\n const mutationOptions = {\n name: getName(operation, { type: 'function', suffix: 'MutationOptions' }),\n }\n\n const mutationKey = {\n name: getName(operation, { type: 'const', suffix: 'MutationKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'MutationKey' }),\n }\n\n if (!isMutation) {\n return null\n }\n\n return (\n <File\n baseName={mutation.file.baseName}\n path={mutation.file.path}\n meta={mutation.file.meta}\n banner={getBanner({ oas, output, config: driver.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={mutation.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n {!shouldUseClientPlugin && <File.Import name={'fetch'} path={options.client.importPath} />}\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n {!shouldUseClientPlugin && <File.Import name={['fetch']} root={mutation.file.path} path={path.resolve(root, '.kubb/fetch.ts')} />}\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={mutation.file.path}\n path={path.resolve(root, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={mutation.file.path} path={path.resolve(root, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={mutation.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && <File.Import name={['buildFormData']} root={mutation.file.path} path={path.resolve(root, '.kubb/config.ts')} />}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={mutation.file.path}\n path={type.file.path}\n isTypeOnly\n />\n\n <MutationKey\n name={mutationKey.name}\n typeName={mutationKey.typeName}\n operation={operation}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n transformer={options.mutationKey}\n />\n\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['mutationOptions']} path={importPath} />\n\n <MutationOptions\n name={mutationOptions.name}\n clientName={client.name}\n mutationKeyName={mutationKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n />\n {options.mutation && (\n <>\n <File.Import name={['useMutation']} path={importPath} />\n <File.Import name={['UseMutationOptions', 'UseMutationResult', 'QueryClient']} path={importPath} isTypeOnly />\n <Mutation\n name={mutation.name}\n mutationOptionsName={mutationOptions.name}\n typeName={mutation.typeName}\n typeSchemas={type.schemas}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n mutationKeyName={mutationKey.name}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { useDriver } from '@kubb/core/hooks'\nimport { ClientLegacy as Client, pluginClientName } from '@kubb/plugin-client'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { Query, QueryKey, QueryOptions } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const queryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-query',\n Operation({ config, plugin, operation, generator }) {\n const {\n options,\n options: { output },\n } = plugin\n const driver = useDriver()\n const root = path.resolve(config.root, config.output.path)\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, { type: 'function', prefix: 'use' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use' }),\n }\n\n const hasClientPlugin = !!driver.getPlugin(pluginClientName)\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginName: pluginClientName,\n })\n : getName(operation, {\n type: 'function',\n }),\n file: getFile(operation, { pluginName: pluginClientName }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'QueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'QueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'QueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginName: pluginTsName }),\n //todo remove type?\n schemas: getSchemas(operation, {\n pluginName: pluginTsName,\n type: 'type',\n }),\n }\n\n const zod = {\n // grouping is coming from react-query instead of zod option, we need to pass the options of zod instead\n file: getFile(operation, { pluginName: pluginZodName }),\n schemas: getSchemas(operation, {\n pluginName: pluginZodName,\n type: 'function',\n }),\n }\n\n if (!isQuery || isMutation) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: driver.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n {!shouldUseClientPlugin && <File.Import name={'fetch'} path={options.client.importPath} />}\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n {!shouldUseClientPlugin && <File.Import name={['fetch']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} />}\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(root, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(root, '.kubb/config.ts')} />}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n transformer={options.queryKey}\n />\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsType={options.paramsType}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['queryOptions']} path={importPath} />\n <QueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n />\n {options.query && (\n <>\n <File.Import name={['useQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'QueryObserverOptions', 'UseQueryResult', 'QueryClient']} path={importPath} isTypeOnly />\n <Query\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { useDriver } from '@kubb/core/hooks'\nimport { ClientLegacy as Client, pluginClientName } from '@kubb/plugin-client'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { QueryKey, SuspenseInfiniteQuery, SuspenseInfiniteQueryOptions } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const suspenseInfiniteQueryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-suspense-infinite-query',\n Operation({ config, operation, generator, plugin }) {\n const {\n options,\n options: { output },\n } = plugin\n const driver = useDriver()\n const root = path.resolve(config.root, config.output.path)\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n const isSuspense = !!options.suspense\n const infiniteOptions = options.infinite && typeof options.infinite === 'object' ? options.infinite : undefined\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, { type: 'function', prefix: 'use', suffix: 'suspenseInfinite' }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use', suffix: 'suspenseInfinite' }),\n }\n\n const hasClientPlugin = !!driver.getPlugin(pluginClientName)\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginName: pluginClientName,\n })\n : getName(operation, {\n type: 'function',\n suffix: 'suspenseInfinite',\n }),\n file: getFile(operation, { pluginName: pluginClientName }),\n }\n\n const queryOptions = {\n name: getName(operation, { type: 'function', suffix: 'SuspenseInfiniteQueryOptions' }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'SuspenseInfiniteQueryKey' }),\n typeName: getName(operation, { type: 'type', suffix: 'SuspenseInfiniteQueryKey' }),\n }\n\n const type = {\n file: getFile(operation, { pluginName: pluginTsName }),\n //todo remove type?\n schemas: getSchemas(operation, { pluginName: pluginTsName, type: 'type' }),\n }\n\n const zod = {\n file: getFile(operation, { pluginName: pluginZodName }),\n schemas: getSchemas(operation, { pluginName: pluginZodName, type: 'function' }),\n }\n\n if (!isQuery || isMutation || !isSuspense || !infiniteOptions) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: driver.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n {!shouldUseClientPlugin && <File.Import name={'fetch'} path={options.client.importPath} />}\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n {!shouldUseClientPlugin && <File.Import name={['fetch']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} />}\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(root, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(root, '.kubb/config.ts')} />}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n {infiniteOptions && (\n <>\n <File.Import name={['InfiniteData']} isTypeOnly path={importPath} />\n <File.Import name={['infiniteQueryOptions']} path={importPath} />\n <SuspenseInfiniteQueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType || 'data'}\n cursorParam={infiniteOptions.cursorParam}\n nextParam={infiniteOptions.nextParam}\n previousParam={infiniteOptions.previousParam}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n />\n </>\n )}\n {infiniteOptions && (\n <>\n <File.Import name={['useSuspenseInfiniteQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'UseSuspenseInfiniteQueryOptions', 'UseSuspenseInfiniteQueryResult']} path={importPath} isTypeOnly />\n <SuspenseInfiniteQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n customOptions={options.customOptions}\n initialPageParam={infiniteOptions.initialPageParam}\n queryParam={infiniteOptions.queryParam}\n />\n </>\n )}\n </File>\n )\n },\n})\n","import path from 'node:path'\nimport { useDriver } from '@kubb/core/hooks'\nimport { ClientLegacy as Client, pluginClientName } from '@kubb/plugin-client'\nimport { createReactGenerator } from '@kubb/plugin-oas/generators'\nimport { useOas, useOperationManager } from '@kubb/plugin-oas/hooks'\nimport { getBanner, getFooter } from '@kubb/plugin-oas/utils'\nimport { pluginTsName } from '@kubb/plugin-ts'\nimport { pluginZodName } from '@kubb/plugin-zod'\nimport { File } from '@kubb/react-fabric'\nimport { difference } from 'remeda'\nimport { QueryKey, QueryOptions, SuspenseQuery } from '../components'\nimport type { PluginReactQuery } from '../types'\n\nexport const suspenseQueryGenerator = createReactGenerator<PluginReactQuery>({\n name: 'react-suspense-query',\n Operation({ config, operation, generator, plugin }) {\n const {\n options,\n options: { output },\n } = plugin\n const driver = useDriver()\n const root = path.resolve(config.root, config.output.path)\n\n const oas = useOas()\n const { getSchemas, getName, getFile } = useOperationManager(generator)\n\n const isQuery = typeof options.query === 'boolean' ? true : options.query?.methods.some((method) => operation.method === method)\n const isMutation = difference(options.mutation ? options.mutation.methods : [], options.query ? options.query.methods : []).some(\n (method) => operation.method === method,\n )\n\n const isSuspense = !!options.suspense\n\n const importPath = options.query ? options.query.importPath : '@tanstack/react-query'\n\n const query = {\n name: getName(operation, {\n type: 'function',\n prefix: 'use',\n suffix: 'suspense',\n }),\n typeName: getName(operation, { type: 'type' }),\n file: getFile(operation, { prefix: 'use', suffix: 'suspense' }),\n }\n\n const hasClientPlugin = !!driver.getPlugin(pluginClientName)\n // Class-based clients are not compatible with query hooks, so we generate inline clients\n const shouldUseClientPlugin = hasClientPlugin && options.client.clientType !== 'class'\n const client = {\n name: shouldUseClientPlugin\n ? getName(operation, {\n type: 'function',\n pluginName: pluginClientName,\n })\n : getName(operation, {\n type: 'function',\n suffix: 'suspense',\n }),\n file: getFile(operation, { pluginName: pluginClientName }),\n }\n\n const queryOptions = {\n name: getName(operation, {\n type: 'function',\n suffix: 'SuspenseQueryOptions',\n }),\n }\n\n const queryKey = {\n name: getName(operation, { type: 'const', suffix: 'SuspenseQueryKey' }),\n typeName: getName(operation, {\n type: 'type',\n suffix: 'SuspenseQueryKey',\n }),\n }\n\n const type = {\n file: getFile(operation, { pluginName: pluginTsName }),\n //todo remove type?\n schemas: getSchemas(operation, {\n pluginName: pluginTsName,\n type: 'type',\n }),\n }\n\n const zod = {\n file: getFile(operation, { pluginName: pluginZodName }),\n schemas: getSchemas(operation, {\n pluginName: pluginZodName,\n type: 'function',\n }),\n }\n\n if (!isQuery || isMutation || !isSuspense) {\n return null\n }\n\n return (\n <File\n baseName={query.file.baseName}\n path={query.file.path}\n meta={query.file.meta}\n banner={getBanner({ oas, output, config: driver.config })}\n footer={getFooter({ oas, output })}\n >\n {options.parser === 'zod' && (\n <File.Import name={[zod.schemas.response.name, zod.schemas.request?.name].filter(Boolean)} root={query.file.path} path={zod.file.path} />\n )}\n {options.client.importPath ? (\n <>\n {!shouldUseClientPlugin && <File.Import name={'fetch'} path={options.client.importPath} />}\n <File.Import name={['Client', 'RequestConfig', 'ResponseErrorConfig']} path={options.client.importPath} isTypeOnly />\n {options.client.dataReturnType === 'full' && <File.Import name={['ResponseConfig']} path={options.client.importPath} isTypeOnly />}\n </>\n ) : (\n <>\n {!shouldUseClientPlugin && <File.Import name={['fetch']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} />}\n <File.Import\n name={['Client', 'RequestConfig', 'ResponseErrorConfig']}\n root={query.file.path}\n path={path.resolve(root, '.kubb/fetch.ts')}\n isTypeOnly\n />\n {options.client.dataReturnType === 'full' && (\n <File.Import name={['ResponseConfig']} root={query.file.path} path={path.resolve(root, '.kubb/fetch.ts')} isTypeOnly />\n )}\n </>\n )}\n {shouldUseClientPlugin && <File.Import name={[client.name]} root={query.file.path} path={client.file.path} />}\n {!shouldUseClientPlugin && <File.Import name={['buildFormData']} root={query.file.path} path={path.resolve(root, '.kubb/config.ts')} />}\n {options.customOptions && <File.Import name={[options.customOptions.name]} path={options.customOptions.importPath} />}\n <File.Import\n name={[\n type.schemas.request?.name,\n type.schemas.response.name,\n type.schemas.pathParams?.name,\n type.schemas.queryParams?.name,\n type.schemas.headerParams?.name,\n ...(type.schemas.statusCodes?.map((item) => item.name) || []),\n ].filter(Boolean)}\n root={query.file.path}\n path={type.file.path}\n isTypeOnly\n />\n <QueryKey\n name={queryKey.name}\n typeName={queryKey.typeName}\n operation={operation}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n typeSchemas={type.schemas}\n transformer={options.queryKey}\n />\n\n {!shouldUseClientPlugin && (\n <Client\n name={client.name}\n baseURL={options.client.baseURL}\n operation={operation}\n typeSchemas={type.schemas}\n zodSchemas={zod.schemas}\n dataReturnType={options.client.dataReturnType || 'data'}\n paramsCasing={options.client?.paramsCasing || options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n parser={options.parser}\n />\n )}\n <File.Import name={['queryOptions']} path={importPath} />\n <QueryOptions\n name={queryOptions.name}\n clientName={client.name}\n queryKeyName={queryKey.name}\n typeSchemas={type.schemas}\n paramsCasing={options.paramsCasing}\n paramsType={options.paramsType}\n pathParamsType={options.pathParamsType}\n dataReturnType={options.client.dataReturnType}\n />\n {options.suspense && (\n <>\n <File.Import name={['useSuspenseQuery']} path={importPath} />\n <File.Import name={['QueryKey', 'QueryClient', 'UseSuspenseQueryOptions', 'UseSuspenseQueryResult']} path={importPath} isTypeOnly />\n\n <SuspenseQuery\n name={query.name}\n queryOptionsName={queryOptions.name}\n typeSchemas={type.schemas}\n paramsType={options.paramsType}\n paramsCasing={options.paramsCasing}\n pathParamsType={options.pathParamsType}\n operation={operation}\n dataReturnType={options.client.dataReturnType || 'data'}\n queryKeyName={queryKey.name}\n queryKeyTypeName={queryKey.typeName}\n customOptions={options.customOptions}\n />\n </>\n )}\n </File>\n )\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;AASA,MAAa,iCAAiC,qBAAuC;CACnF,MAAM;CACN,WAAW,EAAE,YAAY,WAAW,QAAQ,UAAU;EACpD,MAAM,EACJ,SACA,SAAS,EAAE,UACX,MAAM,eACJ;EACJ,MAAM,SAAS,WAAW;EAE1B,MAAM,EAAE,YAAY,oBAAoB,UAAU;AAElD,MAAI,CAAC,QAAQ,cACX,QAAO;EAGT,MAAM,WAAW,OAAO,YAAY,OAAO,OAAO,YAAY;EAC9D,MAAM,EAAE,YAAY,SAAS,QAAQ;EAErC,MAAM,OAAO,KAAK,QAAQ,OAAO,MAAM,OAAO,OAAO,KAAK;EAE1D,MAAM,uBAAuB,QAAQ,QAAQ,QAAQ,MAAM,aAAa;EAExE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Q,YACP,qBAAA,UAAA,EAAA,UAAA;KACE,oBAAC,KAAK,QAAN;MAAa,MAAM,CAAC,mBAAmB;MAAE,MAAM;MAAc,CAAA;KAC7D,oBAAC,KAAK,QAAN;MAAa,MAAM;OAAC;OAAY;OAAe;OAA2B;OAAyB;MAAE,MAAM;MAAY,YAAA;MAAa,CAAA;KAEpI,oBAAC,eAAD;MACE,MAAM,MAAM;MACZ,kBAAkB,aAAa;MAC/B,aAAa,KAAK;MAClB,YAAY,QAAQ;MACpB,cAAc,QAAQ;MACtB,gBAAgB,QAAQ;MACb;MACX,gBAAgB,QAAQ,OAAO,kBAAkB;MACjD,cAAc,SAAS;MACvB,kBAAkB,SAAS;MAC3B,eAAe,QAAQ;MACvB,CAAA;KACD,EAAA,CAAA;IAEA;;;CAGZ,CAAC"}
|
|
@@ -303,6 +303,7 @@ const infiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
303
303
|
Operation({ config, operation, generator, plugin }) {
|
|
304
304
|
const { options, options: { output } } = plugin;
|
|
305
305
|
const driver = (0, _kubb_core_hooks.useDriver)();
|
|
306
|
+
const root = node_path.default.resolve(config.root, config.output.path);
|
|
306
307
|
const oas = (0, _kubb_plugin_oas_hooks.useOas)();
|
|
307
308
|
const { getSchemas, getName, getFile } = (0, _kubb_plugin_oas_hooks.useOperationManager)(generator);
|
|
308
309
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -411,7 +412,7 @@ const infiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
411
412
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
412
413
|
name: ["fetch"],
|
|
413
414
|
root: query.file.path,
|
|
414
|
-
path: node_path.default.resolve(
|
|
415
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts")
|
|
415
416
|
}),
|
|
416
417
|
/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
417
418
|
name: [
|
|
@@ -420,13 +421,13 @@ const infiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
420
421
|
"ResponseErrorConfig"
|
|
421
422
|
],
|
|
422
423
|
root: query.file.path,
|
|
423
|
-
path: node_path.default.resolve(
|
|
424
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
424
425
|
isTypeOnly: true
|
|
425
426
|
}),
|
|
426
427
|
options.client.dataReturnType === "full" && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
427
428
|
name: ["ResponseConfig"],
|
|
428
429
|
root: query.file.path,
|
|
429
|
-
path: node_path.default.resolve(
|
|
430
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
430
431
|
isTypeOnly: true
|
|
431
432
|
})
|
|
432
433
|
] }),
|
|
@@ -438,7 +439,7 @@ const infiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
438
439
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
439
440
|
name: ["buildFormData"],
|
|
440
441
|
root: query.file.path,
|
|
441
|
-
path: node_path.default.resolve(
|
|
442
|
+
path: node_path.default.resolve(root, ".kubb/config.ts")
|
|
442
443
|
}),
|
|
443
444
|
/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
444
445
|
name: [
|
|
@@ -546,6 +547,7 @@ const mutationGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)(
|
|
|
546
547
|
Operation({ config, plugin, operation, generator }) {
|
|
547
548
|
const { options, options: { output } } = plugin;
|
|
548
549
|
const driver = (0, _kubb_core_hooks.useDriver)();
|
|
550
|
+
const root = node_path.default.resolve(config.root, config.output.path);
|
|
549
551
|
const oas = (0, _kubb_plugin_oas_hooks.useOas)();
|
|
550
552
|
const { getSchemas, getName, getFile } = (0, _kubb_plugin_oas_hooks.useOperationManager)(generator);
|
|
551
553
|
const isQuery = !!options.query && options.query?.methods.some((method) => operation.method === method);
|
|
@@ -638,7 +640,7 @@ const mutationGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)(
|
|
|
638
640
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
639
641
|
name: ["fetch"],
|
|
640
642
|
root: mutation.file.path,
|
|
641
|
-
path: node_path.default.resolve(
|
|
643
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts")
|
|
642
644
|
}),
|
|
643
645
|
/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
644
646
|
name: [
|
|
@@ -647,13 +649,13 @@ const mutationGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)(
|
|
|
647
649
|
"ResponseErrorConfig"
|
|
648
650
|
],
|
|
649
651
|
root: mutation.file.path,
|
|
650
|
-
path: node_path.default.resolve(
|
|
652
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
651
653
|
isTypeOnly: true
|
|
652
654
|
}),
|
|
653
655
|
options.client.dataReturnType === "full" && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
654
656
|
name: ["ResponseConfig"],
|
|
655
657
|
root: mutation.file.path,
|
|
656
|
-
path: node_path.default.resolve(
|
|
658
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
657
659
|
isTypeOnly: true
|
|
658
660
|
})
|
|
659
661
|
] }),
|
|
@@ -665,7 +667,7 @@ const mutationGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)(
|
|
|
665
667
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
666
668
|
name: ["buildFormData"],
|
|
667
669
|
root: mutation.file.path,
|
|
668
|
-
path: node_path.default.resolve(
|
|
670
|
+
path: node_path.default.resolve(root, ".kubb/config.ts")
|
|
669
671
|
}),
|
|
670
672
|
options.customOptions && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
671
673
|
name: [options.customOptions.name],
|
|
@@ -757,6 +759,7 @@ const queryGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)({
|
|
|
757
759
|
Operation({ config, plugin, operation, generator }) {
|
|
758
760
|
const { options, options: { output } } = plugin;
|
|
759
761
|
const driver = (0, _kubb_core_hooks.useDriver)();
|
|
762
|
+
const root = node_path.default.resolve(config.root, config.output.path);
|
|
760
763
|
const oas = (0, _kubb_plugin_oas_hooks.useOas)();
|
|
761
764
|
const { getSchemas, getName, getFile } = (0, _kubb_plugin_oas_hooks.useOperationManager)(generator);
|
|
762
765
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -849,7 +852,7 @@ const queryGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)({
|
|
|
849
852
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
850
853
|
name: ["fetch"],
|
|
851
854
|
root: query.file.path,
|
|
852
|
-
path: node_path.default.resolve(
|
|
855
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts")
|
|
853
856
|
}),
|
|
854
857
|
/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
855
858
|
name: [
|
|
@@ -858,13 +861,13 @@ const queryGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)({
|
|
|
858
861
|
"ResponseErrorConfig"
|
|
859
862
|
],
|
|
860
863
|
root: query.file.path,
|
|
861
|
-
path: node_path.default.resolve(
|
|
864
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
862
865
|
isTypeOnly: true
|
|
863
866
|
}),
|
|
864
867
|
options.client.dataReturnType === "full" && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
865
868
|
name: ["ResponseConfig"],
|
|
866
869
|
root: query.file.path,
|
|
867
|
-
path: node_path.default.resolve(
|
|
870
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
868
871
|
isTypeOnly: true
|
|
869
872
|
})
|
|
870
873
|
] }),
|
|
@@ -876,7 +879,7 @@ const queryGenerator = (0, _kubb_plugin_oas_generators.createReactGenerator)({
|
|
|
876
879
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
877
880
|
name: ["buildFormData"],
|
|
878
881
|
root: query.file.path,
|
|
879
|
-
path: node_path.default.resolve(
|
|
882
|
+
path: node_path.default.resolve(root, ".kubb/config.ts")
|
|
880
883
|
}),
|
|
881
884
|
options.customOptions && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
882
885
|
name: [options.customOptions.name],
|
|
@@ -971,6 +974,7 @@ const suspenseInfiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createRea
|
|
|
971
974
|
Operation({ config, operation, generator, plugin }) {
|
|
972
975
|
const { options, options: { output } } = plugin;
|
|
973
976
|
const driver = (0, _kubb_core_hooks.useDriver)();
|
|
977
|
+
const root = node_path.default.resolve(config.root, config.output.path);
|
|
974
978
|
const oas = (0, _kubb_plugin_oas_hooks.useOas)();
|
|
975
979
|
const { getSchemas, getName, getFile } = (0, _kubb_plugin_oas_hooks.useOperationManager)(generator);
|
|
976
980
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -1072,7 +1076,7 @@ const suspenseInfiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createRea
|
|
|
1072
1076
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1073
1077
|
name: ["fetch"],
|
|
1074
1078
|
root: query.file.path,
|
|
1075
|
-
path: node_path.default.resolve(
|
|
1079
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts")
|
|
1076
1080
|
}),
|
|
1077
1081
|
/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1078
1082
|
name: [
|
|
@@ -1081,13 +1085,13 @@ const suspenseInfiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createRea
|
|
|
1081
1085
|
"ResponseErrorConfig"
|
|
1082
1086
|
],
|
|
1083
1087
|
root: query.file.path,
|
|
1084
|
-
path: node_path.default.resolve(
|
|
1088
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
1085
1089
|
isTypeOnly: true
|
|
1086
1090
|
}),
|
|
1087
1091
|
options.client.dataReturnType === "full" && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1088
1092
|
name: ["ResponseConfig"],
|
|
1089
1093
|
root: query.file.path,
|
|
1090
|
-
path: node_path.default.resolve(
|
|
1094
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
1091
1095
|
isTypeOnly: true
|
|
1092
1096
|
})
|
|
1093
1097
|
] }),
|
|
@@ -1099,7 +1103,7 @@ const suspenseInfiniteQueryGenerator = (0, _kubb_plugin_oas_generators.createRea
|
|
|
1099
1103
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1100
1104
|
name: ["buildFormData"],
|
|
1101
1105
|
root: query.file.path,
|
|
1102
|
-
path: node_path.default.resolve(
|
|
1106
|
+
path: node_path.default.resolve(root, ".kubb/config.ts")
|
|
1103
1107
|
}),
|
|
1104
1108
|
options.customOptions && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1105
1109
|
name: [options.customOptions.name],
|
|
@@ -1207,6 +1211,7 @@ const suspenseQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
1207
1211
|
Operation({ config, operation, generator, plugin }) {
|
|
1208
1212
|
const { options, options: { output } } = plugin;
|
|
1209
1213
|
const driver = (0, _kubb_core_hooks.useDriver)();
|
|
1214
|
+
const root = node_path.default.resolve(config.root, config.output.path);
|
|
1210
1215
|
const oas = (0, _kubb_plugin_oas_hooks.useOas)();
|
|
1211
1216
|
const { getSchemas, getName, getFile } = (0, _kubb_plugin_oas_hooks.useOperationManager)(generator);
|
|
1212
1217
|
const isQuery = typeof options.query === "boolean" ? true : options.query?.methods.some((method) => operation.method === method);
|
|
@@ -1307,7 +1312,7 @@ const suspenseQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
1307
1312
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1308
1313
|
name: ["fetch"],
|
|
1309
1314
|
root: query.file.path,
|
|
1310
|
-
path: node_path.default.resolve(
|
|
1315
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts")
|
|
1311
1316
|
}),
|
|
1312
1317
|
/* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1313
1318
|
name: [
|
|
@@ -1316,13 +1321,13 @@ const suspenseQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
1316
1321
|
"ResponseErrorConfig"
|
|
1317
1322
|
],
|
|
1318
1323
|
root: query.file.path,
|
|
1319
|
-
path: node_path.default.resolve(
|
|
1324
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
1320
1325
|
isTypeOnly: true
|
|
1321
1326
|
}),
|
|
1322
1327
|
options.client.dataReturnType === "full" && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1323
1328
|
name: ["ResponseConfig"],
|
|
1324
1329
|
root: query.file.path,
|
|
1325
|
-
path: node_path.default.resolve(
|
|
1330
|
+
path: node_path.default.resolve(root, ".kubb/fetch.ts"),
|
|
1326
1331
|
isTypeOnly: true
|
|
1327
1332
|
})
|
|
1328
1333
|
] }),
|
|
@@ -1334,7 +1339,7 @@ const suspenseQueryGenerator = (0, _kubb_plugin_oas_generators.createReactGenera
|
|
|
1334
1339
|
!shouldUseClientPlugin && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1335
1340
|
name: ["buildFormData"],
|
|
1336
1341
|
root: query.file.path,
|
|
1337
|
-
path: node_path.default.resolve(
|
|
1342
|
+
path: node_path.default.resolve(root, ".kubb/config.ts")
|
|
1338
1343
|
}),
|
|
1339
1344
|
options.customOptions && /* @__PURE__ */ (0, _kubb_react_fabric_jsx_runtime.jsx)(_kubb_react_fabric.File.Import, {
|
|
1340
1345
|
name: [options.customOptions.name],
|
|
@@ -1465,4 +1470,4 @@ Object.defineProperty(exports, "suspenseQueryGenerator", {
|
|
|
1465
1470
|
}
|
|
1466
1471
|
});
|
|
1467
1472
|
|
|
1468
|
-
//# sourceMappingURL=generators-
|
|
1473
|
+
//# sourceMappingURL=generators-CeU3eFdF.cjs.map
|