@openapi-qraft/tanstack-query-react-plugin 2.0.0-next.1 → 2.0.0-next.11

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.
Files changed (218) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/dist/lib/createOperationCommonTSDoc.d.ts +3 -0
  3. package/dist/lib/createOperationCommonTSDoc.d.ts.map +1 -0
  4. package/dist/lib/createOperationCommonTSDoc.js +8 -0
  5. package/dist/lib/createOperationCommonTSDoc.js.map +1 -0
  6. package/dist/plugin.d.ts.map +1 -1
  7. package/dist/plugin.js +0 -2
  8. package/dist/plugin.js.map +1 -1
  9. package/dist/ts-factory/getClientFactory.js +33 -1
  10. package/dist/ts-factory/getClientFactory.js.map +1 -1
  11. package/dist/ts-factory/getCreatePredefinedParametersRequestFnFactory.js +2 -2
  12. package/dist/ts-factory/getCreatePredefinedParametersRequestFnFactory.js.map +1 -1
  13. package/dist/ts-factory/getServiceFactory.d.ts +4 -3
  14. package/dist/ts-factory/getServiceFactory.d.ts.map +1 -1
  15. package/dist/ts-factory/getServiceFactory.js +264 -55
  16. package/dist/ts-factory/getServiceFactory.js.map +1 -1
  17. package/dist/ts-factory/service-operation.generated/ServiceOperationCancelQueries.d.ts +4 -0
  18. package/dist/ts-factory/service-operation.generated/ServiceOperationCancelQueries.d.ts.map +1 -0
  19. package/dist/ts-factory/service-operation.generated/ServiceOperationCancelQueries.js +38 -0
  20. package/dist/ts-factory/service-operation.generated/ServiceOperationCancelQueries.js.map +1 -0
  21. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchInfiniteQuery.d.ts +4 -0
  22. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchInfiniteQuery.d.ts.map +1 -0
  23. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchInfiniteQuery.js +89 -0
  24. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchInfiniteQuery.js.map +1 -0
  25. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchQuery.d.ts +4 -0
  26. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchQuery.d.ts.map +1 -0
  27. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchQuery.js +48 -0
  28. package/dist/ts-factory/service-operation.generated/ServiceOperationFetchQuery.js.map +1 -0
  29. package/dist/ts-factory/service-operation.generated/ServiceOperationGetInfiniteQueryData.d.ts +4 -0
  30. package/dist/ts-factory/service-operation.generated/ServiceOperationGetInfiniteQueryData.d.ts.map +1 -0
  31. package/dist/ts-factory/service-operation.generated/ServiceOperationGetInfiniteQueryData.js +34 -0
  32. package/dist/ts-factory/service-operation.generated/ServiceOperationGetInfiniteQueryData.js.map +1 -0
  33. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueriesData.d.ts +4 -0
  34. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueriesData.d.ts.map +1 -0
  35. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueriesData.js +59 -0
  36. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueriesData.js.map +1 -0
  37. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryData.d.ts +4 -0
  38. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryData.d.ts.map +1 -0
  39. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryData.js +30 -0
  40. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryData.js.map +1 -0
  41. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryState.d.ts +4 -0
  42. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryState.d.ts.map +1 -0
  43. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryState.js +62 -0
  44. package/dist/ts-factory/service-operation.generated/ServiceOperationGetQueryState.js.map +1 -0
  45. package/dist/ts-factory/service-operation.generated/ServiceOperationInvalidateQueries.d.ts +4 -0
  46. package/dist/ts-factory/service-operation.generated/ServiceOperationInvalidateQueries.d.ts.map +1 -0
  47. package/dist/ts-factory/service-operation.generated/ServiceOperationInvalidateQueries.js +26 -0
  48. package/dist/ts-factory/service-operation.generated/ServiceOperationInvalidateQueries.js.map +1 -0
  49. package/dist/ts-factory/service-operation.generated/ServiceOperationIsFetchingQueries.d.ts +4 -0
  50. package/dist/ts-factory/service-operation.generated/ServiceOperationIsFetchingQueries.d.ts.map +1 -0
  51. package/dist/ts-factory/service-operation.generated/ServiceOperationIsFetchingQueries.js +34 -0
  52. package/dist/ts-factory/service-operation.generated/ServiceOperationIsFetchingQueries.js.map +1 -0
  53. package/dist/ts-factory/service-operation.generated/ServiceOperationIsMutatingQueries.d.ts +4 -0
  54. package/dist/ts-factory/service-operation.generated/ServiceOperationIsMutatingQueries.d.ts.map +1 -0
  55. package/dist/ts-factory/service-operation.generated/ServiceOperationIsMutatingQueries.js +36 -0
  56. package/dist/ts-factory/service-operation.generated/ServiceOperationIsMutatingQueries.js.map +1 -0
  57. package/dist/ts-factory/service-operation.generated/ServiceOperationMutationFn.d.ts +4 -0
  58. package/dist/ts-factory/service-operation.generated/ServiceOperationMutationFn.d.ts.map +1 -0
  59. package/dist/ts-factory/service-operation.generated/ServiceOperationMutationFn.js +35 -0
  60. package/dist/ts-factory/service-operation.generated/ServiceOperationMutationFn.js.map +1 -0
  61. package/dist/ts-factory/service-operation.generated/ServiceOperationQueryFn.d.ts +4 -0
  62. package/dist/ts-factory/service-operation.generated/ServiceOperationQueryFn.d.ts.map +1 -0
  63. package/dist/ts-factory/service-operation.generated/ServiceOperationQueryFn.js +62 -0
  64. package/dist/ts-factory/service-operation.generated/ServiceOperationQueryFn.js.map +1 -0
  65. package/dist/ts-factory/service-operation.generated/ServiceOperationRefetchQueries.d.ts +4 -0
  66. package/dist/ts-factory/service-operation.generated/ServiceOperationRefetchQueries.d.ts.map +1 -0
  67. package/dist/ts-factory/service-operation.generated/ServiceOperationRefetchQueries.js +38 -0
  68. package/dist/ts-factory/service-operation.generated/ServiceOperationRefetchQueries.js.map +1 -0
  69. package/dist/ts-factory/service-operation.generated/ServiceOperationRemoveQueries.d.ts +4 -0
  70. package/dist/ts-factory/service-operation.generated/ServiceOperationRemoveQueries.d.ts.map +1 -0
  71. package/dist/ts-factory/service-operation.generated/ServiceOperationRemoveQueries.js +34 -0
  72. package/dist/ts-factory/service-operation.generated/ServiceOperationRemoveQueries.js.map +1 -0
  73. package/dist/ts-factory/service-operation.generated/ServiceOperationResetQueries.d.ts +4 -0
  74. package/dist/ts-factory/service-operation.generated/ServiceOperationResetQueries.d.ts.map +1 -0
  75. package/dist/ts-factory/service-operation.generated/ServiceOperationResetQueries.js +38 -0
  76. package/dist/ts-factory/service-operation.generated/ServiceOperationResetQueries.js.map +1 -0
  77. package/dist/ts-factory/service-operation.generated/ServiceOperationSetInfiniteQueryData.d.ts +4 -0
  78. package/dist/ts-factory/service-operation.generated/ServiceOperationSetInfiniteQueryData.d.ts.map +1 -0
  79. package/dist/ts-factory/service-operation.generated/ServiceOperationSetInfiniteQueryData.js +54 -0
  80. package/dist/ts-factory/service-operation.generated/ServiceOperationSetInfiniteQueryData.js.map +1 -0
  81. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueriesData.d.ts +4 -0
  82. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueriesData.d.ts.map +1 -0
  83. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueriesData.js +55 -0
  84. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueriesData.js.map +1 -0
  85. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueryData.d.ts +4 -0
  86. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueryData.d.ts.map +1 -0
  87. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueryData.js +42 -0
  88. package/dist/ts-factory/service-operation.generated/ServiceOperationSetQueryData.js.map +1 -0
  89. package/dist/ts-factory/service-operation.generated/ServiceOperationUseInfiniteQuery.d.ts +4 -0
  90. package/dist/ts-factory/service-operation.generated/ServiceOperationUseInfiniteQuery.d.ts.map +1 -0
  91. package/dist/ts-factory/service-operation.generated/ServiceOperationUseInfiniteQuery.js +138 -0
  92. package/dist/ts-factory/service-operation.generated/ServiceOperationUseInfiniteQuery.js.map +1 -0
  93. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsFetchingQueries.d.ts +4 -0
  94. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsFetchingQueries.d.ts.map +1 -0
  95. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsFetchingQueries.js +34 -0
  96. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsFetchingQueries.js.map +1 -0
  97. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsMutating.d.ts +4 -0
  98. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsMutating.d.ts.map +1 -0
  99. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsMutating.js +36 -0
  100. package/dist/ts-factory/service-operation.generated/ServiceOperationUseIsMutating.js.map +1 -0
  101. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutation.d.ts +4 -0
  102. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutation.d.ts.map +1 -0
  103. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutation.js +81 -0
  104. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutation.js.map +1 -0
  105. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutationState.d.ts +4 -0
  106. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutationState.d.ts.map +1 -0
  107. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutationState.js +63 -0
  108. package/dist/ts-factory/service-operation.generated/ServiceOperationUseMutationState.js.map +1 -0
  109. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQueries.d.ts +4 -0
  110. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQueries.d.ts.map +1 -0
  111. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQueries.js +34 -0
  112. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQueries.js.map +1 -0
  113. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQuery.d.ts +4 -0
  114. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQuery.d.ts.map +1 -0
  115. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQuery.js +93 -0
  116. package/dist/ts-factory/service-operation.generated/ServiceOperationUseQuery.js.map +1 -0
  117. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseInfiniteQuery.d.ts +4 -0
  118. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseInfiniteQuery.d.ts.map +1 -0
  119. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseInfiniteQuery.js +77 -0
  120. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseInfiniteQuery.js.map +1 -0
  121. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQueries.d.ts +4 -0
  122. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQueries.d.ts.map +1 -0
  123. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQueries.js +40 -0
  124. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQueries.js.map +1 -0
  125. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQuery.d.ts +4 -0
  126. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQuery.d.ts.map +1 -0
  127. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQuery.js +52 -0
  128. package/dist/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQuery.js.map +1 -0
  129. package/dist/ts-factory/tsdoc/createOperationMethodTSDocExample.d.ts +6 -0
  130. package/dist/ts-factory/tsdoc/createOperationMethodTSDocExample.d.ts.map +1 -0
  131. package/dist/ts-factory/tsdoc/createOperationMethodTSDocExample.js +31 -0
  132. package/dist/ts-factory/tsdoc/createOperationMethodTSDocExample.js.map +1 -0
  133. package/dist/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.d.ts +5 -0
  134. package/dist/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.d.ts.map +1 -0
  135. package/dist/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.js +53 -0
  136. package/dist/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.js.map +1 -0
  137. package/dist/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.d.ts +3 -0
  138. package/dist/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.d.ts.map +1 -0
  139. package/dist/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.js +41 -0
  140. package/dist/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.js.map +1 -0
  141. package/dist/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.d.ts +3 -0
  142. package/dist/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.d.ts.map +1 -0
  143. package/dist/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.js +41 -0
  144. package/dist/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.js.map +1 -0
  145. package/dist/ts-factory/tsdoc/createUseMutationOperationTSDocExample.d.ts +3 -0
  146. package/dist/ts-factory/tsdoc/createUseMutationOperationTSDocExample.d.ts.map +1 -0
  147. package/dist/ts-factory/tsdoc/createUseMutationOperationTSDocExample.js +44 -0
  148. package/dist/ts-factory/tsdoc/createUseMutationOperationTSDocExample.js.map +1 -0
  149. package/dist/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.d.ts +3 -0
  150. package/dist/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.d.ts.map +1 -0
  151. package/dist/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.js +55 -0
  152. package/dist/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.js.map +1 -0
  153. package/dist/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.d.ts +3 -0
  154. package/dist/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.d.ts.map +1 -0
  155. package/dist/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.js +88 -0
  156. package/dist/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.js.map +1 -0
  157. package/dist/ts-factory/tsdoc/createUseQueryOperationTSDocExample.d.ts +3 -0
  158. package/dist/ts-factory/tsdoc/createUseQueryOperationTSDocExample.d.ts.map +1 -0
  159. package/dist/ts-factory/tsdoc/createUseQueryOperationTSDocExample.js +37 -0
  160. package/dist/ts-factory/tsdoc/createUseQueryOperationTSDocExample.js.map +1 -0
  161. package/dist/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.d.ts +3 -0
  162. package/dist/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.d.ts.map +1 -0
  163. package/dist/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.js +39 -0
  164. package/dist/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.js.map +1 -0
  165. package/dist/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.d.ts +7 -0
  166. package/dist/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.d.ts.map +1 -0
  167. package/dist/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.js +6 -0
  168. package/dist/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.js.map +1 -0
  169. package/dist/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.d.ts +4 -0
  170. package/dist/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.d.ts.map +1 -0
  171. package/dist/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.js +47 -0
  172. package/dist/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.js.map +1 -0
  173. package/package.json +9 -6
  174. package/src/lib/createOperationCommonTSDoc.ts +11 -0
  175. package/src/plugin.ts +0 -6
  176. package/src/ts-factory/getClientFactory.ts +125 -1
  177. package/src/ts-factory/getCreatePredefinedParametersRequestFnFactory.ts +2 -2
  178. package/src/ts-factory/getServiceFactory.ts +474 -122
  179. package/src/ts-factory/service-operation.generated/.gitkeep +0 -0
  180. package/src/ts-factory/service-operation.generated/ServiceOperationCancelQueries.ts +171 -0
  181. package/src/ts-factory/service-operation.generated/ServiceOperationFetchInfiniteQuery.ts +340 -0
  182. package/src/ts-factory/service-operation.generated/ServiceOperationFetchQuery.ts +219 -0
  183. package/src/ts-factory/service-operation.generated/ServiceOperationGetInfiniteQueryData.ts +134 -0
  184. package/src/ts-factory/service-operation.generated/ServiceOperationGetQueriesData.ts +258 -0
  185. package/src/ts-factory/service-operation.generated/ServiceOperationGetQueryData.ts +120 -0
  186. package/src/ts-factory/service-operation.generated/ServiceOperationGetQueryState.ts +248 -0
  187. package/src/ts-factory/service-operation.generated/ServiceOperationInvalidateQueries.ts +137 -0
  188. package/src/ts-factory/service-operation.generated/ServiceOperationIsFetchingQueries.ts +141 -0
  189. package/src/ts-factory/service-operation.generated/ServiceOperationIsMutatingQueries.ts +151 -0
  190. package/src/ts-factory/service-operation.generated/ServiceOperationMutationFn.ts +175 -0
  191. package/src/ts-factory/service-operation.generated/ServiceOperationQueryFn.ts +278 -0
  192. package/src/ts-factory/service-operation.generated/ServiceOperationRefetchQueries.ts +171 -0
  193. package/src/ts-factory/service-operation.generated/ServiceOperationRemoveQueries.ts +141 -0
  194. package/src/ts-factory/service-operation.generated/ServiceOperationResetQueries.ts +171 -0
  195. package/src/ts-factory/service-operation.generated/ServiceOperationSetInfiniteQueryData.ts +201 -0
  196. package/src/ts-factory/service-operation.generated/ServiceOperationSetQueriesData.ts +221 -0
  197. package/src/ts-factory/service-operation.generated/ServiceOperationSetQueryData.ts +167 -0
  198. package/src/ts-factory/service-operation.generated/ServiceOperationUseInfiniteQuery.ts +534 -0
  199. package/src/ts-factory/service-operation.generated/ServiceOperationUseIsFetchingQueries.ts +141 -0
  200. package/src/ts-factory/service-operation.generated/ServiceOperationUseIsMutating.ts +151 -0
  201. package/src/ts-factory/service-operation.generated/ServiceOperationUseMutation.ts +354 -0
  202. package/src/ts-factory/service-operation.generated/ServiceOperationUseMutationState.ts +276 -0
  203. package/src/ts-factory/service-operation.generated/ServiceOperationUseQueries.ts +191 -0
  204. package/src/ts-factory/service-operation.generated/ServiceOperationUseQuery.ts +392 -0
  205. package/src/ts-factory/service-operation.generated/ServiceOperationUseSuspenseInfiniteQuery.ts +299 -0
  206. package/src/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQueries.ts +204 -0
  207. package/src/ts-factory/service-operation.generated/ServiceOperationUseSuspenseQuery.ts +212 -0
  208. package/src/ts-factory/tsdoc/createOperationMethodTSDocExample.ts +65 -0
  209. package/src/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.ts +135 -0
  210. package/src/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.ts +81 -0
  211. package/src/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.ts +74 -0
  212. package/src/ts-factory/tsdoc/createUseMutationOperationTSDocExample.ts +88 -0
  213. package/src/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.ts +154 -0
  214. package/src/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.ts +292 -0
  215. package/src/ts-factory/tsdoc/createUseQueryOperationTSDocExample.ts +76 -0
  216. package/src/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.ts +63 -0
  217. package/src/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.ts +28 -0
  218. package/src/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.ts +83 -0
