@finos/legend-application-studio 28.18.124 → 28.18.126
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/__lib__/LegendStudioNavigation.d.ts +7 -0
- package/lib/__lib__/LegendStudioNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioNavigation.js +5 -0
- package/lib/__lib__/LegendStudioNavigation.js.map +1 -1
- package/lib/application/LegendIngestionConfiguration.d.ts +40 -0
- package/lib/application/LegendIngestionConfiguration.d.ts.map +1 -0
- package/lib/application/LegendIngestionConfiguration.js +57 -0
- package/lib/application/LegendIngestionConfiguration.js.map +1 -0
- package/lib/application/LegendStudioApplicationConfig.d.ts +2 -0
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +6 -0
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/ElementIconUtils.d.ts.map +1 -1
- package/lib/components/ElementIconUtils.js +3 -1
- package/lib/components/ElementIconUtils.js.map +1 -1
- package/lib/components/LegendStudioWebApplication.d.ts.map +1 -1
- package/lib/components/LegendStudioWebApplication.js +16 -0
- package/lib/components/LegendStudioWebApplication.js.map +1 -1
- package/lib/components/editor/Editor.d.ts.map +1 -1
- package/lib/components/editor/Editor.js +3 -2
- package/lib/components/editor/Editor.js.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.d.ts.map +1 -1
- package/lib/components/editor/editor-group/EditorGroup.js +5 -0
- package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.d.ts +19 -0
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.d.ts.map +1 -0
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js +85 -0
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js.map +1 -0
- package/lib/components/lazy-text-editor/LazyTextEditor.js +1 -1
- package/lib/components/lazy-text-editor/LazyTextEditor.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +3 -1
- package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
- package/lib/stores/editor/EditorGraphState.js +4 -1
- package/lib/stores/editor/EditorGraphState.js.map +1 -1
- package/lib/stores/editor/EditorStore.d.ts +6 -2
- package/lib/stores/editor/EditorStore.d.ts.map +1 -1
- package/lib/stores/editor/EditorStore.js +21 -4
- package/lib/stores/editor/EditorStore.js.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts +2 -1
- package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.js +6 -2
- package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.d.ts +2 -1
- package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditFormModeState.js +2 -2
- package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
- package/lib/stores/editor/GraphEditorMode.d.ts +2 -1
- package/lib/stores/editor/GraphEditorMode.d.ts.map +1 -1
- package/lib/stores/editor/GraphEditorMode.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorInitialConfiguration.d.ts +30 -0
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorInitialConfiguration.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorInitialConfiguration.js +50 -0
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorInitialConfiguration.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.d.ts +2 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ElementEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js +4 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.d.ts +40 -0
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js +119 -0
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js.map +1 -0
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts +2 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts.map +1 -1
- package/lib/stores/editor/utils/ModelClassifierUtils.js +1 -0
- package/lib/stores/editor/utils/ModelClassifierUtils.js.map +1 -1
- package/lib/stores/ingestion/IngestDeploymentServerClient.d.ts +29 -0
- package/lib/stores/ingestion/IngestDeploymentServerClient.d.ts.map +1 -0
- package/lib/stores/ingestion/IngestDeploymentServerClient.js +49 -0
- package/lib/stores/ingestion/IngestDeploymentServerClient.js.map +1 -0
- package/lib/stores/ingestion/IngestDiscoveryServerClient.d.ts +26 -0
- package/lib/stores/ingestion/IngestDiscoveryServerClient.d.ts.map +1 -0
- package/lib/stores/ingestion/IngestDiscoveryServerClient.js +35 -0
- package/lib/stores/ingestion/IngestDiscoveryServerClient.js.map +1 -0
- package/lib/stores/ingestion/IngestionDeploymentResponse.d.ts +40 -0
- package/lib/stores/ingestion/IngestionDeploymentResponse.d.ts.map +1 -0
- package/lib/stores/ingestion/IngestionDeploymentResponse.js +55 -0
- package/lib/stores/ingestion/IngestionDeploymentResponse.js.map +1 -0
- package/lib/stores/ingestion/IngestionManager.d.ts +35 -0
- package/lib/stores/ingestion/IngestionManager.d.ts.map +1 -0
- package/lib/stores/ingestion/IngestionManager.js +83 -0
- package/lib/stores/ingestion/IngestionManager.js.map +1 -0
- package/package.json +10 -8
- package/src/__lib__/LegendStudioNavigation.ts +14 -0
- package/src/application/LegendIngestionConfiguration.ts +94 -0
- package/src/application/LegendStudioApplicationConfig.ts +15 -0
- package/src/components/ElementIconUtils.tsx +3 -0
- package/src/components/LegendStudioWebApplication.tsx +29 -0
- package/src/components/editor/Editor.tsx +8 -3
- package/src/components/editor/editor-group/EditorGroup.tsx +4 -1
- package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +11 -0
- package/src/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.tsx +214 -0
- package/src/components/lazy-text-editor/LazyTextEditor.tsx +1 -1
- package/src/stores/editor/EditorGraphState.ts +3 -0
- package/src/stores/editor/EditorStore.ts +39 -1
- package/src/stores/editor/EditorTabManagerState.ts +6 -0
- package/src/stores/editor/GraphEditFormModeState.ts +9 -2
- package/src/stores/editor/GraphEditorMode.ts +5 -1
- package/src/stores/editor/editor-state/element-editor-state/ElementEditorInitialConfiguration.ts +97 -0
- package/src/stores/editor/editor-state/element-editor-state/ElementEditorState.ts +6 -1
- package/src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.ts +5 -0
- package/src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts +184 -0
- package/src/stores/editor/utils/ModelClassifierUtils.ts +1 -0
- package/src/stores/ingestion/IngestDeploymentServerClient.ts +83 -0
- package/src/stores/ingestion/IngestDiscoveryServerClient.ts +52 -0
- package/src/stores/ingestion/IngestionDeploymentResponse.ts +73 -0
- package/src/stores/ingestion/IngestionManager.ts +163 -0
- package/tsconfig.json +8 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SnowflakeAppFunctionActivatorEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,mCAAmC,EACnC,2CAA2C,EAC3C,oBAAoB,EACpB,eAAe,EACf,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,aAAa,GACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,OAAO,wCAAyC,SAAQ,kBAAkB;IACrE,aAAa,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IACrC,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAE5C,YAAY,WAAwB,EAAE,OAAqB;QACzD,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAE5B,cAAc,CAAC,IAAI,EAAE;YACnB,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,MAAM;YACjB,eAAe,EAAE,MAAM;YACvB,eAAe,EAAE,MAAM;YACvB,sBAAsB,EAAE,MAAM;YAC9B,oBAAoB,EAAE,MAAM;YAC5B,qBAAqB,EAAE,MAAM;YAC7B,gBAAgB,EAAE,MAAM;YACxB,QAAQ,EAAE,IAAI;YACd,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,SAAS;QACX,OAAO,oBAAoB,CACzB,aAAa,CACX,IAAI,CAAC,OAAO,EACZ,YAAY,EACZ,2EAA2E,CAC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f,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC3E,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;IACH,CAAC;IAED,CAAC,eAAe;QACd,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;QAC9B,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,iCAAiC,CACrF,IAAI,CAAC,SAAS,EACd,IAAI,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAChE,CAAC;YACF,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACjE,gEAAgE,CACjE,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC3E,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,SAAS,CACP,UAAwB,EACxB,WAAwB;QAExB,OAAO,IAAI,wCAAwC,CACjD,WAAW,EACX,UAAU,CACX,CAAC;IACJ,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"SnowflakeAppFunctionActivatorEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,mCAAmC,EACnC,2CAA2C,EAC3C,oBAAoB,EAC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,CAAC;IACH,CAAC;IAED,CAAC,eAAe;QACd,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;QAC9B,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,iCAAiC,CACrF,IAAI,CAAC,SAAS,EACd,IAAI,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAChE,CAAC;YACF,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,aAAa,CACjE,gEAAgE,CACjE,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC3E,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,SAAS,CACP,UAAwB,EACxB,WAAwB;QAExB,OAAO,IAAI,wCAAwC,CACjD,WAAW,EACX,UAAU,CACX,CAAC;IACJ,CAAC;CACF"}
|
package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.d.ts
ADDED
@@ -0,0 +1,40 @@
|
|
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 { IngestDefinition, type PackageableElement } from '@finos/legend-graph';
|
17
|
+
import { ElementEditorState } from '../ElementEditorState.js';
|
18
|
+
import type { EditorStore } from '../../../EditorStore.js';
|
19
|
+
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
20
|
+
import type { IngestionManager } from '../../../../ingestion/IngestionManager.js';
|
21
|
+
import type { IngestDefinitionValidationResponse } from '../../../../ingestion/IngestionDeploymentResponse.js';
|
22
|
+
import { EditorInitialConfiguration } from '../ElementEditorInitialConfiguration.js';
|
23
|
+
import type { AuthContextProps } from 'react-oidc-context';
|
24
|
+
export declare const generateUrlToDeployOnOpen: (val: IngestDefinitionEditorState) => string;
|
25
|
+
export declare class IngestDefinitionEditorState extends ElementEditorState {
|
26
|
+
validationError: IngestDefinitionValidationResponse | undefined;
|
27
|
+
deploymentState: ActionState;
|
28
|
+
deployOnOpen: boolean;
|
29
|
+
constructor(editorStore: EditorStore, element: PackageableElement, config?: EditorInitialConfiguration);
|
30
|
+
get ingestionManager(): IngestionManager | undefined;
|
31
|
+
setValError(val: IngestDefinitionValidationResponse | undefined): void;
|
32
|
+
setDeployOnOpen(value: boolean): void;
|
33
|
+
init_with_deploy(auth: AuthContextProps): GeneratorFn<void>;
|
34
|
+
deploy(token: string | undefined): GeneratorFn<void>;
|
35
|
+
reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
|
36
|
+
get validForDeployment(): boolean;
|
37
|
+
get validationMessage(): string;
|
38
|
+
get ingest(): IngestDefinition;
|
39
|
+
}
|
40
|
+
//# sourceMappingURL=IngestDefinitionEditorState.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestDefinitionEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gBAAgB,EAAE,KA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AM7B;CACF"}
|
package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js
ADDED
@@ -0,0 +1,119 @@
|
|
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 { IngestDefinition } from '@finos/legend-graph';
|
17
|
+
import { ElementEditorState } from '../ElementEditorState.js';
|
18
|
+
import { ActionState, assertErrorThrown, assertTrue, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
|
19
|
+
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
20
|
+
import { EditorInitialConfiguration, IngestElementEditorInitialConfiguration, } from '../ElementEditorInitialConfiguration.js';
|
21
|
+
import { EXTERNAL_APPLICATION_NAVIGATION__generateUrlWithEditorConfig } from '../../../../../__lib__/LegendStudioNavigation.js';
|
22
|
+
const createEditorInitialConfiguration = () => {
|
23
|
+
const config = new EditorInitialConfiguration();
|
24
|
+
const ingest = new IngestElementEditorInitialConfiguration();
|
25
|
+
ingest.deployOnOpen = true;
|
26
|
+
config.elementEditorConfiguration = ingest;
|
27
|
+
return config;
|
28
|
+
};
|
29
|
+
const editorInitialConfigToBase64 = (val) => btoa(JSON.stringify(EditorInitialConfiguration.serialization.toJson(val)));
|
30
|
+
export const generateUrlToDeployOnOpen = (val) => {
|
31
|
+
return val.editorStore.applicationStore.navigationService.navigator.generateAddress(EXTERNAL_APPLICATION_NAVIGATION__generateUrlWithEditorConfig(val.editorStore.editorMode.generateElementLink(val.ingest.path), editorInitialConfigToBase64(createEditorInitialConfiguration())));
|
32
|
+
};
|
33
|
+
export class IngestDefinitionEditorState extends ElementEditorState {
|
34
|
+
validationError;
|
35
|
+
deploymentState = ActionState.create();
|
36
|
+
deployOnOpen = false;
|
37
|
+
constructor(editorStore, element, config) {
|
38
|
+
super(editorStore, element);
|
39
|
+
makeObservable(this, {
|
40
|
+
deploymentState: observable,
|
41
|
+
deployOnOpen: observable,
|
42
|
+
setDeployOnOpen: observable,
|
43
|
+
validationError: observable,
|
44
|
+
setValError: action,
|
45
|
+
init_with_deploy: flow,
|
46
|
+
deploy: flow,
|
47
|
+
});
|
48
|
+
const elementConfig = config?.elementEditorConfiguration;
|
49
|
+
if (elementConfig instanceof IngestElementEditorInitialConfiguration) {
|
50
|
+
this.deployOnOpen = elementConfig.deployOnOpen ?? false;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
get ingestionManager() {
|
54
|
+
return this.editorStore.ingestionManager;
|
55
|
+
}
|
56
|
+
setValError(val) {
|
57
|
+
this.validationError = val;
|
58
|
+
}
|
59
|
+
setDeployOnOpen(value) {
|
60
|
+
this.deployOnOpen = value;
|
61
|
+
}
|
62
|
+
*init_with_deploy(auth) {
|
63
|
+
this.setDeployOnOpen(false);
|
64
|
+
if (!auth.isAuthenticated) {
|
65
|
+
auth
|
66
|
+
.signinRedirect({
|
67
|
+
state: generateUrlToDeployOnOpen(this),
|
68
|
+
})
|
69
|
+
.catch(this.editorStore.applicationStore.alertUnhandledError);
|
70
|
+
return;
|
71
|
+
}
|
72
|
+
const token = auth.user?.access_token;
|
73
|
+
yield flowResult(this.generateElementGrammar()).catch(this.editorStore.applicationStore.alertUnhandledError);
|
74
|
+
flowResult(this.deploy(token)).catch(this.editorStore.applicationStore.alertUnhandledError);
|
75
|
+
}
|
76
|
+
*deploy(token) {
|
77
|
+
try {
|
78
|
+
assertTrue(this.validForDeployment, 'Ingest definition is not valid for deployment');
|
79
|
+
this.deploymentState.inProgress();
|
80
|
+
const response = (yield guaranteeNonNullable(this.ingestionManager).deploy(guaranteeNonNullable(this.textContent), guaranteeNonNullable(this.ingest.appDirDeployment), this.deploymentState, token));
|
81
|
+
const deploymentResponse = response.deploymentResponse;
|
82
|
+
if (deploymentResponse) {
|
83
|
+
this.editorStore.applicationStore.notificationService.notifySuccess(`Ingest definition successfully deployed on ${deploymentResponse.ingestDefinitionUrn}`);
|
84
|
+
}
|
85
|
+
else {
|
86
|
+
this.setValError(response.validationResponse);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
catch (error) {
|
90
|
+
assertErrorThrown(error);
|
91
|
+
this.editorStore.applicationStore.notificationService.notifyError(`Ingest definition failed to deploy: ${error.message}`);
|
92
|
+
}
|
93
|
+
finally {
|
94
|
+
this.deploymentState.complete();
|
95
|
+
}
|
96
|
+
}
|
97
|
+
reprocess(newElement, editorStore) {
|
98
|
+
return new IngestDefinitionEditorState(editorStore, newElement);
|
99
|
+
}
|
100
|
+
get validForDeployment() {
|
101
|
+
return Boolean(this.ingest.appDirDeployment && this.textContent && this.ingestionManager);
|
102
|
+
}
|
103
|
+
get validationMessage() {
|
104
|
+
if (!this.ingest.appDirDeployment) {
|
105
|
+
return 'No app dir deployment found';
|
106
|
+
}
|
107
|
+
else if (!this.textContent) {
|
108
|
+
return 'No ingest definition found';
|
109
|
+
}
|
110
|
+
else if (!this.ingestionManager) {
|
111
|
+
return 'No ingestion manager found';
|
112
|
+
}
|
113
|
+
return 'Deploy';
|
114
|
+
}
|
115
|
+
get ingest() {
|
116
|
+
return guaranteeType(this.element, IngestDefinition, 'Element inside ingest editor state must be a IngestDefinition');
|
117
|
+
}
|
118
|
+
}
|
119
|
+
//# sourceMappingURL=IngestDefinitionEditorState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestDefinitionEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinit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D,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;IACH,CAAC;IAED,SAAS,CACP,UAA8B,EAC9B,WAAwB;QAExB,OAAO,IAAI,2BAA2B,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IAClE,CAAC;IAED,IAAI,kBAAkB;QACpB,OAAO,OAAO,CACZ,IAAI,CAAC,MAAM,CAAC,gBAAgB,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,gBAAgB,CAC1E,CAAC;IACJ,CAAC;IAED,IAAI,iBAAiB;QACnB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC;YAClC,OAAO,6BAA6B,CAAC;QACvC,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAC7B,OAAO,4BAA4B,CAAC;QACtC,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAClC,OAAO,4BAA4B,CAAC;QACtC,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,aAAa,CAClB,IAAI,CAAC,OAAO,EACZ,gBAAgB,EAChB,+DAA+D,CAChE,CAAC;IACJ,CAAC;CACF"}
|
@@ -48,7 +48,8 @@ export declare enum PACKAGEABLE_ELEMENT_TYPE {
|
|
48
48
|
HOSTED_SERVICE = "HOSTED_SERVICE",
|
49
49
|
_DATA_PRODUCT = "BETA_DATA_PRODUCT",
|
50
50
|
TEMPORARY__LOCAL_CONNECTION = "LOCAL_CONNECTION",
|
51
|
-
INTERNAL__UnknownElement = "UNKNOWN"
|
51
|
+
INTERNAL__UnknownElement = "UNKNOWN",
|
52
|
+
INGEST_DEFINITION = "INGEST_DEFINITION"
|
52
53
|
}
|
53
54
|
export declare enum PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY {
|
54
55
|
MODEL = "Model",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ModelClassifierUtils.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/utils/ModelClassifierUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EAMV,MAAM,qBAAqB,CAAC;AAG7B,oBAAY,mBAAmB;IAC7B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,SAAS,cAAc;CACxB;AAED,eAAO,MAAM,oBAAoB,GAAI,MAAM,IAAI,KAAG,mBAajD,CAAC;AAEF,oBAAY,wBAAwB;IAClC,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,qBAAqB,0BAA0B;IAC/C,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,eAAe,oBAAoB;IACnC,wBAAwB,6BAA6B;IACrD,aAAa,kBAAkB;IAC/B,IAAI,SAAS;IACb,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,aAAa,sBAAsB;IAEnC,2BAA2B,qBAAqB;IAChD,wBAAwB,YAAY;
|
1
|
+
{"version":3,"file":"ModelClassifierUtils.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/utils/ModelClassifierUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,IAAI,EAMV,MAAM,qBAAqB,CAAC;AAG7B,oBAAY,mBAAmB;IAC7B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,SAAS,cAAc;CACxB;AAED,eAAO,MAAM,oBAAoB,GAAI,MAAM,IAAI,KAAG,mBAajD,CAAC;AAEF,oBAAY,wBAAwB;IAClC,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,qBAAqB,0BAA0B;IAC/C,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,eAAe,oBAAoB;IACnC,wBAAwB,6BAA6B;IACrD,aAAa,kBAAkB;IAC/B,IAAI,SAAS;IACb,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,aAAa,sBAAsB;IAEnC,2BAA2B,qBAAqB;IAChD,wBAAwB,YAAY;IACpC,iBAAiB,sBAAsB;CACxC;AAED,oBAAY,qCAAqC;IAC/C,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB"}
|
@@ -70,6 +70,7 @@ export var PACKAGEABLE_ELEMENT_TYPE;
|
|
70
70
|
PACKAGEABLE_ELEMENT_TYPE["_DATA_PRODUCT"] = "BETA_DATA_PRODUCT";
|
71
71
|
PACKAGEABLE_ELEMENT_TYPE["TEMPORARY__LOCAL_CONNECTION"] = "LOCAL_CONNECTION";
|
72
72
|
PACKAGEABLE_ELEMENT_TYPE["INTERNAL__UnknownElement"] = "UNKNOWN";
|
73
|
+
PACKAGEABLE_ELEMENT_TYPE["INGEST_DEFINITION"] = "INGEST_DEFINITION";
|
73
74
|
})(PACKAGEABLE_ELEMENT_TYPE || (PACKAGEABLE_ELEMENT_TYPE = {}));
|
74
75
|
export var PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY;
|
75
76
|
(function (PACKAGEABLE_ELEMENT_GROUP_BY_CATEGORY) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ModelClassifierUtils.js","sourceRoot":"","sources":["../../../../src/stores/editor/utils/ModelClassifierUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,OAAO,EACP,aAAa,EACb,IAAI,GACL,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;IACnB,oCAAa,CAAA;IACb,8CAAuB,CAAA;AACzB,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAU,EAAuB,EAAE;IACtE,IAAI,IAAI,YAAY,aAAa,EAAE,CAAC;QAClC,OAAO,mBAAmB,CAAC,SAAS,CAAC;IACvC,CAAC;SAAM,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QACvC,OAAO,mBAAmB,CAAC,WAAW,CAAC;IACzC,CAAC;SAAM,IAAI,IAAI,YAAY,KAAK,EAAE,CAAC;QACjC,OAAO,mBAAmB,CAAC,KAAK,CAAC;IACnC,CAAC;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE,CAAC;QAChC,OAAO,mBAAmB,CAAC,IAAI,CAAC;IAClC,CAAC;SAAM,IAAI,IAAI,YAAY,OAAO,EAAE,CAAC;QACnC,OAAO,mBAAmB,CAAC,OAAO,CAAC;IACrC,CAAC;IACD,MAAM,IAAI,yBAAyB,CAAC,+BAA+B,EAAE,IAAI,CAAC,CAAC;AAC7E,CAAC,CAAC;AAEF,MAAM,CAAN,IAAY,
|
1
|
+
{"version":3,"file":"ModelClassifierUtils.js","sourceRoot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CAAA;IACrB,+CAAmB,CAAA;IACnB,yCAAa,CAAA;IACb,+DAAmC,CAAA;IACnC,iDAAqB,CAAA;IACrB,2DAA+B,CAAA;IAC/B,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;IACnB,2EAA+C,CAAA;IAC/C,qDAAyB,CAAA;IACzB,+CAAmB,CAAA;IACnB,+DAAmC,CAAA;IACnC,iFAAqD,CAAA;IACrD,2DAA+B,CAAA;IAC/B,yCAAa,CAAA;IACb,2DAA+B,CAAA;IAC/B,6DAAiC,CAAA;IACjC,+BAA+B;IAC/B,+DAAmC,CAAA;IAEnC,4EAAgD,CAAA;IAChD,gEAAoC,CAAA;IACpC,mEAAuC,CAAA;AACzC,CAAC,EA9BW,wBAAwB,KAAxB,wBAAwB,QA8BnC;AAED,MAAM,CAAN,IAAY,qCAOX;AAPD,WAAY,qCAAqC;IAC/C,wDAAe,CAAA;IACf,wDAAe,CAAA;IACf,wDAAe,CAAA;IACf,4EAAmC,CAAA;IACnC,kEAAyB,CAAA;IACzB,wDAAe,CAAA;AACjB,CAAC,EAPW,qCAAqC,KAArC,qCAAqC,QAOhD"}
|
@@ -0,0 +1,29 @@
|
|
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 { AbstractServerClient, type PlainObject } from '@finos/legend-shared';
|
17
|
+
import type { IngestDefinitionDeploymentResponse, IngestDefinitionValidationResponse } from './IngestionDeploymentResponse.js';
|
18
|
+
import type { IngestDeploymentServerConfig } from '../../application/LegendIngestionConfiguration.js';
|
19
|
+
export declare class IngestDeploymentServerClient extends AbstractServerClient {
|
20
|
+
environmentClassification: string;
|
21
|
+
constructor(config: IngestDeploymentServerConfig);
|
22
|
+
private _token;
|
23
|
+
private _tokenWithTextPlain;
|
24
|
+
private _ingest;
|
25
|
+
changeServer(serverConfig: IngestDeploymentServerConfig): void;
|
26
|
+
validate(validateGrammar: string, token: string | undefined): Promise<PlainObject<IngestDefinitionValidationResponse>>;
|
27
|
+
deploy(deployGrammar: string, token: string | undefined): Promise<IngestDefinitionDeploymentResponse>;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=IngestDeploymentServerClient.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestDeploymentServerClient.d.ts","sourceRoot":"","sources":["../../../src/stores/ingestion/IngestDeploymentServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EAGpB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACV,kCAAkC,EAClC,kCAAkC,EACnC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AAEtG,qBAAa,4BAA6B,SAAQ,oBAAoB;IACpE,yBAAyB,EAAE,MAAM,CAAC;gBACtB,MAAM,EAAE,4BAA4B;IAWhD,OAAO,CAAC,MAAM,CAEX;IAEH,OAAO,CAAC,mBAAmB,CAGxB;IAEH,OAAO,CAAC,OAAO,CACoC;IAEnD,YAAY,CAAC,YAAY,EAAE,4BAA4B,GAAG,IAAI;IAK9D,QAAQ,CACN,eAAe,EAAE,MAAM,EACvB,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,CAAC,WAAW,CAAC,kCAAkC,CAAC,CAAC;IAS3D,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,CAAC,kCAAkC,CAAC;CAQ/C"}
|
@@ -0,0 +1,49 @@
|
|
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 { AbstractServerClient, ContentType, HttpHeader, } from '@finos/legend-shared';
|
17
|
+
import { makeObservable, observable } from 'mobx';
|
18
|
+
export class IngestDeploymentServerClient extends AbstractServerClient {
|
19
|
+
environmentClassification;
|
20
|
+
constructor(config) {
|
21
|
+
super({
|
22
|
+
baseUrl: config.ingestServerUrl,
|
23
|
+
});
|
24
|
+
this.environmentClassification = config.environmentClassification;
|
25
|
+
makeObservable(this, {
|
26
|
+
environmentClassification: observable,
|
27
|
+
baseUrl: observable,
|
28
|
+
});
|
29
|
+
}
|
30
|
+
_token = (token) => ({
|
31
|
+
Authorization: `Bearer ${token}`,
|
32
|
+
});
|
33
|
+
_tokenWithTextPlain = (token) => ({
|
34
|
+
[HttpHeader.CONTENT_TYPE]: ContentType.TEXT_PLAIN,
|
35
|
+
Authorization: `Bearer ${token}`,
|
36
|
+
});
|
37
|
+
_ingest = () => `${this.baseUrl}/ingest/sdlc/deploy/definitions`;
|
38
|
+
changeServer(serverConfig) {
|
39
|
+
this.baseUrl = serverConfig.ingestServerUrl;
|
40
|
+
this.environmentClassification = serverConfig.environmentClassification;
|
41
|
+
}
|
42
|
+
validate(validateGrammar, token) {
|
43
|
+
return this.post(`${this._ingest()}/validate`, validateGrammar, undefined, this._tokenWithTextPlain(token));
|
44
|
+
}
|
45
|
+
deploy(deployGrammar, token) {
|
46
|
+
return this.post(`${this._ingest()}`, deployGrammar, undefined, this._tokenWithTextPlain(token));
|
47
|
+
}
|
48
|
+
}
|
49
|
+
//# sourceMappingURL=IngestDeploymentServerClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestDeploymentServerClient.js","sourceRoot":"","sources":["../../../src/stores/ingestion/IngestDeploymentServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,WAAW,EACX,UAAU,GAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAOlD,MAAM,OAAO,4BAA6B,SAAQ,oBAAoB;IACpE,yBAAyB,CAAS;IAClC,YAAY,MAAoC;QAC9C,KAAK,CAAC;YACJ,OAAO,EAAE,MAAM,CAAC,eAAe;SAChC,CAAC,CAAC;QACH,IAAI,CAAC,yBAAyB,GAAG,MAAM,CAAC,yBAAyB,CAAC;QAClE,cAAc,CAAC,IAAI,EAAE;YACnB,yBAAyB,EAAE,UAAU;YACrC,OAAO,EAAE,UAAU;SACpB,CAAC,CAAC;IACL,CAAC;IAEO,MAAM,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC;QACpC,aAAa,EAAE,UAAU,KAAK,EAAE;KACjC,CAAC,CAAC;IAEK,mBAAmB,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC;QACjD,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,WAAW,CAAC,UAAU;QACjD,aAAa,EAAE,UAAU,KAAK,EAAE;KACjC,CAAC,CAAC;IAEK,OAAO,GAAG,GAAW,EAAE,CAC7B,GAAG,IAAI,CAAC,OAAO,iCAAiC,CAAC;IAEnD,YAAY,CAAC,YAA0C;QACrD,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC;QAC5C,IAAI,CAAC,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC;IAC1E,CAAC;IAED,QAAQ,CACN,eAAuB,EACvB,KAAyB;QAEzB,OAAO,IAAI,CAAC,IAAI,CACd,GAAG,IAAI,CAAC,OAAO,EAAE,WAAW,EAC5B,eAAe,EACf,SAAS,EACT,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAChC,CAAC;IACJ,CAAC;IAED,MAAM,CACJ,aAAqB,EACrB,KAAyB;QAEzB,OAAO,IAAI,CAAC,IAAI,CACd,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,EACnB,aAAa,EACb,SAAS,EACT,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAChC,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,26 @@
|
|
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 { AbstractServerClient, type PlainObject } from '@finos/legend-shared';
|
17
|
+
import type { IngestDeploymentServerConfig } from '../../application/LegendIngestionConfiguration.js';
|
18
|
+
export declare class IngestDiscoveryServerClient extends AbstractServerClient {
|
19
|
+
constructor(url: string);
|
20
|
+
private _ingest;
|
21
|
+
private _env;
|
22
|
+
private _token;
|
23
|
+
discover(token?: string | undefined): Promise<PlainObject<IngestDeploymentServerConfig[]>>;
|
24
|
+
findProducerServer(id: number, level: string, token?: string | undefined): Promise<PlainObject<IngestDeploymentServerConfig>>;
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=IngestDiscoveryServerClient.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestDiscoveryServerClient.d.ts","sourceRoot":"","sources":["../../../src/stores/ingestion/IngestDiscoveryServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AAEtG,qBAAa,2BAA4B,SAAQ,oBAAoB;gBACvD,GAAG,EAAE,MAAM;IAKvB,OAAO,CAAC,OAAO,CAC6C;IAE5D,OAAO,CAAC,IAAI,CAAiE;IAE7E,OAAO,CAAC,MAAM,CAEX;IAEH,QAAQ,CACN,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CAAC,WAAW,CAAC,4BAA4B,EAAE,CAAC,CAAC;IAIvD,kBAAkB,CAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GACzB,OAAO,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;CAOtD"}
|
@@ -0,0 +1,35 @@
|
|
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 { AbstractServerClient } from '@finos/legend-shared';
|
17
|
+
export class IngestDiscoveryServerClient extends AbstractServerClient {
|
18
|
+
constructor(url) {
|
19
|
+
super({
|
20
|
+
baseUrl: url,
|
21
|
+
});
|
22
|
+
}
|
23
|
+
_ingest = () => `${this.baseUrl}/ingest/discovery/environments/producers`;
|
24
|
+
_env = () => `${this.baseUrl}/ingest/discovery/environments`;
|
25
|
+
_token = (token) => ({
|
26
|
+
Authorization: `Bearer ${token}`,
|
27
|
+
});
|
28
|
+
discover(token) {
|
29
|
+
return this.get(`${this._env()}`, {}, this._token(token));
|
30
|
+
}
|
31
|
+
findProducerServer(id, level, token) {
|
32
|
+
return this.get(`${this._ingest()}/${id}/${level}/search`, {}, this._token(token));
|
33
|
+
}
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=IngestDiscoveryServerClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestDiscoveryServerClient.js","sourceRoot":"","sources":["../../../src/stores/ingestion/IngestDiscoveryServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAoB,MAAM,sBAAsB,CAAC;AAG9E,MAAM,OAAO,2BAA4B,SAAQ,oBAAoB;IACnE,YAAY,GAAW;QACrB,KAAK,CAAC;YACJ,OAAO,EAAE,GAAG;SACb,CAAC,CAAC;IACL,CAAC;IACO,OAAO,GAAG,GAAW,EAAE,CAC7B,GAAG,IAAI,CAAC,OAAO,0CAA0C,CAAC;IAEpD,IAAI,GAAG,GAAW,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,gCAAgC,CAAC;IAErE,MAAM,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC;QACpC,aAAa,EAAE,UAAU,KAAK,EAAE;KACjC,CAAC,CAAC;IAEH,QAAQ,CACN,KAA0B;QAE1B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,kBAAkB,CAChB,EAAU,EACV,KAAa,EACb,KAA0B;QAE1B,OAAO,IAAI,CAAC,GAAG,CACb,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,KAAK,SAAS,EACzC,EAAE,EACF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CACnB,CAAC;IACJ,CAAC;CACF"}
|
@@ -0,0 +1,40 @@
|
|
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 { SerializationFactory, type PlainObject } from '@finos/legend-shared';
|
17
|
+
export declare enum IngestDefinitionValidationResponseStatus {
|
18
|
+
NOT_CHECKED = "NOT_CHECKED",
|
19
|
+
SUCCESS = "SUCCESS",
|
20
|
+
FAILURE = "FAILURE"
|
21
|
+
}
|
22
|
+
export declare class IngestDefinitionValidationOutput {
|
23
|
+
status: IngestDefinitionValidationResponseStatus;
|
24
|
+
}
|
25
|
+
export declare class IngestDefinitionValidationResponse {
|
26
|
+
status: IngestDefinitionValidationResponseStatus;
|
27
|
+
content: PlainObject;
|
28
|
+
static readonly serialization: SerializationFactory<IngestDefinitionValidationResponse>;
|
29
|
+
}
|
30
|
+
export declare const createIngestDefinitionValidationResponse: (json: PlainObject<IngestDefinitionValidationResponse>) => IngestDefinitionValidationResponse;
|
31
|
+
export declare class IngestDefinitionDeploymentResponse {
|
32
|
+
ingestDefinitionUrn: string;
|
33
|
+
static readonly serialization: SerializationFactory<IngestDefinitionDeploymentResponse>;
|
34
|
+
}
|
35
|
+
export declare class ValidateAndDeploymentResponse {
|
36
|
+
validationResponse: IngestDefinitionValidationResponse;
|
37
|
+
deploymentResponse: IngestDefinitionDeploymentResponse | undefined;
|
38
|
+
constructor(validationResponse: IngestDefinitionValidationResponse, deploymentResponse: IngestDefinitionDeploymentResponse | undefined);
|
39
|
+
}
|
40
|
+
//# sourceMappingURL=IngestionDeploymentResponse.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestionDeploymentResponse.d.ts","sourceRoot":"","sources":["../../../src/stores/ingestion/IngestionDeploymentResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG9E,oBAAY,wCAAwC;IAClD,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,qBAAa,gCAAgC;IAC3C,MAAM,EAAG,wCAAwC,CAAC;CACnD;AAED,qBAAa,kCAAkC;IAC7C,MAAM,EAAG,wCAAwC,CAAC;IAClD,OAAO,EAAG,WAAW,CAAC;IAEtB,MAAM,CAAC,QAAQ,CAAC,aAAa,2DAI3B;CACH;AAED,eAAO,MAAM,wCAAwC,GACnD,MAAM,WAAW,CAAC,kCAAkC,CAAC,KACpD,kCAOF,CAAC;AAEF,qBAAa,kCAAkC;IAC7C,mBAAmB,EAAG,MAAM,CAAC;IAE7B,MAAM,CAAC,QAAQ,CAAC,aAAa,2DAI3B;CACH;AAED,qBAAa,6BAA6B;IACxC,kBAAkB,EAAE,kCAAkC,CAAC;IACvD,kBAAkB,EAAE,kCAAkC,GAAG,SAAS,CAAC;gBAGjE,kBAAkB,EAAE,kCAAkC,EACtD,kBAAkB,EAAE,kCAAkC,GAAG,SAAS;CAKrE"}
|
@@ -0,0 +1,55 @@
|
|
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 { SerializationFactory } from '@finos/legend-shared';
|
17
|
+
import { createModelSchema, primitive } from 'serializr';
|
18
|
+
export var IngestDefinitionValidationResponseStatus;
|
19
|
+
(function (IngestDefinitionValidationResponseStatus) {
|
20
|
+
IngestDefinitionValidationResponseStatus["NOT_CHECKED"] = "NOT_CHECKED";
|
21
|
+
IngestDefinitionValidationResponseStatus["SUCCESS"] = "SUCCESS";
|
22
|
+
IngestDefinitionValidationResponseStatus["FAILURE"] = "FAILURE";
|
23
|
+
})(IngestDefinitionValidationResponseStatus || (IngestDefinitionValidationResponseStatus = {}));
|
24
|
+
export class IngestDefinitionValidationOutput {
|
25
|
+
status;
|
26
|
+
}
|
27
|
+
export class IngestDefinitionValidationResponse {
|
28
|
+
status;
|
29
|
+
content;
|
30
|
+
static serialization = new SerializationFactory(createModelSchema(IngestDefinitionValidationResponse, {
|
31
|
+
status: primitive(),
|
32
|
+
}));
|
33
|
+
}
|
34
|
+
export const createIngestDefinitionValidationResponse = (json) => {
|
35
|
+
const ingestDefinitionValidationResponse = new IngestDefinitionValidationResponse();
|
36
|
+
ingestDefinitionValidationResponse.status =
|
37
|
+
json.status;
|
38
|
+
ingestDefinitionValidationResponse.content = json;
|
39
|
+
return ingestDefinitionValidationResponse;
|
40
|
+
};
|
41
|
+
export class IngestDefinitionDeploymentResponse {
|
42
|
+
ingestDefinitionUrn;
|
43
|
+
static serialization = new SerializationFactory(createModelSchema(IngestDefinitionDeploymentResponse, {
|
44
|
+
ingestDefinitionUrn: primitive(),
|
45
|
+
}));
|
46
|
+
}
|
47
|
+
export class ValidateAndDeploymentResponse {
|
48
|
+
validationResponse;
|
49
|
+
deploymentResponse;
|
50
|
+
constructor(validationResponse, deploymentResponse) {
|
51
|
+
this.validationResponse = validationResponse;
|
52
|
+
this.deploymentResponse = deploymentResponse;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=IngestionDeploymentResponse.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestionDeploymentResponse.js","sourceRoot":"","sources":["../../../src/stores/ingestion/IngestionDeploymentResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAoB,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEzD,MAAM,CAAN,IAAY,wCAIX;AAJD,WAAY,wCAAwC;IAClD,uEAA2B,CAAA;IAC3B,+DAAmB,CAAA;IACnB,+DAAmB,CAAA;AACrB,CAAC,EAJW,wCAAwC,KAAxC,wCAAwC,QAInD;AAED,MAAM,OAAO,gCAAgC;IAC3C,MAAM,CAA4C;CACnD;AAED,MAAM,OAAO,kCAAkC;IAC7C,MAAM,CAA4C;IAClD,OAAO,CAAe;IAEtB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,kCAAkC,EAAE;QACpD,MAAM,EAAE,SAAS,EAAE;KACpB,CAAC,CACH,CAAC;;AAGJ,MAAM,CAAC,MAAM,wCAAwC,GAAG,CACtD,IAAqD,EACjB,EAAE;IACtC,MAAM,kCAAkC,GACtC,IAAI,kCAAkC,EAAE,CAAC;IAC3C,kCAAkC,CAAC,MAAM;QACvC,IAAI,CAAC,MAAkD,CAAC;IAC1D,kCAAkC,CAAC,OAAO,GAAG,IAAI,CAAC;IAClD,OAAO,kCAAkC,CAAC;AAC5C,CAAC,CAAC;AAEF,MAAM,OAAO,kCAAkC;IAC7C,mBAAmB,CAAU;IAE7B,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,kCAAkC,EAAE;QACpD,mBAAmB,EAAE,SAAS,EAAE;KACjC,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,6BAA6B;IACxC,kBAAkB,CAAqC;IACvD,kBAAkB,CAAiD;IAEnE,YACE,kBAAsD,EACtD,kBAAkE;QAElE,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;CACF"}
|
@@ -0,0 +1,35 @@
|
|
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 type { AppDirNode } from '@finos/legend-graph';
|
17
|
+
import type { GenericLegendApplicationStore } from '@finos/legend-application';
|
18
|
+
import { type ActionState } from '@finos/legend-shared';
|
19
|
+
import { ValidateAndDeploymentResponse } from './IngestionDeploymentResponse.js';
|
20
|
+
import { type LegendIngestionConfiguration } from '../../application/LegendIngestionConfiguration.js';
|
21
|
+
export declare class IngestionManager {
|
22
|
+
private ingestDiscoveryServerClient;
|
23
|
+
private ingestDeploymentServerClient;
|
24
|
+
private _currentAppID;
|
25
|
+
private _currentLevel;
|
26
|
+
private readonly applicationStore;
|
27
|
+
constructor(config: LegendIngestionConfiguration, applicationStore: GenericLegendApplicationStore);
|
28
|
+
isCurrentAppDirNode(appDirNode: AppDirNode): boolean;
|
29
|
+
setCurrentAppDirNode(appDirNode: AppDirNode): void;
|
30
|
+
deploy(ingestDefinition: string, appDirNode: AppDirNode, actionState: ActionState | undefined, token: string | undefined): Promise<ValidateAndDeploymentResponse>;
|
31
|
+
private _validate;
|
32
|
+
private _deploy;
|
33
|
+
private identifyIngestDeploymentServer;
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=IngestionManager.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IngestionManager.d.ts","sourceRoot":"","sources":["../../../src/stores/ingestion/IngestionManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,KAAK,WAAW,EAAoB,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAIL,6BAA6B,EAE9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,mDAAmD,CAAC;AAE3D,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,2BAA2B,CAA8B;IACjE,OAAO,CAAC,4BAA4B,CAA+B;IACnE,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAgC;gBAG/D,MAAM,EAAE,4BAA4B,EACpC,gBAAgB,EAAE,6BAA6B;IAiBjD,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO;IAOpD,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAK5C,MAAM,CACV,gBAAgB,EAAE,MAAM,EACxB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,CAAC,6BAA6B,CAAC;YAmC3B,SAAS;YAgBT,OAAO;YAgBP,8BAA8B;CAmB7C"}
|
@@ -0,0 +1,83 @@
|
|
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 { IngestDeploymentServerClient } from './IngestDeploymentServerClient.js';
|
17
|
+
import { IngestDiscoveryServerClient } from './IngestDiscoveryServerClient.js';
|
18
|
+
import {} from '@finos/legend-shared';
|
19
|
+
import { IngestDefinitionDeploymentResponse, IngestDefinitionValidationResponseStatus, ValidateAndDeploymentResponse, createIngestDefinitionValidationResponse, } from './IngestionDeploymentResponse.js';
|
20
|
+
import { IngestDeploymentServerConfig, } from '../../application/LegendIngestionConfiguration.js';
|
21
|
+
export class IngestionManager {
|
22
|
+
ingestDiscoveryServerClient;
|
23
|
+
ingestDeploymentServerClient;
|
24
|
+
_currentAppID;
|
25
|
+
_currentLevel;
|
26
|
+
applicationStore;
|
27
|
+
constructor(config, applicationStore) {
|
28
|
+
this.ingestDiscoveryServerClient = new IngestDiscoveryServerClient(config.discoveryUrl);
|
29
|
+
this.ingestDiscoveryServerClient.setTracerService(applicationStore.tracerService);
|
30
|
+
this.ingestDeploymentServerClient = new IngestDeploymentServerClient(config.deployment.defaultServer);
|
31
|
+
this.ingestDeploymentServerClient.setTracerService(applicationStore.tracerService);
|
32
|
+
this.applicationStore = applicationStore;
|
33
|
+
}
|
34
|
+
isCurrentAppDirNode(appDirNode) {
|
35
|
+
return (this._currentAppID === appDirNode.appDirId &&
|
36
|
+
this._currentLevel === appDirNode.level);
|
37
|
+
}
|
38
|
+
setCurrentAppDirNode(appDirNode) {
|
39
|
+
this._currentAppID = appDirNode.appDirId;
|
40
|
+
this._currentLevel = appDirNode.level;
|
41
|
+
}
|
42
|
+
async deploy(ingestDefinition, appDirNode, actionState, token) {
|
43
|
+
actionState?.setMessage(`Discovering associated ingest environment for DID ${appDirNode.appDirId}...`);
|
44
|
+
await this.identifyIngestDeploymentServer(appDirNode, token);
|
45
|
+
actionState?.setMessage(`Validating ingest with server ${this.ingestDeploymentServerClient.baseUrl ?? ''} for realm ${this.ingestDeploymentServerClient.environmentClassification}...`);
|
46
|
+
const validateResonse = await this._validate(ingestDefinition, undefined, token);
|
47
|
+
const fullResponse = new ValidateAndDeploymentResponse(validateResonse, undefined);
|
48
|
+
if (validateResonse.status !==
|
49
|
+
IngestDefinitionValidationResponseStatus.SUCCESS) {
|
50
|
+
return fullResponse;
|
51
|
+
}
|
52
|
+
actionState?.setMessage(`Validation Success. Deploying ingest with server ${this.ingestDeploymentServerClient.baseUrl ?? ''} for realm ${this.ingestDeploymentServerClient.environmentClassification}...`);
|
53
|
+
const deployResponse = await this._deploy(ingestDefinition, undefined, token);
|
54
|
+
fullResponse.deploymentResponse = deployResponse;
|
55
|
+
return fullResponse;
|
56
|
+
}
|
57
|
+
async _validate(ingestDefinition, appDirNode, token) {
|
58
|
+
if (appDirNode) {
|
59
|
+
await this.identifyIngestDeploymentServer(appDirNode, token);
|
60
|
+
}
|
61
|
+
// validate
|
62
|
+
const response = await this.ingestDeploymentServerClient.validate(ingestDefinition, token);
|
63
|
+
return createIngestDefinitionValidationResponse(response);
|
64
|
+
}
|
65
|
+
async _deploy(ingestDefinition, appDirNode, token) {
|
66
|
+
if (appDirNode) {
|
67
|
+
await this.identifyIngestDeploymentServer(appDirNode, token);
|
68
|
+
}
|
69
|
+
// validate
|
70
|
+
const response = (await this.ingestDeploymentServerClient.deploy(ingestDefinition, token));
|
71
|
+
return IngestDefinitionDeploymentResponse.serialization.fromJson(response);
|
72
|
+
}
|
73
|
+
async identifyIngestDeploymentServer(appDirNode, token) {
|
74
|
+
// we do not change if current appDirNode is the same as the one we are trying to set
|
75
|
+
if (this.isCurrentAppDirNode(appDirNode)) {
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
const serverConfig = IngestDeploymentServerConfig.serialization.fromJson(await this.ingestDiscoveryServerClient.findProducerServer(appDirNode.appDirId, appDirNode.level, token));
|
79
|
+
this.ingestDeploymentServerClient.changeServer(serverConfig);
|
80
|
+
this.setCurrentAppDirNode(appDirNode);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
//# sourceMappingURL=IngestionManager.js.map
|