@finos/legend-extension-dsl-service 1.0.167 → 1.0.169

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/lib/__lib__/studio/DSL_Service_LegendStudioNavigation.d.ts.map +1 -1
  2. package/lib/components/query/DSL_Service_LegendQueryApplicationPlugin.d.ts +3 -2
  3. package/lib/components/query/DSL_Service_LegendQueryApplicationPlugin.d.ts.map +1 -1
  4. package/lib/components/query/DSL_Service_LegendQueryApplicationPlugin.js +48 -31
  5. package/lib/components/query/DSL_Service_LegendQueryApplicationPlugin.js.map +1 -1
  6. package/lib/components/query/ServiceRegisterModal.d.ts.map +1 -1
  7. package/lib/components/query/ServiceRegisterModal.js +6 -2
  8. package/lib/components/query/ServiceRegisterModal.js.map +1 -1
  9. package/lib/components/studio/QueryProductionizer.js.map +1 -1
  10. package/lib/components/studio/ServiceQueryEditor.d.ts.map +1 -1
  11. package/lib/components/studio/ServiceQueryEditor.js +2 -2
  12. package/lib/components/studio/ServiceQueryEditor.js.map +1 -1
  13. package/lib/components/studio/ServiceQueryEditorReviewAction.js.map +1 -1
  14. package/lib/components/studio/UpdateProjectServiceQuerySetup.d.ts.map +1 -1
  15. package/lib/components/studio/UpdateProjectServiceQuerySetup.js +1 -2
  16. package/lib/components/studio/UpdateProjectServiceQuerySetup.js.map +1 -1
  17. package/lib/components/studio/UpdateServiceQuerySetup.d.ts.map +1 -1
  18. package/lib/components/studio/UpdateServiceQuerySetup.js +1 -2
  19. package/lib/components/studio/UpdateServiceQuerySetup.js.map +1 -1
  20. package/lib/index.css +1 -1
  21. package/lib/package.json +10 -10
  22. package/lib/stores/studio/QueryProductionizerStore.js.map +1 -1
  23. package/lib/stores/studio/ServiceQueryEditorStore.d.ts +2 -2
  24. package/lib/stores/studio/ServiceQueryEditorStore.d.ts.map +1 -1
  25. package/lib/stores/studio/ServiceQueryEditorStore.js +2 -2
  26. package/lib/stores/studio/ServiceQueryEditorStore.js.map +1 -1
  27. package/lib/stores/studio/UpdateProjectServiceQuerySetupStore.js.map +1 -1
  28. package/lib/stores/studio/UpdateServiceQuerySetupStore.js.map +1 -1
  29. package/package.json +22 -22
  30. package/src/components/query/DSL_Service_LegendQueryApplicationPlugin.tsx +93 -67
  31. package/src/components/query/ServiceRegisterModal.tsx +16 -2
  32. package/src/components/studio/ServiceQueryEditor.tsx +2 -0
  33. package/src/components/studio/UpdateProjectServiceQuerySetup.tsx +9 -10
  34. package/src/components/studio/UpdateServiceQuerySetup.tsx +9 -10
  35. package/src/stores/studio/ServiceQueryEditorStore.ts +4 -1
  36. package/tsconfig.json +17 -1
  37. package/tsconfig.package.json +17 -1
