mobx-tanstack-query-api 0.20.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/cli/utils/define-config.d.cts +1 -1
  2. package/cli/utils/define-config.d.cts.map +1 -1
  3. package/cli/utils/define-config.d.ts +1 -1
  4. package/cli/utils/define-config.d.ts.map +1 -1
  5. package/codegen/index.cjs +43 -43
  6. package/codegen/index.d.cts +2 -165
  7. package/codegen/index.d.cts.map +1 -1
  8. package/codegen/index.d.ts +2 -165
  9. package/codegen/index.d.ts.map +1 -1
  10. package/codegen/index.js +30 -44
  11. package/codegen/templates/all-endpoints-per-file.tmpl.cjs +8 -13
  12. package/codegen/templates/all-endpoints-per-file.tmpl.d.cts +5 -10
  13. package/codegen/templates/all-endpoints-per-file.tmpl.d.cts.map +1 -1
  14. package/codegen/templates/all-endpoints-per-file.tmpl.d.ts +5 -10
  15. package/codegen/templates/all-endpoints-per-file.tmpl.d.ts.map +1 -1
  16. package/codegen/templates/all-endpoints-per-file.tmpl.js +8 -13
  17. package/codegen/templates/all-exports.tmpl.d.cts +2 -4
  18. package/codegen/templates/all-exports.tmpl.d.cts.map +1 -1
  19. package/codegen/templates/all-exports.tmpl.d.ts +2 -4
  20. package/codegen/templates/all-exports.tmpl.d.ts.map +1 -1
  21. package/codegen/templates/data-contract.tmpl.d.cts +2 -2
  22. package/codegen/templates/data-contract.tmpl.d.cts.map +1 -1
  23. package/codegen/templates/data-contract.tmpl.d.ts +2 -2
  24. package/codegen/templates/data-contract.tmpl.d.ts.map +1 -1
  25. package/codegen/templates/data-contracts-file.tmpl.cjs +5 -5
  26. package/codegen/templates/data-contracts-file.tmpl.d.cts +3 -7
  27. package/codegen/templates/data-contracts-file.tmpl.d.cts.map +1 -1
  28. package/codegen/templates/data-contracts-file.tmpl.d.ts +3 -7
  29. package/codegen/templates/data-contracts-file.tmpl.d.ts.map +1 -1
  30. package/codegen/templates/data-contracts-file.tmpl.js +5 -5
  31. package/codegen/templates/endpoint-jsdoc.tmpl.cjs +2 -1
  32. package/codegen/templates/endpoint-jsdoc.tmpl.d.cts +3 -5
  33. package/codegen/templates/endpoint-jsdoc.tmpl.d.cts.map +1 -1
  34. package/codegen/templates/endpoint-jsdoc.tmpl.d.ts +3 -5
  35. package/codegen/templates/endpoint-jsdoc.tmpl.d.ts.map +1 -1
  36. package/codegen/templates/endpoint-jsdoc.tmpl.js +2 -1
  37. package/codegen/templates/endpoint-per-file.tmpl.cjs +8 -11
  38. package/codegen/templates/endpoint-per-file.tmpl.d.cts +4 -9
  39. package/codegen/templates/endpoint-per-file.tmpl.d.cts.map +1 -1
  40. package/codegen/templates/endpoint-per-file.tmpl.d.ts +4 -9
  41. package/codegen/templates/endpoint-per-file.tmpl.d.ts.map +1 -1
  42. package/codegen/templates/endpoint-per-file.tmpl.js +8 -11
  43. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.cts +2 -6
  44. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.cts.map +1 -1
  45. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.ts +2 -6
  46. package/codegen/templates/index-ts-for-endpoint-per-file.tmpl.d.ts.map +1 -1
  47. package/codegen/templates/meta-info.tmpl.d.cts +2 -5
  48. package/codegen/templates/meta-info.tmpl.d.cts.map +1 -1
  49. package/codegen/templates/meta-info.tmpl.d.ts +2 -5
  50. package/codegen/templates/meta-info.tmpl.d.ts.map +1 -1
  51. package/codegen/templates/new-endpoint.tmpl.cjs +5 -5
  52. package/codegen/templates/new-endpoint.tmpl.d.cts +4 -7
  53. package/codegen/templates/new-endpoint.tmpl.d.cts.map +1 -1
  54. package/codegen/templates/new-endpoint.tmpl.d.ts +4 -7
  55. package/codegen/templates/new-endpoint.tmpl.d.ts.map +1 -1
  56. package/codegen/templates/new-endpoint.tmpl.js +5 -5
  57. package/codegen/types/all-import-file-params.cjs +2 -0
  58. package/codegen/types/all-import-file-params.d.cts +5 -0
  59. package/codegen/types/all-import-file-params.d.cts.map +1 -0
  60. package/codegen/types/all-import-file-params.d.ts +5 -0
  61. package/codegen/types/all-import-file-params.d.ts.map +1 -0
  62. package/codegen/types/all-import-file-params.js +1 -0
  63. package/codegen/types/base-tmpl-params.cjs +2 -0
  64. package/codegen/types/base-tmpl-params.d.cts +14 -0
  65. package/codegen/types/base-tmpl-params.d.cts.map +1 -0
  66. package/codegen/types/base-tmpl-params.d.ts +14 -0
  67. package/codegen/types/base-tmpl-params.d.ts.map +1 -0
  68. package/codegen/types/base-tmpl-params.js +1 -0
  69. package/codegen/types/codegen-data-utils.cjs +2 -0
  70. package/codegen/types/codegen-data-utils.d.cts +8 -0
  71. package/codegen/types/codegen-data-utils.d.cts.map +1 -0
  72. package/codegen/types/codegen-data-utils.d.ts +8 -0
  73. package/codegen/types/codegen-data-utils.d.ts.map +1 -0
  74. package/codegen/types/codegen-data-utils.js +1 -0
  75. package/codegen/types/endpoint-data.cjs +2 -0
  76. package/codegen/types/endpoint-data.d.cts +3 -0
  77. package/codegen/types/endpoint-data.d.cts.map +1 -0
  78. package/codegen/types/endpoint-data.d.ts +3 -0
  79. package/codegen/types/endpoint-data.d.ts.map +1 -0
  80. package/codegen/types/endpoint-data.js +1 -0
  81. package/codegen/types/generate-query-api-params.cjs +2 -0
  82. package/codegen/types/generate-query-api-params.d.cts +149 -0
  83. package/codegen/types/generate-query-api-params.d.cts.map +1 -0
  84. package/codegen/types/generate-query-api-params.d.ts +149 -0
  85. package/codegen/types/generate-query-api-params.d.ts.map +1 -0
  86. package/codegen/types/generate-query-api-params.js +1 -0
  87. package/codegen/types/import-file-params.cjs +2 -0
  88. package/codegen/types/import-file-params.d.cts +5 -0
  89. package/codegen/types/import-file-params.d.cts.map +1 -0
  90. package/codegen/types/import-file-params.d.ts +5 -0
  91. package/codegen/types/import-file-params.d.ts.map +1 -0
  92. package/codegen/types/import-file-params.js +1 -0
  93. package/codegen/types/index.cjs +23 -0
  94. package/codegen/types/index.d.cts +8 -0
  95. package/codegen/types/index.d.cts.map +1 -0
  96. package/codegen/types/index.d.ts +8 -0
  97. package/codegen/types/index.d.ts.map +1 -0
  98. package/codegen/types/index.js +7 -0
  99. package/codegen/types/meta-info.cjs +2 -0
  100. package/codegen/types/meta-info.d.cts +6 -0
  101. package/codegen/types/meta-info.d.cts.map +1 -0
  102. package/codegen/types/meta-info.d.ts +6 -0
  103. package/codegen/types/meta-info.d.ts.map +1 -0
  104. package/codegen/types/meta-info.js +1 -0
  105. package/codegen/utils/remove-unused-types.d.cts +1 -1
  106. package/codegen/utils/remove-unused-types.d.cts.map +1 -1
  107. package/codegen/utils/remove-unused-types.d.ts +1 -1
  108. package/codegen/utils/remove-unused-types.d.ts.map +1 -1
  109. package/codegen/utils/remove-unused-types.js +1 -1
  110. package/codegen/utils/unpack-filter-option.d.cts +1 -1
  111. package/codegen/utils/unpack-filter-option.d.cts.map +1 -1
  112. package/codegen/utils/unpack-filter-option.d.ts +1 -1
  113. package/codegen/utils/unpack-filter-option.d.ts.map +1 -1
  114. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  import { splitTextByLines } from 'yummies/text';
