@finos/legend-graph 14.0.0 → 14.0.3
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/lib/graph/Core_HashUtils.d.ts +1 -0
- package/lib/graph/Core_HashUtils.d.ts.map +1 -1
- package/lib/graph/Core_HashUtils.js +1 -0
- package/lib/graph/Core_HashUtils.js.map +1 -1
- package/lib/graph/helpers/DomainHelper.d.ts +4 -0
- package/lib/graph/helpers/DomainHelper.d.ts.map +1 -1
- package/lib/graph/helpers/DomainHelper.js +9 -1
- package/lib/graph/helpers/DomainHelper.js.map +1 -1
- package/lib/graph/helpers/ValueSpecificationHelper.d.ts +1 -1
- package/lib/graph/helpers/ValueSpecificationHelper.d.ts.map +1 -1
- package/lib/graph/helpers/ValueSpecificationHelper.js +4 -2
- package/lib/graph/helpers/ValueSpecificationHelper.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/mapping/PropertyMapping.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/mapping/PropertyMapping.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataDataType.d.ts +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataDataType.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataDataType.js +3 -3
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataDataType.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataProperty.d.ts +2 -2
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataProperty.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataProperty.js +2 -2
- package/lib/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataProperty.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/AuthenticationStrategy.d.ts +5 -0
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/AuthenticationStrategy.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js +13 -0
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js.map +1 -1
- package/lib/graphManager/AbstractPureGraphManager.d.ts +2 -4
- package/lib/graphManager/AbstractPureGraphManager.d.ts.map +1 -1
- package/lib/graphManager/AbstractPureGraphManager.js.map +1 -1
- package/lib/graphManager/action/changeDetection/StoreRelational_ObserverHelper.d.ts +2 -1
- package/lib/graphManager/action/changeDetection/StoreRelational_ObserverHelper.d.ts.map +1 -1
- package/lib/graphManager/action/changeDetection/StoreRelational_ObserverHelper.js +8 -1
- package/lib/graphManager/action/changeDetection/StoreRelational_ObserverHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.d.ts +2 -4
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.js +8 -11
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.d.ts +0 -3
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.js +1 -12
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.d.ts +0 -3
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.js +0 -8
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts +0 -3
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.js +0 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.d.ts +8 -2
- package/lib/graphManager/protocol/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.js +18 -6
- package/lib/graphManager/protocol/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.js +3 -3
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.js +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.d.ts +4 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js +9 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js +7 -2
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.js +1 -3
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.js +6 -2
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.js +11 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.js +17 -8
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +4 -4
- package/src/graph/Core_HashUtils.ts +1 -0
- package/src/graph/helpers/DomainHelper.ts +17 -0
- package/src/graph/helpers/ValueSpecificationHelper.ts +6 -1
- package/src/graph/metamodel/pure/packageableElements/mapping/PropertyMapping.ts +1 -1
- package/src/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataDataType.ts +4 -4
- package/src/graph/metamodel/pure/packageableElements/store/flatData/model/FlatDataProperty.ts +3 -3
- package/src/graph/metamodel/pure/packageableElements/store/relational/connection/AuthenticationStrategy.ts +19 -0
- package/src/graphManager/AbstractPureGraphManager.ts +3 -13
- package/src/graphManager/action/changeDetection/StoreRelational_ObserverHelper.ts +16 -0
- package/src/graphManager/protocol/pure/v1/V1_PureGraphManager.ts +14 -24
- package/src/graphManager/protocol/pure/v1/engine/V1_Engine.ts +0 -39
- package/src/graphManager/protocol/pure/v1/engine/V1_EngineHelper.ts +0 -26
- package/src/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.ts +0 -17
- package/src/graphManager/protocol/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.ts +25 -7
- package/src/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.ts +4 -4
- package/src/graphManager/protocol/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.ts +2 -2
- package/src/graphManager/protocol/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.ts +14 -0
- package/src/graphManager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts +8 -0
- package/src/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.ts +3 -3
- package/src/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.ts +14 -0
- package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.ts +22 -0
- package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.ts +30 -12
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -1
- package/lib/graphManager/action/generation/ImportConfigurationDescription.d.ts +0 -26
- package/lib/graphManager/action/generation/ImportConfigurationDescription.d.ts.map +0 -1
- package/lib/graphManager/action/generation/ImportConfigurationDescription.js +0 -28
- package/lib/graphManager/action/generation/ImportConfigurationDescription.js.map +0 -1
- package/src/graphManager/action/generation/ImportConfigurationDescription.ts +0 -34
|
@@ -92,19 +92,28 @@ const V1_flatDataDecimalSchema = createModelSchema(V1_FlatDataDecimal, {
|
|
|
92
92
|
});
|
|
93
93
|
const V1_flatDataDateSchema = createModelSchema(V1_FlatDataDate, {
|
|
94
94
|
_type: usingConstantValueSchema(V1_FlatDataDataTypeType.FLAT_DATA_DATE),
|
|
95
|
-
dateFormat:
|
|
95
|
+
dateFormat: custom(
|
|
96
|
+
(val) => (Array.isArray(val) ? serializeArray(val, (v) => v) : [val]),
|
|
97
|
+
(val) => (Array.isArray(val) ? deserializeArray(val, (v) => v) : [val]),
|
|
98
|
+
),
|
|
96
99
|
timeZone: optional(primitive()),
|
|
97
100
|
});
|
|
98
101
|
const V1_flatDataDateTimeSchema = createModelSchema(V1_FlatDataDateTime, {
|
|
99
102
|
_type: usingConstantValueSchema(V1_FlatDataDataTypeType.FLAT_DATA_DATE_TIME),
|
|
100
|
-
dateFormat:
|
|
103
|
+
dateFormat: custom(
|
|
104
|
+
(val) => (Array.isArray(val) ? serializeArray(val, (v) => v) : [val]),
|
|
105
|
+
(val) => (Array.isArray(val) ? deserializeArray(val, (v) => v) : [val]),
|
|
106
|
+
),
|
|
101
107
|
timeZone: optional(primitive()),
|
|
102
108
|
});
|
|
103
109
|
const V1_flatDataStrictDateSchema = createModelSchema(V1_FlatDataStrictDate, {
|
|
104
110
|
_type: usingConstantValueSchema(
|
|
105
111
|
V1_FlatDataDataTypeType.FLAT_DATA_STRICT_DATE,
|
|
106
112
|
),
|
|
107
|
-
dateFormat:
|
|
113
|
+
dateFormat: custom(
|
|
114
|
+
(val) => (Array.isArray(val) ? serializeArray(val, (v) => v) : [val]),
|
|
115
|
+
(val) => (Array.isArray(val) ? deserializeArray(val, (v) => v) : [val]),
|
|
116
|
+
),
|
|
108
117
|
timeZone: optional(primitive()),
|
|
109
118
|
});
|
|
110
119
|
const V1_flatDataRecordTypeSchema = createModelSchema(V1_FlatDataRecordType, {
|
|
@@ -229,15 +238,24 @@ function V1_deserializeFlatDataRecordField(
|
|
|
229
238
|
const V1_flatDataPropertyModelSchema = createModelSchema(V1_FlatDataProperty, {
|
|
230
239
|
name: primitive(),
|
|
231
240
|
value: custom(
|
|
232
|
-
(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
(values) =>
|
|
242
|
+
Array.isArray(values)
|
|
243
|
+
? serializeArray(values, (value) => value)
|
|
244
|
+
: [values],
|
|
245
|
+
(values) => {
|
|
246
|
+
if (Array.isArray(values)) {
|
|
247
|
+
return deserializeArray(values, (value) => {
|
|
248
|
+
assertTrue(
|
|
249
|
+
typeof value === 'boolean' ||
|
|
250
|
+
typeof value === 'string' ||
|
|
251
|
+
typeof value === 'number',
|
|
252
|
+
`Can't deserialize flat-data property value '${value}'`,
|
|
253
|
+
);
|
|
254
|
+
return value;
|
|
255
|
+
});
|
|
256
|
+
} else {
|
|
257
|
+
return [values];
|
|
258
|
+
}
|
|
241
259
|
},
|
|
242
260
|
),
|
|
243
261
|
});
|
package/src/index.ts
CHANGED
|
@@ -226,7 +226,6 @@ export * from './graphManager/action/query/Query.js';
|
|
|
226
226
|
export * from './graphManager/action/query/QuerySearchSpecification.js';
|
|
227
227
|
export * from './graphManager/action/EngineError.js';
|
|
228
228
|
export * from './graphManager/action/SourceInformationHelper.js';
|
|
229
|
-
export * from './graphManager/action/generation/ImportConfigurationDescription.js';
|
|
230
229
|
export * from './graphManager/action/generation/DatabaseBuilderInput.js';
|
|
231
230
|
export * from './graphManager/action/generation/GenerationConfigurationDescription.js';
|
|
232
231
|
export { GenerationOutput } from './graphManager/action/generation/GenerationOutput.js';
|
package/tsconfig.json
CHANGED
|
@@ -296,7 +296,6 @@
|
|
|
296
296
|
"./src/graphManager/action/generation/DatabaseBuilderInput.ts",
|
|
297
297
|
"./src/graphManager/action/generation/GenerationConfigurationDescription.ts",
|
|
298
298
|
"./src/graphManager/action/generation/GenerationOutput.ts",
|
|
299
|
-
"./src/graphManager/action/generation/ImportConfigurationDescription.ts",
|
|
300
299
|
"./src/graphManager/action/query/Query.ts",
|
|
301
300
|
"./src/graphManager/action/query/QuerySearchSpecification.ts",
|
|
302
301
|
"./src/graphManager/action/service/DEPRECATED__ServiceTestResult.ts",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare enum ImportMode {
|
|
17
|
-
CODE_IMPORT = "codeImport",
|
|
18
|
-
SCHEMA_IMPORT = "schemaImport"
|
|
19
|
-
}
|
|
20
|
-
export declare const getImportMode: (value: string) => ImportMode;
|
|
21
|
-
export declare class ImportConfigurationDescription {
|
|
22
|
-
key: string;
|
|
23
|
-
label: string;
|
|
24
|
-
modelImportMode: ImportMode;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=ImportConfigurationDescription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImportConfigurationDescription.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/action/generation/ImportConfigurationDescription.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,oBAAY,UAAU;IACpB,WAAW,eAAe;IAC1B,aAAa,iBAAiB;CAC/B;AAED,eAAO,MAAM,aAAa,UAAW,MAAM,KAAG,UAI3C,CAAC;AAEJ,qBAAa,8BAA8B;IACzC,GAAG,EAAG,MAAM,CAAC;IACb,KAAK,EAAG,MAAM,CAAC;IACf,eAAe,EAAG,UAAU,CAAC;CAC9B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
17
|
-
export var ImportMode;
|
|
18
|
-
(function (ImportMode) {
|
|
19
|
-
ImportMode["CODE_IMPORT"] = "codeImport";
|
|
20
|
-
ImportMode["SCHEMA_IMPORT"] = "schemaImport";
|
|
21
|
-
})(ImportMode = ImportMode || (ImportMode = {}));
|
|
22
|
-
export const getImportMode = (value) => guaranteeNonNullable(Object.values(ImportMode).find((mode) => mode === value), `Encountered unsupported import mode '${value}'`);
|
|
23
|
-
export class ImportConfigurationDescription {
|
|
24
|
-
key;
|
|
25
|
-
label;
|
|
26
|
-
modelImportMode;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=ImportConfigurationDescription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImportConfigurationDescription.js","sourceRoot":"","sources":["../../../../src/graphManager/action/generation/ImportConfigurationDescription.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,wCAA0B,CAAA;IAC1B,4CAA8B,CAAA;AAChC,CAAC,EAHW,UAAU,GAAV,UAAU,KAAV,UAAU,QAGrB;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAc,EAAE,CACzD,oBAAoB,CAClB,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,EACxD,wCAAwC,KAAK,GAAG,CACjD,CAAC;AAEJ,MAAM,OAAO,8BAA8B;IACzC,GAAG,CAAU;IACb,KAAK,CAAU;IACf,eAAe,CAAc;CAC9B"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
18
|
-
|
|
19
|
-
export enum ImportMode {
|
|
20
|
-
CODE_IMPORT = 'codeImport',
|
|
21
|
-
SCHEMA_IMPORT = 'schemaImport',
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const getImportMode = (value: string): ImportMode =>
|
|
25
|
-
guaranteeNonNullable(
|
|
26
|
-
Object.values(ImportMode).find((mode) => mode === value),
|
|
27
|
-
`Encountered unsupported import mode '${value}'`,
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
export class ImportConfigurationDescription {
|
|
31
|
-
key!: string;
|
|
32
|
-
label!: string;
|
|
33
|
-
modelImportMode!: ImportMode;
|
|
34
|
-
}
|