@skmtc/core 0.0.560 → 0.0.561
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 +3 -3
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +4 -4
- package/esm/context/GenerateContext.d.ts +4 -4
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +34 -19
- package/esm/dsl/model/ModelInsertable.d.ts +10 -3
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.d.ts +2 -9
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.js +0 -18
- package/esm/dsl/operation/OperationInsertable.d.ts +9 -3
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.d.ts +3 -11
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.js +1 -32
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/esm/run/toEnrichments.d.ts +2 -2
- package/esm/run/toEnrichments.d.ts.map +1 -1
- package/esm/run/toEnrichments.js +1 -1
- package/esm/run/toSettings.d.ts +2 -2
- package/esm/run/toSettings.d.ts.map +1 -1
- package/esm/run/transform.d.ts +3 -3
- package/esm/run/transform.d.ts.map +1 -1
- package/esm/run/transform.js +2 -2
- package/esm/types/GeneratorType.d.ts +5 -5
- package/esm/types/GeneratorType.d.ts.map +1 -1
- package/esm/types/SchemaItem.d.ts +8 -0
- package/esm/types/SchemaItem.d.ts.map +1 -0
- package/esm/types/SchemaItem.js +1 -0
- package/package.json +5 -1
- package/script/context/CoreContext.d.ts +3 -3
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +4 -4
- package/script/context/GenerateContext.d.ts +4 -4
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +34 -19
- package/script/dsl/model/ModelInsertable.d.ts +10 -3
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelInsertable.d.ts +2 -9
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelInsertable.js +0 -18
- package/script/dsl/operation/OperationInsertable.d.ts +9 -3
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationInsertable.d.ts +3 -11
- package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationInsertable.js +1 -32
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
- package/script/run/toEnrichments.d.ts +2 -2
- package/script/run/toEnrichments.d.ts.map +1 -1
- package/script/run/toEnrichments.js +1 -1
- package/script/run/toSettings.d.ts +2 -2
- package/script/run/toSettings.d.ts.map +1 -1
- package/script/run/transform.d.ts +3 -3
- package/script/run/transform.d.ts.map +1 -1
- package/script/run/transform.js +2 -2
- package/script/types/GeneratorType.d.ts +5 -5
- package/script/types/GeneratorType.d.ts.map +1 -1
- package/script/types/SchemaItem.d.ts +8 -0
- package/script/types/SchemaItem.d.ts.map +1 -0
- package/script/types/SchemaItem.js +3 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { OasDocument } from '../oas/document/Document.js';
|
|
2
2
|
import type { ClientSettings, ClientGeneratorSettings } from '../types/Settings.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { GeneratorConfig } from '../types/GeneratorType.js';
|
|
4
4
|
type ToSettingsArgs<EnrichmentType> = {
|
|
5
|
-
generators:
|
|
5
|
+
generators: GeneratorConfig<EnrichmentType>[];
|
|
6
6
|
clientSettings: ClientSettings | undefined;
|
|
7
7
|
defaultSelected: boolean;
|
|
8
8
|
oasDocument: OasDocument;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toSettings.d.ts","sourceRoot":"","sources":["../../src/run/toSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAmB,MAAM,sBAAsB,CAAA;AACpG,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toSettings.d.ts","sourceRoot":"","sources":["../../src/run/toSettings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAmB,MAAM,sBAAsB,CAAA;AACpG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,KAAK,cAAc,CAAC,cAAc,IAAI;IACpC,UAAU,EAAE,eAAe,CAAC,cAAc,CAAC,EAAE,CAAA;IAC7C,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;IAC1C,eAAe,EAAE,OAAO,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,cAAc,gEAKtC,cAAc,CAAC,cAAc,CAAC,8BAuChC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ClientSettings } from '../types/Settings.js';
|
|
2
2
|
import type { PrettierConfigType } from '../types/prettierConfig.js';
|
|
3
3
|
import type { ManifestContent } from '../types/Manifest.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { GeneratorsMapContainer } from '../types/GeneratorType.js';
|
|
5
5
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
6
6
|
type TransformArgs = {
|
|
7
7
|
traceId: string;
|
|
@@ -10,10 +10,10 @@ type TransformArgs = {
|
|
|
10
10
|
settings: ClientSettings | undefined;
|
|
11
11
|
prettier?: PrettierConfigType;
|
|
12
12
|
logsPath?: string;
|
|
13
|
-
|
|
13
|
+
toGeneratorConfigMap: <EnrichmentType>() => GeneratorsMapContainer<EnrichmentType>;
|
|
14
14
|
startAt: number;
|
|
15
15
|
};
|
|
16
|
-
export declare const transform: ({ traceId, spanId, documentObject, settings, prettier,
|
|
16
|
+
export declare const transform: ({ traceId, spanId, documentObject, settings, prettier, toGeneratorConfigMap, logsPath, startAt }: TransformArgs) => {
|
|
17
17
|
artifacts: Record<string, string>;
|
|
18
18
|
manifest: ManifestContent;
|
|
19
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/run/transform.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,
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../src/run/transform.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,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,SAAS,CAAC,QAAQ,CAAA;IAClC,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,CAAC,cAAc,OAAO,sBAAsB,CAAC,cAAc,CAAC,CAAA;IAClF,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,SAAS,qGASnB,aAAa;;;CAuBf,CAAA"}
|
package/script/run/transform.js
CHANGED
|
@@ -26,11 +26,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.transform = void 0;
|
|
27
27
|
const dntShim = __importStar(require("../_dnt.shims.js"));
|
|
28
28
|
const CoreContext_js_1 = require("../context/CoreContext.js");
|
|
29
|
-
const transform = ({ traceId, spanId, documentObject, settings, prettier,
|
|
29
|
+
const transform = ({ traceId, spanId, documentObject, settings, prettier, toGeneratorConfigMap, logsPath, startAt }) => {
|
|
30
30
|
const context = new CoreContext_js_1.CoreContext({ spanId, logsPath });
|
|
31
31
|
const { artifacts, files, previews, results } = context.transform({
|
|
32
32
|
settings,
|
|
33
|
-
|
|
33
|
+
toGeneratorConfigMap,
|
|
34
34
|
prettier,
|
|
35
35
|
documentObject
|
|
36
36
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type GeneratorsMap<G extends GeneratorType<EnrichmentType>, EnrichmentType> = {
|
|
1
|
+
import type { OperationConfig } from '../dsl/operation/OperationInsertable.js';
|
|
2
|
+
import type { ModelConfig } from '../dsl/model/ModelInsertable.js';
|
|
3
|
+
export type GeneratorConfig<EnrichmentType> = OperationConfig<EnrichmentType> | ModelConfig<EnrichmentType>;
|
|
4
|
+
export type GeneratorsMap<G extends GeneratorConfig<EnrichmentType>, EnrichmentType> = {
|
|
6
5
|
[K in keyof G]: G[K];
|
|
7
6
|
};
|
|
7
|
+
export type GeneratorsMapContainer<EnrichmentType> = GeneratorsMap<GeneratorConfig<EnrichmentType>, EnrichmentType>;
|
|
8
8
|
//# sourceMappingURL=GeneratorType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneratorType.d.ts","sourceRoot":"","sources":["../../src/types/GeneratorType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GeneratorType.d.ts","sourceRoot":"","sources":["../../src/types/GeneratorType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAElE,MAAM,MAAM,eAAe,CAAC,cAAc,IACtC,eAAe,CAAC,cAAc,CAAC,GAC/B,WAAW,CAAC,cAAc,CAAC,CAAA;AAE/B,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,eAAe,CAAC,cAAc,CAAC,EAAE,cAAc,IAAI;KACpF,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,CAAC,cAAc,IAAI,aAAa,CAChE,eAAe,CAAC,cAAc,CAAC,EAC/B,cAAc,CACf,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../_dnt.polyfills.js";
|
|
2
|
+
import type { OpenAPIV3 } from 'openapi-types';
|
|
3
|
+
export type SchemaItem = {
|
|
4
|
+
schema: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject;
|
|
5
|
+
name: string;
|
|
6
|
+
type: 'list-item' | 'form-item';
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=SchemaItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaItem.d.ts","sourceRoot":"","sources":["../../src/types/SchemaItem.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,eAAe,CAAA;IAC1D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,GAAG,WAAW,CAAA;CAChC,CAAA"}
|