mobx-tanstack-query-api 0.24.0 → 0.26.0

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 (264) hide show
  1. package/builtin.cjs +27 -0
  2. package/builtin.cjs.map +1 -0
  3. package/builtin.d.ts +6 -0
  4. package/builtin.js +27 -0
  5. package/builtin.js.map +1 -0
  6. package/cli.cjs +1279 -0
  7. package/cli.cjs.map +1 -0
  8. package/{codegen/types/generate-query-api-params.d.cts → cli.d.ts} +55 -10
  9. package/cli.js +1278 -0
  10. package/cli.js.map +1 -0
  11. package/index.cjs +771 -16
  12. package/index.cjs.map +1 -0
  13. package/index.d.ts +322 -2
  14. package/index.js +768 -2
  15. package/index.js.map +1 -0
  16. package/package.json +21 -64
  17. package/builtin/index.cjs +0 -25
  18. package/builtin/index.d.cts +0 -4
  19. package/builtin/index.d.cts.map +0 -1
  20. package/builtin/index.d.ts +0 -4
  21. package/builtin/index.d.ts.map +0 -1
  22. package/builtin/index.js +0 -22
  23. package/cli/bin.cjs +0 -17
  24. package/cli/bin.d.cts +0 -2
  25. package/cli/bin.d.cts.map +0 -1
  26. package/cli/bin.d.ts +0 -2
  27. package/cli/bin.d.ts.map +0 -1
  28. package/cli/bin.js +0 -15
  29. package/cli/index.cjs +0 -18
  30. package/cli/index.d.cts +0 -3
  31. package/cli/index.d.cts.map +0 -1
  32. package/cli/index.d.ts +0 -3
  33. package/cli/index.d.ts.map +0 -1
  34. package/cli/index.js +0 -2
  35. package/cli/utils/define-config.cjs +0 -9
  36. package/cli/utils/define-config.d.cts +0 -4
  37. package/cli/utils/define-config.d.cts.map +0 -1
  38. package/cli/utils/define-config.d.ts +0 -4
  39. package/cli/utils/define-config.d.ts.map +0 -1
  40. package/cli/utils/define-config.js +0 -5
  41. package/cli/utils/exec-config-path.cjs +0 -16
  42. package/cli/utils/exec-config-path.d.cts +0 -2
  43. package/cli/utils/exec-config-path.d.cts.map +0 -1
  44. package/cli/utils/exec-config-path.d.ts +0 -2
  45. package/cli/utils/exec-config-path.d.ts.map +0 -1
  46. package/cli/utils/exec-config-path.js +0 -12
  47. package/cli/utils/resolve-config-path.cjs +0 -65
  48. package/cli/utils/resolve-config-path.d.cts +0 -3
  49. package/cli/utils/resolve-config-path.d.cts.map +0 -1
  50. package/cli/utils/resolve-config-path.d.ts +0 -3
  51. package/cli/utils/resolve-config-path.d.ts.map +0 -1
  52. package/cli/utils/resolve-config-path.js +0 -25
  53. package/codegen/index.cjs +0 -545
  54. package/codegen/index.d.cts +0 -4
  55. package/codegen/index.d.cts.map +0 -1
  56. package/codegen/index.d.ts +0 -4
  57. package/codegen/index.d.ts.map +0 -1
  58. package/codegen/index.js +0 -524
  59. package/codegen/templates/all-endpoints-per-file.tmpl.cjs +0 -94
  60. package/codegen/templates/all-endpoints-per-file.tmpl.d.cts +0 -14
  61. package/codegen/templates/all-endpoints-per-file.tmpl.d.cts.map +0 -1
  62. package/codegen/templates/all-endpoints-per-file.tmpl.d.ts +0 -14
  63. package/codegen/templates/all-endpoints-per-file.tmpl.d.ts.map +0 -1
  64. package/codegen/templates/all-endpoints-per-file.tmpl.js +0 -90
  65. package/codegen/templates/all-exports.tmpl.cjs +0 -14
  66. package/codegen/templates/all-exports.tmpl.d.cts +0 -9
  67. package/codegen/templates/all-exports.tmpl.d.cts.map +0 -1
  68. package/codegen/templates/all-exports.tmpl.d.ts +0 -9
  69. package/codegen/templates/all-exports.tmpl.d.ts.map +0 -1
  70. package/codegen/templates/all-exports.tmpl.js +0 -9
  71. package/codegen/templates/constants.cjs +0 -5
  72. package/codegen/templates/constants.d.cts +0 -2
  73. package/codegen/templates/constants.d.cts.map +0 -1
  74. package/codegen/templates/constants.d.ts +0 -2
  75. package/codegen/templates/constants.d.ts.map +0 -1
  76. package/codegen/templates/constants.js +0 -2
  77. package/codegen/templates/data-contract.tmpl.cjs +0 -49
  78. package/codegen/templates/data-contract.tmpl.d.cts +0 -8
  79. package/codegen/templates/data-contract.tmpl.d.cts.map +0 -1
  80. package/codegen/templates/data-contract.tmpl.d.ts +0 -8
  81. package/codegen/templates/data-contract.tmpl.d.ts.map +0 -1
  82. package/codegen/templates/data-contract.tmpl.js +0 -45
  83. package/codegen/templates/data-contracts-file.tmpl.cjs +0 -27
  84. package/codegen/templates/data-contracts-file.tmpl.d.cts +0 -6
  85. package/codegen/templates/data-contracts-file.tmpl.d.cts.map +0 -1
  86. package/codegen/templates/data-contracts-file.tmpl.d.ts +0 -6
  87. package/codegen/templates/data-contracts-file.tmpl.d.ts.map +0 -1
  88. package/codegen/templates/data-contracts-file.tmpl.js +0 -23
  89. package/codegen/templates/endpoint-jsdoc.tmpl.cjs +0 -111
  90. package/codegen/templates/endpoint-jsdoc.tmpl.d.cts +0 -8
  91. package/codegen/templates/endpoint-jsdoc.tmpl.d.cts.map +0 -1
  92. package/codegen/templates/endpoint-jsdoc.tmpl.d.ts +0 -8
  93. package/codegen/templates/endpoint-jsdoc.tmpl.d.ts.map +0 -1
  94. package/codegen/templates/endpoint-jsdoc.tmpl.js +0 -107
  95. package/codegen/templates/endpoint-per-file.tmpl.cjs +0 -87
  96. package/codegen/templates/endpoint-per-file.tmpl.d.cts +0 -14
  97. package/codegen/templates/endpoint-per-file.tmpl.d.cts.map +0 -1
  98. package/codegen/templates/endpoint-per-file.tmpl.d.ts +0 -14
  99. package/codegen/templates/endpoint-per-file.tmpl.d.ts.map +0 -1
  100. package/codegen/templates/endpoint-per-file.tmpl.js +0 -83
  101. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.cjs +0 -10
  102. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.cts +0 -6
  103. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.cts.map +0 -1
  104. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.ts +0 -6
  105. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.ts.map +0 -1
  106. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.js +0 -6
  107. package/codegen/templates/meta-info.tmpl.cjs +0 -48
  108. package/codegen/templates/meta-info.tmpl.d.cts +0 -9
  109. package/codegen/templates/meta-info.tmpl.d.cts.map +0 -1
  110. package/codegen/templates/meta-info.tmpl.d.ts +0 -9
  111. package/codegen/templates/meta-info.tmpl.d.ts.map +0 -1
  112. package/codegen/templates/meta-info.tmpl.js +0 -42
  113. package/codegen/templates/new-endpoint.tmpl.cjs +0 -188
  114. package/codegen/templates/new-endpoint.tmpl.d.cts +0 -15
  115. package/codegen/templates/new-endpoint.tmpl.d.cts.map +0 -1
  116. package/codegen/templates/new-endpoint.tmpl.d.ts +0 -15
  117. package/codegen/templates/new-endpoint.tmpl.d.ts.map +0 -1
  118. package/codegen/templates/new-endpoint.tmpl.js +0 -184
  119. package/codegen/types/all-import-file-params.cjs +0 -2
  120. package/codegen/types/all-import-file-params.d.cts +0 -5
  121. package/codegen/types/all-import-file-params.d.cts.map +0 -1
  122. package/codegen/types/all-import-file-params.d.ts +0 -5
  123. package/codegen/types/all-import-file-params.d.ts.map +0 -1
  124. package/codegen/types/all-import-file-params.js +0 -1
  125. package/codegen/types/base-tmpl-params.cjs +0 -2
  126. package/codegen/types/base-tmpl-params.d.cts +0 -16
  127. package/codegen/types/base-tmpl-params.d.cts.map +0 -1
  128. package/codegen/types/base-tmpl-params.d.ts +0 -16
  129. package/codegen/types/base-tmpl-params.d.ts.map +0 -1
  130. package/codegen/types/base-tmpl-params.js +0 -1
  131. package/codegen/types/codegen-data-utils.cjs +0 -2
  132. package/codegen/types/codegen-data-utils.d.cts +0 -8
  133. package/codegen/types/codegen-data-utils.d.cts.map +0 -1
  134. package/codegen/types/codegen-data-utils.d.ts +0 -8
  135. package/codegen/types/codegen-data-utils.d.ts.map +0 -1
  136. package/codegen/types/codegen-data-utils.js +0 -1
  137. package/codegen/types/endpoint-data.cjs +0 -2
  138. package/codegen/types/endpoint-data.d.cts +0 -3
  139. package/codegen/types/endpoint-data.d.cts.map +0 -1
  140. package/codegen/types/endpoint-data.d.ts +0 -3
  141. package/codegen/types/endpoint-data.d.ts.map +0 -1
  142. package/codegen/types/endpoint-data.js +0 -1
  143. package/codegen/types/generate-query-api-params.cjs +0 -2
  144. package/codegen/types/generate-query-api-params.d.cts.map +0 -1
  145. package/codegen/types/generate-query-api-params.d.ts +0 -162
  146. package/codegen/types/generate-query-api-params.d.ts.map +0 -1
  147. package/codegen/types/generate-query-api-params.js +0 -1
  148. package/codegen/types/import-file-params.cjs +0 -2
  149. package/codegen/types/import-file-params.d.cts +0 -5
  150. package/codegen/types/import-file-params.d.cts.map +0 -1
  151. package/codegen/types/import-file-params.d.ts +0 -5
  152. package/codegen/types/import-file-params.d.ts.map +0 -1
  153. package/codegen/types/import-file-params.js +0 -1
  154. package/codegen/types/index.cjs +0 -23
  155. package/codegen/types/index.d.cts +0 -8
  156. package/codegen/types/index.d.cts.map +0 -1
  157. package/codegen/types/index.d.ts +0 -8
  158. package/codegen/types/index.d.ts.map +0 -1
  159. package/codegen/types/index.js +0 -7
  160. package/codegen/types/meta-info.cjs +0 -2
  161. package/codegen/types/meta-info.d.cts +0 -6
  162. package/codegen/types/meta-info.d.cts.map +0 -1
  163. package/codegen/types/meta-info.d.ts +0 -6
  164. package/codegen/types/meta-info.d.ts.map +0 -1
  165. package/codegen/types/meta-info.js +0 -1
  166. package/codegen/types/type-info.cjs +0 -2
  167. package/codegen/types/type-info.d.cts +0 -4
  168. package/codegen/types/type-info.d.cts.map +0 -1
  169. package/codegen/types/type-info.d.ts +0 -4
  170. package/codegen/types/type-info.d.ts.map +0 -1
  171. package/codegen/types/type-info.js +0 -1
  172. package/codegen/utils/create-short-model-type.cjs +0 -12
  173. package/codegen/utils/create-short-model-type.d.cts +0 -5
  174. package/codegen/utils/create-short-model-type.d.cts.map +0 -1
  175. package/codegen/utils/create-short-model-type.d.ts +0 -5
  176. package/codegen/utils/create-short-model-type.d.ts.map +0 -1
  177. package/codegen/utils/create-short-model-type.js +0 -8
  178. package/codegen/utils/remove-unused-types.cjs +0 -117
  179. package/codegen/utils/remove-unused-types.d.cts +0 -7
  180. package/codegen/utils/remove-unused-types.d.cts.map +0 -1
  181. package/codegen/utils/remove-unused-types.d.ts +0 -7
  182. package/codegen/utils/remove-unused-types.d.ts.map +0 -1
  183. package/codegen/utils/remove-unused-types.js +0 -110
  184. package/codegen/utils/unpack-filter-option.cjs +0 -23
  185. package/codegen/utils/unpack-filter-option.d.cts +0 -7
  186. package/codegen/utils/unpack-filter-option.d.cts.map +0 -1
  187. package/codegen/utils/unpack-filter-option.d.ts +0 -7
  188. package/codegen/utils/unpack-filter-option.d.ts.map +0 -1
  189. package/codegen/utils/unpack-filter-option.js +0 -19
  190. package/index.d.cts +0 -3
  191. package/index.d.cts.map +0 -1
  192. package/index.d.ts.map +0 -1
  193. package/runtime/endpoint-infinite-query.cjs +0 -101
  194. package/runtime/endpoint-infinite-query.d.cts +0 -17
  195. package/runtime/endpoint-infinite-query.d.cts.map +0 -1
  196. package/runtime/endpoint-infinite-query.d.ts +0 -17
  197. package/runtime/endpoint-infinite-query.d.ts.map +0 -1
  198. package/runtime/endpoint-infinite-query.js +0 -97
  199. package/runtime/endpoint-infinite-query.types.cjs +0 -2
  200. package/runtime/endpoint-infinite-query.types.d.cts +0 -30
  201. package/runtime/endpoint-infinite-query.types.d.cts.map +0 -1
  202. package/runtime/endpoint-infinite-query.types.d.ts +0 -30
  203. package/runtime/endpoint-infinite-query.types.d.ts.map +0 -1
  204. package/runtime/endpoint-infinite-query.types.js +0 -1
  205. package/runtime/endpoint-mutation.cjs +0 -74
  206. package/runtime/endpoint-mutation.d.cts +0 -13
  207. package/runtime/endpoint-mutation.d.cts.map +0 -1
  208. package/runtime/endpoint-mutation.d.ts +0 -13
  209. package/runtime/endpoint-mutation.d.ts.map +0 -1
  210. package/runtime/endpoint-mutation.js +0 -70
  211. package/runtime/endpoint-mutation.types.cjs +0 -2
  212. package/runtime/endpoint-mutation.types.d.cts +0 -36
  213. package/runtime/endpoint-mutation.types.d.cts.map +0 -1
  214. package/runtime/endpoint-mutation.types.d.ts +0 -36
  215. package/runtime/endpoint-mutation.types.d.ts.map +0 -1
  216. package/runtime/endpoint-mutation.types.js +0 -1
  217. package/runtime/endpoint-query-client.cjs +0 -79
  218. package/runtime/endpoint-query-client.d.cts +0 -13
  219. package/runtime/endpoint-query-client.d.cts.map +0 -1
  220. package/runtime/endpoint-query-client.d.ts +0 -13
  221. package/runtime/endpoint-query-client.d.ts.map +0 -1
  222. package/runtime/endpoint-query-client.js +0 -75
  223. package/runtime/endpoint-query-client.types.cjs +0 -2
  224. package/runtime/endpoint-query-client.types.d.cts +0 -16
  225. package/runtime/endpoint-query-client.types.d.cts.map +0 -1
  226. package/runtime/endpoint-query-client.types.d.ts +0 -16
  227. package/runtime/endpoint-query-client.types.d.ts.map +0 -1
  228. package/runtime/endpoint-query-client.types.js +0 -1
  229. package/runtime/endpoint-query.cjs +0 -214
  230. package/runtime/endpoint-query.d.cts +0 -29
  231. package/runtime/endpoint-query.d.cts.map +0 -1
  232. package/runtime/endpoint-query.d.ts +0 -29
  233. package/runtime/endpoint-query.d.ts.map +0 -1
  234. package/runtime/endpoint-query.js +0 -208
  235. package/runtime/endpoint-query.types.cjs +0 -2
  236. package/runtime/endpoint-query.types.d.cts +0 -42
  237. package/runtime/endpoint-query.types.d.cts.map +0 -1
  238. package/runtime/endpoint-query.types.d.ts +0 -42
  239. package/runtime/endpoint-query.types.d.ts.map +0 -1
  240. package/runtime/endpoint-query.types.js +0 -1
  241. package/runtime/endpoint.cjs +0 -131
  242. package/runtime/endpoint.d.cts +0 -73
  243. package/runtime/endpoint.d.cts.map +0 -1
  244. package/runtime/endpoint.d.ts +0 -73
  245. package/runtime/endpoint.d.ts.map +0 -1
  246. package/runtime/endpoint.js +0 -127
  247. package/runtime/endpoint.types.cjs +0 -2
  248. package/runtime/endpoint.types.d.cts +0 -24
  249. package/runtime/endpoint.types.d.cts.map +0 -1
  250. package/runtime/endpoint.types.d.ts +0 -24
  251. package/runtime/endpoint.types.d.ts.map +0 -1
  252. package/runtime/endpoint.types.js +0 -1
  253. package/runtime/http-client.cjs +0 -190
  254. package/runtime/http-client.d.cts +0 -85
  255. package/runtime/http-client.d.cts.map +0 -1
  256. package/runtime/http-client.d.ts +0 -85
  257. package/runtime/http-client.d.ts.map +0 -1
  258. package/runtime/http-client.js +0 -184
  259. package/runtime/index.cjs +0 -25
  260. package/runtime/index.d.cts +0 -10
  261. package/runtime/index.d.cts.map +0 -1
  262. package/runtime/index.d.ts +0 -10
  263. package/runtime/index.d.ts.map +0 -1
  264. package/runtime/index.js +0 -9
