@finos/legend-application-studio 28.19.19 → 28.19.21

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.
Files changed (74) hide show
  1. package/lib/application/LegendStudioApplicationConfig.d.ts +1 -6
  2. package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
  3. package/lib/application/LegendStudioApplicationConfig.js +1 -9
  4. package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
  5. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.d.ts.map +1 -1
  6. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js +33 -22
  7. package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js.map +1 -1
  8. package/lib/components/editor/editor-group/function-activator/ActivatorArtifactViewer.d.ts +24 -0
  9. package/lib/components/editor/editor-group/function-activator/ActivatorArtifactViewer.d.ts.map +1 -0
  10. package/lib/components/editor/editor-group/function-activator/ActivatorArtifactViewer.js +35 -0
  11. package/lib/components/editor/editor-group/function-activator/ActivatorArtifactViewer.js.map +1 -0
  12. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
  13. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +18 -3
  14. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
  15. package/lib/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.d.ts.map +1 -1
  16. package/lib/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.js +19 -3
  17. package/lib/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.js.map +1 -1
  18. package/lib/components/editor/editor-group/function-activator/MemSQLFunctionActivatorEditor.d.ts.map +1 -1
  19. package/lib/components/editor/editor-group/function-activator/MemSQLFunctionActivatorEditor.js +18 -3
  20. package/lib/components/editor/editor-group/function-activator/MemSQLFunctionActivatorEditor.js.map +1 -1
  21. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
  22. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +18 -3
  23. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
  24. package/lib/components/editor/editor-group/function-activator/SnowflakeM2MUdfFunctionActivatorEditor.d.ts.map +1 -1
  25. package/lib/components/editor/editor-group/function-activator/SnowflakeM2MUdfFunctionActivatorEditor.js +18 -3
  26. package/lib/components/editor/editor-group/function-activator/SnowflakeM2MUdfFunctionActivatorEditor.js.map +1 -1
  27. package/lib/index.css +2 -2
  28. package/lib/index.css.map +1 -1
  29. package/lib/package.json +1 -1
  30. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +1 -0
  31. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
  32. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +10 -1
  33. package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
  34. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts +5 -1
  35. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts.map +1 -1
  36. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js +22 -0
  37. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js.map +1 -1
  38. package/lib/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.d.ts +5 -1
  39. package/lib/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.d.ts.map +1 -1
  40. package/lib/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.js +23 -1
  41. package/lib/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.js.map +1 -1
  42. package/lib/stores/editor/editor-state/element-editor-state/function-activator/MemSQLFunctionActivatorEditorState.d.ts +5 -1
  43. package/lib/stores/editor/editor-state/element-editor-state/function-activator/MemSQLFunctionActivatorEditorState.d.ts.map +1 -1
  44. package/lib/stores/editor/editor-state/element-editor-state/function-activator/MemSQLFunctionActivatorEditorState.js +23 -1
  45. package/lib/stores/editor/editor-state/element-editor-state/function-activator/MemSQLFunctionActivatorEditorState.js.map +1 -1
  46. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts +5 -1
  47. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.d.ts.map +1 -1
  48. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js +23 -1
  49. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js.map +1 -1
  50. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeM2MUdfFunctionActivatorEditorState.d.ts +5 -1
  51. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeM2MUdfFunctionActivatorEditorState.d.ts.map +1 -1
  52. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeM2MUdfFunctionActivatorEditorState.js +23 -1
  53. package/lib/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeM2MUdfFunctionActivatorEditorState.js.map +1 -1
  54. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +1 -0
  55. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
  56. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +3 -0
  57. package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
  58. package/package.json +9 -9
  59. package/src/application/LegendStudioApplicationConfig.ts +1 -12
  60. package/src/components/editor/editor-group/dataProduct/DataPoductEditor.tsx +166 -83
  61. package/src/components/editor/editor-group/function-activator/ActivatorArtifactViewer.tsx +80 -0
  62. package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +65 -18
  63. package/src/components/editor/editor-group/function-activator/INTERNAL__UnknownFunctionActivatorEdtior.tsx +72 -16
  64. package/src/components/editor/editor-group/function-activator/MemSQLFunctionActivatorEditor.tsx +67 -18
  65. package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +68 -18
  66. package/src/components/editor/editor-group/function-activator/SnowflakeM2MUdfFunctionActivatorEditor.tsx +67 -18
  67. package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +14 -3
  68. package/src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts +26 -0
  69. package/src/stores/editor/editor-state/element-editor-state/function-activator/INTERNAL__UnknownFunctionActivatorEditorState.ts +27 -1
  70. package/src/stores/editor/editor-state/element-editor-state/function-activator/MemSQLFunctionActivatorEditorState.ts +29 -1
  71. package/src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.ts +29 -1
  72. package/src/stores/editor/editor-state/element-editor-state/function-activator/SnowflakeM2MUdfFunctionActivatorEditorState.ts +29 -1
  73. package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +6 -0
  74. package/tsconfig.json +1 -0
