@povio/openapi-codegen-cli 2.0.7 → 2.0.8-rc.10
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/README.md +63 -0
- package/dist/acl.d.mts +48 -0
- package/dist/acl.mjs +62 -7
- package/dist/auth.context-DKjzWiaA.mjs +59 -0
- package/dist/config-Cu_GYfai.d.mts +6 -0
- package/dist/generate.runner-CHLAT44S.mjs +98 -0
- package/dist/generateCodeFromOpenAPIDoc-CQZ2OLwB.mjs +4522 -0
- package/dist/generator.d.mts +65 -0
- package/dist/generator.mjs +144 -0
- package/dist/index.d.mts +246 -0
- package/dist/index.mjs +365 -22
- package/dist/options-DBz5YE3s.d.mts +90 -0
- package/dist/sh.d.mts +1 -0
- package/dist/sh.mjs +439 -0
- package/dist/vite.d.mts +8 -0
- package/dist/vite.mjs +50 -0
- package/package.json +56 -51
- package/src/assets/useCrossTabQueryInvalidation.ts +40 -0
- package/src/assets/useMutationEffects.ts +56 -17
- package/src/generators/templates/endpoints.hbs +0 -1
- package/src/generators/templates/partials/query-use-mutation.hbs +1 -1
- package/src/generators/templates/query-modules.hbs +1 -1
- package/dist/acl.d.ts +0 -4
- package/dist/commands/check.command.d.ts +0 -2
- package/dist/commands/check.d.ts +0 -7
- package/dist/commands/generate.command.d.ts +0 -2
- package/dist/commands/generate.d.ts +0 -8
- package/dist/generator.d.ts +0 -3
- package/dist/generator.js +0 -77
- package/dist/generators/checkOpenAPIDoc.d.ts +0 -3
- package/dist/generators/const/acl.const.d.ts +0 -13
- package/dist/generators/const/buildConfigs.const.d.ts +0 -1
- package/dist/generators/const/deps.const.d.ts +0 -37
- package/dist/generators/const/endpoints.const.d.ts +0 -11
- package/dist/generators/const/js.const.d.ts +0 -1
- package/dist/generators/const/openapi.const.d.ts +0 -7
- package/dist/generators/const/options.const.d.ts +0 -2
- package/dist/generators/const/package.const.d.ts +0 -2
- package/dist/generators/const/queries.const.d.ts +0 -8
- package/dist/generators/const/validation.const.d.ts +0 -53
- package/dist/generators/const/zod.const.d.ts +0 -19
- package/dist/generators/core/SchemaResolver.class.d.ts +0 -71
- package/dist/generators/core/endpoints/getEndpointAcl.d.ts +0 -8
- package/dist/generators/core/endpoints/getEndpointBody.d.ts +0 -13
- package/dist/generators/core/endpoints/getEndpointParameter.d.ts +0 -11
- package/dist/generators/core/endpoints/getEndpointsFromOpenAPIDoc.d.ts +0 -3
- package/dist/generators/core/endpoints/getEndpointsFromOpenAPIDoc.test.d.ts +0 -1
- package/dist/generators/core/getDataFromOpenAPIDoc.d.ts +0 -8
- package/dist/generators/core/getMetadataFromOpenAPIDoc.d.ts +0 -4
- package/dist/generators/core/getMetadataFromOpenAPIDoc.test.d.ts +0 -1
- package/dist/generators/core/openapi/getOpenAPISchemaComplexity.d.ts +0 -2
- package/dist/generators/core/openapi/getOpenAPISchemaComplexity.test.d.ts +0 -1
- package/dist/generators/core/openapi/getOpenAPISchemaDependencyGraph.d.ts +0 -6
- package/dist/generators/core/openapi/getOpenAPISchemaDependencyGraph.test.d.ts +0 -1
- package/dist/generators/core/openapi/getSchemaRefObjs.d.ts +0 -4
- package/dist/generators/core/openapi/iterateSchema.d.ts +0 -22
- package/dist/generators/core/resolveConfig.d.ts +0 -7
- package/dist/generators/core/zod/ZodSchema.class.d.ts +0 -26
- package/dist/generators/core/zod/enumExtraction/resolveExtractedEnumZodSchemaNames.d.ts +0 -2
- package/dist/generators/core/zod/enumExtraction/resolveExtractedEnumZodSchemaTags.d.ts +0 -2
- package/dist/generators/core/zod/enumExtraction/updateExtractedEnumZodSchemaData.d.ts +0 -17
- package/dist/generators/core/zod/getZodChain.d.ts +0 -8
- package/dist/generators/core/zod/getZodSchema.d.ts +0 -17
- package/dist/generators/core/zod/getZodSchema.test.d.ts +0 -1
- package/dist/generators/core/zod/getZodSchemaRefs.d.ts +0 -6
- package/dist/generators/core/zod/getZodSchemasFromOpenAPIDoc.d.ts +0 -6
- package/dist/generators/core/zod/resolveZodSchemaName.d.ts +0 -10
- package/dist/generators/core/zod/sortZodSchemasByTopology.d.ts +0 -4
- package/dist/generators/generate/generateAcl.d.ts +0 -3
- package/dist/generators/generate/generateAclCheck.d.ts +0 -2
- package/dist/generators/generate/generateAppRestClient.d.ts +0 -2
- package/dist/generators/generate/generateConfigs.d.ts +0 -2
- package/dist/generators/generate/generateEndpoints.d.ts +0 -2
- package/dist/generators/generate/generateModels.d.ts +0 -2
- package/dist/generators/generate/generateQueries.d.ts +0 -2
- package/dist/generators/generate/generateQueryModules.d.ts +0 -2
- package/dist/generators/generate/generateZodExtended.d.ts +0 -2
- package/dist/generators/generateCodeFromOpenAPIDoc.d.ts +0 -4
- package/dist/generators/types/builder-config.d.ts +0 -48
- package/dist/generators/types/common.d.ts +0 -27
- package/dist/generators/types/config.d.ts +0 -2
- package/dist/generators/types/endpoint.d.ts +0 -50
- package/dist/generators/types/generate.d.ts +0 -39
- package/dist/generators/types/metadata.d.ts +0 -51
- package/dist/generators/types/openapi.d.ts +0 -22
- package/dist/generators/types/options.d.ts +0 -66
- package/dist/generators/types/validation.d.ts +0 -5
- package/dist/generators/utils/array.utils.d.ts +0 -1
- package/dist/generators/utils/endpoint.utils.d.ts +0 -12
- package/dist/generators/utils/endpoint.utils.test.d.ts +0 -1
- package/dist/generators/utils/file.utils.d.ts +0 -8
- package/dist/generators/utils/generate/generate.acl.utils.d.ts +0 -23
- package/dist/generators/utils/generate/generate.configs.utils.d.ts +0 -15
- package/dist/generators/utils/generate/generate.endpoints.utils.d.ts +0 -39
- package/dist/generators/utils/generate/generate.imports.utils.d.ts +0 -39
- package/dist/generators/utils/generate/generate.imports.utils.test.d.ts +0 -1
- package/dist/generators/utils/generate/generate.openapi.utils.d.ts +0 -2
- package/dist/generators/utils/generate/generate.query.utils.d.ts +0 -6
- package/dist/generators/utils/generate/generate.utils.d.ts +0 -18
- package/dist/generators/utils/generate/generate.zod.utils.d.ts +0 -13
- package/dist/generators/utils/generate-files.utils.d.ts +0 -6
- package/dist/generators/utils/hbs/hbs-template.utils.d.ts +0 -3
- package/dist/generators/utils/hbs/hbs.acl.utils.d.ts +0 -2
- package/dist/generators/utils/hbs/hbs.common.utils.d.ts +0 -1
- package/dist/generators/utils/hbs/hbs.endpoints.utils.d.ts +0 -2
- package/dist/generators/utils/hbs/hbs.imports.utils.d.ts +0 -1
- package/dist/generators/utils/hbs/hbs.partials.utils.d.ts +0 -2
- package/dist/generators/utils/hbs/hbs.query.utils.d.ts +0 -2
- package/dist/generators/utils/hbs/hbs.zod.utils.d.ts +0 -2
- package/dist/generators/utils/js.utils.d.ts +0 -2
- package/dist/generators/utils/js.utils.test.d.ts +0 -1
- package/dist/generators/utils/math.utils.d.ts +0 -1
- package/dist/generators/utils/namespace.utils.d.ts +0 -7
- package/dist/generators/utils/object.utils.d.ts +0 -13
- package/dist/generators/utils/object.utils.test.d.ts +0 -1
- package/dist/generators/utils/openapi-schema.utils.d.ts +0 -15
- package/dist/generators/utils/openapi.utils.d.ts +0 -23
- package/dist/generators/utils/openapi.utils.test.d.ts +0 -1
- package/dist/generators/utils/operation.utils.d.ts +0 -22
- package/dist/generators/utils/operation.utils.test.d.ts +0 -1
- package/dist/generators/utils/query.utils.d.ts +0 -7
- package/dist/generators/utils/sort.utils.d.ts +0 -7
- package/dist/generators/utils/string.utils.d.ts +0 -14
- package/dist/generators/utils/string.utils.test.d.ts +0 -1
- package/dist/generators/utils/tag.utils.d.ts +0 -7
- package/dist/generators/utils/ts.utils.d.ts +0 -16
- package/dist/generators/utils/validation.utils.d.ts +0 -17
- package/dist/generators/utils/zod-schema.utils.d.ts +0 -15
- package/dist/helpers/cli.helper.d.ts +0 -22
- package/dist/helpers/config.helper.d.ts +0 -3
- package/dist/helpers/version.helper.d.ts +0 -4
- package/dist/helpers/yargs.helper.d.ts +0 -10
- package/dist/index.d.ts +0 -14
- package/dist/lib/acl/AclGuard.d.ts +0 -8
- package/dist/lib/acl/AclGuard.mjs +0 -14
- package/dist/lib/acl/Can.d.ts +0 -9
- package/dist/lib/acl/Can.mjs +0 -11
- package/dist/lib/acl/ability.context.d.ts +0 -15
- package/dist/lib/acl/ability.context.mjs +0 -37
- package/dist/lib/acl/appAbility.types.d.ts +0 -3
- package/dist/lib/assets/locales/en/translation.json.mjs +0 -8
- package/dist/lib/assets/locales/sl/translation.json.mjs +0 -8
- package/dist/lib/auth/AuthGuard.d.ts +0 -6
- package/dist/lib/auth/AuthGuard.mjs +0 -26
- package/dist/lib/auth/auth.context.d.ts +0 -22
- package/dist/lib/auth/auth.context.mjs +0 -41
- package/dist/lib/config/i18n.d.ts +0 -32
- package/dist/lib/config/i18n.mjs +0 -31
- package/dist/lib/config/queryConfig.context.d.ts +0 -11
- package/dist/lib/config/queryConfig.context.mjs +0 -17
- package/dist/lib/config/router.context.d.ts +0 -9
- package/dist/lib/config/router.context.mjs +0 -20
- package/dist/lib/react-query.types.d.ts +0 -10
- package/dist/lib/rest/error-handling.d.ts +0 -30
- package/dist/lib/rest/error-handling.mjs +0 -132
- package/dist/lib/rest/rest-client.d.ts +0 -22
- package/dist/lib/rest/rest-client.mjs +0 -62
- package/dist/lib/rest/rest-client.types.d.ts +0 -23
- package/dist/lib/rest/rest-interceptor.d.ts +0 -8
- package/dist/lib/rest/rest-interceptor.mjs +0 -21
- package/dist/lib/rest/rest.utils.d.ts +0 -7
- package/dist/lib/rest/rest.utils.mjs +0 -51
- package/dist/sh.d.ts +0 -2
- package/dist/sh.js +0 -652
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import { OperationAclInfo, ParameterObject } from './openapi';
|
|
3
|
-
export interface EndpointParameter {
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
type: "Query" | "Body" | "Header" | "Path";
|
|
7
|
-
zodSchema: string;
|
|
8
|
-
parameterObject?: ParameterObject;
|
|
9
|
-
parameterSortingEnumSchemaName?: string;
|
|
10
|
-
bodyObject?: OpenAPIV3.RequestBodyObject;
|
|
11
|
-
}
|
|
12
|
-
interface EndpointError {
|
|
13
|
-
status: number | "default";
|
|
14
|
-
description?: string;
|
|
15
|
-
zodSchema: string;
|
|
16
|
-
}
|
|
17
|
-
export interface AclConditionsPropertyType {
|
|
18
|
-
name: string;
|
|
19
|
-
type?: string;
|
|
20
|
-
zodSchemaName?: string;
|
|
21
|
-
required?: boolean;
|
|
22
|
-
info?: string;
|
|
23
|
-
}
|
|
24
|
-
export type EndpointAclInfo = OperationAclInfo & {
|
|
25
|
-
conditionsTypes?: AclConditionsPropertyType[];
|
|
26
|
-
};
|
|
27
|
-
export interface Endpoint {
|
|
28
|
-
method: OpenAPIV3.HttpMethods;
|
|
29
|
-
path: string;
|
|
30
|
-
operationName: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
summary?: string;
|
|
33
|
-
tags?: string[];
|
|
34
|
-
requestFormat: string;
|
|
35
|
-
responseFormat?: string;
|
|
36
|
-
parameters: Array<EndpointParameter>;
|
|
37
|
-
status?: number;
|
|
38
|
-
response: string;
|
|
39
|
-
responseObject?: OpenAPIV3.ResponseObject;
|
|
40
|
-
responseDescription?: string;
|
|
41
|
-
errors: Array<EndpointError>;
|
|
42
|
-
responseStatusCodes: string[];
|
|
43
|
-
acl?: EndpointAclInfo[];
|
|
44
|
-
mediaUpload?: boolean;
|
|
45
|
-
mediaDownload?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface ExtendedEndpoint extends Endpoint {
|
|
48
|
-
pathSegments: string[];
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import { SchemaResolver } from '../core/SchemaResolver.class';
|
|
3
|
-
import { Endpoint } from './endpoint';
|
|
4
|
-
export interface Import {
|
|
5
|
-
defaultImport?: string;
|
|
6
|
-
bindings: string[];
|
|
7
|
-
from: string;
|
|
8
|
-
typeOnly?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface GenerateFile {
|
|
11
|
-
fileName: string;
|
|
12
|
-
extension: string;
|
|
13
|
-
}
|
|
14
|
-
export interface GenerateZodSchemaData {
|
|
15
|
-
code: string;
|
|
16
|
-
isCiruclar: boolean;
|
|
17
|
-
isEnum: boolean;
|
|
18
|
-
schemaObj?: OpenAPIV3.SchemaObject;
|
|
19
|
-
}
|
|
20
|
-
export declare enum GenerateType {
|
|
21
|
-
Models = "models",
|
|
22
|
-
Endpoints = "endpoints",
|
|
23
|
-
Queries = "queries",
|
|
24
|
-
Acl = "acl",
|
|
25
|
-
Configs = "configs"
|
|
26
|
-
}
|
|
27
|
-
export type GenerateData = Map<string, {
|
|
28
|
-
endpoints: Endpoint[];
|
|
29
|
-
zodSchemas: Record<string, string>;
|
|
30
|
-
}>;
|
|
31
|
-
export interface GenerateTypeParams {
|
|
32
|
-
resolver: SchemaResolver;
|
|
33
|
-
data: GenerateData;
|
|
34
|
-
tag: string;
|
|
35
|
-
}
|
|
36
|
-
export interface GenerateFileData {
|
|
37
|
-
fileName: string;
|
|
38
|
-
content: string;
|
|
39
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import { GenerateOptions } from './options';
|
|
3
|
-
export interface GenerateParams {
|
|
4
|
-
input: string;
|
|
5
|
-
options?: Partial<GenerateOptions>;
|
|
6
|
-
}
|
|
7
|
-
export interface TsTypeBase {
|
|
8
|
-
type: string;
|
|
9
|
-
namespace?: string;
|
|
10
|
-
importPath?: string;
|
|
11
|
-
}
|
|
12
|
-
export type TsType = TsTypeBase & TsMetaType;
|
|
13
|
-
export type TsPropertyBase = {
|
|
14
|
-
name: string;
|
|
15
|
-
isRequired: boolean;
|
|
16
|
-
} & TsTypeBase;
|
|
17
|
-
export type TsProperty = TsPropertyBase & TsMetaType;
|
|
18
|
-
export interface TsPrimitiveMetaType {
|
|
19
|
-
metaType: "primitive";
|
|
20
|
-
}
|
|
21
|
-
export interface TsObjectMetaType {
|
|
22
|
-
metaType: "object";
|
|
23
|
-
objectProperties: TsProperty[];
|
|
24
|
-
isCircular?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface TsArrayMetaType {
|
|
27
|
-
metaType: "array";
|
|
28
|
-
arrayType: TsType;
|
|
29
|
-
}
|
|
30
|
-
export interface TsCompositeMetaType {
|
|
31
|
-
metaType: "composite";
|
|
32
|
-
allOf?: TsType[];
|
|
33
|
-
oneOf?: TsType[];
|
|
34
|
-
anyOf?: TsType[];
|
|
35
|
-
}
|
|
36
|
-
export type TsMetaType = TsPrimitiveMetaType | TsObjectMetaType | TsArrayMetaType | TsCompositeMetaType;
|
|
37
|
-
export type ModelMetadata = TsType;
|
|
38
|
-
export type QueryMetadata = {
|
|
39
|
-
name: string;
|
|
40
|
-
importPath: string;
|
|
41
|
-
namespace?: string;
|
|
42
|
-
isQuery: boolean;
|
|
43
|
-
isMutation: boolean;
|
|
44
|
-
params: TsProperty[];
|
|
45
|
-
response: TsType;
|
|
46
|
-
};
|
|
47
|
-
export interface GenerateMetadata {
|
|
48
|
-
openApiDoc: OpenAPIV3.Document;
|
|
49
|
-
models: ModelMetadata[];
|
|
50
|
-
queries: QueryMetadata[];
|
|
51
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
export type CompositeType = "oneOf" | "anyOf" | "allOf" | "enum" | "array" | "empty-object" | "object" | "record";
|
|
3
|
-
export type SingleType = Exclude<OpenAPIV3.SchemaObject["type"], any[] | undefined>;
|
|
4
|
-
export type PrimitiveType = "string" | "number" | "integer" | "boolean";
|
|
5
|
-
export interface OperationAclInfo {
|
|
6
|
-
action: string;
|
|
7
|
-
subject: string;
|
|
8
|
-
conditions?: Record<string, string>;
|
|
9
|
-
description?: string;
|
|
10
|
-
}
|
|
11
|
-
interface OperationObjectAdditions {
|
|
12
|
-
"x-acl"?: OperationAclInfo[];
|
|
13
|
-
"x-media-upload"?: any;
|
|
14
|
-
"x-media-download"?: any;
|
|
15
|
-
}
|
|
16
|
-
export type OperationObject = OpenAPIV3.OperationObject<OperationObjectAdditions>;
|
|
17
|
-
interface ParameterObjectAdditions {
|
|
18
|
-
"x-enumNames"?: string[];
|
|
19
|
-
}
|
|
20
|
-
export type ParameterObject = OpenAPIV3.ParameterObject & ParameterObjectAdditions;
|
|
21
|
-
export type SortingParameterObject = OpenAPIV3.ParameterObject & Required<Pick<ParameterObjectAdditions, "x-enumNames">>;
|
|
22
|
-
export {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { GenerateType } from './generate';
|
|
2
|
-
interface ZodGenerateOptions {
|
|
3
|
-
schemaSuffix: string;
|
|
4
|
-
enumSuffix: string;
|
|
5
|
-
withImplicitRequiredProps?: boolean;
|
|
6
|
-
withDefaultValues?: boolean;
|
|
7
|
-
withDescription?: boolean;
|
|
8
|
-
allReadonly?: boolean;
|
|
9
|
-
extractEnums?: boolean;
|
|
10
|
-
replaceOptionalWithNullish?: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface EndpointsGenerateOptions {
|
|
13
|
-
restClientImportPath: string;
|
|
14
|
-
withDeprecatedEndpoints?: boolean;
|
|
15
|
-
removeOperationPrefixEndingWith?: string;
|
|
16
|
-
parseRequestParams?: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface QueriesGenerateOptions {
|
|
19
|
-
queryTypesImportPath: string;
|
|
20
|
-
axiosRequestConfig?: boolean;
|
|
21
|
-
mutationEffects?: boolean;
|
|
22
|
-
}
|
|
23
|
-
interface InfiniteQueriesGenerateOptions {
|
|
24
|
-
infiniteQueries?: boolean;
|
|
25
|
-
infiniteQueryParamNames: {
|
|
26
|
-
page: string;
|
|
27
|
-
};
|
|
28
|
-
infiniteQueryResponseParamNames: {
|
|
29
|
-
page: string;
|
|
30
|
-
totalItems: string;
|
|
31
|
-
limit: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
interface ACLGenerateOptions {
|
|
35
|
-
acl: boolean;
|
|
36
|
-
checkAcl?: boolean;
|
|
37
|
-
abilityContextGenericAppAbilities: boolean;
|
|
38
|
-
}
|
|
39
|
-
interface BuilderConfigsGenerateOptions {
|
|
40
|
-
builderConfigs?: boolean;
|
|
41
|
-
filterParamName: string;
|
|
42
|
-
dataResponseParamNames: string[];
|
|
43
|
-
dynamicInputsImportPath: string;
|
|
44
|
-
dynamicColumnsImportPath: string;
|
|
45
|
-
}
|
|
46
|
-
interface GenerateConfig {
|
|
47
|
-
outputFileNameSuffix: string;
|
|
48
|
-
namespaceSuffix: string;
|
|
49
|
-
}
|
|
50
|
-
interface BaseGenerateOptions {
|
|
51
|
-
input: string;
|
|
52
|
-
output: string;
|
|
53
|
-
splitByTags: boolean;
|
|
54
|
-
defaultTag: string;
|
|
55
|
-
excludeTags: string[];
|
|
56
|
-
excludePathRegex: string;
|
|
57
|
-
excludeRedundantZodSchemas: boolean;
|
|
58
|
-
tsNamespaces: boolean;
|
|
59
|
-
tsPath: string;
|
|
60
|
-
importPath: "ts" | "relative" | "absolute";
|
|
61
|
-
configs: Record<GenerateType, GenerateConfig>;
|
|
62
|
-
baseUrl: string;
|
|
63
|
-
}
|
|
64
|
-
export interface GenerateOptions extends BaseGenerateOptions, ZodGenerateOptions, EndpointsGenerateOptions, QueriesGenerateOptions, InfiniteQueriesGenerateOptions, ACLGenerateOptions, BuilderConfigsGenerateOptions {
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type ValidationErrorType = "invalid-schema" | "invalid-operation-id" | "missing-path-parameter" | "not-allowed-inline-enum" | "not-allowed-circular-schema" | "missing-acl-condition-property" | "missing-status-code" | "invalid-status-code" | "multiple-success-status-codes";
|
|
2
|
-
export interface ValidationError {
|
|
3
|
-
type: ValidationErrorType;
|
|
4
|
-
message: string;
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getUniqueArray: <T>(...arrs: T[][]) => T[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Endpoint, ExtendedEndpoint } from '../types/endpoint';
|
|
2
|
-
import { GenerateOptions } from '../types/options';
|
|
3
|
-
export declare const isGetEndpoint: (endpoint: Endpoint) => boolean;
|
|
4
|
-
export declare const isPaginatedGetEndpoint: (endpoint: Endpoint, options: GenerateOptions) => boolean;
|
|
5
|
-
export declare const isReadAllEndpoint: (endpoint: ExtendedEndpoint, options: GenerateOptions) => boolean;
|
|
6
|
-
export declare const isReadEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean | undefined;
|
|
7
|
-
export declare const isCreateEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean;
|
|
8
|
-
export declare const isUpdateEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean | undefined;
|
|
9
|
-
export declare const isDeleteEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean | undefined;
|
|
10
|
-
export declare const isBulkDeleteEndpoint: (endpoint: ExtendedEndpoint, readAllEndpoint: ExtendedEndpoint) => boolean;
|
|
11
|
-
export declare const getPathSegments: (path: string) => string[];
|
|
12
|
-
export declare const isPathSegmentParam: (pathSegment?: string) => boolean | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GenerateFileData } from '../types/generate';
|
|
2
|
-
export declare function readHbsTemplateSync(fileName: string): string;
|
|
3
|
-
export declare function readAssetSync(fileName: string): string;
|
|
4
|
-
export declare function getOutputFileName({ output, fileName }: {
|
|
5
|
-
output: string;
|
|
6
|
-
fileName: string;
|
|
7
|
-
}): string;
|
|
8
|
-
export declare function writeGenerateFileData(filesData: GenerateFileData[]): void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Endpoint } from '../../types/endpoint';
|
|
2
|
-
import { GenerateTypeParams, Import } from '../../types/generate';
|
|
3
|
-
import { GenerateOptions } from '../../types/options';
|
|
4
|
-
export declare const getAbilityFunctionName: (endpoint: Endpoint) => string;
|
|
5
|
-
export declare const getImportedAbilityFunctionName: (endpoint: Endpoint, options: GenerateOptions) => string;
|
|
6
|
-
export declare const getAbilityAction: (endpoint: Endpoint) => string | undefined;
|
|
7
|
-
export declare const getAbilitySubject: (endpoint: Endpoint) => string | undefined;
|
|
8
|
-
export declare const hasAbilityConditions: (endpoint: Endpoint) => boolean;
|
|
9
|
-
export declare const getAbilityConditionsTypes: (endpoint: Endpoint) => import('../../types/endpoint').AclConditionsPropertyType[] | undefined;
|
|
10
|
-
export declare const getAbilityDescription: (endpoint: Endpoint) => string | undefined;
|
|
11
|
-
export declare const getAbilitySubjectTypes: (endpoint: Endpoint) => string[];
|
|
12
|
-
export declare function getAclData({ resolver, data, tag }: GenerateTypeParams): {
|
|
13
|
-
endpoints: Endpoint[];
|
|
14
|
-
hasAdditionalAbilityImports: boolean;
|
|
15
|
-
modelsImports: Import[];
|
|
16
|
-
} | undefined;
|
|
17
|
-
export declare const getAppAbilitiesType: ({ resolver, data }: Omit<GenerateTypeParams, "tag">) => {
|
|
18
|
-
appAbilitiesType: {
|
|
19
|
-
[k: string]: string[];
|
|
20
|
-
} | undefined;
|
|
21
|
-
modelsImports: Import[];
|
|
22
|
-
hasAdditionalAbilityImports: boolean;
|
|
23
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BuilderConfig } from '../../types/builder-config';
|
|
2
|
-
import { GenerateTypeParams } from '../../types/generate';
|
|
3
|
-
export declare function getBuilderConfigs({ data, tag, resolver }: GenerateTypeParams): {
|
|
4
|
-
configs: never[];
|
|
5
|
-
hasZodImport?: undefined;
|
|
6
|
-
modelsImports?: undefined;
|
|
7
|
-
queriesImports?: undefined;
|
|
8
|
-
aclImports?: undefined;
|
|
9
|
-
} | {
|
|
10
|
-
configs: BuilderConfig[];
|
|
11
|
-
hasZodImport: boolean;
|
|
12
|
-
modelsImports: import('../../types/generate').Import[];
|
|
13
|
-
queriesImports: import('../../types/generate').Import[];
|
|
14
|
-
aclImports: import('../../types/generate').Import[];
|
|
15
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import { SchemaResolver } from '../../core/SchemaResolver.class';
|
|
3
|
-
import { Endpoint } from '../../types/endpoint';
|
|
4
|
-
import { GenerateOptions } from '../../types/options';
|
|
5
|
-
export declare const getEndpointName: (endpoint: Endpoint) => string;
|
|
6
|
-
export declare function getImportedEndpointName(endpoint: Endpoint, options: GenerateOptions): string;
|
|
7
|
-
export declare const requiresBody: (endpoint: Endpoint) => boolean;
|
|
8
|
-
export declare const getEndpointBody: (endpoint: Endpoint) => import('../../types/endpoint').EndpointParameter | undefined;
|
|
9
|
-
export declare const hasEndpointConfig: (endpoint: Endpoint, resolver: SchemaResolver) => boolean | undefined;
|
|
10
|
-
export declare const getEndpointPath: (endpoint: Endpoint) => string;
|
|
11
|
-
export declare function mapEndpointParamsToFunctionParams(resolver: SchemaResolver, endpoint: Endpoint, options?: {
|
|
12
|
-
excludeBodyParam?: boolean;
|
|
13
|
-
excludePageParam?: boolean;
|
|
14
|
-
replacePageParam?: boolean;
|
|
15
|
-
includeFileParam?: boolean;
|
|
16
|
-
includeOnlyRequiredParams?: boolean;
|
|
17
|
-
pathParamsRequiredOnly?: boolean;
|
|
18
|
-
}): {
|
|
19
|
-
name: string;
|
|
20
|
-
required: boolean;
|
|
21
|
-
type: string;
|
|
22
|
-
paramType: "Query" | "Body" | "Header" | "Path";
|
|
23
|
-
parameterObject: import('../../types/openapi').ParameterObject | undefined;
|
|
24
|
-
bodyObject: OpenAPIV3.RequestBodyObject | undefined;
|
|
25
|
-
}[];
|
|
26
|
-
export declare function getEndpointConfig(endpoint: Endpoint): {
|
|
27
|
-
headers?: Record<string, string> | undefined;
|
|
28
|
-
params?: {
|
|
29
|
-
name: string;
|
|
30
|
-
value: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
type: "Query" | "Body" | "Header" | "Path";
|
|
33
|
-
zodSchema: string;
|
|
34
|
-
parameterObject?: import('../../types/openapi').ParameterObject;
|
|
35
|
-
parameterSortingEnumSchemaName?: string;
|
|
36
|
-
bodyObject?: OpenAPIV3.RequestBodyObject;
|
|
37
|
-
}[] | undefined;
|
|
38
|
-
};
|
|
39
|
-
export declare function getUpdateQueryEndpoints(endpoint: Endpoint, endpoints: Endpoint[]): Endpoint[];
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SchemaResolver } from '../../core/SchemaResolver.class';
|
|
2
|
-
import { Endpoint } from '../../types/endpoint';
|
|
3
|
-
import { GenerateType, Import } from '../../types/generate';
|
|
4
|
-
import { GenerateOptions } from '../../types/options';
|
|
5
|
-
export declare function getModelsImports({ resolver, tag, zodSchemas, zodSchemasAsTypes, }: {
|
|
6
|
-
resolver: SchemaResolver;
|
|
7
|
-
tag: string;
|
|
8
|
-
zodSchemas?: string[];
|
|
9
|
-
zodSchemasAsTypes?: string[];
|
|
10
|
-
}): Import[];
|
|
11
|
-
export declare function getEndpointsImports({ tag, endpoints, options, }: {
|
|
12
|
-
tag: string;
|
|
13
|
-
endpoints: Endpoint[];
|
|
14
|
-
options: GenerateOptions;
|
|
15
|
-
}): Import[];
|
|
16
|
-
export declare function getQueriesImports({ tag, endpoints, options, }: {
|
|
17
|
-
tag: string;
|
|
18
|
-
endpoints: Endpoint[];
|
|
19
|
-
options: GenerateOptions;
|
|
20
|
-
}): Import[];
|
|
21
|
-
export declare function getInfiniteQueriesImports({ tag, endpoints, options, }: {
|
|
22
|
-
tag: string;
|
|
23
|
-
endpoints: Endpoint[];
|
|
24
|
-
options: GenerateOptions;
|
|
25
|
-
}): Import[];
|
|
26
|
-
export declare function getAclImports({ tag, endpoints, options, }: {
|
|
27
|
-
tag: string;
|
|
28
|
-
endpoints: Endpoint[];
|
|
29
|
-
options: GenerateOptions;
|
|
30
|
-
}): Import[];
|
|
31
|
-
export declare function getEntityImports({ tags, entityName, getAliasEntityName, type, options, }: {
|
|
32
|
-
tags: string[];
|
|
33
|
-
entityName: string;
|
|
34
|
-
getAliasEntityName?: (tag: string) => string;
|
|
35
|
-
type: GenerateType;
|
|
36
|
-
options: GenerateOptions;
|
|
37
|
-
}): Import[];
|
|
38
|
-
export declare function getImportPath(options: Pick<GenerateOptions, "output" | "importPath" | "tsPath">, fromRoot?: boolean): string;
|
|
39
|
-
export declare function mergeImports(options: GenerateOptions, ...importArrs: Import[][]): Import[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Endpoint } from '../../types/endpoint';
|
|
2
|
-
import { GenerateOptions } from '../../types/options';
|
|
3
|
-
export declare const getQueryName: (endpoint: Endpoint, mutation?: boolean) => string;
|
|
4
|
-
export declare const getInfiniteQueryName: (endpoint: Endpoint) => string;
|
|
5
|
-
export declare const getImportedQueryName: (endpoint: Endpoint, options: GenerateOptions) => string;
|
|
6
|
-
export declare const getImportedInfiniteQueryName: (endpoint: Endpoint, options: GenerateOptions) => string;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { GenerateFile, GenerateType } from '../../types/generate';
|
|
2
|
-
import { GenerateOptions } from '../../types/options';
|
|
3
|
-
export declare function getFileNameWithExtension({ fileName, extension }: GenerateFile): string;
|
|
4
|
-
declare function getTagFileNameWithoutExtension({ type, tag, options, includeTagDir, }: {
|
|
5
|
-
type: GenerateType;
|
|
6
|
-
tag: string;
|
|
7
|
-
includeTagDir?: boolean;
|
|
8
|
-
options: GenerateOptions;
|
|
9
|
-
}): string;
|
|
10
|
-
export declare function getTagImportPath(...args: Parameters<typeof getTagFileNameWithoutExtension>): string;
|
|
11
|
-
export declare function getTagFileName(...args: Parameters<typeof getTagFileNameWithoutExtension>): string;
|
|
12
|
-
export declare function getAppRestClientImportPath(options: GenerateOptions): string;
|
|
13
|
-
export declare function getQueryModulesImportPath(options: GenerateOptions): string;
|
|
14
|
-
export declare function getMutationEffectsImportPath(options: GenerateOptions): string;
|
|
15
|
-
export declare function getAclCheckImportPath(options: GenerateOptions): string;
|
|
16
|
-
export declare function getZodExtendedImportPath(options: GenerateOptions): string;
|
|
17
|
-
export declare function getAppAbilitiesImportPath(options: GenerateOptions): string;
|
|
18
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import { SchemaResolver } from '../../core/SchemaResolver.class';
|
|
3
|
-
import { GenerateZodSchemaData } from '../../types/generate';
|
|
4
|
-
import { GenerateOptions } from '../../types/options';
|
|
5
|
-
export declare const getZodSchemaInferedTypeName: (zodSchemaName: string, options: GenerateOptions) => string;
|
|
6
|
-
export declare const getImportedZodSchemaName: (resolver: SchemaResolver, zodSchemaName: string) => string;
|
|
7
|
-
export declare const getImportedZodSchemaInferedTypeName: (resolver: SchemaResolver, zodSchemaName: string, currentTag?: string) => string;
|
|
8
|
-
export declare function getZodSchemaType(data: GenerateZodSchemaData): "enum" | "array" | OpenAPIV3.NonArraySchemaObjectType;
|
|
9
|
-
export declare function getZodSchemaDescription(data: GenerateZodSchemaData): string | undefined;
|
|
10
|
-
export declare function getZodSchemaPropertyDescriptions(resolver: SchemaResolver, data: GenerateZodSchemaData, tag: string): never[] | Record<string, {
|
|
11
|
-
type: string;
|
|
12
|
-
description: string;
|
|
13
|
-
}>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SchemaResolver } from '../core/SchemaResolver.class';
|
|
2
|
-
import { GenerateData, GenerateFileData } from '../types/generate';
|
|
3
|
-
export declare function getAclFiles(data: GenerateData, resolver: SchemaResolver): GenerateFileData[];
|
|
4
|
-
export declare function getMutationEffectsFiles(data: GenerateData, resolver: SchemaResolver): GenerateFileData[];
|
|
5
|
-
export declare function getZodExtendedFiles(data: GenerateData, resolver: SchemaResolver): GenerateFileData[];
|
|
6
|
-
export declare function getAppRestClientFiles(resolver: SchemaResolver): GenerateFileData[];
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { SchemaResolver } from '../../core/SchemaResolver.class';
|
|
2
|
-
export declare function getHbsTemplateDelegate(resolver: SchemaResolver, templateName: string): HandlebarsTemplateDelegate<any>;
|
|
3
|
-
export declare function getHbsPartialTemplateDelegate(templateName: string): HandlebarsTemplateDelegate<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function registerCommonHbsHelpers(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function registerImportsHbsHelpers(): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const sum: (arr: number[]) => number;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Get } from 'type-fest';
|
|
2
|
-
import { HasNestedPath, ObjectLiteral } from '../types/common';
|
|
3
|
-
/** Get a nested property value from a dot-delimited path. */
|
|
4
|
-
export declare function getNested<Path extends string, From extends ObjectLiteral, Return = HasNestedPath<Path> extends 1 ? From[Path] : Get<From, Path>>(obj: From, path: Path): Return;
|
|
5
|
-
/** Pick given properties in object */
|
|
6
|
-
export declare function pick<T extends ObjectLiteral, K extends keyof T>(obj: T, paths: K[]): Pick<T, K>;
|
|
7
|
-
/**
|
|
8
|
-
* Deep merge two or more objects/arrays recursively.
|
|
9
|
-
* Arrays are concatenated, objects are merged recursively.
|
|
10
|
-
* Later arguments take precedence over earlier ones.
|
|
11
|
-
* Returns a new object/array without mutating the originals.
|
|
12
|
-
*/
|
|
13
|
-
export declare function deepMerge<T>(source: T, ...sources: Partial<T>[]): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
export declare function isReferenceObject(obj: unknown): obj is OpenAPIV3.ReferenceObject;
|
|
3
|
-
export declare function isSchemaObject(schema: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject): schema is OpenAPIV3.SchemaObject;
|
|
4
|
-
export declare function isArraySchemaObject(schema: OpenAPIV3.SchemaObject): schema is OpenAPIV3.ArraySchemaObject;
|
|
5
|
-
export declare function inferRequiredSchema(schema: OpenAPIV3.SchemaObject): {
|
|
6
|
-
noRequiredOnlyAllof: (OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject)[];
|
|
7
|
-
composedRequiredSchema: {
|
|
8
|
-
properties: {
|
|
9
|
-
[propertyName: string]: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject;
|
|
10
|
-
};
|
|
11
|
-
type: "object";
|
|
12
|
-
required: string[];
|
|
13
|
-
};
|
|
14
|
-
patchRequiredSchemaInLoop: (prop: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject, getSchemaByRef: (ref: string) => OpenAPIV3.SchemaObject) => void;
|
|
15
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ALLOWED_PARAM_MEDIA_TYPES } from '../const/openapi.const';
|
|
2
|
-
import { ParameterObject, PrimitiveType, SingleType, SortingParameterObject } from '../types/openapi';
|
|
3
|
-
export declare const getSchemaRef: (schemaName: string) => string;
|
|
4
|
-
export declare const autocorrectRef: (ref: string) => string;
|
|
5
|
-
export declare const getSchemaNameByRef: (ref: string) => string;
|
|
6
|
-
export declare function normalizeString(text: string): string;
|
|
7
|
-
export declare function wrapWithQuotesIfNeeded(str: string): string;
|
|
8
|
-
export declare function unwrapQuotesIfNeeded(value: string | number): string | number;
|
|
9
|
-
export declare function pathParamToVariableName(name: string): string;
|
|
10
|
-
export declare const isPrimitiveType: (type: SingleType | undefined) => type is PrimitiveType;
|
|
11
|
-
export declare function escapeControlCharacters(str: string): string;
|
|
12
|
-
export declare const toBoolean: (value: undefined | string | boolean, defaultValue: boolean) => boolean;
|
|
13
|
-
export declare function isParamMediaTypeAllowed(mediaType: string): mediaType is (typeof ALLOWED_PARAM_MEDIA_TYPES)[number] | `application/${string}json${string}` | `text/${string}`;
|
|
14
|
-
export declare function isMainResponseStatus(status: number): boolean;
|
|
15
|
-
export declare function isErrorStatus(status: number): boolean;
|
|
16
|
-
export declare function isMediaTypeAllowed(mediaType: string): boolean;
|
|
17
|
-
/** @example turns `/media-objects/{id}` into `MediaObjectsById` */
|
|
18
|
-
export declare function pathToVariableName(path: string): string;
|
|
19
|
-
export declare function replaceHyphenatedPath(path: string): string;
|
|
20
|
-
export declare const isSortingParameterObject: (param: ParameterObject) => param is SortingParameterObject;
|
|
21
|
-
export declare const isPathExcluded: (path: string, options: {
|
|
22
|
-
excludePathRegex: string;
|
|
23
|
-
}) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OpenAPIV3 } from 'openapi-types';
|
|
2
|
-
import { OperationObject } from '../types/openapi';
|
|
3
|
-
import { GenerateOptions } from '../types/options';
|
|
4
|
-
export declare function isOperationExcluded(operation: OperationObject, options: GenerateOptions): boolean;
|
|
5
|
-
export declare function getOperationName({ path, method, operation, options, tag, keepOperationTag, keepOperationPrefix, }: {
|
|
6
|
-
path: string;
|
|
7
|
-
method: string;
|
|
8
|
-
operation: OperationObject;
|
|
9
|
-
options: GenerateOptions;
|
|
10
|
-
tag: string;
|
|
11
|
-
keepOperationTag?: boolean;
|
|
12
|
-
keepOperationPrefix?: boolean;
|
|
13
|
-
}): string;
|
|
14
|
-
export declare function getUniqueOperationName({ operationsByTag, ...params }: {
|
|
15
|
-
path: string;
|
|
16
|
-
method: string;
|
|
17
|
-
operation: OperationObject;
|
|
18
|
-
operationsByTag: Record<string, OperationObject[]>;
|
|
19
|
-
options: GenerateOptions;
|
|
20
|
-
}): string;
|
|
21
|
-
export declare function getUniqueOperationNamesWithoutSplitByTags(openApiDoc: OpenAPIV3.Document, operationsByTag: Record<string, OperationObject[]>, options: GenerateOptions): string[];
|
|
22
|
-
export declare function getOperationsByTag(openApiDoc: OpenAPIV3.Document, options: GenerateOptions): Record<string, OperationObject[]>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SchemaResolver } from '../core/SchemaResolver.class';
|
|
2
|
-
import { Endpoint } from '../types/endpoint';
|
|
3
|
-
import { GenerateOptions } from '../types/options';
|
|
4
|
-
export declare const isQuery: (endpoint: Endpoint) => boolean;
|
|
5
|
-
export declare const isMutation: (endpoint: Endpoint) => boolean;
|
|
6
|
-
export declare const isInfiniteQuery: (endpoint: Endpoint, options: GenerateOptions) => boolean;
|
|
7
|
-
export declare const getDestructuredVariables: (resolver: SchemaResolver, endpoint: Endpoint, updateQueryEndpoints: Endpoint[]) => string[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ObjectLiteral } from '../types/common';
|
|
2
|
-
/** @see https://gist.github.com/RubyTuesdayDONO/5006455 */
|
|
3
|
-
export declare function topologicalSort(graph: Record<string, Set<string>>): string[];
|
|
4
|
-
/** Sort object keys using a reference order array, sort keys not in reference order in lasts positions */
|
|
5
|
-
export declare function sortObjKeysFromArray<T extends ObjectLiteral>(obj: T, orderedKeys: Array<keyof T>): {
|
|
6
|
-
[k: string]: T[keyof T];
|
|
7
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const capitalize: (str: string) => string;
|
|
2
|
-
export declare const decapitalize: (str: string) => string;
|
|
3
|
-
export declare const kebabToCamel: (str: string) => string;
|
|
4
|
-
export declare const snakeToCamel: (str: string) => string;
|
|
5
|
-
export declare const nonWordCharactersToCamel: (str: string) => string;
|
|
6
|
-
export declare const suffixIfNeeded: (text: string, suffix?: string) => string;
|
|
7
|
-
export declare const removeSuffix: (text: string, suffix: string) => string;
|
|
8
|
-
export declare const getLongestMostCommon: (strs: string[]) => string | undefined;
|
|
9
|
-
export declare const getMostCommonAdjacentCombinationSplit: (strs: string[]) => string | undefined;
|
|
10
|
-
export declare const splitByUppercase: (str: string) => string[];
|
|
11
|
-
export declare const camelToSpaceSeparated: (text: string) => string;
|
|
12
|
-
export declare const getAdjacentStringCombinations: (strs: string[], ignoreStrs?: string[]) => string[];
|
|
13
|
-
export declare const removeWord: (source: string, wordToRemove: string) => string;
|
|
14
|
-
export declare const isString: (str: string | undefined) => str is string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Endpoint } from '../types/endpoint';
|
|
2
|
-
import { OperationObject } from '../types/openapi';
|
|
3
|
-
import { GenerateOptions } from '../types/options';
|
|
4
|
-
export declare function formatTag(tag: string): string;
|
|
5
|
-
export declare function getOperationTag(operation: OperationObject, options: GenerateOptions): string;
|
|
6
|
-
export declare function getEndpointTag(endpoint: Endpoint, options: GenerateOptions): string;
|
|
7
|
-
export declare function isTagExcluded(tag: string, options: GenerateOptions): boolean;
|