@@ -1,184 +0,0 @@
1
- import { createShortModelType } from "../utils/create-short-model-type.js";
2
- import { formatGroupNameEnumKey, formatTagNameEnumKey, } from "./meta-info.tmpl.js";
3
- // RequestParams["type"]
4
- const requestContentKind = {
5
- URL_ENCODED: '"application/x-www-form-urlencoded"',
6
- FORM_DATA: '"multipart/form-data"',
7
- TEXT: '"text/plain"',
8
- BINARY: '"application/octet-stream"',
9
- };
10
- // RequestParams["format"]
11
- const responseContentKind = {
12
- TEXT: '"text"',
13
- IMAGE: '"blob"',
14
- FORM_DATA: '"formData"',
15
- BYTES: '"bytes"',
16
- };
17
- export const newEndpointTmpl = ({ route, codegenParams, importFileParams, utils, groupName, metaInfo, filterTypes, configuration, }) => {
18
- const { _ } = utils;
19
- const positiveResponseTypes = route.raw.responsesTypes?.filter((it) => +it.status >= 200 &&
20
- +it.status < 300 &&
21
- (!it.typeData || filterTypes(it.typeData)));
22
- const { requestBodyInfo, responseBodyInfo } = route;
23
- const routeRequest = route.request;
24
- const routeResponse = route.response;
25
- const { parameters, path, method, payload, query, requestParams, security } = routeRequest;
26
- const { raw } = route;
27
- const queryName = query?.name || 'query';
28
- const pathParams = _.values(parameters);
29
- const pathParamsNames = _.map(pathParams, 'name');
30
- const requestConfigParam = {
31
- name: 'requestParams',
32
- optional: true,
33
- type: 'RequestParams',
34
- defaultValue: '{}',
35
- };
36
- const inputParams = [
37
- ...pathParams,
38
- payload,
39
- query,
40
- requestConfigParam,
41
- ].filter(Boolean);
42
- const getArgs = ({ withPayload, withRequestConfigParam, }) => {
43
- return _.sortBy(_.compact([
44
- ...(requestParams
45
- ? [
46
- {
47
- name: pathParams.length > 0
48
- ? `{ ${_.join(pathParamsNames, ', ')}, ...${queryName} }`
49
- : queryName,
50
- optional: false,
51
- type: utils.getInlineParseContent(requestParams),
52
- },
53
- ]
54
- : pathParams),
55
- withPayload && payload,
56
- withRequestConfigParam && requestConfigParam,
57
- ]), [(o) => o.optional]);
58
- };
59
- const tags = (raw.tags || []).filter(Boolean);
60
- const requestOutputDataTypes = positiveResponseTypes.map((it) => it.type);
61
- const foundErrorModelType = (routeResponse.errorType &&
62
- configuration.modelTypes.find((it) => it.name === routeResponse.errorType)) ||
63
- null;
64
- const requestOutputErrorType = foundErrorModelType
65
- ? routeResponse.errorType
66
- : 'any';
67
- const pathParamsToInline = path.split('/').slice(1);
68
- let lastDynamicStructPos = 0;
69
- const queryParamStruct = query == null
70
- ? null
71
- : {
72
- type: 'dynamic',
73
- key: 'params',
74
- i: pathParamsToInline.length,
75
- param: lastDynamicStructPos > 0 ? lastDynamicStructPos - 1 : 0,
76
- };
77
- if (queryParamStruct && !lastDynamicStructPos) {
78
- lastDynamicStructPos++;
79
- }
80
- const requestInfoMeta = codegenParams.getEndpointMeta?.(route, utils);
81
- const requestMeta = codegenParams.getRequestMeta?.(route, utils);
82
- const resultPath = (codegenParams.requestPathPrefix ?? '') +
83
- path +
84
- (codegenParams.requestPathSuffix ?? '');
85
- const bodyContentType = requestContentKind[requestBodyInfo.contentKind] || null;
86
- const responseFormat = responseContentKind[responseBodyInfo.success?.schema?.contentKind] || null;
87
- const reservedDataContractNames = _.uniq([
88
- ...requestOutputDataTypes,
89
- requestOutputErrorType || 'any',
90
- ...getArgs({
91
- withPayload: true,
92
- }).map((it) => it.type),
93
- ]);
94
- const pathDeclaration = resultPath.replaceAll('$', '');
95
- const getHttpRequestGenerics = () => {
96
- const defaultOkResponse = positiveResponseTypes?.[0]?.type || 'unknown';
97
- const defaultBadResponse = requestOutputErrorType;
98
- const responses = raw.responsesTypes?.filter((it) => it.status !== 'default' &&
99
- (!it.typeData ||
100
- filterTypes(it.typeData))) || [];
101
- if (!responses?.length) {
102
- return `HttpResponse<unknown, ${requestOutputErrorType}>`;
103
- }
104
- if (responses.length === 1 && responses[0].isSuccess) {
105
- return `HttpResponse<${responses[0].type}, ${requestOutputErrorType}>`;
106
- }
107
- return `HttpMultistatusResponse<{
108
- ${responses
109
- .map((it) => {
110
- return [
111
- it.description && `/** ${it.description} */`,
112
- `${it.status}: ${it.type};`,
113
- ]
114
- .filter(Boolean)
115
- .join('\n');
116
- })
117
- .join('\n')}
118
- },
119
- ${defaultOkResponse},
120
- ${defaultBadResponse}
121
- >`;
122
- };
123
- const requestInputTypeDc = createShortModelType({
124
- typeIdentifier: 'type',
125
- name: _.upperFirst(_.camelCase(`${route.routeName.usage}Params`)),
126
- content: `{
127
- ${inputParams
128
- .map(({ name, optional, type }) => {
129
- return `${name}${optional ? '?' : ''}:${type}`;
130
- })
131
- .filter(Boolean)
132
- .join(', ')}
133
- }`,
134
- });
135
- const isAllowedInputType = filterTypes(requestInputTypeDc);
136
- return {
137
- reservedDataContractNames,
138
- localModelTypes: isAllowedInputType ? [requestInputTypeDc] : [],
139
- content: `
140
- new ${importFileParams.endpoint.exportName}<
141
- ${getHttpRequestGenerics()},
142
- ${isAllowedInputType ? requestInputTypeDc.name : 'any'},
143
- ${requestInfoMeta?.typeName ?? 'any'}
144
- >(
145
- {
146
- params: ({
147
- ${inputParams.map((it) => it.name)}
148
- }) => ({
149
- path: \`${resultPath}\`,
150
- method: '${_.upperCase(method)}',
151
- ${requestMeta?.tmplData ? `meta: ${requestMeta.tmplData},` : ''}
152
- ${query == null ? '' : `query: ${query.name},`}
153
- ${payload?.name ? `body: ${payload.name},` : ''}
154
- ${security ? 'secure: true,' : ''}
155
- ${bodyContentType ? `contentType: ${bodyContentType},` : ''}
156
- ${responseFormat ? `format: ${responseFormat},` : ''}
157
- ...${requestConfigParam.name},
158
- }),
159
- requiredParams: [${inputParams.filter((it) => !it.optional).map((it) => `"${it.name}"`)}],
160
- operationId: "${raw.operationId || _.camelCase(route.routeName.usage)}",
161
- path: [${pathDeclaration
162
- .split('/')
163
- .filter(Boolean)
164
- .map((it) => `"${it}"`)}],
165
- tags: [${tags.map((tag) => {
166
- if (metaInfo) {
167
- return `Tag.${formatTagNameEnumKey(tag, utils)}`;
168
- }
169
- return `"${tag}"`;
170
- })}],
171
- ${groupName ? `group: ${metaInfo ? `Group.${formatGroupNameEnumKey(groupName, utils)}` : `"${groupName}"`},` : ''}
172
- ${metaInfo?.namespace ? `namespace,` : ''}
173
- meta: ${requestInfoMeta?.tmplData ?? '{} as any'},
174
- },
175
- ${importFileParams.queryClient.exportName},
176
- ${importFileParams.httpClient.exportName},
177
- )
178
- `
179
- .split('\n')
180
- .map((it) => it.trim())
181
- .filter(Boolean)
182
- .join('\n'),
183
- };
184
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { KeyOfByValue } from 'yummies/utils/types';
2
- import type { GenerateQueryApiParams } from "./generate-query-api-params.cjs";
3
- import type { ImportFileParams } from "./import-file-params.cjs";
4
- export type AllImportFileParams = Record<KeyOfByValue<Required<GenerateQueryApiParams>, 'builtin' | ImportFileParams>, ImportFileParams>;
5
- //# sourceMappingURL=all-import-file-params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all-import-file-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/all-import-file-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,wCAAuC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAgC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CACtC,YAAY,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,SAAS,GAAG,gBAAgB,CAAC,EAC5E,gBAAgB,CACjB,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { KeyOfByValue } from 'yummies/utils/types';
2
- import type { GenerateQueryApiParams } from "./generate-query-api-params.js";
3
- import type { ImportFileParams } from "./import-file-params.js";
4
- export type AllImportFileParams = Record<KeyOfByValue<Required<GenerateQueryApiParams>, 'builtin' | ImportFileParams>, ImportFileParams>;
5
- //# sourceMappingURL=all-import-file-params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all-import-file-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/all-import-file-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,uCAAuC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAAgC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CACtC,YAAY,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,SAAS,GAAG,gBAAgB,CAAC,EAC5E,gBAAgB,CACjB,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import type { GenerateApiConfiguration, GenerateApiParams } from 'swagger-typescript-api';
2
- import type { Defined } from 'yummies/utils/types';
3
- import type { UnpackedFilterOption } from "../utils/unpack-filter-option.cjs";
4
- import type { AllImportFileParams } from "./all-import-file-params.cjs";
5
- import type { CodegenDataUtils } from "./codegen-data-utils.cjs";
6
- import type { GenerateQueryApiParams } from "./generate-query-api-params.cjs";
7
- export interface BaseTmplParams {
8
- formatTSContent: (content: string) => Promise<string>;
9
- configuration: GenerateApiConfiguration;
10
- codegenParams: GenerateQueryApiParams;
11
- codegenProcess: Parameters<Defined<Defined<GenerateApiParams['hooks']>['onInit']>>['1'];
12
- importFileParams: AllImportFileParams;
13
- utils: CodegenDataUtils;
14
- filterTypes: UnpackedFilterOption<Defined<GenerateQueryApiParams['filterTypes']>>;
15
- }
16
- //# sourceMappingURL=base-tmpl-params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-tmpl-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/base-tmpl-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,0CAAyC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,qCAAoC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,iCAAgC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,wCAAuC;AAE7E,MAAM,WAAW,cAAc;IAC7B,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,aAAa,EAAE,wBAAwB,CAAC;IACxC,aAAa,EAAE,sBAAsB,CAAC;IACtC,cAAc,EAAE,UAAU,CACxB,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CACvD,CAAC,GAAG,CAAC,CAAC;IACP,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,KAAK,EAAE,gBAAgB,CAAC;IACxB,WAAW,EAAE,oBAAoB,CAC/B,OAAO,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,CAC/C,CAAC;CACH"}
@@ -1,16 +0,0 @@
1
- import type { GenerateApiConfiguration, GenerateApiParams } from 'swagger-typescript-api';
2
- import type { Defined } from 'yummies/utils/types';
3
- import type { UnpackedFilterOption } from "../utils/unpack-filter-option.js";
4
- import type { AllImportFileParams } from "./all-import-file-params.js";
5
- import type { CodegenDataUtils } from "./codegen-data-utils.js";
6
- import type { GenerateQueryApiParams } from "./generate-query-api-params.js";
7
- export interface BaseTmplParams {
8
- formatTSContent: (content: string) => Promise<string>;
9
- configuration: GenerateApiConfiguration;
10
- codegenParams: GenerateQueryApiParams;
11
- codegenProcess: Parameters<Defined<Defined<GenerateApiParams['hooks']>['onInit']>>['1'];
12
- importFileParams: AllImportFileParams;
13
- utils: CodegenDataUtils;
14
- filterTypes: UnpackedFilterOption<Defined<GenerateQueryApiParams['filterTypes']>>;
15
- }
16
- //# sourceMappingURL=base-tmpl-params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-tmpl-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/base-tmpl-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,yCAAyC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,oCAAoC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAAgC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,uCAAuC;AAE7E,MAAM,WAAW,cAAc;IAC7B,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,aAAa,EAAE,wBAAwB,CAAC;IACxC,aAAa,EAAE,sBAAsB,CAAC;IACtC,cAAc,EAAE,UAAU,CACxB,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CACvD,CAAC,GAAG,CAAC,CAAC;IACP,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,KAAK,EAAE,gBAAgB,CAAC;IACxB,WAAW,EAAE,oBAAoB,CAC/B,OAAO,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,CAC/C,CAAC;CACH"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { LoDashStatic } from 'lodash';
2
- import type { AnyObject } from 'yummies/utils/types';
3
- export type CodegenDataUtils = {
4
- _: LoDashStatic;
5
- getInlineParseContent: (requestParams: AnyObject) => string;
6
- formatModelName: (modelName: string) => string;
7
- };
8
- //# sourceMappingURL=codegen-data-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codegen-data-utils.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/codegen-data-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,EAAE,YAAY,CAAC;IAChB,qBAAqB,EAAE,CAAC,aAAa,EAAE,SAAS,KAAK,MAAM,CAAC;IAC5D,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CAChD,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { LoDashStatic } from 'lodash';
2
- import type { AnyObject } from 'yummies/utils/types';
3
- export type CodegenDataUtils = {
4
- _: LoDashStatic;
5
- getInlineParseContent: (requestParams: AnyObject) => string;
6
- formatModelName: (modelName: string) => string;
7
- };
8
- //# sourceMappingURL=codegen-data-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"codegen-data-utils.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/codegen-data-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,EAAE,YAAY,CAAC;IAChB,qBAAqB,EAAE,CAAC,aAAa,EAAE,SAAS,KAAK,MAAM,CAAC;IAC5D,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CAChD,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import type { ParsedRoute } from 'swagger-typescript-api';
2
- export type EndpointData = ParsedRoute;
3
- //# sourceMappingURL=endpoint-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoint-data.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/endpoint-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ParsedRoute } from 'swagger-typescript-api';
2
- export type EndpointData = ParsedRoute;
3
- //# sourceMappingURL=endpoint-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoint-data.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/endpoint-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-query-api-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/generate-query-api-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CA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AE,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;QACtE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;KACnE,CAAC;IAEF;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -1,162 +0,0 @@
1
- import type { RawRouteInfo } from 'swagger-typescript-api';
2
- import type { AnyObject, Maybe } from 'yummies/utils/types';
3
- import type { RemoveUnusedTypesParams } from "../utils/remove-unused-types.js";
4
- import type { FilterOption } from "../utils/unpack-filter-option.js";
5
- import type { CodegenDataUtils } from "./codegen-data-utils.js";
6
- import type { EndpointData } from "./endpoint-data.js";
7
- import type { ImportFileParams } from "./import-file-params.js";
8
- import type { TypeInfo } from "./type-info.js";
9
- export interface GenerateQueryApiParams {
10
- /**
11
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#output)
12
- */
13
- output: string;
14
- /**
15
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#input)
16
- */
17
- input: string | AnyObject;
18
- /**
19
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#mixininput)
20
- */
21
- mixinInput?: string | AnyObject;
22
- /**
23
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#requestpathprefix)
24
- */
25
- requestPathPrefix?: string;
26
- /**
27
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#requestpathsuffix)
28
- */
29
- requestPathSuffix?: string;
30
- /**
31
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#removeunusedtypes)
32
- */
33
- removeUnusedTypes?: true | Partial<Omit<RemoveUnusedTypesParams, 'directory'>>;
34
- /**
35
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#formatendpointname)
36
- */
37
- formatEndpointName?: (endpointName: string, endpointData: RawRouteInfo) => Maybe<string>;
38
- /**
39
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#formatexportgroupname)
40
- */
41
- formatExportGroupName?: (groupName: string, utils: CodegenDataUtils) => string;
42
- /**
43
- * Various generation output types
44
- *
45
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#outputtype)
46
- *
47
- * `one-endpoint-per-file`
48
- * @example
49
- * ```
50
- * outputdir
51
- * groupname
52
- * index.ts
53
- * endpoints
54
- * index.ts
55
- * get-endpoint-1.ts
56
- * get-endpoint-n.ts
57
- * ```
58
- * @example
59
- * ```
60
- * outputdir
61
- * index.ts
62
- * endpoints
63
- * index.ts
64
- * get-endpoint-1.ts
65
- * get-endpoint-n.ts
66
- * ```
67
- *
68
- * `endpoints-per-file`
69
- * @example
70
- * ```
71
- * outputdir
72
- * groupname
73
- * index.ts
74
- * endpoints.ts
75
- * ```
76
- * @example
77
- * ```
78
- * outputdir
79
- * index.ts
80
- * endpoints.ts
81
- * ```
82
- */
83
- outputType?: 'one-endpoint-per-file' | 'endpoints-per-file';
84
- /**
85
- * Group endpoints and collect it into object
86
- *
87
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#groupby)
88
- */
89
- groupBy?: ((endpoint: EndpointData) => string) | `path-segment` | `path-segment-${number}` | `tag` | `tag-${number}`;
90
- /**
91
- * Collect all exports into single namespace
92
- *
93
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#namespace)
94
- */
95
- namespace?: string | ((utils: AnyObject) => string);
96
- /**
97
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#addpathsegmenttoroutename)
98
- */
99
- addPathSegmentToRouteName?: boolean | number;
100
- /**
101
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#queryclient)
102
- */
103
- queryClient?: 'builtin' | ImportFileParams;
104
- /**
105
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#endpoint)
106
- */
107
- endpoint?: 'builtin' | ImportFileParams;
108
- /**
109
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#httpclient)
110
- */
111
- httpClient?: 'builtin' | ImportFileParams;
112
- /**
113
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#getendpointmeta)
114
- */
115
- getEndpointMeta?: (route: AnyObject, utils: AnyObject) => {
116
- typeName?: string;
117
- typeNameImportPath?: string;
118
- tmplData: string;
119
- };
120
- /**
121
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#getrequestmeta)
122
- */
123
- getRequestMeta?: (route: AnyObject, utils: AnyObject) => {
124
- tmplData: string;
125
- };
126
- /**
127
- * Additional parameters used to fetch your OpenAPI schema
128
- *
129
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#fetchschemarequestoptions)
130
- */
131
- fetchSchemaRequestOptions?: RequestInit;
132
- otherCodegenParams?: AnyObject;
133
- /**
134
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#filterendpoints)
135
- */
136
- filterEndpoints?: FilterOption<(endpoint: EndpointData) => boolean>;
137
- /**
138
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#filtertypes)
139
- */
140
- filterTypes?: FilterOption<(type: TypeInfo) => boolean>;
141
- /**
142
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#filtergroups)
143
- */
144
- filterGroups?: FilterOption<(groupName: string) => boolean>;
145
- libImports?: {
146
- 'mobx-tanstack-query-api'?: string;
147
- };
148
- tsconfigPath?: string;
149
- transforms?: {
150
- groupEnumValue?: (group: string, namespace?: Maybe<string>) => string;
151
- tagEnumValue?: (tag: string, namespace?: Maybe<string>) => string;
152
- };
153
- /**
154
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#cleanoutput)
155
- */
156
- cleanOutput?: boolean;
157
- /**
158
- * [**Documentation**](https://js2me.github.io/mobx-tanstack-query-api/codegen/config/#nometainfo)
159
- */
160
- noMetaInfo?: boolean;
161
- }
162
- //# sourceMappingURL=generate-query-api-params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate-query-api-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/generate-query-api-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,wCAAwC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,yCAAyC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAAgC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAA2B;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAAgC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,uBAAuB;AAE/C,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CAAC,EACd,IAAI,GACJ,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,WAAW,CAAC,CAAC,CAAC;IAExD;;OAEG;IACH,kBAAkB,CAAC,EAAE,CACnB,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,YAAY,KACvB,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnB;;OA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EAAE,YAAY,KAAK,OAAO,CAAC,CAAC;IAEpE;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC;IAExD;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IAE5D,UAAU,CAAC,EAAE;QACX,yBAAyB,CAAC,EAAE,MAAM,CAAC;KACpC,CAAC;IAEF,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE;QACX,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;QACtE,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,MAAM,CAAC;KACnE,CAAC;IAEF;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface ImportFileParams {
2
- path: string;
3
- exportName: string;
4
- }
5
- //# sourceMappingURL=import-file-params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-file-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/import-file-params.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1,5 +0,0 @@
1
- export interface ImportFileParams {
2
- path: string;
3
- exportName: string;
4
- }
5
- //# sourceMappingURL=import-file-params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"import-file-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/import-file-params.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./all-import-file-params.cjs"), exports);
18
- __exportStar(require("./base-tmpl-params.cjs"), exports);
19
- __exportStar(require("./codegen-data-utils.cjs"), exports);
20
- __exportStar(require("./endpoint-data.cjs"), exports);
21
- __exportStar(require("./generate-query-api-params.cjs"), exports);
22
- __exportStar(require("./import-file-params.cjs"), exports);
23
- __exportStar(require("./meta-info.cjs"), exports);
@@ -1,8 +0,0 @@
1
- export * from "./all-import-file-params.cjs";
2
- export * from "./base-tmpl-params.cjs";
3
- export * from "./codegen-data-utils.cjs";
4
- export * from "./endpoint-data.cjs";
5
- export * from "./generate-query-api-params.cjs";
6
- export * from "./import-file-params.cjs";
7
- export * from "./meta-info.cjs";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/index.ts"],"names":[],"mappings":"AAAA,6CAA4C;AAC5C,uCAAsC;AACtC,yCAAwC;AACxC,oCAAmC;AACnC,gDAA+C;AAC/C,yCAAwC;AACxC,gCAA+B"}
@@ -1,8 +0,0 @@
1
- export * from "./all-import-file-params.js";
2
- export * from "./base-tmpl-params.js";
3
- export * from "./codegen-data-utils.js";
4
- export * from "./endpoint-data.js";
5
- export * from "./generate-query-api-params.js";
6
- export * from "./import-file-params.js";
7
- export * from "./meta-info.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,sCAAsC;AACtC,wCAAwC;AACxC,mCAAmC;AACnC,+CAA+C;AAC/C,wCAAwC;AACxC,+BAA+B"}
@@ -1,7 +0,0 @@
1
- export * from "./all-import-file-params.js";
2
- export * from "./base-tmpl-params.js";
3
- export * from "./codegen-data-utils.js";
4
- export * from "./endpoint-data.js";
5
- export * from "./generate-query-api-params.js";
6
- export * from "./import-file-params.js";
7
- export * from "./meta-info.js";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface MetaInfo {
2
- namespace: string | null;
3
- groupNames: string[];
4
- tags?: string[];
5
- }
6
- //# sourceMappingURL=meta-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta-info.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/meta-info.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB"}
@@ -1,6 +0,0 @@
1
- export interface MetaInfo {
2
- namespace: string | null;
3
- groupNames: string[];
4
- tags?: string[];
5
- }
6
- //# sourceMappingURL=meta-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta-info.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/meta-info.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });