@skmtc/core 0.0.797 → 0.0.798
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/context/CoreContext.d.ts +10 -1
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.d.ts +180 -0
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +25 -0
- package/esm/context/ParseContext.d.ts +6 -0
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +6 -0
- package/esm/oas/example/toExamplesV3.d.ts +39 -0
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +29 -0
- package/esm/oas/object/Object.d.ts +6 -0
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +6 -0
- package/esm/oas/operation/Operation.d.ts +34 -0
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +14 -0
- package/esm/oas/parameter/Parameter.d.ts +3 -0
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +3 -0
- package/esm/oas/ref/ref-types.d.ts +42 -0
- package/esm/oas/ref/ref-types.d.ts.map +1 -1
- package/esm/oas/ref/ref-types.js +9 -0
- package/esm/oas/securitySchemes/security-scheme-types.d.ts +63 -0
- package/esm/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
- package/esm/oas/securitySchemes/security-scheme-types.js +15 -0
- package/esm/types/Results.d.ts +32 -0
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Results.js +12 -0
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +10 -1
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/GenerateContext.d.ts +180 -0
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +25 -0
- package/script/context/ParseContext.d.ts +6 -0
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +6 -0
- package/script/oas/example/toExamplesV3.d.ts +39 -0
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +29 -0
- package/script/oas/object/Object.d.ts +6 -0
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +6 -0
- package/script/oas/operation/Operation.d.ts +34 -0
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +14 -0
- package/script/oas/parameter/Parameter.d.ts +3 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +3 -0
- package/script/oas/ref/ref-types.d.ts +42 -0
- package/script/oas/ref/ref-types.d.ts.map +1 -1
- package/script/oas/ref/ref-types.js +9 -0
- package/script/oas/securitySchemes/security-scheme-types.d.ts +63 -0
- package/script/oas/securitySchemes/security-scheme-types.d.ts.map +1 -1
- package/script/oas/securitySchemes/security-scheme-types.js +15 -0
- package/script/types/Results.d.ts +32 -0
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Results.js +12 -0
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
import "../_dnt.polyfills.js";
|
|
2
2
|
import * as v from 'valibot';
|
|
3
|
+
/**
|
|
4
|
+
* Type representing the possible outcomes of SKMTC processing operations.
|
|
5
|
+
*
|
|
6
|
+
* Used throughout the SKMTC pipeline to track and categorize the results
|
|
7
|
+
* of parsing, generation, and rendering operations.
|
|
8
|
+
*/
|
|
3
9
|
export type ResultType = 'success' | 'warning' | 'error' | 'skipped' | 'notSupported';
|
|
10
|
+
/**
|
|
11
|
+
* Type representing result types that indicate issues or problems.
|
|
12
|
+
*
|
|
13
|
+
* Used for filtering and handling results that require attention,
|
|
14
|
+
* excluding successful, skipped, or unsupported operations.
|
|
15
|
+
*/
|
|
4
16
|
export type WarningError = 'warning' | 'error';
|
|
17
|
+
/**
|
|
18
|
+
* Valibot schema for validating ResultType values.
|
|
19
|
+
*
|
|
20
|
+
* Used for runtime validation of result type values throughout
|
|
21
|
+
* the SKMTC pipeline to ensure type safety and data integrity.
|
|
22
|
+
*/
|
|
5
23
|
export declare const resultType: v.GenericSchema<ResultType>;
|
|
24
|
+
/**
|
|
25
|
+
* Interface representing a hierarchical results structure.
|
|
26
|
+
*
|
|
27
|
+
* Allows for nested result tracking where each key can contain
|
|
28
|
+
* a result type, another results item (for nesting), or an array
|
|
29
|
+
* of results items for collections.
|
|
30
|
+
*/
|
|
6
31
|
export interface ResultsItem {
|
|
32
|
+
/** Dynamic key-value pairs for hierarchical result tracking */
|
|
7
33
|
[key: string]: ResultType | ResultsItem | Array<ResultsItem | null>;
|
|
8
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Valibot schema for validating ResultsItem structures.
|
|
37
|
+
*
|
|
38
|
+
* Uses lazy evaluation to handle recursive result item validation,
|
|
39
|
+
* supporting nested hierarchical result structures.
|
|
40
|
+
*/
|
|
9
41
|
export declare const resultsItem: v.GenericSchema<ResultsItem>;
|
|
10
42
|
//# sourceMappingURL=Results.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF,MAAM,WAAW,WAAW;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
|
|
1
|
+
{"version":3,"file":"Results.d.ts","sourceRoot":"","sources":["../../src/types/Results.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,CAAA;AAErF;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,UAAU,CAMjD,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CACpE;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,WAAW,CAGpD,CAAA"}
|
package/script/types/Results.js
CHANGED
|
@@ -36,6 +36,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.resultsItem = exports.resultType = void 0;
|
|
37
37
|
require("../_dnt.polyfills.js");
|
|
38
38
|
const v = __importStar(require("valibot"));
|
|
39
|
+
/**
|
|
40
|
+
* Valibot schema for validating ResultType values.
|
|
41
|
+
*
|
|
42
|
+
* Used for runtime validation of result type values throughout
|
|
43
|
+
* the SKMTC pipeline to ensure type safety and data integrity.
|
|
44
|
+
*/
|
|
39
45
|
exports.resultType = v.union([
|
|
40
46
|
v.literal('success'),
|
|
41
47
|
v.literal('warning'),
|
|
@@ -43,4 +49,10 @@ exports.resultType = v.union([
|
|
|
43
49
|
v.literal('skipped'),
|
|
44
50
|
v.literal('notSupported')
|
|
45
51
|
]);
|
|
52
|
+
/**
|
|
53
|
+
* Valibot schema for validating ResultsItem structures.
|
|
54
|
+
*
|
|
55
|
+
* Uses lazy evaluation to handle recursive result item validation,
|
|
56
|
+
* supporting nested hierarchical result structures.
|
|
57
|
+
*/
|
|
46
58
|
exports.resultsItem = v.record(v.string(), v.lazy(() => v.union([exports.resultsItem, exports.resultType, v.array(v.lazy(() => exports.resultsItem))])));
|