@skmtc/core 0.0.338 → 0.0.340
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/context/CoreContext.d.ts +2 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +4 -4
- package/esm/context/GenerateContext.d.ts +5 -5
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +64 -32
- package/esm/context/ParseContext.d.ts +1 -1
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +11 -11
- package/esm/dsl/GeneratorBase.d.ts +6 -0
- package/esm/dsl/GeneratorBase.d.ts.map +1 -0
- package/esm/dsl/GeneratorBase.js +11 -0
- package/esm/dsl/model/ModelBase.d.ts +21 -0
- package/esm/dsl/model/ModelBase.d.ts.map +1 -0
- package/esm/dsl/model/ModelBase.js +34 -0
- package/esm/dsl/{ModelDriver.d.ts → model/ModelDriver.d.ts} +5 -5
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -0
- package/esm/dsl/{ModelDriver.js → model/ModelDriver.js} +4 -4
- package/{script/dsl → esm/dsl/model}/ModelInsertable.d.ts +18 -12
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -0
- package/esm/dsl/model/toModelConfig.d.ts +47 -0
- package/esm/dsl/model/toModelConfig.d.ts.map +1 -0
- package/esm/dsl/model/toModelConfig.js +92 -0
- package/esm/dsl/operation/OperationBase.d.ts +34 -0
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -0
- package/esm/dsl/{base.js → operation/OperationBase.js} +4 -35
- package/esm/dsl/{OperationDriver.d.ts → operation/OperationDriver.d.ts} +5 -5
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -0
- package/esm/dsl/{OperationDriver.js → operation/OperationDriver.js} +4 -4
- package/{script/dsl → esm/dsl/operation}/OperationInsertable.d.ts +12 -8
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -0
- package/esm/dsl/operation/toOperationConfig.d.ts +61 -0
- package/esm/dsl/operation/toOperationConfig.d.ts.map +1 -0
- package/esm/dsl/operation/toOperationConfig.js +116 -0
- package/esm/mod.d.ts +13 -10
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +13 -10
- package/esm/oas/components/Components.d.ts +1 -0
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +3 -0
- package/esm/oas/document/toDocumentFieldsV3.d.ts +2 -2
- package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/esm/oas/document/toDocumentFieldsV3.js +2 -2
- package/esm/oas/ref/Ref.d.ts +2 -2
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +8 -8
- package/esm/oas/ref/toRefV31.js +1 -1
- package/esm/server/createServer.d.ts +2 -2
- package/esm/server/createServer.d.ts.map +1 -1
- package/esm/transform/transform.d.ts +2 -2
- package/esm/transform/transform.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +2 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +4 -4
- package/script/context/GenerateContext.d.ts +5 -5
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +64 -32
- package/script/context/ParseContext.d.ts +1 -1
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +11 -11
- package/script/dsl/GeneratorBase.d.ts +6 -0
- package/script/dsl/GeneratorBase.d.ts.map +1 -0
- package/script/dsl/GeneratorBase.js +15 -0
- package/script/dsl/model/ModelBase.d.ts +21 -0
- package/script/dsl/model/ModelBase.d.ts.map +1 -0
- package/script/dsl/model/ModelBase.js +38 -0
- package/script/dsl/{ModelDriver.d.ts → model/ModelDriver.d.ts} +5 -5
- package/script/dsl/model/ModelDriver.d.ts.map +1 -0
- package/script/dsl/{ModelDriver.js → model/ModelDriver.js} +4 -4
- package/{esm/dsl → script/dsl/model}/ModelInsertable.d.ts +18 -12
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -0
- package/script/dsl/model/toModelConfig.d.ts +47 -0
- package/script/dsl/model/toModelConfig.d.ts.map +1 -0
- package/script/dsl/model/toModelConfig.js +96 -0
- package/script/dsl/operation/OperationBase.d.ts +34 -0
- package/script/dsl/operation/OperationBase.d.ts.map +1 -0
- package/script/dsl/{base.js → operation/OperationBase.js} +5 -37
- package/script/dsl/{OperationDriver.d.ts → operation/OperationDriver.d.ts} +5 -5
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -0
- package/script/dsl/{OperationDriver.js → operation/OperationDriver.js} +4 -4
- package/{esm/dsl → script/dsl/operation}/OperationInsertable.d.ts +12 -8
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -0
- package/script/dsl/operation/toOperationConfig.d.ts +61 -0
- package/script/dsl/operation/toOperationConfig.d.ts.map +1 -0
- package/script/dsl/operation/toOperationConfig.js +120 -0
- package/script/mod.d.ts +13 -10
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +13 -10
- package/script/oas/components/Components.d.ts +1 -0
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +3 -0
- package/script/oas/document/toDocumentFieldsV3.d.ts +2 -2
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/script/oas/document/toDocumentFieldsV3.js +2 -2
- package/script/oas/ref/Ref.d.ts +2 -2
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +8 -8
- package/script/oas/ref/toRefV31.js +1 -1
- package/script/server/createServer.d.ts +2 -2
- package/script/server/createServer.d.ts.map +1 -1
- package/script/transform/transform.d.ts +2 -2
- package/script/transform/transform.d.ts.map +1 -1
- package/esm/dsl/ModelDriver.d.ts.map +0 -1
- package/esm/dsl/ModelInsertable.d.ts.map +0 -1
- package/esm/dsl/OperationDriver.d.ts.map +0 -1
- package/esm/dsl/OperationInsertable.d.ts.map +0 -1
- package/esm/dsl/base.d.ts +0 -56
- package/esm/dsl/base.d.ts.map +0 -1
- package/esm/dsl/withConfig.d.ts +0 -115
- package/esm/dsl/withConfig.d.ts.map +0 -1
- package/esm/dsl/withConfig.js +0 -138
- package/script/dsl/ModelDriver.d.ts.map +0 -1
- package/script/dsl/ModelInsertable.d.ts.map +0 -1
- package/script/dsl/OperationDriver.d.ts.map +0 -1
- package/script/dsl/OperationInsertable.d.ts.map +0 -1
- package/script/dsl/base.d.ts +0 -56
- package/script/dsl/base.d.ts.map +0 -1
- package/script/dsl/withConfig.d.ts +0 -115
- package/script/dsl/withConfig.d.ts.map +0 -1
- package/script/dsl/withConfig.js +0 -144
- /package/esm/dsl/{ModelInsertable.js → model/ModelInsertable.js} +0 -0
- /package/esm/dsl/{OperationInsertable.js → operation/OperationInsertable.js} +0 -0
- /package/script/dsl/{ModelInsertable.js → model/ModelInsertable.js} +0 -0
- /package/script/dsl/{OperationInsertable.js → operation/OperationInsertable.js} +0 -0
package/script/dsl/base.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { OperationInsertable } from './OperationInsertable.js';
|
|
2
|
-
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
3
|
-
import type { ContentSettings } from './ContentSettings.js';
|
|
4
|
-
import type { ModelInsertable } from './ModelInsertable.js';
|
|
5
|
-
import type { GenerateContext, RegisterArgs } from '../context/GenerateContext.js';
|
|
6
|
-
import type { GeneratedValue } from '../types/GeneratedValue.js';
|
|
7
|
-
import type { GeneratorKey } from '../types/GeneratorKeys.js';
|
|
8
|
-
import { ValueBase } from './ValueBase.js';
|
|
9
|
-
import type { Definition } from './Definition.js';
|
|
10
|
-
import type { RefName } from '../types/RefName.js';
|
|
11
|
-
import type { Identifier } from './Identifier.js';
|
|
12
|
-
import type { SchemaToValueFn, SchemaType, TypeSystemOutput } from '../types/TypeSystem.js';
|
|
13
|
-
export type OperationBaseArgs = {
|
|
14
|
-
context: GenerateContext;
|
|
15
|
-
settings: ContentSettings;
|
|
16
|
-
generatorKey: GeneratorKey;
|
|
17
|
-
operation: OasOperation;
|
|
18
|
-
};
|
|
19
|
-
type TransformArgs<V extends GeneratedValue> = {
|
|
20
|
-
insertable: OperationInsertable<V>;
|
|
21
|
-
operation: OasOperation;
|
|
22
|
-
} | {
|
|
23
|
-
insertable: ModelInsertable<V>;
|
|
24
|
-
refName: RefName;
|
|
25
|
-
};
|
|
26
|
-
type CreateAndRegisterDefinition<Schema extends SchemaType> = {
|
|
27
|
-
schema: Schema;
|
|
28
|
-
identifier: Identifier;
|
|
29
|
-
schemaToValueFn: SchemaToValueFn;
|
|
30
|
-
};
|
|
31
|
-
export declare class OperationBase extends ValueBase {
|
|
32
|
-
settings: ContentSettings;
|
|
33
|
-
operation: OasOperation;
|
|
34
|
-
constructor({ context, generatorKey, settings, operation }: OperationBaseArgs);
|
|
35
|
-
insert<V extends GeneratedValue>(args: TransformArgs<V>): {
|
|
36
|
-
settings: ContentSettings;
|
|
37
|
-
definition: Definition<V>;
|
|
38
|
-
};
|
|
39
|
-
createAndRegisterDefinition<Schema extends SchemaType>({ schema, identifier, schemaToValueFn }: CreateAndRegisterDefinition<Schema>): Definition<TypeSystemOutput<Schema['type']>>;
|
|
40
|
-
register(args: Partial<RegisterArgs>): void;
|
|
41
|
-
}
|
|
42
|
-
export type ModelBaseArgs = {
|
|
43
|
-
context: GenerateContext;
|
|
44
|
-
settings: ContentSettings;
|
|
45
|
-
generatorKey: GeneratorKey;
|
|
46
|
-
refName: RefName;
|
|
47
|
-
};
|
|
48
|
-
export declare class ModelBase extends ValueBase {
|
|
49
|
-
settings: ContentSettings;
|
|
50
|
-
refName: RefName;
|
|
51
|
-
constructor({ context, settings, generatorKey, refName }: ModelBaseArgs);
|
|
52
|
-
transform<V extends GeneratedValue>(args: TransformArgs<V>): void;
|
|
53
|
-
register(args: Partial<RegisterArgs>): void;
|
|
54
|
-
}
|
|
55
|
-
export {};
|
|
56
|
-
//# sourceMappingURL=base.d.ts.map
|
package/script/dsl/base.d.ts.map
DEL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|
-
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
|
-
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
3
|
-
import type { ContentSettings } from './ContentSettings.js';
|
|
4
|
-
import type { RefName } from '../types/RefName.js';
|
|
5
|
-
import { EntityType } from './EntityType.js';
|
|
6
|
-
import type { IsModelSelectedArgs, ToModelExportPathArgs, ToModelNameArgs } from './ModelInsertable.js';
|
|
7
|
-
import type { IsOperationSelectedArgs, ToOperationExportPathArgs, ToOperationNameArgs } from './OperationInsertable.js';
|
|
8
|
-
export type GeneratorConfigConstructor = {
|
|
9
|
-
context: GenerateContext;
|
|
10
|
-
};
|
|
11
|
-
export type OperationGeneratorConfig = GeneratorConfig & OperationConfig & {
|
|
12
|
-
isSupported: (operation: OasOperation) => boolean;
|
|
13
|
-
};
|
|
14
|
-
export type ModelGeneratorConfig = GeneratorConfig & ModelConfig & {
|
|
15
|
-
isSupported: () => true;
|
|
16
|
-
};
|
|
17
|
-
export type OperationConfig = {
|
|
18
|
-
id: string;
|
|
19
|
-
type: 'operation';
|
|
20
|
-
entityType?: EntityType;
|
|
21
|
-
toName({ operation, baseSettings }: ToOperationNameArgs): string;
|
|
22
|
-
toExportPath({ operation, baseSettings }: ToOperationExportPathArgs): string;
|
|
23
|
-
isSelected({ operation, baseSettings }: IsOperationSelectedArgs): boolean;
|
|
24
|
-
};
|
|
25
|
-
export type OperationInsertableArgs = {
|
|
26
|
-
context: GenerateContext;
|
|
27
|
-
settings: ContentSettings;
|
|
28
|
-
operation: OasOperation;
|
|
29
|
-
};
|
|
30
|
-
export declare const toOperationInsertable: (config: OperationConfig) => {
|
|
31
|
-
new (args: OperationInsertableArgs): {
|
|
32
|
-
settings: ContentSettings;
|
|
33
|
-
operation: OasOperation;
|
|
34
|
-
insert<V extends import("../mod.js").GeneratedValue>(args: {
|
|
35
|
-
insertable: import("./OperationInsertable.js").OperationInsertable<V>;
|
|
36
|
-
operation: OasOperation;
|
|
37
|
-
} | {
|
|
38
|
-
insertable: import("./ModelInsertable.js").ModelInsertable<V>;
|
|
39
|
-
refName: RefName;
|
|
40
|
-
}): {
|
|
41
|
-
settings: ContentSettings;
|
|
42
|
-
definition: import("./Definition.js").Definition<V>;
|
|
43
|
-
};
|
|
44
|
-
createAndRegisterDefinition<Schema extends import("../mod.js").SchemaType>({ schema, identifier, schemaToValueFn }: {
|
|
45
|
-
schema: Schema;
|
|
46
|
-
identifier: import("./Identifier.js").Identifier;
|
|
47
|
-
schemaToValueFn: import("../mod.js").SchemaToValueFn;
|
|
48
|
-
}): import("./Definition.js").Definition<import("../mod.js").TypeSystemOutput<Schema["type"]>>;
|
|
49
|
-
register(args: Partial<import("../context/GenerateContext.js").RegisterArgs>): void;
|
|
50
|
-
context: GenerateContext;
|
|
51
|
-
skipped: boolean;
|
|
52
|
-
generatorKey: import("../types/GeneratorKeys.js").GeneratorKey | undefined;
|
|
53
|
-
};
|
|
54
|
-
id: string;
|
|
55
|
-
entityType: EntityType;
|
|
56
|
-
toName: ({ operation, baseSettings }: ToOperationNameArgs) => string;
|
|
57
|
-
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
58
|
-
isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
59
|
-
};
|
|
60
|
-
type ModelConfig = {
|
|
61
|
-
id: string;
|
|
62
|
-
type: 'model';
|
|
63
|
-
entityType: EntityType;
|
|
64
|
-
toName({ refName, baseSettings }: ToModelNameArgs): string;
|
|
65
|
-
toExportPath({ refName, baseSettings }: ToModelExportPathArgs): string;
|
|
66
|
-
isSelected({ refName, baseSettings }: IsModelSelectedArgs): boolean;
|
|
67
|
-
};
|
|
68
|
-
export type ModelInsertableArgs = {
|
|
69
|
-
context: GenerateContext;
|
|
70
|
-
settings: ContentSettings;
|
|
71
|
-
refName: RefName;
|
|
72
|
-
};
|
|
73
|
-
export declare const toModelInsertable: (config: ModelConfig) => {
|
|
74
|
-
new (args: ModelInsertableArgs): {
|
|
75
|
-
settings: ContentSettings;
|
|
76
|
-
refName: RefName;
|
|
77
|
-
transform<V extends import("../mod.js").GeneratedValue>(args: {
|
|
78
|
-
insertable: import("./OperationInsertable.js").OperationInsertable<V>;
|
|
79
|
-
operation: OasOperation;
|
|
80
|
-
} | {
|
|
81
|
-
insertable: import("./ModelInsertable.js").ModelInsertable<V>;
|
|
82
|
-
refName: RefName;
|
|
83
|
-
}): void;
|
|
84
|
-
register(args: Partial<import("../context/GenerateContext.js").RegisterArgs>): void;
|
|
85
|
-
context: GenerateContext;
|
|
86
|
-
skipped: boolean;
|
|
87
|
-
generatorKey: import("../types/GeneratorKeys.js").GeneratorKey | undefined;
|
|
88
|
-
};
|
|
89
|
-
id: string;
|
|
90
|
-
type: "model";
|
|
91
|
-
entityType: EntityType;
|
|
92
|
-
toName: ({ refName, baseSettings }: ToModelNameArgs) => string;
|
|
93
|
-
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
94
|
-
isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
95
|
-
};
|
|
96
|
-
type GeneratorConfig = {
|
|
97
|
-
id: string;
|
|
98
|
-
pinnable?: boolean;
|
|
99
|
-
};
|
|
100
|
-
export declare const toGeneratorBase: (config: GeneratorConfig & ({
|
|
101
|
-
type: "operation";
|
|
102
|
-
isSupported: (operation: OasOperation) => boolean;
|
|
103
|
-
} | {
|
|
104
|
-
type: "model";
|
|
105
|
-
})) => {
|
|
106
|
-
new ({ context }: GeneratorConfigConstructor): {
|
|
107
|
-
context: GenerateContext;
|
|
108
|
-
};
|
|
109
|
-
id: string;
|
|
110
|
-
type: "operation" | "model";
|
|
111
|
-
isSupported: (operation: OasOperation) => boolean;
|
|
112
|
-
pinnable: boolean;
|
|
113
|
-
};
|
|
114
|
-
export {};
|
|
115
|
-
//# sourceMappingURL=withConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withConfig.d.ts","sourceRoot":"","sources":["../../src/d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C,eAAe;;;;6BAXO,YAAY,KAAK,OAAO;;CAgB1D,CAAA"}
|
package/script/dsl/withConfig.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toGeneratorBase = exports.toModelInsertable = exports.toOperationInsertable = void 0;
|
|
4
|
-
const GeneratorKeys_js_1 = require("../types/GeneratorKeys.js");
|
|
5
|
-
const EntityType_js_1 = require("./EntityType.js");
|
|
6
|
-
const base_js_1 = require("./base.js");
|
|
7
|
-
const toOperationInsertable = (config) => {
|
|
8
|
-
var _a;
|
|
9
|
-
return _a = class extends base_js_1.OperationBase {
|
|
10
|
-
constructor(args) {
|
|
11
|
-
super({
|
|
12
|
-
...args,
|
|
13
|
-
generatorKey: (0, GeneratorKeys_js_1.toOperationGeneratorKey)({
|
|
14
|
-
generatorId: config.id,
|
|
15
|
-
operation: args.operation
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
Object.defineProperty(_a, "id", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true,
|
|
23
|
-
writable: true,
|
|
24
|
-
value: config.id
|
|
25
|
-
}),
|
|
26
|
-
Object.defineProperty(_a, "entityType", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true,
|
|
30
|
-
value: config.entityType ?? new EntityType_js_1.EntityType('variable')
|
|
31
|
-
}),
|
|
32
|
-
Object.defineProperty(_a, "toName", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true,
|
|
35
|
-
writable: true,
|
|
36
|
-
value: config.toName
|
|
37
|
-
}),
|
|
38
|
-
Object.defineProperty(_a, "toExportPath", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
configurable: true,
|
|
41
|
-
writable: true,
|
|
42
|
-
value: config.toExportPath
|
|
43
|
-
}),
|
|
44
|
-
Object.defineProperty(_a, "isSelected", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true,
|
|
48
|
-
value: config.isSelected
|
|
49
|
-
}),
|
|
50
|
-
_a;
|
|
51
|
-
};
|
|
52
|
-
exports.toOperationInsertable = toOperationInsertable;
|
|
53
|
-
const toModelInsertable = (config) => {
|
|
54
|
-
var _a;
|
|
55
|
-
return _a = class extends base_js_1.ModelBase {
|
|
56
|
-
constructor(args) {
|
|
57
|
-
super({
|
|
58
|
-
...args,
|
|
59
|
-
generatorKey: (0, GeneratorKeys_js_1.toModelGeneratorKey)({
|
|
60
|
-
generatorId: config.id,
|
|
61
|
-
refName: args.refName
|
|
62
|
-
})
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
Object.defineProperty(_a, "id", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true,
|
|
69
|
-
writable: true,
|
|
70
|
-
value: config.id
|
|
71
|
-
}),
|
|
72
|
-
Object.defineProperty(_a, "type", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
configurable: true,
|
|
75
|
-
writable: true,
|
|
76
|
-
value: config.type
|
|
77
|
-
}),
|
|
78
|
-
Object.defineProperty(_a, "entityType", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
configurable: true,
|
|
81
|
-
writable: true,
|
|
82
|
-
value: config.entityType
|
|
83
|
-
}),
|
|
84
|
-
Object.defineProperty(_a, "toName", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
configurable: true,
|
|
87
|
-
writable: true,
|
|
88
|
-
value: config.toName
|
|
89
|
-
}),
|
|
90
|
-
Object.defineProperty(_a, "toExportPath", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
configurable: true,
|
|
93
|
-
writable: true,
|
|
94
|
-
value: config.toExportPath
|
|
95
|
-
}),
|
|
96
|
-
Object.defineProperty(_a, "isSelected", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
configurable: true,
|
|
99
|
-
writable: true,
|
|
100
|
-
value: config.isSelected
|
|
101
|
-
}),
|
|
102
|
-
_a;
|
|
103
|
-
};
|
|
104
|
-
exports.toModelInsertable = toModelInsertable;
|
|
105
|
-
const toGeneratorBase = (config) => {
|
|
106
|
-
var _a;
|
|
107
|
-
return _a = class {
|
|
108
|
-
constructor({ context }) {
|
|
109
|
-
Object.defineProperty(this, "context", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
configurable: true,
|
|
112
|
-
writable: true,
|
|
113
|
-
value: void 0
|
|
114
|
-
});
|
|
115
|
-
this.context = context;
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
Object.defineProperty(_a, "id", {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
configurable: true,
|
|
121
|
-
writable: true,
|
|
122
|
-
value: config.id
|
|
123
|
-
}),
|
|
124
|
-
Object.defineProperty(_a, "type", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
configurable: true,
|
|
127
|
-
writable: true,
|
|
128
|
-
value: config.type
|
|
129
|
-
}),
|
|
130
|
-
Object.defineProperty(_a, "isSupported", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
configurable: true,
|
|
133
|
-
writable: true,
|
|
134
|
-
value: config.type === 'operation' ? config.isSupported : () => true
|
|
135
|
-
}),
|
|
136
|
-
Object.defineProperty(_a, "pinnable", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
configurable: true,
|
|
139
|
-
writable: true,
|
|
140
|
-
value: config.pinnable ?? false
|
|
141
|
-
}),
|
|
142
|
-
_a;
|
|
143
|
-
};
|
|
144
|
-
exports.toGeneratorBase = toGeneratorBase;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|