@openapi-qraft/tanstack-query-react-plugin 2.0.0-next.18 → 2.0.0-next.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/generateCode.d.ts +2 -2
- package/dist/generateCode.d.ts.map +1 -1
- package/dist/generateCode.js.map +1 -1
- package/dist/lib/createOperationCommonTSDoc.d.ts +1 -1
- package/dist/lib/createOperationCommonTSDoc.d.ts.map +1 -1
- package/dist/ts-factory/getServiceFactory.d.ts +1 -1
- package/dist/ts-factory/getServiceFactory.d.ts.map +1 -1
- package/dist/ts-factory/getServiceIndexFactory.d.ts +2 -2
- package/dist/ts-factory/getServiceIndexFactory.d.ts.map +1 -1
- package/dist/ts-factory/getServiceIndexFactory.js.map +1 -1
- package/dist/ts-factory/tsdoc/createOperationMethodTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createOperationMethodTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseMutationOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseMutationOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseQueryOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseQueryOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.d.ts +1 -1
- package/dist/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.d.ts +1 -1
- package/dist/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.d.ts.map +1 -1
- package/dist/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.d.ts +1 -1
- package/dist/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/generateCode.ts +4 -4
- package/src/lib/createOperationCommonTSDoc.ts +1 -1
- package/src/ts-factory/getServiceFactory.ts +1 -1
- package/src/ts-factory/getServiceIndexFactory.ts +5 -5
- package/src/ts-factory/tsdoc/createOperationMethodTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseMutationOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseQueryOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.ts +1 -1
- package/src/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.ts +1 -1
- package/src/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @openapi-qraft/tanstack-query-react-plugin
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 62ff8e0: Refactor `Service` and `ServiceOperation` types.
|
|
8
|
+
- Updated dependencies [62ff8e0]
|
|
9
|
+
- @openapi-qraft/plugin@2.0.0-next.19
|
|
10
|
+
|
|
3
11
|
## 2.0.0-next.18
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/generateCode.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GeneratorFile } from '@openapi-qraft/plugin/lib/GeneratorFile';
|
|
2
|
-
import {
|
|
2
|
+
import { OpenAPIService } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
3
3
|
import { OutputOptions as OutputOptionsBase } from '@openapi-qraft/plugin/lib/OutputOptions';
|
|
4
4
|
import { PredefinedParametersGlob } from '@openapi-qraft/plugin/lib/predefineSchemaParameters';
|
|
5
5
|
import { Ora } from 'ora';
|
|
@@ -13,7 +13,7 @@ interface OutputOptions extends OutputOptionsBase {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const generateCode: ({ spinner, services, serviceImports, output, }: {
|
|
15
15
|
spinner: Ora;
|
|
16
|
-
services:
|
|
16
|
+
services: OpenAPIService[];
|
|
17
17
|
serviceImports: ServiceImportsFactoryOptions;
|
|
18
18
|
output: OutputOptions;
|
|
19
19
|
}) => Promise<GeneratorFile[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateCode.d.ts","sourceRoot":"","sources":["../src/generateCode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"generateCode.d.ts","sourceRoot":"","sources":["../src/generateCode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAE/F,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAK1B,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mCAAmC,CAAC;AAG3C,UAAU,aAAc,SAAQ,iBAAiB;IAC/C,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC;IACpD,iBAAiB,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,6BAA6B,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAAC;CAC5E;AAED,eAAO,MAAM,YAAY,mDAKtB;IACD,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,cAAc,EAAE,4BAA4B,CAAC;IAC7C,MAAM,EAAE,aAAa,CAAC;CACvB,6BAcA,CAAC"}
|
package/dist/generateCode.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateCode.js","sourceRoot":"","sources":["../src/generateCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAK9E,OAAO,CAAC,MAAM,aAAa,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,6CAA6C,EAAE,MAAM,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C,kBAAkB,CAAC,CAAC;IAElC,MAAM,UAAU,GAAoB,EAAE,CAAC;IAEvC,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,WAAW,CACtB,eAAe,CAAC;YACd,eAAe,EAAE,MAAM,CAAC,eAAe;YACvC,wBAAwB,EAAE,MAAM,CAAC,wBAAwB;YACzD,sBAAsB,EAAE,MAAM,CAAC,iBAAiB;gBAC9C,CAAC,CAAC,cAAc,CAAC,sBAAsB;gBACvC,CAAC,CAAC,SAAS;SACd,CAAC,CACH,CAAC;QAEF,UAAU,CAAC,IAAI,CAAC;YACd,IAAI,EAAE,IAAI,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC;YACrC,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI;SACjD,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC,CAAC;QAEpE,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAErD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createOperationCommonTSDoc: (operation: ServiceOperation) => string[];
|
|
3
3
|
//# sourceMappingURL=createOperationCommonTSDoc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOperationCommonTSDoc.d.ts","sourceRoot":"","sources":["../../src/lib/createOperationCommonTSDoc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOperationCommonTSDoc.d.ts","sourceRoot":"","sources":["../../src/lib/createOperationCommonTSDoc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAErF,eAAO,MAAM,0BAA0B,cAAe,gBAAgB,aAQrE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
export type ServiceImportsFactoryOptions = {
|
|
4
4
|
openapiTypesImportPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServiceFactory.d.ts","sourceRoot":"","sources":["../../src/ts-factory/getServiceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getServiceFactory.d.ts","sourceRoot":"","sources":["../../src/ts-factory/getServiceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAErF,OAAO,EAAE,MAAM,YAAY,CAAC;AAmC5B,MAAM,MAAM,4BAA4B,GAAG;IACzC,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,KAAK,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,eAAO,MAAM,iBAAiB,YACnB,OAAO,cACJ,gBAAgB,EAAE,8BACF,4BAA4B,wGAgBzD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenAPIService } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
type Options = {
|
|
4
4
|
explicitImportExtensions: '.js' | '.ts' | undefined;
|
|
5
5
|
};
|
|
6
|
-
export declare const getServiceIndexFactory: (services:
|
|
6
|
+
export declare const getServiceIndexFactory: (services: OpenAPIService[], options: Options) => (ts.ImportDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement)[];
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=getServiceIndexFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServiceIndexFactory.d.ts","sourceRoot":"","sources":["../../src/ts-factory/getServiceIndexFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getServiceIndexFactory.d.ts","sourceRoot":"","sources":["../../src/ts-factory/getServiceIndexFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,KAAK,OAAO,GAAG;IAAE,wBAAwB,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;CAAE,CAAC;AAEvE,eAAO,MAAM,sBAAsB,aACvB,cAAc,EAAE,WACjB,OAAO,8EAOjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServiceIndexFactory.js","sourceRoot":"","sources":["../../src/ts-factory/getServiceIndexFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,
|
|
1
|
+
{"version":3,"file":"getServiceIndexFactory.js","sourceRoot":"","sources":["../../src/ts-factory/getServiceIndexFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAC;AAI5B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,QAA0B,EAC1B,OAAgB,EAChB,EAAE;IACF,OAAO;QACL,GAAG,yBAAyB,CAAC,QAAQ,EAAE,OAAO,CAAC;QAC/C,+BAA+B,CAAC,QAAQ,CAAC;QACzC,8BAA8B,CAAC,Q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,CACvC,CACF,EACD,IAAI,CACL,EACD,OAAO,CAAC,uBAAuB,CAC7B,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,EACjC,SAAS,CACV,CACF,CACF;KACF,EACD,EAAE,CAAC,SAAS,CAAC,KAAK,CACnB,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAChC,QAA0B,EAC1B,EAAE,wBAAwB,EAAW,EACrC,EAAE;IACF,MAAM,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;IAE3B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,EAAE,CAC/D,OAAO,CAAC,uBAAuB,CAC7B,SAAS,EACT,OAAO,CAAC,kBAAkB,CACxB,KAAK,EACL,SAAS,EACT,OAAO,CAAC,kBAAkB,CAAC;QACzB,OAAO,CAAC,qBAAqB,CAC3B,KAAK,EACL,SAAS,EACT,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CACnC;QACD,OAAO,CAAC,qBAAqB,CAC3B,KAAK,EACL,SAAS,EACT,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,CACvC;KACF,CAAC,CACH,EACD,OAAO,CAAC,mBAAmB,CACzB,KAAK,YAAY,GAAG,wBAAwB,IAAI,EAAE,EAAE,CACrD,CACF,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createOperationMethodTSDocExample: (operation: ServiceOperation, { serviceVariableName, operationMethodName, }: {
|
|
3
3
|
serviceVariableName: string;
|
|
4
4
|
operationMethodName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOperationMethodTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createOperationMethodTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOperationMethodTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createOperationMethodTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAUrF,eAAO,MAAM,iCAAiC,cACjC,gBAAgB,iDAIxB;IACD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,yBA8CF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
export declare const createUseInfiniteQueryOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
4
4
|
export declare function createInfiniteQueryOptionsArgumentExamplePropertyAssignmentNodes(operation: ServiceOperation): ts.PropertyAssignment[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseInfiniteQueryOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseInfiniteQueryOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseInfiniteQueryOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAErF,OAAO,EAAE,MAAM,YAAY,CAAC;AAK5B,eAAO,MAAM,2CAA2C,cAC3C,gBAAgB,uBACN,MAAM,KAC1B,MAAM,EAmDR,CAAC;AAEF,wBAAgB,gEAAgE,CAC9E,SAAS,EAAE,gBAAgB,GAC1B,EAAE,CAAC,kBAAkB,EAAE,CAqEzB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createUseIsFetchingOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
3
3
|
//# sourceMappingURL=createUseIsFetchingOperationTSDocExample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseIsFetchingOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseIsFetchingOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseIsFetchingOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAOrF,eAAO,MAAM,wCAAwC,cACxC,gBAAgB,uBACN,MAAM,aAuE5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createUseIsMutatingOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
3
3
|
//# sourceMappingURL=createUseIsMutatingOperationTSDocExample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseIsMutatingOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseIsMutatingOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseIsMutatingOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAQ1F,eAAO,MAAM,wCAAwC,cACxC,gBAAgB,uBACN,MAAM,aA+D5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createUseMutationOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
3
3
|
//# sourceMappingURL=createUseMutationOperationTSDocExample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseMutationOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseMutationOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseMutationOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseMutationOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAM1F,eAAO,MAAM,sCAAsC,cACtC,gBAAgB,uBACN,MAAM,aA+E5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createUseMutationStateOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
3
3
|
//# sourceMappingURL=createUseMutationStateOperationTSDocExample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseMutationStateOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseMutationStateOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseMutationStateOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAQ1F,eAAO,MAAM,2CAA2C,cAC3C,gBAAgB,uBACN,MAAM,aA+I5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createUseQueriesOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
3
3
|
//# sourceMappingURL=createUseQueriesOperationTSDocExample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseQueriesOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseQueriesOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseQueriesOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAQ1F,eAAO,MAAM,qCAAqC,cACrC,gBAAgB,uBACN,MAAM,aAyR5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createUseQueryOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
3
3
|
//# sourceMappingURL=createUseQueryOperationTSDocExample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseQueryOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseQueryOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseQueryOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseQueryOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAOrF,eAAO,MAAM,mCAAmC,cACnC,gBAAgB,uBACN,MAAM,aAkE5B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
export declare const createUseSuspenseInfiniteQueryOperationTSDocExample: (operation: ServiceOperation, serviceVariableName: string) => string[];
|
|
3
3
|
//# sourceMappingURL=createUseSuspenseInfiniteQueryOperationTSDocExample.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUseSuspenseInfiniteQueryOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createUseSuspenseInfiniteQueryOperationTSDocExample.d.ts","sourceRoot":"","sources":["../../../src/ts-factory/tsdoc/createUseSuspenseInfiniteQueryOperationTSDocExample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAOrF,eAAO,MAAM,mDAAmD,cACnD,gBAAgB,uBACN,MAAM,KAC1B,MAAM,EAoDR,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
export declare const createOperationMethodCallExpressionExampleNode: (operation: ServiceOperation, { serviceVariableName, operationMethodName, }: {
|
|
4
4
|
serviceVariableName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOperationMethodCallExpressionExampleNode.d.ts","sourceRoot":"","sources":["../../../../src/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOperationMethodCallExpressionExampleNode.d.ts","sourceRoot":"","sources":["../../../../src/ts-factory/tsdoc/lib/createOperationMethodCallExpressionExampleNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,eAAO,MAAM,8CAA8C,cAC9C,gBAAgB,iDAIxB;IAAE,mBAAmB,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,MAAM,CAAA;CAAE,SACxD,EAAE,CAAC,UAAU,EAAE,GAAG,SAAS,sBAkBnC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
export declare const createOperationMethodParametersExampleNodes: (operation: ServiceOperation, transformOperationParameterIdentifier?: (operationParameter: NonNullable<ServiceOperation["parameters"]>[number]) => string) => ts.PropertyAssignment[];
|
|
4
4
|
//# sourceMappingURL=createOperationMethodParametersExampleNodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOperationMethodParametersExampleNodes.d.ts","sourceRoot":"","sources":["../../../../src/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOperationMethodParametersExampleNodes.d.ts","sourceRoot":"","sources":["../../../../src/ts-factory/tsdoc/lib/createOperationMethodParametersExampleNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AAErF,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,eAAO,MAAM,2CAA2C,cAC3C,gBAAgB,0CACa,CACtC,kBAAkB,EAAE,WAAW,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,KACpE,MAAM,KACV,EAAE,CAAC,kBAAkB,EA0DvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openapi-qraft/tanstack-query-react-plugin",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc --project tsconfig.build.json",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@openapi-qraft/plugin": "^2.0.0-next.
|
|
30
|
+
"@openapi-qraft/plugin": "^2.0.0-next.19",
|
|
31
31
|
"typescript": "^5.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
package/src/generateCode.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { URL } from 'node:url';
|
|
2
2
|
import { formatFileHeader } from '@openapi-qraft/plugin/lib/formatFileHeader';
|
|
3
3
|
import { GeneratorFile } from '@openapi-qraft/plugin/lib/GeneratorFile';
|
|
4
|
-
import {
|
|
4
|
+
import { OpenAPIService } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
5
5
|
import { OutputOptions as OutputOptionsBase } from '@openapi-qraft/plugin/lib/OutputOptions';
|
|
6
6
|
import { PredefinedParametersGlob } from '@openapi-qraft/plugin/lib/predefineSchemaParameters';
|
|
7
7
|
import c from 'ansi-colors';
|
|
@@ -31,7 +31,7 @@ export const generateCode = async ({
|
|
|
31
31
|
output,
|
|
32
32
|
}: {
|
|
33
33
|
spinner: Ora;
|
|
34
|
-
services:
|
|
34
|
+
services: OpenAPIService[];
|
|
35
35
|
serviceImports: ServiceImportsFactoryOptions;
|
|
36
36
|
output: OutputOptions;
|
|
37
37
|
}) => {
|
|
@@ -58,7 +58,7 @@ const composeServicesDirPath = (
|
|
|
58
58
|
|
|
59
59
|
const generateServices = async (
|
|
60
60
|
spinner: Ora,
|
|
61
|
-
services:
|
|
61
|
+
services: OpenAPIService[],
|
|
62
62
|
serviceImports: ServiceImportsFactoryOptions,
|
|
63
63
|
output: OutputOptions
|
|
64
64
|
) => {
|
|
@@ -112,7 +112,7 @@ const generateServices = async (
|
|
|
112
112
|
|
|
113
113
|
const generateServiceIndex = async (
|
|
114
114
|
spinner: Ora,
|
|
115
|
-
services:
|
|
115
|
+
services: OpenAPIService[],
|
|
116
116
|
output: OutputOptions
|
|
117
117
|
) => {
|
|
118
118
|
spinner.start('Generating services index');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import camelCase from 'camelcase';
|
|
3
3
|
import ts from 'typescript';
|
|
4
4
|
import { createOperationCommonTSDoc } from '../lib/createOperationCommonTSDoc.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OpenAPIService } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
|
|
4
4
|
type Options = { explicitImportExtensions: '.js' | '.ts' | undefined };
|
|
5
5
|
|
|
6
6
|
export const getServiceIndexFactory = (
|
|
7
|
-
services:
|
|
7
|
+
services: OpenAPIService[],
|
|
8
8
|
options: Options
|
|
9
9
|
) => {
|
|
10
10
|
return [
|
|
@@ -14,7 +14,7 @@ export const getServiceIndexFactory = (
|
|
|
14
14
|
];
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const getServiceIndexInterfaceFactory = (services:
|
|
17
|
+
const getServiceIndexInterfaceFactory = (services: OpenAPIService[]) => {
|
|
18
18
|
const factory = ts.factory;
|
|
19
19
|
|
|
20
20
|
return factory.createTypeAliasDeclaration(
|
|
@@ -37,7 +37,7 @@ const getServiceIndexInterfaceFactory = (services: Service[]) => {
|
|
|
37
37
|
);
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
const getServiceIndexVariableFactory = (services:
|
|
40
|
+
const getServiceIndexVariableFactory = (services: OpenAPIService[]) => {
|
|
41
41
|
const factory = ts.factory;
|
|
42
42
|
|
|
43
43
|
return factory.createVariableStatement(
|
|
@@ -71,7 +71,7 @@ const getServiceIndexVariableFactory = (services: Service[]) => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const getServicesImportsFactory = (
|
|
74
|
-
services:
|
|
74
|
+
services: OpenAPIService[],
|
|
75
75
|
{ explicitImportExtensions }: Options
|
|
76
76
|
) => {
|
|
77
77
|
const factory = ts.factory;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import { createUseInfiniteQueryOperationTSDocExample } from './createUseInfiniteQueryOperationTSDocExample.js';
|
|
3
3
|
import { createUseIsFetchingOperationTSDocExample } from './createUseIsFetchingOperationTSDocExample.js';
|
|
4
4
|
import { createUseIsMutatingOperationTSDocExample } from './createUseIsMutatingOperationTSDocExample.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import camelcase from 'camelcase';
|
|
3
3
|
import ts from 'typescript';
|
|
4
4
|
import { astToString } from '../astToString.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import camelcase from 'camelcase';
|
|
3
3
|
import ts from 'typescript';
|
|
4
4
|
import { astToString } from '../astToString.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import camelcase from 'camelcase';
|
|
3
3
|
import ts from 'typescript';
|
|
4
4
|
import { createOperationCommonTSDoc } from '../../lib/createOperationCommonTSDoc.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
import { astToString } from '../astToString.js';
|
|
4
4
|
import { createOperationMethodCallExpressionExampleNode } from './lib/createOperationMethodCallExpressionExampleNode.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import camelcase from 'camelcase';
|
|
3
3
|
import ts from 'typescript';
|
|
4
4
|
import { createOperationCommonTSDoc } from '../../lib/createOperationCommonTSDoc.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import type { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import camelcase from 'camelcase';
|
|
3
3
|
import ts from 'typescript';
|
|
4
4
|
import { createOperationCommonTSDoc } from '../../lib/createOperationCommonTSDoc.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
import { createOperationCommonTSDoc } from '../../lib/createOperationCommonTSDoc.js';
|
|
4
4
|
import { astToString } from '../astToString.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/
|
|
1
|
+
import { ServiceOperation } from '@openapi-qraft/plugin/lib/open-api/OpenAPIService';
|
|
2
2
|
import ts from 'typescript';
|
|
3
3
|
import { astToString } from '../astToString.js';
|
|
4
4
|
import { createInfiniteQueryOptionsArgumentExamplePropertyAssignmentNodes } from './createUseInfiniteQueryOperationTSDocExample.js';
|