@@ -27,18 +27,22 @@ import {
27
27
  } from '@finos/legend-graph';
28
28
  import {
29
29
  type GeneratorFn,
30
+ type PlainObject,
30
31
  ActionState,
31
32
  assertErrorThrown,
32
33
  guaranteeType,
33
34
  } from '@finos/legend-shared';
34
- import { makeObservable, action, flow, computed } from 'mobx';
35
+ import { makeObservable, action, flow, computed, observable } from 'mobx';
35
36
  import type { EditorStore } from '../../../EditorStore.js';
36
37
  import { ElementEditorState } from '../ElementEditorState.js';
37
38
 
38
39
  export class SnowflakeM2MUdfFunctionActivatorEdtiorState extends ElementEditorState {
39
40
  readonly validateState = ActionState.create();
41
+ readonly renderArtifactState = ActionState.create();
40
42
  readonly deployState = ActionState.create();
41
43
 
44
+ artifact: PlainObject | undefined;
45
+
42
46
  constructor(editorStore: EditorStore, element: SnowflakeM2MUdf) {
43
47
  super(editorStore, element);
44
48
 
@@ -52,6 +56,9 @@ export class SnowflakeM2MUdfFunctionActivatorEdtiorState extends ElementEditorSt
52
56
  updateUdfName: action,
53
57
  updateConnection: action,
54
58
  validate: flow,
59
+ renderArtifact: flow,
60
+ artifact: observable,
61
+ setArtifact: action,
55
62
  deployToSandbox: flow,
56
63
  });
57
64
  }
@@ -95,6 +102,10 @@ export class SnowflakeM2MUdfFunctionActivatorEdtiorState extends ElementEditorSt
95
102
  this.activator.description = val;
96
103
  }
97
104
 
105
+ setArtifact(newArtifact: PlainObject | undefined): void {
106
+ this.artifact = newArtifact;
107
+ }
108
+
98
109
  *validate(): GeneratorFn<void> {
99
110
  this.validateState.inProgress();
100
111
  try {
@@ -113,6 +124,23 @@ export class SnowflakeM2MUdfFunctionActivatorEdtiorState extends ElementEditorSt
113
124
  }
114
125
  }
115
126
 
127
+ *renderArtifact(): GeneratorFn<void> {
128
+ this.renderArtifactState.inProgress();
129
+ try {
130
+ const artifact =
131
+ (yield this.editorStore.graphManagerState.graphManager.renderFunctionActivatorArtifact(
132
+ this.activator,
133
+ new InMemoryGraphData(this.editorStore.graphManagerState.graph),
134
+ )) as PlainObject;
135
+ this.artifact = artifact;
136
+ } catch (error) {
137
+ assertErrorThrown(error);
138
+ this.editorStore.applicationStore.notificationService.notifyError(error);
139
+ } finally {
140
+ this.renderArtifactState.complete();
141
+ }
142
+ }
143
+
116
144
  *deployToSandbox(): GeneratorFn<void> {
117
145
  this.deployState.inProgress();
118
146
  try {
@@ -47,6 +47,12 @@ export const accessPoint_setClassification = action(
47
47
  },
48
48
  );
49
49
 
50
+ export const accessPoint_setReproducible = action(
51
+ (accessPoint: LakehouseAccessPoint, reproducible: boolean | undefined) => {
52
+ accessPoint.reproducible = reproducible;
53
+ },
54
+ );
55
+
50
56
  export const accessPointGroup_setDescription = action(
51
57
  (group: AccessPointGroup, description: string) => {
52
58
  group.description = description;
package/tsconfig.json CHANGED
@@ -269,6 +269,7 @@
269
269
  "./src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_NewSchemaSetDriver.tsx",
270
270
  "./src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx",
271
271
  "./src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx",
272
+ "./src/components/editor/editor-group/function-activator/ActivatorArtifactViewer.tsx",
272
273
  "./src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx",
273
274
  "./src/components/editor/editor-group/function-activator/FunctionEditor.tsx",
274
275
  "./src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx",