@finos/legend-application-studio 28.15.5 → 28.15.7
Sign up to get free protection for your applications and to get access to all the features.
- 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/FunctionEditor.d.ts +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +6 -4
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts +19 -0
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -0
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +175 -0
- package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -0
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +18 -5
- package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -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/EditorTabManagerState.d.ts.map +1 -1
- package/lib/stores/editor/EditorTabManagerState.js +5 -1
- package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.js +17 -2
- package/lib/stores/editor/editor-state/element-editor-state/FunctionActivatorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts +53 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js +150 -0
- package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js.map +1 -0
- package/lib/stores/editor/utils/ModelClassifierUtils.d.ts +1 -0
- 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/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.d.ts +28 -0
- package/lib/stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.d.ts.map +1 -0
- package/lib/stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js +55 -0
- package/lib/stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js.map +1 -0
- package/package.json +4 -4
- package/src/components/editor/editor-group/EditorGroup.tsx +10 -0
- package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +10 -6
- package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +631 -0
- package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +51 -3
- package/src/stores/editor/EditorGraphState.ts +3 -0
- package/src/stores/editor/EditorTabManagerState.ts +7 -0
- package/src/stores/editor/editor-state/element-editor-state/FunctionActivatorState.ts +17 -1
- package/src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts +212 -0
- package/src/stores/editor/utils/ModelClassifierUtils.ts +1 -0
- package/src/stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.ts +96 -0
- package/tsconfig.json +3 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HostedServiceFunctionActivatorEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,aAAK,0BAA0B;IAC7B,oBAAoB,wBAAwB;IAC5C,kBAAkB,sBAAsB;CACzC;AACD,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,wBAAwB,eAAe,CAAC;AACrD,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;GAS7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,yCAA0C,SAAQ,kBAAkB;IAC/E,QAAQ,CAAC,aAAa,cAAwB;IAC9C,QAAQ,CAAC,WAAW,cAAwB;gBAEhC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa;IAkB5D,IAAI,SAAS,IAAI,aAAa,CAQ7B;IAED,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAItC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9B,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAInC,IAAI,iBAAiB,IAAI,wBAAwB,GAAG,SAAS,CAc5D;IAED,oBAAoB,CAAC,CAAC,EAAE,wBAAwB,GAAG,IAAI;IA2BtD,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;IAkB7B,eAAe,IAAI,WAAW,CAAC,IAAI,CAAC;IAkBpC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IAc/C,SAAS,CACP,UAAU,EAAE,aAAa,EACzB,WAAW,EAAE,WAAW,GACvB,yCAAyC;CAM7C"}
|
@@ -0,0 +1,150 @@
|
|
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 { InMemoryGraphData, HostedService, observe_HostedService, DeploymentOwner, UserList, } from '@finos/legend-graph';
|
17
|
+
import { ActionState, assertErrorThrown, guaranteeType, } from '@finos/legend-shared';
|
18
|
+
import { makeObservable, action, flow, computed } from 'mobx';
|
19
|
+
import { ElementEditorState } from '../ElementEditorState.js';
|
20
|
+
import { activator_setOwnership } from '../../../../graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
|
21
|
+
import { User } from '@finos/legend-server-sdlc';
|
22
|
+
//Ownership
|
23
|
+
var HostedServiceOwnershipType;
|
24
|
+
(function (HostedServiceOwnershipType) {
|
25
|
+
HostedServiceOwnershipType["DEPLOYMENT_OWNERSHIP"] = "deploymentOwnership";
|
26
|
+
HostedServiceOwnershipType["USERLIST_OWNERSHIP"] = "userListOwnership";
|
27
|
+
})(HostedServiceOwnershipType || (HostedServiceOwnershipType = {}));
|
28
|
+
export const MINIMUM_HOSTED_SERVICE_OWNERS = 2;
|
29
|
+
export const DeploymentOwnershipLabel = 'Deployment';
|
30
|
+
export const UserlistOwnershipLabel = 'User List';
|
31
|
+
export const OWNERSHIP_OPTIONS = [
|
32
|
+
{
|
33
|
+
label: DeploymentOwnershipLabel,
|
34
|
+
value: HostedServiceOwnershipType.DEPLOYMENT_OWNERSHIP,
|
35
|
+
},
|
36
|
+
{
|
37
|
+
label: UserlistOwnershipLabel,
|
38
|
+
value: HostedServiceOwnershipType.USERLIST_OWNERSHIP,
|
39
|
+
},
|
40
|
+
];
|
41
|
+
export class HostedServiceFunctionActivatorEditorState extends ElementEditorState {
|
42
|
+
validateState = ActionState.create();
|
43
|
+
deployState = ActionState.create();
|
44
|
+
constructor(editorStore, element) {
|
45
|
+
super(editorStore, element);
|
46
|
+
makeObservable(this, {
|
47
|
+
activator: computed,
|
48
|
+
reprocess: action,
|
49
|
+
updateDocumentation: action,
|
50
|
+
updatePattern: action,
|
51
|
+
setSelectedOwnership: action,
|
52
|
+
selectedOwnership: computed,
|
53
|
+
storeModel: action,
|
54
|
+
generateLineage: action,
|
55
|
+
validate: flow,
|
56
|
+
deployToSandbox: flow,
|
57
|
+
searchUsers: flow,
|
58
|
+
});
|
59
|
+
}
|
60
|
+
get activator() {
|
61
|
+
return observe_HostedService(guaranteeType(this.element, HostedService, 'Element inside hosted service state must be a HostedService'));
|
62
|
+
}
|
63
|
+
updateDocumentation(val) {
|
64
|
+
this.activator.documentation = val;
|
65
|
+
}
|
66
|
+
updatePattern(val) {
|
67
|
+
this.activator.pattern = val;
|
68
|
+
}
|
69
|
+
storeModel(val) {
|
70
|
+
this.activator.storeModel = val;
|
71
|
+
}
|
72
|
+
generateLineage(val) {
|
73
|
+
this.activator.generateLineage = val;
|
74
|
+
}
|
75
|
+
get selectedOwnership() {
|
76
|
+
const ownership = this.activator.ownership;
|
77
|
+
if (ownership instanceof DeploymentOwner) {
|
78
|
+
return {
|
79
|
+
label: DeploymentOwnershipLabel,
|
80
|
+
value: HostedServiceOwnershipType.DEPLOYMENT_OWNERSHIP,
|
81
|
+
};
|
82
|
+
}
|
83
|
+
else if (ownership instanceof UserList) {
|
84
|
+
return {
|
85
|
+
label: UserlistOwnershipLabel,
|
86
|
+
value: HostedServiceOwnershipType.USERLIST_OWNERSHIP,
|
87
|
+
};
|
88
|
+
}
|
89
|
+
return undefined;
|
90
|
+
}
|
91
|
+
setSelectedOwnership(o) {
|
92
|
+
switch (o.value) {
|
93
|
+
case HostedServiceOwnershipType.DEPLOYMENT_OWNERSHIP: {
|
94
|
+
activator_setOwnership(this.activator, new DeploymentOwner('', this.activator));
|
95
|
+
break;
|
96
|
+
}
|
97
|
+
case HostedServiceOwnershipType.USERLIST_OWNERSHIP: {
|
98
|
+
const currentUserId = this.editorStore.graphManagerState.graphManager.TEMPORARY__getEngineConfig()
|
99
|
+
.currentUserId;
|
100
|
+
activator_setOwnership(this.activator, new UserList(currentUserId ? [currentUserId] : [], this.activator));
|
101
|
+
break;
|
102
|
+
}
|
103
|
+
default: {
|
104
|
+
this.editorStore.applicationStore.notificationService.notifyError('Unsupported ownership type');
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
*validate() {
|
109
|
+
this.validateState.inProgress();
|
110
|
+
try {
|
111
|
+
yield this.editorStore.graphManagerState.graphManager.validateFunctionActivator(this.activator, new InMemoryGraphData(this.editorStore.graphManagerState.graph));
|
112
|
+
this.editorStore.applicationStore.notificationService.notifySuccess(`Hosted Service is valid`);
|
113
|
+
}
|
114
|
+
catch (error) {
|
115
|
+
assertErrorThrown(error);
|
116
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
117
|
+
}
|
118
|
+
finally {
|
119
|
+
this.validateState.complete();
|
120
|
+
}
|
121
|
+
}
|
122
|
+
*deployToSandbox() {
|
123
|
+
this.deployState.inProgress();
|
124
|
+
try {
|
125
|
+
yield this.editorStore.graphManagerState.graphManager.publishFunctionActivatorToSandbox(this.activator, new InMemoryGraphData(this.editorStore.graphManagerState.graph));
|
126
|
+
this.editorStore.applicationStore.notificationService.notifySuccess('Hosted Service Function Activator has been deployed successfully');
|
127
|
+
}
|
128
|
+
catch (error) {
|
129
|
+
assertErrorThrown(error);
|
130
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
131
|
+
}
|
132
|
+
finally {
|
133
|
+
this.deployState.complete();
|
134
|
+
}
|
135
|
+
}
|
136
|
+
*searchUsers(name) {
|
137
|
+
try {
|
138
|
+
return (yield this.editorStore.sdlcServerClient.getUsers(name)).map((p) => User.serialization.fromJson(p));
|
139
|
+
}
|
140
|
+
catch (error) {
|
141
|
+
assertErrorThrown(error);
|
142
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
143
|
+
return [];
|
144
|
+
}
|
145
|
+
}
|
146
|
+
reprocess(newElement, editorStore) {
|
147
|
+
return new HostedServiceFunctionActivatorEditorState(editorStore, newElement);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
//# sourceMappingURL=HostedServiceFunctionActivatorEditorState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HostedServiceFunctionActivatorEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,aAAa,GAEd,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;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yEAAyE,CAAC;AAC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AK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC1E;gBAAS;YACR,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;SAC7B;IACH,CAAC;IAED,CAAC,WAAW,CAAC,IAAY;QACvB,IAAI;YACF,OACE,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAC/C,IAAI,CACL,CACF,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9C;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YACzE,OAAO,EAAE,CAAC;SACX;IACH,CAAC;IAED,SAAS,CACP,UAAyB,EACzB,WAAwB;QAExB,OAAO,IAAI,yCAAyC,CAClD,WAAW,EACX,UAAU,CACX,CAAC;IACJ,CAAC;CACF"}
|
@@ -45,6 +45,7 @@ export declare enum PACKAGEABLE_ELEMENT_TYPE {
|
|
45
45
|
SECTION_INDEX = "SECTION_INDEX",
|
46
46
|
DATA = "DATA",
|
47
47
|
SNOWFLAKE_APP = "SNOWFLAKE_APP",
|
48
|
+
HOSTED_SERVICE = "HOSTED_SERVICE",
|
48
49
|
TEMPORARY__LOCAL_CONNECTION = "LOCAL_CONNECTION",
|
49
50
|
INTERNAL__UNKNOWN = "UNKNOWN"
|
50
51
|
}
|
@@ -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,SAAU,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;
|
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,SAAU,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,2BAA2B,qBAAqB;IAChD,iBAAiB,YAAY;CAC9B;AAED,oBAAY,qCAAqC;IAC/C,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB"}
|
@@ -65,6 +65,7 @@ export var PACKAGEABLE_ELEMENT_TYPE;
|
|
65
65
|
PACKAGEABLE_ELEMENT_TYPE["SECTION_INDEX"] = "SECTION_INDEX";
|
66
66
|
PACKAGEABLE_ELEMENT_TYPE["DATA"] = "DATA";
|
67
67
|
PACKAGEABLE_ELEMENT_TYPE["SNOWFLAKE_APP"] = "SNOWFLAKE_APP";
|
68
|
+
PACKAGEABLE_ELEMENT_TYPE["HOSTED_SERVICE"] = "HOSTED_SERVICE";
|
68
69
|
PACKAGEABLE_ELEMENT_TYPE["TEMPORARY__LOCAL_CONNECTION"] = "LOCAL_CONNECTION";
|
69
70
|
PACKAGEABLE_ELEMENT_TYPE["INTERNAL__UNKNOWN"] = "UNKNOWN";
|
70
71
|
})(PACKAGEABLE_ELEMENT_TYPE || (PACKAGEABLE_ELEMENT_TYPE = {}));
|
@@ -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;QACjC,OAAO,mBAAmB,CAAC,SAAS,CAAC;KACtC;SAAM,IAAI,IAAI,YAAY,WAAW,EAAE;QACtC,OAAO,mBAAmB,CAAC,WAAW,CAAC;KACxC;SAAM,IAAI,IAAI,YAAY,KAAK,EAAE;QAChC,OAAO,mBAAmB,CAAC,KAAK,CAAC;KAClC;SAAM,IAAI,IAAI,YAAY,IAAI,EAAE;QAC/B,OAAO,mBAAmB,CAAC,IAAI,CAAC;KACjC;SAAM,IAAI,IAAI,YAAY,OAAO,EAAE;QAClC,OAAO,mBAAmB,CAAC,OAAO,CAAC;KACpC;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":"","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,8C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ED,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,28 @@
|
|
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 HostedService, type FunctionActivator, type Ownership, type DeploymentOwner, type UserList } from '@finos/legend-graph';
|
17
|
+
export declare const hostedService_setDocumentation: (hostedService: HostedService, val: string) => void;
|
18
|
+
export declare const hostedService_setAutoActivateUpdates: (hostedService: HostedService, val: boolean) => void;
|
19
|
+
export declare const hostedService_setPattern: (hostedService: HostedService, val: string) => void;
|
20
|
+
export declare const hostedService_removePatternParameter: (hostedService: HostedService, value: string) => void;
|
21
|
+
export declare const hostedService_setStoreModel: (hostedService: HostedService, val: boolean) => void;
|
22
|
+
export declare const hostedService_setGenerateLineage: (hostedService: HostedService, val: boolean) => void;
|
23
|
+
export declare const activator_setOwnership: (activator: FunctionActivator, value: Ownership) => void;
|
24
|
+
export declare const activator_setDeploymentOwner: (deploymentOwner: DeploymentOwner, value: string) => void;
|
25
|
+
export declare const activator_addUserOwner: (userList: UserList, value: string) => void;
|
26
|
+
export declare const activator_updateUserOwnership: (userList: UserList, value: string, index: number) => void;
|
27
|
+
export declare const activator_deleteValueFromUserOwnership: (userList: UserList, index: number) => void;
|
28
|
+
//# sourceMappingURL=DSL_FunctionActivator_GraphModifierHelper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_FunctionActivator_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAEd,KAAK,eAAe,EACpB,KAAK,QAAQ,EACd,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,8BAA8B,kBACzB,aAAa,OAAO,MAAM,KAAG,IAG9C,CAAC;AAEF,eAAO,MAAM,oCAAoC,kBAC/B,aAAa,OAAO,OAAO,KAAG,IAG/C,CAAC;AAEF,eAAO,MAAM,wBAAwB,kBACnB,aAAa,OAAO,MAAM,KAAG,IAG9C,CAAC;AAEF,eAAO,MAAM,oCAAoC,kBAC/B,aAAa,SAAS,MAAM,KAAG,IAOhD,CAAC;AAEF,eAAO,MAAM,2BAA2B,kBACtB,aAAa,OAAO,OAAO,KAAG,IAG/C,CAAC;AAEF,eAAO,MAAM,gCAAgC,kBAC3B,aAAa,OAAO,OAAO,KAAG,IAG/C,CAAC;AAEF,eAAO,MAAM,sBAAsB,cACrB,iBAAiB,SAAS,SAAS,KAAG,IAGnD,CAAC;AAEF,eAAO,MAAM,4BAA4B,oBACrB,eAAe,SAAS,MAAM,KAAG,IAGpD,CAAC;AAEF,eAAO,MAAM,sBAAsB,aACtB,QAAQ,SAAS,MAAM,KAAG,IAGtC,CAAC;AAEF,eAAO,MAAM,6BAA6B,aAC7B,QAAQ,SAAS,MAAM,SAAS,MAAM,KAAG,IAGrD,CAAC;AAEF,eAAO,MAAM,sCAAsC,aACtC,QAAQ,SAAS,MAAM,KAAG,IAGtC,CAAC"}
|
@@ -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 { DEFAULT_HOSTED_SERVICE_PATTERN, observe_FunctionActivatorOwnership, } from '@finos/legend-graph';
|
17
|
+
import { action } from 'mobx';
|
18
|
+
export const hostedService_setDocumentation = action((hostedService, val) => {
|
19
|
+
hostedService.documentation = val;
|
20
|
+
});
|
21
|
+
export const hostedService_setAutoActivateUpdates = action((hostedService, val) => {
|
22
|
+
hostedService.autoActivateUpdates = val;
|
23
|
+
});
|
24
|
+
export const hostedService_setPattern = action((hostedService, val) => {
|
25
|
+
hostedService.pattern = val;
|
26
|
+
});
|
27
|
+
export const hostedService_removePatternParameter = action((hostedService, value) => {
|
28
|
+
const newPattern = hostedService.pattern
|
29
|
+
.replace(new RegExp(`\\/\\{${value}\\}`, 'ug'), '')
|
30
|
+
.replace(/\/{2,}/gu, '/');
|
31
|
+
hostedService.pattern =
|
32
|
+
newPattern !== '' ? newPattern : DEFAULT_HOSTED_SERVICE_PATTERN;
|
33
|
+
});
|
34
|
+
export const hostedService_setStoreModel = action((hostedService, val) => {
|
35
|
+
hostedService.storeModel = val;
|
36
|
+
});
|
37
|
+
export const hostedService_setGenerateLineage = action((hostedService, val) => {
|
38
|
+
hostedService.generateLineage = val;
|
39
|
+
});
|
40
|
+
export const activator_setOwnership = action((activator, value) => {
|
41
|
+
activator.ownership = observe_FunctionActivatorOwnership(value);
|
42
|
+
});
|
43
|
+
export const activator_setDeploymentOwner = action((deploymentOwner, value) => {
|
44
|
+
deploymentOwner.id = value;
|
45
|
+
});
|
46
|
+
export const activator_addUserOwner = action((userList, value) => {
|
47
|
+
userList.users.push(value);
|
48
|
+
});
|
49
|
+
export const activator_updateUserOwnership = action((userList, value, index) => {
|
50
|
+
userList.users[index] = value;
|
51
|
+
});
|
52
|
+
export const activator_deleteValueFromUserOwnership = action((userList, index) => {
|
53
|
+
userList.users.splice(index, 1);
|
54
|
+
});
|
55
|
+
//# sourceMappingURL=DSL_FunctionActivator_GraphModifierHelper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_FunctionActivator_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,8BAA8B,EAG9B,kCAAkC,GAGnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAClD,CAAC,aAA4B,EAAE,GAAW,EAAQ,EAAE;IAClD,aAAa,CAAC,aAAa,GAAG,GAAG,CAAC;AACpC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CACxD,CAAC,aAA4B,EAAE,GAAY,EAAQ,EAAE;IACnD,aAAa,CAAC,mBAAmB,GAAG,GAAG,CAAC;AAC1C,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAC5C,CAAC,aAA4B,EAAE,GAAW,EAAQ,EAAE;IAClD,aAAa,CAAC,OAAO,GAAG,GAAG,CAAC;AAC9B,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC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jD,CAAC,QAAkB,EAAE,KAAa,EAAE,KAAa,EAAQ,EAAE;IACzD,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAChC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sCAAsC,GAAG,MAAM,CAC1D,CAAC,QAAkB,EAAE,KAAa,EAAQ,EAAE;IAC1C,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC,CACF,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-studio",
|
3
|
-
"version": "28.15.
|
3
|
+
"version": "28.15.7",
|
4
4
|
"description": "Legend Studio application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -47,9 +47,9 @@
|
|
47
47
|
"dependencies": {
|
48
48
|
"@finos/legend-application": "15.0.67",
|
49
49
|
"@finos/legend-art": "7.1.19",
|
50
|
-
"@finos/legend-graph": "31.8.
|
51
|
-
"@finos/legend-lego": "1.2.
|
52
|
-
"@finos/legend-query-builder": "4.14.
|
50
|
+
"@finos/legend-graph": "31.8.2",
|
51
|
+
"@finos/legend-lego": "1.2.7",
|
52
|
+
"@finos/legend-query-builder": "4.14.7",
|
53
53
|
"@finos/legend-server-depot": "6.0.36",
|
54
54
|
"@finos/legend-server-sdlc": "5.3.8",
|
55
55
|
"@finos/legend-server-showcase": "0.2.5",
|
@@ -86,6 +86,8 @@ import {
|
|
86
86
|
RuleEngagementCard,
|
87
87
|
DocumentationCard,
|
88
88
|
} from '../../workspace-setup/WorkspaceSetup.js';
|
89
|
+
import { HostedServiceFunctionActivatorEditorState } from '../../../stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js';
|
90
|
+
import { HostedServiceFunctionActivatorEditor } from './function-activator/HostedServiceFunctionActivatorEditor.js';
|
89
91
|
|
90
92
|
export const ViewerEditorGroupSplashScreen: React.FC = () => {
|
91
93
|
const commandListWidth = 300;
|
@@ -293,6 +295,14 @@ export const EditorGroup = observer(() => {
|
|
293
295
|
return (
|
294
296
|
<SnowflakeAppFunctionActivatorEditor key={currentTabState.uuid} />
|
295
297
|
);
|
298
|
+
} else if (
|
299
|
+
currentTabState instanceof HostedServiceFunctionActivatorEditorState
|
300
|
+
) {
|
301
|
+
return (
|
302
|
+
<HostedServiceFunctionActivatorEditor
|
303
|
+
key={currentTabState.uuid}
|
304
|
+
/>
|
305
|
+
);
|
296
306
|
} else if (currentTabState instanceof UnsupportedElementEditorState) {
|
297
307
|
return <UnsupportedElementEditor key={currentTabState.uuid} />;
|
298
308
|
} else if (
|
@@ -159,7 +159,7 @@ enum FUNCTION_PARAMETER_TYPE {
|
|
159
159
|
|
160
160
|
export enum FUNCTION_ACTIVATE_TYPE {
|
161
161
|
SNOWFLAKE_NATIVE_APP = 'Snowflake Native App',
|
162
|
-
|
162
|
+
HOSTED_SERVICE = 'REST Service',
|
163
163
|
SERVICE_JAR = 'Service JAR',
|
164
164
|
REFINER = 'Refiner',
|
165
165
|
BIG_QUERY_NATIVE_APP = 'BigQuery Native App',
|
@@ -742,18 +742,22 @@ const FunctionPromoteEditor = observer(
|
|
742
742
|
}}
|
743
743
|
/>
|
744
744
|
);
|
745
|
-
case FUNCTION_ACTIVATE_TYPE.
|
745
|
+
case FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE:
|
746
746
|
return (
|
747
747
|
<BaseCard
|
748
|
-
key={FUNCTION_ACTIVATE_TYPE.
|
749
|
-
cardMedia={
|
748
|
+
key={FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE}
|
749
|
+
cardMedia={
|
750
|
+
<RocketIcon className="function-promote-editor__type-icon" />
|
751
|
+
}
|
750
752
|
cardName={type}
|
751
753
|
cardContent="Create a HostedService that will be deployed to a server environment and executed with a pattern"
|
752
|
-
isDisable={true}
|
753
754
|
isActive={
|
754
755
|
activatorPromoteState.activateType ===
|
755
|
-
FUNCTION_ACTIVATE_TYPE.
|
756
|
+
FUNCTION_ACTIVATE_TYPE.HOSTED_SERVICE
|
756
757
|
}
|
758
|
+
onClick={() => {
|
759
|
+
activatorPromoteState.setAcitvateType(type);
|
760
|
+
}}
|
757
761
|
/>
|
758
762
|
);
|
759
763
|
case FUNCTION_ACTIVATE_TYPE.SERVICE_JAR:
|