@skmtc/core 0.0.492 → 0.0.494
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/GenerateContext.d.ts +9 -9
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +15 -12
- package/esm/dsl/ContentSettings.d.ts +6 -4
- package/esm/dsl/ContentSettings.d.ts.map +1 -1
- package/esm/dsl/ContentSettings.js +10 -2
- package/esm/dsl/GatewayBase.d.ts +5 -5
- package/esm/dsl/GatewayBase.d.ts.map +1 -1
- package/esm/dsl/Inserted.d.ts +5 -5
- package/esm/dsl/Inserted.d.ts.map +1 -1
- package/esm/dsl/model/ModelBase.d.ts +6 -6
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts +1 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelInsertable.d.ts +4 -3
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.d.ts +7 -5
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.js +6 -0
- package/esm/dsl/operation/OperationBase.d.ts +7 -7
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts +8 -6
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.d.ts +4 -2
- package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.js +6 -0
- package/esm/dsl/operation/toOperationInsertable.d.ts +8 -6
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.js +6 -0
- package/esm/run/toSettings.js +4 -2
- package/esm/types/Settings.d.ts +212 -39
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +1 -1
- package/package.json +1 -1
- package/script/context/GenerateContext.d.ts +9 -9
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +15 -12
- package/script/dsl/ContentSettings.d.ts +6 -4
- package/script/dsl/ContentSettings.d.ts.map +1 -1
- package/script/dsl/ContentSettings.js +10 -2
- package/script/dsl/GatewayBase.d.ts +5 -5
- package/script/dsl/GatewayBase.d.ts.map +1 -1
- package/script/dsl/Inserted.d.ts +5 -5
- package/script/dsl/Inserted.d.ts.map +1 -1
- package/script/dsl/model/ModelBase.d.ts +6 -6
- package/script/dsl/model/ModelBase.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.d.ts +1 -1
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelInsertable.d.ts +4 -3
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelInsertable.d.ts +7 -5
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelInsertable.js +6 -0
- package/script/dsl/operation/OperationBase.d.ts +7 -7
- package/script/dsl/operation/OperationBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.d.ts +1 -1
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/OperationInsertable.d.ts +8 -6
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationGateway.d.ts +4 -2
- package/script/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/script/dsl/operation/toOperationGateway.js +6 -0
- package/script/dsl/operation/toOperationInsertable.d.ts +8 -6
- package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationInsertable.js +6 -0
- package/script/run/toSettings.js +4 -2
- package/script/types/Settings.d.ts +212 -39
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationGateway.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAe,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,MAAM,MAAM,sBAAsB,CAAC,cAAc,IAAI;IACnD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,UAAU,CAAA;IAC9B,YAAY,EAAE,MAAM,MAAM,CAAA;IAC1B,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;IAClD,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,iBAAiB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"toOperationGateway.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,EAAe,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,MAAM,MAAM,sBAAsB,CAAC,cAAc,IAAI;IACnD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,UAAU,CAAA;IAC9B,YAAY,EAAE,MAAM,MAAM,CAAA;IAC1B,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;IAClD,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,iBAAiB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAA;IAChG,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,cAAc,GAAG,SAAS,CAAA;CACxE,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,cAAc,UACvC,sBAAsB,CAAC,cAAc,CAAC;gCAeT,oBAAoB,CAAC,cAAc,CAAC;;;;;;;;;;wBAvBrD,UAAU;wBACV,MAAM;sCAEQ,YAAY,KAAK,iBAAiB,gBAAgB,GAAG,SAAS;gCACpE,YAAY,KAAK,iBAAiB,SAAS;6BAF7C,YAAY,KAAK,OAAO;;CA2BnD,CAAA"}
|
|
@@ -47,6 +47,12 @@ export const toOperationGateway = (config) => {
|
|
|
47
47
|
writable: true,
|
|
48
48
|
value: config.toEnrichmentRequest?.bind(config)
|
|
49
49
|
}),
|
|
50
|
+
Object.defineProperty(_a, "toEnrichments", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true,
|
|
53
|
+
writable: true,
|
|
54
|
+
value: config.toEnrichments?.bind(config)
|
|
55
|
+
}),
|
|
50
56
|
Object.defineProperty(_a, "isSupported", {
|
|
51
57
|
enumerable: true,
|
|
52
58
|
configurable: true,
|
|
@@ -3,9 +3,9 @@ import type { OasOperation } from '../../oas/operation/Operation.js';
|
|
|
3
3
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
4
4
|
import type { Identifier } from '../Identifier.js';
|
|
5
5
|
import type { EnrichmentRequest } from '../../types/EnrichmentRequest.js';
|
|
6
|
-
export type OperationInsertableArgs = {
|
|
6
|
+
export type OperationInsertableArgs<EnrichmentType> = {
|
|
7
7
|
context: GenerateContext;
|
|
8
|
-
settings: ContentSettings
|
|
8
|
+
settings: ContentSettings<EnrichmentType>;
|
|
9
9
|
operation: OasOperation;
|
|
10
10
|
};
|
|
11
11
|
export type ToOperationInsertableArgs<EnrichmentType> = {
|
|
@@ -14,15 +14,16 @@ export type ToOperationInsertableArgs<EnrichmentType> = {
|
|
|
14
14
|
toExportPath: (operation: OasOperation) => string;
|
|
15
15
|
isSupported?: (operation: OasOperation) => boolean;
|
|
16
16
|
toEnrichmentRequest?: (operation: OasOperation) => EnrichmentRequest<EnrichmentType> | undefined;
|
|
17
|
+
toEnrichments?: (value: unknown) => EnrichmentType;
|
|
17
18
|
pinnable?: boolean;
|
|
18
19
|
};
|
|
19
20
|
export declare const toOperationInsertable: <EnrichmentType>(config: ToOperationInsertableArgs<EnrichmentType>) => {
|
|
20
|
-
new (args: OperationInsertableArgs): {
|
|
21
|
-
settings: ContentSettings
|
|
21
|
+
new (args: OperationInsertableArgs<EnrichmentType>): {
|
|
22
|
+
settings: ContentSettings<EnrichmentType>;
|
|
22
23
|
operation: OasOperation;
|
|
23
24
|
generatorKey: import("../../types/GeneratorKeys.js").GeneratorKey;
|
|
24
|
-
insertOperation<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1>(insertable: import("./OperationInsertable.js").OperationInsertable<V, EnrichmentType_1>, operation: OasOperation): import("../Inserted.js").Inserted<V, "force">;
|
|
25
|
-
insertModel<V extends import("../../mod.js").GeneratedValue, EnrichmentType_2>(insertable: import("../model/ModelInsertable.js").ModelInsertable<V, EnrichmentType_2>, refName: import("../../mod.js").RefName): import("../Inserted.js").Inserted<V, "force">;
|
|
25
|
+
insertOperation<V extends import("../../mod.js").GeneratedValue, EnrichmentType_1>(insertable: import("./OperationInsertable.js").OperationInsertable<V, EnrichmentType_1>, operation: OasOperation): import("../Inserted.js").Inserted<V, "force", EnrichmentType_1>;
|
|
26
|
+
insertModel<V extends import("../../mod.js").GeneratedValue, EnrichmentType_2>(insertable: import("../model/ModelInsertable.js").ModelInsertable<V, EnrichmentType_2>, refName: import("../../mod.js").RefName): import("../Inserted.js").Inserted<V, "force", EnrichmentType_2>;
|
|
26
27
|
createAndRegisterDefinition<Schema extends import("../../mod.js").SchemaType>({ schema, identifier, schemaToValueFn }: {
|
|
27
28
|
schema: Schema;
|
|
28
29
|
identifier: Identifier;
|
|
@@ -38,6 +39,7 @@ export declare const toOperationInsertable: <EnrichmentType>(config: ToOperation
|
|
|
38
39
|
toIdentifier: (operation: OasOperation) => Identifier;
|
|
39
40
|
toExportPath: (operation: OasOperation) => string;
|
|
40
41
|
toEnrichmentRequest: ((operation: OasOperation) => EnrichmentRequest<EnrichmentType> | undefined) | undefined;
|
|
42
|
+
toEnrichments: ((value: unknown) => EnrichmentType) | undefined;
|
|
41
43
|
isSupported: (operation: OasOperation) => boolean;
|
|
42
44
|
pinnable: boolean;
|
|
43
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationInsertable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,MAAM,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"toOperationInsertable.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationInsertable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,MAAM,MAAM,uBAAuB,CAAC,cAAc,IAAI;IACpD,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,yBAAyB,CAAC,cAAc,IAAI;IACtD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,UAAU,CAAA;IACrD,YAAY,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,MAAM,CAAA;IACjD,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;IAClD,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,iBAAiB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAA;IAChG,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,cAAc,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,cAAc,UAC1C,yBAAyB,CAAC,cAAc,CAAC;eAgB7B,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;8BAzBjC,YAAY,KAAK,UAAU;8BAC3B,YAAY,KAAK,MAAM;sCAEf,YAAY,KAAK,iBAAiB,gBAAgB,GAAG,SAAS;4BACxE,OAAO;6BAFL,YAAY,KAAK,OAAO;;CAmCnD,CAAA"}
|
|
@@ -54,6 +54,12 @@ export const toOperationInsertable = (config) => {
|
|
|
54
54
|
writable: true,
|
|
55
55
|
value: config.toEnrichmentRequest?.bind(config)
|
|
56
56
|
}),
|
|
57
|
+
Object.defineProperty(_a, "toEnrichments", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
configurable: true,
|
|
60
|
+
writable: true,
|
|
61
|
+
value: config.toEnrichments?.bind(config)
|
|
62
|
+
}),
|
|
57
63
|
Object.defineProperty(_a, "isSupported", {
|
|
58
64
|
enumerable: true,
|
|
59
65
|
configurable: true,
|
package/esm/run/toSettings.js
CHANGED
|
@@ -57,7 +57,9 @@ export const toSettings = ({ generators, clientSettings, defaultSelected, oasDoc
|
|
|
57
57
|
const toModels = ({ defaultSelected, oasDocument, modelsSettings }) => {
|
|
58
58
|
return Object.fromEntries(Object.keys(oasDocument.components?.schemas ?? {}).map(refName => [
|
|
59
59
|
refName,
|
|
60
|
-
modelsSettings?.[refName]
|
|
60
|
+
modelsSettings?.[refName]
|
|
61
|
+
? modelsSettings?.[refName]
|
|
62
|
+
: { selected: defaultSelected, enrichments: undefined }
|
|
61
63
|
]));
|
|
62
64
|
};
|
|
63
65
|
const toOperations = ({ generator, oasDocument, operationsSettings, defaultSelected }) => {
|
|
@@ -68,7 +70,7 @@ const toOperations = ({ generator, oasDocument, operationsSettings, defaultSelec
|
|
|
68
70
|
acc[path] = acc[path] ?? {};
|
|
69
71
|
acc[path][method] = operationsSettings?.[path]?.[method]
|
|
70
72
|
? operationsSettings?.[path]?.[method]
|
|
71
|
-
: { selected: defaultSelected };
|
|
73
|
+
: { selected: defaultSelected, enrichments: undefined };
|
|
72
74
|
return acc;
|
|
73
75
|
}, {});
|
|
74
76
|
};
|
package/esm/types/Settings.d.ts
CHANGED
|
@@ -3,42 +3,42 @@ import { type Method } from './Method.js';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export declare const enrichedSetting: z.ZodObject<{
|
|
5
5
|
selected: z.ZodBoolean;
|
|
6
|
-
enrichments: z.
|
|
6
|
+
enrichments: z.ZodUnknown;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
selected: boolean;
|
|
9
|
-
enrichments?:
|
|
9
|
+
enrichments?: unknown;
|
|
10
10
|
}, {
|
|
11
11
|
selected: boolean;
|
|
12
|
-
enrichments?:
|
|
12
|
+
enrichments?: unknown;
|
|
13
13
|
}>;
|
|
14
14
|
export type EnrichedSetting = {
|
|
15
15
|
selected: boolean;
|
|
16
|
-
enrichments
|
|
16
|
+
enrichments: unknown;
|
|
17
17
|
};
|
|
18
18
|
export declare const operationsGeneratorSettings: z.ZodObject<{
|
|
19
19
|
id: z.ZodString;
|
|
20
20
|
description: z.ZodOptional<z.ZodString>;
|
|
21
21
|
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
22
22
|
selected: z.ZodBoolean;
|
|
23
|
-
enrichments: z.
|
|
23
|
+
enrichments: z.ZodUnknown;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
selected: boolean;
|
|
26
|
-
enrichments?:
|
|
26
|
+
enrichments?: unknown;
|
|
27
27
|
}, {
|
|
28
28
|
selected: boolean;
|
|
29
|
-
enrichments?:
|
|
29
|
+
enrichments?: unknown;
|
|
30
30
|
}>>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
operations: Record<string, Partial<Record<Method, {
|
|
33
33
|
selected: boolean;
|
|
34
|
-
enrichments?:
|
|
34
|
+
enrichments?: unknown;
|
|
35
35
|
}>>>;
|
|
36
36
|
id: string;
|
|
37
37
|
description?: string | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
operations: Record<string, Partial<Record<Method, {
|
|
40
40
|
selected: boolean;
|
|
41
|
-
enrichments?:
|
|
41
|
+
enrichments?: unknown;
|
|
42
42
|
}>>>;
|
|
43
43
|
id: string;
|
|
44
44
|
description?: string | undefined;
|
|
@@ -54,19 +54,19 @@ export declare const modelsGeneratorSettings: z.ZodObject<{
|
|
|
54
54
|
description: z.ZodOptional<z.ZodString>;
|
|
55
55
|
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
56
|
selected: z.ZodBoolean;
|
|
57
|
-
enrichments: z.
|
|
57
|
+
enrichments: z.ZodUnknown;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
selected: boolean;
|
|
60
|
-
enrichments?:
|
|
60
|
+
enrichments?: unknown;
|
|
61
61
|
}, {
|
|
62
62
|
selected: boolean;
|
|
63
|
-
enrichments?:
|
|
63
|
+
enrichments?: unknown;
|
|
64
64
|
}>>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
id: string;
|
|
67
67
|
models: Record<string, {
|
|
68
68
|
selected: boolean;
|
|
69
|
-
enrichments?:
|
|
69
|
+
enrichments?: unknown;
|
|
70
70
|
}>;
|
|
71
71
|
description?: string | undefined;
|
|
72
72
|
exportPath?: string | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const modelsGeneratorSettings: z.ZodObject<{
|
|
|
74
74
|
id: string;
|
|
75
75
|
models: Record<string, {
|
|
76
76
|
selected: boolean;
|
|
77
|
-
enrichments?:
|
|
77
|
+
enrichments?: unknown;
|
|
78
78
|
}>;
|
|
79
79
|
description?: string | undefined;
|
|
80
80
|
exportPath?: string | undefined;
|
|
@@ -90,25 +90,25 @@ export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
90
90
|
description: z.ZodOptional<z.ZodString>;
|
|
91
91
|
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
92
92
|
selected: z.ZodBoolean;
|
|
93
|
-
enrichments: z.
|
|
93
|
+
enrichments: z.ZodUnknown;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
selected: boolean;
|
|
96
|
-
enrichments?:
|
|
96
|
+
enrichments?: unknown;
|
|
97
97
|
}, {
|
|
98
98
|
selected: boolean;
|
|
99
|
-
enrichments?:
|
|
99
|
+
enrichments?: unknown;
|
|
100
100
|
}>>>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
operations: Record<string, Partial<Record<Method, {
|
|
103
103
|
selected: boolean;
|
|
104
|
-
enrichments?:
|
|
104
|
+
enrichments?: unknown;
|
|
105
105
|
}>>>;
|
|
106
106
|
id: string;
|
|
107
107
|
description?: string | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
operations: Record<string, Partial<Record<Method, {
|
|
110
110
|
selected: boolean;
|
|
111
|
-
enrichments?:
|
|
111
|
+
enrichments?: unknown;
|
|
112
112
|
}>>>;
|
|
113
113
|
id: string;
|
|
114
114
|
description?: string | undefined;
|
|
@@ -118,19 +118,19 @@ export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
118
118
|
description: z.ZodOptional<z.ZodString>;
|
|
119
119
|
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
120
120
|
selected: z.ZodBoolean;
|
|
121
|
-
enrichments: z.
|
|
121
|
+
enrichments: z.ZodUnknown;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
123
|
selected: boolean;
|
|
124
|
-
enrichments?:
|
|
124
|
+
enrichments?: unknown;
|
|
125
125
|
}, {
|
|
126
126
|
selected: boolean;
|
|
127
|
-
enrichments?:
|
|
127
|
+
enrichments?: unknown;
|
|
128
128
|
}>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
id: string;
|
|
131
131
|
models: Record<string, {
|
|
132
132
|
selected: boolean;
|
|
133
|
-
enrichments?:
|
|
133
|
+
enrichments?: unknown;
|
|
134
134
|
}>;
|
|
135
135
|
description?: string | undefined;
|
|
136
136
|
exportPath?: string | undefined;
|
|
@@ -138,7 +138,7 @@ export declare const clientGeneratorSettings: z.ZodUnion<[z.ZodObject<{
|
|
|
138
138
|
id: string;
|
|
139
139
|
models: Record<string, {
|
|
140
140
|
selected: boolean;
|
|
141
|
-
enrichments?:
|
|
141
|
+
enrichments?: unknown;
|
|
142
142
|
}>;
|
|
143
143
|
description?: string | undefined;
|
|
144
144
|
exportPath?: string | undefined;
|
|
@@ -175,25 +175,25 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
175
175
|
description: z.ZodOptional<z.ZodString>;
|
|
176
176
|
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
177
177
|
selected: z.ZodBoolean;
|
|
178
|
-
enrichments: z.
|
|
178
|
+
enrichments: z.ZodUnknown;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
selected: boolean;
|
|
181
|
-
enrichments?:
|
|
181
|
+
enrichments?: unknown;
|
|
182
182
|
}, {
|
|
183
183
|
selected: boolean;
|
|
184
|
-
enrichments?:
|
|
184
|
+
enrichments?: unknown;
|
|
185
185
|
}>>>;
|
|
186
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
187
|
operations: Record<string, Partial<Record<Method, {
|
|
188
188
|
selected: boolean;
|
|
189
|
-
enrichments?:
|
|
189
|
+
enrichments?: unknown;
|
|
190
190
|
}>>>;
|
|
191
191
|
id: string;
|
|
192
192
|
description?: string | undefined;
|
|
193
193
|
}, {
|
|
194
194
|
operations: Record<string, Partial<Record<Method, {
|
|
195
195
|
selected: boolean;
|
|
196
|
-
enrichments?:
|
|
196
|
+
enrichments?: unknown;
|
|
197
197
|
}>>>;
|
|
198
198
|
id: string;
|
|
199
199
|
description?: string | undefined;
|
|
@@ -203,19 +203,19 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
203
203
|
description: z.ZodOptional<z.ZodString>;
|
|
204
204
|
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
205
205
|
selected: z.ZodBoolean;
|
|
206
|
-
enrichments: z.
|
|
206
|
+
enrichments: z.ZodUnknown;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
208
|
selected: boolean;
|
|
209
|
-
enrichments?:
|
|
209
|
+
enrichments?: unknown;
|
|
210
210
|
}, {
|
|
211
211
|
selected: boolean;
|
|
212
|
-
enrichments?:
|
|
212
|
+
enrichments?: unknown;
|
|
213
213
|
}>>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
215
|
id: string;
|
|
216
216
|
models: Record<string, {
|
|
217
217
|
selected: boolean;
|
|
218
|
-
enrichments?:
|
|
218
|
+
enrichments?: unknown;
|
|
219
219
|
}>;
|
|
220
220
|
description?: string | undefined;
|
|
221
221
|
exportPath?: string | undefined;
|
|
@@ -223,7 +223,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
223
223
|
id: string;
|
|
224
224
|
models: Record<string, {
|
|
225
225
|
selected: boolean;
|
|
226
|
-
enrichments?:
|
|
226
|
+
enrichments?: unknown;
|
|
227
227
|
}>;
|
|
228
228
|
description?: string | undefined;
|
|
229
229
|
exportPath?: string | undefined;
|
|
@@ -232,7 +232,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
232
232
|
generators: ({
|
|
233
233
|
operations: Record<string, Partial<Record<Method, {
|
|
234
234
|
selected: boolean;
|
|
235
|
-
enrichments?:
|
|
235
|
+
enrichments?: unknown;
|
|
236
236
|
}>>>;
|
|
237
237
|
id: string;
|
|
238
238
|
description?: string | undefined;
|
|
@@ -240,7 +240,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
240
240
|
id: string;
|
|
241
241
|
models: Record<string, {
|
|
242
242
|
selected: boolean;
|
|
243
|
-
enrichments?:
|
|
243
|
+
enrichments?: unknown;
|
|
244
244
|
}>;
|
|
245
245
|
description?: string | undefined;
|
|
246
246
|
exportPath?: string | undefined;
|
|
@@ -254,7 +254,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
254
254
|
generators: ({
|
|
255
255
|
operations: Record<string, Partial<Record<Method, {
|
|
256
256
|
selected: boolean;
|
|
257
|
-
enrichments?:
|
|
257
|
+
enrichments?: unknown;
|
|
258
258
|
}>>>;
|
|
259
259
|
id: string;
|
|
260
260
|
description?: string | undefined;
|
|
@@ -262,7 +262,7 @@ export declare const clientSettings: z.ZodObject<{
|
|
|
262
262
|
id: string;
|
|
263
263
|
models: Record<string, {
|
|
264
264
|
selected: boolean;
|
|
265
|
-
enrichments?:
|
|
265
|
+
enrichments?: unknown;
|
|
266
266
|
}>;
|
|
267
267
|
description?: string | undefined;
|
|
268
268
|
exportPath?: string | undefined;
|
|
@@ -284,7 +284,180 @@ export type SkmtcClientConfig = {
|
|
|
284
284
|
deploymentId?: string;
|
|
285
285
|
settings: ClientSettings;
|
|
286
286
|
};
|
|
287
|
-
export declare const skmtcClientConfig: z.
|
|
287
|
+
export declare const skmtcClientConfig: z.ZodObject<{
|
|
288
|
+
serverName: z.ZodOptional<z.ZodString>;
|
|
289
|
+
stackName: z.ZodOptional<z.ZodString>;
|
|
290
|
+
deploymentId: z.ZodOptional<z.ZodString>;
|
|
291
|
+
settings: z.ZodObject<{
|
|
292
|
+
basePath: z.ZodOptional<z.ZodString>;
|
|
293
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
rootPath: z.ZodString;
|
|
295
|
+
moduleName: z.ZodString;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
rootPath: string;
|
|
298
|
+
moduleName: string;
|
|
299
|
+
}, {
|
|
300
|
+
rootPath: string;
|
|
301
|
+
moduleName: string;
|
|
302
|
+
}>, "many">>;
|
|
303
|
+
generators: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
description: z.ZodOptional<z.ZodString>;
|
|
306
|
+
operations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodType<Method, z.ZodTypeDef, Method>, z.ZodObject<{
|
|
307
|
+
selected: z.ZodBoolean;
|
|
308
|
+
enrichments: z.ZodUnknown;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
selected: boolean;
|
|
311
|
+
enrichments?: unknown;
|
|
312
|
+
}, {
|
|
313
|
+
selected: boolean;
|
|
314
|
+
enrichments?: unknown;
|
|
315
|
+
}>>>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
operations: Record<string, Partial<Record<Method, {
|
|
318
|
+
selected: boolean;
|
|
319
|
+
enrichments?: unknown;
|
|
320
|
+
}>>>;
|
|
321
|
+
id: string;
|
|
322
|
+
description?: string | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
operations: Record<string, Partial<Record<Method, {
|
|
325
|
+
selected: boolean;
|
|
326
|
+
enrichments?: unknown;
|
|
327
|
+
}>>>;
|
|
328
|
+
id: string;
|
|
329
|
+
description?: string | undefined;
|
|
330
|
+
}>, z.ZodObject<{
|
|
331
|
+
id: z.ZodString;
|
|
332
|
+
exportPath: z.ZodOptional<z.ZodString>;
|
|
333
|
+
description: z.ZodOptional<z.ZodString>;
|
|
334
|
+
models: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
335
|
+
selected: z.ZodBoolean;
|
|
336
|
+
enrichments: z.ZodUnknown;
|
|
337
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
|
+
selected: boolean;
|
|
339
|
+
enrichments?: unknown;
|
|
340
|
+
}, {
|
|
341
|
+
selected: boolean;
|
|
342
|
+
enrichments?: unknown;
|
|
343
|
+
}>>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
id: string;
|
|
346
|
+
models: Record<string, {
|
|
347
|
+
selected: boolean;
|
|
348
|
+
enrichments?: unknown;
|
|
349
|
+
}>;
|
|
350
|
+
description?: string | undefined;
|
|
351
|
+
exportPath?: string | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
id: string;
|
|
354
|
+
models: Record<string, {
|
|
355
|
+
selected: boolean;
|
|
356
|
+
enrichments?: unknown;
|
|
357
|
+
}>;
|
|
358
|
+
description?: string | undefined;
|
|
359
|
+
exportPath?: string | undefined;
|
|
360
|
+
}>]>, "many">;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
generators: ({
|
|
363
|
+
operations: Record<string, Partial<Record<Method, {
|
|
364
|
+
selected: boolean;
|
|
365
|
+
enrichments?: unknown;
|
|
366
|
+
}>>>;
|
|
367
|
+
id: string;
|
|
368
|
+
description?: string | undefined;
|
|
369
|
+
} | {
|
|
370
|
+
id: string;
|
|
371
|
+
models: Record<string, {
|
|
372
|
+
selected: boolean;
|
|
373
|
+
enrichments?: unknown;
|
|
374
|
+
}>;
|
|
375
|
+
description?: string | undefined;
|
|
376
|
+
exportPath?: string | undefined;
|
|
377
|
+
})[];
|
|
378
|
+
basePath?: string | undefined;
|
|
379
|
+
packages?: {
|
|
380
|
+
rootPath: string;
|
|
381
|
+
moduleName: string;
|
|
382
|
+
}[] | undefined;
|
|
383
|
+
}, {
|
|
384
|
+
generators: ({
|
|
385
|
+
operations: Record<string, Partial<Record<Method, {
|
|
386
|
+
selected: boolean;
|
|
387
|
+
enrichments?: unknown;
|
|
388
|
+
}>>>;
|
|
389
|
+
id: string;
|
|
390
|
+
description?: string | undefined;
|
|
391
|
+
} | {
|
|
392
|
+
id: string;
|
|
393
|
+
models: Record<string, {
|
|
394
|
+
selected: boolean;
|
|
395
|
+
enrichments?: unknown;
|
|
396
|
+
}>;
|
|
397
|
+
description?: string | undefined;
|
|
398
|
+
exportPath?: string | undefined;
|
|
399
|
+
})[];
|
|
400
|
+
basePath?: string | undefined;
|
|
401
|
+
packages?: {
|
|
402
|
+
rootPath: string;
|
|
403
|
+
moduleName: string;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
}>;
|
|
406
|
+
}, "strip", z.ZodTypeAny, {
|
|
407
|
+
settings: {
|
|
408
|
+
generators: ({
|
|
409
|
+
operations: Record<string, Partial<Record<Method, {
|
|
410
|
+
selected: boolean;
|
|
411
|
+
enrichments?: unknown;
|
|
412
|
+
}>>>;
|
|
413
|
+
id: string;
|
|
414
|
+
description?: string | undefined;
|
|
415
|
+
} | {
|
|
416
|
+
id: string;
|
|
417
|
+
models: Record<string, {
|
|
418
|
+
selected: boolean;
|
|
419
|
+
enrichments?: unknown;
|
|
420
|
+
}>;
|
|
421
|
+
description?: string | undefined;
|
|
422
|
+
exportPath?: string | undefined;
|
|
423
|
+
})[];
|
|
424
|
+
basePath?: string | undefined;
|
|
425
|
+
packages?: {
|
|
426
|
+
rootPath: string;
|
|
427
|
+
moduleName: string;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
};
|
|
430
|
+
deploymentId?: string | undefined;
|
|
431
|
+
serverName?: string | undefined;
|
|
432
|
+
stackName?: string | undefined;
|
|
433
|
+
}, {
|
|
434
|
+
settings: {
|
|
435
|
+
generators: ({
|
|
436
|
+
operations: Record<string, Partial<Record<Method, {
|
|
437
|
+
selected: boolean;
|
|
438
|
+
enrichments?: unknown;
|
|
439
|
+
}>>>;
|
|
440
|
+
id: string;
|
|
441
|
+
description?: string | undefined;
|
|
442
|
+
} | {
|
|
443
|
+
id: string;
|
|
444
|
+
models: Record<string, {
|
|
445
|
+
selected: boolean;
|
|
446
|
+
enrichments?: unknown;
|
|
447
|
+
}>;
|
|
448
|
+
description?: string | undefined;
|
|
449
|
+
exportPath?: string | undefined;
|
|
450
|
+
})[];
|
|
451
|
+
basePath?: string | undefined;
|
|
452
|
+
packages?: {
|
|
453
|
+
rootPath: string;
|
|
454
|
+
moduleName: string;
|
|
455
|
+
}[] | undefined;
|
|
456
|
+
};
|
|
457
|
+
deploymentId?: string | undefined;
|
|
458
|
+
serverName?: string | undefined;
|
|
459
|
+
stackName?: string | undefined;
|
|
460
|
+
}>;
|
|
288
461
|
export declare const skmtcStackConfig: z.ZodObject<{
|
|
289
462
|
name: z.ZodOptional<z.ZodString>;
|
|
290
463
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../src/types/Settings.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,
|
|
1
|
+
{"version":3,"file":"Settings.d.ts","sourceRoot":"","sources":["../../src/types/Settings.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,MAAM,EAAU,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;CACrE,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG,uBAAuB,CAAA;AAE3F,eAAO,MAAM,aAAa;;;;;;;;;EAGxB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAA;IAC1B,UAAU,EAAE,uBAAuB,EAAE,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA"}
|
package/esm/types/Settings.js
CHANGED
|
@@ -3,7 +3,7 @@ import { method } from './Method.js';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export const enrichedSetting = z.object({
|
|
5
5
|
selected: z.boolean(),
|
|
6
|
-
enrichments: z.
|
|
6
|
+
enrichments: z.unknown()
|
|
7
7
|
});
|
|
8
8
|
export const operationsGeneratorSettings = z.object({
|
|
9
9
|
id: z.string(),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { Definition } from '../dsl/Definition.js';
|
|
|
3
3
|
import type { OasDocument } from '../oas/document/Document.js';
|
|
4
4
|
import type { OasSchema } from '../oas/schema/Schema.js';
|
|
5
5
|
import type { OasRef } from '../oas/ref/Ref.js';
|
|
6
|
-
import type { ClientGeneratorSettings, ClientSettings } from '../types/Settings.js';
|
|
6
|
+
import type { ClientGeneratorSettings, ClientSettings, EnrichedSetting } from '../types/Settings.js';
|
|
7
7
|
import type { Method } from '../types/Method.js';
|
|
8
8
|
import type { OperationInsertable, OperationGateway } from '../dsl/operation/OperationInsertable.js';
|
|
9
9
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
@@ -83,7 +83,7 @@ export type InsertModelArgs<V extends GeneratedValue, T extends GenerationType,
|
|
|
83
83
|
generation?: T;
|
|
84
84
|
destinationPath?: string;
|
|
85
85
|
};
|
|
86
|
-
export type InsertReturn<V extends GeneratedValue, T extends GenerationType> = Inserted<V, T>;
|
|
86
|
+
export type InsertReturn<V extends GeneratedValue, T extends GenerationType, EnrichmentType> = Inserted<V, T, EnrichmentType>;
|
|
87
87
|
type ToOperationSettingsArgs<V, EnrichmentType> = {
|
|
88
88
|
operation: OasOperation;
|
|
89
89
|
insertable: OperationInsertable<V, EnrichmentType>;
|
|
@@ -158,7 +158,7 @@ export declare class GenerateContext {
|
|
|
158
158
|
* insertable's driver
|
|
159
159
|
* @mutates this.files
|
|
160
160
|
*/
|
|
161
|
-
insertOperation<V extends GeneratedValue, T extends GenerationType, EnrichmentType>({ insertable, operation, generation, destinationPath }: InsertOperationArgs<V, T, EnrichmentType>): Inserted<V, T>;
|
|
161
|
+
insertOperation<V extends GeneratedValue, T extends GenerationType, EnrichmentType>({ insertable, operation, generation, destinationPath }: InsertOperationArgs<V, T, EnrichmentType>): Inserted<V, T, EnrichmentType>;
|
|
162
162
|
/**
|
|
163
163
|
* Insert model into the output file with path `destinationPath`.
|
|
164
164
|
*
|
|
@@ -173,7 +173,7 @@ export declare class GenerateContext {
|
|
|
173
173
|
* insertable's driver
|
|
174
174
|
* @mutates this.files
|
|
175
175
|
*/
|
|
176
|
-
insertModel<V extends GeneratedValue, T extends GenerationType, EnrichmentType>({ insertable, refName, generation, destinationPath }: InsertModelArgs<V, T, EnrichmentType>): Inserted<V, T>;
|
|
176
|
+
insertModel<V extends GeneratedValue, T extends GenerationType, EnrichmentType>({ insertable, refName, generation, destinationPath }: InsertModelArgs<V, T, EnrichmentType>): Inserted<V, T, EnrichmentType>;
|
|
177
177
|
/**
|
|
178
178
|
* Generate and return content settings for operation insertable and
|
|
179
179
|
* operation.
|
|
@@ -184,7 +184,7 @@ export declare class GenerateContext {
|
|
|
184
184
|
* @param { operation, insertable }
|
|
185
185
|
* @returns
|
|
186
186
|
*/
|
|
187
|
-
toOperationContentSettings<V, EnrichmentType>({ operation, insertable }: ToOperationSettingsArgs<V, EnrichmentType>): ContentSettings
|
|
187
|
+
toOperationContentSettings<V, EnrichmentType>({ operation, insertable }: ToOperationSettingsArgs<V, EnrichmentType>): ContentSettings<EnrichmentType>;
|
|
188
188
|
/**
|
|
189
189
|
* Generate and return content settings for model insertable and refName.
|
|
190
190
|
*
|
|
@@ -194,7 +194,7 @@ export declare class GenerateContext {
|
|
|
194
194
|
* @param { refName, insertable }
|
|
195
195
|
* @returns Content settings for model
|
|
196
196
|
*/
|
|
197
|
-
toModelContentSettings<V, EnrichmentType>({ refName, insertable }: BuildModelSettingsArgs<V, EnrichmentType>): ContentSettings
|
|
197
|
+
toModelContentSettings<V, EnrichmentType>({ refName, insertable }: BuildModelSettingsArgs<V, EnrichmentType>): ContentSettings<EnrichmentType>;
|
|
198
198
|
/**
|
|
199
199
|
* Generate and return content settings for a gateway
|
|
200
200
|
*
|
|
@@ -203,14 +203,14 @@ export declare class GenerateContext {
|
|
|
203
203
|
* @param gateway
|
|
204
204
|
* @returns Content settings for model
|
|
205
205
|
*/
|
|
206
|
-
toGatewayContentSetting<EnrichmentType>(gateway: OperationGateway<EnrichmentType>): ContentSettings
|
|
206
|
+
toGatewayContentSetting<EnrichmentType>(gateway: OperationGateway<EnrichmentType>): ContentSettings<EnrichmentType>;
|
|
207
207
|
/**
|
|
208
208
|
* Look up operation settings for a given generatorId, path and method.
|
|
209
209
|
* @param { generatorId, path, method }
|
|
210
210
|
* @returns Base settings for operation
|
|
211
211
|
*/
|
|
212
|
-
|
|
213
|
-
toModelSelected({ generatorId, refName }: GetModelSettingsArgs):
|
|
212
|
+
toOperationSettings({ generatorId, path, method }: GetOperationSettingsArgs): EnrichedSetting;
|
|
213
|
+
toModelSelected({ generatorId, refName }: GetModelSettingsArgs): EnrichedSetting;
|
|
214
214
|
toGeneratorSettings(generatorId: string): ClientGeneratorSettings | undefined;
|
|
215
215
|
/**
|
|
216
216
|
* Perform one lookup of schema by `refName`.
|