2
- export const endpointJSDocTmpl = ({ route, configuration, offset = 0, }) => {
2
+ export const endpointJSDocTmpl = (params) => {
3
+ const { route, configuration, offset = 0 } = params;
3
4
  const { routeName } = route;
4
5
  const rawRoute = route.raw;
5
6
  const routeRequest = route.request;
@@ -5,14 +5,12 @@ const constants_js_1 = require("./constants.cjs");
5
5
  const data_contract_tmpl_js_1 = require("./data-contract.tmpl.cjs");
6
6
  const endpoint_jsdoc_tmpl_js_1 = require("./endpoint-jsdoc.tmpl.cjs");
7
7
  const new_endpoint_tmpl_js_1 = require("./new-endpoint.tmpl.cjs");
8
- const endpointPerFileTmpl = async ({ route, configuration, apiParams, formatTSContent, importFileParams, utils, relativePathDataContracts, groupName, metaInfo, }) => {
8
+ const endpointPerFileTmpl = async (params) => {
9
+ const { route, configuration, codegenParams, formatTSContent, importFileParams, utils, relativePathDataContracts, groupName, metaInfo, } = params;
9
10
  const { _ } = utils;
10
11
  const { content: requestInfoInstanceContent, reservedDataContractNames, localModelTypes, } = (0, new_endpoint_tmpl_js_1.newEndpointTmpl)({
12
+ ...params,
11
13
  route,
12
- configuration,
13
- apiParams,
14
- importFileParams,
15
- utils,
16
14
  groupName,
17
15
  metaInfo,
18
16
  });
@@ -27,7 +25,7 @@ const endpointPerFileTmpl = async ({ route, configuration, apiParams, formatTSCo
27
25
  if (metaInfo) {
28
26
  extraImportLines.push(`import { ${[groupName && 'Group', metaInfo?.namespace && 'namespace', 'Tag'].filter(Boolean).join(',')} } from "../${groupName ? '../' : ''}meta-info";`);
29
27
  }
30
- const requestInfoMeta = apiParams.getEndpointMeta?.(route, utils);
28
+ const requestInfoMeta = codegenParams.getEndpointMeta?.(route, utils);
31
29
  if (requestInfoMeta?.typeNameImportPath && requestInfoMeta.typeName) {
32
30
  extraImportLines.push(`import { ${requestInfoMeta.typeName} } from "${requestInfoMeta.typeNameImportPath}";`);
33
31
  }
@@ -38,7 +36,7 @@ const endpointPerFileTmpl = async ({ route, configuration, apiParams, formatTSCo
38
36
  RequestParams,
39
37
  HttpResponse,
40
38
  HttpMultistatusResponse,
41
- } from "${apiParams.libImports?.['mobx-tanstack-query-api'] ?? 'mobx-tanstack-query-api'}";
39
+ } from "${codegenParams.libImports?.['mobx-tanstack-query-api'] ?? 'mobx-tanstack-query-api'}";
42
40
  import { ${importFileParams.endpoint.exportName} } from "${importFileParams.endpoint.path}";
43
41
  import { ${importFileParams.httpClient.exportName} } from "${importFileParams.httpClient.path}";
44
42
  import { ${importFileParams.queryClient.exportName} } from "${importFileParams.queryClient.path}";
@@ -58,7 +56,7 @@ const endpointPerFileTmpl = async ({ route, configuration, apiParams, formatTSCo
58
56
  return '';
59
57
  }
60
58
  const contractType = await (0, data_contract_tmpl_js_1.dataContractTmpl)({
61
- configuration,
59
+ ...params,
62
60
  contract: modelType,
63
61
  addExportKeyword: true,
64
62
  });
@@ -69,7 +67,7 @@ const endpointPerFileTmpl = async ({ route, configuration, apiParams, formatTSCo
69
67
 
70
68
  ${(await Promise.all(localModelTypes.map(async (modelType) => {
71
69
  const contractType = await (0, data_contract_tmpl_js_1.dataContractTmpl)({
72
- configuration,
70
+ ...params,
73
71
  contract: modelType,
74
72
  addExportKeyword: true,
75
73
  });
@@ -79,9 +77,8 @@ const endpointPerFileTmpl = async ({ route, configuration, apiParams, formatTSCo
79
77
  .join('\n\n')}
80
78
 
81
79
  ${(0, endpoint_jsdoc_tmpl_js_1.endpointJSDocTmpl)({
80
+ ...params,
82
81
  route,
83
- configuration,
84
- apiParams,
85
82
  })}
86
83
  export const ${_.camelCase(route.routeName.usage)} = ${requestInfoInstanceContent}
87
84
  `),
@@ -1,18 +1,13 @@
1
1
  import type { AnyObject, Maybe } from 'yummies/utils/types';
2
- import type { AllImportFileParams, CodegenDataUtils, CodegenProcess, GenerateQueryApiParams, MetaInfo } from "../index.cjs";
3
- export interface EndpointPerFileTmplParams extends AnyObject {
2
+ import type { BaseTmplParams, MetaInfo } from "../types/index.cjs";
3
+ export interface EndpointPerFileTmplParams extends BaseTmplParams {
4
4
  route: AnyObject;
5
- configuration: AnyObject;
6
- apiParams: GenerateQueryApiParams;
7
- codegenProcess: CodegenProcess;
8
- importFileParams: AllImportFileParams;
9
- utils: CodegenDataUtils;
10
5
  relativePathDataContracts: string;
11
6
  groupName: Maybe<string>;
12
7
  metaInfo: Maybe<MetaInfo>;
13
8
  }
14
- export declare const endpointPerFileTmpl: ({ route, configuration, apiParams, formatTSContent, importFileParams, utils, relativePathDataContracts, groupName, metaInfo, }: EndpointPerFileTmplParams) => Promise<{
9
+ export declare const endpointPerFileTmpl: (params: EndpointPerFileTmplParams) => Promise<{
15
10
  reservedDataContractNames: string[];
16
- content: any;
11
+ content: string;
17
12
  }>;
18
13
  //# sourceMappingURL=endpoint-per-file.tmpl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,QAAQ,EACT,qBAAoB;AAOrB,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,sBAAsB,CAAC;IAClC,cAAc,EAAE,cAAc,CAAC;IAC/B,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,KAAK,EAAE,gBAAgB,CAAC;IACxB,yBAAyB,EAAE,MAAM,CAAC;IAClC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,GAAU,gIAUvC,yBAAyB;;;EAwH3B,CAAC"}
1
+ {"version":3,"file":"endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,2BAA0B;AAMlE,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC/D,KAAK,EAAE,SAAS,CAAC;IACjB,yBAAyB,EAAE,MAAM,CAAC;IAClC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,yBAAyB;;;EAgIlC,CAAC"}
@@ -1,18 +1,13 @@
1
1
  import type { AnyObject, Maybe } from 'yummies/utils/types';
2
- import type { AllImportFileParams, CodegenDataUtils, CodegenProcess, GenerateQueryApiParams, MetaInfo } from "../index.js";
3
- export interface EndpointPerFileTmplParams extends AnyObject {
2
+ import type { BaseTmplParams, MetaInfo } from "../types/index.js";
3
+ export interface EndpointPerFileTmplParams extends BaseTmplParams {
4
4
  route: AnyObject;
5
- configuration: AnyObject;
6
- apiParams: GenerateQueryApiParams;
7
- codegenProcess: CodegenProcess;
8
- importFileParams: AllImportFileParams;
9
- utils: CodegenDataUtils;
10
5
  relativePathDataContracts: string;
11
6
  groupName: Maybe<string>;
12
7
  metaInfo: Maybe<MetaInfo>;
13
8
  }
14
- export declare const endpointPerFileTmpl: ({ route, configuration, apiParams, formatTSContent, importFileParams, utils, relativePathDataContracts, groupName, metaInfo, }: EndpointPerFileTmplParams) => Promise<{
9
+ export declare const endpointPerFileTmpl: (params: EndpointPerFileTmplParams) => Promise<{
15
10
  reservedDataContractNames: string[];
16
- content: any;
11
+ content: string;
17
12
  }>;
18
13
  //# sourceMappingURL=endpoint-per-file.tmpl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,QAAQ,EACT,oBAAoB;AAOrB,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,sBAAsB,CAAC;IAClC,cAAc,EAAE,cAAc,CAAC;IAC/B,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,KAAK,EAAE,gBAAgB,CAAC;IACxB,yBAAyB,EAAE,MAAM,CAAC;IAClC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,GAAU,gIAUvC,yBAAyB;;;EAwH3B,CAAC"}
1
+ {"version":3,"file":"endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,0BAA0B;AAMlE,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC/D,KAAK,EAAE,SAAS,CAAC;IACjB,yBAAyB,EAAE,MAAM,CAAC;IAClC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,yBAAyB;;;EAgIlC,CAAC"}
@@ -2,14 +2,12 @@ import { LINTERS_IGNORE } from "./constants.js";
2
2
  import { dataContractTmpl } from "./data-contract.tmpl.js";
3
3
  import { endpointJSDocTmpl } from "./endpoint-jsdoc.tmpl.js";
4
4
  import { newEndpointTmpl } from "./new-endpoint.tmpl.js";
5
- export const endpointPerFileTmpl = async ({ route, configuration, apiParams, formatTSContent, importFileParams, utils, relativePathDataContracts, groupName, metaInfo, }) => {
5
+ export const endpointPerFileTmpl = async (params) => {
6
+ const { route, configuration, codegenParams, formatTSContent, importFileParams, utils, relativePathDataContracts, groupName, metaInfo, } = params;
6
7
  const { _ } = utils;
7
8
  const { content: requestInfoInstanceContent, reservedDataContractNames, localModelTypes, } = newEndpointTmpl({
9
+ ...params,
8
10
  route,
9
- configuration,
10
- apiParams,
11
- importFileParams,
12
- utils,
13
11
  groupName,
14
12
  metaInfo,
15
13
  });
@@ -24,7 +22,7 @@ export const endpointPerFileTmpl = async ({ route, configuration, apiParams, for
24
22
  if (metaInfo) {
25
23
  extraImportLines.push(`import { ${[groupName && 'Group', metaInfo?.namespace && 'namespace', 'Tag'].filter(Boolean).join(',')} } from "../${groupName ? '../' : ''}meta-info";`);
26
24
  }
27
- const requestInfoMeta = apiParams.getEndpointMeta?.(route, utils);
25
+ const requestInfoMeta = codegenParams.getEndpointMeta?.(route, utils);
28
26
  if (requestInfoMeta?.typeNameImportPath && requestInfoMeta.typeName) {
29
27
  extraImportLines.push(`import { ${requestInfoMeta.typeName} } from "${requestInfoMeta.typeNameImportPath}";`);
30
28
  }
@@ -35,7 +33,7 @@ export const endpointPerFileTmpl = async ({ route, configuration, apiParams, for
35
33
  RequestParams,
36
34
  HttpResponse,
37
35
  HttpMultistatusResponse,
38
- } from "${apiParams.libImports?.['mobx-tanstack-query-api'] ?? 'mobx-tanstack-query-api'}";
36
+ } from "${codegenParams.libImports?.['mobx-tanstack-query-api'] ?? 'mobx-tanstack-query-api'}";
39
37
  import { ${importFileParams.endpoint.exportName} } from "${importFileParams.endpoint.path}";
40
38
  import { ${importFileParams.httpClient.exportName} } from "${importFileParams.httpClient.path}";
41
39
  import { ${importFileParams.queryClient.exportName} } from "${importFileParams.queryClient.path}";
@@ -55,7 +53,7 @@ export const endpointPerFileTmpl = async ({ route, configuration, apiParams, for
55
53
  return '';
56
54
  }
57
55
  const contractType = await dataContractTmpl({
58
- configuration,
56
+ ...params,
59
57
  contract: modelType,
60
58
  addExportKeyword: true,
61
59
  });
@@ -66,7 +64,7 @@ export const endpointPerFileTmpl = async ({ route, configuration, apiParams, for
66
64
 
67
65
  ${(await Promise.all(localModelTypes.map(async (modelType) => {
68
66
  const contractType = await dataContractTmpl({
69
- configuration,
67
+ ...params,
70
68
  contract: modelType,
71
69
  addExportKeyword: true,
72
70
  });
@@ -76,9 +74,8 @@ export const endpointPerFileTmpl = async ({ route, configuration, apiParams, for
76
74
  .join('\n\n')}
77
75
 
78
76
  ${endpointJSDocTmpl({
77
+ ...params,
79
78
  route,
80
- configuration,
81
- apiParams,
82
79
  })}
83
80
  export const ${_.camelCase(route.routeName.usage)} = ${requestInfoInstanceContent}
84
81
  `),
@@ -1,9 +1,5 @@
1
- import type { AnyObject } from 'yummies/utils/types';
2
- import type { CodegenProcess, GenerateQueryApiParams } from "../index.cjs";
3
- export interface IndexTsForEndpointPerFileTmplParams extends AnyObject {
4
- configuration: AnyObject;
5
- apiParams: GenerateQueryApiParams;
6
- codegenProcess: CodegenProcess;
1
+ import type { BaseTmplParams } from "../types/index.cjs";
2
+ export interface IndexTsForEndpointPerFileTmplParams extends BaseTmplParams {
7
3
  generatedRequestFileNames: string[];
8
4
  }
9
5
  export declare const indexTsForEndpointPerFileTmpl: ({ generatedRequestFileNames, }: IndexTsForEndpointPerFileTmplParams) => Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index-ts-for-endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/index-ts-for-endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,qBAAoB;AAI1E,MAAM,WAAW,mCAAoC,SAAQ,SAAS;IACpE,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,sBAAsB,CAAC;IAClC,cAAc,EAAE,cAAc,CAAC;IAC/B,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,6BAA6B,GAAU,gCAEjD,mCAAmC,oBAIrC,CAAC"}
1
+ {"version":3,"file":"index-ts-for-endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/index-ts-for-endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA0B;AAGxD,MAAM,WAAW,mCAAoC,SAAQ,cAAc;IACzE,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,6BAA6B,GAAU,gCAEjD,mCAAmC,oBAIrC,CAAC"}
@@ -1,9 +1,5 @@
1
- import type { AnyObject } from 'yummies/utils/types';
2
- import type { CodegenProcess, GenerateQueryApiParams } from "../index.js";
3
- export interface IndexTsForEndpointPerFileTmplParams extends AnyObject {
4
- configuration: AnyObject;
5
- apiParams: GenerateQueryApiParams;
6
- codegenProcess: CodegenProcess;
1
+ import type { BaseTmplParams } from "../types/index.js";
2
+ export interface IndexTsForEndpointPerFileTmplParams extends BaseTmplParams {
7
3
  generatedRequestFileNames: string[];
8
4
  }
9
5
  export declare const indexTsForEndpointPerFileTmpl: ({ generatedRequestFileNames, }: IndexTsForEndpointPerFileTmplParams) => Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index-ts-for-endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/index-ts-for-endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,oBAAoB;AAI1E,MAAM,WAAW,mCAAoC,SAAQ,SAAS;IACpE,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,sBAAsB,CAAC;IAClC,cAAc,EAAE,cAAc,CAAC;IAC/B,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,6BAA6B,GAAU,gCAEjD,mCAAmC,oBAIrC,CAAC"}
1
+ {"version":3,"file":"index-ts-for-endpoint-per-file.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/index-ts-for-endpoint-per-file.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,0BAA0B;AAGxD,MAAM,WAAW,mCAAoC,SAAQ,cAAc;IACzE,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC;AAED,eAAO,MAAM,6BAA6B,GAAU,gCAEjD,mCAAmC,oBAIrC,CAAC"}
@@ -1,10 +1,7 @@
1
1
  import type { Maybe } from 'yummies/utils/types';
2
- import type { CodegenDataUtils, GenerateQueryApiParams, MetaInfo } from "../index.cjs";
3
- export interface MetaInfoTmplParams {
4
- formatTSContent: (...args: any[]) => Promise<string>;
5
- codegenParams: GenerateQueryApiParams;
2
+ import type { BaseTmplParams, CodegenDataUtils, MetaInfo } from "../types/index.cjs";
3
+ export interface MetaInfoTmplParams extends BaseTmplParams {
6
4
  metaInfo: Maybe<MetaInfo>;
7
- utils: CodegenDataUtils;
8
5
  }
9
6
  export declare const formatGroupNameEnumKey: (groupName: string, { _ }: CodegenDataUtils) => Capitalize<string>;
10
7
  export declare const formatTagNameEnumKey: (tagName: string, utils: CodegenDataUtils) => Capitalize<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"meta-info.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/meta-info.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACT,qBAAoB;AAIrB,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,aAAa,EAAE,sBAAsB,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,EACjB,OAAO,gBAAgB,uBACgB,CAAC;AAE1C,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,EACf,OAAO,gBAAgB,uBACkB,CAAC;AAE5C,eAAO,MAAM,YAAY,GAAU,+DAMhC,kBAAkB,oBA4CpB,CAAC"}
1
+ {"version":3,"file":"meta-info.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/meta-info.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACT,2BAA0B;AAI3B,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,EACjB,OAAO,gBAAgB,uBACgB,CAAC;AAE1C,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,EACf,OAAO,gBAAgB,uBACkB,CAAC;AAE5C,eAAO,MAAM,YAAY,GAAU,+DAMhC,kBAAkB,oBA4CpB,CAAC"}
@@ -1,10 +1,7 @@
1
1
  import type { Maybe } from 'yummies/utils/types';
2
- import type { CodegenDataUtils, GenerateQueryApiParams, MetaInfo } from "../index.js";
3
- export interface MetaInfoTmplParams {
4
- formatTSContent: (...args: any[]) => Promise<string>;
5
- codegenParams: GenerateQueryApiParams;
2
+ import type { BaseTmplParams, CodegenDataUtils, MetaInfo } from "../types/index.js";
3
+ export interface MetaInfoTmplParams extends BaseTmplParams {
6
4
  metaInfo: Maybe<MetaInfo>;
7
- utils: CodegenDataUtils;
8
5
  }
9
6
  export declare const formatGroupNameEnumKey: (groupName: string, { _ }: CodegenDataUtils) => Capitalize<string>;
10
7
  export declare const formatTagNameEnumKey: (tagName: string, utils: CodegenDataUtils) => Capitalize<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"meta-info.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/meta-info.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACT,oBAAoB;AAIrB,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,aAAa,EAAE,sBAAsB,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1B,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,EACjB,OAAO,gBAAgB,uBACgB,CAAC;AAE1C,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,EACf,OAAO,gBAAgB,uBACkB,CAAC;AAE5C,eAAO,MAAM,YAAY,GAAU,+DAMhC,kBAAkB,oBA4CpB,CAAC"}
1
+ {"version":3,"file":"meta-info.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/meta-info.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACT,0BAA0B;AAI3B,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,EACjB,OAAO,gBAAgB,uBACgB,CAAC;AAE1C,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,EACf,OAAO,gBAAgB,uBACkB,CAAC;AAE5C,eAAO,MAAM,YAAY,GAAU,+DAMhC,kBAAkB,oBA4CpB,CAAC"}
@@ -16,7 +16,7 @@ const responseContentKind = {
16
16
  FORM_DATA: '"formData"',
17
17
  BYTES: '"bytes"',
18
18
  };
19
- const newEndpointTmpl = ({ route, apiParams, importFileParams, utils, groupName, metaInfo, }) => {
19
+ const newEndpointTmpl = ({ route, codegenParams, importFileParams, utils, groupName, metaInfo, }) => {
20
20
  const { _ } = utils;
21
21
  const positiveResponseTypes = route.raw.responsesTypes?.filter((it) => +it.status >= 200 && +it.status < 300);
22
22
  const { requestBodyInfo, responseBodyInfo } = route;
@@ -72,11 +72,11 @@ const newEndpointTmpl = ({ route, apiParams, importFileParams, utils, groupName,
72
72
  if (queryParamStruct && !lastDynamicStructPos) {
73
73
  lastDynamicStructPos++;
74
74
  }
75
- const requestInfoMeta = apiParams.getEndpointMeta?.(route, utils);
76
- const requestMeta = apiParams.getRequestMeta?.(route, utils);
77
- const resultPath = (apiParams.requestPathPrefix ?? '') +
75
+ const requestInfoMeta = codegenParams.getEndpointMeta?.(route, utils);
76
+ const requestMeta = codegenParams.getRequestMeta?.(route, utils);
77
+ const resultPath = (codegenParams.requestPathPrefix ?? '') +
78
78
  path +
79
- (apiParams.requestPathSuffix ?? '');
79
+ (codegenParams.requestPathSuffix ?? '');
80
80
  const bodyContentType = requestContentKind[requestBodyInfo.contentKind] || null;
81
81
  const responseFormat = responseContentKind[responseBodyInfo.success?.schema?.contentKind] || null;
82
82
  const reservedDataContractNames = _.uniq([
@@ -1,15 +1,12 @@
1
1
  import type { AnyObject, Maybe } from 'yummies/utils/types';
2
- import type { AllImportFileParams, CodegenDataUtils, GenerateQueryApiParams, MetaInfo } from "../index.cjs";
3
- export interface NewEndpointTmplParams {
2
+ import type { BaseTmplParams } from "../types/base-tmpl-params.cjs";
3
+ import type { MetaInfo } from "../types/index.cjs";
4
+ export interface NewEndpointTmplParams extends BaseTmplParams {
4
5
  route: AnyObject;
5
- configuration: AnyObject;
6
- apiParams: GenerateQueryApiParams;
7
- importFileParams: AllImportFileParams;
8
- utils: CodegenDataUtils;
9
6
  groupName: Maybe<string>;
10
7
  metaInfo: Maybe<MetaInfo>;
11
8
  }
12
- export declare const newEndpointTmpl: ({ route, apiParams, importFileParams, utils, groupName, metaInfo, }: NewEndpointTmplParams) => {
9
+ export declare const newEndpointTmpl: ({ route, codegenParams, importFileParams, utils, groupName, metaInfo, }: NewEndpointTmplParams) => {
13
10
  reservedDataContractNames: string[];
14
11
  localModelTypes: {
15
12
  typeIdentifier: string;
@@ -1 +1 @@
1
- {"version":3,"file":"new-endpoint.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/new-endpoint.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACT,qBAAoB;AAOrB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,sBAAsB,CAAC;IAClC,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAiBD,eAAO,MAAM,eAAe,GAAI,qEAO7B,qBAAqB;;;;;;;;CA6MvB,CAAC"}
1
+ {"version":3,"file":"new-endpoint.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/new-endpoint.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,sCAAqC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,2BAA0B;AAMlD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAiBD,eAAO,MAAM,eAAe,GAAI,yEAO7B,qBAAqB;;;;;;;;CA6MvB,CAAC"}
@@ -1,15 +1,12 @@
1
1
  import type { AnyObject, Maybe } from 'yummies/utils/types';
2
- import type { AllImportFileParams, CodegenDataUtils, GenerateQueryApiParams, MetaInfo } from "../index.js";
3
- export interface NewEndpointTmplParams {
2
+ import type { BaseTmplParams } from "../types/base-tmpl-params.js";
3
+ import type { MetaInfo } from "../types/index.js";
4
+ export interface NewEndpointTmplParams extends BaseTmplParams {
4
5
  route: AnyObject;
5
- configuration: AnyObject;
6
- apiParams: GenerateQueryApiParams;
7
- importFileParams: AllImportFileParams;
8
- utils: CodegenDataUtils;
9
6
  groupName: Maybe<string>;
10
7
  metaInfo: Maybe<MetaInfo>;
11
8
  }
12
- export declare const newEndpointTmpl: ({ route, apiParams, importFileParams, utils, groupName, metaInfo, }: NewEndpointTmplParams) => {
9
+ export declare const newEndpointTmpl: ({ route, codegenParams, importFileParams, utils, groupName, metaInfo, }: NewEndpointTmplParams) => {
13
10
  reservedDataContractNames: string[];
14
11
  localModelTypes: {
15
12
  typeIdentifier: string;
@@ -1 +1 @@
1
- {"version":3,"file":"new-endpoint.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/new-endpoint.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACT,oBAAoB;AAOrB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,EAAE,SAAS,CAAC;IACzB,SAAS,EAAE,sBAAsB,CAAC;IAClC,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAiBD,eAAO,MAAM,eAAe,GAAI,qEAO7B,qBAAqB;;;;;;;;CA6MvB,CAAC"}
1
+ {"version":3,"file":"new-endpoint.tmpl.d.ts","sourceRoot":"","sources":["../../../src/codegen/templates/new-endpoint.tmpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,qCAAqC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,0BAA0B;AAMlD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAiBD,eAAO,MAAM,eAAe,GAAI,yEAO7B,qBAAqB;;;;;;;;CA6MvB,CAAC"}
@@ -13,7 +13,7 @@ const responseContentKind = {
13
13
  FORM_DATA: '"formData"',
14
14
  BYTES: '"bytes"',
15
15
  };
16
- export const newEndpointTmpl = ({ route, apiParams, importFileParams, utils, groupName, metaInfo, }) => {
16
+ export const newEndpointTmpl = ({ route, codegenParams, importFileParams, utils, groupName, metaInfo, }) => {
17
17
  const { _ } = utils;
18
18
  const positiveResponseTypes = route.raw.responsesTypes?.filter((it) => +it.status >= 200 && +it.status < 300);
19
19
  const { requestBodyInfo, responseBodyInfo } = route;
@@ -69,11 +69,11 @@ export const newEndpointTmpl = ({ route, apiParams, importFileParams, utils, gro
69
69
  if (queryParamStruct && !lastDynamicStructPos) {
70
70
  lastDynamicStructPos++;
71
71
  }
72
- const requestInfoMeta = apiParams.getEndpointMeta?.(route, utils);
73
- const requestMeta = apiParams.getRequestMeta?.(route, utils);
74
- const resultPath = (apiParams.requestPathPrefix ?? '') +
72
+ const requestInfoMeta = codegenParams.getEndpointMeta?.(route, utils);
73
+ const requestMeta = codegenParams.getRequestMeta?.(route, utils);
74
+ const resultPath = (codegenParams.requestPathPrefix ?? '') +
75
75
  path +
76
- (apiParams.requestPathSuffix ?? '');
76
+ (codegenParams.requestPathSuffix ?? '');
77
77
  const bodyContentType = requestContentKind[requestBodyInfo.contentKind] || null;
78
78
  const responseFormat = responseContentKind[responseBodyInfo.success?.schema?.contentKind] || null;
79
79
  const reservedDataContractNames = _.uniq([
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import type { GenerateApiParams } from 'swagger-typescript-api';
2
+ import type { AnyObject, Defined } from 'yummies/utils/types';
3
+ import type { AllImportFileParams } from "./all-import-file-params.cjs";
4
+ import type { CodegenDataUtils } from "./codegen-data-utils.cjs";
5
+ import type { GenerateQueryApiParams } from "./generate-query-api-params.cjs";
6
+ export interface BaseTmplParams {
7
+ formatTSContent: (content: string) => Promise<string>;
8
+ configuration: AnyObject;
9
+ codegenParams: GenerateQueryApiParams;
10
+ codegenProcess: Parameters<Defined<Defined<GenerateApiParams['hooks']>['onInit']>>['1'];
11
+ importFileParams: AllImportFileParams;
12
+ utils: CodegenDataUtils;
13
+ }
14
+ //# sourceMappingURL=base-tmpl-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-tmpl-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/base-tmpl-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9D,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,SAAS,CAAC;IACzB,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;CACzB"}
@@ -0,0 +1,14 @@
1
+ import type { GenerateApiParams } from 'swagger-typescript-api';
2
+ import type { AnyObject, Defined } from 'yummies/utils/types';
3
+ import type { AllImportFileParams } from "./all-import-file-params.js";
4
+ import type { CodegenDataUtils } from "./codegen-data-utils.js";
5
+ import type { GenerateQueryApiParams } from "./generate-query-api-params.js";
6
+ export interface BaseTmplParams {
7
+ formatTSContent: (content: string) => Promise<string>;
8
+ configuration: AnyObject;
9
+ codegenParams: GenerateQueryApiParams;
10
+ codegenProcess: Parameters<Defined<Defined<GenerateApiParams['hooks']>['onInit']>>['1'];
11
+ importFileParams: AllImportFileParams;
12
+ utils: CodegenDataUtils;
13
+ }
14
+ //# sourceMappingURL=base-tmpl-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-tmpl-params.d.ts","sourceRoot":"","sources":["../../../src/codegen/types/base-tmpl-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9D,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,SAAS,CAAC;IACzB,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;CACzB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import type { ParsedRoute } from 'swagger-typescript-api';
2
+ export type EndpointData = ParsedRoute;
3
+ //# sourceMappingURL=endpoint-data.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import type { ParsedRoute } from 'swagger-typescript-api';
2
+ export type EndpointData = ParsedRoute;
3
+ //# sourceMappingURL=endpoint-data.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });