@finos/legend-graph 14.0.1 → 14.0.4
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/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/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_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/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 +5 -5
- package/package.json +8 -8
- 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/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/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_RelationalConnectionBuilderHelper.ts +14 -0
- package/src/graphManager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.ts +22 -0
- 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
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
DefaultH2AuthenticationStrategy,
|
|
41
41
|
DelegatedKerberosAuthenticationStrategy,
|
|
42
42
|
GCPWorkloadIdentityFederationAuthenticationStrategy,
|
|
43
|
+
MiddleTierUsernamePasswordAuthenticationStrategy,
|
|
43
44
|
} from '../../../../../../../../graph/metamodel/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js';
|
|
44
45
|
import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js';
|
|
45
46
|
import {
|
|
@@ -62,6 +63,7 @@ import {
|
|
|
62
63
|
V1_DelegatedKerberosAuthenticationStrategy,
|
|
63
64
|
V1_UsernamePasswordAuthenticationStrategy,
|
|
64
65
|
V1_GCPWorkloadIdentityFederationAuthenticationStrategy,
|
|
66
|
+
V1_MiddleTierUsernamePasswordAuthenticationStrategy,
|
|
65
67
|
} from '../../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js';
|
|
66
68
|
import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js';
|
|
67
69
|
|
|
@@ -308,7 +310,19 @@ export const V1_buildAuthenticationStrategy = (
|
|
|
308
310
|
);
|
|
309
311
|
metamodel.baseVaultReference = protocol.baseVaultReference;
|
|
310
312
|
return metamodel;
|
|
313
|
+
} else if (
|
|
314
|
+
protocol instanceof V1_MiddleTierUsernamePasswordAuthenticationStrategy
|
|
315
|
+
) {
|
|
316
|
+
assertNonEmptyString(
|
|
317
|
+
protocol.vaultReference,
|
|
318
|
+
`Middle Tier Username password authentication strategy 'vaultReference' field is missing or empty`,
|
|
319
|
+
);
|
|
320
|
+
|
|
321
|
+
return new MiddleTierUsernamePasswordAuthenticationStrategy(
|
|
322
|
+
protocol.vaultReference,
|
|
323
|
+
);
|
|
311
324
|
}
|
|
325
|
+
|
|
312
326
|
const extraConnectionAuthenticationStrategyBuilders =
|
|
313
327
|
context.extensions.plugins.flatMap(
|
|
314
328
|
(plugin) =>
|
|
@@ -63,6 +63,7 @@ import {
|
|
|
63
63
|
V1_DelegatedKerberosAuthenticationStrategy,
|
|
64
64
|
V1_UsernamePasswordAuthenticationStrategy,
|
|
65
65
|
V1_GCPWorkloadIdentityFederationAuthenticationStrategy,
|
|
66
|
+
V1_MiddleTierUsernamePasswordAuthenticationStrategy,
|
|
66
67
|
} from '../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js';
|
|
67
68
|
import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js';
|
|
68
69
|
import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js';
|
|
@@ -346,6 +347,7 @@ enum V1_AuthenticationStrategyType {
|
|
|
346
347
|
OAUTH = 'oauth',
|
|
347
348
|
USERNAME_PASSWORD = 'userNamePassword',
|
|
348
349
|
GCP_WORKLOAD_IDENTITY_FEDERATION = 'gcpWorkloadIdentityFederation',
|
|
350
|
+
MIDDLE_TIER_USERNAME_PASSWORD = 'middleTierUserNamePassword',
|
|
349
351
|
}
|
|
350
352
|
|
|
351
353
|
const V1_delegatedKerberosAuthenticationStrategyModelSchema = createModelSchema(
|
|
@@ -390,6 +392,14 @@ const V1_GCPApplicationDefaultCredentialsAuthenticationStrategyModelSchema =
|
|
|
390
392
|
),
|
|
391
393
|
});
|
|
392
394
|
|
|
395
|
+
const V1_MiddleTierUsernamePasswordAuthenticationStrategyModelSchema =
|
|
396
|
+
createModelSchema(V1_MiddleTierUsernamePasswordAuthenticationStrategy, {
|
|
397
|
+
_type: usingConstantValueSchema(
|
|
398
|
+
V1_AuthenticationStrategyType.MIDDLE_TIER_USERNAME_PASSWORD,
|
|
399
|
+
),
|
|
400
|
+
vaultReference: primitive(),
|
|
401
|
+
});
|
|
402
|
+
|
|
393
403
|
const V1_GCPWorkloadIdentityFederationAuthenticationStrategyModelSchema =
|
|
394
404
|
createModelSchema(V1_GCPWorkloadIdentityFederationAuthenticationStrategy, {
|
|
395
405
|
_type: usingConstantValueSchema(
|
|
@@ -460,6 +470,13 @@ export const V1_serializeAuthenticationStrategy = (
|
|
|
460
470
|
V1_UsernamePasswordAuthenticationStrategyModelSchema,
|
|
461
471
|
protocol,
|
|
462
472
|
);
|
|
473
|
+
} else if (
|
|
474
|
+
protocol instanceof V1_MiddleTierUsernamePasswordAuthenticationStrategy
|
|
475
|
+
) {
|
|
476
|
+
return serialize(
|
|
477
|
+
V1_MiddleTierUsernamePasswordAuthenticationStrategyModelSchema,
|
|
478
|
+
protocol,
|
|
479
|
+
);
|
|
463
480
|
}
|
|
464
481
|
const extraConnectionAuthenticationStrategyProtocolSerializers =
|
|
465
482
|
plugins.flatMap(
|
|
@@ -517,6 +534,11 @@ export const V1_deserializeAuthenticationStrategy = (
|
|
|
517
534
|
V1_UsernamePasswordAuthenticationStrategyModelSchema,
|
|
518
535
|
json,
|
|
519
536
|
);
|
|
537
|
+
case V1_AuthenticationStrategyType.MIDDLE_TIER_USERNAME_PASSWORD:
|
|
538
|
+
return deserialize(
|
|
539
|
+
V1_MiddleTierUsernamePasswordAuthenticationStrategyModelSchema,
|
|
540
|
+
json,
|
|
541
|
+
);
|
|
520
542
|
default: {
|
|
521
543
|
const extraConnectionAuthenticationStrategyProtocolDeserializers =
|
|
522
544
|
plugins.flatMap(
|
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
|
-
}
|