@@ -1,13 +1,43 @@
1
+ import camelCase from 'camelcase';
1
2
  import ts from 'typescript';
2
- const SERVICE_OPERATION_QUERY = 'ServiceOperationQuery';
3
- const SERVICE_OPERATION_MUTATION = 'ServiceOperationMutation';
3
+ import { createOperationCommonTSDoc } from '../lib/createOperationCommonTSDoc.js';
4
+ import { createServiceOperationCancelQueriesNodes } from './service-operation.generated/ServiceOperationCancelQueries.js';
5
+ import { createServiceOperationFetchInfiniteQueryNodes } from './service-operation.generated/ServiceOperationFetchInfiniteQuery.js';
6
+ import { createServiceOperationFetchQueryNodes } from './service-operation.generated/ServiceOperationFetchQuery.js';
7
+ import { createServiceOperationGetInfiniteQueryDataNodes } from './service-operation.generated/ServiceOperationGetInfiniteQueryData.js';
8
+ import { createServiceOperationGetQueriesDataNodes } from './service-operation.generated/ServiceOperationGetQueriesData.js';
9
+ import { createServiceOperationGetQueryDataNodes } from './service-operation.generated/ServiceOperationGetQueryData.js';
10
+ import { createServiceOperationGetQueryStateNodes } from './service-operation.generated/ServiceOperationGetQueryState.js';
11
+ import { createServiceOperationInvalidateQueriesNodes } from './service-operation.generated/ServiceOperationInvalidateQueries.js';
12
+ import { createServiceOperationIsFetchingQueriesNodes } from './service-operation.generated/ServiceOperationIsFetchingQueries.js';
13
+ import { createServiceOperationIsMutatingQueriesNodes } from './service-operation.generated/ServiceOperationIsMutatingQueries.js';
14
+ import { createServiceOperationMutationFnNodes } from './service-operation.generated/ServiceOperationMutationFn.js';
15
+ import { createServiceOperationQueryFnNodes } from './service-operation.generated/ServiceOperationQueryFn.js';
16
+ import { createServiceOperationRefetchQueriesNodes } from './service-operation.generated/ServiceOperationRefetchQueries.js';
17
+ import { createServiceOperationRemoveQueriesNodes } from './service-operation.generated/ServiceOperationRemoveQueries.js';
18
+ import { createServiceOperationResetQueriesNodes } from './service-operation.generated/ServiceOperationResetQueries.js';
19
+ import { createServiceOperationSetInfiniteQueryDataNodes } from './service-operation.generated/ServiceOperationSetInfiniteQueryData.js';
20
+ import { createServiceOperationSetQueriesDataNodes } from './service-operation.generated/ServiceOperationSetQueriesData.js';
21
+ import { createServiceOperationSetQueryDataNodes } from './service-operation.generated/ServiceOperationSetQueryData.js';
22
+ import { createServiceOperationUseInfiniteQueryNodes } from './service-operation.generated/ServiceOperationUseInfiniteQuery.js';
23
+ import { createServiceOperationUseIsFetchingQueriesNodes } from './service-operation.generated/ServiceOperationUseIsFetchingQueries.js';
24
+ import { createServiceOperationUseIsMutatingNodes } from './service-operation.generated/ServiceOperationUseIsMutating.js';
25
+ import { createServiceOperationUseMutationNodes } from './service-operation.generated/ServiceOperationUseMutation.js';
26
+ import { createServiceOperationUseMutationStateNodes } from './service-operation.generated/ServiceOperationUseMutationState.js';
27
+ import { createServiceOperationUseQueriesNodes } from './service-operation.generated/ServiceOperationUseQueries.js';
28
+ import { createServiceOperationUseQueryNodes } from './service-operation.generated/ServiceOperationUseQuery.js';
29
+ import { createServiceOperationUseSuspenseInfiniteQueryNodes } from './service-operation.generated/ServiceOperationUseSuspenseInfiniteQuery.js';
30
+ import { createServiceOperationUseSuspenseQueriesNodes } from './service-operation.generated/ServiceOperationUseSuspenseQueries.js';
31
+ import { createServiceOperationUseSuspenseQueryNodes } from './service-operation.generated/ServiceOperationUseSuspenseQuery.js';
32
+ import { createOperationMethodTSDocExample } from './tsdoc/createOperationMethodTSDocExample.js';
4
33
  const factory = ts.factory;
