@skmtc/core 0.0.655 → 0.0.657
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/dsl/{ValueBase.d.ts → ContentBase.d.ts} +4 -4
- package/esm/dsl/ContentBase.d.ts.map +1 -0
- package/esm/dsl/{ValueBase.js → ContentBase.js} +1 -1
- package/esm/dsl/Definition.d.ts +2 -2
- package/esm/dsl/Definition.d.ts.map +1 -1
- package/esm/dsl/Definition.js +2 -2
- package/esm/dsl/model/ModelBase.d.ts +2 -2
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelBase.js +2 -2
- package/esm/dsl/model/{toModelInsertable.d.ts → toModelBase.d.ts} +2 -2
- package/esm/dsl/model/toModelBase.d.ts.map +1 -0
- package/esm/dsl/model/{toModelInsertable.js → toModelBase.js} +3 -9
- package/{script/dsl/model/toModelConfig.d.ts → esm/dsl/model/toModelEntry.d.ts} +3 -3
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -0
- package/esm/dsl/model/{toModelConfig.js → toModelEntry.js} +1 -1
- package/esm/dsl/operation/OperationBase.d.ts +2 -2
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationBase.js +2 -2
- package/esm/dsl/operation/{toOperationInsertable.d.ts → toOperationBase.d.ts} +2 -2
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -0
- package/esm/dsl/operation/{toOperationInsertable.js → toOperationBase.js} +3 -9
- package/{script/dsl/operation/toOperationConfig.d.ts → esm/dsl/operation/toOperationEntry.d.ts} +1 -1
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -0
- package/esm/mod.d.ts +5 -5
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +5 -5
- package/esm/types/CustomValue.d.ts +2 -2
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +2 -2
- package/esm/typescript/ReactRouterPathParams.d.ts +2 -2
- package/esm/typescript/ReactRouterPathParams.d.ts.map +1 -1
- package/esm/typescript/ReactRouterPathParams.js +2 -2
- package/package.json +1 -1
- package/script/dsl/{ValueBase.d.ts → ContentBase.d.ts} +4 -4
- package/script/dsl/ContentBase.d.ts.map +1 -0
- package/script/dsl/{ValueBase.js → ContentBase.js} +3 -3
- package/script/dsl/Definition.d.ts +2 -2
- package/script/dsl/Definition.d.ts.map +1 -1
- package/script/dsl/Definition.js +2 -2
- package/script/dsl/model/ModelBase.d.ts +2 -2
- package/script/dsl/model/ModelBase.d.ts.map +1 -1
- package/script/dsl/model/ModelBase.js +2 -2
- package/script/dsl/model/{toModelInsertable.d.ts → toModelBase.d.ts} +2 -2
- package/script/dsl/model/toModelBase.d.ts.map +1 -0
- package/script/dsl/model/{toModelInsertable.js → toModelBase.js} +5 -11
- package/{esm/dsl/model/toModelConfig.d.ts → script/dsl/model/toModelEntry.d.ts} +3 -3
- package/script/dsl/model/toModelEntry.d.ts.map +1 -0
- package/script/dsl/model/{toModelConfig.js → toModelEntry.js} +3 -3
- package/script/dsl/operation/OperationBase.d.ts +2 -2
- package/script/dsl/operation/OperationBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationBase.js +2 -2
- package/script/dsl/operation/{toOperationInsertable.d.ts → toOperationBase.d.ts} +2 -2
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -0
- package/script/dsl/operation/{toOperationInsertable.js → toOperationBase.js} +5 -11
- package/{esm/dsl/operation/toOperationConfig.d.ts → script/dsl/operation/toOperationEntry.d.ts} +1 -1
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -0
- package/script/mod.d.ts +5 -5
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +5 -5
- package/script/types/CustomValue.d.ts +2 -2
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +2 -2
- package/script/typescript/ReactRouterPathParams.d.ts +2 -2
- package/script/typescript/ReactRouterPathParams.d.ts.map +1 -1
- package/script/typescript/ReactRouterPathParams.js +2 -2
- package/esm/dsl/ValueBase.d.ts.map +0 -1
- package/esm/dsl/model/toModelConfig.d.ts.map +0 -1
- package/esm/dsl/model/toModelInsertable.d.ts.map +0 -1
- package/esm/dsl/operation/toOperationConfig.d.ts.map +0 -1
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +0 -1
- package/script/dsl/ValueBase.d.ts.map +0 -1
- package/script/dsl/model/toModelConfig.d.ts.map +0 -1
- package/script/dsl/model/toModelInsertable.d.ts.map +0 -1
- package/script/dsl/operation/toOperationConfig.d.ts.map +0 -1
- package/script/dsl/operation/toOperationInsertable.d.ts.map +0 -1
- /package/esm/dsl/operation/{toOperationConfig.js → toOperationEntry.js} +0 -0
- /package/script/dsl/operation/{toOperationConfig.js → toOperationEntry.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
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
|
-
type
|
|
4
|
+
type ContentBaseArgs = {
|
|
5
5
|
context: GenerateContext;
|
|
6
6
|
generatorKey?: GeneratorKey;
|
|
7
7
|
};
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class ContentBase {
|
|
9
9
|
context: GenerateContext;
|
|
10
10
|
skipped: boolean;
|
|
11
11
|
generatorKey: GeneratorKey | undefined;
|
|
12
|
-
constructor({ context, generatorKey }:
|
|
12
|
+
constructor({ context, generatorKey }: ContentBaseArgs);
|
|
13
13
|
register(args: RegisterArgs): void;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
16
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=ContentBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentBase.d.ts","sourceRoot":"","sources":["../../src/dsl/ContentBase.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,eAAe,GAAG;IACrB,OAAO,EAAE,eAAe,CAAA;IACxB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED,qBAAa,WAAW;IACtB,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,EAAE,OAAO,CAAQ;IACxB,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;gBAE1B,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe;IAKtD,QAAQ,CAAC,IAAI,EAAE,YAAY;CAG5B"}
|
package/esm/dsl/Definition.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
2
|
import type { Identifier } from './Identifier.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ContentBase } from './ContentBase.js';
|
|
4
4
|
import type { GeneratedValue } from '../types/GeneratedValue.js';
|
|
5
5
|
type ConstructorArgs<V extends GeneratedValue> = {
|
|
6
6
|
context: GenerateContext;
|
|
@@ -8,7 +8,7 @@ type ConstructorArgs<V extends GeneratedValue> = {
|
|
|
8
8
|
identifier: Identifier;
|
|
9
9
|
value: V;
|
|
10
10
|
};
|
|
11
|
-
export declare class Definition<V extends GeneratedValue = GeneratedValue> extends
|
|
11
|
+
export declare class Definition<V extends GeneratedValue = GeneratedValue> extends ContentBase {
|
|
12
12
|
identifier: Identifier;
|
|
13
13
|
description: string | undefined;
|
|
14
14
|
value: V;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/dsl/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/dsl/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAEhE,KAAK,eAAe,CAAC,CAAC,SAAS,cAAc,IAAI;IAC/C,OAAO,EAAE,eAAe,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE,CAAC,CAAA;CACT,CAAA;AAED,qBAAa,UAAU,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,WAAW;IACpF,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,KAAK,EAAE,CAAC,CAAA;gBAEI,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC;IAQlE,QAAQ,IAAI,MAAM;CAa5B"}
|
package/esm/dsl/Definition.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentBase } from './ContentBase.js';
|
|
2
2
|
import { withDescription } from '../typescript/withDescription.js';
|
|
3
|
-
export class Definition extends
|
|
3
|
+
export class Definition extends ContentBase {
|
|
4
4
|
constructor({ context, identifier, value, description }) {
|
|
5
5
|
super({ context, generatorKey: value.generatorKey });
|
|
6
6
|
Object.defineProperty(this, "identifier", {
|
|
@@ -4,7 +4,7 @@ import type { GeneratorKey } from '../../types/GeneratorKeys.js';
|
|
|
4
4
|
import type { RefName } from '../../types/RefName.js';
|
|
5
5
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
6
6
|
import type { ModelInsertable } from './types.js';
|
|
7
|
-
import {
|
|
7
|
+
import { ContentBase } from '../ContentBase.js';
|
|
8
8
|
import type { Inserted } from '../Inserted.js';
|
|
9
9
|
export type ModelBaseArgs<EnrichmentType = undefined> = {
|
|
10
10
|
context: GenerateContext;
|
|
@@ -12,7 +12,7 @@ export type ModelBaseArgs<EnrichmentType = undefined> = {
|
|
|
12
12
|
generatorKey: GeneratorKey;
|
|
13
13
|
refName: RefName;
|
|
14
14
|
};
|
|
15
|
-
export declare class ModelBase<EnrichmentType = undefined> extends
|
|
15
|
+
export declare class ModelBase<EnrichmentType = undefined> extends ContentBase {
|
|
16
16
|
settings: ContentSettings<EnrichmentType>;
|
|
17
17
|
refName: RefName;
|
|
18
18
|
generatorKey: GeneratorKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,MAAM,MAAM,aAAa,CAAC,cAAc,GAAG,SAAS,IAAI;IACtD,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,qBAAa,SAAS,CAAC,cAAc,GAAG,SAAS,CAAE,SAAQ,WAAW;IACpE,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,OAAO,EAAE,OAAO,CAAA;IAEP,YAAY,EAAE,YAAY,CAAA;gBACvB,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,aAAa,CAAC,cAAc,CAAC;IAQvF,WAAW,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,EAC9D,UAAU,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC,EAC9C,OAAO,EAAE,OAAO,GACf,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IAS9B,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;CAwBhD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentBase } from '../ContentBase.js';
|
|
2
2
|
import { toGeneratorId } from '../../types/GeneratorKeys.js';
|
|
3
|
-
export class ModelBase extends
|
|
3
|
+
export class ModelBase extends ContentBase {
|
|
4
4
|
constructor({ context, settings, generatorKey, refName }) {
|
|
5
5
|
super({ context });
|
|
6
6
|
Object.defineProperty(this, "settings", {
|
|
@@ -18,7 +18,7 @@ export type BaseModelConfig<EnrichmentType = undefined> = {
|
|
|
18
18
|
toExportPath: (refName: RefName) => string;
|
|
19
19
|
toEnrichmentSchema?: () => v.BaseSchema<EnrichmentType, EnrichmentType, v.BaseIssue<unknown>>;
|
|
20
20
|
};
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const toModelBase: <EnrichmentType = undefined>(config: BaseModelConfig<EnrichmentType>) => {
|
|
22
22
|
new (args: ModelInsertableArgs<EnrichmentType>): {
|
|
23
23
|
settings: ContentSettings<EnrichmentType>;
|
|
24
24
|
refName: RefName;
|
|
@@ -36,4 +36,4 @@ export declare const toModelInsertable: <EnrichmentType = undefined>(config: Bas
|
|
|
36
36
|
isSupported: () => boolean;
|
|
37
37
|
};
|
|
38
38
|
export {};
|
|
39
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=toModelBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,cAAc,GAAG,SAAS,IAAI;IACxD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,UAAU,CAAA;IAC9C,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,cAAc,sBAChC,eAAe,CAAC,cAAc,CAAC;eAoBnB,mBAAmB,CAAC,cAAc,CAAC;;;;;;;;;;;4BA1B/B,OAAO,KAAK,UAAU;4BACtB,OAAO,KAAK,MAAM;0CAaM,iBAAiB,KAAG,cAAc;;CAsBnF,CAAA"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
2
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
3
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
4
|
-
};
|
|
5
1
|
import { toModelGeneratorKey } from '../../types/GeneratorKeys.js';
|
|
6
2
|
import { ModelBase } from './ModelBase.js';
|
|
7
3
|
import * as v from 'valibot';
|
|
8
|
-
export const
|
|
4
|
+
export const toModelBase = (config) => {
|
|
9
5
|
var _a;
|
|
10
|
-
|
|
6
|
+
return _a = class extends ModelBase {
|
|
11
7
|
constructor(args) {
|
|
12
8
|
super({
|
|
13
9
|
...args,
|
|
@@ -18,7 +14,6 @@ export const toModelInsertable = (config) => {
|
|
|
18
14
|
});
|
|
19
15
|
}
|
|
20
16
|
},
|
|
21
|
-
__setFunctionName(_a, "ModelInsertable"),
|
|
22
17
|
Object.defineProperty(_a, "id", {
|
|
23
18
|
enumerable: true,
|
|
24
19
|
configurable: true,
|
|
@@ -62,6 +57,5 @@ export const toModelInsertable = (config) => {
|
|
|
62
57
|
writable: true,
|
|
63
58
|
value: () => true
|
|
64
59
|
}),
|
|
65
|
-
_a
|
|
66
|
-
return ModelInsertable;
|
|
60
|
+
_a;
|
|
67
61
|
};
|
|
@@ -3,14 +3,14 @@ import type { EnrichmentRequest } from '../../types/EnrichmentRequest.js';
|
|
|
3
3
|
import type { TransformModelArgs } from './types.js';
|
|
4
4
|
import type * as v from 'valibot';
|
|
5
5
|
import type { SchemaOption } from '../../types/SchemaOptions.js';
|
|
6
|
-
type
|
|
6
|
+
type ToModelEntryArgs<EnrichmentType = undefined, Acc = void> = {
|
|
7
7
|
id: string;
|
|
8
8
|
transform: ({ context, refName, acc }: TransformModelArgs<Acc>) => Acc;
|
|
9
9
|
toEnrichmentSchema?: () => v.GenericSchema<EnrichmentType>;
|
|
10
10
|
toSchemaOptions?: () => SchemaOption[];
|
|
11
11
|
toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined;
|
|
12
12
|
};
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const toModelEntry: <EnrichmentType = undefined, Acc = void>({ id, transform, toEnrichmentSchema, toSchemaOptions, toEnrichmentRequest }: ToModelEntryArgs<EnrichmentType, Acc>) => {
|
|
14
14
|
id: string;
|
|
15
15
|
type: string;
|
|
16
16
|
transform: ({ context, refName, acc }: TransformModelArgs<Acc>) => Acc;
|
|
@@ -19,4 +19,4 @@ export declare const toModelConfig: <EnrichmentType = undefined, Acc = void>({ i
|
|
|
19
19
|
toEnrichmentRequest: (<RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined) | undefined;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=toModelEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toModelEntry.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,KAAK,gBAAgB,CAAC,cAAc,GAAG,SAAS,EAAE,GAAG,GAAG,IAAI,IAAI;IAC9D,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,kBAAkB,CAAC,GAAG,CAAC,KAAK,GAAG,CAAA;IACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;IAC1D,eAAe,CAAC,EAAE,MAAM,YAAY,EAAE,CAAA;IACtC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,SAAS,cAAc,EAC/D,OAAO,EAAE,OAAO,KACb,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,cAAc,cAAc,GAAG,sFAMzD,gBAAgB,CAAC,cAAc,EAAE,GAAG,CAAC;;;;+BAbX,CAAC,CAAC,aAAa,gBAAgB;4BAClC,YAAY,EAAE;2BACf,mBAAmB,kCAC/B,OAAO,KACb,iBAAiB,qBAAqB,GAAG,SAAS;CAkBxD,CAAA"}
|
|
@@ -4,7 +4,7 @@ import type { ContentSettings } from '../ContentSettings.js';
|
|
|
4
4
|
import type { BaseRegisterArgs, GenerateContext } from '../../context/GenerateContext.js';
|
|
5
5
|
import type { GeneratedValue } from '../../types/GeneratedValue.js';
|
|
6
6
|
import { type GeneratorKey } from '../../types/GeneratorKeys.js';
|
|
7
|
-
import {
|
|
7
|
+
import { ContentBase } from '../ContentBase.js';
|
|
8
8
|
import type { Definition } from '../Definition.js';
|
|
9
9
|
import type { Identifier } from '../Identifier.js';
|
|
10
10
|
import type { SchemaToValueFn, SchemaType, TypeSystemOutput } from '../../types/TypeSystem.js';
|
|
@@ -23,7 +23,7 @@ type CreateAndRegisterDefinition<Schema extends SchemaType> = {
|
|
|
23
23
|
schemaToValueFn: SchemaToValueFn;
|
|
24
24
|
rootRef: RefName;
|
|
25
25
|
};
|
|
26
|
-
export declare class OperationBase<EnrichmentType = undefined> extends
|
|
26
|
+
export declare class OperationBase<EnrichmentType = undefined> extends ContentBase {
|
|
27
27
|
settings: ContentSettings<EnrichmentType>;
|
|
28
28
|
operation: OasOperation;
|
|
29
29
|
generatorKey: GeneratorKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OA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AQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,SAAS,EAAE,YAAY,CAAA;IACd,YAAY,EAAE,YAAY,CAAA;gBAEvB,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,CAAC,cAAc,CAAC;IAQ7F,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,EAClE,UAAU,EAAE,mBAAmB,CAAC,CAAC,EAAE,cAAc,CAAC,EAClD,SAAS,EAAE,YAAY,GACtB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IASvC,WAAW,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,EAC9D,UAAU,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC,EAC9C,OAAO,EAAE,OAAO,GACf,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IASvC,2BAA2B,CAAC,MAAM,SAAS,UAAU,EAAE,EACrD,MAAM,EACN,UAAU,EACV,eAAe,EACf,OAAO,EACR,EAAE,2BAA2B,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAU5E,QAAQ,CAAC,IAAI,EAAE,gBAAgB;CAyBzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toGeneratorId } from '../../types/GeneratorKeys.js';
|
|
2
|
-
import {
|
|
3
|
-
export class OperationBase extends
|
|
2
|
+
import { ContentBase } from '../ContentBase.js';
|
|
3
|
+
export class OperationBase extends ContentBase {
|
|
4
4
|
constructor({ context, generatorKey, settings, operation }) {
|
|
5
5
|
super({ context });
|
|
6
6
|
Object.defineProperty(this, "settings", {
|
|
@@ -13,7 +13,7 @@ type ToEnrichmentsArgs = {
|
|
|
13
13
|
operation: OasOperation;
|
|
14
14
|
context: GenerateContext;
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const toOperationBase: <EnrichmentType = undefined>(config: BaseOperationConfig<EnrichmentType>) => {
|
|
17
17
|
new (args: OperationInsertableArgs<EnrichmentType>): {
|
|
18
18
|
settings: import("../ContentSettings.js").ContentSettings<EnrichmentType>;
|
|
19
19
|
operation: OasOperation;
|
|
@@ -37,4 +37,4 @@ export declare const toOperationInsertable: <EnrichmentType = undefined>(config:
|
|
|
37
37
|
toEnrichments: ({ operation, context }: ToEnrichmentsArgs) => EnrichmentType;
|
|
38
38
|
};
|
|
39
39
|
export {};
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=toOperationBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,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,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,cAAc,sBACpC,mBAAmB,CAAC,cAAc,CAAC;eAqBvB,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;8BAhCjC,YAAY,KAAK,UAAU;8BAC3B,YAAY,KAAK,MAAM;4CAmBC,iBAAiB,KAAG,cAAc;CAsBrF,CAAA"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
2
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
3
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
4
|
-
};
|
|
5
1
|
import { toOperationGeneratorKey } from '../../types/GeneratorKeys.js';
|
|
6
2
|
import { OperationBase } from './OperationBase.js';
|
|
7
3
|
import * as v from 'valibot';
|
|
8
|
-
export const
|
|
4
|
+
export const toOperationBase = (config) => {
|
|
9
5
|
var _a;
|
|
10
|
-
|
|
6
|
+
return _a = class extends OperationBase {
|
|
11
7
|
constructor(args) {
|
|
12
8
|
super({
|
|
13
9
|
...args,
|
|
@@ -18,7 +14,6 @@ export const toOperationInsertable = (config) => {
|
|
|
18
14
|
});
|
|
19
15
|
}
|
|
20
16
|
},
|
|
21
|
-
__setFunctionName(_a, "OperationInsertable"),
|
|
22
17
|
Object.defineProperty(_a, "id", {
|
|
23
18
|
enumerable: true,
|
|
24
19
|
configurable: true,
|
|
@@ -57,6 +52,5 @@ export const toOperationInsertable = (config) => {
|
|
|
57
52
|
return v.parse(enrichmentSchema, generatorSettings.enrichments);
|
|
58
53
|
}
|
|
59
54
|
}),
|
|
60
|
-
_a
|
|
61
|
-
return OperationInsertable;
|
|
55
|
+
_a;
|
|
62
56
|
};
|
package/{script/dsl/operation/toOperationConfig.d.ts → esm/dsl/operation/toOperationEntry.d.ts}
RENAMED
|
@@ -21,4 +21,4 @@ export declare const toOperationConfig: <EnrichmentType = undefined, Acc = void>
|
|
|
21
21
|
isSupported: ({ context, operation }: IsSupportedArgs) => boolean;
|
|
22
22
|
toEnrichmentRequest: (<RequestedEnrichment extends EnrichmentType>(operation: OasOperation) => EnrichmentRequest<RequestedEnrichment> | undefined) | undefined;
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=toOperationEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toOperationEntry.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,MAAM,MAAM,qBAAqB,CAAC,cAAc,GAAG,SAAS,EAAE,GAAG,GAAG,IAAI,IAAI;IAC1E,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,sBAAsB,CAAC,GAAG,CAAC,KAAK,GAAG,CAAA;IAC5E,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,8BAA8B,CAAC,cAAc,CAAC,KAAK,OAAO,CAAA;IACjG,eAAe,CAAC,EAAE,MAAM,YAAY,EAAE,CAAA;IACtC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,SAAS,cAAc,EAC/D,SAAS,EAAE,YAAY,KACpB,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,cAAc,cAAc,GAAG,mGAO9D,qBAAqB,CAAC,cAAc,EAAE,GAAG,CAAC;;;;4BAbnB,YAAY,EAAE;+BAFX,CAAC,CAAC,aAAa,gBAAgB;0CAsBlB,eAAe;2BAnBhC,mBAAmB,oCAC7B,YAAY,KACpB,iBAAiB,qBAAqB,GAAG,SAAS;CAsCxD,CAAA"}
|
package/esm/mod.d.ts
CHANGED
|
@@ -12,16 +12,16 @@ export * from './dsl/Import.js';
|
|
|
12
12
|
export * from './dsl/Inserted.js';
|
|
13
13
|
export * from './dsl/model/ModelBase.js';
|
|
14
14
|
export * from './dsl/model/ModelDriver.js';
|
|
15
|
-
export * from './dsl/model/
|
|
16
|
-
export * from './dsl/model/
|
|
15
|
+
export * from './dsl/model/toModelEntry.js';
|
|
16
|
+
export * from './dsl/model/toModelBase.js';
|
|
17
17
|
export * from './dsl/model/types.js';
|
|
18
18
|
export * from './dsl/operation/OperationBase.js';
|
|
19
19
|
export * from './dsl/operation/OperationDriver.js';
|
|
20
|
-
export * from './dsl/operation/
|
|
21
|
-
export * from './dsl/operation/
|
|
20
|
+
export * from './dsl/operation/toOperationEntry.js';
|
|
21
|
+
export * from './dsl/operation/toOperationBase.js';
|
|
22
22
|
export * from './dsl/operation/types.js';
|
|
23
23
|
export * from './dsl/Stringable.js';
|
|
24
|
-
export * from './dsl/
|
|
24
|
+
export * from './dsl/ContentBase.js';
|
|
25
25
|
export * from './helpers/collateExamples.js';
|
|
26
26
|
export * from './helpers/isImported.js';
|
|
27
27
|
export * from './helpers/naming.js';
|
package/esm/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B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
@@ -12,16 +12,16 @@ export * from './dsl/Import.js';
|
|
|
12
12
|
export * from './dsl/Inserted.js';
|
|
13
13
|
export * from './dsl/model/ModelBase.js';
|
|
14
14
|
export * from './dsl/model/ModelDriver.js';
|
|
15
|
-
export * from './dsl/model/
|
|
16
|
-
export * from './dsl/model/
|
|
15
|
+
export * from './dsl/model/toModelEntry.js';
|
|
16
|
+
export * from './dsl/model/toModelBase.js';
|
|
17
17
|
export * from './dsl/model/types.js';
|
|
18
18
|
export * from './dsl/operation/OperationBase.js';
|
|
19
19
|
export * from './dsl/operation/OperationDriver.js';
|
|
20
|
-
export * from './dsl/operation/
|
|
21
|
-
export * from './dsl/operation/
|
|
20
|
+
export * from './dsl/operation/toOperationEntry.js';
|
|
21
|
+
export * from './dsl/operation/toOperationBase.js';
|
|
22
22
|
export * from './dsl/operation/types.js';
|
|
23
23
|
export * from './dsl/Stringable.js';
|
|
24
|
-
export * from './dsl/
|
|
24
|
+
export * from './dsl/ContentBase.js';
|
|
25
25
|
export * from './helpers/collateExamples.js';
|
|
26
26
|
export * from './helpers/isImported.js';
|
|
27
27
|
export * from './helpers/naming.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ContentBase } from '../dsl/ContentBase.js';
|
|
3
3
|
import type { Stringable } from '../dsl/Stringable.js';
|
|
4
4
|
import type { GeneratorKey } from './GeneratorKeys.js';
|
|
5
5
|
import type { OasRef } from '../oas/ref/Ref.js';
|
|
@@ -8,7 +8,7 @@ type CreateArgs = {
|
|
|
8
8
|
value: Stringable;
|
|
9
9
|
generatorKey?: GeneratorKey;
|
|
10
10
|
};
|
|
11
|
-
export declare class CustomValue extends
|
|
11
|
+
export declare class CustomValue extends ContentBase {
|
|
12
12
|
type: "custom";
|
|
13
13
|
value: Stringable;
|
|
14
14
|
constructor({ context, value, generatorKey }: CreateArgs);
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,UAAU,CAAA;IACjB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED,qBAAa,WAAY,SAAQ,WAAW;IAC1C,IAAI,WAAoB;IACxB,KAAK,EAAE,UAAU,CAAA;gBAEL,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,UAAU;IAMxD,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,WAAW;IAItB,WAAW,IAAI,WAAW;IAIjB,QAAQ,IAAI,MAAM;CAG5B;AAED,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,KAAK,IAAI,WAEvD,CAAA"}
|
package/esm/types/CustomValue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class CustomValue extends
|
|
1
|
+
import { ContentBase } from '../dsl/ContentBase.js';
|
|
2
|
+
export class CustomValue extends ContentBase {
|
|
3
3
|
constructor({ context, value, generatorKey }) {
|
|
4
4
|
super({ context, generatorKey });
|
|
5
5
|
Object.defineProperty(this, "type", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentBase } from '../dsl/ContentBase.js';
|
|
2
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';
|
|
@@ -8,7 +8,7 @@ type CreateArgs = {
|
|
|
8
8
|
operation: OasOperation;
|
|
9
9
|
destinationPath: string;
|
|
10
10
|
};
|
|
11
|
-
export declare class ReactRouterPathParams extends
|
|
11
|
+
export declare class ReactRouterPathParams extends ContentBase {
|
|
12
12
|
getParams: string;
|
|
13
13
|
assertParams: string;
|
|
14
14
|
passProps: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactRouterPathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/ReactRouterPathParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ReactRouterPathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/ReactRouterPathParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,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,WAAW;IACpD,SAAS,EAAE,MAAM,CAAK;IAEtB,YAAY,EAAE,MAAM,CAAK;IAEzB,SAAS,EAAE,MAAM,CAAK;IAEtB,KAAK,EAAE,MAAM,EAAE,CAAA;gBAEH,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,UAAU;IAwBpE,QAAQ,IAAI,MAAM;CAG5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class ReactRouterPathParams extends
|
|
1
|
+
import { ContentBase } from '../dsl/ContentBase.js';
|
|
2
|
+
export class ReactRouterPathParams extends ContentBase {
|
|
3
3
|
constructor({ context, operation, generatorKey, destinationPath }) {
|
|
4
4
|
super({ context, generatorKey });
|
|
5
5
|
Object.defineProperty(this, "getParams", {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
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
|
-
type
|
|
4
|
+
type ContentBaseArgs = {
|
|
5
5
|
context: GenerateContext;
|
|
6
6
|
generatorKey?: GeneratorKey;
|
|
7
7
|
};
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class ContentBase {
|
|
9
9
|
context: GenerateContext;
|
|
10
10
|
skipped: boolean;
|
|
11
11
|
generatorKey: GeneratorKey | undefined;
|
|
12
|
-
constructor({ context, generatorKey }:
|
|
12
|
+
constructor({ context, generatorKey }: ContentBaseArgs);
|
|
13
13
|
register(args: RegisterArgs): void;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
16
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=ContentBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentBase.d.ts","sourceRoot":"","sources":["../../src/dsl/ContentBase.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,eAAe,GAAG;IACrB,OAAO,EAAE,eAAe,CAAA;IACxB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED,qBAAa,WAAW;IACtB,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,EAAE,OAAO,CAAQ;IACxB,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;gBAE1B,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe;IAKtD,QAAQ,CAAC,IAAI,EAAE,YAAY;CAG5B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
class
|
|
3
|
+
exports.ContentBase = void 0;
|
|
4
|
+
class ContentBase {
|
|
5
5
|
constructor({ context, generatorKey }) {
|
|
6
6
|
Object.defineProperty(this, "context", {
|
|
7
7
|
enumerable: true,
|
|
@@ -28,4 +28,4 @@ class ValueBase {
|
|
|
28
28
|
this.context.register(args);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
31
|
+
exports.ContentBase = ContentBase;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
2
|
import type { Identifier } from './Identifier.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ContentBase } from './ContentBase.js';
|
|
4
4
|
import type { GeneratedValue } from '../types/GeneratedValue.js';
|
|
5
5
|
type ConstructorArgs<V extends GeneratedValue> = {
|
|
6
6
|
context: GenerateContext;
|
|
@@ -8,7 +8,7 @@ type ConstructorArgs<V extends GeneratedValue> = {
|
|
|
8
8
|
identifier: Identifier;
|
|
9
9
|
value: V;
|
|
10
10
|
};
|
|
11
|
-
export declare class Definition<V extends GeneratedValue = GeneratedValue> extends
|
|
11
|
+
export declare class Definition<V extends GeneratedValue = GeneratedValue> extends ContentBase {
|
|
12
12
|
identifier: Identifier;
|
|
13
13
|
description: string | undefined;
|
|
14
14
|
value: V;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/dsl/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/dsl/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAEhE,KAAK,eAAe,CAAC,CAAC,SAAS,cAAc,IAAI;IAC/C,OAAO,EAAE,eAAe,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE,CAAC,CAAA;CACT,CAAA;AAED,qBAAa,UAAU,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,WAAW;IACpF,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,KAAK,EAAE,CAAC,CAAA;gBAEI,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC;IAQlE,QAAQ,IAAI,MAAM;CAa5B"}
|
package/script/dsl/Definition.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Definition = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ContentBase_js_1 = require("./ContentBase.js");
|
|
5
5
|
const withDescription_js_1 = require("../typescript/withDescription.js");
|
|
6
|
-
class Definition extends
|
|
6
|
+
class Definition extends ContentBase_js_1.ContentBase {
|
|
7
7
|
constructor({ context, identifier, value, description }) {
|
|
8
8
|
super({ context, generatorKey: value.generatorKey });
|
|
9
9
|
Object.defineProperty(this, "identifier", {
|
|
@@ -4,7 +4,7 @@ import type { GeneratorKey } from '../../types/GeneratorKeys.js';
|
|
|
4
4
|
import type { RefName } from '../../types/RefName.js';
|
|
5
5
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
6
6
|
import type { ModelInsertable } from './types.js';
|
|
7
|
-
import {
|
|
7
|
+
import { ContentBase } from '../ContentBase.js';
|
|
8
8
|
import type { Inserted } from '../Inserted.js';
|
|
9
9
|
export type ModelBaseArgs<EnrichmentType = undefined> = {
|
|
10
10
|
context: GenerateContext;
|
|
@@ -12,7 +12,7 @@ export type ModelBaseArgs<EnrichmentType = undefined> = {
|
|
|
12
12
|
generatorKey: GeneratorKey;
|
|
13
13
|
refName: RefName;
|
|
14
14
|
};
|
|
15
|
-
export declare class ModelBase<EnrichmentType = undefined> extends
|
|
15
|
+
export declare class ModelBase<EnrichmentType = undefined> extends ContentBase {
|
|
16
16
|
settings: ContentSettings<EnrichmentType>;
|
|
17
17
|
refName: RefName;
|
|
18
18
|
generatorKey: GeneratorKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,OAAO,EAA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G,SAAS,EAC9D,UAAU,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC,EAC9C,OAAO,EAAE,OAAO,GACf,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IAS9B,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;CAwBhD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ModelBase = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ContentBase_js_1 = require("../ContentBase.js");
|
|
5
5
|
const GeneratorKeys_js_1 = require("../../types/GeneratorKeys.js");
|
|
6
|
-
class ModelBase extends
|
|
6
|
+
class ModelBase extends ContentBase_js_1.ContentBase {
|
|
7
7
|
constructor({ context, settings, generatorKey, refName }) {
|
|
8
8
|
super({ context });
|
|
9
9
|
Object.defineProperty(this, "settings", {
|
|
@@ -18,7 +18,7 @@ export type BaseModelConfig<EnrichmentType = undefined> = {
|
|
|
18
18
|
toExportPath: (refName: RefName) => string;
|
|
19
19
|
toEnrichmentSchema?: () => v.BaseSchema<EnrichmentType, EnrichmentType, v.BaseIssue<unknown>>;
|
|
20
20
|
};
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const toModelBase: <EnrichmentType = undefined>(config: BaseModelConfig<EnrichmentType>) => {
|
|
22
22
|
new (args: ModelInsertableArgs<EnrichmentType>): {
|
|
23
23
|
settings: ContentSettings<EnrichmentType>;
|
|
24
24
|
refName: RefName;
|
|
@@ -36,4 +36,4 @@ export declare const toModelInsertable: <EnrichmentType = undefined>(config: Bas
|
|
|
36
36
|
isSupported: () => boolean;
|
|
37
37
|
};
|
|
38
38
|
export {};
|
|
39
|
-
//# sourceMappingURL=
|
|
39
|
+
//# sourceMappingURL=toModelBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toModelBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,OAAO,EAAE,eAAe,CAAA;IACxB,QAAQ,EAAE,eAAe,CAAC,cAAc,CAAC,CAAA;IACzC,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,eAAe,CAAC,cAAc,GAAG,SAAS,IAAI;IACxD,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,UAAU,CAAA;IAC9C,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;IAC1C,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,cAAc,sBAChC,eAAe,CAAC,cAAc,CAAC;eAoBnB,mBAAmB,CAAC,cAAc,CAAC;;;;;;;;;;;4BA1B/B,OAAO,KAAK,UAAU;4BACtB,OAAO,KAAK,MAAM;0CAaM,iBAAiB,KAAG,cAAc;;CAsBnF,CAAA"}
|
|
@@ -22,18 +22,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
26
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
27
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
28
|
-
};
|
|
29
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
26
|
+
exports.toModelBase = void 0;
|
|
31
27
|
const GeneratorKeys_js_1 = require("../../types/GeneratorKeys.js");
|
|
32
28
|
const ModelBase_js_1 = require("./ModelBase.js");
|
|
33
29
|
const v = __importStar(require("valibot"));
|
|
34
|
-
const
|
|
30
|
+
const toModelBase = (config) => {
|
|
35
31
|
var _a;
|
|
36
|
-
|
|
32
|
+
return _a = class extends ModelBase_js_1.ModelBase {
|
|
37
33
|
constructor(args) {
|
|
38
34
|
super({
|
|
39
35
|
...args,
|
|
@@ -44,7 +40,6 @@ const toModelInsertable = (config) => {
|
|
|
44
40
|
});
|
|
45
41
|
}
|
|
46
42
|
},
|
|
47
|
-
__setFunctionName(_a, "ModelInsertable"),
|
|
48
43
|
Object.defineProperty(_a, "id", {
|
|
49
44
|
enumerable: true,
|
|
50
45
|
configurable: true,
|
|
@@ -88,7 +83,6 @@ const toModelInsertable = (config) => {
|
|
|
88
83
|
writable: true,
|
|
89
84
|
value: () => true
|
|
90
85
|
}),
|
|
91
|
-
_a
|
|
92
|
-
return ModelInsertable;
|
|
86
|
+
_a;
|
|
93
87
|
};
|
|
94
|
-
exports.
|
|
88
|
+
exports.toModelBase = toModelBase;
|
|
@@ -3,14 +3,14 @@ import type { EnrichmentRequest } from '../../types/EnrichmentRequest.js';
|
|
|
3
3
|
import type { TransformModelArgs } from './types.js';
|
|
4
4
|
import type * as v from 'valibot';
|
|
5
5
|
import type { SchemaOption } from '../../types/SchemaOptions.js';
|
|
6
|
-
type
|
|
6
|
+
type ToModelEntryArgs<EnrichmentType = undefined, Acc = void> = {
|
|
7
7
|
id: string;
|
|
8
8
|
transform: ({ context, refName, acc }: TransformModelArgs<Acc>) => Acc;
|
|
9
9
|
toEnrichmentSchema?: () => v.GenericSchema<EnrichmentType>;
|
|
10
10
|
toSchemaOptions?: () => SchemaOption[];
|
|
11
11
|
toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined;
|
|
12
12
|
};
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const toModelEntry: <EnrichmentType = undefined, Acc = void>({ id, transform, toEnrichmentSchema, toSchemaOptions, toEnrichmentRequest }: ToModelEntryArgs<EnrichmentType, Acc>) => {
|
|
14
14
|
id: string;
|
|
15
15
|
type: string;
|
|
16
16
|
transform: ({ context, refName, acc }: TransformModelArgs<Acc>) => Acc;
|
|
@@ -19,4 +19,4 @@ export declare const toModelConfig: <EnrichmentType = undefined, Acc = void>({ i
|
|
|
19
19
|
toEnrichmentRequest: (<RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined) | undefined;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=toModelEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toModelEntry.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,KAAK,gBAAgB,CAAC,cAAc,GAAG,SAAS,EAAE,GAAG,GAAG,IAAI,IAAI;IAC9D,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,kBAAkB,CAAC,GAAG,CAAC,KAAK,GAAG,CAAA;IACtE,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;IAC1D,eAAe,CAAC,EAAE,MAAM,YAAY,EAAE,CAAA;IACtC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,SAAS,cAAc,EAC/D,OAAO,EAAE,OAAO,KACb,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,cAAc,cAAc,GAAG,sFAMzD,gBAAgB,CAAC,cAAc,EAAE,GAAG,CAAC;;;;+BAbX,CAAC,CAAC,aAAa,gBAAgB;4BAClC,YAAY,EAAE;2BACf,mBAAmB,kCAC/B,OAAO,KACb,iBAAiB,qBAAqB,GAAG,SAAS;CAkBxD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
3
|
+
exports.toModelEntry = void 0;
|
|
4
|
+
const toModelEntry = ({ id, transform, toEnrichmentSchema, toSchemaOptions, toEnrichmentRequest }) => {
|
|
5
5
|
return {
|
|
6
6
|
id,
|
|
7
7
|
type: 'model',
|
|
@@ -11,4 +11,4 @@ const toModelConfig = ({ id, transform, toEnrichmentSchema, toSchemaOptions, toE
|
|
|
11
11
|
toEnrichmentRequest
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
14
|
+
exports.toModelEntry = toModelEntry;
|
|
@@ -4,7 +4,7 @@ import type { ContentSettings } from '../ContentSettings.js';
|
|
|
4
4
|
import type { BaseRegisterArgs, GenerateContext } from '../../context/GenerateContext.js';
|
|
5
5
|
import type { GeneratedValue } from '../../types/GeneratedValue.js';
|
|
6
6
|
import { type GeneratorKey } from '../../types/GeneratorKeys.js';
|
|
7
|
-
import {
|
|
7
|
+
import { ContentBase } from '../ContentBase.js';
|
|
8
8
|
import type { Definition } from '../Definition.js';
|
|
9
9
|
import type { Identifier } from '../Identifier.js';
|
|
10
10
|
import type { SchemaToValueFn, SchemaType, TypeSystemOutput } from '../../types/TypeSystem.js';
|
|
@@ -23,7 +23,7 @@ type CreateAndRegisterDefinition<Schema extends SchemaType> = {
|
|
|
23
23
|
schemaToValueFn: SchemaToValueFn;
|
|
24
24
|
rootRef: RefName;
|
|
25
25
|
};
|
|
26
|
-
export declare class OperationBase<EnrichmentType = undefined> extends
|
|
26
|
+
export declare class OperationBase<EnrichmentType = undefined> extends ContentBase {
|
|
27
27
|
settings: ContentSettings<EnrichmentType>;
|
|
28
28
|
operation: OasOperation;
|
|
29
29
|
generatorKey: GeneratorKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"OperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/OperationBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA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SAAS,EAAE,YAAY,CAAA;IACd,YAAY,EAAE,YAAY,CAAA;gBAEvB,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,CAAC,cAAc,CAAC;IAQ7F,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,EAClE,UAAU,EAAE,mBAAmB,CAAC,CAAC,EAAE,cAAc,CAAC,EAClD,SAAS,EAAE,YAAY,GACtB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IASvC,WAAW,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,GAAG,SAAS,EAC9D,UAAU,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC,EAC9C,OAAO,EAAE,OAAO,GACf,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC;IASvC,2BAA2B,CAAC,MAAM,SAAS,UAAU,EAAE,EACrD,MAAM,EACN,UAAU,EACV,eAAe,EACf,OAAO,EACR,EAAE,2BAA2B,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;IAU5E,QAAQ,CAAC,IAAI,EAAE,gBAAgB;CAyBzC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OperationBase = void 0;
|
|
4
4
|
const GeneratorKeys_js_1 = require("../../types/GeneratorKeys.js");
|
|
5
|
-
const
|
|
6
|
-
class OperationBase extends
|
|
5
|
+
const ContentBase_js_1 = require("../ContentBase.js");
|
|
6
|
+
class OperationBase extends ContentBase_js_1.ContentBase {
|
|
7
7
|
constructor({ context, generatorKey, settings, operation }) {
|
|
8
8
|
super({ context });
|
|
9
9
|
Object.defineProperty(this, "settings", {
|
|
@@ -13,7 +13,7 @@ type ToEnrichmentsArgs = {
|
|
|
13
13
|
operation: OasOperation;
|
|
14
14
|
context: GenerateContext;
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const toOperationBase: <EnrichmentType = undefined>(config: BaseOperationConfig<EnrichmentType>) => {
|
|
17
17
|
new (args: OperationInsertableArgs<EnrichmentType>): {
|
|
18
18
|
settings: import("../ContentSettings.js").ContentSettings<EnrichmentType>;
|
|
19
19
|
operation: OasOperation;
|
|
@@ -37,4 +37,4 @@ export declare const toOperationInsertable: <EnrichmentType = undefined>(config:
|
|
|
37
37
|
toEnrichments: ({ operation, context }: ToEnrichmentsArgs) => EnrichmentType;
|
|
38
38
|
};
|
|
39
39
|
export {};
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=toOperationBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toOperationBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationBase.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,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,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,cAAc,sBACpC,mBAAmB,CAAC,cAAc,CAAC;eAqBvB,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;8BAhCjC,YAAY,KAAK,UAAU;8BAC3B,YAAY,KAAK,MAAM;4CAmBC,iBAAiB,KAAG,cAAc;CAsBrF,CAAA"}
|
|
@@ -22,18 +22,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
26
|
-
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
27
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
28
|
-
};
|
|
29
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
26
|
+
exports.toOperationBase = void 0;
|
|
31
27
|
const GeneratorKeys_js_1 = require("../../types/GeneratorKeys.js");
|
|
32
28
|
const OperationBase_js_1 = require("./OperationBase.js");
|
|
33
29
|
const v = __importStar(require("valibot"));
|
|
34
|
-
const
|
|
30
|
+
const toOperationBase = (config) => {
|
|
35
31
|
var _a;
|
|
36
|
-
|
|
32
|
+
return _a = class extends OperationBase_js_1.OperationBase {
|
|
37
33
|
constructor(args) {
|
|
38
34
|
super({
|
|
39
35
|
...args,
|
|
@@ -44,7 +40,6 @@ const toOperationInsertable = (config) => {
|
|
|
44
40
|
});
|
|
45
41
|
}
|
|
46
42
|
},
|
|
47
|
-
__setFunctionName(_a, "OperationInsertable"),
|
|
48
43
|
Object.defineProperty(_a, "id", {
|
|
49
44
|
enumerable: true,
|
|
50
45
|
configurable: true,
|
|
@@ -83,7 +78,6 @@ const toOperationInsertable = (config) => {
|
|
|
83
78
|
return v.parse(enrichmentSchema, generatorSettings.enrichments);
|
|
84
79
|
}
|
|
85
80
|
}),
|
|
86
|
-
_a
|
|
87
|
-
return OperationInsertable;
|
|
81
|
+
_a;
|
|
88
82
|
};
|
|
89
|
-
exports.
|
|
83
|
+
exports.toOperationBase = toOperationBase;
|
package/{esm/dsl/operation/toOperationConfig.d.ts → script/dsl/operation/toOperationEntry.d.ts}
RENAMED
|
@@ -21,4 +21,4 @@ export declare const toOperationConfig: <EnrichmentType = undefined, Acc = void>
|
|
|
21
21
|
isSupported: ({ context, operation }: IsSupportedArgs) => boolean;
|
|
22
22
|
toEnrichmentRequest: (<RequestedEnrichment extends EnrichmentType>(operation: OasOperation) => EnrichmentRequest<RequestedEnrichment> | undefined) | undefined;
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=toOperationEntry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toOperationEntry.d.ts","sourceRoot":"","sources":["../../../src/dsl/operation/toOperationEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAA;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,MAAM,MAAM,qBAAqB,CAAC,cAAc,GAAG,SAAS,EAAE,GAAG,GAAG,IAAI,IAAI;IAC1E,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,sBAAsB,CAAC,GAAG,CAAC,KAAK,GAAG,CAAA;IAC5E,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,8BAA8B,CAAC,cAAc,CAAC,KAAK,OAAO,CAAA;IACjG,eAAe,CAAC,EAAE,MAAM,YAAY,EAAE,CAAA;IACtC,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,SAAS,cAAc,EAC/D,SAAS,EAAE,YAAY,KACpB,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,cAAc,cAAc,GAAG,mGAO9D,qBAAqB,CAAC,cAAc,EAAE,GAAG,CAAC;;;;4BAbnB,YAAY,EAAE;+BAFX,CAAC,CAAC,aAAa,gBAAgB;0CAsBlB,eAAe;2BAnBhC,mBAAmB,oCAC7B,YAAY,KACpB,iBAAiB,qBAAqB,GAAG,SAAS;CAsCxD,CAAA"}
|
package/script/mod.d.ts
CHANGED
|
@@ -12,16 +12,16 @@ export * from './dsl/Import.js';
|
|
|
12
12
|
export * from './dsl/Inserted.js';
|
|
13
13
|
export * from './dsl/model/ModelBase.js';
|
|
14
14
|
export * from './dsl/model/ModelDriver.js';
|
|
15
|
-
export * from './dsl/model/
|
|
16
|
-
export * from './dsl/model/
|
|
15
|
+
export * from './dsl/model/toModelEntry.js';
|
|
16
|
+
export * from './dsl/model/toModelBase.js';
|
|
17
17
|
export * from './dsl/model/types.js';
|
|
18
18
|
export * from './dsl/operation/OperationBase.js';
|
|
19
19
|
export * from './dsl/operation/OperationDriver.js';
|
|
20
|
-
export * from './dsl/operation/
|
|
21
|
-
export * from './dsl/operation/
|
|
20
|
+
export * from './dsl/operation/toOperationEntry.js';
|
|
21
|
+
export * from './dsl/operation/toOperationBase.js';
|
|
22
22
|
export * from './dsl/operation/types.js';
|
|
23
23
|
export * from './dsl/Stringable.js';
|
|
24
|
-
export * from './dsl/
|
|
24
|
+
export * from './dsl/ContentBase.js';
|
|
25
25
|
export * from './helpers/collateExamples.js';
|
|
26
26
|
export * from './helpers/isImported.js';
|
|
27
27
|
export * from './helpers/naming.js';
|
package/script/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA;AAChD,cAAc,oCAAoC,CAAA;A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cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mCAAmC,CAAA;AACjD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uCAAuC,CAAA;AACrD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA"}
|
package/script/mod.js
CHANGED
|
@@ -28,16 +28,16 @@ __exportStar(require("./dsl/Import.js"), exports);
|
|
|
28
28
|
__exportStar(require("./dsl/Inserted.js"), exports);
|
|
29
29
|
__exportStar(require("./dsl/model/ModelBase.js"), exports);
|
|
30
30
|
__exportStar(require("./dsl/model/ModelDriver.js"), exports);
|
|
31
|
-
__exportStar(require("./dsl/model/
|
|
32
|
-
__exportStar(require("./dsl/model/
|
|
31
|
+
__exportStar(require("./dsl/model/toModelEntry.js"), exports);
|
|
32
|
+
__exportStar(require("./dsl/model/toModelBase.js"), exports);
|
|
33
33
|
__exportStar(require("./dsl/model/types.js"), exports);
|
|
34
34
|
__exportStar(require("./dsl/operation/OperationBase.js"), exports);
|
|
35
35
|
__exportStar(require("./dsl/operation/OperationDriver.js"), exports);
|
|
36
|
-
__exportStar(require("./dsl/operation/
|
|
37
|
-
__exportStar(require("./dsl/operation/
|
|
36
|
+
__exportStar(require("./dsl/operation/toOperationEntry.js"), exports);
|
|
37
|
+
__exportStar(require("./dsl/operation/toOperationBase.js"), exports);
|
|
38
38
|
__exportStar(require("./dsl/operation/types.js"), exports);
|
|
39
39
|
__exportStar(require("./dsl/Stringable.js"), exports);
|
|
40
|
-
__exportStar(require("./dsl/
|
|
40
|
+
__exportStar(require("./dsl/ContentBase.js"), exports);
|
|
41
41
|
__exportStar(require("./helpers/collateExamples.js"), exports);
|
|
42
42
|
__exportStar(require("./helpers/isImported.js"), exports);
|
|
43
43
|
__exportStar(require("./helpers/naming.js"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ContentBase } from '../dsl/ContentBase.js';
|
|
3
3
|
import type { Stringable } from '../dsl/Stringable.js';
|
|
4
4
|
import type { GeneratorKey } from './GeneratorKeys.js';
|
|
5
5
|
import type { OasRef } from '../oas/ref/Ref.js';
|
|
@@ -8,7 +8,7 @@ type CreateArgs = {
|
|
|
8
8
|
value: Stringable;
|
|
9
9
|
generatorKey?: GeneratorKey;
|
|
10
10
|
};
|
|
11
|
-
export declare class CustomValue extends
|
|
11
|
+
export declare class CustomValue extends ContentBase {
|
|
12
12
|
type: "custom";
|
|
13
13
|
value: Stringable;
|
|
14
14
|
constructor({ context, value, generatorKey }: CreateArgs);
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,UAAU,CAAA;IACjB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED,qBAAa,WAAY,SAAQ,WAAW;IAC1C,IAAI,WAAoB;IACxB,KAAK,EAAE,UAAU,CAAA;gBAEL,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,UAAU;IAMxD,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC;IAIjC,OAAO,IAAI,WAAW;IAItB,WAAW,IAAI,WAAW;IAIjB,QAAQ,IAAI,MAAM;CAG5B;AAED,eAAO,MAAM,aAAa,UAAW,OAAO,KAAG,KAAK,IAAI,WAEvD,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isCustomValue = exports.CustomValue = void 0;
|
|
4
|
-
const
|
|
5
|
-
class CustomValue extends
|
|
4
|
+
const ContentBase_js_1 = require("../dsl/ContentBase.js");
|
|
5
|
+
class CustomValue extends ContentBase_js_1.ContentBase {
|
|
6
6
|
constructor({ context, value, generatorKey }) {
|
|
7
7
|
super({ context, generatorKey });
|
|
8
8
|
Object.defineProperty(this, "type", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContentBase } from '../dsl/ContentBase.js';
|
|
2
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';
|
|
@@ -8,7 +8,7 @@ type CreateArgs = {
|
|
|
8
8
|
operation: OasOperation;
|
|
9
9
|
destinationPath: string;
|
|
10
10
|
};
|
|
11
|
-
export declare class ReactRouterPathParams extends
|
|
11
|
+
export declare class ReactRouterPathParams extends ContentBase {
|
|
12
12
|
getParams: string;
|
|
13
13
|
assertParams: string;
|
|
14
14
|
passProps: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactRouterPathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/ReactRouterPathParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ReactRouterPathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/ReactRouterPathParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,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,WAAW;IACpD,SAAS,EAAE,MAAM,CAAK;IAEtB,YAAY,EAAE,MAAM,CAAK;IAEzB,SAAS,EAAE,MAAM,CAAK;IAEtB,KAAK,EAAE,MAAM,EAAE,CAAA;gBAEH,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,UAAU;IAwBpE,QAAQ,IAAI,MAAM;CAG5B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReactRouterPathParams = void 0;
|
|
4
|
-
const
|
|
5
|
-
class ReactRouterPathParams extends
|
|
4
|
+
const ContentBase_js_1 = require("../dsl/ContentBase.js");
|
|
5
|
+
class ReactRouterPathParams extends ContentBase_js_1.ContentBase {
|
|
6
6
|
constructor({ context, operation, generatorKey, destinationPath }) {
|
|
7
7
|
super({ context, generatorKey });
|
|
8
8
|
Object.defineProperty(this, "getParams", {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValueBase.d.ts","sourceRoot":"","sources":["../../src/dsl/ValueBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,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AAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,cAAc,sBAC1C,mBAAmB,CAAC,cAAc,CAAC;eAqBvB,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;8BAhCjC,YAAY,KAAK,UAAU;8BAC3B,YAAY,KAAK,MAAM;4CAmBC,iBAAiB,KAAG,cAAc;CAwBrF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAC,EAAE,YAAY,CAAA;CAC5B,CAAA;AAED,qBAAa,SAAS;IACpB,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,EAAE,OAAO,CAAQ;IACxB,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;gBAE1B,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,aAAa;IAKpD,QAAQ,CAAC,IAAI,EAAE,YAAY;CAG5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toModelConfig.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AACjC,OAAO,KAAK,EAAE,Y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E5B,MAAM,MAAM,mBAAmB,CAAC,cAAc,GAAG,SAAS,IAAI;IAC5D,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,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,UAAU,CAAC,cAAc,EAAE,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC9F,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,EAAE,eAAe,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,cAAc,sBAC1C,mBAAmB,CAAC,cAAc,CAAC;eAqBvB,uBAAuB,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;8BAhCjC,YAAY,KAAK,UAAU;8BAC3B,YAAY,KAAK,MAAM;4CAmBC,iBAAiB,KAAG,cAAc;CAwBrF,CAAA"}
|
|
File without changes
|
|
File without changes
|