@skmtc/core 0.0.781 → 0.0.783
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/esm/app/validate.d.ts +1 -1
- package/esm/app/validate.d.ts.map +1 -1
- package/esm/context/CoreContext.d.ts +177 -8
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +178 -0
- package/esm/context/ParseContext.d.ts +1 -1
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/StackTrail.d.ts +2 -2
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/types.d.ts +2 -2
- package/esm/context/types.d.ts.map +1 -1
- package/esm/dsl/ContentBase.d.ts +115 -0
- package/esm/dsl/ContentBase.d.ts.map +1 -1
- package/esm/dsl/ContentBase.js +110 -0
- package/esm/dsl/File.d.ts.map +1 -1
- package/esm/dsl/JsonFile.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.d.ts +2 -23
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.d.ts +5 -5
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts +2 -25
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.d.ts +5 -5
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/helpers/formatNumber.d.ts.map +1 -1
- package/esm/helpers/generationStats.d.ts.map +1 -1
- package/esm/helpers/strings.d.ts +63 -0
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/strings.js +59 -0
- package/esm/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/esm/mod.d.ts +66 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +66 -0
- package/esm/oas/document/Document.d.ts +1 -9
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/operation/Operation.d.ts +2 -12
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/ref/Ref.d.ts +1 -3
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/server/Server.d.ts.map +1 -1
- package/esm/oas/serverVariable/ServerVariable.d.ts.map +1 -1
- package/esm/run/toArtifacts.d.ts +114 -0
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +86 -0
- package/esm/types/DenoJson.d.ts +2 -11
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/Enrichments.d.ts +9 -207
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Manifest.d.ts +3 -59
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Method.d.ts +11 -2
- package/esm/types/Method.d.ts.map +1 -1
- package/esm/types/Method.js +4 -3
- package/esm/types/ModuleExport.d.ts +1 -4
- package/esm/types/ModuleExport.d.ts.map +1 -1
- package/esm/types/PrettierConfig.d.ts +1 -24
- package/esm/types/PrettierConfig.d.ts.map +1 -1
- package/esm/types/Preview.d.ts +17 -52
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +3 -2
- package/esm/types/Results.d.ts +1 -1
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Settings.d.ts +135 -102
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +3 -0
- package/esm/typescript/List.d.ts +112 -1
- package/esm/typescript/List.d.ts.map +1 -1
- package/esm/typescript/List.js +106 -0
- package/package.json +1 -1
- package/script/app/validate.d.ts +1 -1
- package/script/app/validate.d.ts.map +1 -1
- package/script/context/CoreContext.d.ts +177 -8
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +178 -0
- package/script/context/ParseContext.d.ts +1 -1
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/StackTrail.d.ts +2 -2
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/types.d.ts +2 -2
- package/script/context/types.d.ts.map +1 -1
- package/script/dsl/ContentBase.d.ts +115 -0
- package/script/dsl/ContentBase.d.ts.map +1 -1
- package/script/dsl/ContentBase.js +110 -0
- package/script/dsl/File.d.ts.map +1 -1
- package/script/dsl/JsonFile.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.d.ts +2 -23
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.d.ts +5 -5
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.d.ts +2 -25
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.d.ts +5 -5
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/helpers/formatNumber.d.ts.map +1 -1
- package/script/helpers/generationStats.d.ts.map +1 -1
- package/script/helpers/strings.d.ts +63 -0
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/strings.js +59 -0
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/script/mod.d.ts +66 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +66 -0
- package/script/oas/document/Document.d.ts +1 -9
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/operation/Operation.d.ts +2 -12
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/ref/Ref.d.ts +1 -3
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/server/Server.d.ts.map +1 -1
- package/script/oas/serverVariable/ServerVariable.d.ts.map +1 -1
- package/script/run/toArtifacts.d.ts +114 -0
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +86 -0
- package/script/types/DenoJson.d.ts +2 -11
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/Enrichments.d.ts +9 -207
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Manifest.d.ts +3 -59
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Method.d.ts +11 -2
- package/script/types/Method.d.ts.map +1 -1
- package/script/types/Method.js +4 -3
- package/script/types/ModuleExport.d.ts +1 -4
- package/script/types/ModuleExport.d.ts.map +1 -1
- package/script/types/PrettierConfig.d.ts +1 -24
- package/script/types/PrettierConfig.d.ts.map +1 -1
- package/script/types/Preview.d.ts +17 -52
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +3 -2
- package/script/types/Results.d.ts +1 -1
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Settings.d.ts +135 -102
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +3 -0
- package/script/typescript/List.d.ts +112 -1
- package/script/typescript/List.d.ts.map +1 -1
- package/script/typescript/List.js +106 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toArtifacts.d.ts","sourceRoot":"","sources":["../../src/run/toArtifacts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"toArtifacts.d.ts","sourceRoot":"","sources":["../../src/run/toArtifacts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,KAAK,aAAa,GAAG;IACnB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAA;IACf,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAA;IACd,yCAAyC;IACzC,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,0DAA0D;IAC1D,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4DAA4D;IAC5D,oBAAoB,EAAE,CAAC,cAAc,GAAG,SAAS,OAAO,sBAAsB,CAAC,cAAc,CAAC,CAAA;IAC9F,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAA;IACf,2DAA2D;IAC3D,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,eAAO,MAAM,WAAW,GAAU,0GAU/B,aAAa,KAAG,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAE,CAyB1F,CAAA"}
|
|
@@ -36,6 +36,92 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.toArtifacts = void 0;
|
|
37
37
|
const dntShim = __importStar(require("../_dnt.shims.js"));
|
|
38
38
|
const CoreContext_js_1 = require("../context/CoreContext.js");
|
|
39
|
+
/**
|
|
40
|
+
* Transforms an OpenAPI v3 document into generated code artifacts and metadata.
|
|
41
|
+
*
|
|
42
|
+
* This is the primary function for the SKMTC transformation pipeline. It orchestrates
|
|
43
|
+
* the three-phase process of parsing OpenAPI documents, generating code artifacts,
|
|
44
|
+
* and rendering them to formatted files.
|
|
45
|
+
*
|
|
46
|
+
* The function creates a {@link CoreContext} instance and executes the full pipeline:
|
|
47
|
+
* 1. **Parse**: Converts the OpenAPI document into internal OAS objects
|
|
48
|
+
* 2. **Generate**: Transforms OAS objects using the provided generator configuration
|
|
49
|
+
* 3. **Render**: Formats and prepares the final code artifacts
|
|
50
|
+
*
|
|
51
|
+
* @param args - Configuration for the transformation process
|
|
52
|
+
* @returns A promise resolving to the generated artifacts and manifest
|
|
53
|
+
*
|
|
54
|
+
* @example Basic usage
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import { toArtifacts } from '@skmtc/core';
|
|
57
|
+
*
|
|
58
|
+
* const result = await toArtifacts({
|
|
59
|
+
* traceId: 'my-api-generation',
|
|
60
|
+
* spanId: 'user-service',
|
|
61
|
+
* documentObject: myOpenApiDoc,
|
|
62
|
+
* settings: {
|
|
63
|
+
* basePath: './src/generated',
|
|
64
|
+
* skip: {
|
|
65
|
+
* models: ['InternalModel', 'DebugInfo'],
|
|
66
|
+
* operations: {
|
|
67
|
+
* '/internal/**': ['get', 'post']
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* },
|
|
71
|
+
* toGeneratorConfigMap: () => ({
|
|
72
|
+
* models: modelGenerator,
|
|
73
|
+
* operations: operationGenerator
|
|
74
|
+
* }),
|
|
75
|
+
* startAt: Date.now(),
|
|
76
|
+
* silent: false
|
|
77
|
+
* });
|
|
78
|
+
*
|
|
79
|
+
* // Access generated files
|
|
80
|
+
* Object.entries(result.artifacts).forEach(([path, content]) => {
|
|
81
|
+
* console.log(`Generated: ${path}`);
|
|
82
|
+
* await Deno.writeTextFile(path, content);
|
|
83
|
+
* });
|
|
84
|
+
*
|
|
85
|
+
* // Access generation metadata
|
|
86
|
+
* console.log(`Generated ${Object.keys(result.manifest.files).length} files`);
|
|
87
|
+
* console.log(`Generation took ${result.manifest.endAt - result.manifest.startAt}ms`);
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @example With Prettier formatting
|
|
91
|
+
* ```typescript
|
|
92
|
+
* const result = await toArtifacts({
|
|
93
|
+
* traceId: 'formatted-generation',
|
|
94
|
+
* spanId: 'api-client',
|
|
95
|
+
* documentObject: openApiDoc,
|
|
96
|
+
* settings: clientSettings,
|
|
97
|
+
* prettier: {
|
|
98
|
+
* semi: true,
|
|
99
|
+
* singleQuote: true,
|
|
100
|
+
* trailingComma: 'es5'
|
|
101
|
+
* },
|
|
102
|
+
* toGeneratorConfigMap: () => generatorMap,
|
|
103
|
+
* startAt: Date.now(),
|
|
104
|
+
* silent: true
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @example Error handling
|
|
109
|
+
* ```typescript
|
|
110
|
+
* try {
|
|
111
|
+
* const result = await toArtifacts(transformArgs);
|
|
112
|
+
*
|
|
113
|
+
* // Check for generation errors in the results
|
|
114
|
+
* const hasErrors = Object.values(result.manifest.results)
|
|
115
|
+
* .some(result => result === 'error');
|
|
116
|
+
*
|
|
117
|
+
* if (hasErrors) {
|
|
118
|
+
* console.warn('Generation completed with errors');
|
|
119
|
+
* }
|
|
120
|
+
* } catch (error) {
|
|
121
|
+
* console.error('Transformation failed:', error);
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
39
125
|
const toArtifacts = async ({ traceId, spanId, documentObject, settings, prettier, toGeneratorConfigMap, logsPath, startAt, silent }) => {
|
|
40
126
|
const context = new CoreContext_js_1.CoreContext({ spanId, logsPath, silent });
|
|
41
127
|
const { artifacts, files, previews, results, mappings } = await context.toArtifacts({
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import * as v from 'valibot';
|
|
3
|
-
export declare const rootDenoJson: v.
|
|
4
|
-
readonly imports: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
|
|
5
|
-
readonly exports: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
|
|
6
|
-
readonly workspace: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7
|
-
}, undefined>;
|
|
3
|
+
export declare const rootDenoJson: v.GenericSchema<RootDenoJson>;
|
|
8
4
|
export type RootDenoJson = {
|
|
9
5
|
imports?: Record<string, string>;
|
|
10
6
|
exports?: Record<string, string>;
|
|
11
7
|
workspace?: string[];
|
|
12
8
|
};
|
|
13
|
-
export declare const packageDenoJson: v.
|
|
14
|
-
readonly name: v.StringSchema<undefined>;
|
|
15
|
-
readonly version: v.StringSchema<undefined>;
|
|
16
|
-
readonly imports: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
|
|
17
|
-
readonly exports: v.UnionSchema<[v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, v.StringSchema<undefined>], undefined>;
|
|
18
|
-
}, undefined>;
|
|
9
|
+
export declare const packageDenoJson: v.GenericSchema<PackageDenoJson>;
|
|
19
10
|
export type PackageDenoJson = {
|
|
20
11
|
name: string;
|
|
21
12
|
version: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DenoJson.d.ts","sourceRoot":"","sources":["../../src/types/DenoJson.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"DenoJson.d.ts","sourceRoot":"","sources":["../../src/types/DenoJson.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,aAAa,CAAC,YAAY,CAIrD,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,aAAa,CAAC,eAAe,CAK3D,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;CACzC,CAAA"}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import { type ModuleExport } from './ModuleExport.js';
|
|
3
3
|
import * as v from 'valibot';
|
|
4
|
-
export declare const formFieldItem: v.
|
|
5
|
-
readonly id: v.StringSchema<undefined>;
|
|
6
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
7
|
-
readonly input: v.ObjectSchema<{
|
|
8
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
9
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
10
|
-
}, undefined>;
|
|
11
|
-
readonly label: v.StringSchema<undefined>;
|
|
12
|
-
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
13
|
-
}, undefined>;
|
|
4
|
+
export declare const formFieldItem: v.GenericSchema<FormFieldItem>;
|
|
14
5
|
export type FormFieldItem = {
|
|
15
6
|
id: string;
|
|
16
7
|
accessorPath: string[];
|
|
@@ -18,231 +9,42 @@ export type FormFieldItem = {
|
|
|
18
9
|
label: string;
|
|
19
10
|
placeholder?: string;
|
|
20
11
|
};
|
|
21
|
-
export declare const formItem: v.
|
|
22
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
-
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
25
|
-
readonly id: v.StringSchema<undefined>;
|
|
26
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
-
readonly input: v.ObjectSchema<{
|
|
28
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
29
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
30
|
-
}, undefined>;
|
|
31
|
-
readonly label: v.StringSchema<undefined>;
|
|
32
|
-
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
33
|
-
}, undefined>, undefined>, undefined>;
|
|
34
|
-
readonly submitLabel: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
-
}, undefined>;
|
|
12
|
+
export declare const formItem: v.GenericSchema<FormItem>;
|
|
36
13
|
export type FormItem = {
|
|
37
14
|
title?: string;
|
|
38
15
|
description?: string;
|
|
39
16
|
fields?: FormFieldItem[];
|
|
40
17
|
submitLabel?: string;
|
|
41
18
|
};
|
|
42
|
-
export declare const tableColumnItem: v.
|
|
43
|
-
readonly id: v.StringSchema<undefined>;
|
|
44
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
45
|
-
readonly formatter: v.ObjectSchema<{
|
|
46
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
47
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
48
|
-
}, undefined>;
|
|
49
|
-
readonly label: v.StringSchema<undefined>;
|
|
50
|
-
}, undefined>;
|
|
19
|
+
export declare const tableColumnItem: v.GenericSchema<TableColumnItem>;
|
|
51
20
|
export type TableColumnItem = {
|
|
52
21
|
id: string;
|
|
53
22
|
accessorPath: string[];
|
|
54
23
|
formatter: ModuleExport;
|
|
55
24
|
label: string;
|
|
56
25
|
};
|
|
57
|
-
export declare const tableItem: v.
|
|
58
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
60
|
-
readonly columns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
61
|
-
readonly id: v.StringSchema<undefined>;
|
|
62
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
63
|
-
readonly formatter: v.ObjectSchema<{
|
|
64
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
65
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
66
|
-
}, undefined>;
|
|
67
|
-
readonly label: v.StringSchema<undefined>;
|
|
68
|
-
}, undefined>, undefined>, undefined>;
|
|
69
|
-
}, undefined>;
|
|
26
|
+
export declare const tableItem: v.GenericSchema<TableItem>;
|
|
70
27
|
export type TableItem = {
|
|
71
28
|
title?: string;
|
|
72
29
|
description?: string;
|
|
73
30
|
columns?: TableColumnItem[];
|
|
74
31
|
};
|
|
75
|
-
export declare const inputItem: v.
|
|
76
|
-
readonly id: v.StringSchema<undefined>;
|
|
77
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
78
|
-
readonly formatter: v.ObjectSchema<{
|
|
79
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
80
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
81
|
-
}, undefined>;
|
|
82
|
-
}, undefined>;
|
|
32
|
+
export declare const inputItem: v.GenericSchema<InputItem>;
|
|
83
33
|
export type InputItem = {
|
|
84
34
|
id: string;
|
|
85
35
|
accessorPath: string[];
|
|
86
36
|
formatter: ModuleExport;
|
|
87
37
|
};
|
|
88
|
-
export declare const operationEnrichments: v.
|
|
89
|
-
readonly table: v.OptionalSchema<v.ObjectSchema<{
|
|
90
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
91
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
92
|
-
readonly columns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
93
|
-
readonly id: v.StringSchema<undefined>;
|
|
94
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
95
|
-
readonly formatter: v.ObjectSchema<{
|
|
96
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
97
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
98
|
-
}, undefined>;
|
|
99
|
-
readonly label: v.StringSchema<undefined>;
|
|
100
|
-
}, undefined>, undefined>, undefined>;
|
|
101
|
-
}, undefined>, undefined>;
|
|
102
|
-
readonly form: v.OptionalSchema<v.ObjectSchema<{
|
|
103
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
104
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
105
|
-
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
106
|
-
readonly id: v.StringSchema<undefined>;
|
|
107
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
-
readonly input: v.ObjectSchema<{
|
|
109
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
110
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
111
|
-
}, undefined>;
|
|
112
|
-
readonly label: v.StringSchema<undefined>;
|
|
113
|
-
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
114
|
-
}, undefined>, undefined>, undefined>;
|
|
115
|
-
readonly submitLabel: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
-
}, undefined>, undefined>;
|
|
117
|
-
readonly input: v.OptionalSchema<v.ObjectSchema<{
|
|
118
|
-
readonly id: v.StringSchema<undefined>;
|
|
119
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
-
readonly formatter: v.ObjectSchema<{
|
|
121
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
122
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
123
|
-
}, undefined>;
|
|
124
|
-
}, undefined>, undefined>;
|
|
125
|
-
}, undefined>;
|
|
38
|
+
export declare const operationEnrichments: v.GenericSchema<OperationEnrichments>;
|
|
126
39
|
export type OperationEnrichments = {
|
|
127
40
|
table?: TableItem;
|
|
128
41
|
form?: FormItem;
|
|
129
42
|
input?: InputItem;
|
|
130
43
|
};
|
|
131
|
-
export declare const methodEnrichments: v.
|
|
132
|
-
readonly table: v.OptionalSchema<v.ObjectSchema<{
|
|
133
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
135
|
-
readonly columns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
136
|
-
readonly id: v.StringSchema<undefined>;
|
|
137
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
138
|
-
readonly formatter: v.ObjectSchema<{
|
|
139
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
140
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
141
|
-
}, undefined>;
|
|
142
|
-
readonly label: v.StringSchema<undefined>;
|
|
143
|
-
}, undefined>, undefined>, undefined>;
|
|
144
|
-
}, undefined>, undefined>;
|
|
145
|
-
readonly form: v.OptionalSchema<v.ObjectSchema<{
|
|
146
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
147
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
148
|
-
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
149
|
-
readonly id: v.StringSchema<undefined>;
|
|
150
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
151
|
-
readonly input: v.ObjectSchema<{
|
|
152
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
153
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
154
|
-
}, undefined>;
|
|
155
|
-
readonly label: v.StringSchema<undefined>;
|
|
156
|
-
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
157
|
-
}, undefined>, undefined>, undefined>;
|
|
158
|
-
readonly submitLabel: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
159
|
-
}, undefined>, undefined>;
|
|
160
|
-
readonly input: v.OptionalSchema<v.ObjectSchema<{
|
|
161
|
-
readonly id: v.StringSchema<undefined>;
|
|
162
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
163
|
-
readonly formatter: v.ObjectSchema<{
|
|
164
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
165
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
166
|
-
}, undefined>;
|
|
167
|
-
}, undefined>, undefined>;
|
|
168
|
-
}, undefined>, undefined>;
|
|
44
|
+
export declare const methodEnrichments: v.GenericSchema<MethodEnrichments>;
|
|
169
45
|
export type MethodEnrichments = Record<string, OperationEnrichments>;
|
|
170
|
-
export declare const pathEnrichments: v.
|
|
171
|
-
readonly table: v.OptionalSchema<v.ObjectSchema<{
|
|
172
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
173
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
174
|
-
readonly columns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
175
|
-
readonly id: v.StringSchema<undefined>;
|
|
176
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
177
|
-
readonly formatter: v.ObjectSchema<{
|
|
178
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
179
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
180
|
-
}, undefined>;
|
|
181
|
-
readonly label: v.StringSchema<undefined>;
|
|
182
|
-
}, undefined>, undefined>, undefined>;
|
|
183
|
-
}, undefined>, undefined>;
|
|
184
|
-
readonly form: v.OptionalSchema<v.ObjectSchema<{
|
|
185
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
186
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
187
|
-
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
188
|
-
readonly id: v.StringSchema<undefined>;
|
|
189
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
190
|
-
readonly input: v.ObjectSchema<{
|
|
191
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
192
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
193
|
-
}, undefined>;
|
|
194
|
-
readonly label: v.StringSchema<undefined>;
|
|
195
|
-
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
196
|
-
}, undefined>, undefined>, undefined>;
|
|
197
|
-
readonly submitLabel: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
198
|
-
}, undefined>, undefined>;
|
|
199
|
-
readonly input: v.OptionalSchema<v.ObjectSchema<{
|
|
200
|
-
readonly id: v.StringSchema<undefined>;
|
|
201
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
202
|
-
readonly formatter: v.ObjectSchema<{
|
|
203
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
204
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
205
|
-
}, undefined>;
|
|
206
|
-
}, undefined>, undefined>;
|
|
207
|
-
}, undefined>, undefined>, undefined>;
|
|
46
|
+
export declare const pathEnrichments: v.GenericSchema<PathEnrichments>;
|
|
208
47
|
export type PathEnrichments = Record<string, MethodEnrichments>;
|
|
209
|
-
export declare const generatorEnrichments: v.
|
|
210
|
-
readonly table: v.OptionalSchema<v.ObjectSchema<{
|
|
211
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
212
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
|
-
readonly columns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
214
|
-
readonly id: v.StringSchema<undefined>;
|
|
215
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
216
|
-
readonly formatter: v.ObjectSchema<{
|
|
217
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
218
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
219
|
-
}, undefined>;
|
|
220
|
-
readonly label: v.StringSchema<undefined>;
|
|
221
|
-
}, undefined>, undefined>, undefined>;
|
|
222
|
-
}, undefined>, undefined>;
|
|
223
|
-
readonly form: v.OptionalSchema<v.ObjectSchema<{
|
|
224
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
225
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
226
|
-
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
227
|
-
readonly id: v.StringSchema<undefined>;
|
|
228
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
-
readonly input: v.ObjectSchema<{
|
|
230
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
231
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
232
|
-
}, undefined>;
|
|
233
|
-
readonly label: v.StringSchema<undefined>;
|
|
234
|
-
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
235
|
-
}, undefined>, undefined>, undefined>;
|
|
236
|
-
readonly submitLabel: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
237
|
-
}, undefined>, undefined>;
|
|
238
|
-
readonly input: v.OptionalSchema<v.ObjectSchema<{
|
|
239
|
-
readonly id: v.StringSchema<undefined>;
|
|
240
|
-
readonly accessorPath: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
241
|
-
readonly formatter: v.ObjectSchema<{
|
|
242
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
243
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
244
|
-
}, undefined>;
|
|
245
|
-
}, undefined>, undefined>;
|
|
246
|
-
}, undefined>, undefined>, undefined>, undefined>;
|
|
48
|
+
export declare const generatorEnrichments: v.GenericSchema<GeneratorEnrichments>;
|
|
247
49
|
export type GeneratorEnrichments = Record<string, PathEnrichments>;
|
|
248
50
|
//# sourceMappingURL=Enrichments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enrichments.d.ts","sourceRoot":"","sources":["../../src/types/Enrichments.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"Enrichments.d.ts","sourceRoot":"","sources":["../../src/types/Enrichments.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACnE,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,aAAa,CAAC,aAAa,CAMvD,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,KAAK,EAAE,YAAY,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAK7C,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,aA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B,CAAyC,CAAA;AAEhH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA"}
|
|
@@ -7,19 +7,12 @@ export type ManifestEntry = {
|
|
|
7
7
|
characters: number;
|
|
8
8
|
destinationPath: string;
|
|
9
9
|
};
|
|
10
|
-
export declare const manifestEntry: v.
|
|
11
|
-
readonly lines: v.NumberSchema<undefined>;
|
|
12
|
-
readonly characters: v.NumberSchema<undefined>;
|
|
13
|
-
readonly destinationPath: v.StringSchema<undefined>;
|
|
14
|
-
}, undefined>;
|
|
10
|
+
export declare const manifestEntry: v.GenericSchema<ManifestEntry>;
|
|
15
11
|
export type PreviewItem = {
|
|
16
12
|
name: string;
|
|
17
13
|
exportPath: string;
|
|
18
14
|
};
|
|
19
|
-
export declare const previewItem: v.
|
|
20
|
-
readonly name: v.StringSchema<undefined>;
|
|
21
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
22
|
-
}, undefined>;
|
|
15
|
+
export declare const previewItem: v.GenericSchema<PreviewItem>;
|
|
23
16
|
export type ManifestContent = {
|
|
24
17
|
deploymentId: string;
|
|
25
18
|
traceId: string;
|
|
@@ -32,54 +25,5 @@ export type ManifestContent = {
|
|
|
32
25
|
startAt: number;
|
|
33
26
|
endAt: number;
|
|
34
27
|
};
|
|
35
|
-
export declare const manifestContent: v.
|
|
36
|
-
readonly deploymentId: v.StringSchema<undefined>;
|
|
37
|
-
readonly traceId: v.StringSchema<undefined>;
|
|
38
|
-
readonly spanId: v.StringSchema<undefined>;
|
|
39
|
-
readonly region: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
-
readonly files: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
41
|
-
readonly lines: v.NumberSchema<undefined>;
|
|
42
|
-
readonly characters: v.NumberSchema<undefined>;
|
|
43
|
-
readonly destinationPath: v.StringSchema<undefined>;
|
|
44
|
-
}, undefined>, undefined>;
|
|
45
|
-
readonly previews: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
46
|
-
readonly module: v.ObjectSchema<{
|
|
47
|
-
readonly name: v.StringSchema<undefined>;
|
|
48
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
49
|
-
readonly group: v.PicklistSchema<["forms", "tables", "inputs"], undefined>;
|
|
50
|
-
}, undefined>;
|
|
51
|
-
readonly source: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
52
|
-
readonly type: v.LiteralSchema<"operation", undefined>;
|
|
53
|
-
readonly generatorId: v.StringSchema<undefined>;
|
|
54
|
-
readonly operationPath: v.StringSchema<undefined>;
|
|
55
|
-
readonly operationMethod: v.UnionSchema<[v.LiteralSchema<"get", undefined>, v.LiteralSchema<"put", undefined>, v.LiteralSchema<"post", undefined>, v.LiteralSchema<"delete", undefined>, v.LiteralSchema<"options", undefined>, v.LiteralSchema<"head", undefined>, v.LiteralSchema<"patch", undefined>], undefined>;
|
|
56
|
-
}, undefined>, v.ObjectSchema<{
|
|
57
|
-
readonly type: v.LiteralSchema<"model", undefined>;
|
|
58
|
-
readonly generatorId: v.StringSchema<undefined>;
|
|
59
|
-
readonly refName: v.StringSchema<undefined>;
|
|
60
|
-
}, undefined>], undefined>;
|
|
61
|
-
}, undefined>, undefined>, undefined>;
|
|
62
|
-
readonly mappings: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
63
|
-
readonly module: v.ObjectSchema<{
|
|
64
|
-
readonly name: v.StringSchema<undefined>;
|
|
65
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
66
|
-
readonly group: v.PicklistSchema<["forms", "tables", "inputs"], undefined>;
|
|
67
|
-
readonly itemType: v.PicklistSchema<["input", "formatter"], undefined>;
|
|
68
|
-
readonly schema: v.StringSchema<undefined>;
|
|
69
|
-
}, undefined>;
|
|
70
|
-
readonly source: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
71
|
-
readonly type: v.LiteralSchema<"operation", undefined>;
|
|
72
|
-
readonly generatorId: v.StringSchema<undefined>;
|
|
73
|
-
readonly operationPath: v.StringSchema<undefined>;
|
|
74
|
-
readonly operationMethod: v.UnionSchema<[v.LiteralSchema<"get", undefined>, v.LiteralSchema<"put", undefined>, v.LiteralSchema<"post", undefined>, v.LiteralSchema<"delete", undefined>, v.LiteralSchema<"options", undefined>, v.LiteralSchema<"head", undefined>, v.LiteralSchema<"patch", undefined>], undefined>;
|
|
75
|
-
}, undefined>, v.ObjectSchema<{
|
|
76
|
-
readonly type: v.LiteralSchema<"model", undefined>;
|
|
77
|
-
readonly generatorId: v.StringSchema<undefined>;
|
|
78
|
-
readonly refName: v.StringSchema<undefined>;
|
|
79
|
-
}, undefined>], undefined>;
|
|
80
|
-
}, undefined>, undefined>, undefined>, undefined>;
|
|
81
|
-
readonly results: v.GenericSchema<ResultsItem>;
|
|
82
|
-
readonly startAt: v.NumberSchema<undefined>;
|
|
83
|
-
readonly endAt: v.NumberSchema<undefined>;
|
|
84
|
-
}, undefined>;
|
|
28
|
+
export declare const manifestContent: v.GenericSchema<ManifestContent>;
|
|
85
29
|
//# sourceMappingURL=Manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../src/types/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAW,KAAK,OAAO,EAAE,KAAK,OAAO,EAAW,MAAM,cAAc,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,aAAa
|
|
1
|
+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/script/types/Method.d.ts
CHANGED
|
@@ -2,8 +2,17 @@ import "../_dnt.polyfills.js";
|
|
|
2
2
|
import * as v from 'valibot';
|
|
3
3
|
export declare const methodValues: readonly ["get", "put", "post", "delete", "options", "head", "patch", "trace"];
|
|
4
4
|
export declare const methodValuesNoTrace: string[];
|
|
5
|
-
export declare const method: v.UnionSchema<[
|
|
5
|
+
export declare const method: v.UnionSchema<[
|
|
6
|
+
v.LiteralSchema<'get', undefined>,
|
|
7
|
+
v.LiteralSchema<'post', undefined>,
|
|
8
|
+
v.LiteralSchema<'put', undefined>,
|
|
9
|
+
v.LiteralSchema<'patch', undefined>,
|
|
10
|
+
v.LiteralSchema<'delete', undefined>,
|
|
11
|
+
v.LiteralSchema<'head', undefined>,
|
|
12
|
+
v.LiteralSchema<'options', undefined>,
|
|
13
|
+
v.LiteralSchema<'trace', undefined>
|
|
14
|
+
], undefined>;
|
|
6
15
|
export type Method = 'get' | 'put' | 'post' | 'delete' | 'options' | 'head' | 'patch' | 'trace';
|
|
7
|
-
export declare const methods: v.ArraySchema<
|
|
16
|
+
export declare const methods: v.ArraySchema<typeof method, undefined>;
|
|
8
17
|
export declare const isMethod: (arg: unknown) => arg is Method;
|
|
9
18
|
//# sourceMappingURL=Method.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Method.d.ts","sourceRoot":"","sources":["../../src/types/Method.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY,gFASf,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAA+D,CAAA;AAE/F,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Method.d.ts","sourceRoot":"","sources":["../../src/types/Method.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY,gFASf,CAAA;AAEV,eAAO,MAAM,mBAAmB,UAA+D,CAAA;AAE/F,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,WAAW,CAChC;IACE,CAAC,CAAC,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC;IACjC,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC;IAClC,CAAC,CAAC,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC;IACjC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC;IACnC,CAAC,CAAC,aAAa,CAAC,QAAQ,EAAE,SAAS,CAAC;IACpC,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC;IAClC,CAAC,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC;IACrC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC;CACpC,EACD,SAAS,CAUT,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;AAI/F,eAAO,MAAM,OAAO,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,EAAE,SAAS,CAAmB,CAAA;AAE/E,eAAO,MAAM,QAAQ,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,MAE9C,CAAA"}
|
package/script/types/Method.js
CHANGED
|
@@ -49,12 +49,13 @@ exports.methodValues = [
|
|
|
49
49
|
exports.methodValuesNoTrace = ['get', 'put', 'post', 'delete', 'options', 'head', 'patch'];
|
|
50
50
|
exports.method = v.union([
|
|
51
51
|
v.literal('get'),
|
|
52
|
-
v.literal('put'),
|
|
53
52
|
v.literal('post'),
|
|
53
|
+
v.literal('put'),
|
|
54
|
+
v.literal('patch'),
|
|
54
55
|
v.literal('delete'),
|
|
55
|
-
v.literal('options'),
|
|
56
56
|
v.literal('head'),
|
|
57
|
-
v.literal('
|
|
57
|
+
v.literal('options'),
|
|
58
|
+
v.literal('trace')
|
|
58
59
|
]);
|
|
59
60
|
exports.methods = v.array(exports.method);
|
|
60
61
|
const isMethod = (arg) => {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import * as v from 'valibot';
|
|
3
|
-
export declare const moduleExport: v.
|
|
4
|
-
readonly exportName: v.StringSchema<undefined>;
|
|
5
|
-
readonly exportPath: v.StringSchema<undefined>;
|
|
6
|
-
}, undefined>;
|
|
3
|
+
export declare const moduleExport: v.GenericSchema<ModuleExport>;
|
|
7
4
|
export type ModuleExport = {
|
|
8
5
|
exportName: string;
|
|
9
6
|
exportPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleExport.d.ts","sourceRoot":"","sources":["../../src/types/ModuleExport.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"ModuleExport.d.ts","sourceRoot":"","sources":["../../src/types/ModuleExport.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,aAAa,CAAC,YAAY,CAGrD,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA"}
|
|
@@ -24,28 +24,5 @@ export type PrettierConfigType = {
|
|
|
24
24
|
embeddedLanguageFormatting?: 'auto' | 'off';
|
|
25
25
|
singleAttributePerLine?: boolean;
|
|
26
26
|
};
|
|
27
|
-
export declare const prettierConfigType: v.
|
|
28
|
-
readonly printWidth: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
29
|
-
readonly tabWidth: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
30
|
-
readonly useTabs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
31
|
-
readonly semi: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
32
|
-
readonly singleQuote: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
33
|
-
readonly quoteProps: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"as-needed", undefined>, v.LiteralSchema<"consistent", undefined>, v.LiteralSchema<"preserve", undefined>], undefined>, undefined>;
|
|
34
|
-
readonly jsxSingleQuote: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
35
|
-
readonly trailingComma: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"none", undefined>, v.LiteralSchema<"es5", undefined>, v.LiteralSchema<"all", undefined>], undefined>, undefined>;
|
|
36
|
-
readonly bracketSameLine: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
37
|
-
readonly bracketSpacing: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
38
|
-
readonly jsxBracketSameLine: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
39
|
-
readonly arrowParens: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"avoid", undefined>, v.LiteralSchema<"always", undefined>], undefined>, undefined>;
|
|
40
|
-
readonly rangeStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
41
|
-
readonly rangeEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
42
|
-
readonly requirePragma: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
-
readonly insertPragma: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
44
|
-
readonly proseWrap: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"always", undefined>, v.LiteralSchema<"never", undefined>, v.LiteralSchema<"preserve", undefined>], undefined>, undefined>;
|
|
45
|
-
readonly htmlWhitespaceSensitivity: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"css", undefined>, v.LiteralSchema<"strict", undefined>, v.LiteralSchema<"ignore", undefined>], undefined>, undefined>;
|
|
46
|
-
readonly vueIndentScriptAndStyle: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
47
|
-
readonly endOfLine: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"auto", undefined>, v.LiteralSchema<"lf", undefined>, v.LiteralSchema<"crlf", undefined>, v.LiteralSchema<"cr", undefined>], undefined>, undefined>;
|
|
48
|
-
readonly embeddedLanguageFormatting: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"auto", undefined>, v.LiteralSchema<"off", undefined>], undefined>, undefined>;
|
|
49
|
-
readonly singleAttributePerLine: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
50
|
-
}, undefined>;
|
|
27
|
+
export declare const prettierConfigType: v.GenericSchema<PrettierConfigType>;
|
|
51
28
|
//# sourceMappingURL=PrettierConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrettierConfig.d.ts","sourceRoot":"","sources":["../../src/types/PrettierConfig.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;IACpD,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAA;IACtC,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;I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