@skmtc/core 0.0.307 → 0.0.308
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 -27
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +20 -201
- package/esm/context/GenerateContext.d.ts +11 -14
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +48 -64
- package/esm/context/RenderContext.d.ts +5 -11
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +7 -38
- package/esm/context/ResultsHandler.d.ts.map +1 -1
- package/esm/context/ResultsHandler.js +0 -1
- package/esm/context/types.d.ts +0 -5
- package/esm/context/types.d.ts.map +1 -1
- package/esm/dsl/Definition.d.ts +2 -2
- package/esm/dsl/Definition.d.ts.map +1 -1
- package/esm/dsl/ModelDriver.d.ts +3 -3
- package/esm/dsl/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/ModelInsertable.d.ts +3 -3
- package/esm/dsl/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/OperationDriver.d.ts +3 -3
- package/esm/dsl/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/OperationInsertable.d.ts +3 -3
- package/esm/dsl/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/ValueBase.d.ts +3 -3
- package/esm/dsl/ValueBase.d.ts.map +1 -1
- package/esm/dsl/ValueBase.js +1 -3
- package/esm/dsl/base.d.ts +3 -4
- package/esm/dsl/base.d.ts.map +1 -1
- package/esm/dsl/withConfig.d.ts +7 -7
- package/esm/dsl/withConfig.d.ts.map +1 -1
- package/esm/generate/generate.d.ts +0 -1
- package/esm/generate/generate.d.ts.map +1 -1
- package/esm/generate/generate.js +6 -6
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.js +1 -0
- package/esm/server/createServer.d.ts.map +1 -1
- package/esm/server/createServer.js +3 -7
- package/esm/types/CustomValue.d.ts +2 -2
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/typescript/PathParams.d.ts +3 -3
- package/esm/typescript/PathParams.d.ts.map +1 -1
- package/esm/typescript/ReactRouterPathParams.d.ts +2 -2
- package/esm/typescript/ReactRouterPathParams.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +3 -27
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +20 -201
- package/script/context/GenerateContext.d.ts +11 -14
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +48 -64
- package/script/context/RenderContext.d.ts +5 -11
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +7 -38
- package/script/context/ResultsHandler.d.ts.map +1 -1
- package/script/context/ResultsHandler.js +0 -1
- package/script/context/types.d.ts +0 -5
- package/script/context/types.d.ts.map +1 -1
- package/script/dsl/Definition.d.ts +2 -2
- package/script/dsl/Definition.d.ts.map +1 -1
- package/script/dsl/ModelDriver.d.ts +3 -3
- package/script/dsl/ModelDriver.d.ts.map +1 -1
- package/script/dsl/ModelInsertable.d.ts +3 -3
- package/script/dsl/ModelInsertable.d.ts.map +1 -1
- package/script/dsl/OperationDriver.d.ts +3 -3
- package/script/dsl/OperationDriver.d.ts.map +1 -1
- package/script/dsl/OperationInsertable.d.ts +3 -3
- package/script/dsl/OperationInsertable.d.ts.map +1 -1
- package/script/dsl/ValueBase.d.ts +3 -3
- package/script/dsl/ValueBase.d.ts.map +1 -1
- package/script/dsl/ValueBase.js +1 -3
- package/script/dsl/base.d.ts +3 -4
- package/script/dsl/base.d.ts.map +1 -1
- package/script/dsl/withConfig.d.ts +7 -7
- package/script/dsl/withConfig.d.ts.map +1 -1
- package/script/generate/generate.d.ts +0 -1
- package/script/generate/generate.d.ts.map +1 -1
- package/script/generate/generate.js +6 -6
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.js +1 -0
- package/script/server/createServer.d.ts.map +1 -1
- package/script/server/createServer.js +3 -7
- package/script/types/CustomValue.d.ts +2 -2
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/typescript/PathParams.d.ts +3 -3
- package/script/typescript/PathParams.d.ts.map +1 -1
- package/script/typescript/ReactRouterPathParams.d.ts +2 -2
- package/script/typescript/ReactRouterPathParams.d.ts.map +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { OperationInsertable } from './OperationInsertable.js';
|
|
2
|
-
import type { CoreContext } from '../context/CoreContext.js';
|
|
3
2
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
4
3
|
import { ContentSettings } from './ContentSettings.js';
|
|
5
4
|
import type { GeneratedDefintion, GenerationType } from '../types/GeneratedValue.js';
|
|
6
5
|
import type { GeneratedValue } from '../types/GeneratedValue.js';
|
|
6
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
7
7
|
type CreateOperationArgs<V extends GeneratedValue, T extends GenerationType> = {
|
|
8
|
-
context:
|
|
8
|
+
context: GenerateContext;
|
|
9
9
|
insertable: OperationInsertable<V>;
|
|
10
10
|
operation: OasOperation;
|
|
11
11
|
generation?: T;
|
|
12
12
|
destinationPath?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare class OperationDriver<V extends GeneratedValue, T extends GenerationType> {
|
|
15
|
-
context:
|
|
15
|
+
context: GenerateContext;
|
|
16
16
|
insertable: OperationInsertable<V>;
|
|
17
17
|
operation: OasOperation;
|
|
18
18
|
settings: ContentSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationDriver.d.ts","sourceRoot":"","sources":["../../src/dsl/OperationDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"OperationDriver.d.ts","sourceRoot":"","sources":["../../src/dsl/OperationDriver.ts"],"names":[],"mappings":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AoB9B,OAAO,CAAC,gBAAgB;CAoBzB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CoreContext } from '../context/CoreContext.js';
|
|
2
1
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
3
2
|
import type { ContentSettings } from './ContentSettings.js';
|
|
4
3
|
import type { BaseSettings } from '../types/Settings.js';
|
|
5
4
|
import type { EntityType } from './EntityType.js';
|
|
5
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
6
6
|
type CreateOperationFnArgs = {
|
|
7
|
-
context:
|
|
7
|
+
context: GenerateContext;
|
|
8
8
|
settings: ContentSettings;
|
|
9
9
|
operation: OasOperation;
|
|
10
10
|
};
|
|
@@ -24,7 +24,7 @@ export type WithTransformOperation = {
|
|
|
24
24
|
transformOperation: (operation: OasOperation) => void;
|
|
25
25
|
};
|
|
26
26
|
export type OperationGenerator = {
|
|
27
|
-
new (context:
|
|
27
|
+
new (context: GenerateContext): WithTransformOperation;
|
|
28
28
|
id: string;
|
|
29
29
|
type: 'operation';
|
|
30
30
|
pinnable?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationInsertable.d.ts","sourceRoot":"","sources":["../../src/dsl/OperationInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"OperationInsertable.d.ts","sourceRoot":"","sources":["../../src/dsl/OperationInsertable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EA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CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
2
|
import type { RegisterArgs } from '../context/GenerateContext.js';
|
|
3
3
|
import type { GeneratorKey } from '../types/GeneratorKeys.js';
|
|
4
4
|
type ValueBaseArgs = {
|
|
5
|
-
context:
|
|
5
|
+
context: GenerateContext;
|
|
6
6
|
generatorKey: GeneratorKey;
|
|
7
7
|
};
|
|
8
8
|
export declare class ValueBase {
|
|
9
|
-
context:
|
|
9
|
+
context: GenerateContext;
|
|
10
10
|
skipped: boolean;
|
|
11
11
|
generatorKey: GeneratorKey;
|
|
12
12
|
constructor({ context, generatorKey }: ValueBaseArgs);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueBase.d.ts","sourceRoot":"","sources":["../../src/dsl/ValueBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ValueBase.d.ts","sourceRoot":"","sources":["../../src/dsl/ValueBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,KAAK,aAAa,GAAG;IACnB,OAAO,EAAE,eAAe,CAAA;IACxB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,qBAAa,SAAS;IACpB,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,EAAE,OAAO,CAAQ;IACxB,YAAY,EAAE,YAAY,CAAA;gBAEd,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,aAAa;IAOpD,QAAQ,CAAC,IAAI,EAAE,YAAY;CAG5B"}
|
package/script/dsl/ValueBase.js
CHANGED
|
@@ -38,9 +38,7 @@ const proxyHandler = {
|
|
|
38
38
|
if (!target.generatorKey) {
|
|
39
39
|
throw new Error('generatorKey is required');
|
|
40
40
|
}
|
|
41
|
-
target.context.
|
|
42
|
-
generatorKey: target.generatorKey
|
|
43
|
-
});
|
|
41
|
+
target.context.callback(target.generatorKey);
|
|
44
42
|
return toString.apply(thisArg);
|
|
45
43
|
}
|
|
46
44
|
})
|
package/script/dsl/base.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import type { CoreContext } from '../context/CoreContext.js';
|
|
2
1
|
import type { OperationInsertable } from './OperationInsertable.js';
|
|
3
2
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
4
3
|
import type { ContentSettings } from './ContentSettings.js';
|
|
5
4
|
import type { ModelInsertable } from './ModelInsertable.js';
|
|
6
|
-
import type { RegisterArgs } from '../context/GenerateContext.js';
|
|
5
|
+
import type { GenerateContext, RegisterArgs } from '../context/GenerateContext.js';
|
|
7
6
|
import type { GeneratedValue } from '../types/GeneratedValue.js';
|
|
8
7
|
import type { GeneratorKey } from '../types/GeneratorKeys.js';
|
|
9
8
|
import { ValueBase } from './ValueBase.js';
|
|
10
9
|
import type { Definition } from './Definition.js';
|
|
11
10
|
import type { RefName } from '../types/RefName.js';
|
|
12
11
|
export type OperationBaseArgs = {
|
|
13
|
-
context:
|
|
12
|
+
context: GenerateContext;
|
|
14
13
|
settings: ContentSettings;
|
|
15
14
|
generatorKey: GeneratorKey;
|
|
16
15
|
operation: OasOperation;
|
|
@@ -33,7 +32,7 @@ export declare class OperationBase extends ValueBase {
|
|
|
33
32
|
register(args: Partial<RegisterArgs>): void;
|
|
34
33
|
}
|
|
35
34
|
export type ModelBaseArgs = {
|
|
36
|
-
context:
|
|
35
|
+
context: GenerateContext;
|
|
37
36
|
settings: ContentSettings;
|
|
38
37
|
generatorKey: GeneratorKey;
|
|
39
38
|
refName: RefName;
|
package/script/dsl/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","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Y,EACZ,QAAQ,EACR,SAAS,EACV,EAAE,iBAAiB;IAOpB,MAAM,CAAC,CAAC,SAAS,cAAc,EAC7B,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,GACrB;QAAE,QAAQ,EAAE,eAAe,CAAC;QAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;KAAE;IAY3D,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC;CAMrC;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,qBAAa,SAAU,SAAQ,SAAS;IACtC,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;gBACJ,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,aAAa;IAOvE,SAAS,CAAC,CAAC,SAAS,cAAc,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC;IAQ1D,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC;CAMrC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
2
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
3
3
|
import type { ContentSettings } from './ContentSettings.js';
|
|
4
4
|
import type { RefName } from '../types/RefName.js';
|
|
@@ -6,7 +6,7 @@ import { EntityType } from './EntityType.js';
|
|
|
6
6
|
import type { IsModelSelectedArgs, ToModelExportPathArgs, ToModelNameArgs } from './ModelInsertable.js';
|
|
7
7
|
import type { IsOperationSelectedArgs, ToOperationExportPathArgs, ToOperationNameArgs } from './OperationInsertable.js';
|
|
8
8
|
export type GeneratorConfigConstructor = {
|
|
9
|
-
context:
|
|
9
|
+
context: GenerateContext;
|
|
10
10
|
};
|
|
11
11
|
export type OperationGeneratorConfig = GeneratorConfig & OperationConfig & {
|
|
12
12
|
isSupported: (operation: OasOperation) => boolean;
|
|
@@ -23,7 +23,7 @@ export type OperationConfig = {
|
|
|
23
23
|
isSelected({ operation, baseSettings }: IsOperationSelectedArgs): boolean;
|
|
24
24
|
};
|
|
25
25
|
export type OperationInsertableArgs = {
|
|
26
|
-
context:
|
|
26
|
+
context: GenerateContext;
|
|
27
27
|
settings: ContentSettings;
|
|
28
28
|
operation: OasOperation;
|
|
29
29
|
};
|
|
@@ -42,7 +42,7 @@ export declare const toOperationInsertable: (config: OperationConfig) => {
|
|
|
42
42
|
definition: import("./Definition.js").Definition<V>;
|
|
43
43
|
};
|
|
44
44
|
register(args: Partial<import("../context/GenerateContext.js").RegisterArgs>): void;
|
|
45
|
-
context:
|
|
45
|
+
context: GenerateContext;
|
|
46
46
|
skipped: boolean;
|
|
47
47
|
generatorKey: import("../types/GeneratorKeys.js").GeneratorKey;
|
|
48
48
|
};
|
|
@@ -61,7 +61,7 @@ type ModelConfig = {
|
|
|
61
61
|
isSelected({ refName, baseSettings }: IsModelSelectedArgs): boolean;
|
|
62
62
|
};
|
|
63
63
|
export type ModelInsertableArgs = {
|
|
64
|
-
context:
|
|
64
|
+
context: GenerateContext;
|
|
65
65
|
settings: ContentSettings;
|
|
66
66
|
refName: RefName;
|
|
67
67
|
};
|
|
@@ -77,7 +77,7 @@ export declare const toModelInsertable: (config: ModelConfig) => {
|
|
|
77
77
|
refName: RefName;
|
|
78
78
|
}): void;
|
|
79
79
|
register(args: Partial<import("../context/GenerateContext.js").RegisterArgs>): void;
|
|
80
|
-
context:
|
|
80
|
+
context: GenerateContext;
|
|
81
81
|
skipped: boolean;
|
|
82
82
|
generatorKey: import("../types/GeneratorKeys.js").GeneratorKey;
|
|
83
83
|
};
|
|
@@ -99,7 +99,7 @@ export declare const toGeneratorBase: (config: GeneratorConfig & ({
|
|
|
99
99
|
type: "model";
|
|
100
100
|
})) => {
|
|
101
101
|
new ({ context }: GeneratorConfigConstructor): {
|
|
102
|
-
context:
|
|
102
|
+
context: GenerateContext;
|
|
103
103
|
};
|
|
104
104
|
id: string;
|
|
105
105
|
type: "operation" | "model";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withConfig.d.ts","sourceRoot":"","sources":["../../src/dsl/withConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"withConfig.d.ts","sourceRoot":"","sources":["../../src/dsl/withConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAK3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,0BAA0B,CAAA;AAGjC,MAAM,MAAM,0BAA0B,GAAG;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,CAAA;AACrE,MAAM,MAAM,wBAAwB,GAAG,eAAe,GACpD,eAAe,GAAG;IAAE,WAAW,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;CAAE,CAAA;AACzE,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAChD,WAAW,GAAG;IAAE,WAAW,EAAE,MAAM,IAAI,CAAA;CAAE,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,UAAU,CAAC,EAAE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A6BpE,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,eAAe,WAClB,eAAe,GACrB,CACI;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,WAAW,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;CAClD,GACD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CACpB;sBASwB,0BAA0B;iBAD1C,eAAe;;;;6BAXO,YAAY,KAAK,OAAO;;CAgB1D,CAAA"}
|
|
@@ -14,7 +14,6 @@ type GenerateArgs = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const generate: ({ traceId, spanId, schema, settings, prettier, generatorsMap, startAt }: GenerateArgs) => {
|
|
16
16
|
artifacts: Record<string, string>;
|
|
17
|
-
renderDependencies: Record<string, string[]>;
|
|
18
17
|
manifest: ManifestContent;
|
|
19
18
|
};
|
|
20
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/generate/generate.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,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,cAAc,CAAC,CAAA;IAClE,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,QAAQ,4EAQlB,YAAY
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/generate/generate.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,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,cAAc,CAAC,CAAA;IAClE,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,QAAQ,4EAQlB,YAAY;;;CAsBd,CAAA"}
|
|
@@ -28,7 +28,11 @@ const dntShim = __importStar(require("../_dnt.shims.js"));
|
|
|
28
28
|
const CoreContext_js_1 = require("../context/CoreContext.js");
|
|
29
29
|
const generate = ({ traceId, spanId, schema, settings, prettier, generatorsMap, startAt }) => {
|
|
30
30
|
const context = new CoreContext_js_1.CoreContext({ spanId, schema });
|
|
31
|
-
const { artifacts, files,
|
|
31
|
+
const { artifacts, files, pinnable, results } = context.transform({
|
|
32
|
+
settings,
|
|
33
|
+
generatorsMap,
|
|
34
|
+
prettier
|
|
35
|
+
});
|
|
32
36
|
const manifest = {
|
|
33
37
|
files,
|
|
34
38
|
pinnable,
|
|
@@ -40,10 +44,6 @@ const generate = ({ traceId, spanId, schema, settings, prettier, generatorsMap,
|
|
|
40
44
|
startAt,
|
|
41
45
|
endAt: Date.now()
|
|
42
46
|
};
|
|
43
|
-
return {
|
|
44
|
-
artifacts,
|
|
45
|
-
renderDependencies,
|
|
46
|
-
manifest
|
|
47
|
-
};
|
|
47
|
+
return { artifacts, manifest };
|
|
48
48
|
};
|
|
49
49
|
exports.generate = generate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toParameterV3.d.ts","sourceRoot":"","sources":["../../../src/oas/parameter/toParameterV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAQjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAK9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAI3C,KAAK,qBAAqB,GAAG;IAC3B,UAAU,EACN,CAAC,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,EAAE,GACzD,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,4BAG3B,qBAAqB,KACpB,CAAC,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,GACtC,
|
|
1
|
+
{"version":3,"file":"toParameterV3.d.ts","sourceRoot":"","sources":["../../../src/oas/parameter/toParameterV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAQjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAK9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAI3C,KAAK,qBAAqB,GAAG;IAC3B,UAAU,EACN,CAAC,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,EAAE,GACzD,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,iBAAiB,4BAG3B,qBAAqB,KACpB,CAAC,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,GACtC,SAWH,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,MAAM,CAChB,MAAM,EACN,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CACtD,CAAA;IACD,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,4BAGxB,kBAAkB,KAAG,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CASxE,CAAA;AAED,KAAK,0BAA0B,GAAG;IAChC,UAAU,EACN,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,GACrE,SAAS,CAAA;IACb,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,sBAAsB,4BAGhC,0BAA0B,KACzB,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,GAClD,SAMH,CAAA"}
|
|
@@ -15,6 +15,7 @@ const toParameterListV3 = ({ parameters, context }) => {
|
|
|
15
15
|
return undefined;
|
|
16
16
|
}
|
|
17
17
|
return parameters.map((parameter, index) => {
|
|
18
|
+
console.log('parameter index', index);
|
|
18
19
|
return (0, tracer_js_1.tracer)(context, `${index}`, () => toParameterV3({ parameter, context }));
|
|
19
20
|
});
|
|
20
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAiB/D,eAAO,MAAM,YAAY,eACX,CAAC,kBAAkB,GAAG,cAAc,CAAC,EAAE,KAClD,
|
|
1
|
+
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/server/createServer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAiB/D,eAAO,MAAM,YAAY,eACX,CAAC,kBAAkB,GAAG,cAAc,CAAC,EAAE,KAClD,IAuGF,CAAA"}
|
|
@@ -50,7 +50,7 @@ const createServer = (generators) => {
|
|
|
50
50
|
return Sentry.startSpan({ name: 'Generate' }, () => {
|
|
51
51
|
const generatorsMap = Object.fromEntries(generators.map(generator => [generator.id, generator]));
|
|
52
52
|
const { traceId, spanId } = span.spanContext();
|
|
53
|
-
const { artifacts, manifest
|
|
53
|
+
const { artifacts, manifest } = (0, generate_js_1.generate)({
|
|
54
54
|
traceId,
|
|
55
55
|
spanId,
|
|
56
56
|
startAt,
|
|
@@ -59,10 +59,9 @@ const createServer = (generators) => {
|
|
|
59
59
|
settings: clientSettings,
|
|
60
60
|
generatorsMap
|
|
61
61
|
});
|
|
62
|
-
return { artifacts, manifest
|
|
62
|
+
return { artifacts, manifest };
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
|
-
console.log('RESULT', JSON.stringify(result, null, 2).slice(0, 1000));
|
|
66
65
|
return c.json(result);
|
|
67
66
|
});
|
|
68
67
|
app.get('/generators', c => {
|
|
@@ -132,9 +131,6 @@ const toOperations = ({ generator, oasDocument, operationsSettings }) => {
|
|
|
132
131
|
}, {});
|
|
133
132
|
};
|
|
134
133
|
const toOasDocument = ({ schema, spanId }) => {
|
|
135
|
-
const context = new CoreContext_js_1.CoreContext({
|
|
136
|
-
spanId,
|
|
137
|
-
schema
|
|
138
|
-
});
|
|
134
|
+
const context = new CoreContext_js_1.CoreContext({ spanId, schema });
|
|
139
135
|
return context.parse();
|
|
140
136
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
2
|
import { ValueBase } from '../dsl/ValueBase.js';
|
|
3
3
|
import type { Stringable } from '../dsl/Stringable.js';
|
|
4
4
|
import type { GeneratorKey } from './GeneratorKeys.js';
|
|
5
5
|
type CreateArgs = {
|
|
6
|
-
context:
|
|
6
|
+
context: GenerateContext;
|
|
7
7
|
value: Stringable;
|
|
8
8
|
generatorKey: GeneratorKey;
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomValue.d.ts","sourceRoot":"","sources":["../../src/types/CustomValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"CustomValue.d.ts","sourceRoot":"","sources":["../../src/types/CustomValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,UAAU,CAAA;IACjB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,qBAAa,WAAY,SAAQ,SAAS;IACxC,IAAI,WAAoB;IACxB,KAAK,EAAE,UAAU,CAAA;gBAEL,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,UAAU;IAMxD,QAAQ,IAAI,MAAM;CAGnB;AAED,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,KAAK,IAAI,WAOvD,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
2
|
import { Definition } from '../dsl/Definition.js';
|
|
3
3
|
import type { TypeSystemObject } from '../types/TypeSystem.js';
|
|
4
4
|
import { FunctionParameter } from './FunctionParameter.js';
|
|
5
5
|
type ConstructorArgs = {
|
|
6
|
-
context:
|
|
6
|
+
context: GenerateContext;
|
|
7
7
|
argName?: string;
|
|
8
8
|
typeName: string;
|
|
9
9
|
typeValue: TypeSystemObject;
|
|
10
10
|
pathTemplate: string;
|
|
11
11
|
};
|
|
12
12
|
export declare class PathParams {
|
|
13
|
-
context:
|
|
13
|
+
context: GenerateContext;
|
|
14
14
|
typeDefinition: Definition<TypeSystemObject>;
|
|
15
15
|
parameter: FunctionParameter;
|
|
16
16
|
path: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/PathParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/PathParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG1D,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,gBAAgB,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,qBAAa,UAAU;IACrB,OAAO,EAAE,eAAe,CAAA;IACxB,cAAc,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAC5C,SAAS,EAAE,iBAAiB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;gBAEA,EACV,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,EACT,YAAY,EACb,EAAE,eAAe;CAwBnB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ValueBase } from '../dsl/ValueBase.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
3
3
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
4
4
|
import type { GeneratorKey } from '../types/GeneratorKeys.js';
|
|
5
5
|
type CreateArgs = {
|
|
6
|
-
context:
|
|
6
|
+
context: GenerateContext;
|
|
7
7
|
generatorKey: GeneratorKey;
|
|
8
8
|
operation: OasOperation;
|
|
9
9
|
destinationPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactRouterPathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/ReactRouterPathParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ReactRouterPathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/ReactRouterPathParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,eAAe,CAAA;IACxB,YAAY,EAAE,YAAY,CAAA;IAC1B,SAAS,EAAE,YAAY,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,SAAS,EAAE,MAAM,CAAK;IAEtB,YAAY,EAAE,MAAM,CAAK;IAEzB,SAAS,EAAE,MAAM,CAAK;IAEtB,KAAK,EAAE,MAAM,EAAE,CAAA;gBAEH,EACV,OAAO,EACP,SAAS,EACT,YAAY,EACZ,eAAe,EAChB,EAAE,UAAU;IAwBb,QAAQ,IAAI,MAAM;CAGnB"}
|