@@ -220,8 +220,7 @@ export const UpdateServiceQuerySetup = withUpdateServiceQuerySetupStore(
220
220
  !setupStore.currentProject ||
221
221
  !setupStore.currentGroupWorkspace ||
222
222
  !setupStore.currentWorkspaceService ||
223
- !setupStore.currentProjectConfigurationStatus ||
224
- !setupStore.currentProjectConfigurationStatus.isConfigured;
223
+ !setupStore.currentProjectConfigurationStatus?.isConfigured;
225
224
  const handleProceed = (): void => {
226
225
  if (
227
226
  setupStore.currentProject &&
@@ -328,8 +327,8 @@ export const UpdateServiceQuerySetup = withUpdateServiceQuerySetupStore(
328
327
  : ''
329
328
  }\nPlease choose another appropriate workspace or create and use a new workspace`
330
329
  : setupStore.checkWorkspaceCompatibilityState.isInProgress
331
- ? `Checking if the specified service is present in the workspace`
332
- : undefined
330
+ ? `Checking if the specified service is present in the workspace`
331
+ : undefined
333
332
  }
334
333
  >
335
334
  <div className="workspace-selector__option__icon">
@@ -433,12 +432,12 @@ export const UpdateServiceQuerySetup = withUpdateServiceQuerySetupStore(
433
432
  setupStore.loadWorkspacesState.isInProgress
434
433
  ? 'Loading workspaces...'
435
434
  : !setupStore.currentProject
436
- ? 'In order to choose a workspace, a project must be chosen'
437
- : workspaceOptions.length
438
- ? 'Choose an existing workspace'
439
- : setupStore.loadWorkspacesState.hasFailed
440
- ? `Can't fetch project workspaces. Please try again or choose another service`
441
- : 'You have no workspaces. Please create one to proceed...'
435
+ ? 'In order to choose a workspace, a project must be chosen'
436
+ : workspaceOptions.length
437
+ ? 'Choose an existing workspace'
438
+ : setupStore.loadWorkspacesState.hasFailed
439
+ ? `Can't fetch project workspaces. Please try again or choose another service`
440
+ : 'You have no workspaces. Please create one to proceed...'
442
441
  }
443
442
  isClearable={true}
444
443
  escapeClearsValue={true}
@@ -35,8 +35,9 @@ import {
35
35
  } from '@finos/legend-graph';
36
36
  import {
37
37
  type QueryBuilderState,
38
- ServiceQueryBuilderState,
39
38
  type QueryBuilderWorkflowState,
39
+ type QueryBuilderActionConfig,
40
+ ServiceQueryBuilderState,
40
41
  } from '@finos/legend-query-builder';
41
42
  import {
42
43
  type DepotServerClient,
@@ -160,6 +161,7 @@ export abstract class ServiceQueryEditorStore extends EditorStore {
160
161
 
161
162
  *initializeWithServiceQuery(
162
163
  workflow: QueryBuilderWorkflowState,
164
+ actionConfig: QueryBuilderActionConfig,
163
165
  ): GeneratorFn<void> {
164
166
  try {
165
167
  const serviceInfo =
@@ -189,6 +191,7 @@ export abstract class ServiceQueryEditorStore extends EditorStore {
189
191
  this.applicationStore,
190
192
  this.graphManagerState,
191
193
  workflow,
194
+ actionConfig,
192
195
  this.service,
193
196
  undefined,
194
197
  undefined,
package/tsconfig.json CHANGED
@@ -24,7 +24,23 @@
24
24
  "outDir": "./lib",
25
25
  "tsBuildInfoFile": "./build/prod.tsbuildinfo",
26
26
  "rootDir": "./src",
27
- "jsx": "react-jsx"
27
+ "jsx": "react-jsx",
28
+ "moduleResolution": "nodenext",
29
+ "moduleDetection": "force",
30
+ "isolatedModules": true,
31
+ "esModuleInterop": true,
32
+ "allowSyntheticDefaultImports": true,
33
+ "preserveConstEnums": true,
34
+ "incremental": true,
35
+ "useDefineForClassFields": true,
36
+ "noImplicitAny": true,
37
+ "noImplicitThis": true,
38
+ "strictNullChecks": true,
39
+ "strictFunctionTypes": true,
40
+ "strictBindCallApply": true,
41
+ "strictPropertyInitialization": true,
42
+ "alwaysStrict": true,
43
+ "useUnknownInCatchVariables": true
28
44
  },
29
45
  "references": [
30
46
  {
@@ -23,7 +23,23 @@
23
23
  "forceConsistentCasingInFileNames": true,
24
24
  "outDir": "./lib",
25
25
  "tsBuildInfoFile": "./build/package.tsbuildinfo",
26
- "rootDir": "./"
26
+ "rootDir": "./",
27
+ "moduleResolution": "nodenext",
28
+ "moduleDetection": "force",
29
+ "isolatedModules": true,
30
+ "esModuleInterop": true,
31
+ "allowSyntheticDefaultImports": true,
32
+ "preserveConstEnums": true,
33
+ "incremental": true,
34
+ "useDefineForClassFields": true,
35
+ "noImplicitAny": true,
36
+ "noImplicitThis": true,
37
+ "strictNullChecks": true,
38
+ "strictFunctionTypes": true,
39
+ "strictBindCallApply": true,
40
+ "strictPropertyInitialization": true,
41
+ "alwaysStrict": true,
42
+ "useUnknownInCatchVariables": true
27
43
  },
28
44
  "files": [
29
45
  "./package.json"