5
- export const getServiceFactory = (service, operations, { openapiTypesImportPath, operationGenericsImportPath, }) => {
34
+ export const getServiceFactory = (service, operations, { openapiTypesImportPath }) => {
6
35
  return [
7
36
  getOpenAPISchemaImportsFactory(openapiTypesImportPath),
8
- getServiceOperationGenericsPathImportsFactory(operationGenericsImportPath, operations),
37
+ ...getServiceOperationImportsFactory(operations),
9
38
  getServiceInterfaceFactory(service, operations),
10
39
  getServiceVariableFactory(service, operations),
40
+ ...getOperationsTypes(operations),
11
41
  ];
12
42
  };
13
43
  const getOpenAPISchemaImportsFactory = (schemaTypesPath) => {
@@ -16,40 +46,66 @@ const getOpenAPISchemaImportsFactory = (schemaTypesPath) => {
16
46
  factory.createImportSpecifier(false, undefined, factory.createIdentifier('paths')),
17
47
  ])), factory.createStringLiteral(schemaTypesPath));
18
48
  };
19
- const getServiceOperationGenericsPathImportsFactory = (operationGenericsPath, operations) => {
49
+ const getServiceOperationImportsFactory = (operations) => {
20
50
  const factory = ts.factory;
21
- const queryMethods = ['get', 'head', 'options']; // todo::make it shared
22
- return factory.createImportDeclaration(undefined, factory.createImportClause(true, undefined, factory.createNamedImports([
23
- operations.some((operation) => queryMethods.some((method) => method === operation.method))
24
- ? factory.createImportSpecifier(false, undefined, factory.createIdentifier('ServiceOperationQuery'))
25
- : null,
26
- operations.some((operation) => !queryMethods.some((method) => method === operation.method))
27
- ? factory.createImportSpecifier(false, undefined, factory.createIdentifier('ServiceOperationMutation'))
28
- : null,
29
- ].filter((node) => Boolean(node)))), factory.createStringLiteral(operationGenericsPath));
30
- };
31
- const getServiceInterfaceFactory = ({ typeName }, operations) => {
32
- return factory.createInterfaceDeclaration([factory.createToken(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(typeName), undefined, undefined, operations.map(getServiceInterfaceOperationFactory));
33
- };
34
- const getServiceInterfaceOperationFactory = (operation) => {
35
- const node = factory.createPropertySignature(undefined, factory.createIdentifier(operation.name), undefined, factory.createTypeReferenceNode(factory.createIdentifier(operation.method === 'get'
36
- ? SERVICE_OPERATION_QUERY
37
- : SERVICE_OPERATION_MUTATION), [
38
- getOperationSchemaFactory(operation),
39
- operation.method !== 'get' ? getOperationBodyFactory(operation) : null,
40
- getOperationResponseFactory(operation, 'success'),
41
- getOperationParametersFactory(operation),
42
- getOperationResponseFactory(operation, 'errors'),
43
- ].filter((node) => Boolean(node))));
44
- addSyntheticLeadingOperationComment(node, operation);
51
+ const moduleImports = getModuleTypeImports([
52
+ ...(operations.some((operation) => operation.method === 'get')
53
+ ? createServicesQueryOperationNodes()
54
+ : []),
55
+ ...(operations.some((operation) => operation.method !== 'get')
56
+ ? createServicesMutationOperationNodes()
57
+ : []),
58
+ ]);
59
+ return Object.entries(moduleImports).map(([moduleName, importSpecifierNames]) => {
60
+ return factory.createImportDeclaration(undefined, factory.createImportClause(true, undefined, factory.createNamedImports(importSpecifierNames.map((specifier) => factory.createImportSpecifier(false, undefined, factory.createIdentifier(specifier))))), factory.createStringLiteral(moduleName));
61
+ });
62
+ };
63
+ const getServiceInterfaceFactory = (service, operations) => {
64
+ return factory.createInterfaceDeclaration([factory.createToken(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier(service.typeName), undefined, undefined, operations.map((operation) => getServiceInterfaceOperationFactory(operation, service)));
65
+ };
66
+ const getServiceInterfaceOperationFactory = (operation, service) => {
67
+ const operationMethodNodes = getMethodSignatureNodes(operation.method === 'get'
68
+ ? createServicesQueryOperationNodes()
69
+ : createServicesMutationOperationNodes());
70
+ operationMethodNodes.forEach((node) => {
71
+ if (ts.isMethodSignature(node) &&
72
+ ts.isIdentifier(node.name) &&
73
+ node.name.text) {
74
+ const operationCustomTSDoc = createOperationMethodTSDocExample(operation, {
75
+ serviceVariableName: service.variableName,
76
+ operationMethodName: node.name.text,
77
+ });
78
+ // Query and Mutation methods (hooks and QueryClient methods)
79
+ ts.addSyntheticLeadingComment(node, ts.SyntaxKind.MultiLineCommentTrivia, createMultilineComment(operationCustomTSDoc
80
+ ? operationCustomTSDoc
81
+ : createOperationCommonTSDoc(operation)), true);
82
+ }
83
+ else if (ts.isCallSignatureDeclaration(node)) {
84
+ // Query and Mutation functions (invoke methods)
85
+ ts.addSyntheticLeadingComment(node, ts.SyntaxKind.MultiLineCommentTrivia, createMultilineComment([...createOperationCommonTSDoc(operation)]), true);
86
+ }
87
+ });
88
+ const node = factory.createPropertySignature(undefined, factory.createIdentifier(operation.name), undefined, factory.createTypeLiteralNode([
89
+ ...replaceGenericTypesWithOperationTypes(reduceAreAllOptionalConditionalTParamsType(operationMethodNodes, operation), operation),
90
+ factory.createPropertySignature(undefined, factory.createIdentifier('schema'), undefined, factory.createTypeReferenceNode(getOperationSchemaTypeName(operation), undefined)),
91
+ factory.createPropertySignature(undefined, factory.createIdentifier('types'), undefined, factory.createTypeLiteralNode([
92
+ factory.createPropertySignature(undefined, factory.createIdentifier('parameters'), undefined, factory.createTypeReferenceNode(getOperationParametersTypeName(operation), undefined)),
93
+ factory.createPropertySignature(undefined, factory.createIdentifier('data'), undefined, factory.createTypeReferenceNode(getOperationDataTypeName(operation), undefined)),
94
+ factory.createPropertySignature(undefined, factory.createIdentifier('error'), undefined, factory.createTypeReferenceNode(getOperationErrorTypeName(operation), undefined)),
95
+ operation.method !== 'get'
96
+ ? factory.createPropertySignature(undefined, factory.createIdentifier('body'), undefined, factory.createTypeReferenceNode(getOperationBodyTypeName(operation), undefined))
97
+ : undefined,
98
+ ].filter((node) => !!node))),
99
+ ]));
100
+ addOperationTSDoc(node, operation);
45
101
  return node;
46
102
  };
47
103
  const getOperationSchemaFactory = (operation) => {
48
104
  return factory.createTypeLiteralNode([
49
105
  factory.createPropertySignature(undefined, factory.createIdentifier('method'), undefined, factory.createLiteralTypeNode(factory.createStringLiteral(operation.method))),
50
106
  factory.createPropertySignature(undefined, factory.createIdentifier('url'), undefined, factory.createLiteralTypeNode(factory.createStringLiteral(operation.path))),
51
- operation.mediaType
52
- ? factory.createPropertySignature(undefined, factory.createIdentifier('mediaType'), undefined, factory.createLiteralTypeNode(factory.createStringLiteral(operation.mediaType)))
107
+ operation.requestBody
108
+ ? factory.createPropertySignature(undefined, factory.createIdentifier('mediaType'), undefined, factory.createTupleTypeNode(Object.keys(operation.requestBody.content).map((mediaType) => factory.createLiteralTypeNode(factory.createStringLiteral(mediaType)))))
53
109
  : null,
54
110
  operation.security
55
111
  ? factory.createPropertySignature(undefined, factory.createIdentifier('security'), undefined, factory.createTupleTypeNode(getOperationSecuritySchemas(operation.security).map((securitySchemaName) => factory.createLiteralTypeNode(factory.createStringLiteral(securitySchemaName)))))
@@ -69,29 +125,57 @@ const getOperationResponseFactory = (operation, type) => {
69
125
  }));
70
126
  };
71
127
  const getOperationBodyFactory = (operation) => {
72
- if (!operation.mediaType)
73
- return factory.createKeywordTypeNode(ts.SyntaxKind.UndefinedKeyword);
74
- return factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(factory.createIdentifier('NonNullable'), [
75
- factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(factory.createIdentifier('paths'), undefined), factory.createLiteralTypeNode(factory.createStringLiteral(operation.path))), factory.createLiteralTypeNode(factory.createStringLiteral(operation.method))), factory.createLiteralTypeNode(factory.createStringLiteral('requestBody'))),
76
- ]),
77
- // todo::Add optional NonNullable inference, see `POST /entities/{entity_id}/documents`
78
- factory.createLiteralTypeNode(factory.createStringLiteral('content'))), factory.createLiteralTypeNode(factory.createStringLiteral(operation.mediaType)));
79
- };
80
- const getOperationParametersFactory = (operation) => {
81
- if (!operation.parameters)
128
+ if (!operation.requestBody)
82
129
  return factory.createKeywordTypeNode(ts.SyntaxKind.UndefinedKeyword);
130
+ const mediaTypes = Object.keys(operation.requestBody.content);
131
+ return factory.createUnionTypeNode([
132
+ ...mediaTypes.map((mediaType) => factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(factory.createIdentifier('NonNullable'), [
133
+ factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(factory.createIdentifier('paths'), undefined), factory.createLiteralTypeNode(factory.createStringLiteral(operation.path))), factory.createLiteralTypeNode(factory.createStringLiteral(operation.method))), factory.createLiteralTypeNode(factory.createStringLiteral('requestBody'))),
134
+ ]),
135
+ // todo::Add optional NonNullable inference, see `POST /entities/{entity_id}/documents`
136
+ factory.createLiteralTypeNode(factory.createStringLiteral('content'))), factory.createLiteralTypeNode(factory.createStringLiteral(mediaType)))),
137
+ ...(mediaTypes.some((mediaType) => mediaType.includes('/form-data'))
138
+ ? [factory.createTypeReferenceNode(factory.createIdentifier('FormData'))]
139
+ : []),
140
+ ]);
141
+ };
142
+ const createOperationParametersFactory = (operation) => {
143
+ if (!operation.parameters?.length)
144
+ return operation.method === 'get'
145
+ ? factory.createKeywordTypeNode(ts.SyntaxKind.UndefinedKeyword)
146
+ : // mutation with predefined parameters fallback to an empty object
147
+ factory.createTypeLiteralNode([]);
83
148
  return factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createIndexedAccessTypeNode(factory.createTypeReferenceNode(factory.createIdentifier('paths'), undefined), factory.createLiteralTypeNode(factory.createStringLiteral(operation.path))), factory.createLiteralTypeNode(factory.createStringLiteral(operation.method))), factory.createLiteralTypeNode(factory.createStringLiteral('parameters')));
84
149
  };
85
- const getServiceVariableFactory = ({ variableName }, operations) => {
150
+ const getServiceVariableFactory = (service, operations) => {
86
151
  return factory.createVariableStatement([factory.createToken(ts.SyntaxKind.ExportKeyword)], factory.createVariableDeclarationList([
87
- factory.createVariableDeclaration(factory.createIdentifier(variableName), undefined, factory.createTypeLiteralNode(operations.map(getServiceVariableTypeFactory)), factory.createObjectLiteralExpression(operations.map(getServiceVariablePropertyFactory), true)),
152
+ factory.createVariableDeclaration(factory.createIdentifier(service.variableName), undefined, factory.createTypeLiteralNode(operations.map((operation) => getServiceVariableTypeFactory(operation))), factory.createObjectLiteralExpression(operations.map(getServiceVariablePropertyFactory), true)),
88
153
  ], ts.NodeFlags.Const));
89
154
  };
155
+ const getOperationsTypes = (operations) => {
156
+ return operations.flatMap((operation) => {
157
+ const nodes = [
158
+ factory.createTypeAliasDeclaration(undefined, factory.createIdentifier(getOperationSchemaTypeName(operation)), undefined, getOperationSchemaFactory(operation)),
159
+ factory.createTypeAliasDeclaration(undefined, factory.createIdentifier(getOperationParametersTypeName(operation)), undefined, createOperationParametersFactory(operation)),
160
+ factory.createTypeAliasDeclaration(undefined, factory.createIdentifier(getOperationDataTypeName(operation)), undefined, getOperationResponseFactory(operation, 'success')),
161
+ factory.createTypeAliasDeclaration(undefined, factory.createIdentifier(getOperationErrorTypeName(operation)), undefined, getOperationResponseFactory(operation, 'errors')),
162
+ ];
163
+ if (operation.method !== 'get') {
164
+ nodes.push(factory.createTypeAliasDeclaration(undefined, factory.createIdentifier(getOperationBodyTypeName(operation)), undefined, getOperationBodyFactory(operation)));
165
+ }
166
+ return nodes;
167
+ });
168
+ };
169
+ const getOperationSchemaTypeName = (operation) => camelCase(`${operation.name}-Schema`, { pascalCase: true });
170
+ const getOperationParametersTypeName = (operation) => camelCase(`${operation.name}-Parameters`, { pascalCase: true });
171
+ const getOperationDataTypeName = (operation) => camelCase(`${operation.name}-Data`, { pascalCase: true });
172
+ const getOperationErrorTypeName = (operation) => camelCase(`${operation.name}-Error`, { pascalCase: true });
173
+ const getOperationBodyTypeName = (operation) => camelCase(`${operation.name}-Body`, { pascalCase: true });
90
174
  const getServiceVariableTypeFactory = (operation) => {
91
175
  const node = factory.createPropertySignature(undefined, factory.createIdentifier(operation.name), undefined, factory.createTypeLiteralNode([
92
176
  factory.createPropertySignature(undefined, factory.createIdentifier('schema'), undefined, getOperationSchemaFactory(operation)),
93
177
  ]));
94
- addSyntheticLeadingOperationComment(node, operation);
178
+ addOperationTSDoc(node, operation);
95
179
  return node;
96
180
  };
97
181
  const getServiceVariablePropertyFactory = (operation) => {
@@ -99,8 +183,8 @@ const getServiceVariablePropertyFactory = (operation) => {
99
183
  factory.createPropertyAssignment(factory.createIdentifier('schema'), factory.createObjectLiteralExpression([
100
184
  factory.createPropertyAssignment(factory.createIdentifier('method'), factory.createStringLiteral(operation.method)),
101
185
  factory.createPropertyAssignment(factory.createIdentifier('url'), factory.createStringLiteral(operation.path)),
102
- operation.mediaType
103
- ? factory.createPropertyAssignment(factory.createIdentifier('mediaType'), factory.createStringLiteral(operation.mediaType))
186
+ operation.requestBody
187
+ ? factory.createPropertyAssignment(factory.createIdentifier('mediaType'), factory.createArrayLiteralExpression(Object.keys(operation.requestBody.content).map((mediaType) => factory.createStringLiteral(mediaType))))
104
188
  : null,
105
189
  operation.security
106
190
  ? factory.createPropertyAssignment(factory.createIdentifier('security'), factory.createArrayLiteralExpression(getOperationSecuritySchemas(operation.security).map((securitySchemaName) => factory.createStringLiteral(securitySchemaName))))
@@ -118,17 +202,142 @@ const createMultilineComment = (comment) => {
118
202
  }
119
203
  return '';
120
204
  };
121
- const createOperationComment = (operation) => {
122
- return createMultilineComment([
123
- operation.deprecated ? '@deprecated' : null,
124
- operation.summary ? `@summary ${operation.summary}` : null,
125
- operation.description ? `@description ${operation.description}` : null,
126
- ].filter((comment) => Boolean(comment)));
127
- };
128
- const addSyntheticLeadingOperationComment = (node, operation) => {
129
- const comment = createOperationComment(operation);
205
+ const addOperationTSDoc = (node, operation) => {
206
+ const comment = createMultilineComment(createOperationCommonTSDoc(operation));
130
207
  if (comment)
131
208
  ts.addSyntheticLeadingComment(node, ts.SyntaxKind.MultiLineCommentTrivia, comment, true);
132
209
  };
133
210
  const getOperationSecuritySchemas = (security) => security.flatMap((security) => Object.keys(security).map((securitySchemaName) => securitySchemaName));
211
+ const createServicesQueryOperationNodes = () => [
212
+ ...createServiceOperationCancelQueriesNodes(),
213
+ ...createServiceOperationUseQueryNodes(),
214
+ ...createServiceOperationFetchInfiniteQueryNodes(),
215
+ ...createServiceOperationFetchQueryNodes(),
216
+ ...createServiceOperationGetInfiniteQueryDataNodes(),
217
+ ...createServiceOperationGetQueriesDataNodes(),
218
+ ...createServiceOperationGetQueryDataNodes(),
219
+ ...createServiceOperationGetQueryStateNodes(),
220
+ ...createServiceOperationInvalidateQueriesNodes(),
221
+ ...createServiceOperationIsFetchingQueriesNodes(),
222
+ ...createServiceOperationQueryFnNodes(),
223
+ ...createServiceOperationRefetchQueriesNodes(),
224
+ ...createServiceOperationRemoveQueriesNodes(),
225
+ ...createServiceOperationResetQueriesNodes(),
226
+ ...createServiceOperationSetInfiniteQueryDataNodes(),
227
+ ...createServiceOperationSetQueriesDataNodes(),
228
+ ...createServiceOperationSetQueryDataNodes(),
229
+ ...createServiceOperationUseInfiniteQueryNodes(),
230
+ ...createServiceOperationUseIsFetchingQueriesNodes(),
231
+ ...createServiceOperationUseQueriesNodes(),
232
+ ...createServiceOperationUseQueryNodes(),
233
+ ...createServiceOperationUseSuspenseInfiniteQueryNodes(),
234
+ ...createServiceOperationUseSuspenseQueriesNodes(),
235
+ ...createServiceOperationUseSuspenseQueryNodes(),
236
+ ];
237
+ const createServicesMutationOperationNodes = () => [
238
+ ...createServiceOperationUseMutationNodes(),
239
+ ...createServiceOperationUseIsMutatingNodes(),
240
+ ...createServiceOperationIsMutatingQueriesNodes(),
241
+ ...createServiceOperationMutationFnNodes(),
242
+ ...createServiceOperationUseMutationStateNodes(),
243
+ ];
244
+ const getMethodSignatureNodes = (nodes) => {
245
+ return nodes.flatMap((node) => ts.isInterfaceDeclaration(node)
246
+ ? node.members.filter((node) => ts.isMethodSignature(node) || ts.isCallSignatureDeclaration(node))
247
+ : []);
248
+ };
249
+ const getModuleTypeImports = (nodes) => {
250
+ return nodes
251
+ .map((node) => {
252
+ const foo = ts.isImportDeclaration(node) &&
253
+ ts.isStringLiteral(node.moduleSpecifier) &&
254
+ node.importClause?.isTypeOnly &&
255
+ node.importClause.namedBindings &&
256
+ ts.isNamedImports(node.importClause.namedBindings)
257
+ ? {
258
+ module: node.moduleSpecifier.text,
259
+ imports: node.importClause.namedBindings.elements
260
+ .filter(ts.isImportSpecifier)
261
+ .map((specifier) => specifier.name.text),
262
+ }
263
+ : undefined;
264
+ return foo;
265
+ })
266
+ .reduce((acc, item) => {
267
+ if (!item)
268
+ return acc;
269
+ if (!acc[item.module])
270
+ acc[item.module] = item.imports.filter(arrayFilterUniqueCallback);
271
+ else
272
+ acc[item.module] = [...acc[item.module], ...item.imports].filter(arrayFilterUniqueCallback);
273
+ return acc;
274
+ }, {});
275
+ };
276
+ /**
277
+ * Replaces generic types with operation types with named types.
278
+ *
279
+ * For example, replaces `TParams` and `TQueryFnData` will be
280
+ * replaced with `GetEntitiesSchemaParameters` and `GetEntitiesSchemaData`.
281
+ */
282
+ function replaceGenericTypesWithOperationTypes(node, operation) {
283
+ const transformer = (context) => (rootNode) => {
284
+ function visit(node) {
285
+ if (ts.isTypeReferenceNode(node) && ts.isIdentifier(node.typeName)) {
286
+ let newTypeName;
287
+ if (node.typeName.text === 'TSchema')
288
+ newTypeName = getOperationSchemaTypeName(operation);
289
+ else if (node.typeName.text === 'TParams')
290
+ newTypeName = getOperationParametersTypeName(operation);
291
+ else if (node.typeName.text === 'TQueryFnData' ||
292
+ node.typeName.text === 'TMutationData')
293
+ newTypeName = getOperationDataTypeName(operation);
294
+ else if (node.typeName.text === 'TError')
295
+ newTypeName = getOperationErrorTypeName(operation);
296
+ else if (node.typeName.text === 'TBody')
297
+ newTypeName = getOperationBodyTypeName(operation);
298
+ if (newTypeName) {
299
+ return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(newTypeName), node.typeArguments);
300
+ }
301
+ }
302
+ return ts.visitEachChild(node, visit, context);
303
+ }
304
+ return ts.visitNode(rootNode, visit);
305
+ };
306
+ const result = ts.transform(node, [transformer]);
307
+ return result.transformed;
308
+ }
309
+ /**
310
+ * Replaces `AreAllOptional<TParams>` with `TParams | void` if `TParams` is optional,
311
+ * and with `TParams` when at least one parameter is required.
312
+ */
313
+ function reduceAreAllOptionalConditionalTParamsType(node, operation) {
314
+ const transformer = (context) => (rootNode) => {
315
+ function visit(node) {
316
+ if (ts.isConditionalTypeNode(node) &&
317
+ ts.isTypeReferenceNode(node.checkType) &&
318
+ ts.isIdentifier(node.checkType.typeName) &&
319
+ node.checkType.typeName.text === 'AreAllOptional' &&
320
+ node.checkType.typeArguments?.every((node) => {
321
+ return (ts.isTypeReferenceNode(node) &&
322
+ ts.isIdentifier(node.typeName) &&
323
+ node.typeName.text === 'TParams');
324
+ })) {
325
+ if (!operation.parameters?.length ||
326
+ operation.parameters.every((parameter) => !parameter.required)) {
327
+ return node.trueType;
328
+ }
329
+ else {
330
+ return node.falseType;
331
+ }
332
+ }
333
+ return ts.visitEachChild(node, visit, context);
334
+ }
335
+ return ts.visitNode(rootNode, visit);
336
+ };
337
+ const result = ts.transform(node, [transformer]);
338
+ return result.transformed;
339
+ }
340
+ function arrayFilterUniqueCallback(value, index, self) {
341
+ return self.indexOf(value) === index;
342
+ }
134
343
  //# sourceMappingURL=getServiceFactory.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getServiceFactory.js","sourceRoot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AAG,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjD,OAAO,MAAM,CAAC,WAAkB,CAAC;AACnC,CAAC;AAED,SAAS,yBAAyB,CAAI,KAAQ,EAAE,KAAa,EAAE,IAAS;IACtE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;AACvC,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** This file was auto-generated by "@openapi-qraft/tanstack-query-react-plugin" codegen script. */
2
+ import ts from "typescript";
3
+ export declare const createServiceOperationCancelQueriesNodes: () => (ts.ImportDeclaration | ts.InterfaceDeclaration)[];
4
+ //# sourceMappingURL=ServiceOperationCancelQueries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceOperationCancelQueries.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/service-operation.generated/ServiceOperationCancelQueries.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,eAAO,MAAM,wCAAwC,0DAuKpD,CAAC"}
@@ -0,0 +1,38 @@
1
+ /** This file was auto-generated by "@openapi-qraft/tanstack-query-react-plugin" codegen script. */
2
+ import ts from "typescript";
3
+ const factory = ts.factory;
4
+ export const createServiceOperationCancelQueriesNodes = () => [
5
+ factory.createImportDeclaration(undefined, factory.createImportClause(true, undefined, factory.createNamedImports([
6
+ factory.createImportSpecifier(false, undefined, factory.createIdentifier("QueryFiltersByParameters")),
7
+ factory.createImportSpecifier(false, undefined, factory.createIdentifier("QueryFiltersByQueryKey"))
8
+ ])), factory.createStringLiteral("@openapi-qraft/tanstack-query-react-types"), undefined),
9
+ factory.createImportDeclaration(undefined, factory.createImportClause(true, undefined, factory.createNamedImports([factory.createImportSpecifier(false, undefined, factory.createIdentifier("CancelOptions"))])), factory.createStringLiteral("@tanstack/query-core"), undefined),
10
+ factory.createInterfaceDeclaration([factory.createToken(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier("ServiceOperationCancelQueries"), [
11
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TSchema"), factory.createTypeLiteralNode([
12
+ factory.createPropertySignature(undefined, factory.createIdentifier("url"), undefined, factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword)),
13
+ factory.createPropertySignature(undefined, factory.createIdentifier("method"), undefined, factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword))
14
+ ]), undefined),
15
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TQueryFnData"), undefined, undefined),
16
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TParams"), undefined, undefined),
17
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TError"), undefined, undefined)
18
+ ], undefined, [factory.createMethodSignature(undefined, factory.createIdentifier("cancelQueries"), undefined, [factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TInfinite"), factory.createKeywordTypeNode(ts.SyntaxKind.BooleanKeyword), factory.createLiteralTypeNode(factory.createFalse()))], [
19
+ factory.createParameterDeclaration(undefined, undefined, factory.createIdentifier("filters"), factory.createToken(ts.SyntaxKind.QuestionToken), factory.createUnionTypeNode([
20
+ factory.createTypeReferenceNode(factory.createIdentifier("QueryFiltersByParameters"), [
21
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
22
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
23
+ factory.createTypeReferenceNode(factory.createIdentifier("TInfinite"), undefined),
24
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
25
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
26
+ ]),
27
+ factory.createTypeReferenceNode(factory.createIdentifier("QueryFiltersByQueryKey"), [
28
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
29
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
30
+ factory.createTypeReferenceNode(factory.createIdentifier("TInfinite"), undefined),
31
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
32
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
33
+ ])
34
+ ]), undefined),
35
+ factory.createParameterDeclaration(undefined, undefined, factory.createIdentifier("options"), factory.createToken(ts.SyntaxKind.QuestionToken), factory.createTypeReferenceNode(factory.createIdentifier("CancelOptions"), undefined), undefined)
36
+ ], factory.createTypeReferenceNode(factory.createIdentifier("Promise"), [factory.createKeywordTypeNode(ts.SyntaxKind.VoidKeyword)]))])
37
+ ];
38
+ //# sourceMappingURL=ServiceOperationCancelQueries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceOperationCancelQueries.js","sourceRoot":"","sources":["../../../src/ts-factory/service-operation.generated/ServiceOperationCancelQueries.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,MAAM,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;AAC3B,MAAM,CAAC,MAAM,wCAAwC,GAAG,GAAG,EAAE,CAAC;IAC5D,OAAO,CAAC,uBAAuB,CAC7B,SAAS,EACT,OAAO,CAAC,kBAAkB,CACxB,IAAI,EACJ,SAAS,EACT,OAAO,CAAC,kBAAkB,CAAC;QACzB,OAAO,CAAC,qBAAqB,CAC3B,KAAK,EACL,SAAS,EACT,OAAO,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CACrD;QACD,OAAO,CAAC,qBAAqB,CAC3B,KAAK,EACL,SAAS,EACT,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CACnD;KACF,CAAC,CACH,EACD,OAAO,CAAC,mBAAmB,CAAC,2CAA2C,CAAC,EACxE,SAAS,CACV;IACD,OAAO,CAAC,uBAAuB,CAC7B,SAAS,EACT,OAAO,CAAC,kBAAkB,CACxB,IAAI,EACJ,SAAS,EACT,OAAO,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,qBAAqB,CACvD,KAAK,EACL,SAAS,EACT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,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,EACrC,SAAS,CACV;oBACD,OAAO,CAAC,uBAAuB,CAC7B,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EACnC,SAAS,CACV;oBACD,OAAO,CAAC,uBAAuB,CAC7B,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAClC,SAAS,CACV;iBACF,CACF;aACF,CAAC,EACF,SAAS,CACV;YACD,OAAO,CAAC,0BAA0B,CAChC,SAAS,EACT,SAAS,EACT,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EACnC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAChD,OAAO,CAAC,uBAAuB,CAC7B,OAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,EACzC,SAAS,CACV,EACD,SAAS,CACV;SACF,EACD,OAAO,CAAC,uBAAuB,CAC7B,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EACnC,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAC3D,CACF,CAAC,CACH;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** This file was auto-generated by "@openapi-qraft/tanstack-query-react-plugin" codegen script. */
2
+ import ts from "typescript";
3
+ export declare const createServiceOperationFetchInfiniteQueryNodes: () => (ts.ImportDeclaration | ts.InterfaceDeclaration)[];
4
+ //# sourceMappingURL=ServiceOperationFetchInfiniteQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceOperationFetchInfiniteQuery.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/service-operation.generated/ServiceOperationFetchInfiniteQuery.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,eAAO,MAAM,6CAA6C,0DAgVzD,CAAC"}
@@ -0,0 +1,89 @@
1
+ /** This file was auto-generated by "@openapi-qraft/tanstack-query-react-plugin" codegen script. */
2
+ import ts from "typescript";
3
+ const factory = ts.factory;
4
+ export const createServiceOperationFetchInfiniteQueryNodes = () => [
5
+ factory.createImportDeclaration(undefined, factory.createImportClause(true, undefined, factory.createNamedImports([
6
+ factory.createImportSpecifier(false, undefined, factory.createIdentifier("FetchInfiniteQueryOptionsByParameters")),
7
+ factory.createImportSpecifier(false, undefined, factory.createIdentifier("FetchInfiniteQueryOptionsByQueryKey")),
8
+ factory.createImportSpecifier(false, undefined, factory.createIdentifier("FetchInfiniteQueryOptionsQueryFn")),
9
+ factory.createImportSpecifier(false, undefined, factory.createIdentifier("OperationInfiniteData"))
10
+ ])), factory.createStringLiteral("@openapi-qraft/tanstack-query-react-types"), undefined),
11
+ factory.createInterfaceDeclaration([factory.createToken(ts.SyntaxKind.ExportKeyword)], factory.createIdentifier("ServiceOperationFetchInfiniteQuery"), [
12
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TSchema"), factory.createTypeLiteralNode([
13
+ factory.createPropertySignature(undefined, factory.createIdentifier("url"), undefined, factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword)),
14
+ factory.createPropertySignature(undefined, factory.createIdentifier("method"), undefined, factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword))
15
+ ]), undefined),
16
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TQueryFnData"), undefined, undefined),
17
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TParams"), undefined, undefined),
18
+ factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TError"), undefined, undefined)
19
+ ], undefined, [
20
+ factory.createMethodSignature(undefined, factory.createIdentifier("fetchInfiniteQuery"), undefined, [factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TPageParam"), factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined), undefined)], [factory.createParameterDeclaration(undefined, undefined, factory.createIdentifier("options"), undefined, factory.createUnionTypeNode([
21
+ factory.createParenthesizedType(factory.createIntersectionTypeNode([
22
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsByQueryKey"), [
23
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
24
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
25
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
26
+ factory.createTypeReferenceNode(factory.createIdentifier("TPageParam"), undefined),
27
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
28
+ ]),
29
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsQueryFn"), [
30
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
31
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
32
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
33
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
34
+ ])
35
+ ])),
36
+ factory.createParenthesizedType(factory.createIntersectionTypeNode([
37
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsByParameters"), [
38
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
39
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
40
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
41
+ factory.createTypeReferenceNode(factory.createIdentifier("TPageParam"), undefined),
42
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
43
+ ]),
44
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsQueryFn"), [
45
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
46
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
47
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
48
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
49
+ ])
50
+ ]))
51
+ ]), undefined)], factory.createTypeReferenceNode(factory.createIdentifier("Promise"), [factory.createTypeReferenceNode(factory.createIdentifier("OperationInfiniteData"), [
52
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
53
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined)
54
+ ])])),
55
+ factory.createMethodSignature(undefined, factory.createIdentifier("prefetchInfiniteQuery"), undefined, [factory.createTypeParameterDeclaration(undefined, factory.createIdentifier("TPageParam"), factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined), undefined)], [factory.createParameterDeclaration(undefined, undefined, factory.createIdentifier("options"), undefined, factory.createUnionTypeNode([
56
+ factory.createParenthesizedType(factory.createIntersectionTypeNode([
57
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsByQueryKey"), [
58
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
59
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
60
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
61
+ factory.createTypeReferenceNode(factory.createIdentifier("TPageParam"), undefined),
62
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
63
+ ]),
64
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsQueryFn"), [
65
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
66
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
67
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
68
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
69
+ ])
70
+ ])),
71
+ factory.createParenthesizedType(factory.createIntersectionTypeNode([
72
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsByParameters"), [
73
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
74
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
75
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
76
+ factory.createTypeReferenceNode(factory.createIdentifier("TPageParam"), undefined),
77
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
78
+ ]),
79
+ factory.createTypeReferenceNode(factory.createIdentifier("FetchInfiniteQueryOptionsQueryFn"), [
80
+ factory.createTypeReferenceNode(factory.createIdentifier("TSchema"), undefined),
81
+ factory.createTypeReferenceNode(factory.createIdentifier("TQueryFnData"), undefined),
82
+ factory.createTypeReferenceNode(factory.createIdentifier("TParams"), undefined),
83
+ factory.createTypeReferenceNode(factory.createIdentifier("TError"), undefined)
84
+ ])
85
+ ]))
86
+ ]), undefined)], factory.createTypeReferenceNode(factory.createIdentifier("Promise"), [factory.createKeywordTypeNode(ts.SyntaxKind.VoidKeyword)]))
87
+ ])
88
+ ];
89
+ //# sourceMappingURL=ServiceOperationFetchInfiniteQuery.js.map