diff --git a/.changeset/six-mails-repair.md b/.changeset/six-mails-repair.md new file mode 100644 index 00000000000..ebcf2e1b2d4 --- /dev/null +++ b/.changeset/six-mails-repair.md @@ -0,0 +1,33 @@ +--- +'@finos/eslint-plugin-legend-studio': patch +'@finos/legend-application': patch +'@finos/legend-art': patch +'@finos/legend-dev-utils': patch +'@finos/legend-extension-dsl-data-space': patch +'@finos/legend-extension-dsl-diagram': patch +'@finos/legend-extension-dsl-persistence': patch +'@finos/legend-extension-dsl-text': patch +'@finos/legend-extension-external-format-json-schema': patch +'@finos/legend-extension-external-language-morphir': patch +'@finos/legend-extension-external-store-service': patch +'@finos/legend-extension-mapping-generation': patch +'@finos/legend-graph': patch +'@finos/legend-graph-extension-collection': patch +'@finos/legend-manual-tests': patch +'@finos/legend-model-storage': patch +'@finos/legend-query': patch +'@finos/legend-query-app': patch +'@finos/legend-query-deployment': patch +'@finos/legend-server-depot': patch +'@finos/legend-server-sdlc': patch +'@finos/legend-shared': patch +'@finos/legend-studio': patch +'@finos/legend-studio-app': patch +'@finos/legend-studio-deployment': patch +'@finos/legend-studio-extension-management-toolkit': patch +'@finos/legend-studio-extension-query-builder': patch +'@finos/legend-taxonomy': patch +'@finos/legend-taxonomy-app': patch +'@finos/legend-taxonomy-deployment': patch +'@finos/legend-tracer-extension-zipkin': patch +--- diff --git a/fixtures/legend-mock-server/src/index.ts b/fixtures/legend-mock-server/src/index.ts index f6bc1bbf236..b9182269a71 100644 --- a/fixtures/legend-mock-server/src/index.ts +++ b/fixtures/legend-mock-server/src/index.ts @@ -16,7 +16,7 @@ import Fastify from 'fastify'; import FastifyCORS from '@fastify/cors'; -import TAXONOMY_TREE_DATA from './TEST_DATA__TaxonomyTreeData.json' assert { type: 'json' }; +import TAXONOMY_TREE_DATA from './TEST_DATA__TaxonomyTreeData.json'; const PORT = 60001; const BASE_URL = '/api/'; diff --git a/packages/eslint-plugin/src/configs/recommended.js b/packages/eslint-plugin/src/configs/recommended.js index eea1d89f202..3096efef6de 100644 --- a/packages/eslint-plugin/src/configs/recommended.js +++ b/packages/eslint-plugin/src/configs/recommended.js @@ -124,6 +124,8 @@ const IMPORT_RULES = { 'import/namespace': OFF, 'import/default': OFF, 'import/export': OFF, + // Enforce ESM-styled imports + 'import/extensions': [ERROR, 'always', { ignorePackages: true }], 'import/newline-after-import': [WARN, { count: 1 }], 'import/no-default-export': WARN, }; diff --git a/packages/legend-application/src/application/LegendApplication.tsx b/packages/legend-application/src/application/LegendApplication.tsx index 2aae88bb23b..e319baefb2b 100644 --- a/packages/legend-application/src/application/LegendApplication.tsx +++ b/packages/legend-application/src/application/LegendApplication.tsx @@ -16,12 +16,12 @@ import { configure as configureMobx } from 'mobx'; import { editor as monacoEditorAPI } from 'monaco-editor'; -import { MONOSPACED_FONT_FAMILY } from '../const'; +import { MONOSPACED_FONT_FAMILY } from '../const.js'; import type { LegendApplicationConfig, LegendApplicationConfigurationData, LegendApplicationVersionData, -} from '../stores/LegendApplicationConfig'; +} from '../stores/LegendApplicationConfig.js'; import { type AbstractPlugin, type AbstractPreset, @@ -31,11 +31,11 @@ import { assertNonNullable, NetworkClient, } from '@finos/legend-shared'; -import { APPLICATION_EVENT } from '../stores/ApplicationEvent'; +import { APPLICATION_EVENT } from '../stores/ApplicationEvent.js'; import { configureComponents } from '@finos/legend-art'; import type { GraphPluginManager } from '@finos/legend-graph'; -import type { LegendApplicationPluginManager } from './LegendApplicationPluginManager'; -import { setupPureLanguageService } from '../stores/PureLanguageSupport'; +import type { LegendApplicationPluginManager } from './LegendApplicationPluginManager.js'; +import { setupPureLanguageService } from '../stores/PureLanguageSupport.js'; export abstract class LegendApplicationLogger { abstract debug(event: LogEvent, ...data: unknown[]): void; diff --git a/packages/legend-application/src/application/LegendApplicationPluginManager.tsx b/packages/legend-application/src/application/LegendApplicationPluginManager.tsx index 14a3238d2f7..4e7ccc17ead 100644 --- a/packages/legend-application/src/application/LegendApplicationPluginManager.tsx +++ b/packages/legend-application/src/application/LegendApplicationPluginManager.tsx @@ -25,7 +25,7 @@ import { type TracerServicePluginManager, AbstractPluginManager, } from '@finos/legend-shared'; -import type { LegendApplicationPlugin } from '../stores/LegendApplicationPlugin'; +import type { LegendApplicationPlugin } from '../stores/LegendApplicationPlugin.js'; export class LegendApplicationPluginManager extends AbstractPluginManager diff --git a/packages/legend-application/src/components/ActionAlert.tsx b/packages/legend-application/src/components/ActionAlert.tsx index e2c5ebc7b08..5857a57cd1e 100644 --- a/packages/legend-application/src/components/ActionAlert.tsx +++ b/packages/legend-application/src/components/ActionAlert.tsx @@ -19,10 +19,10 @@ import { ActionAlertActionType, ActionAlertType, type ActionAlertInfo, -} from '../stores/ApplicationStore'; +} from '../stores/ApplicationStore.js'; import { observer } from 'mobx-react-lite'; import { noop } from '@finos/legend-shared'; -import { useApplicationStore } from './ApplicationStoreProvider'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; const getActionButtonClassName = (type: ActionAlertActionType): string => { switch (type) { diff --git a/packages/legend-application/src/components/ApplicationStoreProvider.tsx b/packages/legend-application/src/components/ApplicationStoreProvider.tsx index a21751fc77f..1c04654b083 100644 --- a/packages/legend-application/src/components/ApplicationStoreProvider.tsx +++ b/packages/legend-application/src/components/ApplicationStoreProvider.tsx @@ -16,11 +16,11 @@ import { createContext, useContext } from 'react'; import { useLocalObservable } from 'mobx-react-lite'; -import { ApplicationStore } from '../stores/ApplicationStore'; -import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig'; +import { ApplicationStore } from '../stores/ApplicationStore.js'; +import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { useWebApplicationNavigator } from './WebApplicationNavigatorProvider'; -import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager'; +import { useWebApplicationNavigator } from './WebApplicationNavigatorProvider.js'; +import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js'; const ApplicationStoreContext = createContext< ApplicationStore | undefined diff --git a/packages/legend-application/src/components/ApplicationStoreProviderTestUtils.tsx b/packages/legend-application/src/components/ApplicationStoreProviderTestUtils.tsx index 467b6b2ceb5..a24258fa93a 100644 --- a/packages/legend-application/src/components/ApplicationStoreProviderTestUtils.tsx +++ b/packages/legend-application/src/components/ApplicationStoreProviderTestUtils.tsx @@ -16,11 +16,11 @@ import { jest } from '@jest/globals'; import { createMemoryHistory } from 'history'; -import { ApplicationStore } from '../stores/ApplicationStore'; -import { WebApplicationNavigator } from '../stores/WebApplicationNavigator'; -import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig'; -import { ApplicationStoreProvider } from './ApplicationStoreProvider'; -import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager'; +import { ApplicationStore } from '../stores/ApplicationStore.js'; +import { WebApplicationNavigator } from '../stores/WebApplicationNavigator.js'; +import type { LegendApplicationConfig } from '../stores/LegendApplicationConfig.js'; +import { ApplicationStoreProvider } from './ApplicationStoreProvider.js'; +import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js'; export const TEST__ApplicationStoreProvider: React.FC<{ children: React.ReactNode; @@ -50,7 +50,7 @@ export const TEST__provideMockedApplicationStore = < new WebApplicationNavigator(createMemoryHistory()), pluginManager, ); - const MockedApplicationStoreProvider = require('./ApplicationStoreProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment + const MockedApplicationStoreProvider = require('./ApplicationStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment MockedApplicationStoreProvider.useApplicationStore = jest.fn(); MockedApplicationStoreProvider.useApplicationStore.mockReturnValue(value); return value; diff --git a/packages/legend-application/src/components/BlockingAlert.tsx b/packages/legend-application/src/components/BlockingAlert.tsx index a11c743bfaa..9aae6d38a35 100644 --- a/packages/legend-application/src/components/BlockingAlert.tsx +++ b/packages/legend-application/src/components/BlockingAlert.tsx @@ -17,7 +17,7 @@ import { observer } from 'mobx-react-lite'; import { PanelLoadingIndicator, Dialog } from '@finos/legend-art'; import { noop } from '@finos/legend-shared'; -import { useApplicationStore } from './ApplicationStoreProvider'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; /** * The users of this need to justify their use case because blocking app disrupts the UX flow. diff --git a/packages/legend-application/src/components/DocumentationLink.tsx b/packages/legend-application/src/components/DocumentationLink.tsx index 0735750a62b..49af5540bc0 100644 --- a/packages/legend-application/src/components/DocumentationLink.tsx +++ b/packages/legend-application/src/components/DocumentationLink.tsx @@ -15,7 +15,7 @@ */ import { clsx, QuestionCircleIcon } from '@finos/legend-art'; -import { useApplicationStore } from './ApplicationStoreProvider'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; export const DocumentationLink: React.FC<{ documentationKey: string; diff --git a/packages/legend-application/src/components/LambdaEditor.tsx b/packages/legend-application/src/components/LambdaEditor.tsx index 54c712913b3..02b1b7dfe76 100644 --- a/packages/legend-application/src/components/LambdaEditor.tsx +++ b/packages/legend-application/src/components/LambdaEditor.tsx @@ -35,7 +35,7 @@ import { LongArrowAltUpIcon, Dialog, } from '@finos/legend-art'; -import type { LambdaEditorState } from '../stores/LambdaEditorState'; +import type { LambdaEditorState } from '../stores/LambdaEditorState.js'; import { debounce, noop, @@ -44,9 +44,9 @@ import { } from '@finos/legend-shared'; import { flowResult } from 'mobx'; import { ParserError, type EngineError, type Type } from '@finos/legend-graph'; -import { APPLICATION_TEST_ID } from './ApplicationTestID'; -import { useApplicationStore } from './ApplicationStoreProvider'; -import { EDITOR_LANGUAGE, EDITOR_THEME, TAB_SIZE } from '../const'; +import { APPLICATION_TEST_ID } from './ApplicationTestID.js'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; +import { EDITOR_LANGUAGE, EDITOR_THEME, TAB_SIZE } from '../const.js'; export type LambdaEditorOnKeyDownEventHandler = { matcher: (event: IKeyboardEvent) => boolean; diff --git a/packages/legend-application/src/components/LegendApplicationComponentFrameworkProvider.tsx b/packages/legend-application/src/components/LegendApplicationComponentFrameworkProvider.tsx index 4f18684cbcf..46b3f44550d 100644 --- a/packages/legend-application/src/components/LegendApplicationComponentFrameworkProvider.tsx +++ b/packages/legend-application/src/components/LegendApplicationComponentFrameworkProvider.tsx @@ -15,9 +15,9 @@ */ import { LegendStyleProvider } from '@finos/legend-art'; -import { ActionAlert } from './ActionAlert'; -import { BlockingAlert } from './BlockingAlert'; -import { NotificationManager } from './NotificationManager'; +import { ActionAlert } from './ActionAlert.js'; +import { BlockingAlert } from './BlockingAlert.js'; +import { NotificationManager } from './NotificationManager.js'; export const LegendApplicationComponentFrameworkProvider: React.FC<{ children: React.ReactNode; diff --git a/packages/legend-application/src/components/LegendApplicationNavigationContextServiceUtils.tsx b/packages/legend-application/src/components/LegendApplicationNavigationContextServiceUtils.tsx index a171b3a7f56..42e81b2f7c0 100644 --- a/packages/legend-application/src/components/LegendApplicationNavigationContextServiceUtils.tsx +++ b/packages/legend-application/src/components/LegendApplicationNavigationContextServiceUtils.tsx @@ -15,8 +15,8 @@ */ import { useEffect } from 'react'; -import { ApplicationNavigationContextData } from '../stores/LegendApplicationNavigationContextService'; -import { useApplicationStore } from './ApplicationStoreProvider'; +import { ApplicationNavigationContextData } from '../stores/LegendApplicationNavigationContextService.js'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; /** * Provides a convenient hook mechanism to handle application navigation diff --git a/packages/legend-application/src/components/NotificationManager.tsx b/packages/legend-application/src/components/NotificationManager.tsx index 49c1e04afe1..59f60f5e4eb 100644 --- a/packages/legend-application/src/components/NotificationManager.tsx +++ b/packages/legend-application/src/components/NotificationManager.tsx @@ -18,8 +18,8 @@ import { observer } from 'mobx-react-lite'; import { DEFAULT_NOTIFICATION_HIDE_TIME, NOTIFCATION_SEVERITY, -} from '../stores/ApplicationStore'; -import { useApplicationStore } from './ApplicationStoreProvider'; +} from '../stores/ApplicationStore.js'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; import { Notification, NotificationContent, diff --git a/packages/legend-application/src/components/TextInputEditor.tsx b/packages/legend-application/src/components/TextInputEditor.tsx index e42cab06ad2..01ba02269ee 100644 --- a/packages/legend-application/src/components/TextInputEditor.tsx +++ b/packages/legend-application/src/components/TextInputEditor.tsx @@ -29,8 +29,8 @@ import { getEditorValue, normalizeLineEnding, } from '@finos/legend-art'; -import { type EDITOR_LANGUAGE, EDITOR_THEME, TAB_SIZE } from '../const'; -import { useApplicationStore } from './ApplicationStoreProvider'; +import { type EDITOR_LANGUAGE, EDITOR_THEME, TAB_SIZE } from '../const.js'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; export type TextInputEditorOnKeyDownEventHandler = { matcher: (event: IKeyboardEvent) => boolean; diff --git a/packages/legend-application/src/components/VirtualAssistant.tsx b/packages/legend-application/src/components/VirtualAssistant.tsx index ce617aecb96..d3e54c301f8 100644 --- a/packages/legend-application/src/components/VirtualAssistant.tsx +++ b/packages/legend-application/src/components/VirtualAssistant.tsx @@ -46,12 +46,12 @@ import { import { format } from 'date-fns'; import { observer } from 'mobx-react-lite'; import { useEffect, useMemo, useRef, useState } from 'react'; -import { DATE_TIME_FORMAT, TAB_SIZE } from '../const'; +import { DATE_TIME_FORMAT, TAB_SIZE } from '../const.js'; import { type VirtualAssistantDocumentationEntry, VIRTUAL_ASSISTANT_TAB, -} from '../stores/LegendApplicationAssistantService'; -import { useApplicationStore } from './ApplicationStoreProvider'; +} from '../stores/LegendApplicationAssistantService.js'; +import { useApplicationStore } from './ApplicationStoreProvider.js'; import Draggable from 'react-draggable'; const WIZARD_GREETING = `Bonjour, It's Pierre!`; diff --git a/packages/legend-application/src/components/WebApplicationNavigatorProvider.tsx b/packages/legend-application/src/components/WebApplicationNavigatorProvider.tsx index 8b51ed8d056..b7f2304f639 100644 --- a/packages/legend-application/src/components/WebApplicationNavigatorProvider.tsx +++ b/packages/legend-application/src/components/WebApplicationNavigatorProvider.tsx @@ -19,7 +19,7 @@ import { useLocalObservable } from 'mobx-react-lite'; import { createContext, useContext } from 'react'; import { useHistory } from 'react-router'; import type { History } from 'history'; -import { WebApplicationNavigator } from '../stores/WebApplicationNavigator'; +import { WebApplicationNavigator } from '../stores/WebApplicationNavigator.js'; const WebApplicationNavigatorContext = createContext< WebApplicationNavigator | undefined diff --git a/packages/legend-application/src/components/WebApplicationNavigatorProviderTestUtils.tsx b/packages/legend-application/src/components/WebApplicationNavigatorProviderTestUtils.tsx index 6df2e4d6b23..121e6b1bb5c 100644 --- a/packages/legend-application/src/components/WebApplicationNavigatorProviderTestUtils.tsx +++ b/packages/legend-application/src/components/WebApplicationNavigatorProviderTestUtils.tsx @@ -15,7 +15,7 @@ */ import { jest } from '@jest/globals'; -import { WebApplicationNavigator } from '../stores/WebApplicationNavigator'; +import { WebApplicationNavigator } from '../stores/WebApplicationNavigator.js'; import { createMemoryHistory, type History } from 'history'; export const TEST__provideMockedWebApplicationNavigator = (customization?: { @@ -27,7 +27,7 @@ export const TEST__provideMockedWebApplicationNavigator = (customization?: { new WebApplicationNavigator( customization?.history ?? createMemoryHistory(), ); - const MockWebApplicationNavigatorProvider = require('./WebApplicationNavigatorProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment + const MockWebApplicationNavigatorProvider = require('./WebApplicationNavigatorProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment MockWebApplicationNavigatorProvider.useWebApplicationNavigator = jest.fn(); MockWebApplicationNavigatorProvider.useWebApplicationNavigator.mockReturnValue( value, diff --git a/packages/legend-application/src/index.ts b/packages/legend-application/src/index.ts index 08695b7e636..92b4317a90c 100644 --- a/packages/legend-application/src/index.ts +++ b/packages/legend-application/src/index.ts @@ -14,37 +14,37 @@ * limitations under the License. */ -export * from './const'; +export * from './const.js'; -export * from './application/LegendApplicationPluginManager'; -export * from './application/LegendApplication'; +export * from './application/LegendApplicationPluginManager.js'; +export * from './application/LegendApplication.js'; -export * from './components/ApplicationStoreProvider'; -export * from './components/WebApplicationNavigatorProvider'; -export * from './components/LegendApplicationComponentFrameworkProvider'; -export * from './components/LegendApplicationNavigationContextServiceUtils'; +export * from './components/ApplicationStoreProvider.js'; +export * from './components/WebApplicationNavigatorProvider.js'; +export * from './components/LegendApplicationComponentFrameworkProvider.js'; +export * from './components/LegendApplicationNavigationContextServiceUtils.js'; -export * from './components/ApplicationStoreProviderTestUtils'; -export * from './components/WebApplicationNavigatorProviderTestUtils'; +export * from './components/ApplicationStoreProviderTestUtils.js'; +export * from './components/WebApplicationNavigatorProviderTestUtils.js'; // TODO: consider moving this to `LegendApplicationComponentFrameworkProvider` // once we think we can add virtual assistant support for all apps -export * from './components/VirtualAssistant'; -export * from './components/DocumentationLink'; -export * from './components/TextInputEditor'; -export * from './components/LambdaEditor'; +export * from './components/VirtualAssistant.js'; +export * from './components/DocumentationLink.js'; +export * from './components/TextInputEditor.js'; +export * from './components/LambdaEditor.js'; -export * from './stores/ApplicationStore'; -export * from './stores/ApplicationTelemetry'; -export * from './stores/ApplicationEvent'; -export * from './stores/LegendApplicationConfig'; -export { WebApplicationNavigator } from './stores/WebApplicationNavigator'; -export { LambdaEditorState } from './stores/LambdaEditorState'; -export * from './stores/PackageableElementOption'; -export * from './stores/LegendApplicationDocumentationService'; -export * from './stores/LegendApplicationEventService'; -export * from './stores/LegendApplicationAssistantService'; -export * from './stores/LegendApplicationNavigationContextService'; -export * from './stores/LegendApplicationPlugin'; +export * from './stores/ApplicationStore.js'; +export * from './stores/ApplicationTelemetry.js'; +export * from './stores/ApplicationEvent.js'; +export * from './stores/LegendApplicationConfig.js'; +export { WebApplicationNavigator } from './stores/WebApplicationNavigator.js'; +export { LambdaEditorState } from './stores/LambdaEditorState.js'; +export * from './stores/PackageableElementOption.js'; +export * from './stores/LegendApplicationDocumentationService.js'; +export * from './stores/LegendApplicationEventService.js'; +export * from './stores/LegendApplicationAssistantService.js'; +export * from './stores/LegendApplicationNavigationContextService.js'; +export * from './stores/LegendApplicationPlugin.js'; -export * from './stores/ApplicationStoreTestUtils'; +export * from './stores/ApplicationStoreTestUtils.js'; diff --git a/packages/legend-application/src/stores/ApplicationStore.ts b/packages/legend-application/src/stores/ApplicationStore.ts index 1251a1de6cd..3ea7f6a288d 100644 --- a/packages/legend-application/src/stores/ApplicationStore.ts +++ b/packages/legend-application/src/stores/ApplicationStore.ts @@ -26,14 +26,14 @@ import { ApplicationError, } from '@finos/legend-shared'; import { makeAutoObservable, action } from 'mobx'; -import { APPLICATION_EVENT } from './ApplicationEvent'; -import type { LegendApplicationConfig } from './LegendApplicationConfig'; -import type { WebApplicationNavigator } from './WebApplicationNavigator'; -import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager'; -import { LegendApplicationDocumentationService } from './LegendApplicationDocumentationService'; -import { LegendApplicationAssistantService } from './LegendApplicationAssistantService'; -import { LegendApplicationEventService } from './LegendApplicationEventService'; -import { LegendApplicationNavigationContextService } from './LegendApplicationNavigationContextService'; +import { APPLICATION_EVENT } from './ApplicationEvent.js'; +import type { LegendApplicationConfig } from './LegendApplicationConfig.js'; +import type { WebApplicationNavigator } from './WebApplicationNavigator.js'; +import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js'; +import { LegendApplicationDocumentationService } from './LegendApplicationDocumentationService.js'; +import { LegendApplicationAssistantService } from './LegendApplicationAssistantService.js'; +import { LegendApplicationEventService } from './LegendApplicationEventService.js'; +import { LegendApplicationNavigationContextService } from './LegendApplicationNavigationContextService.js'; export enum ActionAlertType { STANDARD = 'STANDARD', diff --git a/packages/legend-application/src/stores/ApplicationStoreTestUtils.ts b/packages/legend-application/src/stores/ApplicationStoreTestUtils.ts index 74f523c6f5e..df1d6e8ad3a 100644 --- a/packages/legend-application/src/stores/ApplicationStoreTestUtils.ts +++ b/packages/legend-application/src/stores/ApplicationStoreTestUtils.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { ApplicationStore } from './ApplicationStore'; +import { ApplicationStore } from './ApplicationStore.js'; import { createBrowserHistory } from 'history'; -import { WebApplicationNavigator } from './WebApplicationNavigator'; -import type { LegendApplicationConfig } from './LegendApplicationConfig'; -import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager'; +import { WebApplicationNavigator } from './WebApplicationNavigator.js'; +import type { LegendApplicationConfig } from './LegendApplicationConfig.js'; +import type { LegendApplicationPluginManager } from '../application/LegendApplicationPluginManager.js'; export const TEST_DATA__applicationVersion = { buildTime: '2001-01-01T00:00:00-0000', diff --git a/packages/legend-application/src/stores/ApplicationTelemetry.ts b/packages/legend-application/src/stores/ApplicationTelemetry.ts index 2485f4c1e04..f8f8eb01b15 100644 --- a/packages/legend-application/src/stores/ApplicationTelemetry.ts +++ b/packages/legend-application/src/stores/ApplicationTelemetry.ts @@ -15,7 +15,7 @@ */ import type { TelemetryService } from '@finos/legend-shared'; -import { APPLICATION_EVENT } from './ApplicationEvent'; +import { APPLICATION_EVENT } from './ApplicationEvent.js'; type ApplicationLoaded_TelemetryData = { browser: { diff --git a/packages/legend-application/src/stores/LegendApplicationAssistantService.ts b/packages/legend-application/src/stores/LegendApplicationAssistantService.ts index 5f8b152f751..6599ef19e19 100644 --- a/packages/legend-application/src/stores/LegendApplicationAssistantService.ts +++ b/packages/legend-application/src/stores/LegendApplicationAssistantService.ts @@ -18,9 +18,9 @@ import { action, makeObservable, observable, computed } from 'mobx'; import type { LegendApplicationContextualDocumentationEntry, LegendApplicationDocumentationEntry, -} from './LegendApplicationDocumentationService'; -import type { LegendApplicationConfig } from './LegendApplicationConfig'; -import type { ApplicationStore } from './ApplicationStore'; +} from './LegendApplicationDocumentationService.js'; +import type { LegendApplicationConfig } from './LegendApplicationConfig.js'; +import type { ApplicationStore } from './ApplicationStore.js'; import Fuse from 'fuse.js'; import { type MarkdownText, diff --git a/packages/legend-application/src/stores/LegendApplicationConfig.ts b/packages/legend-application/src/stores/LegendApplicationConfig.ts index 8bd11792d38..32b95ff66b1 100644 --- a/packages/legend-application/src/stores/LegendApplicationConfig.ts +++ b/packages/legend-application/src/stores/LegendApplicationConfig.ts @@ -25,7 +25,7 @@ import { type LegendApplicationContextualDocumentationEntryConfig, collectKeyedDocumnetationEntriesFromConfig, collectKeyedContextualDocumentationEntriesFromConfig, -} from './LegendApplicationDocumentationService'; +} from './LegendApplicationDocumentationService.js'; export interface LegendApplicationVersionData { buildTime: string; diff --git a/packages/legend-application/src/stores/LegendApplicationDocumentationService.ts b/packages/legend-application/src/stores/LegendApplicationDocumentationService.ts index da1ab91193d..102b3295e8c 100644 --- a/packages/legend-application/src/stores/LegendApplicationDocumentationService.ts +++ b/packages/legend-application/src/stores/LegendApplicationDocumentationService.ts @@ -30,9 +30,9 @@ import { optional, primitive, } from 'serializr'; -import { APPLICATION_EVENT } from './ApplicationEvent'; -import type { ApplicationStore } from './ApplicationStore'; -import type { LegendApplicationConfig } from './LegendApplicationConfig'; +import { APPLICATION_EVENT } from './ApplicationEvent.js'; +import type { ApplicationStore } from './ApplicationStore.js'; +import type { LegendApplicationConfig } from './LegendApplicationConfig.js'; export type LegendApplicationDocumentationEntryConfig = { markdownText?: MarkdownText | undefined; diff --git a/packages/legend-application/src/stores/LegendApplicationPlugin.ts b/packages/legend-application/src/stores/LegendApplicationPlugin.ts index 235fac8153f..b717751f384 100644 --- a/packages/legend-application/src/stores/LegendApplicationPlugin.ts +++ b/packages/legend-application/src/stores/LegendApplicationPlugin.ts @@ -18,7 +18,7 @@ import { AbstractPlugin } from '@finos/legend-shared'; import type { LegendApplicationKeyedContextualDocumentationEntry, LegendApplicationKeyedDocumentationEntry, -} from './LegendApplicationDocumentationService'; +} from './LegendApplicationDocumentationService.js'; export abstract class LegendApplicationPlugin extends AbstractPlugin { /** diff --git a/packages/legend-application/src/stores/PureLanguageSupport.ts b/packages/legend-application/src/stores/PureLanguageSupport.ts index 4e5d6653e2c..5230010142a 100644 --- a/packages/legend-application/src/stores/PureLanguageSupport.ts +++ b/packages/legend-application/src/stores/PureLanguageSupport.ts @@ -26,7 +26,7 @@ import { editor as monacoEditorAPI, languages as monacoLanguagesAPI, } from 'monaco-editor'; -import { EDITOR_LANGUAGE, EDITOR_THEME } from '../const'; +import { EDITOR_LANGUAGE, EDITOR_THEME } from '../const.js'; const theme: monacoEditorAPI.IStandaloneThemeData = { base: 'vs-dark', // can also be vs-dark or hc-black diff --git a/packages/legend-art/src/components/CustomSelectorInput.tsx b/packages/legend-art/src/components/CustomSelectorInput.tsx index e42864b2d57..c7de8ae1ac8 100644 --- a/packages/legend-art/src/components/CustomSelectorInput.tsx +++ b/packages/legend-art/src/components/CustomSelectorInput.tsx @@ -21,7 +21,7 @@ import React, { forwardRef, type LegacyRef, } from 'react'; -import { CaretDownIcon, TimesIcon, CircleNotchIcon } from './Icon'; +import { CaretDownIcon, TimesIcon, CircleNotchIcon } from './Icon.js'; import CreatableSelect, { type Props } from 'react-select/creatable'; import Select, { createFilter } from 'react-select'; import { FixedSizeList } from 'react-window'; diff --git a/packages/legend-art/src/components/Input.tsx b/packages/legend-art/src/components/Input.tsx index 3d065354602..472f743990a 100644 --- a/packages/legend-art/src/components/Input.tsx +++ b/packages/legend-art/src/components/Input.tsx @@ -15,7 +15,7 @@ */ import styled from '@emotion/styled'; import { css, cx } from '@emotion/css'; -import { TimesCircleIcon } from './Icon'; +import { TimesCircleIcon } from './Icon.js'; // TODO: migrate to `TailWindCSS` // See https://github.com/finos/legend-studio/issues/760 diff --git a/packages/legend-art/src/components/TreeView.tsx b/packages/legend-art/src/components/TreeView.tsx index f117218ef53..35c8a3243c6 100644 --- a/packages/legend-art/src/components/TreeView.tsx +++ b/packages/legend-art/src/components/TreeView.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import { ChevronDownIcon, ChevronRightIcon } from './Icon'; +import { ChevronDownIcon, ChevronRightIcon } from './Icon.js'; import { isNonNullable } from '@finos/legend-shared'; import clsx from 'clsx'; diff --git a/packages/legend-art/src/components/TypeIcon.tsx b/packages/legend-art/src/components/TypeIcon.tsx index c655d3e61be..bbadb939906 100644 --- a/packages/legend-art/src/components/TypeIcon.tsx +++ b/packages/legend-art/src/components/TypeIcon.tsx @@ -28,7 +28,7 @@ import { import { MdSettingsEthernet, MdLink } from 'react-icons/md'; import { FiPackage } from 'react-icons/fi'; import { RiShapeLine } from 'react-icons/ri'; -import { TabulatedDataFileIcon } from './Icon'; +import { TabulatedDataFileIcon } from './Icon.js'; export const PURE_PrimitiveTypeIcon: React.FC = () => (
p
diff --git a/packages/legend-art/src/components/menu/ContextMenu.tsx b/packages/legend-art/src/components/menu/ContextMenu.tsx index 8915061e54c..0aaf6e79330 100644 --- a/packages/legend-art/src/components/menu/ContextMenu.tsx +++ b/packages/legend-art/src/components/menu/ContextMenu.tsx @@ -16,7 +16,7 @@ import { useState, useRef } from 'react'; import type { MenuProps as MuiMenuProps } from '@mui/material'; -import { BaseMenu } from './BaseMenu'; +import { BaseMenu } from './BaseMenu.js'; export const ContextMenu: React.FC<{ children: React.ReactNode; diff --git a/packages/legend-art/src/components/menu/DropdownMenu.tsx b/packages/legend-art/src/components/menu/DropdownMenu.tsx index 1aeae491928..9b9f388a499 100644 --- a/packages/legend-art/src/components/menu/DropdownMenu.tsx +++ b/packages/legend-art/src/components/menu/DropdownMenu.tsx @@ -16,7 +16,7 @@ import { useEffect, useRef, useState } from 'react'; import type { MenuProps as MuiMenuProps } from '@mui/material'; -import { BaseMenu } from './BaseMenu'; +import { BaseMenu } from './BaseMenu.js'; export const DropdownMenu: React.FC<{ children: React.ReactNode; diff --git a/packages/legend-art/src/components/panel/BlankPanelPlaceholder.tsx b/packages/legend-art/src/components/panel/BlankPanelPlaceholder.tsx index d51e4fbcb81..7b4f10c181f 100644 --- a/packages/legend-art/src/components/panel/BlankPanelPlaceholder.tsx +++ b/packages/legend-art/src/components/panel/BlankPanelPlaceholder.tsx @@ -15,10 +15,10 @@ */ import { useEffect, useState } from 'react'; -import { VerticalAlignBottomIcon, AddIcon, EditIcon } from '../Icon'; +import { VerticalAlignBottomIcon, AddIcon, EditIcon } from '../Icon.js'; import clsx from 'clsx'; import { useResizeDetector } from 'react-resize-detector'; -import { BlankPanelContent } from './BlankPanelContent'; +import { BlankPanelContent } from './BlankPanelContent.js'; const DEFAULT_CONTENT_PADDING = 20; const MIN_DIMENSION = 50; diff --git a/packages/legend-art/src/index.ts b/packages/legend-art/src/index.ts index 05206384566..dc26f4464f1 100644 --- a/packages/legend-art/src/index.ts +++ b/packages/legend-art/src/index.ts @@ -14,47 +14,47 @@ * limitations under the License. */ -export * from './utils/ComponentUtils'; -export * from './utils/PanelDisplayState'; -export * from './utils/TextEditorUtils'; -export * from './utils/HotkeyConfiguration'; +export * from './utils/ComponentUtils.js'; +export * from './utils/PanelDisplayState.js'; +export * from './utils/TextEditorUtils.js'; +export * from './utils/HotkeyConfiguration.js'; -export * from './components/Icon'; -export * from './components/TypeIcon'; -export * from './components/Input'; -export * from './components/LegendLogo'; -export * from './components/TreeView'; -export * from './components/CustomSelectorInput'; -export * from './components/ComponentsConfiguration'; -export * from './components/ResizablePanel'; +export * from './components/Icon.js'; +export * from './components/TypeIcon.js'; +export * from './components/Input.js'; +export * from './components/LegendLogo.js'; +export * from './components/TreeView.js'; +export * from './components/CustomSelectorInput.js'; +export * from './components/ComponentsConfiguration.js'; +export * from './components/ResizablePanel.js'; -export * from './components/dialog/Dialog'; -export * from './components/dialog/NonBlockingDialog'; +export * from './components/dialog/Dialog.js'; +export * from './components/dialog/NonBlockingDialog.js'; -export * from './components/menu/MenuContent'; -export * from './components/menu/ContextMenu'; -export * from './components/menu/DropdownMenu'; +export * from './components/menu/MenuContent.js'; +export * from './components/menu/ContextMenu.js'; +export * from './components/menu/DropdownMenu.js'; -export * from './components/popover/BasePopover'; -export * from './components/popover/BasePopper'; -export * from './components/RadioGroup/BaseRadioGroup'; +export * from './components/popover/BasePopover.js'; +export * from './components/popover/BasePopper.js'; +export * from './components/RadioGroup/BaseRadioGroup.js'; -export * from './components/panel/BlankPanelContent'; -export * from './components/panel/BlankPanelPlaceholder'; -export * from './components/panel/PanelLoadingIndicator'; +export * from './components/panel/BlankPanelContent.js'; +export * from './components/panel/BlankPanelPlaceholder.js'; +export * from './components/panel/PanelLoadingIndicator.js'; -export * from './components/ProgressBar'; +export * from './components/ProgressBar.js'; -export * from './components/Tooltip'; +export * from './components/Tooltip.js'; -export * from './components/Notification'; +export * from './components/Notification.js'; -export * from './components/Backdrop'; +export * from './components/Backdrop.js'; -export * from './components/ClickAwayListener'; +export * from './components/ClickAwayListener.js'; -export * from './components/LegendStyleProvider'; +export * from './components/LegendStyleProvider.js'; -export * from './components/markdown/MarkdownTextViewer'; +export * from './components/markdown/MarkdownTextViewer.js'; -export * from './testMocks/MonacoEditorMockUtils'; +export * from './testMocks/MonacoEditorMockUtils.js'; diff --git a/packages/legend-art/src/testMocks/MockedMonacoEditor.ts b/packages/legend-art/src/testMocks/MockedMonacoEditor.ts index 837be0e6244..8f9cb490a22 100644 --- a/packages/legend-art/src/testMocks/MockedMonacoEditor.ts +++ b/packages/legend-art/src/testMocks/MockedMonacoEditor.ts @@ -21,4 +21,4 @@ export { MockedMonacoEditorInstance as mockedMonacoEditorInstance, MockedMonacoEditorAPI as editor, MockedMonacoEditorLanguagesAPI as languages, -} from './MonacoEditorMockUtils'; +} from './MonacoEditorMockUtils.js'; diff --git a/packages/legend-dev-utils/JestConfigUtils.js b/packages/legend-dev-utils/JestConfigUtils.js index 43dba795ed3..9e18a2a490e 100644 --- a/packages/legend-dev-utils/JestConfigUtils.js +++ b/packages/legend-dev-utils/JestConfigUtils.js @@ -36,26 +36,20 @@ export const getBaseConfig = ({ }, ], }, - transformIgnorePatterns: [ - // Since we're using ESM in our project code, we need `Jest `to transform them - // since files coming from `/node_modules/` are skipped by default - // So having more items un-ignored will make tests run slower - // See https://github.com/finos/legend-studio/issues/502 - // - // NOTE: Providing regexp patterns that overlap with each other may result in files - // not being transformed that you expected to be transformed - // See https://jestjs.io/docs/configuration#transformignorepatterns-arraystring - `/node_modules/(?!(@finos/legend)${ - TEMPORARY__esmPackagesToTransform.length - ? `|${TEMPORARY__esmPackagesToTransform.join('|')}` - : '' - })`, - ], + transformIgnorePatterns: TEMPORARY__esmPackagesToTransform.length + ? [ + // NOTE: Providing regexp patterns that overlap with each other may result in files + // not being transformed that you expected to be transformed + // See https://jestjs.io/docs/configuration#transformignorepatterns-arraystring + `/node_modules/(?!${TEMPORARY__esmPackagesToTransform.join('|')})`, + ] + : [], // Setup to run immediately after the test framework has been installed in the environment // before each test file in the suite is executed // See https://jestjs.io/docs/en/configuration#setupfilesafterenv-array setupFilesAfterEnv: [], moduleNameMapper: { + '(.+)\\.js': '$1', // Mock for non-javascript file as we don't need Jest to transform these // NOTE: we should not need this right now, but we leave this here just in case '\\.(svg|css|scss)$': '@finos/legend-dev-utils/mocks/fileMock', diff --git a/packages/legend-dev-utils/tsconfig.base.json b/packages/legend-dev-utils/tsconfig.base.json index 582faff975c..d7910a4de01 100644 --- a/packages/legend-dev-utils/tsconfig.base.json +++ b/packages/legend-dev-utils/tsconfig.base.json @@ -9,7 +9,7 @@ "sourceMap": true, // Module settings "target": "esnext", - "module": "esnext", + "module": "NodeNext", "skipLibCheck": true, // skip type checking of all declaration files (*.d.ts) "moduleResolution": "node", // See https://www.typescriptlang.org/docs/handbook/module-resolution.html "resolveJsonModule": true, // include JSON files module and auto-interpret types diff --git a/packages/legend-extension-dsl-data-space/src/DSLDataSpace_Extension.ts b/packages/legend-extension-dsl-data-space/src/DSLDataSpace_Extension.ts index 02d388ca657..1b04e284e06 100644 --- a/packages/legend-extension-dsl-data-space/src/DSLDataSpace_Extension.ts +++ b/packages/legend-extension-dsl-data-space/src/DSLDataSpace_Extension.ts @@ -16,9 +16,9 @@ import packageJson from '../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { DSLDataSpace_PureGraphManagerPlugin } from './graphManager/DSLDataSpace_PureGraphManagerPlugin'; -import { DSLDataSpace_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin'; -import { DSLDataSpace_PureGraphPlugin } from './graph/DSLDataSpace_PureGraphPlugin'; +import { DSLDataSpace_PureGraphManagerPlugin } from './graphManager/DSLDataSpace_PureGraphManagerPlugin.js'; +import { DSLDataSpace_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js'; +import { DSLDataSpace_PureGraphPlugin } from './graph/DSLDataSpace_PureGraphPlugin.js'; export class DSLDataSpace_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-extension-dsl-data-space/src/components/DataSpaceViewer.tsx b/packages/legend-extension-dsl-data-space/src/components/DataSpaceViewer.tsx index 2299843bc60..5cc972e2be3 100644 --- a/packages/legend-extension-dsl-data-space/src/components/DataSpaceViewer.tsx +++ b/packages/legend-extension-dsl-data-space/src/components/DataSpaceViewer.tsx @@ -43,13 +43,13 @@ import { import { DataSpaceSupportEmail, type DataSpaceSupportInfo, -} from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; -import type { ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin'; +} from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; +import type { ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js'; import type { PackageableRuntime } from '@finos/legend-graph'; import { type DataSpaceViewerState, DATA_SPACE_VIEWER_ACTIVITY_MODE, -} from '../stores/DataSpaceViewerState'; +} from '../stores/DataSpaceViewerState.js'; interface DataSpaceViewerActivityConfig { mode: DATA_SPACE_VIEWER_ACTIVITY_MODE; diff --git a/packages/legend-extension-dsl-data-space/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx b/packages/legend-extension-dsl-data-space/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx index 511cb38a331..7870c9388cf 100644 --- a/packages/legend-extension-dsl-data-space/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx +++ b/packages/legend-extension-dsl-data-space/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx @@ -23,8 +23,8 @@ import { type QuerySetupStore, } from '@finos/legend-query'; import { SquareIcon } from '@finos/legend-art'; -import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState'; -import { DataspaceQuerySetup } from './DataSpaceQuerySetup'; +import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState.js'; +import { DataspaceQuerySetup } from './DataSpaceQuerySetup.js'; export class DSLDataSpace_LegendQueryPlugin extends LegendQueryPlugin { constructor() { diff --git a/packages/legend-extension-dsl-data-space/src/components/query/DataSpaceQuerySetup.tsx b/packages/legend-extension-dsl-data-space/src/components/query/DataSpaceQuerySetup.tsx index 42fc5753775..01584a07535 100644 --- a/packages/legend-extension-dsl-data-space/src/components/query/DataSpaceQuerySetup.tsx +++ b/packages/legend-extension-dsl-data-space/src/components/query/DataSpaceQuerySetup.tsx @@ -36,8 +36,8 @@ import { useEffect, useMemo, useRef, useState } from 'react'; import type { DataSpaceQuerySetupState, LightDataSpace, -} from '../../stores/query/DataSpaceQuerySetupState'; -import { DataSpaceViewer } from '../DataSpaceViewer'; +} from '../../stores/query/DataSpaceQuerySetupState.js'; +import { DataSpaceViewer } from '../DataSpaceViewer.js'; type DataSpaceOption = { label: string; value: LightDataSpace }; const buildDataSpaceOption = (dataSpace: LightDataSpace): DataSpaceOption => ({ diff --git a/packages/legend-extension-dsl-data-space/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx b/packages/legend-extension-dsl-data-space/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx index 33dc38d9bb5..70e676b6416 100644 --- a/packages/legend-extension-dsl-data-space/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx +++ b/packages/legend-extension-dsl-data-space/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx @@ -38,7 +38,7 @@ import type { PackageableElement } from '@finos/legend-graph'; import { DataSpace, DataSpaceExecutionContext, -} from '../../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; +} from '../../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot'; import { collectKeyedDocumnetationEntriesFromConfig, @@ -48,12 +48,12 @@ import { import { DSL_DATA_SPACE_DOCUMENTATION_ENTRIES, DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY, -} from './DSLDataSpace_LegendStudioDocumentation'; +} from './DSLDataSpace_LegendStudioDocumentation.js'; import { PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL, PURE_GRAMMAR_DATA_SPACE_PARSER_NAME, -} from '../../graphManager/DSLDataSpace_PureGraphManagerPlugin'; -import { SIMPLE_DATA_SPACE_SNIPPET } from './DSLDataSpace_CodeSnippets'; +} from '../../graphManager/DSLDataSpace_PureGraphManagerPlugin.js'; +import { SIMPLE_DATA_SPACE_SNIPPET } from './DSLDataSpace_CodeSnippets.js'; const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE'; const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = diff --git a/packages/legend-extension-dsl-data-space/src/graph/DSLDataSpace_PureGraphPlugin.ts b/packages/legend-extension-dsl-data-space/src/graph/DSLDataSpace_PureGraphPlugin.ts index 37213175492..d7a4e30a72c 100644 --- a/packages/legend-extension-dsl-data-space/src/graph/DSLDataSpace_PureGraphPlugin.ts +++ b/packages/legend-extension-dsl-data-space/src/graph/DSLDataSpace_PureGraphPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; +import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; import type { Clazz } from '@finos/legend-shared'; import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph'; diff --git a/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_GraphManagerHelper.ts b/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_GraphManagerHelper.ts index 760aa931c17..23ccd46494f 100644 --- a/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_GraphManagerHelper.ts +++ b/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_GraphManagerHelper.ts @@ -16,7 +16,7 @@ import type { BasicModel, PureModel } from '@finos/legend-graph'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; +import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; export const getDataSpace = (path: string, graph: PureModel): DataSpace => graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`); diff --git a/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts b/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts index 9e220aad1db..15133b4ba08 100644 --- a/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +++ b/packages/legend-extension-dsl-data-space/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; +import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; import { PureGraphManagerPlugin, type ObserverContext, @@ -23,7 +23,7 @@ import { type PackageableElement, type PureGrammarElementLabeler, } from '@finos/legend-graph'; -import { observe_DataSpace } from './action/changeDetection/DSLDataSpace_ObserverHelper'; +import { observe_DataSpace } from './action/changeDetection/DSLDataSpace_ObserverHelper.js'; export const PURE_GRAMMAR_DATA_SPACE_PARSER_NAME = 'DataSpace'; export const PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL = 'DataSpace'; diff --git a/packages/legend-extension-dsl-data-space/src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts b/packages/legend-extension-dsl-data-space/src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts index 60781badd06..efcec07ba7e 100644 --- a/packages/legend-extension-dsl-data-space/src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts +++ b/packages/legend-extension-dsl-data-space/src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts @@ -21,7 +21,7 @@ import { skipObserved, } from '@finos/legend-graph'; import { makeObservable, override } from 'mobx'; -import type { DataSpace } from '../../../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; +import type { DataSpace } from '../../../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; export const observe_DataSpace = skipObserved( (metamodel: DataSpace): DataSpace => { diff --git a/packages/legend-extension-dsl-data-space/src/index.ts b/packages/legend-extension-dsl-data-space/src/index.ts index 41fe85b36e4..0c74e483b12 100644 --- a/packages/legend-extension-dsl-data-space/src/index.ts +++ b/packages/legend-extension-dsl-data-space/src/index.ts @@ -14,16 +14,16 @@ * limitations under the License. */ -export * from './DSLDataSpace_Extension'; -export { DSLDataSpace_LegendStudioPlugin } from './components/studio/DSLDataSpace_LegendStudioPlugin'; -export { DSLDataSpace_LegendQueryPlugin } from './components/query/DSLDataSpace_LegendQueryPlugin'; +export * from './DSLDataSpace_Extension.js'; +export { DSLDataSpace_LegendStudioPlugin } from './components/studio/DSLDataSpace_LegendStudioPlugin.js'; +export { DSLDataSpace_LegendQueryPlugin } from './components/query/DSLDataSpace_LegendQueryPlugin.js'; -export { DataSpaceViewer } from './components/DataSpaceViewer'; +export { DataSpaceViewer } from './components/DataSpaceViewer.js'; export { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, extractDataSpaceTaxonomyNodes, getResolvedDataSpace, -} from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin'; +} from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js'; -export { DataSpaceViewerState } from './stores/DataSpaceViewerState'; +export { DataSpaceViewerState } from './stores/DataSpaceViewerState.js'; diff --git a/packages/legend-extension-dsl-data-space/src/models/__tests__/DSLDataSpace_Roundtrip.test.ts b/packages/legend-extension-dsl-data-space/src/models/__tests__/DSLDataSpace_Roundtrip.test.ts index 18a2babcf7e..44455ee0093 100644 --- a/packages/legend-extension-dsl-data-space/src/models/__tests__/DSLDataSpace_Roundtrip.test.ts +++ b/packages/legend-extension-dsl-data-space/src/models/__tests__/DSLDataSpace_Roundtrip.test.ts @@ -17,8 +17,8 @@ import { test } from '@jest/globals'; import type { Entity } from '@finos/legend-model-storage'; import { unitTest } from '@finos/legend-shared'; -import { TEST_DATA__roundtrip } from './TEST_DATA__DSLDataSpace_Roundtrip'; -import { DSLDataSpace_GraphPreset } from '../../DSLDataSpace_Extension'; +import { TEST_DATA__roundtrip } from './TEST_DATA__DSLDataSpace_Roundtrip.js'; +import { DSLDataSpace_GraphPreset } from '../../DSLDataSpace_Extension.js'; import { TEST__GraphPluginManager, TEST__checkBuildingElementsRoundtrip, diff --git a/packages/legend-extension-dsl-data-space/src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts b/packages/legend-extension-dsl-data-space/src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts index 5bd4c06225e..3f2297d3b4c 100644 --- a/packages/legend-extension-dsl-data-space/src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts +++ b/packages/legend-extension-dsl-data-space/src/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts @@ -21,7 +21,7 @@ import { type StereotypeReference, type TaggedValue, } from '@finos/legend-graph'; -import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_ModelUtils'; +import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSLDataSpace_ModelUtils.js'; export abstract class DataSpaceSupportInfo implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts index 7082f9d2a5f..6d31ed8f8e5 100644 --- a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +++ b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts @@ -20,7 +20,7 @@ import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportEmail, -} from './v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace'; +} from './v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js'; import { type PlainObject, uuid, @@ -34,14 +34,14 @@ import { deserialize, serialize } from 'serializr'; import { V1_dataSpaceModelSchema, V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE, -} from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper'; -import { getOwnDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper'; +} from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js'; +import { getOwnDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper.js'; import { type DataSpaceSupportInfo, DataSpace, DataSpaceExecutionContext, DataSpaceSupportEmail, -} from '../../metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; +} from '../../metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; import { type Mapping, type PackageableElement, diff --git a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts index 2161de60651..9136bbf99aa 100644 --- a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts +++ b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../../DSLDataSpace_ModelUtils'; +import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../../DSLDataSpace_ModelUtils.js'; import { V1_PackageableElement, type V1_PackageableElementPointer, diff --git a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts index c8ecfa912af..3acc88cb15f 100644 --- a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts +++ b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { getDataSpace } from '../../../../../../graphManager/DSLDataSpace_GraphManagerHelper'; -import type { DataSpace } from '../../../../../metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; +import { getDataSpace } from '../../../../../../graphManager/DSLDataSpace_GraphManagerHelper.js'; +import type { DataSpace } from '../../../../../metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js'; import type { PackageableElementImplicitReference, V1_GraphBuilderContext, diff --git a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts index 91e36eff3d8..4ca15ef07c3 100644 --- a/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +++ b/packages/legend-extension-dsl-data-space/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts @@ -43,7 +43,7 @@ import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportEmail, -} from '../../model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace'; +} from '../../model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js'; export const V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE = 'dataSpace'; export const V1_DATA_SPACE_SUPPORT_EMAIL_TYPE = 'email'; diff --git a/packages/legend-extension-dsl-data-space/src/stores/DataSpaceViewerState.ts b/packages/legend-extension-dsl-data-space/src/stores/DataSpaceViewerState.ts index b4e27a05f9b..97159609643 100644 --- a/packages/legend-extension-dsl-data-space/src/stores/DataSpaceViewerState.ts +++ b/packages/legend-extension-dsl-data-space/src/stores/DataSpaceViewerState.ts @@ -30,7 +30,7 @@ import { action, computed, makeObservable, observable } from 'mobx'; import type { ResolvedDataSpace, ResolvedDataSpaceExecutionContext, -} from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin'; +} from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js'; export enum DATA_SPACE_VIEWER_ACTIVITY_MODE { MODELS_OVERVIEW = 'MODELS_OVERVIEW', diff --git a/packages/legend-extension-dsl-data-space/src/stores/query/DataSpaceQuerySetupState.ts b/packages/legend-extension-dsl-data-space/src/stores/query/DataSpaceQuerySetupState.ts index c171a921817..78fa811128f 100644 --- a/packages/legend-extension-dsl-data-space/src/stores/query/DataSpaceQuerySetupState.ts +++ b/packages/legend-extension-dsl-data-space/src/stores/query/DataSpaceQuerySetupState.ts @@ -41,8 +41,8 @@ import { action, flow, flowResult, makeObservable, observable } from 'mobx'; import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, getResolvedDataSpace, -} from '../../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin'; -import { DataSpaceViewerState } from '../DataSpaceViewerState'; +} from '../../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js'; +import { DataSpaceViewerState } from '../DataSpaceViewerState.js'; export type LightDataSpace = Entity & { groupId: string; diff --git a/packages/legend-extension-dsl-diagram/src/DSLDiagram_Extension.ts b/packages/legend-extension-dsl-diagram/src/DSLDiagram_Extension.ts index f7aa2003ea4..69ecd01947d 100644 --- a/packages/legend-extension-dsl-diagram/src/DSLDiagram_Extension.ts +++ b/packages/legend-extension-dsl-diagram/src/DSLDiagram_Extension.ts @@ -16,9 +16,9 @@ import packageJson from '../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { DSLDiagram_PureGraphManagerPlugin } from './graphManager/DSLDiagram_PureGraphManagerPlugin'; -import { DSLDiagram_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin'; -import { DSLDiagram_PureGraphPlugin } from './graph/DSLDiagram_PureGraphPlugin'; +import { DSLDiagram_PureGraphManagerPlugin } from './graphManager/DSLDiagram_PureGraphManagerPlugin.js'; +import { DSLDiagram_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js'; +import { DSLDiagram_PureGraphPlugin } from './graph/DSLDiagram_PureGraphPlugin.js'; export class DSLDiagram_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-extension-dsl-diagram/src/DiagramRenderer.ts b/packages/legend-extension-dsl-diagram/src/DiagramRenderer.ts index 7eed8a99795..6b520eb3338 100644 --- a/packages/legend-extension-dsl-diagram/src/DiagramRenderer.ts +++ b/packages/legend-extension-dsl-diagram/src/DiagramRenderer.ts @@ -42,15 +42,15 @@ import { getRawGenericType, } from '@finos/legend-graph'; import { action, makeObservable, observable } from 'mobx'; -import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle'; -import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point'; -import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle'; -import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView'; -import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView'; -import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView'; -import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView'; +import type { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js'; +import { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js'; +import { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js'; +import { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import type { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js'; +import { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js'; +import { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js'; +import { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js'; import { boxContains, buildBottomRightCornerBox, @@ -58,8 +58,8 @@ import { getElementPosition, rotatePointX, rotatePointY, -} from './helpers/DSLDiagram_Helper'; -import { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView'; +} from './helpers/DSLDiagram_Helper.js'; +import { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js'; import { class_addProperty, class_addSuperType } from '@finos/legend-studio'; import { classView_setHideProperties, @@ -85,7 +85,7 @@ import { relationshipView_changePoint, relationshipView_simplifyPath, relationshipView_setPath, -} from './stores/studio/DSLDiagram_GraphModifierHelper'; +} from './stores/studio/DSLDiagram_GraphModifierHelper.js'; export enum DIAGRAM_INTERACTION_MODE { LAYOUT, diff --git a/packages/legend-extension-dsl-diagram/src/components/studio/ClassDiagramPreview.tsx b/packages/legend-extension-dsl-diagram/src/components/studio/ClassDiagramPreview.tsx index ccc55c2734c..a9bc12a3504 100644 --- a/packages/legend-extension-dsl-diagram/src/components/studio/ClassDiagramPreview.tsx +++ b/packages/legend-extension-dsl-diagram/src/components/studio/ClassDiagramPreview.tsx @@ -19,8 +19,8 @@ import { useResizeDetector } from 'react-resize-detector'; import { observer } from 'mobx-react-lite'; import { useApplicationStore } from '@finos/legend-application'; import type { Class } from '@finos/legend-graph'; -import { InheritanceDiagramRenderer } from './InheritanceDiagramRenderer'; -import { DSL_DIAGRAM_TEST_ID } from './DSLDiagram_TestID'; +import { InheritanceDiagramRenderer } from './InheritanceDiagramRenderer.js'; +import { DSL_DIAGRAM_TEST_ID } from './DSLDiagram_TestID.js'; import { useEditorStore } from '@finos/legend-studio'; export const ClassDiagramPreview = observer((props: { _class: Class }) => { diff --git a/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin.tsx b/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin.tsx index 7c79dd6220f..1c1ed0a8246 100644 --- a/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin.tsx +++ b/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin.tsx @@ -38,10 +38,10 @@ import { } from '@finos/legend-studio'; import { ShapesIcon } from '@finos/legend-art'; import type { Class, PackageableElement } from '@finos/legend-graph'; -import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { DiagramEditorState } from '../../stores/studio/DiagramEditorState'; -import { DiagramEditor } from './DiagramEditor'; -import { ClassDiagramPreview } from './ClassDiagramPreview'; +import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js'; +import { DiagramEditor } from './DiagramEditor.js'; +import { ClassDiagramPreview } from './ClassDiagramPreview.js'; import { type LegendApplicationDocumentationEntry, type LegendApplicationKeyedDocumentationEntry, @@ -50,17 +50,17 @@ import { import { PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL, PURE_GRAMMAR_DIAGRAM_PARSER_NAME, -} from '../../graphManager/DSLDiagram_PureGraphManagerPlugin'; +} from '../../graphManager/DSLDiagram_PureGraphManagerPlugin.js'; import { DSL_DIAGRAM_DOCUMENTATION_ENTRIES, DSL_DIAGRAM_LEGEND_STUDIO_DOCUMENTATION_KEY, -} from './DSLDiagram_LegendStudioDocumentation'; +} from './DSLDiagram_LegendStudioDocumentation.js'; import { EMPTY_DIAGRAM_SNIPPET, getDiagramSnippetWithGeneralizationView, getDiagramSnippetWithOneClassView, getDiagramSnippetWithPropertyView, -} from './DSLDiagram_CodeSnippets'; +} from './DSLDiagram_CodeSnippets.js'; const DIAGRAM_ELEMENT_TYPE = 'DIAGRAM'; const DIAGRAM_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DIAGRAM'; diff --git a/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx b/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx index b5ad0e2c889..876c3fcdd2e 100644 --- a/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx +++ b/packages/legend-extension-dsl-diagram/src/components/studio/DSLDiagram_LegendStudioPlugin_Extension.tsx @@ -15,8 +15,8 @@ */ import type { DSL_LegendStudioPlugin_Extension } from '@finos/legend-studio'; -import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import type { DiagramEditorState } from '../../stores/studio/DiagramEditorState'; +import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import type { DiagramEditorState } from '../../stores/studio/DiagramEditorState.js'; export type ClassViewContextMenuItemRendererConfiguration = { key: string; diff --git a/packages/legend-extension-dsl-diagram/src/components/studio/DiagramEditor.tsx b/packages/legend-extension-dsl-diagram/src/components/studio/DiagramEditor.tsx index 939e934e263..6373faf7ebf 100644 --- a/packages/legend-extension-dsl-diagram/src/components/studio/DiagramEditor.tsx +++ b/packages/legend-extension-dsl-diagram/src/components/studio/DiagramEditor.tsx @@ -30,7 +30,7 @@ import { DIAGRAM_INTERACTION_MODE, DIAGRAM_RELATIONSHIP_EDIT_MODE, DIAGRAM_ZOOM_LEVELS, -} from '../../DiagramRenderer'; +} from '../../DiagramRenderer.js'; import { type DiagramEditorInlineClassCreatorState, type DiagramEditorInlineClassRenamerState, @@ -38,7 +38,7 @@ import { DIAGRAM_EDITOR_SIDE_PANEL_TAB, DiagramEditorClassViewEditorSidePanelState, DiagramEditorState, -} from '../../stores/studio/DiagramEditorState'; +} from '../../stores/studio/DiagramEditorState.js'; import { type ResizablePanelHandlerProps, ContextMenu, @@ -104,14 +104,14 @@ import { property_setGenericType, property_setMultiplicity, } from '@finos/legend-studio'; -import { cleanUpDeadReferencesInDiagram } from '../../helpers/DSLDiagram_Helper'; -import { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point'; -import type { DSLDiagram_LegendStudioPlugin_Extension } from './DSLDiagram_LegendStudioPlugin_Extension'; +import { cleanUpDeadReferencesInDiagram } from '../../helpers/DSLDiagram_Helper.js'; +import { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js'; +import type { DSLDiagram_LegendStudioPlugin_Extension } from './DSLDiagram_LegendStudioPlugin_Extension.js'; import { classView_setHideProperties, classView_setHideStereotypes, classView_setHideTaggedValues, -} from '../../stores/studio/DSLDiagram_GraphModifierHelper'; +} from '../../stores/studio/DSLDiagram_GraphModifierHelper.js'; const DiagramEditorContextMenu = observer( forwardRef< diff --git a/packages/legend-extension-dsl-diagram/src/components/studio/InheritanceDiagramRenderer.ts b/packages/legend-extension-dsl-diagram/src/components/studio/InheritanceDiagramRenderer.ts index e7eb006d513..d36a20599a1 100644 --- a/packages/legend-extension-dsl-diagram/src/components/studio/InheritanceDiagramRenderer.ts +++ b/packages/legend-extension-dsl-diagram/src/components/studio/InheritanceDiagramRenderer.ts @@ -14,14 +14,14 @@ * limitations under the License. */ -import { DiagramRenderer } from '../../DiagramRenderer'; +import { DiagramRenderer } from '../../DiagramRenderer.js'; import { uuid } from '@finos/legend-shared'; import { type Class, PackageableElementExplicitReference, } from '@finos/legend-graph'; -import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; +import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; export class InheritanceDiagramRenderer extends DiagramRenderer { constructor(div: HTMLDivElement, _class: Class) { diff --git a/packages/legend-extension-dsl-diagram/src/components/studio/__tests__/ClassDiagramPreview.test.tsx b/packages/legend-extension-dsl-diagram/src/components/studio/__tests__/ClassDiagramPreview.test.tsx index 6250e9c48e6..1853eeadd00 100644 --- a/packages/legend-extension-dsl-diagram/src/components/studio/__tests__/ClassDiagramPreview.test.tsx +++ b/packages/legend-extension-dsl-diagram/src/components/studio/__tests__/ClassDiagramPreview.test.tsx @@ -23,9 +23,9 @@ import { TEST__openElementFromExplorerTree, LegendStudioPluginManager, } from '@finos/legend-studio'; -import { DSL_DIAGRAM_TEST_ID } from '../DSLDiagram_TestID'; -import { DSLDiagram_GraphPreset } from '../../../DSLDiagram_Extension'; -import { DSLDiagram_LegendStudioPlugin } from '../DSLDiagram_LegendStudioPlugin'; +import { DSL_DIAGRAM_TEST_ID } from '../DSLDiagram_TestID.js'; +import { DSLDiagram_GraphPreset } from '../../../DSLDiagram_Extension.js'; +import { DSLDiagram_LegendStudioPlugin } from '../DSLDiagram_LegendStudioPlugin.js'; const TEST_DATA__dummyModel = [ { diff --git a/packages/legend-extension-dsl-diagram/src/graph/DSLDiagram_PureGraphPlugin.ts b/packages/legend-extension-dsl-diagram/src/graph/DSLDiagram_PureGraphPlugin.ts index 2096b287b71..a1dc7278f49 100644 --- a/packages/legend-extension-dsl-diagram/src/graph/DSLDiagram_PureGraphPlugin.ts +++ b/packages/legend-extension-dsl-diagram/src/graph/DSLDiagram_PureGraphPlugin.ts @@ -22,8 +22,8 @@ import { type PackageableElement, type PureModel, } from '@finos/legend-graph'; -import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { cleanUpDeadReferencesInDiagram } from '../helpers/DSLDiagram_Helper'; +import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { cleanUpDeadReferencesInDiagram } from '../helpers/DSLDiagram_Helper.js'; export class DSLDiagram_PureGraphPlugin extends PureGraphPlugin { constructor() { diff --git a/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_GraphManagerHelper.ts b/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_GraphManagerHelper.ts index 14ce1451ede..3dbd89a87e9 100644 --- a/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_GraphManagerHelper.ts +++ b/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_GraphManagerHelper.ts @@ -16,7 +16,7 @@ import type { BasicModel, PureModel } from '@finos/legend-graph'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; +import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; export const getDiagram = (path: string, graph: PureModel): Diagram => graph.getExtensionElement(path, Diagram, `Can't find diagram '${path}'`); diff --git a/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts b/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts index e239d2b8650..981a3a72190 100644 --- a/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts +++ b/packages/legend-extension-dsl-diagram/src/graphManager/DSLDiagram_PureGraphManagerPlugin.ts @@ -22,8 +22,8 @@ import { type PackageableElement, type PureGrammarElementLabeler, } from '@finos/legend-graph'; -import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { observe_Diagram } from './action/changeDetection/DSLDiagram_ObserverHelper'; +import { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { observe_Diagram } from './action/changeDetection/DSLDiagram_ObserverHelper.js'; export const PURE_GRAMMAR_DIAGRAM_PARSER_NAME = 'Diagram'; export const PURE_GRAMMAR_DIAGRAM_ELEMENT_TYPE_LABEL = 'Diagram'; diff --git a/packages/legend-extension-dsl-diagram/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts b/packages/legend-extension-dsl-diagram/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts index dbe77b5ffd6..d5f52091cc3 100644 --- a/packages/legend-extension-dsl-diagram/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts +++ b/packages/legend-extension-dsl-diagram/src/graphManager/action/changeDetection/DSLDiagram_ObserverHelper.ts @@ -21,15 +21,15 @@ import { skipObserved, } from '@finos/legend-graph'; import { computed, makeObservable, observable, override } from 'mobx'; -import type { AssociationView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView'; -import type { ClassView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import type { ClassViewReference } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference'; -import type { Diagram } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import type { GeneralizationView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView'; -import type { PropertyView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView'; -import type { RelationshipEdgeView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView'; -import type { RelationshipView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView'; -import type { PositionedRectangle } from '../../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle'; +import type { AssociationView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js'; +import type { ClassView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import type { ClassViewReference } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.js'; +import type { Diagram } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import type { GeneralizationView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js'; +import type { PropertyView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js'; +import type { RelationshipEdgeView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js'; +import type { RelationshipView } from '../../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js'; +import type { PositionedRectangle } from '../../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js'; export const observe_PositionedRectangle = skipObserved( (metamodel: PositionedRectangle): PositionedRectangle => diff --git a/packages/legend-extension-dsl-diagram/src/helpers/DSLDiagram_Helper.ts b/packages/legend-extension-dsl-diagram/src/helpers/DSLDiagram_Helper.ts index c0003ed959b..33bcf882c5a 100644 --- a/packages/legend-extension-dsl-diagram/src/helpers/DSLDiagram_Helper.ts +++ b/packages/legend-extension-dsl-diagram/src/helpers/DSLDiagram_Helper.ts @@ -14,14 +14,14 @@ * limitations under the License. */ -import { RelationshipView } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView'; -import { Point } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point'; +import { RelationshipView } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js'; +import { Point } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js'; import type { PureModel } from '@finos/legend-graph'; import { deleteEntry } from '@finos/legend-shared'; -import type { ClassView } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import type { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { PositionedRectangle } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle'; -import { Rectangle } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle'; +import type { ClassView } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import type { Diagram } from '../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { PositionedRectangle } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js'; +import { Rectangle } from '../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js'; export class Vector { readonly x: number; diff --git a/packages/legend-extension-dsl-diagram/src/index.ts b/packages/legend-extension-dsl-diagram/src/index.ts index 2573727730d..57d5c36d40d 100644 --- a/packages/legend-extension-dsl-diagram/src/index.ts +++ b/packages/legend-extension-dsl-diagram/src/index.ts @@ -14,25 +14,28 @@ * limitations under the License. */ -export * from './DSLDiagram_Extension'; -export { DSLDiagram_LegendStudioPlugin } from './components/studio/DSLDiagram_LegendStudioPlugin'; -export * from './components/studio/DSLDiagram_LegendStudioPlugin_Extension'; +export * from './DSLDiagram_Extension.js'; +export { DSLDiagram_LegendStudioPlugin } from './components/studio/DSLDiagram_LegendStudioPlugin.js'; +export * from './components/studio/DSLDiagram_LegendStudioPlugin_Extension.js'; -export { DiagramEditorState } from './stores/studio/DiagramEditorState'; +export { DiagramEditorState } from './stores/studio/DiagramEditorState.js'; -export { DiagramRenderer, DIAGRAM_INTERACTION_MODE } from './DiagramRenderer'; +export { + DiagramRenderer, + DIAGRAM_INTERACTION_MODE, +} from './DiagramRenderer.js'; -export { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -export { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -export { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView'; -export { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView'; -export { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView'; -export { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView'; -export { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView'; -export { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point'; -export { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle'; -export { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle'; +export { Diagram } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +export { ClassView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +export { RelationshipView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js'; +export { PropertyHolderView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js'; +export { PropertyView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js'; +export { AssociationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js'; +export { GeneralizationView } from './models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js'; +export { Point } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js'; +export { Rectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js'; +export { PositionedRectangle } from './models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js'; -export * from './helpers/DSLDiagram_Helper'; -export * from './graphManager/DSLDiagram_GraphManagerHelper'; -export { V1_DSLDiagram_PackageableElementPointerType } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin'; +export * from './helpers/DSLDiagram_Helper.js'; +export * from './graphManager/DSLDiagram_GraphManagerHelper.js'; +export { V1_DSLDiagram_PackageableElementPointerType } from './models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.js'; diff --git a/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_BuildFailure.test.ts b/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_BuildFailure.test.ts index ea28ae2c5f5..abd4eef25eb 100644 --- a/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_BuildFailure.test.ts +++ b/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_BuildFailure.test.ts @@ -17,7 +17,7 @@ import { test, expect } from '@jest/globals'; import { unitTest } from '@finos/legend-shared'; import type { Entity } from '@finos/legend-model-storage'; -import { DSLDiagram_GraphPreset } from '../../DSLDiagram_Extension'; +import { DSLDiagram_GraphPreset } from '../../DSLDiagram_Extension.js'; import { TEST__getTestGraphManagerState, TEST__GraphPluginManager, diff --git a/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_Roundtrip.test.ts b/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_Roundtrip.test.ts index 8b4d6322b1f..9a1cc901cc7 100644 --- a/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_Roundtrip.test.ts +++ b/packages/legend-extension-dsl-diagram/src/models/__tests__/DSLDiagram_Roundtrip.test.ts @@ -17,8 +17,8 @@ import { test } from '@jest/globals'; import type { Entity } from '@finos/legend-model-storage'; import { unitTest } from '@finos/legend-shared'; -import { TEST_DATA__roundtrip } from './TEST_DATA__DSLDiagram_Roundtrip'; -import { DSLDiagram_GraphPreset } from '../../DSLDiagram_Extension'; +import { TEST_DATA__roundtrip } from './TEST_DATA__DSLDiagram_Roundtrip.js'; +import { DSLDiagram_GraphPreset } from '../../DSLDiagram_Extension.js'; import { TEST__GraphPluginManager, TEST__checkBuildingElementsRoundtrip, diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts index b3d5fa210c8..7fbdebc87d8 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.ts @@ -15,10 +15,10 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { PropertyHolderView } from './DSLDiagram_PropertyHolderView'; -import type { ClassView } from './DSLDiagram_ClassView'; -import type { Diagram } from './DSLDiagram_Diagram'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils'; +import { PropertyHolderView } from './DSLDiagram_PropertyHolderView.js'; +import type { ClassView } from './DSLDiagram_ClassView.js'; +import type { Diagram } from './DSLDiagram_Diagram.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils.js'; import type { Association, PackageableElementReference, diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts index 32e0cb5e528..7653268d680 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { PositionedRectangle } from './geometry/DSLDiagram_PositionedRectangle'; -import { Rectangle } from './geometry/DSLDiagram_Rectangle'; -import { Point } from './geometry/DSLDiagram_Point'; -import type { Diagram } from './DSLDiagram_Diagram'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils'; +import { PositionedRectangle } from './geometry/DSLDiagram_PositionedRectangle.js'; +import { Rectangle } from './geometry/DSLDiagram_Rectangle.js'; +import { Point } from './geometry/DSLDiagram_Point.js'; +import type { Diagram } from './DSLDiagram_Diagram.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils.js'; import type { Class, PackageableElementReference } from '@finos/legend-graph'; export class ClassView extends PositionedRectangle implements Hashable { diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts index dc64e00930d..7ac0f300e16 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassViewReference.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { Diagram } from './DSLDiagram_Diagram'; -import type { ClassView } from './DSLDiagram_ClassView'; +import type { Diagram } from './DSLDiagram_Diagram.js'; +import type { ClassView } from './DSLDiagram_ClassView.js'; import { PackageableElementExplicitReference, ReferenceWithOwner, diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts index 587e524eb17..9a8887f050f 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.ts @@ -15,15 +15,15 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { ClassView } from './DSLDiagram_ClassView'; -import type { PropertyView } from './DSLDiagram_PropertyView'; -import type { GeneralizationView } from './DSLDiagram_GeneralizationView'; -import type { AssociationView } from './DSLDiagram_AssociationView'; +import type { ClassView } from './DSLDiagram_ClassView.js'; +import type { PropertyView } from './DSLDiagram_PropertyView.js'; +import type { GeneralizationView } from './DSLDiagram_GeneralizationView.js'; +import type { AssociationView } from './DSLDiagram_AssociationView.js'; import { type PackageableElementVisitor, PackageableElement, } from '@finos/legend-graph'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils.js'; export class Diagram extends PackageableElement implements Hashable { classViews: ClassView[] = []; diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts index 5d026bcaa59..1ead44f1eb0 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { RelationshipView } from './DSLDiagram_RelationshipView'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils'; +import { RelationshipView } from './DSLDiagram_RelationshipView.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils.js'; export class GeneralizationView extends RelationshipView implements Hashable { override get hashCode(): string { diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.ts index 97a427d3c5f..b0788a2651b 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { RelationshipView } from './DSLDiagram_RelationshipView'; -import type { ClassView } from './DSLDiagram_ClassView'; -import type { Diagram } from './DSLDiagram_Diagram'; +import { RelationshipView } from './DSLDiagram_RelationshipView.js'; +import type { ClassView } from './DSLDiagram_ClassView.js'; +import type { Diagram } from './DSLDiagram_Diagram.js'; import type { PropertyReference } from '@finos/legend-graph'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils.js'; export class PropertyHolderView extends RelationshipView implements Hashable { property: PropertyReference; diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts index c8050448b85..a901baeb3d7 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { PropertyHolderView } from './DSLDiagram_PropertyHolderView'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils'; +import { PropertyHolderView } from './DSLDiagram_PropertyHolderView.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils.js'; export class PropertyView extends PropertyHolderView implements Hashable { override get hashCode(): string { diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts index 486ea6ad9a1..bb24b955da4 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { ClassViewReference } from './DSLDiagram_ClassViewReference'; +import type { ClassViewReference } from './DSLDiagram_ClassViewReference.js'; export class RelationshipEdgeView { /** diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts index 2966580c773..df564c076e4 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { RelationshipEdgeView } from './DSLDiagram_RelationshipEdgeView'; -import { Point } from './geometry/DSLDiagram_Point'; -import type { ClassView } from './DSLDiagram_ClassView'; -import type { Diagram } from './DSLDiagram_Diagram'; -import { ClassViewExplicitReference } from './DSLDiagram_ClassViewReference'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils'; +import { RelationshipEdgeView } from './DSLDiagram_RelationshipEdgeView.js'; +import { Point } from './geometry/DSLDiagram_Point.js'; +import type { ClassView } from './DSLDiagram_ClassView.js'; +import type { Diagram } from './DSLDiagram_Diagram.js'; +import { ClassViewExplicitReference } from './DSLDiagram_ClassViewReference.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../DSLDiagram_ModelUtils.js'; export class RelationshipView implements Hashable { readonly _OWNER: Diagram; diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.ts index 7854ff9863f..46b6b57f188 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_ModelUtils'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_ModelUtils.js'; export class Point implements Hashable { readonly x: number; diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts index 59bed2e2c37..3e2eaedb323 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { Point } from './DSLDiagram_Point'; -import { Rectangle } from './DSLDiagram_Rectangle'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_ModelUtils'; +import { Point } from './DSLDiagram_Point.js'; +import { Rectangle } from './DSLDiagram_Rectangle.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_ModelUtils.js'; export class PositionedRectangle implements Hashable { _dummyObservable = {}; diff --git a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.ts b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.ts index f337783cc8e..ba886665e85 100644 --- a/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.ts +++ b/packages/legend-extension-dsl-diagram/src/models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_ModelUtils'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../DSLDiagram_ModelUtils.js'; export class Rectangle implements Hashable { readonly width: number; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts index b5b99d4c4e8..f2024c9d1d2 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/DSLDiagram_PureProtocolProcessorPlugin.ts @@ -15,13 +15,13 @@ */ import packageJson from '../../../../package.json'; -import { V1_Diagram } from './v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram'; +import { V1_Diagram } from './v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.js'; import { type PlainObject, assertType } from '@finos/legend-shared'; import { deserialize, serialize } from 'serializr'; import { V1_diagramModelSchema, V1_DIAGRAM_ELEMENT_PROTOCOL_TYPE, -} from './v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper'; +} from './v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.js'; import { type PackageableElement, type V1_ElementProtocolClassifierPathGetter, @@ -35,14 +35,14 @@ import { V1_ElementBuilder, V1_buildFullPath, } from '@finos/legend-graph'; -import { V1_transformDiagram } from './v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper'; -import { Diagram } from '../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { getOwnDiagram } from '../../../graphManager/DSLDiagram_GraphManagerHelper'; +import { V1_transformDiagram } from './v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.js'; +import { Diagram } from '../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { getOwnDiagram } from '../../../graphManager/DSLDiagram_GraphManagerHelper.js'; import { V1_buildClassView, V1_buildGeneralizationView, V1_buildPropertyView, -} from './v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper'; +} from './v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.js'; const DIAGRAM_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::diagram::Diagram'; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.ts index 9b77eea228d..cb6890f629f 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_ClassView.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { V1_PositionedRectangle } from './geometry/V1_DSLDiagram_PositionedRectangle'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils'; +import { V1_PositionedRectangle } from './geometry/V1_DSLDiagram_PositionedRectangle.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils.js'; export class V1_ClassView extends V1_PositionedRectangle implements Hashable { id!: string; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.ts index 49ac5d7f092..6b81ade7c2d 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_Diagram.ts @@ -15,14 +15,14 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_ClassView } from './V1_DSLDiagram_ClassView'; -import type { V1_PropertyView } from './V1_DSLDiagram_PropertyView'; -import type { V1_GeneralizationView } from './V1_DSLDiagram_GeneralizationView'; +import type { V1_ClassView } from './V1_DSLDiagram_ClassView.js'; +import type { V1_PropertyView } from './V1_DSLDiagram_PropertyView.js'; +import type { V1_GeneralizationView } from './V1_DSLDiagram_GeneralizationView.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, } from '@finos/legend-graph'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils.js'; export class V1_Diagram extends V1_PackageableElement implements Hashable { classViews: V1_ClassView[] = []; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.ts index 531a2331b16..aecba92beb9 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { V1_RelationshipView } from './V1_DSLDiagram_RelationshipView'; -import type { V1_Line } from './geometry/V1_DSLDiagram_Line'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils'; +import { V1_RelationshipView } from './V1_DSLDiagram_RelationshipView.js'; +import type { V1_Line } from './geometry/V1_DSLDiagram_Line.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils.js'; export class V1_GeneralizationView extends V1_RelationshipView diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.ts index 21e4106b907..27256174be5 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyHolderView.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { V1_RelationshipView } from './V1_DSLDiagram_RelationshipView'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils'; +import { V1_RelationshipView } from './V1_DSLDiagram_RelationshipView.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils.js'; import type { V1_PropertyPointer } from '@finos/legend-graph'; export class V1_PropertyHolderView diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.ts index 8885d316017..e293bee83a5 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_PropertyView.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { V1_PropertyHolderView } from './V1_DSLDiagram_PropertyHolderView'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils'; +import { V1_PropertyHolderView } from './V1_DSLDiagram_PropertyHolderView.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils.js'; import type { V1_PropertyPointer } from '@finos/legend-graph'; export class V1_PropertyView extends V1_PropertyHolderView implements Hashable { diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.ts index 5e1857336a2..c2e29684963 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/V1_DSLDiagram_RelationshipView.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_Line } from './geometry/V1_DSLDiagram_Line'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils'; +import type { V1_Line } from './geometry/V1_DSLDiagram_Line.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../DSLDiagram_ModelUtils.js'; export class V1_RelationshipView implements Hashable { sourceView!: string; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.ts index 936080ac93c..e836f0a598e 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { V1_Point } from './V1_DSLDiagram_Point'; +import type { V1_Point } from './V1_DSLDiagram_Point.js'; export class V1_Line { points: V1_Point[] = []; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.ts index e8d6b48fa92..dc16f89a1ca 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../DSLDiagram_ModelUtils'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../DSLDiagram_ModelUtils.js'; export class V1_Point implements Hashable { x!: number; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.ts index f639601f34b..2dfa16aa9e6 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_PositionedRectangle.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_Point } from './V1_DSLDiagram_Point'; -import type { V1_Rectangle } from './V1_DSLDiagram_Rectangle'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../DSLDiagram_ModelUtils'; +import type { V1_Point } from './V1_DSLDiagram_Point.js'; +import type { V1_Rectangle } from './V1_DSLDiagram_Rectangle.js'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../DSLDiagram_ModelUtils.js'; export class V1_PositionedRectangle implements Hashable { rectangle!: V1_Rectangle; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.ts index 2b07a05ac36..37f33be3ecc 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../DSLDiagram_ModelUtils'; +import { DIAGRAM_HASH_STRUCTURE } from '../../../../../../../DSLDiagram_ModelUtils.js'; export class V1_Rectangle implements Hashable { width!: number; diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts index feb66aca6a3..d6ec675b8f0 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_GraphBuilderHelper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { getDiagram } from '../../../../../../graphManager/DSLDiagram_GraphManagerHelper'; +import { getDiagram } from '../../../../../../graphManager/DSLDiagram_GraphManagerHelper.js'; import type { PackageableElementImplicitReference, V1_GraphBuilderContext, @@ -24,21 +24,21 @@ import { assertNonNullable, guaranteeNonNullable, } from '@finos/legend-shared'; -import type { Diagram } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import { ClassView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import { Point } from '../../../../../metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point'; -import { Rectangle } from '../../../../../metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle'; -import { PropertyView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView'; -import { GeneralizationView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView'; -import type { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView'; -import type { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point'; -import type { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle'; -import type { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView'; -import type { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView'; +import type { Diagram } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import { ClassView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import { Point } from '../../../../../metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js'; +import { Rectangle } from '../../../../../metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js'; +import { PropertyView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js'; +import { GeneralizationView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js'; +import type { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView.js'; +import type { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js'; +import type { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js'; +import type { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js'; +import type { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js'; import { getClassView, _relationshipView_simplifyPath, -} from '../../../../../../helpers/DSLDiagram_Helper'; +} from '../../../../../../helpers/DSLDiagram_Helper.js'; const buildPoint = (point: V1_Point): Point => { const x = guaranteeNonNullable(point.x, `Point 'x' coordinate is missing`); diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts index 012456ef1df..4256f3ee056 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDiagram_TransformerHelper.ts @@ -14,18 +14,18 @@ * limitations under the License. */ -import type { ClassView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import type { Diagram } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import type { GeneralizationView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView'; -import type { PropertyView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView'; -import type { RelationshipEdgeView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView'; -import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point'; -import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView'; -import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram'; -import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView'; -import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line'; -import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle'; -import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView'; +import type { ClassView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import type { Diagram } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import type { GeneralizationView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js'; +import type { PropertyView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js'; +import type { RelationshipEdgeView } from '../../../../../metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js'; +import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js'; +import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView.js'; +import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram.js'; +import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js'; +import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.js'; +import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js'; +import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js'; import { V1_initPackageableElement, V1_transformElementReference, diff --git a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts index 5f284cf67da..27fe206ef5a 100644 --- a/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts +++ b/packages/legend-extension-dsl-diagram/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDiagram_ProtocolHelper.ts @@ -19,13 +19,13 @@ import { usingConstantValueSchema, usingModelSchema, } from '@finos/legend-shared'; -import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView'; -import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram'; -import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point'; -import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle'; -import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line'; -import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView'; -import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView'; +import { V1_ClassView } from '../../model/packageableElements/diagram/V1_DSLDiagram_ClassView.js'; +import { V1_Diagram } from '../../model/packageableElements/diagram/V1_DSLDiagram_Diagram.js'; +import { V1_Point } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Point.js'; +import { V1_Rectangle } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Rectangle.js'; +import { V1_Line } from '../../model/packageableElements/diagram/geometry/V1_DSLDiagram_Line.js'; +import { V1_PropertyView } from '../../model/packageableElements/diagram/V1_DSLDiagram_PropertyView.js'; +import { V1_GeneralizationView } from '../../model/packageableElements/diagram/V1_DSLDiagram_GeneralizationView.js'; import { V1_propertyPointerModelSchema } from '@finos/legend-graph'; export const V1_DIAGRAM_ELEMENT_PROTOCOL_TYPE = 'diagram'; diff --git a/packages/legend-extension-dsl-diagram/src/stores/studio/DSLDiagram_GraphModifierHelper.ts b/packages/legend-extension-dsl-diagram/src/stores/studio/DSLDiagram_GraphModifierHelper.ts index 19dcf9a7b86..9c093ed8d63 100644 --- a/packages/legend-extension-dsl-diagram/src/stores/studio/DSLDiagram_GraphModifierHelper.ts +++ b/packages/legend-extension-dsl-diagram/src/stores/studio/DSLDiagram_GraphModifierHelper.ts @@ -16,27 +16,27 @@ import { addUniqueEntry, changeEntry, deleteEntry } from '@finos/legend-shared'; import { action } from 'mobx'; -import type { AssociationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView'; -import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import type { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import type { GeneralizationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView'; +import type { AssociationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_AssociationView.js'; +import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import type { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import type { GeneralizationView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_GeneralizationView.js'; import { _findOrBuildPoint, _relationshipView_simplifyPath, _relationshipView_setPath, -} from '../../helpers/DSLDiagram_Helper'; -import type { PropertyView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView'; -import type { RelationshipEdgeView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView'; -import type { RelationshipView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView'; -import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point'; -import type { PositionedRectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle'; -import type { Rectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle'; +} from '../../helpers/DSLDiagram_Helper.js'; +import type { PropertyView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyView.js'; +import type { RelationshipEdgeView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipEdgeView.js'; +import type { RelationshipView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_RelationshipView.js'; +import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js'; +import type { PositionedRectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_PositionedRectangle.js'; +import type { Rectangle } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Rectangle.js'; import { observe_AssociationView, observe_ClassView, observe_GeneralizationView, observe_PropertyView, -} from '../../graphManager/action/changeDetection/DSLDiagram_ObserverHelper'; +} from '../../graphManager/action/changeDetection/DSLDiagram_ObserverHelper.js'; export const diagram_setClassViews = action( (diagram: Diagram, val: ClassView[]): void => { diff --git a/packages/legend-extension-dsl-diagram/src/stores/studio/DiagramEditorState.ts b/packages/legend-extension-dsl-diagram/src/stores/studio/DiagramEditorState.ts index 94cd04ea4c1..bab389c4faa 100644 --- a/packages/legend-extension-dsl-diagram/src/stores/studio/DiagramEditorState.ts +++ b/packages/legend-extension-dsl-diagram/src/stores/studio/DiagramEditorState.ts @@ -24,7 +24,7 @@ import { import { type DiagramRenderer, DIAGRAM_INTERACTION_MODE, -} from '../../DiagramRenderer'; +} from '../../DiagramRenderer.js'; import { HotkeyConfiguration, PanelDisplayState } from '@finos/legend-art'; import { type PackageableElement, @@ -43,10 +43,10 @@ import { ElementEditorState, class_addProperty, } from '@finos/legend-studio'; -import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView'; -import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point'; -import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram'; -import type { PropertyHolderView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView'; +import type { ClassView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_ClassView.js'; +import type { Point } from '../../models/metamodels/pure/packageableElements/diagram/geometry/DSLDiagram_Point.js'; +import { Diagram } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_Diagram.js'; +import type { PropertyHolderView } from '../../models/metamodels/pure/packageableElements/diagram/DSLDiagram_PropertyHolderView.js'; enum DIAGRAM_EDITOR_HOTKEY { RECENTER = 'RECENTER', diff --git a/packages/legend-extension-dsl-persistence/src/DSLPersistence_Extension.ts b/packages/legend-extension-dsl-persistence/src/DSLPersistence_Extension.ts index f62fa85f620..549bf9ac9c4 100644 --- a/packages/legend-extension-dsl-persistence/src/DSLPersistence_Extension.ts +++ b/packages/legend-extension-dsl-persistence/src/DSLPersistence_Extension.ts @@ -16,9 +16,9 @@ import packageJson from '../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { DSLPersistence_PureGraphPlugin } from './graph/DSLPersistence_PureGraphPlugin'; -import { DSLPersistence_PureGraphManagerPlugin } from './graphManager/DSLPersistence_PureGraphManagerPlugin'; -import { DSLPersistence_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin'; +import { DSLPersistence_PureGraphPlugin } from './graph/DSLPersistence_PureGraphPlugin.js'; +import { DSLPersistence_PureGraphManagerPlugin } from './graphManager/DSLPersistence_PureGraphManagerPlugin.js'; +import { DSLPersistence_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.js'; export class DSLPersistence_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-extension-dsl-persistence/src/components/studio/DSLPersistence_LegendStudioPlugin.tsx b/packages/legend-extension-dsl-persistence/src/components/studio/DSLPersistence_LegendStudioPlugin.tsx index 7839ad8c502..a58d68b292d 100644 --- a/packages/legend-extension-dsl-persistence/src/components/studio/DSLPersistence_LegendStudioPlugin.tsx +++ b/packages/legend-extension-dsl-persistence/src/components/studio/DSLPersistence_LegendStudioPlugin.tsx @@ -35,21 +35,21 @@ import { type PureGrammarParserElementDocumentationGetter, type PureGrammarParserDocumentationGetter, } from '@finos/legend-studio'; -import { Persistence } from '../../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; +import { Persistence } from '../../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; import { PURE_GRAMMAR_PERSISTENCE_ELEMENT_TYPE_LABEL, PURE_GRAMMAR_PERSISTENCE_PARSER_NAME, -} from '../../graphManager/DSLPersistence_PureGraphManagerPlugin'; +} from '../../graphManager/DSLPersistence_PureGraphManagerPlugin.js'; import { DSL_PERSISTENCE_DOCUMENTATION_ENTRIES, DSL_PERSISTENCE_LEGEND_STUDIO_DOCUMENTATION_KEY, -} from './DSLPersistence_LegendStudioDocumentation'; +} from './DSLPersistence_LegendStudioDocumentation.js'; import { collectKeyedDocumnetationEntriesFromConfig, type LegendApplicationDocumentationEntry, type LegendApplicationKeyedDocumentationEntry, } from '@finos/legend-application'; -import { BLANK_PERSISTENCE_SNIPPET } from './DSLPersistence_CodeSnippets'; +import { BLANK_PERSISTENCE_SNIPPET } from './DSLPersistence_CodeSnippets.js'; const PERSISTENCE_ELEMENT_TYPE = 'PERSISTENCE'; const PERSISTENCE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = diff --git a/packages/legend-extension-dsl-persistence/src/graph/DSLPersistence_PureGraphPlugin.ts b/packages/legend-extension-dsl-persistence/src/graph/DSLPersistence_PureGraphPlugin.ts index 87e12ce41ce..d1407b736c2 100644 --- a/packages/legend-extension-dsl-persistence/src/graph/DSLPersistence_PureGraphPlugin.ts +++ b/packages/legend-extension-dsl-persistence/src/graph/DSLPersistence_PureGraphPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { Persistence } from '../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; +import { Persistence } from '../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; import type { Clazz } from '@finos/legend-shared'; import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph'; diff --git a/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_GraphManagerHelper.ts b/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_GraphManagerHelper.ts index cfba495f7cb..4f38faadb7a 100644 --- a/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_GraphManagerHelper.ts +++ b/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_GraphManagerHelper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Persistence } from '../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; +import { Persistence } from '../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; import type { BasicModel, PureModel } from '@finos/legend-graph'; import { guaranteeNonNullable } from '@finos/legend-shared'; diff --git a/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_PureGraphManagerPlugin.ts b/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_PureGraphManagerPlugin.ts index 9186ff9cf8d..3434d307a04 100644 --- a/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_PureGraphManagerPlugin.ts +++ b/packages/legend-extension-dsl-persistence/src/graphManager/DSLPersistence_PureGraphManagerPlugin.ts @@ -15,8 +15,8 @@ */ import packageJson from '../../package.json'; -import { Persistence } from '../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; -import { observe_Persistence } from './action/changeDetection/DSLPersistence_ObserverHelper'; +import { Persistence } from '../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; +import { observe_Persistence } from './action/changeDetection/DSLPersistence_ObserverHelper.js'; import { PureGraphManagerPlugin, type PackageableElement, diff --git a/packages/legend-extension-dsl-persistence/src/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.ts b/packages/legend-extension-dsl-persistence/src/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.ts index 5ebfbcf7ccc..936b1506e8d 100644 --- a/packages/legend-extension-dsl-persistence/src/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.ts +++ b/packages/legend-extension-dsl-persistence/src/graphManager/action/changeDetection/DSLPersistence_ObserverHelper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { Persistence } from '../../../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; +import type { Persistence } from '../../../models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; import { observe_Abstract_PackageableElement, skipObserved, diff --git a/packages/legend-extension-dsl-persistence/src/index.ts b/packages/legend-extension-dsl-persistence/src/index.ts index 8bd9a48fa7b..eaac33f54d6 100644 --- a/packages/legend-extension-dsl-persistence/src/index.ts +++ b/packages/legend-extension-dsl-persistence/src/index.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -export * from './DSLPersistence_Extension'; -export { DSLPersistence_LegendStudioPlugin } from './components/studio/DSLPersistence_LegendStudioPlugin'; -export { Persistence } from './models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; -export { V1_Persistence } from './models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence'; +export * from './DSLPersistence_Extension.js'; +export { DSLPersistence_LegendStudioPlugin } from './components/studio/DSLPersistence_LegendStudioPlugin.js'; +export { Persistence } from './models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; +export { V1_Persistence } from './models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.js'; diff --git a/packages/legend-extension-dsl-persistence/src/models/__tests__/DSLPersistence_Roundtrip.test.ts b/packages/legend-extension-dsl-persistence/src/models/__tests__/DSLPersistence_Roundtrip.test.ts index 457f7f564f8..880c9c8a8fb 100644 --- a/packages/legend-extension-dsl-persistence/src/models/__tests__/DSLPersistence_Roundtrip.test.ts +++ b/packages/legend-extension-dsl-persistence/src/models/__tests__/DSLPersistence_Roundtrip.test.ts @@ -15,8 +15,8 @@ */ import { test } from '@jest/globals'; -import { DSLPersistence_GraphPreset } from '../../DSLPersistence_Extension'; -import { TEST_DATA__roundtrip } from './TEST_DATA__DSLPersistence_Roundtrip'; +import { DSLPersistence_GraphPreset } from '../../DSLPersistence_Extension.js'; +import { TEST_DATA__roundtrip } from './TEST_DATA__DSLPersistence_Roundtrip.js'; import { DSLExternalFormat_GraphPreset, TEST__checkBuildingElementsRoundtrip, diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.ts index 948e453b401..b64eb60ff83 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class Auditing implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.ts index 3e539bb0bb6..c6c5e16f193 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class DeduplicationStrategy implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.ts index 355aa284df6..a9ad0034d2c 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import type { Auditing } from './DSLPersistence_Auditing'; -import type { MergeStrategy } from './DSLPersistence_MergeStrategy'; +import type { Auditing } from './DSLPersistence_Auditing.js'; +import type { MergeStrategy } from './DSLPersistence_MergeStrategy.js'; import type { TransactionMilestoning, ValidityMilestoning, -} from './DSLPersistence_Milestoning'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +} from './DSLPersistence_Milestoning.js'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class IngestMode implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.ts index aa6500b6667..8560159f807 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class MergeStrategy implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.ts index 6e250b91b5d..0f85a0d4302 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; // transaction milestoning diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.ts index d48bcb2444e..665d7325dac 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export class Notifier implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.ts index 909f8f8059b..20ddfba6007 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { Notifier } from './DSLPersistence_Notifier'; -import type { Persister } from './DSLPersistence_Persister'; -import type { Trigger } from './DSLPersistence_Trigger'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import type { Notifier } from './DSLPersistence_Notifier.js'; +import type { Persister } from './DSLPersistence_Persister.js'; +import type { Trigger } from './DSLPersistence_Trigger.js'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { PackageableElement, type PackageableElementReference, diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.ts index 3ad8f9f8cf2..5ee4f0b70a6 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { IngestMode } from './DSLPersistence_IngestMode'; -import type { Sink } from './DSLPersistence_Sink'; -import type { TargetShape } from './DSLPersistence_TargetShape'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import type { IngestMode } from './DSLPersistence_IngestMode.js'; +import type { Sink } from './DSLPersistence_Sink.js'; +import type { TargetShape } from './DSLPersistence_TargetShape.js'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class Persister implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.ts index a2c293359d7..a9bb18dfd05 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import type { Binding, Connection, diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.ts index b3f823ccfcc..95f272b0dc8 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { DeduplicationStrategy } from './DSLPersistence_DeduplicationStrategy'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import type { DeduplicationStrategy } from './DSLPersistence_DeduplicationStrategy.js'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; import type { Class, PackageableElementReference } from '@finos/legend-graph'; diff --git a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.ts b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.ts index e0f60533a71..3fc43d90e8b 100644 --- a/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.ts +++ b/packages/legend-extension-dsl-persistence/src/models/metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class Trigger implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.ts index d427f927fda..1dd6d730563 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/DSLPersistence_PureProtocolProcessorPlugin.ts @@ -15,14 +15,14 @@ */ import packageJson from '../../../../package.json'; -import { Persistence } from '../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; -import { V1_Persistence } from './v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence'; +import { Persistence } from '../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; +import { V1_Persistence } from './v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.js'; import { V1_PERSISTENCE_ELEMENT_PROTOCOL_TYPE, V1_persistenceModelSchema, -} from './v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper'; -import { V1_buildPersistence } from './v1/transformation/pureGraph/to/V1_PersistenceBuilder'; -import { V1_transformPersistence } from './v1/transformation/pureGraph/from/V1_PersistenceTransformer'; +} from './v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.js'; +import { V1_buildPersistence } from './v1/transformation/pureGraph/to/V1_PersistenceBuilder.js'; +import { V1_transformPersistence } from './v1/transformation/pureGraph/from/V1_PersistenceTransformer.js'; import { type PackageableElement, PureProtocolProcessorPlugin, diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.ts index f57834588dc..d2f02b0d6db 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Auditing.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_Auditing implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.ts index 3c4601e8049..2fc25da6ba9 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_DeduplicationStrategy implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.ts index 4135c740634..baba5eeaec8 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_IngestMode.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import type { V1_Auditing } from './V1_DSLPersistence_Auditing'; -import type { V1_MergeStrategy } from './V1_DSLPersistence_MergeStrategy'; +import type { V1_Auditing } from './V1_DSLPersistence_Auditing.js'; +import type { V1_MergeStrategy } from './V1_DSLPersistence_MergeStrategy.js'; import type { V1_TransactionMilestoning, V1_ValidityMilestoning, -} from './V1_DSLPersistence_Milestoning'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +} from './V1_DSLPersistence_Milestoning.js'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_IngestMode implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.ts index 02ece29f79a..c3d008559b4 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_MergeStrategy implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.ts index 092db6d0677..d1aa794f5ab 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Milestoning.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; // transaction milestoning diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.ts index e48bbbefa4d..f0d7c6ccc92 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Notifier.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export class V1_Notifier implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.ts index 230258a2e42..ad7750b266e 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persistence.ts @@ -14,15 +14,15 @@ * limitations under the License. */ -import type { V1_Notifier } from './V1_DSLPersistence_Notifier'; -import type { V1_Persister } from './V1_DSLPersistence_Persister'; -import type { V1_Trigger } from './V1_DSLPersistence_Trigger'; +import type { V1_Notifier } from './V1_DSLPersistence_Notifier.js'; +import type { V1_Persister } from './V1_DSLPersistence_Persister.js'; +import type { V1_Trigger } from './V1_DSLPersistence_Trigger.js'; import { V1_PackageableElement, type V1_PackageableElementVisitor, } from '@finos/legend-graph'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; export class V1_Persistence extends V1_PackageableElement implements Hashable { documentation!: string; diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.ts index 863c73f2061..1688a3b2807 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Persister.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { V1_IngestMode } from './V1_DSLPersistence_IngestMode'; -import type { V1_Sink } from './V1_DSLPersistence_Sink'; -import type { V1_TargetShape } from './V1_DSLPersistence_TargetShape'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import type { V1_IngestMode } from './V1_DSLPersistence_IngestMode.js'; +import type { V1_Sink } from './V1_DSLPersistence_Sink.js'; +import type { V1_TargetShape } from './V1_DSLPersistence_TargetShape.js'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_Persister implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.ts index 9894dfff021..a91c0de7538 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Sink.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import type { V1_Connection } from '@finos/legend-graph'; import { type Hashable, hashArray } from '@finos/legend-shared'; diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.ts index c1f8967b25a..914dc77fa2b 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_TargetShape.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_DeduplicationStrategy } from './V1_DSLPersistence_DeduplicationStrategy'; -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import type { V1_DeduplicationStrategy } from './V1_DSLPersistence_DeduplicationStrategy.js'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_TargetShape implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts index 312634e4874..066f01762d8 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/model/packageableElements/persistence/V1_DSLPersistence_Trigger.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils'; +import { PERSISTENCE_HASH_STRUCTURE } from '../../../../../../DSLPersistence_ModelUtils.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_Trigger implements Hashable { diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts index 194bc61fd78..eb638cff064 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PersistenceTransformer.ts @@ -18,14 +18,14 @@ import { type Auditing, DateTimeAuditing, NoAuditing, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.js'; import { AnyVersionDeduplicationStrategy, type DeduplicationStrategy, DuplicateCountDeduplicationStrategy, MaxVersionDeduplicationStrategy, NoDeduplicationStrategy, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.js'; import { AppendOnly, BitemporalDelta, @@ -35,12 +35,12 @@ import { NontemporalSnapshot, UnitemporalDelta, UnitemporalSnapshot, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.js'; import { DeleteIndicatorMergeStrategy, type MergeStrategy, NoDeletesMergeStrategy, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.js'; import { BatchIdAndDateTimeTransactionMilestoning, BatchIdTransactionMilestoning, @@ -51,48 +51,48 @@ import { type TransactionMilestoning, type ValidityDerivation, type ValidityMilestoning, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.js'; import { EmailNotifyee, type Notifier, type Notifyee, PagerDutyNotifyee, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier'; -import type { Persistence } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.js'; +import type { Persistence } from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persistence.js'; import { BatchPersister, type Persister, StreamingPersister, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.js'; import { ObjectStorageSink, RelationalSink, type Sink, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.js'; import { FlatTarget, MultiFlatTarget, type MultiFlatTargetPart, type TargetShape, TransactionScope, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.js'; import { CronTrigger, ManualTrigger, type Trigger, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.js'; import { type V1_Auditing, V1_DateTimeAuditing, V1_NoAuditing, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing.js'; import { V1_AnyVersionDeduplicationStrategy, type V1_DeduplicationStrategy, V1_DuplicateCountDeduplicationStrategy, V1_MaxVersionDeduplicationStrategy, V1_NoDeduplicationStrategy, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js'; import { V1_AppendOnly, V1_BitemporalDelta, @@ -102,12 +102,12 @@ import { V1_NontemporalSnapshot, V1_UnitemporalDelta, V1_UnitemporalSnapshot, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js'; import { V1_DeleteIndicatorMergeStrategy, type V1_MergeStrategy, V1_NoDeletesMergeStrategy, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js'; import { V1_BatchIdAndDateTimeTransactionMilestoning, V1_BatchIdTransactionMilestoning, @@ -118,36 +118,36 @@ import { type V1_TransactionMilestoning, type V1_ValidityDerivation, type V1_ValidityMilestoning, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js'; import { V1_EmailNotifyee, V1_Notifier, type V1_Notifyee, V1_PagerDutyNotifyee, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier'; -import { V1_Persistence } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persistence'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier.js'; +import { V1_Persistence } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persistence.js'; import { V1_BatchPersister, type V1_Persister, V1_StreamingPersister, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister.js'; import { V1_ObjectStorageSink, V1_RelationalSink, type V1_Sink, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink.js'; import { V1_FlatTarget, V1_MultiFlatTarget, V1_MultiFlatTargetPart, type V1_TargetShape, V1_TransactionScope, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js'; import { V1_CronTrigger, V1_ManualTrigger, type V1_Trigger, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger.js'; import { type V1_GraphTransformerContext, V1_initPackageableElement, diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts index d842c4f32f7..147c8f219ae 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_PersistenceBuilder.ts @@ -18,14 +18,14 @@ import { type V1_Auditing, V1_DateTimeAuditing, V1_NoAuditing, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Auditing.js'; import { V1_AnyVersionDeduplicationStrategy, type V1_DeduplicationStrategy, V1_DuplicateCountDeduplicationStrategy, V1_MaxVersionDeduplicationStrategy, V1_NoDeduplicationStrategy, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js'; import { V1_AppendOnly, V1_BitemporalDelta, @@ -35,12 +35,12 @@ import { V1_NontemporalSnapshot, V1_UnitemporalDelta, V1_UnitemporalSnapshot, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js'; import { V1_DeleteIndicatorMergeStrategy, type V1_MergeStrategy, V1_NoDeletesMergeStrategy, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js'; import { V1_BatchIdAndDateTimeTransactionMilestoning, V1_BatchIdTransactionMilestoning, @@ -51,48 +51,48 @@ import { type V1_TransactionMilestoning, type V1_ValidityDerivation, type V1_ValidityMilestoning, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js'; import { V1_EmailNotifyee, type V1_Notifier, type V1_Notifyee, V1_PagerDutyNotifyee, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier'; -import type { V1_Persistence } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persistence'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Notifier.js'; +import type { V1_Persistence } from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persistence.js'; import { V1_BatchPersister, type V1_Persister, V1_StreamingPersister, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Persister.js'; import { V1_ObjectStorageSink, V1_RelationalSink, type V1_Sink, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Sink.js'; import { V1_FlatTarget, V1_MultiFlatTarget, type V1_MultiFlatTargetPart, type V1_TargetShape, V1_TransactionScope, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js'; import { V1_CronTrigger, V1_ManualTrigger, type V1_Trigger, -} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger'; +} from '../../../model/packageableElements/persistence/V1_DSLPersistence_Trigger.js'; import { type Auditing, DateTimeAuditing, NoAuditing, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Auditing.js'; import { AnyVersionDeduplicationStrategy, type DeduplicationStrategy, DuplicateCountDeduplicationStrategy, MaxVersionDeduplicationStrategy, NoDeduplicationStrategy, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_DeduplicationStrategy.js'; import { AppendOnly, BitemporalDelta, @@ -102,12 +102,12 @@ import { NontemporalSnapshot, UnitemporalDelta, UnitemporalSnapshot, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_IngestMode.js'; import { DeleteIndicatorMergeStrategy, type MergeStrategy, NoDeletesMergeStrategy, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_MergeStrategy.js'; import { BatchIdAndDateTimeTransactionMilestoning, BatchIdTransactionMilestoning, @@ -118,36 +118,36 @@ import { type TransactionMilestoning, type ValidityDerivation, type ValidityMilestoning, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Milestoning.js'; import { EmailNotifyee, Notifier, type Notifyee, PagerDutyNotifyee, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Notifier.js'; import { BatchPersister, type Persister, StreamingPersister, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Persister.js'; import { ObjectStorageSink, RelationalSink, type Sink, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Sink.js'; import { FlatTarget, MultiFlatTarget, MultiFlatTargetPart, type TargetShape, TransactionScope, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_TargetShape.js'; import { CronTrigger, ManualTrigger, type Trigger, -} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger'; -import { getOwnPersistence } from '../../../../../../../graphManager/DSLPersistence_GraphManagerHelper'; +} from '../../../../../../metamodels/pure/model/packageableElements/persistence/DSLPersistence_Trigger.js'; +import { getOwnPersistence } from '../../../../../../../graphManager/DSLPersistence_GraphManagerHelper.js'; import { type Binding, type PackageableElementImplicitReference, diff --git a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts index aeb0ca7cd71..6beff33b45d 100644 --- a/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts +++ b/packages/legend-extension-dsl-persistence/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLPersistence_ProtocolHelper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { V1_Persistence } from '../../model/packageableElements/persistence/V1_DSLPersistence_Persistence'; +import { V1_Persistence } from '../../model/packageableElements/persistence/V1_DSLPersistence_Persistence.js'; import { type PureProtocolProcessorPlugin, V1_deserializeConnectionValue, @@ -42,41 +42,41 @@ import { V1_CronTrigger, V1_ManualTrigger, type V1_Trigger, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_Trigger'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_Trigger.js'; import { V1_EmailNotifyee, V1_Notifier, type V1_Notifyee, V1_PagerDutyNotifyee, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_Notifier'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_Notifier.js'; import { V1_ObjectStorageSink, V1_RelationalSink, type V1_Sink, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_Sink'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_Sink.js'; import { V1_AnyVersionDeduplicationStrategy, type V1_DeduplicationStrategy, V1_DuplicateCountDeduplicationStrategy, V1_MaxVersionDeduplicationStrategy, V1_NoDeduplicationStrategy, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_DeduplicationStrategy.js'; import { type V1_Auditing, V1_DateTimeAuditing, V1_NoAuditing, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_Auditing'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_Auditing.js'; import { V1_FlatTarget, V1_MultiFlatTarget, V1_MultiFlatTargetPart, type V1_TargetShape, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_TargetShape.js'; import { V1_DeleteIndicatorMergeStrategy, type V1_MergeStrategy, V1_NoDeletesMergeStrategy, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_MergeStrategy.js'; import { V1_BatchIdAndDateTimeTransactionMilestoning, V1_BatchIdTransactionMilestoning, @@ -87,7 +87,7 @@ import { type V1_TransactionMilestoning, type V1_ValidityDerivation, type V1_ValidityMilestoning, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_Milestoning.js'; import { V1_AppendOnly, V1_BitemporalDelta, @@ -97,12 +97,12 @@ import { V1_NontemporalSnapshot, V1_UnitemporalDelta, V1_UnitemporalSnapshot, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_IngestMode.js'; import { V1_BatchPersister, type V1_Persister, V1_StreamingPersister, -} from '../../model/packageableElements/persistence/V1_DSLPersistence_Persister'; +} from '../../model/packageableElements/persistence/V1_DSLPersistence_Persister.js'; /********** * notifier diff --git a/packages/legend-extension-dsl-text/src/DSLText_Extension.ts b/packages/legend-extension-dsl-text/src/DSLText_Extension.ts index 24bf984dddb..fd4f620a0d1 100644 --- a/packages/legend-extension-dsl-text/src/DSLText_Extension.ts +++ b/packages/legend-extension-dsl-text/src/DSLText_Extension.ts @@ -16,9 +16,9 @@ import packageJson from '../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { DSLText_PureGraphManagerPlugin } from './graphManager/DSLText_PureGraphManagerPlugin'; -import { DSLText_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLText_PureProtocolProcessorPlugin'; -import { DSLText_PureGraphPlugin } from './graph/DSLText_PureGraphPlugin'; +import { DSLText_PureGraphManagerPlugin } from './graphManager/DSLText_PureGraphManagerPlugin.js'; +import { DSLText_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLText_PureProtocolProcessorPlugin.js'; +import { DSLText_PureGraphPlugin } from './graph/DSLText_PureGraphPlugin.js'; export class DSLText_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-extension-dsl-text/src/components/studio/DSLText_LegendStudioPlugin.tsx b/packages/legend-extension-dsl-text/src/components/studio/DSLText_LegendStudioPlugin.tsx index 39a8612431f..0214af3b201 100644 --- a/packages/legend-extension-dsl-text/src/components/studio/DSLText_LegendStudioPlugin.tsx +++ b/packages/legend-extension-dsl-text/src/components/studio/DSLText_LegendStudioPlugin.tsx @@ -34,10 +34,10 @@ import { type PureGrammarParserElementDocumentationGetter, } from '@finos/legend-studio'; import { FileIcon } from '@finos/legend-art'; -import { TextEditorState } from '../../stores/studio/TextEditorState'; -import { TextElementEditor } from './TextElementEditor'; +import { TextEditorState } from '../../stores/studio/TextEditorState.js'; +import { TextElementEditor } from './TextElementEditor.js'; import type { PackageableElement } from '@finos/legend-graph'; -import { Text } from '../../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import { Text } from '../../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; import { collectKeyedDocumnetationEntriesFromConfig, type LegendApplicationDocumentationEntry, @@ -46,16 +46,16 @@ import { import { DSL_TEXT_DOCUMENTATION_ENTRIES, DSL_TEXT_LEGEND_STUDIO_DOCUMENTATION_KEY, -} from './DSLText_LegendStudioDocumentation'; +} from './DSLText_LegendStudioDocumentation.js'; import { PURE_GRAMMAR_TEXT_ELEMENT_TYPE_LABEL, PURE_GRAMMAR_TEXT_PARSER_NAME, -} from '../../graphManager/DSLText_PureGraphManagerPlugin'; +} from '../../graphManager/DSLText_PureGraphManagerPlugin.js'; import { MARKDOWN_TEXT_SNIPPET, PLAIN_TEXT_SNIPPET, -} from './DSLText_CodeSnippets'; -import { create_TextElement } from '../../helper/DSLText_Helper'; +} from './DSLText_CodeSnippets.js'; +import { create_TextElement } from '../../helper/DSLText_Helper.js'; const TEXT_ELEMENT_TYPE = 'TEXT'; const TEXT_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_TEXT'; diff --git a/packages/legend-extension-dsl-text/src/components/studio/TextElementEditor.tsx b/packages/legend-extension-dsl-text/src/components/studio/TextElementEditor.tsx index 6fe16623233..8ba067a7aa6 100644 --- a/packages/legend-extension-dsl-text/src/components/studio/TextElementEditor.tsx +++ b/packages/legend-extension-dsl-text/src/components/studio/TextElementEditor.tsx @@ -18,7 +18,7 @@ import { useRef, useEffect } from 'react'; import { observer } from 'mobx-react-lite'; import { prettyCONSTName } from '@finos/legend-shared'; import { StudioTextInputEditor, useEditorStore } from '@finos/legend-studio'; -import { TextEditorState } from '../../stores/studio/TextEditorState'; +import { TextEditorState } from '../../stores/studio/TextEditorState.js'; import { LockIcon, CaretDownIcon, @@ -30,8 +30,8 @@ import { EDITOR_LANGUAGE } from '@finos/legend-application'; import { text_setContent, text_setType, -} from '../../stores/studio/DSLText_GraphModifierHelper'; -import { TEXT_TYPE } from '../../helper/DSLText_Helper'; +} from '../../stores/studio/DSLText_GraphModifierHelper.js'; +import { TEXT_TYPE } from '../../helper/DSLText_Helper.js'; const getTextElementEditorLanguage = (type: string): EDITOR_LANGUAGE => { switch (type) { diff --git a/packages/legend-extension-dsl-text/src/graph/DSLText_PureGraphPlugin.ts b/packages/legend-extension-dsl-text/src/graph/DSLText_PureGraphPlugin.ts index 105fbc5cb0a..1d57d5dcd47 100644 --- a/packages/legend-extension-dsl-text/src/graph/DSLText_PureGraphPlugin.ts +++ b/packages/legend-extension-dsl-text/src/graph/DSLText_PureGraphPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; import type { Clazz } from '@finos/legend-shared'; import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph'; diff --git a/packages/legend-extension-dsl-text/src/graphManager/DSLText_GraphManagerHelper.ts b/packages/legend-extension-dsl-text/src/graphManager/DSLText_GraphManagerHelper.ts index 0225a58d22f..2db4d6656f0 100644 --- a/packages/legend-extension-dsl-text/src/graphManager/DSLText_GraphManagerHelper.ts +++ b/packages/legend-extension-dsl-text/src/graphManager/DSLText_GraphManagerHelper.ts @@ -16,7 +16,7 @@ import type { BasicModel, PureModel } from '@finos/legend-graph'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; export const getText = (path: string, graph: PureModel): Text => graph.getExtensionElement(path, Text, `Can't find text element '${path}'`); diff --git a/packages/legend-extension-dsl-text/src/graphManager/DSLText_PureGraphManagerPlugin.ts b/packages/legend-extension-dsl-text/src/graphManager/DSLText_PureGraphManagerPlugin.ts index b2b785650dc..b055f5dbaee 100644 --- a/packages/legend-extension-dsl-text/src/graphManager/DSLText_PureGraphManagerPlugin.ts +++ b/packages/legend-extension-dsl-text/src/graphManager/DSLText_PureGraphManagerPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; import { PureGraphManagerPlugin, type ObserverContext, @@ -23,7 +23,7 @@ import { type PackageableElement, type PureGrammarElementLabeler, } from '@finos/legend-graph'; -import { observe_Text } from './action/changeDetection/DSLText_ObserverHelper'; +import { observe_Text } from './action/changeDetection/DSLText_ObserverHelper.js'; export const PURE_GRAMMAR_TEXT_PARSER_NAME = 'Text'; export const PURE_GRAMMAR_TEXT_ELEMENT_TYPE_LABEL = 'Text'; diff --git a/packages/legend-extension-dsl-text/src/graphManager/action/changeDetection/DSLText_ObserverHelper.ts b/packages/legend-extension-dsl-text/src/graphManager/action/changeDetection/DSLText_ObserverHelper.ts index 779d9037902..cd591c6b1e1 100644 --- a/packages/legend-extension-dsl-text/src/graphManager/action/changeDetection/DSLText_ObserverHelper.ts +++ b/packages/legend-extension-dsl-text/src/graphManager/action/changeDetection/DSLText_ObserverHelper.ts @@ -19,7 +19,7 @@ import { skipObserved, } from '@finos/legend-graph'; import { makeObservable, observable, override } from 'mobx'; -import type { Text } from '../../../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import type { Text } from '../../../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; export const observe_Text = skipObserved((metamodel: Text): Text => { observe_Abstract_PackageableElement(metamodel); diff --git a/packages/legend-extension-dsl-text/src/helper/DSLText_Helper.ts b/packages/legend-extension-dsl-text/src/helper/DSLText_Helper.ts index 02a032c258a..4c47f80dd9c 100644 --- a/packages/legend-extension-dsl-text/src/helper/DSLText_Helper.ts +++ b/packages/legend-extension-dsl-text/src/helper/DSLText_Helper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import { Text } from '../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; export enum TEXT_TYPE { PLAIN_TEXT = 'plainText', diff --git a/packages/legend-extension-dsl-text/src/index.ts b/packages/legend-extension-dsl-text/src/index.ts index 9507f3c6f7a..02612f64a73 100644 --- a/packages/legend-extension-dsl-text/src/index.ts +++ b/packages/legend-extension-dsl-text/src/index.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -export * from './DSLText_Extension'; -export { DSLText_LegendStudioPlugin } from './components/studio/DSLText_LegendStudioPlugin'; +export * from './DSLText_Extension.js'; +export { DSLText_LegendStudioPlugin } from './components/studio/DSLText_LegendStudioPlugin.js'; diff --git a/packages/legend-extension-dsl-text/src/models/__tests__/DSLText_Roundtrip.test.ts b/packages/legend-extension-dsl-text/src/models/__tests__/DSLText_Roundtrip.test.ts index ba18f28d66b..43583d86a2c 100644 --- a/packages/legend-extension-dsl-text/src/models/__tests__/DSLText_Roundtrip.test.ts +++ b/packages/legend-extension-dsl-text/src/models/__tests__/DSLText_Roundtrip.test.ts @@ -17,8 +17,8 @@ import { test } from '@jest/globals'; import type { Entity } from '@finos/legend-model-storage'; import { unitTest } from '@finos/legend-shared'; -import { TEST_DATA__roundtrip } from './TEST_DATA__DSLText_Roundtrip'; -import { DSLText_GraphPreset } from '../../DSLText_Extension'; +import { TEST_DATA__roundtrip } from './TEST_DATA__DSLText_Roundtrip.js'; +import { DSLText_GraphPreset } from '../../DSLText_Extension.js'; import { TEST__GraphPluginManager, TEST__checkBuildingElementsRoundtrip, diff --git a/packages/legend-extension-dsl-text/src/models/metamodels/pure/model/packageableElements/text/DSLText_Text.ts b/packages/legend-extension-dsl-text/src/models/metamodels/pure/model/packageableElements/text/DSLText_Text.ts index 1a982b17d48..62463939c90 100644 --- a/packages/legend-extension-dsl-text/src/models/metamodels/pure/model/packageableElements/text/DSLText_Text.ts +++ b/packages/legend-extension-dsl-text/src/models/metamodels/pure/model/packageableElements/text/DSLText_Text.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { TEXT_HASH_STRUCTURE } from '../../../../../DSLText_ModelUtils'; +import { TEXT_HASH_STRUCTURE } from '../../../../../DSLText_ModelUtils.js'; import { type PackageableElementVisitor, PackageableElement, diff --git a/packages/legend-extension-dsl-text/src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts b/packages/legend-extension-dsl-text/src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts index 82df9564f9d..60848307756 100644 --- a/packages/legend-extension-dsl-text/src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts +++ b/packages/legend-extension-dsl-text/src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../../../package.json'; -import { V1_Text } from './v1/model/packageableElements/text/V1_DSLText_Text'; +import { V1_Text } from './v1/model/packageableElements/text/V1_DSLText_Text.js'; import { type PlainObject, guaranteeNonNullable, @@ -25,9 +25,9 @@ import { deserialize, serialize } from 'serializr'; import { V1_textModelSchema, V1_TEXT_ELEMENT_PROTOCOL_TYPE, -} from './v1/transformation/pureProtocol/V1_DSLText_ProtocolHelper'; -import { getOwnText } from '../../../graphManager/DSLText_GraphManagerHelper'; -import { Text } from '../../metamodels/pure/model/packageableElements/text/DSLText_Text'; +} from './v1/transformation/pureProtocol/V1_DSLText_ProtocolHelper.js'; +import { getOwnText } from '../../../graphManager/DSLText_GraphManagerHelper.js'; +import { Text } from '../../metamodels/pure/model/packageableElements/text/DSLText_Text.js'; import { type PackageableElement, type V1_ElementProtocolClassifierPathGetter, diff --git a/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/model/packageableElements/text/V1_DSLText_Text.ts b/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/model/packageableElements/text/V1_DSLText_Text.ts index 902fbcabd42..1e09e555a2c 100644 --- a/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/model/packageableElements/text/V1_DSLText_Text.ts +++ b/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/model/packageableElements/text/V1_DSLText_Text.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { TEXT_HASH_STRUCTURE } from '../../../../../../DSLText_ModelUtils'; +import { TEXT_HASH_STRUCTURE } from '../../../../../../DSLText_ModelUtils.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, diff --git a/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLText_GraphBuilderHelper.ts b/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLText_GraphBuilderHelper.ts index 7580cad93b6..47da6f7b6e5 100644 --- a/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLText_GraphBuilderHelper.ts +++ b/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureGraph/V1_DSLText_GraphBuilderHelper.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { getText } from '../../../../../../graphManager/DSLText_GraphManagerHelper'; -import type { Text } from '../../../../../metamodels/pure/model/packageableElements/text/DSLText_Text'; +import { getText } from '../../../../../../graphManager/DSLText_GraphManagerHelper.js'; +import type { Text } from '../../../../../metamodels/pure/model/packageableElements/text/DSLText_Text.js'; import type { PackageableElementImplicitReference, V1_GraphBuilderContext, diff --git a/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLText_ProtocolHelper.ts b/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLText_ProtocolHelper.ts index 6a62e54f47b..b7261e44472 100644 --- a/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLText_ProtocolHelper.ts +++ b/packages/legend-extension-dsl-text/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLText_ProtocolHelper.ts @@ -16,7 +16,7 @@ import { usingConstantValueSchema } from '@finos/legend-shared'; import { createModelSchema, primitive } from 'serializr'; -import { V1_Text } from '../../model/packageableElements/text/V1_DSLText_Text'; +import { V1_Text } from '../../model/packageableElements/text/V1_DSLText_Text.js'; export const V1_TEXT_ELEMENT_PROTOCOL_TYPE = 'text'; diff --git a/packages/legend-extension-dsl-text/src/stores/studio/DSLText_GraphModifierHelper.ts b/packages/legend-extension-dsl-text/src/stores/studio/DSLText_GraphModifierHelper.ts index 67241dfa7a1..165caee8547 100644 --- a/packages/legend-extension-dsl-text/src/stores/studio/DSLText_GraphModifierHelper.ts +++ b/packages/legend-extension-dsl-text/src/stores/studio/DSLText_GraphModifierHelper.ts @@ -15,7 +15,7 @@ */ import { action } from 'mobx'; -import type { Text } from '../../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import type { Text } from '../../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; export const text_setType = action((text: Text, type: string): void => { text.type = type; diff --git a/packages/legend-extension-dsl-text/src/stores/studio/TextEditorState.ts b/packages/legend-extension-dsl-text/src/stores/studio/TextEditorState.ts index 65ad1c55b1f..901e20f974b 100644 --- a/packages/legend-extension-dsl-text/src/stores/studio/TextEditorState.ts +++ b/packages/legend-extension-dsl-text/src/stores/studio/TextEditorState.ts @@ -18,7 +18,7 @@ import { computed, action, makeObservable } from 'mobx'; import { guaranteeType } from '@finos/legend-shared'; import { type EditorStore, ElementEditorState } from '@finos/legend-studio'; import type { PackageableElement } from '@finos/legend-graph'; -import { Text } from '../../models/metamodels/pure/model/packageableElements/text/DSLText_Text'; +import { Text } from '../../models/metamodels/pure/model/packageableElements/text/DSLText_Text.js'; export class TextEditorState extends ElementEditorState { constructor(editorStore: EditorStore, element: PackageableElement) { diff --git a/packages/legend-extension-external-format-json-schema/src/EFJSONSchema_Extension.ts b/packages/legend-extension-external-format-json-schema/src/EFJSONSchema_Extension.ts index 4cbc01450a3..539d5bee5ac 100644 --- a/packages/legend-extension-external-format-json-schema/src/EFJSONSchema_Extension.ts +++ b/packages/legend-extension-external-format-json-schema/src/EFJSONSchema_Extension.ts @@ -16,8 +16,8 @@ import packageJson from '../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { EFJSONSchema_PureGraphManagerPlugin } from './graphManager/EFJSONSchema_PureGraphManagerPlugin'; -import { EFJSONSchema_PureProtocolProcessorPlugin } from './models/protocols/pure/EFJSONSchema_PureProtocolProcessorPlugin'; +import { EFJSONSchema_PureGraphManagerPlugin } from './graphManager/EFJSONSchema_PureGraphManagerPlugin.js'; +import { EFJSONSchema_PureProtocolProcessorPlugin } from './models/protocols/pure/EFJSONSchema_PureProtocolProcessorPlugin.js'; export class EFJSONSchema_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-extension-external-format-json-schema/src/index.ts b/packages/legend-extension-external-format-json-schema/src/index.ts index 32ee81ae797..33f0d149ea1 100644 --- a/packages/legend-extension-external-format-json-schema/src/index.ts +++ b/packages/legend-extension-external-format-json-schema/src/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './EFJSONSchema_Extension'; +export * from './EFJSONSchema_Extension.js'; diff --git a/packages/legend-extension-external-language-morphir/src/index.ts b/packages/legend-extension-external-language-morphir/src/index.ts index 061993a7140..bfa9d55fc53 100644 --- a/packages/legend-extension-external-language-morphir/src/index.ts +++ b/packages/legend-extension-external-language-morphir/src/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './components/ELMorphir_LegendStudioPlugin'; +export * from './components/ELMorphir_LegendStudioPlugin.js'; diff --git a/packages/legend-extension-external-store-service/src/ESService_Extension.ts b/packages/legend-extension-external-store-service/src/ESService_Extension.ts index 1d558459d6d..50e9fce7455 100644 --- a/packages/legend-extension-external-store-service/src/ESService_Extension.ts +++ b/packages/legend-extension-external-store-service/src/ESService_Extension.ts @@ -16,9 +16,9 @@ import packageJson from '../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { ESService_PureGraphManagerPlugin } from './graphManager/ESService_PureGraphManagerPlugin'; -import { ESService_PureProtocolProcessorPlugin } from './models/protocols/pure/ESService_PureProtocolProcessorPlugin'; -import { ESService_PureGraphPlugin } from './graph/ESService_PureGraphPlugin'; +import { ESService_PureGraphManagerPlugin } from './graphManager/ESService_PureGraphManagerPlugin.js'; +import { ESService_PureProtocolProcessorPlugin } from './models/protocols/pure/ESService_PureProtocolProcessorPlugin.js'; +import { ESService_PureGraphPlugin } from './graph/ESService_PureGraphPlugin.js'; export class ESService_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-extension-external-store-service/src/components/ESService_LegendStudioPlugin.tsx b/packages/legend-extension-external-store-service/src/components/ESService_LegendStudioPlugin.tsx index e1fd512a85e..9cf05114e57 100644 --- a/packages/legend-extension-external-store-service/src/components/ESService_LegendStudioPlugin.tsx +++ b/packages/legend-extension-external-store-service/src/components/ESService_LegendStudioPlugin.tsx @@ -55,9 +55,9 @@ import type { PackageableElement, SetImplementation, } from '@finos/legend-graph'; -import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore'; -import { RootServiceInstanceSetImplementation } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation'; -import { ServiceStoreConnection } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection'; +import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.js'; +import { RootServiceInstanceSetImplementation } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.js'; +import { ServiceStoreConnection } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.js'; import { collectKeyedDocumnetationEntriesFromConfig, type LegendApplicationDocumentationEntry, @@ -66,21 +66,21 @@ import { import { PURE_GRAMMAR_SERVICE_STORE_ELEMENT_TYPE_LABEL, PURE_GRAMMAR_SERVICE_STORE_PARSER_NAME, -} from '../graphManager/ESService_PureGraphManagerPlugin'; +} from '../graphManager/ESService_PureGraphManagerPlugin.js'; import { EXTERNAL_STORE_SERVICE_DOCUMENTATION_ENTRIES, EXTERNAL_STORE_SERVICE_LEGEND_STUDIO_DOCUMENTATION_KEY, -} from './ESService_LegendStudioDocumentation'; +} from './ESService_LegendStudioDocumentation.js'; import { BLANK_SERVICE_STORE_SNIPPET, SERVICE_STORE_EMBEDDED_DATA, SERVICE_STORE_WITH_DESCRIPTION, SERVICE_STORE_WITH_SERVICE, SERVICE_STORE_WITH_SERVICE_GROUP, -} from './ESService_CodeSnippets'; -import { ServiceStoreEmbeddedData } from '../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; -import { ServiceStoreEmbeddedDataState } from '../stores/studio/ESService_ServiceStoreEmbeddedDataEditorState'; -import { ServiceStoreEmbeddedDataEditor } from './ESService_ServiceStoreEmbeddedData'; +} from './ESService_CodeSnippets.js'; +import { ServiceStoreEmbeddedData } from '../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; +import { ServiceStoreEmbeddedDataState } from '../stores/studio/ESService_ServiceStoreEmbeddedDataEditorState.js'; +import { ServiceStoreEmbeddedDataEditor } from './ESService_ServiceStoreEmbeddedData.js'; const SERVICE_STORE_ELEMENT_TYPE = 'SERVICE_STORE'; const SERVICE_STORE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = diff --git a/packages/legend-extension-external-store-service/src/components/ESService_ServiceStoreEmbeddedData.tsx b/packages/legend-extension-external-store-service/src/components/ESService_ServiceStoreEmbeddedData.tsx index d29446fbe3e..7d3b0066a5b 100644 --- a/packages/legend-extension-external-store-service/src/components/ESService_ServiceStoreEmbeddedData.tsx +++ b/packages/legend-extension-external-store-service/src/components/ESService_ServiceStoreEmbeddedData.tsx @@ -48,14 +48,14 @@ import { StudioTextInputEditor, } from '@finos/legend-studio'; import { observer } from 'mobx-react-lite'; -import { EqualToJsonPattern } from '../models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern'; -import { EqualToPattern } from '../models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern'; -import type { StringValuePattern } from '../models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern'; -import { ServiceRequestPattern } from '../models/metamodels/pure/model/data/ESService_ServiceRequestPattern'; -import { ServiceResponseDefinition } from '../models/metamodels/pure/model/data/ESService_ServiceResponseDefinition'; -import { ServiceStubMapping } from '../models/metamodels/pure/model/data/ESService_ServiceStubMapping'; -import { HTTP_METHOD } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; -import { V1_StringValuePatternType } from '../models/protocols/pure/v1/transformation/pureProtocol/V1_ESService_ProtocolHelper'; +import { EqualToJsonPattern } from '../models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.js'; +import { EqualToPattern } from '../models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.js'; +import type { StringValuePattern } from '../models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.js'; +import { ServiceRequestPattern } from '../models/metamodels/pure/model/data/ESService_ServiceRequestPattern.js'; +import { ServiceResponseDefinition } from '../models/metamodels/pure/model/data/ESService_ServiceResponseDefinition.js'; +import { ServiceStubMapping } from '../models/metamodels/pure/model/data/ESService_ServiceStubMapping.js'; +import { HTTP_METHOD } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; +import { V1_StringValuePatternType } from '../models/protocols/pure/v1/transformation/pureProtocol/V1_ESService_ProtocolHelper.js'; import { serviceStore_embeddedData_addServiceStubMapping, serviceStore_embeddedData_deleteServiceStubMapping, @@ -77,13 +77,13 @@ import { serviceStore_serviceStubMapping_setServiceRequestPattern, serviceStore_serviceStubMapping_setServiceResponseDefinition, serviceStore_stringValuePattern_setExpectedValue, -} from '../stores/studio/ESService_GraphModifierHelper'; +} from '../stores/studio/ESService_GraphModifierHelper.js'; import { type ServiceStoreEmbeddedDataState, ServiceStubMappingState, SERVICE_REQUEST_PATTERN_TAB_TYPE, SERVICE_STUB_MAPPING_TAB_TYPE, -} from '../stores/studio/ESService_ServiceStoreEmbeddedDataEditorState'; +} from '../stores/studio/ESService_ServiceStoreEmbeddedDataEditorState.js'; export type StringValuePatternOption = { value: string; diff --git a/packages/legend-extension-external-store-service/src/graph/ESService_PureGraphPlugin.ts b/packages/legend-extension-external-store-service/src/graph/ESService_PureGraphPlugin.ts index 384e80470d4..92f23b4feb1 100644 --- a/packages/legend-extension-external-store-service/src/graph/ESService_PureGraphPlugin.ts +++ b/packages/legend-extension-external-store-service/src/graph/ESService_PureGraphPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore'; +import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.js'; import type { Clazz } from '@finos/legend-shared'; import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph'; diff --git a/packages/legend-extension-external-store-service/src/graphManager/ESService_GraphManagerHelper.ts b/packages/legend-extension-external-store-service/src/graphManager/ESService_GraphManagerHelper.ts index 754de1213c7..8abb77747d3 100644 --- a/packages/legend-extension-external-store-service/src/graphManager/ESService_GraphManagerHelper.ts +++ b/packages/legend-extension-external-store-service/src/graphManager/ESService_GraphManagerHelper.ts @@ -16,7 +16,7 @@ import type { BasicModel, PureModel } from '@finos/legend-graph'; import { guaranteeType } from '@finos/legend-shared'; -import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore'; +import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.js'; export const getServiceStore = (path: string, graph: PureModel): ServiceStore => guaranteeType( diff --git a/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin.ts b/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin.ts index e9c6a4664c0..c2775a81a3b 100644 --- a/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin.ts +++ b/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore'; +import { ServiceStore } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.js'; import { PureGraphManagerPlugin, type DSLMapping_PureGraphManagerPlugin_Extension, @@ -30,14 +30,14 @@ import { type EmbeddedDataObserver, type EmbeddedData_PureGraphManagerPlugin_Extension, } from '@finos/legend-graph'; -import { ServiceStoreConnection } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection'; +import { ServiceStoreConnection } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.js'; import { observe_RootServiceInstanceSetImplementation, observe_ServiceStore, observe_ServiceStoreEmbeddedData, -} from './action/changeDetection/ESService_ObserverHelper'; -import { RootServiceInstanceSetImplementation } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation'; -import { ServiceStoreEmbeddedData } from '../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; +} from './action/changeDetection/ESService_ObserverHelper.js'; +import { RootServiceInstanceSetImplementation } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.js'; +import { ServiceStoreEmbeddedData } from '../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; export const PURE_GRAMMAR_SERVICE_STORE_PARSER_NAME = 'ServiceStore'; export const PURE_GRAMMAR_SERVICE_STORE_ELEMENT_TYPE_LABEL = 'ServiceStore'; diff --git a/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin_Extension.ts b/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin_Extension.ts index 2a1579500d9..58e4e313066 100644 --- a/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin_Extension.ts +++ b/packages/legend-extension-external-store-service/src/graphManager/ESService_PureGraphManagerPlugin_Extension.ts @@ -18,7 +18,7 @@ import type { ObserverContext, PureGraphManagerPlugin, } from '@finos/legend-graph'; -import type { SecurityScheme } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme'; +import type { SecurityScheme } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme.js'; export type SecuritySchemeObserver = ( metamodel: SecurityScheme, diff --git a/packages/legend-extension-external-store-service/src/graphManager/action/changeDetection/ESService_ObserverHelper.ts b/packages/legend-extension-external-store-service/src/graphManager/action/changeDetection/ESService_ObserverHelper.ts index 613423866a6..1ff79f11ada 100644 --- a/packages/legend-extension-external-store-service/src/graphManager/action/changeDetection/ESService_ObserverHelper.ts +++ b/packages/legend-extension-external-store-service/src/graphManager/action/changeDetection/ESService_ObserverHelper.ts @@ -27,28 +27,28 @@ import { observe_ExternalFormatData, } from '@finos/legend-graph'; import { computed, makeObservable, observable, override } from 'mobx'; -import { EqualToJsonPattern } from '../../../models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern'; -import { EqualToPattern } from '../../../models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern'; -import type { StringValuePattern } from '../../../models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern'; -import type { ServiceRequestPattern } from '../../../models/metamodels/pure/model/data/ESService_ServiceRequestPattern'; -import type { ServiceResponseDefinition } from '../../../models/metamodels/pure/model/data/ESService_ServiceResponseDefinition'; -import type { ServiceStoreEmbeddedData } from '../../../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; -import type { ServiceStubMapping } from '../../../models/metamodels/pure/model/data/ESService_ServiceStubMapping'; -import type { ServiceStoreConnection } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection'; -import type { LocalMappingProperty } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty'; -import type { RootServiceInstanceSetImplementation } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation'; -import type { ServiceMapping } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping'; -import type { ServiceRequestBodyBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo'; -import type { ServiceRequestBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo'; -import type { ServiceRequestParameterBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo'; -import type { ServiceRequestParametersBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo'; -import type { SecurityScheme } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme'; -import type { SerializationFormat } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat'; -import { ServiceGroup } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup'; -import type { ServiceParameter } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter'; -import type { ServiceStore } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore'; -import type { ServiceStoreElement } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement'; -import { ServiceStoreService } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; +import { EqualToJsonPattern } from '../../../models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.js'; +import { EqualToPattern } from '../../../models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.js'; +import type { StringValuePattern } from '../../../models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.js'; +import type { ServiceRequestPattern } from '../../../models/metamodels/pure/model/data/ESService_ServiceRequestPattern.js'; +import type { ServiceResponseDefinition } from '../../../models/metamodels/pure/model/data/ESService_ServiceResponseDefinition.js'; +import type { ServiceStoreEmbeddedData } from '../../../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; +import type { ServiceStubMapping } from '../../../models/metamodels/pure/model/data/ESService_ServiceStubMapping.js'; +import type { ServiceStoreConnection } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.js'; +import type { LocalMappingProperty } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty.js'; +import type { RootServiceInstanceSetImplementation } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.js'; +import type { ServiceMapping } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping.js'; +import type { ServiceRequestBodyBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo.js'; +import type { ServiceRequestBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo.js'; +import type { ServiceRequestParameterBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo.js'; +import type { ServiceRequestParametersBuildInfo } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo.js'; +import type { SecurityScheme } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme.js'; +import type { SerializationFormat } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat.js'; +import { ServiceGroup } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.js'; +import type { ServiceParameter } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.js'; +import type { ServiceStore } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.js'; +import type { ServiceStoreElement } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.js'; +import { ServiceStoreService } from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; import { BooleanTypeReference, ComplexTypeReference, @@ -56,8 +56,8 @@ import { IntegerTypeReference, StringTypeReference, type TypeReference, -} from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference'; -import type { ESService_PureGraphManagerPlugin_Extension } from '../../ESService_PureGraphManagerPlugin_Extension'; +} from '../../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference.js'; +import type { ESService_PureGraphManagerPlugin_Extension } from '../../ESService_PureGraphManagerPlugin_Extension.js'; // ------------------------------------- Store ------------------------------------- diff --git a/packages/legend-extension-external-store-service/src/helpers/ESService_Helper.ts b/packages/legend-extension-external-store-service/src/helpers/ESService_Helper.ts index cdb5dc9f135..6f1362c185e 100644 --- a/packages/legend-extension-external-store-service/src/helpers/ESService_Helper.ts +++ b/packages/legend-extension-external-store-service/src/helpers/ESService_Helper.ts @@ -15,10 +15,10 @@ */ import { guaranteeType } from '@finos/legend-shared'; -import { ServiceGroup } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup'; -import { ServiceParameter } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter'; -import type { ServiceStoreElement } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement'; -import { ServiceStoreService } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; +import { ServiceGroup } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.js'; +import { ServiceParameter } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.js'; +import type { ServiceStoreElement } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.js'; +import { ServiceStoreService } from '../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; export const getParameter = ( value: string, diff --git a/packages/legend-extension-external-store-service/src/index.ts b/packages/legend-extension-external-store-service/src/index.ts index dfd532ffc7b..3421157c4c8 100644 --- a/packages/legend-extension-external-store-service/src/index.ts +++ b/packages/legend-extension-external-store-service/src/index.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -export * from './ESService_Extension'; -export { ESService_LegendStudioPlugin } from './components/ESService_LegendStudioPlugin'; -export * from './models/protocols/pure/ESService_PureProtocolPlugin_Extension'; -export * from './graphManager/ESService_PureGraphManagerPlugin_Extension'; +export * from './ESService_Extension.js'; +export { ESService_LegendStudioPlugin } from './components/ESService_LegendStudioPlugin.js'; +export * from './models/protocols/pure/ESService_PureProtocolPlugin_Extension.js'; +export * from './graphManager/ESService_PureGraphManagerPlugin_Extension.js'; -export { SecurityScheme } from './models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme'; -export { V1_SecurityScheme } from './models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme'; +export { SecurityScheme } from './models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme.js'; +export { V1_SecurityScheme } from './models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme.js'; diff --git a/packages/legend-extension-external-store-service/src/models/__tests__/ESService_Roundtrip.test.ts b/packages/legend-extension-external-store-service/src/models/__tests__/ESService_Roundtrip.test.ts index d159144514d..589d693e2b3 100644 --- a/packages/legend-extension-external-store-service/src/models/__tests__/ESService_Roundtrip.test.ts +++ b/packages/legend-extension-external-store-service/src/models/__tests__/ESService_Roundtrip.test.ts @@ -17,8 +17,8 @@ import { test } from '@jest/globals'; import type { Entity } from '@finos/legend-model-storage'; import { unitTest } from '@finos/legend-shared'; -import { roundtripTestData } from './TEST_DATA__ESService_Roundtrip'; -import { ESService_GraphPreset } from '../../ESService_Extension'; +import { roundtripTestData } from './TEST_DATA__ESService_Roundtrip.js'; +import { ESService_GraphPreset } from '../../ESService_Extension.js'; import { TEST__GraphPluginManager, TEST__checkBuildingElementsRoundtrip, diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceRequestPattern.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceRequestPattern.ts index 6c66f147fa2..4612c096318 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceRequestPattern.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceRequestPattern.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils'; -import type { HTTP_METHOD } from '../packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; -import type { StringValuePattern } from './contentPattern/ESService_StringValuePattern'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils.js'; +import type { HTTP_METHOD } from '../packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; +import type { StringValuePattern } from './contentPattern/ESService_StringValuePattern.js'; export class ServiceRequestPattern implements Hashable { url?: string | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceResponseDefinition.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceResponseDefinition.ts index 501ed7e2f38..f1209ebad2b 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceResponseDefinition.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceResponseDefinition.ts @@ -16,7 +16,7 @@ import { type Hashable, hashArray } from '@finos/legend-shared'; import type { ExternalFormatData } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils.js'; export class ServiceResponseDefinition implements Hashable { body!: ExternalFormatData; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.ts index c57f1f6a6bb..6858ea66043 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.ts @@ -16,8 +16,8 @@ import { EmbeddedData, type EmbeddedDataVisitor } from '@finos/legend-graph'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils'; -import type { ServiceStubMapping } from './ESService_ServiceStubMapping'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils.js'; +import type { ServiceStubMapping } from './ESService_ServiceStubMapping.js'; export class ServiceStoreEmbeddedData extends EmbeddedData implements Hashable { serviceStubMappings: ServiceStubMapping[] = []; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStubMapping.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStubMapping.ts index 3e9bd9ac9d3..037d4bf9557 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStubMapping.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/ESService_ServiceStubMapping.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray, uuid } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils'; -import type { ServiceRequestPattern } from './ESService_ServiceRequestPattern'; -import type { ServiceResponseDefinition } from './ESService_ServiceResponseDefinition'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../ESService_ModelUtils.js'; +import type { ServiceRequestPattern } from './ESService_ServiceRequestPattern.js'; +import type { ServiceResponseDefinition } from './ESService_ServiceResponseDefinition.js'; export class ServiceStubMapping implements Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.ts index 5a1445502b0..c51ef3cd327 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils'; -import { StringValuePattern } from './ESService_StringValuePattern'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils.js'; +import { StringValuePattern } from './ESService_StringValuePattern.js'; export class EqualToJsonPattern extends StringValuePattern implements Hashable { override get hashCode(): string { diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.ts index 09ef7b4a8d5..3ae14280e94 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils'; -import { StringValuePattern } from './ESService_StringValuePattern'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils.js'; +import { StringValuePattern } from './ESService_StringValuePattern.js'; export class EqualToPattern extends StringValuePattern implements Hashable { override get hashCode(): string { diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.ts index 817441f98ef..414d7392c7e 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.ts @@ -15,7 +15,7 @@ */ import { type Hashable, uuid } from '@finos/legend-shared'; -import { ContentPattern } from './ESService_ContentPattern'; +import { ContentPattern } from './ESService_ContentPattern.js'; export abstract class StringValuePattern extends ContentPattern diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.ts index a4044d98b7a..78023d28eda 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.ts @@ -20,8 +20,8 @@ import { type PackageableElementReference, type ConnectionVisitor, } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; -import type { ServiceStore } from '../model/ESService_ServiceStore'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; +import type { ServiceStore } from '../model/ESService_ServiceStore.js'; export class ServiceStoreConnection extends Connection implements Hashable { declare store: PackageableElementReference; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty.ts index 540a1755dd8..af9625ef832 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty.ts @@ -16,7 +16,7 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import type { Multiplicity } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; export class LocalMappingProperty implements Hashable { name!: string; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.ts index 7642252ce77..75c5b263a5b 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.ts @@ -19,9 +19,9 @@ import { InstanceSetImplementation, type SetImplementationVisitor, } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; -import type { LocalMappingProperty } from './ESService_LocalMappingProperty'; -import type { ServiceMapping } from './ESService_ServiceMapping'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; +import type { LocalMappingProperty } from './ESService_LocalMappingProperty.js'; +import type { ServiceMapping } from './ESService_ServiceMapping.js'; export class RootServiceInstanceSetImplementation extends InstanceSetImplementation diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping.ts index d4383015420..5ea088e8f46 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping.ts @@ -16,10 +16,10 @@ import { hashObjectWithoutSourceInformation } from '@finos/legend-graph'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; -import type { ServiceStoreService } from '../model/ESService_ServiceStoreService'; -import type { RootServiceInstanceSetImplementation } from './ESService_RootServiceInstanceSetImplementation'; -import type { ServiceRequestBuildInfo } from './ESService_ServiceRequestBuildInfo'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; +import type { ServiceStoreService } from '../model/ESService_ServiceStoreService.js'; +import type { RootServiceInstanceSetImplementation } from './ESService_RootServiceInstanceSetImplementation.js'; +import type { ServiceRequestBuildInfo } from './ESService_ServiceRequestBuildInfo.js'; export class ServiceMapping implements Hashable { owner!: RootServiceInstanceSetImplementation; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo.ts index b01b18a36bc..361c7096896 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo.ts @@ -16,7 +16,7 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import type { RawLambda } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; export class ServiceRequestBodyBuildInfo implements Hashable { transform!: RawLambda; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo.ts index 4a4cfbd1e2e..dc64614ab0f 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { ServiceRequestBodyBuildInfo } from './ESService_ServiceRequestBodyBuildInfo'; -import type { ServiceRequestParametersBuildInfo } from './ESService_ServiceRequestParametersBuildInfo'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; +import type { ServiceRequestBodyBuildInfo } from './ESService_ServiceRequestBodyBuildInfo.js'; +import type { ServiceRequestParametersBuildInfo } from './ESService_ServiceRequestParametersBuildInfo.js'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; export class ServiceRequestBuildInfo implements Hashable { requestBodyBuildInfo?: ServiceRequestBodyBuildInfo | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo.ts index 02d7834ca5b..6d4e27bdc1b 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo.ts @@ -16,8 +16,8 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import type { RawLambda } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; -import type { ServiceParameter } from '../model/ESService_ServiceParameter'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; +import type { ServiceParameter } from '../model/ESService_ServiceParameter.js'; export class ServiceRequestParameterBuildInfo implements Hashable { serviceParameter!: ServiceParameter; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo.ts index 7c930ced4c3..85fc0000ac4 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; -import type { ServiceRequestParameterBuildInfo } from './ESService_ServiceRequestParameterBuildInfo'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; +import type { ServiceRequestParameterBuildInfo } from './ESService_ServiceRequestParameterBuildInfo.js'; export class ServiceRequestParametersBuildInfo implements Hashable { parameterBuildInfoList: ServiceRequestParameterBuildInfo[] = []; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat.ts index 5cb08f9143b..fcfcd773cd1 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; export class SerializationFormat implements Hashable { style?: string | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.ts index 2aea2802070..88cda503b4a 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; -import { ServiceStoreElement } from './ESService_ServiceStoreElement'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; +import { ServiceStoreElement } from './ESService_ServiceStoreElement.js'; export class ServiceGroup extends ServiceStoreElement implements Hashable { elements: ServiceStoreElement[] = []; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.ts index 62290f5094a..2b60000d392 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { SerializationFormat } from './ESService_SerializationFormat'; -import type { TypeReference } from './ESService_TypeReference'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; +import type { SerializationFormat } from './ESService_SerializationFormat.js'; +import type { TypeReference } from './ESService_TypeReference.js'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; export enum LOCATION { HEADER = 'HEADER', diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.ts index 813257bc079..731f644e56e 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.ts @@ -16,8 +16,8 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import { type PackageableElementVisitor, Store } from '@finos/legend-graph'; -import type { ServiceStoreElement } from './ESService_ServiceStoreElement'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; +import type { ServiceStoreElement } from './ESService_ServiceStoreElement.js'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; export class ServiceStore extends Store implements Hashable { description?: string | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.ts index 296ac0a8d7e..e5a010c5c3e 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.ts @@ -15,8 +15,8 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { ServiceStore } from './ESService_ServiceStore'; -import type { ServiceGroup } from './ESService_ServiceGroup'; +import type { ServiceStore } from './ESService_ServiceStore.js'; +import type { ServiceGroup } from './ESService_ServiceGroup.js'; export abstract class ServiceStoreElement implements Hashable { owner!: ServiceStore; diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.ts index f794288f975..5f90ced3c32 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.ts @@ -15,14 +15,14 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; -import { ServiceStoreElement } from './ESService_ServiceStoreElement'; -import type { ServiceParameter } from './ESService_ServiceParameter'; -import type { SecurityScheme } from './ESService_SecurityScheme'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; +import { ServiceStoreElement } from './ESService_ServiceStoreElement.js'; +import type { ServiceParameter } from './ESService_ServiceParameter.js'; +import type { SecurityScheme } from './ESService_SecurityScheme.js'; import type { TypeReference, ComplexTypeReference, -} from './ESService_TypeReference'; +} from './ESService_TypeReference.js'; export enum HTTP_METHOD { GET = 'GET', diff --git a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference.ts b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference.ts index f437269bd68..6efe9ae09e4 100644 --- a/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference.ts +++ b/packages/legend-extension-external-store-service/src/models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../ESService_ModelUtils.js'; import type { Binding, Class, diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolPlugin_Extension.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolPlugin_Extension.ts index edb56c9cbeb..c2c55f1374b 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolPlugin_Extension.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolPlugin_Extension.ts @@ -15,8 +15,8 @@ */ import type { PlainObject } from '@finos/legend-shared'; -import type { V1_SecurityScheme } from './v1/model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme'; -import type { SecurityScheme } from '../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme'; +import type { V1_SecurityScheme } from './v1/model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme.js'; +import type { SecurityScheme } from '../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme.js'; import type { V1_GraphBuilderContext, V1_GraphTransformerContext, diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolProcessorPlugin.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolProcessorPlugin.ts index 704aaf143c6..91adc5afd64 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolProcessorPlugin.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/ESService_PureProtocolProcessorPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../../../package.json'; -import { V1_ServiceStore } from './v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore'; +import { V1_ServiceStore } from './v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore.js'; import { type PlainObject, assertNonEmptyString, @@ -33,9 +33,9 @@ import { V1_SERVICE_STORE_CONNECTION_PROTOCOL_TYPE, V1_serviceStoreEmbeddedDataModelSchema, V1_SERVICE_STORE_EMBEDDED_DATA_PROTOCOL_TYPE, -} from './v1/transformation/pureProtocol/V1_ESService_ProtocolHelper'; -import { getOwnServiceStore } from '../../../graphManager/ESService_GraphManagerHelper'; -import { ServiceStore } from '../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore'; +} from './v1/transformation/pureProtocol/V1_ESService_ProtocolHelper.js'; +import { getOwnServiceStore } from '../../../graphManager/ESService_GraphManagerHelper.js'; +import { ServiceStore } from '../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.js'; import { type PackageableElement, type V1_ElementProtocolClassifierPathGetter, @@ -78,28 +78,28 @@ import { V1_transformElementReference, V1_buildFullPath, } from '@finos/legend-graph'; -import { V1_RootServiceStoreClassMapping } from './v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping'; -import { RootServiceInstanceSetImplementation } from '../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation'; -import { LocalMappingProperty } from '../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty'; -import { ServiceMapping } from '../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping'; -import { V1_ServiceStoreConnection } from './v1/model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection'; +import { V1_RootServiceStoreClassMapping } from './v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping.js'; +import { RootServiceInstanceSetImplementation } from '../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_RootServiceInstanceSetImplementation.js'; +import { LocalMappingProperty } from '../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_LocalMappingProperty.js'; +import { ServiceMapping } from '../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceMapping.js'; +import { V1_ServiceStoreConnection } from './v1/model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection.js'; import { V1_buildServiceRequestBuildInfo, V1_buildServiceStoreElement, V1_buildServiceStoreEmbeddedData, V1_resolveService, V1_resolveServiceStore, -} from './v1/transformation/pureGraph/V1_ESService_GraphBuilderHelper'; -import { ServiceStoreConnection } from '../../metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection'; -import { V1_ServiceMapping } from './v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping'; +} from './v1/transformation/pureGraph/V1_ESService_GraphBuilderHelper.js'; +import { ServiceStoreConnection } from '../../metamodels/pure/model/packageableElements/store/serviceStore/connection/ESService_ServiceStoreConnection.js'; +import { V1_ServiceMapping } from './v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping.js'; import { V1_transformServiceRequestBuildInfo, V1_transformServiceStoreElement, V1_transformServiceStoreEmbeddedData, V1_transformServiceToServicePtr, -} from './v1/transformation/pureGraph/V1_ESService_TransformerHelper'; -import { ServiceStoreEmbeddedData } from '../../metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; -import { V1_ServiceStoreEmbeddedData } from './v1/model/data/V1_ESService_ServiceStoreEmbeddedData'; +} from './v1/transformation/pureGraph/V1_ESService_TransformerHelper.js'; +import { ServiceStoreEmbeddedData } from '../../metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; +import { V1_ServiceStoreEmbeddedData } from './v1/model/data/V1_ESService_ServiceStoreEmbeddedData.js'; const SERVICE_STORE_ELEMENT_CLASSIFIER_PATH = 'meta::external::store::service::metamodel::ServiceStore'; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceRequestPattern.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceRequestPattern.ts index d08e3ea2a6a..14f867223c0 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceRequestPattern.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceRequestPattern.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils'; -import type { HTTP_METHOD } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; -import type { V1_StringValuePattern } from './contentPattern/V1_ESService_StringValuePattern'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils.js'; +import type { HTTP_METHOD } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; +import type { V1_StringValuePattern } from './contentPattern/V1_ESService_StringValuePattern.js'; export class V1_ServiceRequestPattern implements Hashable { url?: string | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceResponseDefinition.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceResponseDefinition.ts index 255dc974a14..98a4bc4773d 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceResponseDefinition.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceResponseDefinition.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils.js'; import type { V1_ExternalFormatData } from '@finos/legend-graph'; export class V1_ServiceResponseDefinition implements Hashable { diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStoreEmbeddedData.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStoreEmbeddedData.ts index 34f19d12d59..af09259329e 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStoreEmbeddedData.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStoreEmbeddedData.ts @@ -19,8 +19,8 @@ import { type V1_EmbeddedDataVisitor, } from '@finos/legend-graph'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils'; -import type { V1_ServiceStubMapping } from './V1_ESService_ServiceStubMapping'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils.js'; +import type { V1_ServiceStubMapping } from './V1_ESService_ServiceStubMapping.js'; export class V1_ServiceStoreEmbeddedData extends V1_EmbeddedData diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStubMapping.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStubMapping.ts index 27d7de5f34b..23c579c46fb 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStubMapping.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/V1_ESService_ServiceStubMapping.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils'; -import type { V1_ServiceRequestPattern } from './V1_ESService_ServiceRequestPattern'; -import type { V1_ServiceResponseDefinition } from './V1_ESService_ServiceResponseDefinition'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../ESService_ModelUtils.js'; +import type { V1_ServiceRequestPattern } from './V1_ESService_ServiceRequestPattern.js'; +import type { V1_ServiceResponseDefinition } from './V1_ESService_ServiceResponseDefinition.js'; export class V1_ServiceStubMapping implements Hashable { requestPattern!: V1_ServiceRequestPattern; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToJsonPattern.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToJsonPattern.ts index 5c30ba81450..7c0fc950aac 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToJsonPattern.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToJsonPattern.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../ESService_ModelUtils'; -import { V1_StringValuePattern } from './V1_ESService_StringValuePattern'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../ESService_ModelUtils.js'; +import { V1_StringValuePattern } from './V1_ESService_StringValuePattern.js'; export class V1_EqualToJsonPattern extends V1_StringValuePattern diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToPattern.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToPattern.ts index eff6090df1f..f38954d7612 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToPattern.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_EqualToPattern.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../ESService_ModelUtils'; -import { V1_StringValuePattern } from './V1_ESService_StringValuePattern'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../ESService_ModelUtils.js'; +import { V1_StringValuePattern } from './V1_ESService_StringValuePattern.js'; export class V1_EqualToPattern extends V1_StringValuePattern diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_StringValuePattern.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_StringValuePattern.ts index 84ab29a9d52..26fb016e762 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_StringValuePattern.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/data/contentPattern/V1_ESService_StringValuePattern.ts @@ -15,7 +15,7 @@ */ import type { Hashable } from '@finos/legend-shared'; -import { V1_ContentPattern } from './V1_ESService_ContentPattern'; +import { V1_ContentPattern } from './V1_ESService_ContentPattern.js'; export abstract class V1_StringValuePattern extends V1_ContentPattern diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection.ts index 4e3940c912e..686a554f15e 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection.ts @@ -16,7 +16,7 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import { type V1_ConnectionVisitor, V1_Connection } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_ServiceStoreConnection extends V1_Connection diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_LocalMappingProperty.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_LocalMappingProperty.ts index 9696df9c0ba..1d08eef4365 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_LocalMappingProperty.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_LocalMappingProperty.ts @@ -16,7 +16,7 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import type { V1_Multiplicity } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_LocalMappingProperty implements Hashable { name!: string; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping.ts index 6cc87d65fd4..63e0d81d4e4 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping.ts @@ -19,9 +19,9 @@ import { V1_ClassMapping, type V1_ClassMappingVisitor, } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; -import type { V1_LocalMappingProperty } from './V1_ESService_LocalMappingProperty'; -import type { V1_ServiceMapping } from './V1_ESService_ServiceMapping'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; +import type { V1_LocalMappingProperty } from './V1_ESService_LocalMappingProperty.js'; +import type { V1_ServiceMapping } from './V1_ESService_ServiceMapping.js'; export class V1_RootServiceStoreClassMapping extends V1_ClassMapping diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping.ts index 09ae00f9b16..140104bc60f 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping.ts @@ -16,9 +16,9 @@ import { hashObjectWithoutSourceInformation } from '@finos/legend-graph'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; -import type { V1_ServiceStoreServicePtr } from '../model/V1_ESService_ServiceStoreServicePtr'; -import type { V1_ServiceRequestBuildInfo } from './V1_ESService_ServiceRequestBuildInfo'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; +import type { V1_ServiceStoreServicePtr } from '../model/V1_ESService_ServiceStoreServicePtr.js'; +import type { V1_ServiceRequestBuildInfo } from './V1_ESService_ServiceRequestBuildInfo.js'; export class V1_ServiceMapping implements Hashable { service!: V1_ServiceStoreServicePtr; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo.ts index 3227333c3b0..151c3d0816d 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo.ts @@ -16,7 +16,7 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import type { V1_RawLambda } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_ServiceRequestBodyBuildInfo implements Hashable { transform!: V1_RawLambda; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo.ts index 760be94be29..1b62ff00d6e 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; -import type { V1_ServiceRequestParametersBuildInfo } from './V1_ESService_ServiceRequestParametersBuildInfo'; -import type { V1_ServiceRequestBodyBuildInfo } from './V1_ESService_ServiceRequestBodyBuildInfo'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; +import type { V1_ServiceRequestParametersBuildInfo } from './V1_ESService_ServiceRequestParametersBuildInfo.js'; +import type { V1_ServiceRequestBodyBuildInfo } from './V1_ESService_ServiceRequestBodyBuildInfo.js'; export class V1_ServiceRequestBuildInfo implements Hashable { requestBodyBuildInfo?: V1_ServiceRequestBodyBuildInfo | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo.ts index de705558402..339726f6761 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo.ts @@ -16,7 +16,7 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import type { V1_RawLambda } from '@finos/legend-graph'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_ServiceRequestParameterBuildInfo implements Hashable { serviceParameter!: string; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo.ts index a7dee30a250..abe8ffbcfa1 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; -import type { V1_ServiceRequestParameterBuildInfo } from './V1_ESService_ServiceRequestParameterBuildInfo'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; +import type { V1_ServiceRequestParameterBuildInfo } from './V1_ESService_ServiceRequestParameterBuildInfo.js'; export class V1_ServiceRequestParametersBuildInfo implements Hashable { parameterBuildInfoList: V1_ServiceRequestParameterBuildInfo[] = []; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat.ts index b222e7c0d38..5b120aa3628 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_SerializationFormat implements Hashable { style?: string | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup.ts index b7639d70a6c..bc1ef3f59ba 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; -import { V1_ServiceStoreElement } from './V1_ESService_ServiceStoreElement'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; +import { V1_ServiceStoreElement } from './V1_ESService_ServiceStoreElement.js'; export class V1_ServiceGroup extends V1_ServiceStoreElement diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr.ts index 13d4b13cd88..e6488b4a820 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_ServiceGroupPtr implements Hashable { serviceStore!: string; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter.ts index d11febd3a2f..3f5877b8714 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_SerializationFormat } from './V1_ESService_SerializationFormat'; -import type { V1_TypeReference } from './V1_ESService_TypeReference'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import type { V1_SerializationFormat } from './V1_ESService_SerializationFormat.js'; +import type { V1_TypeReference } from './V1_ESService_TypeReference.js'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_ServiceParameter implements Hashable { name!: string; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore.ts index df87a5c3f2e..81932c7a4d0 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore.ts @@ -19,8 +19,8 @@ import { type V1_PackageableElementVisitor, V1_Store, } from '@finos/legend-graph'; -import type { V1_ServiceStoreElement } from './V1_ESService_ServiceStoreElement'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import type { V1_ServiceStoreElement } from './V1_ESService_ServiceStoreElement.js'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export class V1_ServiceStore extends V1_Store implements Hashable { description?: string | undefined; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService.ts index 7d8ded4e985..475684689e5 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService.ts @@ -15,14 +15,14 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; -import { V1_ServiceStoreElement } from './V1_ESService_ServiceStoreElement'; -import type { V1_ServiceParameter } from './V1_ESService_ServiceParameter'; -import type { V1_SecurityScheme } from './V1_ESService_SecurityScheme'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; +import { V1_ServiceStoreElement } from './V1_ESService_ServiceStoreElement.js'; +import type { V1_ServiceParameter } from './V1_ESService_ServiceParameter.js'; +import type { V1_SecurityScheme } from './V1_ESService_SecurityScheme.js'; import type { V1_TypeReference, V1_ComplexTypeReference, -} from './V1_ESService_TypeReference'; +} from './V1_ESService_TypeReference.js'; export class V1_ServiceStoreService extends V1_ServiceStoreElement diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr.ts index 027ec48bd90..d774cb6baad 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; -import type { V1_ServiceGroupPtr } from './V1_ESService_ServiceGroupPtr'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; +import type { V1_ServiceGroupPtr } from './V1_ESService_ServiceGroupPtr.js'; export class V1_ServiceStoreServicePtr implements Hashable { serviceStore!: string; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference.ts index 87cde71b284..6267ca6b8bb 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils'; +import { SERVICE_STORE_HASH_STRUCTURE } from '../../../../../../../../ESService_ModelUtils.js'; export abstract class V1_TypeReference implements Hashable { list!: boolean; diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_GraphBuilderHelper.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_GraphBuilderHelper.ts index 733126fe83e..80dada49873 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_GraphBuilderHelper.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_GraphBuilderHelper.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { getServiceStore } from '../../../../../../graphManager/ESService_GraphManagerHelper'; -import type { ServiceStore } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore'; +import { getServiceStore } from '../../../../../../graphManager/ESService_GraphManagerHelper.js'; +import type { ServiceStore } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStore.js'; import { V1_buildRawLambdaWithResolvedPaths, ExternalFormatData, @@ -24,13 +24,13 @@ import { type V1_GraphBuilderContext, V1_ProtocolToMetaModelEmbeddedDataBuilder, } from '@finos/legend-graph'; -import type { V1_ServiceStoreServicePtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr'; +import type { V1_ServiceStoreServicePtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr.js'; import { ServiceStoreService, HTTP_METHOD, -} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; -import type { V1_ServiceGroupPtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr'; -import { ServiceGroup } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup'; +} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; +import type { V1_ServiceGroupPtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr.js'; +import { ServiceGroup } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.js'; import { type V1_TypeReference, V1_BooleanTypeReference, @@ -38,7 +38,7 @@ import { V1_FloatTypeReference, V1_IntegerTypeReference, V1_StringTypeReference, -} from '../../model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference'; +} from '../../model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference.js'; import { type TypeReference, BooleanTypeReference, @@ -46,7 +46,7 @@ import { FloatTypeReference, IntegerTypeReference, StringTypeReference, -} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference'; +} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference.js'; import { assertNonNullable, guaranteeNonEmptyString, @@ -54,44 +54,44 @@ import { guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { V1_ServiceParameter } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter'; +import type { V1_ServiceParameter } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter.js'; import { LOCATION, ServiceParameter, -} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter'; -import type { V1_ServiceStoreElement } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreElement'; -import type { ServiceStoreElement } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement'; -import { V1_ServiceStoreService } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService'; -import { V1_ServiceGroup } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup'; -import type { SecurityScheme } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme'; -import type { V1_SecurityScheme } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme'; -import type { ESService_PureProtocolPlugin_Extension } from '../../../ESService_PureProtocolPlugin_Extension'; -import { SerializationFormat } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat'; -import type { V1_SerializationFormat } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat'; +} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.js'; +import type { V1_ServiceStoreElement } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreElement.js'; +import type { ServiceStoreElement } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.js'; +import { V1_ServiceStoreService } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService.js'; +import { V1_ServiceGroup } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup.js'; +import type { SecurityScheme } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme.js'; +import type { V1_SecurityScheme } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme.js'; +import type { ESService_PureProtocolPlugin_Extension } from '../../../ESService_PureProtocolPlugin_Extension.js'; +import { SerializationFormat } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SerializationFormat.js'; +import type { V1_SerializationFormat } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat.js'; import { getServiceStoreService, getServiceGroup, getParameter, -} from '../../../../../../helpers/ESService_Helper'; -import { ServiceRequestBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo'; -import type { V1_ServiceRequestBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo'; -import { ServiceRequestBodyBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo'; -import { ServiceRequestParametersBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo'; -import { ServiceRequestParameterBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo'; -import { EqualToJsonPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern'; -import { V1_EqualToJsonPattern } from '../../model/data/contentPattern/V1_ESService_EqualToJsonPattern'; -import { EqualToPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToPattern'; -import { V1_EqualToPattern } from '../../model/data/contentPattern/V1_ESService_EqualToPattern'; -import type { V1_StringValuePattern } from '../../model/data/contentPattern/V1_ESService_StringValuePattern'; -import type { StringValuePattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_StringValuePattern'; -import { ServiceRequestPattern } from '../../../../../metamodels/pure/model/data/ESService_ServiceRequestPattern'; -import type { V1_ServiceRequestPattern } from '../../model/data/V1_ESService_ServiceRequestPattern'; -import { ServiceResponseDefinition } from '../../../../../metamodels/pure/model/data/ESService_ServiceResponseDefinition'; -import type { V1_ServiceResponseDefinition } from '../../model/data/V1_ESService_ServiceResponseDefinition'; -import { ServiceStubMapping } from '../../../../../metamodels/pure/model/data/ESService_ServiceStubMapping'; -import type { V1_ServiceStubMapping } from '../../model/data/V1_ESService_ServiceStubMapping'; -import type { V1_ServiceStoreEmbeddedData } from '../../model/data/V1_ESService_ServiceStoreEmbeddedData'; -import { ServiceStoreEmbeddedData } from '../../../../../metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; +} from '../../../../../../helpers/ESService_Helper.js'; +import { ServiceRequestBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo.js'; +import type { V1_ServiceRequestBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo.js'; +import { ServiceRequestBodyBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBodyBuildInfo.js'; +import { ServiceRequestParametersBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParametersBuildInfo.js'; +import { ServiceRequestParameterBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestParameterBuildInfo.js'; +import { EqualToJsonPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.js'; +import { V1_EqualToJsonPattern } from '../../model/data/contentPattern/V1_ESService_EqualToJsonPattern.js'; +import { EqualToPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.js'; +import { V1_EqualToPattern } from '../../model/data/contentPattern/V1_ESService_EqualToPattern.js'; +import type { V1_StringValuePattern } from '../../model/data/contentPattern/V1_ESService_StringValuePattern.js'; +import type { StringValuePattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.js'; +import { ServiceRequestPattern } from '../../../../../metamodels/pure/model/data/ESService_ServiceRequestPattern.js'; +import type { V1_ServiceRequestPattern } from '../../model/data/V1_ESService_ServiceRequestPattern.js'; +import { ServiceResponseDefinition } from '../../../../../metamodels/pure/model/data/ESService_ServiceResponseDefinition.js'; +import type { V1_ServiceResponseDefinition } from '../../model/data/V1_ESService_ServiceResponseDefinition.js'; +import { ServiceStubMapping } from '../../../../../metamodels/pure/model/data/ESService_ServiceStubMapping.js'; +import type { V1_ServiceStubMapping } from '../../model/data/V1_ESService_ServiceStubMapping.js'; +import type { V1_ServiceStoreEmbeddedData } from '../../model/data/V1_ESService_ServiceStoreEmbeddedData.js'; +import { ServiceStoreEmbeddedData } from '../../../../../metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; export const V1_resolveServiceStore = ( path: string, diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_TransformerHelper.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_TransformerHelper.ts index 1a1b6199074..ac76aef8d88 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_TransformerHelper.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureGraph/V1_ESService_TransformerHelper.ts @@ -21,7 +21,7 @@ import { FloatTypeReference, IntegerTypeReference, ComplexTypeReference, -} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference'; +} from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_TypeReference.js'; import { type V1_TypeReference, V1_StringTypeReference, @@ -29,45 +29,45 @@ import { V1_FloatTypeReference, V1_ComplexTypeReference, V1_IntegerTypeReference, -} from '../../model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference'; +} from '../../model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference.js'; import { UnsupportedOperationError } from '@finos/legend-shared'; import { type V1_GraphTransformerContext, V1_RawLambda, V1_transformExternalFormatData, } from '@finos/legend-graph'; -import type { ServiceParameter } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter'; -import { V1_ServiceParameter } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter'; -import { ServiceStoreService } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; -import { V1_ServiceStoreService } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService'; -import { ServiceGroup } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup'; -import { V1_ServiceGroup } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup'; -import { V1_ServiceGroupPtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr'; -import { V1_ServiceStoreServicePtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr'; -import type { ServiceStoreElement } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement'; -import type { V1_ServiceStoreElement } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreElement'; -import type { V1_SecurityScheme } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme'; -import type { SecurityScheme } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme'; -import type { ESService_PureProtocolPlugin_Extension } from '../../../ESService_PureProtocolPlugin_Extension'; -import type { ServiceRequestBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo'; -import { V1_ServiceRequestBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo'; -import { V1_ServiceRequestParametersBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo'; -import { V1_ServiceRequestBodyBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo'; -import { V1_ServiceRequestParameterBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo'; -import { EqualToJsonPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern'; -import { EqualToPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToPattern'; -import type { StringValuePattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_StringValuePattern'; -import type { ServiceRequestPattern } from '../../../../../metamodels/pure/model/data/ESService_ServiceRequestPattern'; -import type { ServiceResponseDefinition } from '../../../../../metamodels/pure/model/data/ESService_ServiceResponseDefinition'; -import type { ServiceStoreEmbeddedData } from '../../../../../metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; -import type { ServiceStubMapping } from '../../../../../metamodels/pure/model/data/ESService_ServiceStubMapping'; -import { V1_EqualToJsonPattern } from '../../model/data/contentPattern/V1_ESService_EqualToJsonPattern'; -import { V1_EqualToPattern } from '../../model/data/contentPattern/V1_ESService_EqualToPattern'; -import type { V1_StringValuePattern } from '../../model/data/contentPattern/V1_ESService_StringValuePattern'; -import { V1_ServiceRequestPattern } from '../../model/data/V1_ESService_ServiceRequestPattern'; -import { V1_ServiceResponseDefinition } from '../../model/data/V1_ESService_ServiceResponseDefinition'; -import { V1_ServiceStoreEmbeddedData } from '../../model/data/V1_ESService_ServiceStoreEmbeddedData'; -import { V1_ServiceStubMapping } from '../../model/data/V1_ESService_ServiceStubMapping'; +import type { ServiceParameter } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceParameter.js'; +import { V1_ServiceParameter } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter.js'; +import { ServiceStoreService } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; +import { V1_ServiceStoreService } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService.js'; +import { ServiceGroup } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceGroup.js'; +import { V1_ServiceGroup } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup.js'; +import { V1_ServiceGroupPtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr.js'; +import { V1_ServiceStoreServicePtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr.js'; +import type { ServiceStoreElement } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreElement.js'; +import type { V1_ServiceStoreElement } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreElement.js'; +import type { V1_SecurityScheme } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme.js'; +import type { SecurityScheme } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_SecurityScheme.js'; +import type { ESService_PureProtocolPlugin_Extension } from '../../../ESService_PureProtocolPlugin_Extension.js'; +import type { ServiceRequestBuildInfo } from '../../../../../metamodels/pure/model/packageableElements/store/serviceStore/mapping/ESService_ServiceRequestBuildInfo.js'; +import { V1_ServiceRequestBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo.js'; +import { V1_ServiceRequestParametersBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo.js'; +import { V1_ServiceRequestBodyBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo.js'; +import { V1_ServiceRequestParameterBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo.js'; +import { EqualToJsonPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToJsonPattern.js'; +import { EqualToPattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_EqualToPattern.js'; +import type { StringValuePattern } from '../../../../../metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.js'; +import type { ServiceRequestPattern } from '../../../../../metamodels/pure/model/data/ESService_ServiceRequestPattern.js'; +import type { ServiceResponseDefinition } from '../../../../../metamodels/pure/model/data/ESService_ServiceResponseDefinition.js'; +import type { ServiceStoreEmbeddedData } from '../../../../../metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; +import type { ServiceStubMapping } from '../../../../../metamodels/pure/model/data/ESService_ServiceStubMapping.js'; +import { V1_EqualToJsonPattern } from '../../model/data/contentPattern/V1_ESService_EqualToJsonPattern.js'; +import { V1_EqualToPattern } from '../../model/data/contentPattern/V1_ESService_EqualToPattern.js'; +import type { V1_StringValuePattern } from '../../model/data/contentPattern/V1_ESService_StringValuePattern.js'; +import { V1_ServiceRequestPattern } from '../../model/data/V1_ESService_ServiceRequestPattern.js'; +import { V1_ServiceResponseDefinition } from '../../model/data/V1_ESService_ServiceResponseDefinition.js'; +import { V1_ServiceStoreEmbeddedData } from '../../model/data/V1_ESService_ServiceStoreEmbeddedData.js'; +import { V1_ServiceStubMapping } from '../../model/data/V1_ESService_ServiceStubMapping.js'; export const V1_transformStringTypeReference = ( metamodel: StringTypeReference, diff --git a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureProtocol/V1_ESService_ProtocolHelper.ts b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureProtocol/V1_ESService_ProtocolHelper.ts index a6dc5e2adc1..5de87dbd302 100644 --- a/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureProtocol/V1_ESService_ProtocolHelper.ts +++ b/packages/legend-extension-external-store-service/src/models/protocols/pure/v1/transformation/pureProtocol/V1_ESService_ProtocolHelper.ts @@ -38,11 +38,11 @@ import { object, raw, } from 'serializr'; -import { V1_ServiceStore } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore'; -import { V1_ServiceStoreService } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService'; -import { V1_ServiceGroup } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup'; -import type { V1_ServiceStoreElement } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreElement'; -import { V1_ServiceParameter } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter'; +import { V1_ServiceStore } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStore.js'; +import { V1_ServiceStoreService } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreService.js'; +import { V1_ServiceGroup } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroup.js'; +import type { V1_ServiceStoreElement } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreElement.js'; +import { V1_ServiceParameter } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceParameter.js'; import { type V1_TypeReference, V1_BooleanTypeReference, @@ -50,33 +50,33 @@ import { V1_FloatTypeReference, V1_IntegerTypeReference, V1_StringTypeReference, -} from '../../model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference'; -import { V1_SerializationFormat } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat'; -import { V1_ServiceStoreConnection } from '../../model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection'; -import { V1_RootServiceStoreClassMapping } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping'; -import { V1_LocalMappingProperty } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_LocalMappingProperty'; -import { V1_ServiceMapping } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping'; -import { V1_ServiceStoreServicePtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr'; -import { V1_ServiceGroupPtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr'; +} from '../../model/packageableElements/store/serviceStore/model/V1_ESService_TypeReference.js'; +import { V1_SerializationFormat } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SerializationFormat.js'; +import { V1_ServiceStoreConnection } from '../../model/packageableElements/store/serviceStore/connection/V1_ESService_ServicestoreConnection.js'; +import { V1_RootServiceStoreClassMapping } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_RootServiceStoreClassMapping.js'; +import { V1_LocalMappingProperty } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_LocalMappingProperty.js'; +import { V1_ServiceMapping } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceMapping.js'; +import { V1_ServiceStoreServicePtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceStoreServicePtr.js'; +import { V1_ServiceGroupPtr } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_ServiceGroupPtr.js'; import { type PureProtocolProcessorPlugin, V1_Multiplicity, V1_externalFormatDataModelSchema, V1_rawLambdaModelSchema, } from '@finos/legend-graph'; -import type { V1_SecurityScheme } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme'; -import type { ESService_PureProtocolPlugin_Extension } from '../../../ESService_PureProtocolPlugin_Extension'; -import { V1_ServiceRequestBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo'; -import { V1_ServiceRequestParametersBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo'; -import { V1_ServiceRequestParameterBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo'; -import { V1_ServiceRequestBodyBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo'; -import { V1_EqualToJsonPattern } from '../../model/data/contentPattern/V1_ESService_EqualToJsonPattern'; -import { V1_EqualToPattern } from '../../model/data/contentPattern/V1_ESService_EqualToPattern'; -import type { V1_StringValuePattern } from '../../model/data/contentPattern/V1_ESService_StringValuePattern'; -import { V1_ServiceRequestPattern } from '../../model/data/V1_ESService_ServiceRequestPattern'; -import { V1_ServiceResponseDefinition } from '../../model/data/V1_ESService_ServiceResponseDefinition'; -import { V1_ServiceStubMapping } from '../../model/data/V1_ESService_ServiceStubMapping'; -import { V1_ServiceStoreEmbeddedData } from '../../model/data/V1_ESService_ServiceStoreEmbeddedData'; +import type { V1_SecurityScheme } from '../../model/packageableElements/store/serviceStore/model/V1_ESService_SecurityScheme.js'; +import type { ESService_PureProtocolPlugin_Extension } from '../../../ESService_PureProtocolPlugin_Extension.js'; +import { V1_ServiceRequestBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBuildInfo.js'; +import { V1_ServiceRequestParametersBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParametersBuildInfo.js'; +import { V1_ServiceRequestParameterBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestParameterBuildInfo.js'; +import { V1_ServiceRequestBodyBuildInfo } from '../../model/packageableElements/store/serviceStore/mapping/V1_ESService_ServiceRequestBodyBuildInfo.js'; +import { V1_EqualToJsonPattern } from '../../model/data/contentPattern/V1_ESService_EqualToJsonPattern.js'; +import { V1_EqualToPattern } from '../../model/data/contentPattern/V1_ESService_EqualToPattern.js'; +import type { V1_StringValuePattern } from '../../model/data/contentPattern/V1_ESService_StringValuePattern.js'; +import { V1_ServiceRequestPattern } from '../../model/data/V1_ESService_ServiceRequestPattern.js'; +import { V1_ServiceResponseDefinition } from '../../model/data/V1_ESService_ServiceResponseDefinition.js'; +import { V1_ServiceStubMapping } from '../../model/data/V1_ESService_ServiceStubMapping.js'; +import { V1_ServiceStoreEmbeddedData } from '../../model/data/V1_ESService_ServiceStoreEmbeddedData.js'; export const V1_SERVICE_STORE_ELEMENT_PROTOCOL_TYPE = 'serviceStore'; export const V1_SERVICE_STORE_MAPPING_PROTOCOL_TYPE = 'serviceStore'; diff --git a/packages/legend-extension-external-store-service/src/stores/studio/ESService_GraphModifierHelper.ts b/packages/legend-extension-external-store-service/src/stores/studio/ESService_GraphModifierHelper.ts index 4e9af9d9c8d..296328f045d 100644 --- a/packages/legend-extension-external-store-service/src/stores/studio/ESService_GraphModifierHelper.ts +++ b/packages/legend-extension-external-store-service/src/stores/studio/ESService_GraphModifierHelper.ts @@ -27,13 +27,13 @@ import { action } from 'mobx'; import { observe_ServiceStubMapping, observe_StringValuePattern, -} from '../../graphManager/action/changeDetection/ESService_ObserverHelper'; -import type { StringValuePattern } from '../../models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern'; -import type { ServiceRequestPattern } from '../../models/metamodels/pure/model/data/ESService_ServiceRequestPattern'; -import type { ServiceResponseDefinition } from '../../models/metamodels/pure/model/data/ESService_ServiceResponseDefinition'; -import type { ServiceStoreEmbeddedData } from '../../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; -import type { ServiceStubMapping } from '../../models/metamodels/pure/model/data/ESService_ServiceStubMapping'; -import { HTTP_METHOD } from '../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService'; +} from '../../graphManager/action/changeDetection/ESService_ObserverHelper.js'; +import type { StringValuePattern } from '../../models/metamodels/pure/model/data/contentPattern/ESService_StringValuePattern.js'; +import type { ServiceRequestPattern } from '../../models/metamodels/pure/model/data/ESService_ServiceRequestPattern.js'; +import type { ServiceResponseDefinition } from '../../models/metamodels/pure/model/data/ESService_ServiceResponseDefinition.js'; +import type { ServiceStoreEmbeddedData } from '../../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; +import type { ServiceStubMapping } from '../../models/metamodels/pure/model/data/ESService_ServiceStubMapping.js'; +import { HTTP_METHOD } from '../../models/metamodels/pure/model/packageableElements/store/serviceStore/model/ESService_ServiceStoreService.js'; export const serviceStore_embeddedData_addServiceStubMapping = action( ( diff --git a/packages/legend-extension-external-store-service/src/stores/studio/ESService_ServiceStoreEmbeddedDataEditorState.ts b/packages/legend-extension-external-store-service/src/stores/studio/ESService_ServiceStoreEmbeddedDataEditorState.ts index 9d1c3ce0697..bfb8db96307 100644 --- a/packages/legend-extension-external-store-service/src/stores/studio/ESService_ServiceStoreEmbeddedDataEditorState.ts +++ b/packages/legend-extension-external-store-service/src/stores/studio/ESService_ServiceStoreEmbeddedDataEditorState.ts @@ -16,8 +16,8 @@ import { type EditorStore, EmbeddedDataState } from '@finos/legend-studio'; import { action, makeObservable, observable } from 'mobx'; -import type { ServiceStoreEmbeddedData } from '../../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData'; -import type { ServiceStubMapping } from '../../models/metamodels/pure/model/data/ESService_ServiceStubMapping'; +import type { ServiceStoreEmbeddedData } from '../../models/metamodels/pure/model/data/ESService_ServiceStoreEmbeddedData.js'; +import type { ServiceStubMapping } from '../../models/metamodels/pure/model/data/ESService_ServiceStubMapping.js'; export enum SERVICE_STUB_MAPPING_TAB_TYPE { SERVICE_REQUEST_PATTERN = 'SERVICE_REQUEST_PATTERN', diff --git a/packages/legend-extension-mapping-generation/src/components/MappingGenerationEditor.tsx b/packages/legend-extension-mapping-generation/src/components/MappingGenerationEditor.tsx index 8149618131c..971257e62f6 100644 --- a/packages/legend-extension-mapping-generation/src/components/MappingGenerationEditor.tsx +++ b/packages/legend-extension-mapping-generation/src/components/MappingGenerationEditor.tsx @@ -39,7 +39,7 @@ import { EDITOR_LANGUAGE, useApplicationStore, } from '@finos/legend-application'; -import type { MappingGenerationEditorState } from '../stores/MappingGenerationEditorState'; +import type { MappingGenerationEditorState } from '../stores/MappingGenerationEditorState.js'; import { flowResult, runInAction } from 'mobx'; import { Mapping, diff --git a/packages/legend-extension-mapping-generation/src/components/MappingGeneration_LegendStudioPlugin.tsx b/packages/legend-extension-mapping-generation/src/components/MappingGeneration_LegendStudioPlugin.tsx index 97b011c7989..62530c5fbb2 100644 --- a/packages/legend-extension-mapping-generation/src/components/MappingGeneration_LegendStudioPlugin.tsx +++ b/packages/legend-extension-mapping-generation/src/components/MappingGeneration_LegendStudioPlugin.tsx @@ -15,8 +15,8 @@ */ import packageJson from '../../package.json'; -import { MappingGenerationEditor } from './MappingGenerationEditor'; -import { MappingGenerationEditorState } from '../stores/MappingGenerationEditorState'; +import { MappingGenerationEditor } from './MappingGenerationEditor.js'; +import { MappingGenerationEditorState } from '../stores/MappingGenerationEditorState.js'; import { type EditorStore, type DSLMapping_LegendStudioPlugin_Extension, diff --git a/packages/legend-extension-mapping-generation/src/index.ts b/packages/legend-extension-mapping-generation/src/index.ts index 6469d33f0ca..b699d73294c 100644 --- a/packages/legend-extension-mapping-generation/src/index.ts +++ b/packages/legend-extension-mapping-generation/src/index.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -export * from './components/MappingGeneration_LegendStudioPlugin'; -export * from './models/MappingGeneration_Extension'; +export * from './components/MappingGeneration_LegendStudioPlugin.js'; +export * from './models/MappingGeneration_Extension.js'; diff --git a/packages/legend-extension-mapping-generation/src/models/MappingGeneration_Extension.ts b/packages/legend-extension-mapping-generation/src/models/MappingGeneration_Extension.ts index d0cb750efe5..57a2a6db98a 100644 --- a/packages/legend-extension-mapping-generation/src/models/MappingGeneration_Extension.ts +++ b/packages/legend-extension-mapping-generation/src/models/MappingGeneration_Extension.ts @@ -16,7 +16,7 @@ import packageJson from '../../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { MappingGeneration_PureProtocolProcessorPlugin } from './MappingGeneration_PureProtocolProcessorPlugin'; +import { MappingGeneration_PureProtocolProcessorPlugin } from './MappingGeneration_PureProtocolProcessorPlugin.js'; export class MappingGeneration_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-extension-mapping-generation/src/models/MappingGeneration_PureProtocolProcessorPlugin.ts b/packages/legend-extension-mapping-generation/src/models/MappingGeneration_PureProtocolProcessorPlugin.ts index fb7b325ab8c..3426d74290b 100644 --- a/packages/legend-extension-mapping-generation/src/models/MappingGeneration_PureProtocolProcessorPlugin.ts +++ b/packages/legend-extension-mapping-generation/src/models/MappingGeneration_PureProtocolProcessorPlugin.ts @@ -24,8 +24,8 @@ import { PureProtocolProcessorPlugin, V1_deserializePureModelContextData, } from '@finos/legend-graph'; -import { V1_MappingGenerateModelInput } from './protocols/pure/v1/engine/V1_MappingGenerateModelInput'; -import { V1_MappingGenConfiguration } from './protocols/pure/v1/model/V1_MappingGenConfiguration'; +import { V1_MappingGenerateModelInput } from './protocols/pure/v1/engine/V1_MappingGenerateModelInput.js'; +import { V1_MappingGenConfiguration } from './protocols/pure/v1/model/V1_MappingGenConfiguration.js'; const GENERATE_MAPPING_ENGINE_TRACER_SPAN = 'generate relational mapping'; diff --git a/packages/legend-extension-mapping-generation/src/models/protocols/pure/v1/engine/V1_MappingGenerateModelInput.ts b/packages/legend-extension-mapping-generation/src/models/protocols/pure/v1/engine/V1_MappingGenerateModelInput.ts index 9a0d9295297..61c3c63e774 100644 --- a/packages/legend-extension-mapping-generation/src/models/protocols/pure/v1/engine/V1_MappingGenerateModelInput.ts +++ b/packages/legend-extension-mapping-generation/src/models/protocols/pure/v1/engine/V1_MappingGenerateModelInput.ts @@ -26,7 +26,7 @@ import { V1_PureModelContextData, PureClientVersion, } from '@finos/legend-graph'; -import { V1_MappingGenConfiguration } from '../model/V1_MappingGenConfiguration'; +import { V1_MappingGenConfiguration } from '../model/V1_MappingGenConfiguration.js'; export const V1_mappingGenConfigModelSchema = createModelSchema( V1_MappingGenConfiguration, diff --git a/packages/legend-extension-mapping-generation/src/stores/MappingGenerationEditorState.ts b/packages/legend-extension-mapping-generation/src/stores/MappingGenerationEditorState.ts index 097fab9862c..ede2f4354d2 100644 --- a/packages/legend-extension-mapping-generation/src/stores/MappingGenerationEditorState.ts +++ b/packages/legend-extension-mapping-generation/src/stores/MappingGenerationEditorState.ts @@ -23,7 +23,7 @@ import type { Mapping, ModelGenerationConfiguration, } from '@finos/legend-graph'; -import { V1_MappingGenConfiguration } from '../models/protocols/pure/v1/model/V1_MappingGenConfiguration'; +import { V1_MappingGenConfiguration } from '../models/protocols/pure/v1/model/V1_MappingGenConfiguration.js'; import { assertErrorThrown, LogEvent, diff --git a/packages/legend-graph/src/DSLData_Exports.ts b/packages/legend-graph/src/DSLData_Exports.ts index 0440bcdd8c6..0d2b02dc2b0 100644 --- a/packages/legend-graph/src/DSLData_Exports.ts +++ b/packages/legend-graph/src/DSLData_Exports.ts @@ -14,26 +14,26 @@ * limitations under the License. */ -export { DataElement } from './models/metamodels/pure/packageableElements/data/DataElement'; -export { V1_DataElement } from './models/protocols/pure/v1/model/packageableElements/data/V1_DataElement'; +export { DataElement } from './models/metamodels/pure/packageableElements/data/DataElement.js'; +export { V1_DataElement } from './models/protocols/pure/v1/model/packageableElements/data/V1_DataElement.js'; export { EmbeddedData, ModelStoreData, DataElementReference, ExternalFormatData, type EmbeddedDataVisitor, -} from './models/metamodels/pure/data/EmbeddedData'; +} from './models/metamodels/pure/data/EmbeddedData.js'; export { V1_EmbeddedData, V1_ExternalFormatData, type V1_EmbeddedDataVisitor, -} from './models/protocols/pure/v1/model/data/V1_EmbeddedData'; -export * from './models/protocols/pure/DSLData_PureProtocolProcessorPlugin_Extension'; -export * from './graphManager/EmbeddedData_PureGraphManagerPlugin_Extension'; -export { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper'; +} from './models/protocols/pure/v1/model/data/V1_EmbeddedData.js'; +export * from './models/protocols/pure/DSLData_PureProtocolProcessorPlugin_Extension.js'; +export * from './graphManager/EmbeddedData_PureGraphManagerPlugin_Extension.js'; +export { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.js'; export { observe_ExternalFormatData, observe_EmbeddedData, -} from './graphManager/action/changeDetection/DSLData_ObserverHelper'; -export { V1_transformExternalFormatData } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer'; -export { V1_externalFormatDataModelSchema } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper'; +} from './graphManager/action/changeDetection/DSLData_ObserverHelper.js'; +export { V1_transformExternalFormatData } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.js'; +export { V1_externalFormatDataModelSchema } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.js'; diff --git a/packages/legend-graph/src/DSLGenerationSpecification_Exports.ts b/packages/legend-graph/src/DSLGenerationSpecification_Exports.ts index 4c3597fa04a..368e293f7c9 100644 --- a/packages/legend-graph/src/DSLGenerationSpecification_Exports.ts +++ b/packages/legend-graph/src/DSLGenerationSpecification_Exports.ts @@ -15,14 +15,14 @@ */ // metamodels -export { ModelGenerationSpecification } from './models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification'; +export { ModelGenerationSpecification } from './models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification.js'; export { GenerationSpecification, GenerationTreeNode, -} from './models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; -export { FileGenerationSpecification } from './models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -export { ConfigurationProperty } from './models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty'; +} from './models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; +export { FileGenerationSpecification } from './models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +export { ConfigurationProperty } from './models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.js'; // protocols -export * from './models/protocols/pure/DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension'; -export { V1_ModelGenerationSpecification } from './models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_ModelGenerationSpecification'; +export * from './models/protocols/pure/DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension.js'; +export { V1_ModelGenerationSpecification } from './models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_ModelGenerationSpecification.js'; diff --git a/packages/legend-graph/src/DSLMapping_Exports.ts b/packages/legend-graph/src/DSLMapping_Exports.ts index dbca6f0808a..9fdc1124569 100644 --- a/packages/legend-graph/src/DSLMapping_Exports.ts +++ b/packages/legend-graph/src/DSLMapping_Exports.ts @@ -15,66 +15,66 @@ */ // metamodels -export { Store } from './models/metamodels/pure/packageableElements/store/Store'; -export { Mapping } from './models/metamodels/pure/packageableElements/mapping/Mapping'; +export { Store } from './models/metamodels/pure/packageableElements/store/Store.js'; +export { Mapping } from './models/metamodels/pure/packageableElements/mapping/Mapping.js'; export { Runtime, EngineRuntime, RuntimePointer, IdentifiedConnection, -} from './models/metamodels/pure/packageableElements/runtime/Runtime'; -export { PackageableRuntime } from './models/metamodels/pure/packageableElements/runtime/PackageableRuntime'; -export { PureInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation'; +} from './models/metamodels/pure/packageableElements/runtime/Runtime.js'; +export { PackageableRuntime } from './models/metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +export { PureInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js'; export { OperationSetImplementation, OperationType, -} from './models/metamodels/pure/packageableElements/mapping/OperationSetImplementation'; -export { PropertyMapping } from './models/metamodels/pure/packageableElements/mapping/PropertyMapping'; +} from './models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; +export { PropertyMapping } from './models/metamodels/pure/packageableElements/mapping/PropertyMapping.js'; export { Connection, ConnectionPointer, type ConnectionVisitor, -} from './models/metamodels/pure/packageableElements/connection/Connection'; -export { PackageableConnection } from './models/metamodels/pure/packageableElements/connection/PackageableConnection'; -export { ModelStore } from './models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore'; -export { PureModelConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/PureModelConnection'; -export { JsonModelConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection'; -export { ModelChainConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection'; -export { XmlModelConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection'; -export * from './models/metamodels/pure/packageableElements/mapping/SetImplementation'; -export * from './models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation'; -export { PurePropertyMapping } from './models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping'; -export { InstanceSetImplementation } from './models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -export { EnumerationMapping } from './models/metamodels/pure/packageableElements/mapping/EnumerationMapping'; +} from './models/metamodels/pure/packageableElements/connection/Connection.js'; +export { PackageableConnection } from './models/metamodels/pure/packageableElements/connection/PackageableConnection.js'; +export { ModelStore } from './models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore.js'; +export { PureModelConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/PureModelConnection.js'; +export { JsonModelConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.js'; +export { ModelChainConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.js'; +export { XmlModelConnection } from './models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.js'; +export * from './models/metamodels/pure/packageableElements/mapping/SetImplementation.js'; +export * from './models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.js'; +export { PurePropertyMapping } from './models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.js'; +export { InstanceSetImplementation } from './models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +export { EnumerationMapping } from './models/metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; export { EnumValueMapping, SourceValue, -} from './models/metamodels/pure/packageableElements/mapping/EnumValueMapping'; -export { AssociationImplementation } from './models/metamodels/pure/packageableElements/mapping/AssociationImplementation'; -export { SetImplementationContainer } from './models/metamodels/pure/packageableElements/mapping/SetImplementationContainer'; -export { AggregationAwareSetImplementation } from './models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation'; -export * from './models/metamodels/pure/packageableElements/mapping/InferableMappingElementId'; -export * from './models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot'; -export { SetImplementationExplicitReference } from './models/metamodels/pure/packageableElements/mapping/SetImplementationReference'; -export { MappingTest } from './models/metamodels/pure/packageableElements/mapping/MappingTest'; -export { InputData } from './models/metamodels/pure/packageableElements/mapping/InputData'; -export { MappingTestAssert } from './models/metamodels/pure/packageableElements/mapping/MappingTestAssert'; -export { ExpectedOutputMappingTestAssert } from './models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert'; +} from './models/metamodels/pure/packageableElements/mapping/EnumValueMapping.js'; +export { AssociationImplementation } from './models/metamodels/pure/packageableElements/mapping/AssociationImplementation.js'; +export { SetImplementationContainer } from './models/metamodels/pure/packageableElements/mapping/SetImplementationContainer.js'; +export { AggregationAwareSetImplementation } from './models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.js'; +export * from './models/metamodels/pure/packageableElements/mapping/InferableMappingElementId.js'; +export * from './models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.js'; +export { SetImplementationExplicitReference } from './models/metamodels/pure/packageableElements/mapping/SetImplementationReference.js'; +export { MappingTest } from './models/metamodels/pure/packageableElements/mapping/MappingTest.js'; +export { InputData } from './models/metamodels/pure/packageableElements/mapping/InputData.js'; +export { MappingTestAssert } from './models/metamodels/pure/packageableElements/mapping/MappingTestAssert.js'; +export { ExpectedOutputMappingTestAssert } from './models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.js'; export { ObjectInputData, ObjectInputType, -} from './models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData'; -export { type EmbeddedSetImplementation } from './models/metamodels/pure/packageableElements/mapping/EmbeddedSetImplementation'; +} from './models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.js'; +export { type EmbeddedSetImplementation } from './models/metamodels/pure/packageableElements/mapping/EmbeddedSetImplementation.js'; // protocols export { V1_Connection, type V1_ConnectionVisitor, -} from './models/protocols/pure/v1/model/packageableElements/connection/V1_Connection'; -export { V1_ConnectionPointer } from './models/protocols/pure/v1/model/packageableElements/connection/V1_ConnectionPointer'; -export { V1_Mapping } from './models/protocols/pure/v1/model/packageableElements/mapping/V1_Mapping'; -export { V1_PackageableRuntime } from './models/protocols/pure/v1/model/packageableElements/runtime/V1_PackageableRuntime'; -export { V1_Store } from './models/protocols/pure/v1/model/packageableElements/store/V1_Store'; +} from './models/protocols/pure/v1/model/packageableElements/connection/V1_Connection.js'; +export { V1_ConnectionPointer } from './models/protocols/pure/v1/model/packageableElements/connection/V1_ConnectionPointer.js'; +export { V1_Mapping } from './models/protocols/pure/v1/model/packageableElements/mapping/V1_Mapping.js'; +export { V1_PackageableRuntime } from './models/protocols/pure/v1/model/packageableElements/runtime/V1_PackageableRuntime.js'; +export { V1_Store } from './models/protocols/pure/v1/model/packageableElements/store/V1_Store.js'; export { V1_EngineRuntime, V1_LegacyRuntime, @@ -82,9 +82,9 @@ export { V1_IdentifiedConnection, V1_StoreConnections, V1_RuntimePointer, -} from './models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime'; +} from './models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.js'; export { V1_ClassMapping, type V1_ClassMappingVisitor, -} from './models/protocols/pure/v1/model/packageableElements/mapping/V1_ClassMapping'; -export * from './models/protocols/pure/DSLMapping_PureProtocolProcessorPlugin_Extension'; +} from './models/protocols/pure/v1/model/packageableElements/mapping/V1_ClassMapping.js'; +export * from './models/protocols/pure/DSLMapping_PureProtocolProcessorPlugin_Extension.js'; diff --git a/packages/legend-graph/src/DSLService_Exports.ts b/packages/legend-graph/src/DSLService_Exports.ts index 0cbc0716e3a..5f84ae43e8c 100644 --- a/packages/legend-graph/src/DSLService_Exports.ts +++ b/packages/legend-graph/src/DSLService_Exports.ts @@ -17,7 +17,7 @@ export { Service, DEFAULT_SERVICE_PATTERN, -} from './models/metamodels/pure/packageableElements/service/Service'; -export * from './models/metamodels/pure/packageableElements/service/ServiceTest'; -export * from './models/metamodels/pure/packageableElements/service/ServiceExecution'; -export * from './models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest'; +} from './models/metamodels/pure/packageableElements/service/Service.js'; +export * from './models/metamodels/pure/packageableElements/service/ServiceTest.js'; +export * from './models/metamodels/pure/packageableElements/service/ServiceExecution.js'; +export * from './models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.js'; diff --git a/packages/legend-graph/src/GraphManagerState.ts b/packages/legend-graph/src/GraphManagerState.ts index e3c83b092dd..921f135c797 100644 --- a/packages/legend-graph/src/GraphManagerState.ts +++ b/packages/legend-graph/src/GraphManagerState.ts @@ -21,33 +21,33 @@ import { assertErrorThrown, } from '@finos/legend-shared'; import { action, makeObservable, observable } from 'mobx'; -import { DependencyManager } from './graph/DependencyManager'; +import { DependencyManager } from './graph/DependencyManager.js'; import { CoreModel, GenerationModel, PureModel, SystemModel, -} from './graph/PureModel'; +} from './graph/PureModel.js'; import type { AbstractPureGraphManager, GraphBuilderOptions, -} from './graphManager/AbstractPureGraphManager'; -import type { GraphPluginManager } from './GraphPluginManager'; -import { getElementRootPackage } from './helpers/DomainHelper'; -import { getLeafSetImplementations } from './helpers/DSLMapping_Helper'; -import { ROOT_PACKAGE_NAME } from './MetaModelConst'; -import { AssociationImplementation } from './models/metamodels/pure/packageableElements/mapping/AssociationImplementation'; -import type { EnumerationMapping } from './models/metamodels/pure/packageableElements/mapping/EnumerationMapping'; -import { InstanceSetImplementation } from './models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import { OperationSetImplementation } from './models/metamodels/pure/packageableElements/mapping/OperationSetImplementation'; -import type { PropertyMapping } from './models/metamodels/pure/packageableElements/mapping/PropertyMapping'; -import type { SetImplementation } from './models/metamodels/pure/packageableElements/mapping/SetImplementation'; -import type { PackageableElement } from './models/metamodels/pure/packageableElements/PackageableElement'; -import { EmbeddedFlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping'; -import { EmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import { InlineEmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation'; -import { OtherwiseEmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; -import { getGraphManager } from './models/protocols/pure/Pure'; +} from './graphManager/AbstractPureGraphManager.js'; +import type { GraphPluginManager } from './GraphPluginManager.js'; +import { getElementRootPackage } from './helpers/DomainHelper.js'; +import { getLeafSetImplementations } from './helpers/DSLMapping_Helper.js'; +import { ROOT_PACKAGE_NAME } from './MetaModelConst.js'; +import { AssociationImplementation } from './models/metamodels/pure/packageableElements/mapping/AssociationImplementation.js'; +import type { EnumerationMapping } from './models/metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; +import { InstanceSetImplementation } from './models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import { OperationSetImplementation } from './models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; +import type { PropertyMapping } from './models/metamodels/pure/packageableElements/mapping/PropertyMapping.js'; +import type { SetImplementation } from './models/metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import type { PackageableElement } from './models/metamodels/pure/packageableElements/PackageableElement.js'; +import { EmbeddedFlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js'; +import { EmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import { InlineEmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.js'; +import { OtherwiseEmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; +import { getGraphManager } from './models/protocols/pure/Pure.js'; export class GraphManagerState { pluginManager: GraphPluginManager; diff --git a/packages/legend-graph/src/GraphManagerStateProvider.tsx b/packages/legend-graph/src/GraphManagerStateProvider.tsx index 9b10846f472..84748d1d074 100644 --- a/packages/legend-graph/src/GraphManagerStateProvider.tsx +++ b/packages/legend-graph/src/GraphManagerStateProvider.tsx @@ -17,8 +17,8 @@ import { type Log, guaranteeNonNullable } from '@finos/legend-shared'; import { useLocalObservable } from 'mobx-react-lite'; import { createContext, useContext } from 'react'; -import { GraphManagerState } from './GraphManagerState'; -import type { GraphPluginManager } from './GraphPluginManager'; +import { GraphManagerState } from './GraphManagerState.js'; +import type { GraphPluginManager } from './GraphPluginManager.js'; const GraphManagerStateContext = createContext( undefined, diff --git a/packages/legend-graph/src/GraphManagerTestUtils.tsx b/packages/legend-graph/src/GraphManagerTestUtils.tsx index a7999fa7466..f45ba572cef 100644 --- a/packages/legend-graph/src/GraphManagerTestUtils.tsx +++ b/packages/legend-graph/src/GraphManagerTestUtils.tsx @@ -22,15 +22,15 @@ import { AbstractPluginManager, promisify, } from '@finos/legend-shared'; -import type { PureGraphManagerPlugin } from './graphManager/PureGraphManagerPlugin'; -import { GraphManagerState } from './GraphManagerState'; -import { GraphManagerStateProvider } from './GraphManagerStateProvider'; -import type { GraphPluginManager } from './GraphPluginManager'; -import type { PureProtocolProcessorPlugin } from './models/protocols/pure/PureProtocolProcessorPlugin'; +import type { PureGraphManagerPlugin } from './graphManager/PureGraphManagerPlugin.js'; +import { GraphManagerState } from './GraphManagerState.js'; +import { GraphManagerStateProvider } from './GraphManagerStateProvider.js'; +import type { GraphPluginManager } from './GraphPluginManager.js'; +import type { PureProtocolProcessorPlugin } from './models/protocols/pure/PureProtocolProcessorPlugin.js'; import type { Entity } from '@finos/legend-model-storage'; -import { SECTION_INDEX_ELEMENT_PATH } from './MetaModelConst'; -import type { GraphBuilderOptions } from './graphManager/AbstractPureGraphManager'; -import type { PureGraphPlugin } from './graph/PureGraphPlugin'; +import { SECTION_INDEX_ELEMENT_PATH } from './MetaModelConst.js'; +import type { GraphBuilderOptions } from './graphManager/AbstractPureGraphManager.js'; +import type { PureGraphPlugin } from './graph/PureGraphPlugin.js'; export class TEST__GraphPluginManager extends AbstractPluginManager @@ -92,7 +92,7 @@ export const TEST__provideMockedGraphManagerState = (customization?: { const value = customization?.mock ?? TEST__getTestGraphManagerState(customization?.pluginManager); - const MockedGraphManagerStateProvider = require('./GraphManagerStateProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment + const MockedGraphManagerStateProvider = require('./GraphManagerStateProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment MockedGraphManagerStateProvider.useGraphManagerState = jest.fn(); MockedGraphManagerStateProvider.useGraphManagerState.mockReturnValue(value); return value; diff --git a/packages/legend-graph/src/GraphPluginManager.ts b/packages/legend-graph/src/GraphPluginManager.ts index d0bc7e12d5f..7be6f192fbf 100644 --- a/packages/legend-graph/src/GraphPluginManager.ts +++ b/packages/legend-graph/src/GraphPluginManager.ts @@ -15,9 +15,9 @@ */ import type { AbstractPluginManager } from '@finos/legend-shared'; -import type { PureGraphPlugin } from './graph/PureGraphPlugin'; -import type { PureGraphManagerPlugin } from './graphManager/PureGraphManagerPlugin'; -import type { PureProtocolProcessorPlugin } from './models/protocols/pure/PureProtocolProcessorPlugin'; +import type { PureGraphPlugin } from './graph/PureGraphPlugin.js'; +import type { PureGraphManagerPlugin } from './graphManager/PureGraphManagerPlugin.js'; +import type { PureProtocolProcessorPlugin } from './models/protocols/pure/PureProtocolProcessorPlugin.js'; export interface GraphPluginManager extends AbstractPluginManager { getPureGraphPlugins(): PureGraphPlugin[]; diff --git a/packages/legend-graph/src/MetaModelUtils.ts b/packages/legend-graph/src/MetaModelUtils.ts index a378ef9387c..2ed27560a52 100644 --- a/packages/legend-graph/src/MetaModelUtils.ts +++ b/packages/legend-graph/src/MetaModelUtils.ts @@ -27,7 +27,7 @@ import { SOURCE_INFORMATION_KEY, ELEMENT_PATH_DELIMITER, CORE_HASH_STRUCTURE, -} from './MetaModelConst'; +} from './MetaModelConst.js'; import { findLast, guaranteeNonNullable, diff --git a/packages/legend-graph/src/StoreFlatData_Exports.ts b/packages/legend-graph/src/StoreFlatData_Exports.ts index dacbe8bdac9..27076c997eb 100644 --- a/packages/legend-graph/src/StoreFlatData_Exports.ts +++ b/packages/legend-graph/src/StoreFlatData_Exports.ts @@ -15,20 +15,20 @@ */ // metamodels -export { FlatData } from './models/metamodels/pure/packageableElements/store/flatData/model/FlatData'; -export { FlatDataSection } from './models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection'; +export { FlatData } from './models/metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +export { FlatDataSection } from './models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.js'; export { FlatDataSectionReference, FlatDataSectionExplicitReference, -} from './models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSectionReference'; -export { RootFlatDataRecordTypeExplicitReference } from './models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference'; -export { FlatDataInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation'; -export { AbstractFlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping'; -export { EmbeddedFlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping'; -export { FlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping'; -export { FlatDataConnection } from './models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection'; +} from './models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSectionReference.js'; +export { RootFlatDataRecordTypeExplicitReference } from './models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference.js'; +export { FlatDataInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.js'; +export { AbstractFlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping.js'; +export { EmbeddedFlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js'; +export { FlatDataPropertyMapping } from './models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.js'; +export { FlatDataConnection } from './models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.js'; export { RootFlatDataRecordType, FlatDataRecordField, -} from './models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType'; -export { FlatDataInputData } from './models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData'; +} from './models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.js'; +export { FlatDataInputData } from './models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.js'; diff --git a/packages/legend-graph/src/StoreRelational_Exports.ts b/packages/legend-graph/src/StoreRelational_Exports.ts index 40f7c675d06..da65f71edfd 100644 --- a/packages/legend-graph/src/StoreRelational_Exports.ts +++ b/packages/legend-graph/src/StoreRelational_Exports.ts @@ -15,65 +15,65 @@ */ // metamodels -export { Database } from './models/metamodels/pure/packageableElements/store/relational/model/Database'; -export { Table } from './models/metamodels/pure/packageableElements/store/relational/model/Table'; -export { Column } from './models/metamodels/pure/packageableElements/store/relational/model/Column'; -export { Schema } from './models/metamodels/pure/packageableElements/store/relational/model/Schema'; -export { View } from './models/metamodels/pure/packageableElements/store/relational/model/View'; -export { Join } from './models/metamodels/pure/packageableElements/store/relational/model/Join'; +export { Database } from './models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +export { Table } from './models/metamodels/pure/packageableElements/store/relational/model/Table.js'; +export { Column } from './models/metamodels/pure/packageableElements/store/relational/model/Column.js'; +export { Schema } from './models/metamodels/pure/packageableElements/store/relational/model/Schema.js'; +export { View } from './models/metamodels/pure/packageableElements/store/relational/model/View.js'; +export { Join } from './models/metamodels/pure/packageableElements/store/relational/model/Join.js'; export { ViewReference, ViewExplicitReference, -} from './models/metamodels/pure/packageableElements/store/relational/model/ViewReference'; +} from './models/metamodels/pure/packageableElements/store/relational/model/ViewReference.js'; export { TableReference, TableExplicitReference, -} from './models/metamodels/pure/packageableElements/store/relational/model/TableReference'; +} from './models/metamodels/pure/packageableElements/store/relational/model/TableReference.js'; export { ColumnReference, ColumnExplicitReference, -} from './models/metamodels/pure/packageableElements/store/relational/model/ColumnReference'; -export { type Mapper } from './models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper'; -export { PostProcessor } from './models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor'; -export { Milestoning } from './models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning'; -export * from './models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType'; -export * from './models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -export * from './models/metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement'; +} from './models/metamodels/pure/packageableElements/store/relational/model/ColumnReference.js'; +export { type Mapper } from './models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper.js'; +export { PostProcessor } from './models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor.js'; +export { Milestoning } from './models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.js'; +export * from './models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType.js'; +export * from './models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +export * from './models/metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement.js'; export { RelationalInputData, RelationalInputType, -} from './models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData'; -export { RelationalPropertyMapping } from './models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -export { RelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation'; -export { RootRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -export { EmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -export { OtherwiseEmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; +} from './models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.js'; +export { RelationalPropertyMapping } from './models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +export { RelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.js'; +export { RootRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +export { EmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +export { OtherwiseEmbeddedRelationalInstanceSetImplementation } from './models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; export { DatabaseConnection, DatabaseType, RelationalDatabaseConnection, -} from './models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection'; -export * from './models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy'; -export * from './models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification'; +} from './models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; +export * from './models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js'; +export * from './models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.js'; // protocols -export * from './models/protocols/pure/StoreRelational_PureProtocolProcessorPlugin_Extension'; -export * from './models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_TablePtr'; -export { V1_transformTableToTablePointer } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_DatabaseTransformer'; +export * from './models/protocols/pure/StoreRelational_PureProtocolProcessorPlugin_Extension.js'; +export * from './models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_TablePtr.js'; +export { V1_transformTableToTablePointer } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_DatabaseTransformer.js'; export { V1_transformMapper, V1_transformRelation, -} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_PostProcessorTransformer'; -export { V1_getRelation } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper'; -export { V1_tablePtrModelSchema } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper'; -export { type V1_Mapper } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_Mapper'; -export { V1_PostProcessor } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor'; -export { V1_DatasourceSpecification } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification'; -export { V1_AuthenticationStrategy } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy'; -export { V1_Milestoning } from './models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning'; -export { V1_buildMapper } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_PostProcessorBuilderHelper'; +} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_PostProcessorTransformer.js'; +export { V1_getRelation } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js'; +export { V1_tablePtrModelSchema } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js'; +export { type V1_Mapper } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.js'; +export { V1_PostProcessor } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor.js'; +export { V1_DatasourceSpecification } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification.js'; +export { V1_AuthenticationStrategy } from './models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js'; +export { V1_Milestoning } from './models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning.js'; +export { V1_buildMapper } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_PostProcessorBuilderHelper.js'; export { V1_serializeMapper, V1_deserializeMapper, -} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_PostProcessorSerializationHelper'; -export * from './graphManager/StoreRelational_PureGraphManagerPlugin_Extension'; +} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_PostProcessorSerializationHelper.js'; +export * from './graphManager/StoreRelational_PureGraphManagerPlugin_Extension.js'; diff --git a/packages/legend-graph/src/__tests__/ExecutionPlanRountrip.test.ts b/packages/legend-graph/src/__tests__/ExecutionPlanRountrip.test.ts index 2a4b858c7be..110fa3ccd23 100644 --- a/packages/legend-graph/src/__tests__/ExecutionPlanRountrip.test.ts +++ b/packages/legend-graph/src/__tests__/ExecutionPlanRountrip.test.ts @@ -20,8 +20,8 @@ import { unitTest } from '@finos/legend-shared'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../GraphManagerTestUtils'; -import { TEST_DATA__simpleRelationalPlan } from './roundtripTestData/executionPlan/TEST_DATA__SimpleRelationalPlan'; +} from '../GraphManagerTestUtils.js'; +import { TEST_DATA__simpleRelationalPlan } from './roundtripTestData/executionPlan/TEST_DATA__SimpleRelationalPlan.js'; type RoundtripTestCase = [ string, diff --git a/packages/legend-graph/src/__tests__/ImportResolutionRoundtrip.test.ts b/packages/legend-graph/src/__tests__/ImportResolutionRoundtrip.test.ts index dbe7b5e7fc9..9d6d3a0ecf8 100644 --- a/packages/legend-graph/src/__tests__/ImportResolutionRoundtrip.test.ts +++ b/packages/legend-graph/src/__tests__/ImportResolutionRoundtrip.test.ts @@ -20,7 +20,7 @@ import { TEST_DATA__AutoImportsWithSystemProfiles, TEST_DATA__simpleDebuggingCase, TEST_DATA__AutoImportsWithAny, -} from './roundtripTestData/TEST_DATA__GenericRoundtrip'; +} from './roundtripTestData/TEST_DATA__GenericRoundtrip.js'; import TEST_DATA__m2mGraphEntities from './buildGraph/TEST_DATA__M2MGraphEntities.json'; import { TEST_DATA__ClassRoundtrip, @@ -29,15 +29,15 @@ import { TEST_DATA__FunctionRoundtrip, TEST_DATA__MeasureRoundtrip, TEST_DATA__ClassWithComplexConstraint, -} from './roundtripTestData/TEST_DATA__DomainRoundtrip'; +} from './roundtripTestData/TEST_DATA__DomainRoundtrip.js'; import { testConnectionRoundtrip, testModelChainConnectionRoundtrip, -} from './roundtripTestData/TEST_DATA__ConnectionRoundtrip'; +} from './roundtripTestData/TEST_DATA__ConnectionRoundtrip.js'; import { TEST_DATA__FileGenerationRoundtrip, TEST_DATA__FileGenerationWithPackageSameAsSystemElement, -} from './roundtripTestData/TEST_DATA__FileGenerationRoundtrip'; +} from './roundtripTestData/TEST_DATA__FileGenerationRoundtrip.js'; import { TEST_DATA__FlatDataRoundtrip, TEST_DATA__FlatDataMappingRoundtrip, @@ -45,8 +45,8 @@ import { TEST_DATA__FlatDataInputDataRoundtrip, TEST_DATA__FlatDataRoundtrip2, TEST_DATA__EmbeddedFlatDataMappingRoundtrip, -} from './roundtripTestData/TEST_DATA__FlatDataRoundtrip'; -import { TEST_DATA__GenerationSpecificationRoundtrip } from './roundtripTestData/TEST_DATA__GenerationSpecification'; +} from './roundtripTestData/TEST_DATA__FlatDataRoundtrip.js'; +import { TEST_DATA__GenerationSpecificationRoundtrip } from './roundtripTestData/TEST_DATA__GenerationSpecification.js'; import { TEST_DATA__DatabaseRoundtrip, TEST_DATA__RelationalDatabaseConnectionRoundtrip, @@ -55,17 +55,17 @@ import { TEST_DATA__multiLevelEmbeddedRelationalRoundtrip, TEST_DATA__RelationalAssociationMapping, TEST_DATA__XStoreAssociationMapping, -} from './roundtripTestData/TEST_DATA__RelationalRoundtrip'; -import { TEST_DATA__ServiceRoundtrip } from './roundtripTestData/TEST_DATA__ServiceRoundtrip'; +} from './roundtripTestData/TEST_DATA__RelationalRoundtrip.js'; +import { TEST_DATA__ServiceRoundtrip } from './roundtripTestData/TEST_DATA__ServiceRoundtrip.js'; import { TEST_DATA__AggregationAwareMappingRoundtrip, TEST_DATA__Relational_LocalPropertyMappingRoundtrip, TEST_DATA__MappingRoundtrip, TEST_DATA__LocalPropertyMapping, -} from './roundtripTestData/TEST_DATA__MappingRoundtrip'; -import { TEST_DATA__RuntimeRoundtrip } from './roundtripTestData/TEST_DATA__RuntimeRoundtrip'; -import { TEST__checkBuildingElementsRoundtrip } from '../GraphManagerTestUtils'; -import { TEST_DATA__DataRoundtrip } from './roundtripTestData/TEST_DATA__DataRoundtrip'; +} from './roundtripTestData/TEST_DATA__MappingRoundtrip.js'; +import { TEST_DATA__RuntimeRoundtrip } from './roundtripTestData/TEST_DATA__RuntimeRoundtrip.js'; +import { TEST__checkBuildingElementsRoundtrip } from '../GraphManagerTestUtils.js'; +import { TEST_DATA__DataRoundtrip } from './roundtripTestData/TEST_DATA__DataRoundtrip.js'; describe(unitTest('M2M graph roundtrip'), () => { test.each([ diff --git a/packages/legend-graph/src/__tests__/Inference.test.ts b/packages/legend-graph/src/__tests__/Inference.test.ts index 8f445cb2537..ecb5df2b557 100644 --- a/packages/legend-graph/src/__tests__/Inference.test.ts +++ b/packages/legend-graph/src/__tests__/Inference.test.ts @@ -21,14 +21,14 @@ import { TEST_DATA__ImportResolutionMultipleMatchesFound, TEST_DATA__ReferenceWithoutSection, TEST_DATA__ReferenceModification, -} from './TEST_DATA__Inference'; +} from './TEST_DATA__Inference.js'; import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities, TEST__excludeSectionIndex, TEST__getTestGraphManagerState, -} from '../GraphManagerTestUtils'; -import { getTag } from '../helpers/DomainHelper'; +} from '../GraphManagerTestUtils.js'; +import { getTag } from '../helpers/DomainHelper.js'; test(unitTest('Infer default mapping element ID'), async () => { const graphManagerState = TEST__getTestGraphManagerState(); diff --git a/packages/legend-graph/src/__tests__/MetaModelUtils.test.ts b/packages/legend-graph/src/__tests__/MetaModelUtils.test.ts index 03bd6f330c1..11f672f9b6b 100644 --- a/packages/legend-graph/src/__tests__/MetaModelUtils.test.ts +++ b/packages/legend-graph/src/__tests__/MetaModelUtils.test.ts @@ -24,26 +24,26 @@ import { isValidPath, isValidPathIdentifier, resolvePackagePathAndElementName, -} from '../MetaModelUtils'; +} from '../MetaModelUtils.js'; import { losslessParse, losslessStringify, unitTest, } from '@finos/legend-shared'; -import { MILESTONING_STEREOTYPE } from '../MetaModelConst'; +import { MILESTONING_STEREOTYPE } from '../MetaModelConst.js'; import { ObjectInputData, ObjectInputType, -} from '../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData'; -import { PackageableElementExplicitReference } from '../models/metamodels/pure/packageableElements/PackageableElementReference'; +} from '../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.js'; +import { PackageableElementExplicitReference } from '../models/metamodels/pure/packageableElements/PackageableElementReference.js'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../GraphManagerTestUtils'; -import { TEST_DATA__MilestonedClassRoundtrip } from './roundtripTestData/TEST_DATA__DomainRoundtrip'; +} from '../GraphManagerTestUtils.js'; +import { TEST_DATA__MilestonedClassRoundtrip } from './roundtripTestData/TEST_DATA__DomainRoundtrip.js'; import type { Entity } from '@finos/legend-model-storage'; -import { getMilestoneTemporalStereotype } from '../helpers/DomainHelper'; -import { stub_Class } from '../graphManager/action/creation/DomainModelCreatorHelper'; +import { getMilestoneTemporalStereotype } from '../helpers/DomainHelper.js'; +import { stub_Class } from '../graphManager/action/creation/DomainModelCreatorHelper.js'; test( unitTest( diff --git a/packages/legend-graph/src/__tests__/PackageableElementReference.test.ts b/packages/legend-graph/src/__tests__/PackageableElementReference.test.ts index 20990ef490f..c3648b76114 100644 --- a/packages/legend-graph/src/__tests__/PackageableElementReference.test.ts +++ b/packages/legend-graph/src/__tests__/PackageableElementReference.test.ts @@ -16,16 +16,16 @@ import { test, expect } from '@jest/globals'; import { unitTest } from '@finos/legend-shared'; -import { addElementToPackage } from '../helpers/DomainHelper'; -import { Class } from '../models/metamodels/pure/packageableElements/domain/Class'; -import { Package } from '../models/metamodels/pure/packageableElements/domain/Package'; -import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType'; +import { addElementToPackage } from '../helpers/DomainHelper.js'; +import { Class } from '../models/metamodels/pure/packageableElements/domain/Class.js'; +import { Package } from '../models/metamodels/pure/packageableElements/domain/Package.js'; +import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType.js'; import { PackageableElementExplicitReference, PackageableElementImplicitReference, -} from '../models/metamodels/pure/packageableElements/PackageableElementReference'; -import { ImportAwareCodeSection } from '../models/metamodels/pure/packageableElements/section/Section'; -import { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex'; +} from '../models/metamodels/pure/packageableElements/PackageableElementReference.js'; +import { ImportAwareCodeSection } from '../models/metamodels/pure/packageableElements/section/Section.js'; +import { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex.js'; test( unitTest( diff --git a/packages/legend-graph/src/__tests__/buildGraph/DSLExternalFormat_Roundtrip.test.ts b/packages/legend-graph/src/__tests__/buildGraph/DSLExternalFormat_Roundtrip.test.ts index 014b041205c..1d9aa6ce378 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/DSLExternalFormat_Roundtrip.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/DSLExternalFormat_Roundtrip.test.ts @@ -17,12 +17,12 @@ import { test } from '@jest/globals'; import type { Entity } from '@finos/legend-model-storage'; import { unitTest } from '@finos/legend-shared'; -import { roundtripTestData } from './TEST_DATA__DSLExternalFormat_Roundtrip'; +import { roundtripTestData } from './TEST_DATA__DSLExternalFormat_Roundtrip.js'; import { TEST__checkBuildingElementsRoundtrip, TEST__GraphPluginManager, -} from '../../GraphManagerTestUtils'; -import { DSLExternalFormat_GraphPreset } from '../../graph/DSLExternalFormat_Extension'; +} from '../../GraphManagerTestUtils.js'; +import { DSLExternalFormat_GraphPreset } from '../../graph/DSLExternalFormat_Extension.js'; const pluginManager = new TEST__GraphPluginManager(); pluginManager.usePresets([new DSLExternalFormat_GraphPreset()]).install(); diff --git a/packages/legend-graph/src/__tests__/buildGraph/Dependency.test.ts b/packages/legend-graph/src/__tests__/buildGraph/Dependency.test.ts index f077ce7c0e2..871fec71ab5 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/Dependency.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/Dependency.test.ts @@ -16,8 +16,8 @@ import { test, expect } from '@jest/globals'; import { type TEMPORARRY__JestMatcher, unitTest } from '@finos/legend-shared'; -import { TEST__getTestGraphManagerState } from '../../GraphManagerTestUtils'; -import { DependencyManager } from '../../graph/DependencyManager'; +import { TEST__getTestGraphManagerState } from '../../GraphManagerTestUtils.js'; +import { DependencyManager } from '../../graph/DependencyManager.js'; import type { Entity } from '@finos/legend-model-storage'; const entities = [ diff --git a/packages/legend-graph/src/__tests__/buildGraph/Generation.test.ts b/packages/legend-graph/src/__tests__/buildGraph/Generation.test.ts index cfa4ef93481..4dcb778741d 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/Generation.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/Generation.test.ts @@ -24,14 +24,14 @@ import { TEST_DATA__simpleDebuggingCase, TEST_DATA__AutoImportsWithAny, TEST_DATA__AutoImportsWithSystemProfiles, -} from '../roundtripTestData/TEST_DATA__GenericRoundtrip'; +} from '../roundtripTestData/TEST_DATA__GenericRoundtrip.js'; import TEST_DATA__m2mGraphEntities from './TEST_DATA__M2MGraphEntities.json'; -import { TEST_DATA__SimpleGraph } from './TEST_DATA__Core'; +import { TEST_DATA__SimpleGraph } from './TEST_DATA__Core.js'; import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../GraphManagerTestUtils'; +} from '../../GraphManagerTestUtils.js'; const PARENT_ELEMENT_PATH = 'model::myFileGeneration'; diff --git a/packages/legend-graph/src/__tests__/buildGraph/GraphBuildFailure.test.ts b/packages/legend-graph/src/__tests__/buildGraph/GraphBuildFailure.test.ts index 933b0694751..d447962f9c5 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/GraphBuildFailure.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/GraphBuildFailure.test.ts @@ -30,14 +30,14 @@ import { TEST_DATA__DuplicateClassProperties, TEST_DATA__DuplicateAssociationProperties, TEST_DATA__DuplicatedElement, -} from './TEST_DATA__GraphBuildFailure'; +} from './TEST_DATA__GraphBuildFailure.js'; import { unitTest } from '@finos/legend-shared'; import type { Entity } from '@finos/legend-model-storage'; -import type { GraphManagerState } from '../../GraphManagerState'; +import type { GraphManagerState } from '../../GraphManagerState.js'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../GraphManagerTestUtils'; +} from '../../GraphManagerTestUtils.js'; let graphManagerState: GraphManagerState; diff --git a/packages/legend-graph/src/__tests__/buildGraph/GraphBuildSuccess.test.ts b/packages/legend-graph/src/__tests__/buildGraph/GraphBuildSuccess.test.ts index 9e60c4d4441..2b3c17bc1c2 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/GraphBuildSuccess.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/GraphBuildSuccess.test.ts @@ -21,12 +21,12 @@ import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../GraphManagerTestUtils'; -import { PRIMITIVE_TYPE } from '../../MetaModelConst'; -import type { OperationSetImplementation } from '../../models/metamodels/pure/packageableElements/mapping/OperationSetImplementation'; -import type { PureInstanceSetImplementation } from '../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation'; -import { fromElementPathToMappingElementId } from '../../MetaModelUtils'; -import { Enum } from '../../models/metamodels/pure/packageableElements/domain/Enum'; +} from '../../GraphManagerTestUtils.js'; +import { PRIMITIVE_TYPE } from '../../MetaModelConst.js'; +import type { OperationSetImplementation } from '../../models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; +import type { PureInstanceSetImplementation } from '../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js'; +import { fromElementPathToMappingElementId } from '../../MetaModelUtils.js'; +import { Enum } from '../../models/metamodels/pure/packageableElements/domain/Enum.js'; const graphManagerState = TEST__getTestGraphManagerState(); diff --git a/packages/legend-graph/src/__tests__/buildGraph/RawLambaPathResolver.test.ts b/packages/legend-graph/src/__tests__/buildGraph/RawLambaPathResolver.test.ts index 05690c34abf..416f41538af 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/RawLambaPathResolver.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/RawLambaPathResolver.test.ts @@ -17,7 +17,7 @@ import { test } from '@jest/globals'; import type { Entity } from '@finos/legend-model-storage'; import { unitTest } from '@finos/legend-shared'; -import { TEST__checkBuildingResolvedElements } from '../../GraphManagerTestUtils'; +import { TEST__checkBuildingResolvedElements } from '../../GraphManagerTestUtils.js'; const getClassEntity = (enumPath: string): Entity => ({ classifierPath: 'meta::pure::metamodel::type::Class', diff --git a/packages/legend-graph/src/__tests__/buildGraph/generation/FileGenerationBuildSuccess.test.ts b/packages/legend-graph/src/__tests__/buildGraph/generation/FileGenerationBuildSuccess.test.ts index 14e8b2441fb..c61759eda70 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/generation/FileGenerationBuildSuccess.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/generation/FileGenerationBuildSuccess.test.ts @@ -21,9 +21,9 @@ import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../../GraphManagerTestUtils'; -import { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference'; -import type { GraphManagerState } from '../../../GraphManagerState'; +} from '../../../GraphManagerTestUtils.js'; +import { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { GraphManagerState } from '../../../GraphManagerState.js'; let graphManagerState: GraphManagerState; diff --git a/packages/legend-graph/src/__tests__/buildGraph/relational/EmbeddedRelational.test.ts b/packages/legend-graph/src/__tests__/buildGraph/relational/EmbeddedRelational.test.ts index d8e6b352627..f9ea252338e 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/relational/EmbeddedRelational.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/relational/EmbeddedRelational.test.ts @@ -15,7 +15,7 @@ */ import { test, expect, beforeEach } from '@jest/globals'; -import { TEST_DATA__embeddedRelationalTestData } from './TEST_DATA__RelationalEntities'; +import { TEST_DATA__embeddedRelationalTestData } from './TEST_DATA__RelationalEntities.js'; import { guaranteeNonNullable, guaranteeType, @@ -25,15 +25,15 @@ import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../../GraphManagerTestUtils'; -import type { GraphManagerState } from '../../../GraphManagerState'; +} from '../../../GraphManagerTestUtils.js'; +import type { GraphManagerState } from '../../../GraphManagerState.js'; import { findPropertyMapping, getOwnClassMappingsByClass, -} from '../../../helpers/DSLMapping_Helper'; -import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import { getClassProperty } from '../../../helpers/DomainHelper'; +} from '../../../helpers/DSLMapping_Helper.js'; +import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import { getClassProperty } from '../../../helpers/DomainHelper.js'; let graphManagerState: GraphManagerState; diff --git a/packages/legend-graph/src/__tests__/buildGraph/relational/InlineEmbeddedRelational.test.ts b/packages/legend-graph/src/__tests__/buildGraph/relational/InlineEmbeddedRelational.test.ts index 656ad7ad30e..cda110bb832 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/relational/InlineEmbeddedRelational.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/relational/InlineEmbeddedRelational.test.ts @@ -15,7 +15,7 @@ */ import { test, expect, beforeEach } from '@jest/globals'; -import { TEST_DATA__inlineEmbeddedRelationalTestData } from './TEST_DATA__RelationalEntities'; +import { TEST_DATA__inlineEmbeddedRelationalTestData } from './TEST_DATA__RelationalEntities.js'; import { guaranteeNonNullable, guaranteeType, @@ -25,10 +25,10 @@ import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../../GraphManagerTestUtils'; -import type { GraphManagerState } from '../../../GraphManagerState'; -import { getOwnClassMappingsByClass } from '../../../helpers/DSLMapping_Helper'; -import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; +} from '../../../GraphManagerTestUtils.js'; +import type { GraphManagerState } from '../../../GraphManagerState.js'; +import { getOwnClassMappingsByClass } from '../../../helpers/DSLMapping_Helper.js'; +import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; let graphManagerState: GraphManagerState; diff --git a/packages/legend-graph/src/__tests__/buildGraph/relational/OtherwiseEmbeddedRelational.test.ts b/packages/legend-graph/src/__tests__/buildGraph/relational/OtherwiseEmbeddedRelational.test.ts index dafac7b5dfb..307b36b4fcd 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/relational/OtherwiseEmbeddedRelational.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/relational/OtherwiseEmbeddedRelational.test.ts @@ -15,25 +15,25 @@ */ import { test, expect, beforeEach } from '@jest/globals'; -import { TEST_DATA__otherwiseEmbeddedRelationalTestData } from './TEST_DATA__RelationalEntities'; +import { TEST_DATA__otherwiseEmbeddedRelationalTestData } from './TEST_DATA__RelationalEntities.js'; import { guaranteeNonNullable, guaranteeType, unitTest, } from '@finos/legend-shared'; import type { Entity } from '@finos/legend-model-storage'; -import type { GraphManagerState } from '../../../GraphManagerState'; +import type { GraphManagerState } from '../../../GraphManagerState.js'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../../GraphManagerTestUtils'; +} from '../../../GraphManagerTestUtils.js'; import { findPropertyMapping, getOwnClassMappingsByClass, -} from '../../../helpers/DSLMapping_Helper'; -import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; -import { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; +} from '../../../helpers/DSLMapping_Helper.js'; +import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; +import { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; let graphManagerState: GraphManagerState; diff --git a/packages/legend-graph/src/__tests__/buildGraph/relational/PropertyThroughAssociationGraphSuccess.test.ts b/packages/legend-graph/src/__tests__/buildGraph/relational/PropertyThroughAssociationGraphSuccess.test.ts index a6f551d9fc7..18ba67b5b38 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/relational/PropertyThroughAssociationGraphSuccess.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/relational/PropertyThroughAssociationGraphSuccess.test.ts @@ -15,29 +15,29 @@ */ import { test, expect, beforeEach } from '@jest/globals'; -import { TEST_DATA__targetSetImplementationThroughAssociation } from './TEST_DATA__RelationalEntities'; +import { TEST_DATA__targetSetImplementationThroughAssociation } from './TEST_DATA__RelationalEntities.js'; import { unitTest, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared'; import type { Entity } from '@finos/legend-model-storage'; -import type { GraphManagerState } from '../../../GraphManagerState'; +import type { GraphManagerState } from '../../../GraphManagerState.js'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../../GraphManagerTestUtils'; +} from '../../../GraphManagerTestUtils.js'; import { DynaFunction, TableAliasColumn, -} from '../../../models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; import { findPropertyMapping, getOwnClassMappingsByClass, -} from '../../../helpers/DSLMapping_Helper'; -import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -import { getTable } from '../../../helpers/StoreRelational_Helper'; +} from '../../../helpers/DSLMapping_Helper.js'; +import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +import { getTable } from '../../../helpers/StoreRelational_Helper.js'; let graphManagerState: GraphManagerState; diff --git a/packages/legend-graph/src/__tests__/buildGraph/relational/SimpleRelationalGraphBuildSuccess.test.ts b/packages/legend-graph/src/__tests__/buildGraph/relational/SimpleRelationalGraphBuildSuccess.test.ts index 17b0df80208..48f61678244 100644 --- a/packages/legend-graph/src/__tests__/buildGraph/relational/SimpleRelationalGraphBuildSuccess.test.ts +++ b/packages/legend-graph/src/__tests__/buildGraph/relational/SimpleRelationalGraphBuildSuccess.test.ts @@ -15,32 +15,35 @@ */ import { test, expect, beforeEach } from '@jest/globals'; -import { TEST_DATA__relationalCompleteGraphEntities } from './TEST_DATA__RelationalEntities'; +import { TEST_DATA__relationalCompleteGraphEntities } from './TEST_DATA__RelationalEntities.js'; import { unitTest, guaranteeType, guaranteeNonNullable, } from '@finos/legend-shared'; import type { Entity } from '@finos/legend-model-storage'; -import type { GraphManagerState } from '../../../GraphManagerState'; +import type { GraphManagerState } from '../../../GraphManagerState.js'; import { TEST__buildGraphWithEntities, TEST__checkBuildingElementsRoundtrip, TEST__getTestGraphManagerState, TEST__GraphPluginManager, -} from '../../../GraphManagerTestUtils'; -import { Database } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Database'; -import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; +} from '../../../GraphManagerTestUtils.js'; +import { Database } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +import { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; import { findPropertyMapping, getOwnClassMappingsByClass, -} from '../../../helpers/DSLMapping_Helper'; -import { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -import { PRIMITIVE_TYPE } from '../../../MetaModelConst'; -import { TEST_DATA__SemiStructuredRelationalTypeRoundtrip } from './TEST_DATA__SemiStructuredRelationalTypeRoundtrip'; -import { DSLExternalFormat_GraphPreset } from '../../../graph/DSLExternalFormat_Extension'; -import { getSchema, getTable } from '../../../helpers/StoreRelational_Helper'; +} from '../../../helpers/DSLMapping_Helper.js'; +import { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +import { PRIMITIVE_TYPE } from '../../../MetaModelConst.js'; +import { TEST_DATA__SemiStructuredRelationalTypeRoundtrip } from './TEST_DATA__SemiStructuredRelationalTypeRoundtrip.js'; +import { DSLExternalFormat_GraphPreset } from '../../../graph/DSLExternalFormat_Extension.js'; +import { + getSchema, + getTable, +} from '../../../helpers/StoreRelational_Helper.js'; let graphManagerState: GraphManagerState; diff --git a/packages/legend-graph/src/graph/BasicModel.ts b/packages/legend-graph/src/graph/BasicModel.ts index 998aa7dc985..003089c9678 100644 --- a/packages/legend-graph/src/graph/BasicModel.ts +++ b/packages/legend-graph/src/graph/BasicModel.ts @@ -25,46 +25,46 @@ import { guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared'; -import type { ROOT_PACKAGE_NAME } from '../MetaModelConst'; -import { Package } from '../models/metamodels/pure/packageableElements/domain/Package'; -import { Type } from '../models/metamodels/pure/packageableElements/domain/Type'; -import { Association } from '../models/metamodels/pure/packageableElements/domain/Association'; -import { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping'; -import { Class } from '../models/metamodels/pure/packageableElements/domain/Class'; -import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration'; -import { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile'; -import { Service } from '../models/metamodels/pure/packageableElements/service/Service'; -import { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import { Store } from '../models/metamodels/pure/packageableElements/store/Store'; -import { FlatData } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import { PackageableRuntime } from '../models/metamodels/pure/packageableElements/runtime/PackageableRuntime'; -import { PackageableConnection } from '../models/metamodels/pure/packageableElements/connection/PackageableConnection'; -import { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import { GenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; +import type { ROOT_PACKAGE_NAME } from '../MetaModelConst.js'; +import { Package } from '../models/metamodels/pure/packageableElements/domain/Package.js'; +import { Type } from '../models/metamodels/pure/packageableElements/domain/Type.js'; +import { Association } from '../models/metamodels/pure/packageableElements/domain/Association.js'; +import { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import { Class } from '../models/metamodels/pure/packageableElements/domain/Class.js'; +import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile.js'; +import { Service } from '../models/metamodels/pure/packageableElements/service/Service.js'; +import { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import { Store } from '../models/metamodels/pure/packageableElements/store/Store.js'; +import { FlatData } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import { PackageableRuntime } from '../models/metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +import { PackageableConnection } from '../models/metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import { GenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; import { Unit, Measure, -} from '../models/metamodels/pure/packageableElements/domain/Measure'; -import { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database'; -import { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex'; -import type { Section } from '../models/metamodels/pure/packageableElements/section/Section'; -import { PureGraphExtension } from './PureGraphExtension'; -import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType'; -import { DataType } from '../models/metamodels/pure/packageableElements/domain/DataType'; +} from '../models/metamodels/pure/packageableElements/domain/Measure.js'; +import { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +import { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex.js'; +import type { Section } from '../models/metamodels/pure/packageableElements/section/Section.js'; +import { PureGraphExtension } from './PureGraphExtension.js'; +import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType.js'; +import { DataType } from '../models/metamodels/pure/packageableElements/domain/DataType.js'; import { isValidFullPath, isValidPath, resolvePackagePathAndElementName, -} from '../MetaModelUtils'; +} from '../MetaModelUtils.js'; import { addElementToPackage, deleteElementFromPackage, getOrCreateGraphPackage, getOrCreatePackage, -} from '../helpers/DomainHelper'; -import { DataElement } from '../models/metamodels/pure/packageableElements/data/DataElement'; -import type { Testable } from '../models/metamodels/pure/test/Testable'; +} from '../helpers/DomainHelper.js'; +import { DataElement } from '../models/metamodels/pure/packageableElements/data/DataElement.js'; +import type { Testable } from '../models/metamodels/pure/test/Testable.js'; const FORBIDDEN_EXTENSION_ELEMENT_CLASS = new Set([ PackageableElement, diff --git a/packages/legend-graph/src/graph/DSLExternalFormat_Extension.ts b/packages/legend-graph/src/graph/DSLExternalFormat_Extension.ts index 2ae1573c442..6afb80b20b3 100644 --- a/packages/legend-graph/src/graph/DSLExternalFormat_Extension.ts +++ b/packages/legend-graph/src/graph/DSLExternalFormat_Extension.ts @@ -16,9 +16,9 @@ import packageJson from '../../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { DSLExternalFormat_PureGraphManagerPlugin } from '../graphManager/DSLExternalFormat_PureGraphManagerPlugin'; -import { DSLExternalFormat_PureProtocolProcessorPlugin } from '../models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin'; -import { DSLExternalFormat_PureGraphPlugin } from './DSLExternalFormat_PureGraphPlugin'; +import { DSLExternalFormat_PureGraphManagerPlugin } from '../graphManager/DSLExternalFormat_PureGraphManagerPlugin.js'; +import { DSLExternalFormat_PureProtocolProcessorPlugin } from '../models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.js'; +import { DSLExternalFormat_PureGraphPlugin } from './DSLExternalFormat_PureGraphPlugin.js'; export class DSLExternalFormat_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-graph/src/graph/DSLExternalFormat_PureGraphPlugin.ts b/packages/legend-graph/src/graph/DSLExternalFormat_PureGraphPlugin.ts index f9d7abbdd9d..4a75ad432ac 100644 --- a/packages/legend-graph/src/graph/DSLExternalFormat_PureGraphPlugin.ts +++ b/packages/legend-graph/src/graph/DSLExternalFormat_PureGraphPlugin.ts @@ -16,10 +16,10 @@ import packageJson from '../../package.json'; import type { Clazz } from '@finos/legend-shared'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import { PureGraphPlugin } from './PureGraphPlugin'; -import { Binding } from '../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding'; -import { SchemaSet } from '../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import { PureGraphPlugin } from './PureGraphPlugin.js'; +import { Binding } from '../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js'; +import { SchemaSet } from '../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.js'; export class DSLExternalFormat_PureGraphPlugin extends PureGraphPlugin { constructor() { diff --git a/packages/legend-graph/src/graph/DependencyManager.ts b/packages/legend-graph/src/graph/DependencyManager.ts index b9b7da7813e..77ed92ec4a2 100644 --- a/packages/legend-graph/src/graph/DependencyManager.ts +++ b/packages/legend-graph/src/graph/DependencyManager.ts @@ -14,29 +14,29 @@ * limitations under the License. */ -import { ROOT_PACKAGE_NAME } from '../MetaModelConst'; +import { ROOT_PACKAGE_NAME } from '../MetaModelConst.js'; import { type Clazz, guaranteeNonNullable } from '@finos/legend-shared'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import type { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration'; -import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type'; -import type { Class } from '../models/metamodels/pure/packageableElements/domain/Class'; -import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping'; -import type { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile'; -import { Package } from '../models/metamodels/pure/packageableElements/domain/Package'; -import type { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { Store } from '../models/metamodels/pure/packageableElements/store/Store'; -import type { Association } from '../models/metamodels/pure/packageableElements/domain/Association'; -import type { Service } from '../models/metamodels/pure/packageableElements/service/Service'; -import { BasicModel } from '../graph/BasicModel'; -import type { PackageableRuntime } from '../models/metamodels/pure/packageableElements/runtime/PackageableRuntime'; -import type { PackageableConnection } from '../models/metamodels/pure/packageableElements/connection/PackageableConnection'; -import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import type { GenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; -import type { Measure } from '../models/metamodels/pure/packageableElements/domain/Measure'; -import type { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type.js'; +import type { Class } from '../models/metamodels/pure/packageableElements/domain/Class.js'; +import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile.js'; +import { Package } from '../models/metamodels/pure/packageableElements/domain/Package.js'; +import type { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { Store } from '../models/metamodels/pure/packageableElements/store/Store.js'; +import type { Association } from '../models/metamodels/pure/packageableElements/domain/Association.js'; +import type { Service } from '../models/metamodels/pure/packageableElements/service/Service.js'; +import { BasicModel } from '../graph/BasicModel.js'; +import type { PackageableRuntime } from '../models/metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +import type { PackageableConnection } from '../models/metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import type { GenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; +import type { Measure } from '../models/metamodels/pure/packageableElements/domain/Measure.js'; +import type { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex.js'; import type { Entity } from '@finos/legend-model-storage'; -import type { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database'; -import type { DataElement } from '../models/metamodels/pure/packageableElements/data/DataElement'; +import type { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +import type { DataElement } from '../models/metamodels/pure/packageableElements/data/DataElement.js'; class DependencyModel extends BasicModel { constructor( diff --git a/packages/legend-graph/src/graph/PureGraphExtension.ts b/packages/legend-graph/src/graph/PureGraphExtension.ts index b4c8de23723..81518f7fc56 100644 --- a/packages/legend-graph/src/graph/PureGraphExtension.ts +++ b/packages/legend-graph/src/graph/PureGraphExtension.ts @@ -15,7 +15,7 @@ */ import type { Clazz } from '@finos/legend-shared'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; export class PureGraphExtension { private readonly _class: Clazz; diff --git a/packages/legend-graph/src/graph/PureGraphPlugin.ts b/packages/legend-graph/src/graph/PureGraphPlugin.ts index e6b37f4426b..81e1f7572d3 100644 --- a/packages/legend-graph/src/graph/PureGraphPlugin.ts +++ b/packages/legend-graph/src/graph/PureGraphPlugin.ts @@ -15,10 +15,10 @@ */ import { AbstractPlugin, type Clazz } from '@finos/legend-shared'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import type { PureModel } from './PureModel'; -import type { GraphPluginManager } from '../GraphPluginManager'; -import type { Testable } from '../models/metamodels/pure/test/Testable'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { PureModel } from './PureModel.js'; +import type { GraphPluginManager } from '../GraphPluginManager.js'; +import type { Testable } from '../models/metamodels/pure/test/Testable.js'; export type DeadReferencesCleaner = (graph: PureModel) => void; export type TestablesCollector = (graph: PureModel) => Testable[]; diff --git a/packages/legend-graph/src/graph/PureModel.ts b/packages/legend-graph/src/graph/PureModel.ts index db8199c2202..0e29e134b36 100644 --- a/packages/legend-graph/src/graph/PureModel.ts +++ b/packages/legend-graph/src/graph/PureModel.ts @@ -19,7 +19,7 @@ import { ROOT_PACKAGE_NAME, TYPICAL_MULTIPLICITY_TYPE, AUTO_IMPORTS, -} from '../MetaModelConst'; +} from '../MetaModelConst.js'; import { type Clazz, guaranteeNonNullable, @@ -27,37 +27,37 @@ import { returnUndefOnError, IllegalStateError, } from '@finos/legend-shared'; -import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType'; -import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration'; -import { Multiplicity } from '../models/metamodels/pure/packageableElements/domain/Multiplicity'; -import type { Association } from '../models/metamodels/pure/packageableElements/domain/Association'; -import { Package } from '../models/metamodels/pure/packageableElements/domain/Package'; -import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type'; -import { Class } from '../models/metamodels/pure/packageableElements/domain/Class'; -import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping'; -import type { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile'; -import type { Store } from '../models/metamodels/pure/packageableElements/store/Store'; -import { DependencyManager } from '../graph/DependencyManager'; -import { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { Service } from '../models/metamodels/pure/packageableElements/service/Service'; -import { BasicModel } from './BasicModel'; -import { FlatData } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database'; -import type { PackageableConnection } from '../models/metamodels/pure/packageableElements/connection/PackageableConnection'; -import type { PackageableRuntime } from '../models/metamodels/pure/packageableElements/runtime/PackageableRuntime'; -import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import { ModelStore } from '../models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore'; -import type { GenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; +import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType.js'; +import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import { Multiplicity } from '../models/metamodels/pure/packageableElements/domain/Multiplicity.js'; +import type { Association } from '../models/metamodels/pure/packageableElements/domain/Association.js'; +import { Package } from '../models/metamodels/pure/packageableElements/domain/Package.js'; +import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type.js'; +import { Class } from '../models/metamodels/pure/packageableElements/domain/Class.js'; +import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile.js'; +import type { Store } from '../models/metamodels/pure/packageableElements/store/Store.js'; +import { DependencyManager } from '../graph/DependencyManager.js'; +import { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { Service } from '../models/metamodels/pure/packageableElements/service/Service.js'; +import { BasicModel } from './BasicModel.js'; +import { FlatData } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +import type { PackageableConnection } from '../models/metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import type { PackageableRuntime } from '../models/metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import { ModelStore } from '../models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore.js'; +import type { GenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; import { Measure, Unit, -} from '../models/metamodels/pure/packageableElements/domain/Measure'; -import type { PureGraphPlugin } from './PureGraphPlugin'; -import { createPath } from '../MetaModelUtils'; -import type { DataElement } from '../models/metamodels/pure/packageableElements/data/DataElement'; -import type { Testable } from '../models/metamodels/pure/test/Testable'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import type { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex'; +} from '../models/metamodels/pure/packageableElements/domain/Measure.js'; +import type { PureGraphPlugin } from './PureGraphPlugin.js'; +import { createPath } from '../MetaModelUtils.js'; +import type { DataElement } from '../models/metamodels/pure/packageableElements/data/DataElement.js'; +import type { Testable } from '../models/metamodels/pure/test/Testable.js'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { SectionIndex } from '../models/metamodels/pure/packageableElements/section/SectionIndex.js'; /** * CoreModel holds meta models which are constant and basic building block of the graph. Since throughout the lifetime diff --git a/packages/legend-graph/src/graphManager/AbstractPureGraphManager.ts b/packages/legend-graph/src/graphManager/AbstractPureGraphManager.ts index 6bb78ebea99..8671ef0e686 100644 --- a/packages/legend-graph/src/graphManager/AbstractPureGraphManager.ts +++ b/packages/legend-graph/src/graphManager/AbstractPureGraphManager.ts @@ -17,54 +17,54 @@ import type { ExecutionResult, EXECUTION_SERIALIZATION_FORMAT, -} from './action/execution/ExecutionResult'; -import type { ServiceRegistrationResult } from './action/service/ServiceRegistrationResult'; -import type { Service } from '../models/metamodels/pure/packageableElements/service/Service'; +} from './action/execution/ExecutionResult.js'; +import type { ServiceRegistrationResult } from './action/service/ServiceRegistrationResult.js'; +import type { Service } from '../models/metamodels/pure/packageableElements/service/Service.js'; import type { ImportConfigurationDescription, ImportMode, -} from './action/generation/ImportConfigurationDescription'; -import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import type { GenerationOutput } from './action/generation/GenerationOutput'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import type { PureModel, CoreModel, SystemModel } from '../graph/PureModel'; -import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping'; -import type { Runtime } from '../models/metamodels/pure/packageableElements/runtime/Runtime'; -import type { DependencyManager } from '../graph/DependencyManager'; -import type { Class } from '../models/metamodels/pure/packageableElements/domain/Class'; -import type { RawLambda } from '../models/metamodels/pure/rawValueSpecification/RawLambda'; +} from './action/generation/ImportConfigurationDescription.js'; +import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import type { GenerationOutput } from './action/generation/GenerationOutput.js'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { PureModel, CoreModel, SystemModel } from '../graph/PureModel.js'; +import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { Runtime } from '../models/metamodels/pure/packageableElements/runtime/Runtime.js'; +import type { DependencyManager } from '../graph/DependencyManager.js'; +import type { Class } from '../models/metamodels/pure/packageableElements/domain/Class.js'; +import type { RawLambda } from '../models/metamodels/pure/rawValueSpecification/RawLambda.js'; import type { GenerationConfigurationDescription, GenerationMode, -} from './action/generation/GenerationConfigurationDescription'; -import type { ValueSpecification } from '../models/metamodels/pure/valueSpecification/ValueSpecification'; -import type { RawValueSpecification } from '../models/metamodels/pure/rawValueSpecification/RawValueSpecification'; -import type { ServiceExecutionMode } from './action/service/ServiceExecutionMode'; -import type { TEMPORARY__AbstractEngineConfig } from './action/TEMPORARY__AbstractEngineConfig'; -import type { DatabaseBuilderInput } from './action/generation/DatabaseBuilderInput'; -import type { RawRelationalOperationElement } from '../models/metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement'; +} from './action/generation/GenerationConfigurationDescription.js'; +import type { ValueSpecification } from '../models/metamodels/pure/valueSpecification/ValueSpecification.js'; +import type { RawValueSpecification } from '../models/metamodels/pure/rawValueSpecification/RawValueSpecification.js'; +import type { ServiceExecutionMode } from './action/service/ServiceExecutionMode.js'; +import type { TEMPORARY__AbstractEngineConfig } from './action/TEMPORARY__AbstractEngineConfig.js'; +import type { DatabaseBuilderInput } from './action/generation/DatabaseBuilderInput.js'; +import type { RawRelationalOperationElement } from '../models/metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement.js'; import type { ExecutionPlan, RawExecutionPlan, -} from '../models/metamodels/pure/executionPlan/ExecutionPlan'; -import type { ExecutionNode } from '../models/metamodels/pure/executionPlan/nodes/ExecutionNode'; +} from '../models/metamodels/pure/executionPlan/ExecutionPlan.js'; +import type { ExecutionNode } from '../models/metamodels/pure/executionPlan/nodes/ExecutionNode.js'; import type { ActionState, Log, ServerClientConfig, TracerService, } from '@finos/legend-shared'; -import type { LightQuery, Query } from './action/query/Query'; +import type { LightQuery, Query } from './action/query/Query.js'; import type { Entity } from '@finos/legend-model-storage'; -import type { GraphPluginManager } from '../GraphPluginManager'; -import type { QuerySearchSpecification } from './action/query/QuerySearchSpecification'; -import type { ExternalFormatDescription } from './action/externalFormat/ExternalFormatDescription'; -import type { ConfigurationProperty } from '../models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty'; -import type { GraphBuilderReport } from './GraphBuilderReport'; -import type { ModelGenerationConfiguration } from '../models/ModelGenerationConfiguration'; -import type { DEPRECATED__ServiceTestResult } from './action/service/DEPRECATED__ServiceTestResult'; -import type { RunTestsTestableInput } from '../models/metamodels/pure/test/result/RunTestsTestableInput'; -import type { TestResult } from '../models/metamodels/pure/test/result/TestResult'; +import type { GraphPluginManager } from '../GraphPluginManager.js'; +import type { QuerySearchSpecification } from './action/query/QuerySearchSpecification.js'; +import type { ExternalFormatDescription } from './action/externalFormat/ExternalFormatDescription.js'; +import type { ConfigurationProperty } from '../models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.js'; +import type { GraphBuilderReport } from './GraphBuilderReport.js'; +import type { ModelGenerationConfiguration } from '../models/ModelGenerationConfiguration.js'; +import type { DEPRECATED__ServiceTestResult } from './action/service/DEPRECATED__ServiceTestResult.js'; +import type { RunTestsTestableInput } from '../models/metamodels/pure/test/result/RunTestsTestableInput.js'; +import type { TestResult } from '../models/metamodels/pure/test/result/TestResult.js'; export interface TEMPORARY__EngineSetupConfig { env: string; diff --git a/packages/legend-graph/src/graphManager/CorePureGraphManagerPlugin.ts b/packages/legend-graph/src/graphManager/CorePureGraphManagerPlugin.ts index addb126fcc0..a818290dc48 100644 --- a/packages/legend-graph/src/graphManager/CorePureGraphManagerPlugin.ts +++ b/packages/legend-graph/src/graphManager/CorePureGraphManagerPlugin.ts @@ -15,8 +15,8 @@ */ import packageJson from '../../package.json'; -import { PureGraphManagerPlugin } from './PureGraphManagerPlugin'; -import { CORE_PURE_PATH } from '../MetaModelConst'; +import { PureGraphManagerPlugin } from './PureGraphManagerPlugin.js'; +import { CORE_PURE_PATH } from '../MetaModelConst.js'; export class CorePureGraphManagerPlugin extends PureGraphManagerPlugin { static NAME = packageJson.extensions.pureGraphManagerPlugin; diff --git a/packages/legend-graph/src/graphManager/DSLExternalFormat_GraphManagerHelper.ts b/packages/legend-graph/src/graphManager/DSLExternalFormat_GraphManagerHelper.ts index 74472dac353..1a2a9388d8c 100644 --- a/packages/legend-graph/src/graphManager/DSLExternalFormat_GraphManagerHelper.ts +++ b/packages/legend-graph/src/graphManager/DSLExternalFormat_GraphManagerHelper.ts @@ -15,10 +15,10 @@ */ import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared'; -import type { BasicModel } from '../graph/BasicModel'; -import type { PureModel } from '../graph/PureModel'; -import { SchemaSet } from '../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet'; -import { Binding } from '../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding'; +import type { BasicModel } from '../graph/BasicModel.js'; +import type { PureModel } from '../graph/PureModel.js'; +import { SchemaSet } from '../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.js'; +import { Binding } from '../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js'; export const getSchemaSet = (path: string, graph: PureModel): SchemaSet => graph.getExtensionElement(path, SchemaSet, `Can't find schema set '${path}'`); diff --git a/packages/legend-graph/src/graphManager/DSLExternalFormat_PureGraphManagerPlugin.ts b/packages/legend-graph/src/graphManager/DSLExternalFormat_PureGraphManagerPlugin.ts index 89ca8d08dd8..966c6ed3fe7 100644 --- a/packages/legend-graph/src/graphManager/DSLExternalFormat_PureGraphManagerPlugin.ts +++ b/packages/legend-graph/src/graphManager/DSLExternalFormat_PureGraphManagerPlugin.ts @@ -15,27 +15,27 @@ */ import packageJson from '../../package.json'; -import type { Connection } from '../DSLMapping_Exports'; -import { ExternalFormatConnection } from '../models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection'; -import { SchemaSet } from '../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet'; -import { Binding } from '../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import type { ObserverContext } from './action/changeDetection/CoreObserverHelper'; +import type { Connection } from '../DSLMapping_Exports.js'; +import { ExternalFormatConnection } from '../models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.js'; +import { SchemaSet } from '../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.js'; +import { Binding } from '../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { ObserverContext } from './action/changeDetection/CoreObserverHelper.js'; import { observe_Binding, observe_ExternalFormatConnection, observe_SchemaSet, -} from './action/changeDetection/DSLExternalFormat_ObserverHelper'; +} from './action/changeDetection/DSLExternalFormat_ObserverHelper.js'; import type { ConnectionObserver, DSLMapping_PureGraphManagerPlugin_Extension, PureGrammarConnectionLabeler, -} from './DSLMapping_PureGraphManagerPlugin_Extension'; +} from './DSLMapping_PureGraphManagerPlugin_Extension.js'; import { type PureGrammarElementLabeler, type ElementObserver, PureGraphManagerPlugin, -} from './PureGraphManagerPlugin'; +} from './PureGraphManagerPlugin.js'; export const PURE_GRAMMAR_EXTERNAL_FORMAT_PARSER_NAME = 'ExternalFormat'; export const PURE_GRAMMAR_BINDING_ELEMENT_TYPE_LABEL = 'Binding'; diff --git a/packages/legend-graph/src/graphManager/DSLGenerationSpecification_PureGraphManagerPlugin_Extension.ts b/packages/legend-graph/src/graphManager/DSLGenerationSpecification_PureGraphManagerPlugin_Extension.ts index 3173bf8336a..b8a6d837e5d 100644 --- a/packages/legend-graph/src/graphManager/DSLGenerationSpecification_PureGraphManagerPlugin_Extension.ts +++ b/packages/legend-graph/src/graphManager/DSLGenerationSpecification_PureGraphManagerPlugin_Extension.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { ModelGenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification'; -import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin'; -import type { PureModel } from '../graph/PureModel'; +import type { ModelGenerationSpecification } from '../models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification.js'; +import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin.js'; +import type { PureModel } from '../graph/PureModel.js'; export type ModelGenerationElementGetter = ( graph: PureModel, diff --git a/packages/legend-graph/src/graphManager/DSLMapping_PureGraphManagerPlugin_Extension.ts b/packages/legend-graph/src/graphManager/DSLMapping_PureGraphManagerPlugin_Extension.ts index db8f333793c..873f8b3fcc5 100644 --- a/packages/legend-graph/src/graphManager/DSLMapping_PureGraphManagerPlugin_Extension.ts +++ b/packages/legend-graph/src/graphManager/DSLMapping_PureGraphManagerPlugin_Extension.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import type { Connection } from '../models/metamodels/pure/packageableElements/connection/Connection'; -import type { InputData } from '../models/metamodels/pure/packageableElements/mapping/InputData'; -import type { PropertyMapping } from '../models/metamodels/pure/packageableElements/mapping/PropertyMapping'; -import type { SetImplementation } from '../models/metamodels/pure/packageableElements/mapping/SetImplementation'; -import type { ObserverContext } from './action/changeDetection/CoreObserverHelper'; -import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin'; +import type { Connection } from '../models/metamodels/pure/packageableElements/connection/Connection.js'; +import type { InputData } from '../models/metamodels/pure/packageableElements/mapping/InputData.js'; +import type { PropertyMapping } from '../models/metamodels/pure/packageableElements/mapping/PropertyMapping.js'; +import type { SetImplementation } from '../models/metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import type { ObserverContext } from './action/changeDetection/CoreObserverHelper.js'; +import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin.js'; export type PureGrammarConnectionLabeler = ( connection: Connection, diff --git a/packages/legend-graph/src/graphManager/EmbeddedData_PureGraphManagerPlugin_Extension.ts b/packages/legend-graph/src/graphManager/EmbeddedData_PureGraphManagerPlugin_Extension.ts index fda8a79d74c..5f51648829c 100644 --- a/packages/legend-graph/src/graphManager/EmbeddedData_PureGraphManagerPlugin_Extension.ts +++ b/packages/legend-graph/src/graphManager/EmbeddedData_PureGraphManagerPlugin_Extension.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { EmbeddedData } from '../models/metamodels/pure/data/EmbeddedData'; -import type { ObserverContext } from './action/changeDetection/CoreObserverHelper'; -import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin'; +import type { EmbeddedData } from '../models/metamodels/pure/data/EmbeddedData.js'; +import type { ObserverContext } from './action/changeDetection/CoreObserverHelper.js'; +import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin.js'; export type EmbeddedDataObserver = ( embeddedData: EmbeddedData, diff --git a/packages/legend-graph/src/graphManager/GraphBuilderReport.ts b/packages/legend-graph/src/graphManager/GraphBuilderReport.ts index b9fa2dbc235..ef2f285a036 100644 --- a/packages/legend-graph/src/graphManager/GraphBuilderReport.ts +++ b/packages/legend-graph/src/graphManager/GraphBuilderReport.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { GRAPH_MANAGER_EVENT } from './GraphManagerEvent'; +import { GRAPH_MANAGER_EVENT } from './GraphManagerEvent.js'; export class GraphBuilderReport { timings: { diff --git a/packages/legend-graph/src/graphManager/GraphManagerTelemetry.ts b/packages/legend-graph/src/graphManager/GraphManagerTelemetry.ts index bfa909e8847..1ef25d4f120 100644 --- a/packages/legend-graph/src/graphManager/GraphManagerTelemetry.ts +++ b/packages/legend-graph/src/graphManager/GraphManagerTelemetry.ts @@ -15,8 +15,8 @@ */ import type { TelemetryService } from '@finos/legend-shared'; -import type { GraphBuilderReport } from './GraphBuilderReport'; -import { GRAPH_MANAGER_EVENT } from './GraphManagerEvent'; +import type { GraphBuilderReport } from './GraphBuilderReport.js'; +import { GRAPH_MANAGER_EVENT } from './GraphManagerEvent.js'; type GraphBuilt_TelemetryData = { timings: Record; diff --git a/packages/legend-graph/src/graphManager/PureGraphManagerPlugin.ts b/packages/legend-graph/src/graphManager/PureGraphManagerPlugin.ts index 676b3ec7fd7..48e9d642c26 100644 --- a/packages/legend-graph/src/graphManager/PureGraphManagerPlugin.ts +++ b/packages/legend-graph/src/graphManager/PureGraphManagerPlugin.ts @@ -15,11 +15,11 @@ */ import { AbstractPlugin } from '@finos/legend-shared'; -import type { PureModel } from '../graph/PureModel'; -import type { GraphPluginManager } from '../GraphPluginManager'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import type { Testable } from '../models/metamodels/pure/test/Testable'; -import type { ObserverContext } from './action/changeDetection/CoreObserverHelper'; +import type { PureModel } from '../graph/PureModel.js'; +import type { GraphPluginManager } from '../GraphPluginManager.js'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { Testable } from '../models/metamodels/pure/test/Testable.js'; +import type { ObserverContext } from './action/changeDetection/CoreObserverHelper.js'; /** * Unlike `PureGraphPlugin`, this is for plugins of graph manager, i.e. operations acting diff --git a/packages/legend-graph/src/graphManager/StoreRelational_PureGraphManagerPlugin_Extension.ts b/packages/legend-graph/src/graphManager/StoreRelational_PureGraphManagerPlugin_Extension.ts index aa3422c7a7b..0228a3ad485 100644 --- a/packages/legend-graph/src/graphManager/StoreRelational_PureGraphManagerPlugin_Extension.ts +++ b/packages/legend-graph/src/graphManager/StoreRelational_PureGraphManagerPlugin_Extension.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import type { AuthenticationStrategy } from '../models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy'; -import type { DatasourceSpecification } from '../models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification'; -import type { PostProcessor } from '../models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor'; -import type { Milestoning } from '../models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning'; -import type { ObserverContext } from './action/changeDetection/CoreObserverHelper'; -import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin'; +import type { AuthenticationStrategy } from '../models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js'; +import type { DatasourceSpecification } from '../models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.js'; +import type { PostProcessor } from '../models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor.js'; +import type { Milestoning } from '../models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.js'; +import type { ObserverContext } from './action/changeDetection/CoreObserverHelper.js'; +import type { PureGraphManagerPlugin } from './PureGraphManagerPlugin.js'; export type MilestoningObserver = ( milestoning: Milestoning, diff --git a/packages/legend-graph/src/graphManager/action/EngineError.ts b/packages/legend-graph/src/graphManager/action/EngineError.ts index 627155f679d..9d9927e2951 100644 --- a/packages/legend-graph/src/graphManager/action/EngineError.ts +++ b/packages/legend-graph/src/graphManager/action/EngineError.ts @@ -15,7 +15,7 @@ */ import { ApplicationError } from '@finos/legend-shared'; -import type { SourceInformation } from '../action/SourceInformation'; +import type { SourceInformation } from '../action/SourceInformation.js'; export class EngineError extends ApplicationError { sourceInformation?: SourceInformation | undefined; diff --git a/packages/legend-graph/src/graphManager/action/ExecutionError.ts b/packages/legend-graph/src/graphManager/action/ExecutionError.ts index 0a27b79245d..da023c00c85 100644 --- a/packages/legend-graph/src/graphManager/action/ExecutionError.ts +++ b/packages/legend-graph/src/graphManager/action/ExecutionError.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { EngineError } from './EngineError'; +import { EngineError } from './EngineError.js'; export class ExecutionError extends EngineError { declare stack: string; diff --git a/packages/legend-graph/src/graphManager/action/SourceInformationHelper.ts b/packages/legend-graph/src/graphManager/action/SourceInformationHelper.ts index b47f858b5ef..0b781030568 100644 --- a/packages/legend-graph/src/graphManager/action/SourceInformationHelper.ts +++ b/packages/legend-graph/src/graphManager/action/SourceInformationHelper.ts @@ -15,7 +15,7 @@ */ import { assertTrue } from '@finos/legend-shared'; -import type { SourceInformation } from './SourceInformation'; +import type { SourceInformation } from './SourceInformation.js'; // NOTE: @ is chosen because it is not part of identifier token in Pure grammar // TODO: handle the case of quote identifier e.g. model::something::'I have an @ in me' diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/CoreObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/CoreObserverHelper.ts index 577f109207c..ebb501eca76 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/CoreObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/CoreObserverHelper.ts @@ -21,14 +21,14 @@ import { makeObservable, observable, } from 'mobx'; -import type { PackageableElement } from '../../../models/metamodels/pure/packageableElements/PackageableElement'; +import type { PackageableElement } from '../../../models/metamodels/pure/packageableElements/PackageableElement.js'; import type { OptionalPackageableElementReference, PackageableElementReference, -} from '../../../models/metamodels/pure/packageableElements/PackageableElementReference'; -import type { Multiplicity } from '../../../models/metamodels/pure/packageableElements/domain/Multiplicity'; -import type { InferableValue } from '../../../models/metamodels/pure/InferableValue'; -import type { PureGraphManagerPlugin } from '../../PureGraphManagerPlugin'; +} from '../../../models/metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { Multiplicity } from '../../../models/metamodels/pure/packageableElements/domain/Multiplicity.js'; +import type { InferableValue } from '../../../models/metamodels/pure/InferableValue.js'; +import type { PureGraphManagerPlugin } from '../../PureGraphManagerPlugin.js'; export class ObserverContext { plugins: PureGraphManagerPlugin[] = []; diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/DSLData_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/DSLData_ObserverHelper.ts index 80a6e6332f1..66b0642952b 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/DSLData_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/DSLData_ObserverHelper.ts @@ -20,25 +20,25 @@ import { ExternalFormatData, DataElementReference, ModelStoreData, -} from '../../../models/metamodels/pure/data/EmbeddedData'; +} from '../../../models/metamodels/pure/data/EmbeddedData.js'; import { type RelationalDataTable, type RelationalDataTableColumn, type RelationalDataTableRow, RelationalData, -} from '../../../models/metamodels/pure/data/RelationalData'; -import type { DataElement } from '../../../models/metamodels/pure/packageableElements/data/DataElement'; -import type { EmbeddedData_PureGraphManagerPlugin_Extension } from '../../EmbeddedData_PureGraphManagerPlugin_Extension'; +} from '../../../models/metamodels/pure/data/RelationalData.js'; +import type { DataElement } from '../../../models/metamodels/pure/packageableElements/data/DataElement.js'; +import type { EmbeddedData_PureGraphManagerPlugin_Extension } from '../../EmbeddedData_PureGraphManagerPlugin_Extension.js'; import { type ObserverContext, observe_Abstract_PackageableElement, skipObserved, skipObservedWithContext, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; import { observe_StereotypeReference, observe_TaggedValue, -} from './DomainObserverHelper'; +} from './DomainObserverHelper.js'; export const observe_ExternalFormatData = skipObserved( (metamodel: ExternalFormatData): ExternalFormatData => { diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.ts index e93025bc9f2..750a0bd0c6d 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.ts @@ -15,23 +15,23 @@ */ import { computed, makeObservable, observable, override } from 'mobx'; -import type { ExternalFormatConnection } from '../../../models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection'; -import type { UrlStream } from '../../../models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream'; -import type { Schema } from '../../../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema'; -import type { SchemaSet } from '../../../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet'; -import type { Binding } from '../../../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding'; -import type { BindingTransformer } from '../../../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer'; -import type { ModelUnit } from '../../../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit'; +import type { ExternalFormatConnection } from '../../../models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.js'; +import type { UrlStream } from '../../../models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream.js'; +import type { Schema } from '../../../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema.js'; +import type { SchemaSet } from '../../../models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.js'; +import type { Binding } from '../../../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js'; +import type { BindingTransformer } from '../../../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer.js'; +import type { ModelUnit } from '../../../models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit.js'; import { observe_PackageableElementReference, skipObserved, observe_OptionalPackageableElementReference, observe_Abstract_PackageableElement, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; import { observe_Abstract_Connection, observe_Abstract_Store, -} from './DSLMapping_ObserverHelper'; +} from './DSLMapping_ObserverHelper.js'; // ------------------------------------- Store ------------------------------------- diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/DSLGenerationSpecification_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/DSLGenerationSpecification_ObserverHelper.ts index 4bcf037f8dc..eb9ccb96fe4 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/DSLGenerationSpecification_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/DSLGenerationSpecification_ObserverHelper.ts @@ -20,13 +20,13 @@ import type { FileGenerationSpecification, GenerationSpecification, GenerationTreeNode, -} from '../../../DSLGenerationSpecification_Exports'; -import { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference'; +} from '../../../DSLGenerationSpecification_Exports.js'; +import { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference.js'; import { observe_Abstract_PackageableElement, observe_PackageableElementReference, skipObserved, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; export const observe_ConfigurationProperty = skipObserved( (metamodel: ConfigurationProperty): ConfigurationProperty => diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/DSLMapping_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/DSLMapping_ObserverHelper.ts index 59cc031b582..7274ca963ce 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/DSLMapping_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/DSLMapping_ObserverHelper.ts @@ -19,71 +19,71 @@ import type { Connection, ConnectionPointer, ConnectionVisitor, -} from '../../../models/metamodels/pure/packageableElements/connection/Connection'; -import type { PackageableConnection } from '../../../models/metamodels/pure/packageableElements/connection/PackageableConnection'; -import type { AggregationAwarePropertyMapping } from '../../../models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping'; -import type { AggregationAwareSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation'; -import type { AssociationImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/AssociationImplementation'; -import type { EnumerationMapping } from '../../../models/metamodels/pure/packageableElements/mapping/EnumerationMapping'; +} from '../../../models/metamodels/pure/packageableElements/connection/Connection.js'; +import type { PackageableConnection } from '../../../models/metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import type { AggregationAwarePropertyMapping } from '../../../models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping.js'; +import type { AggregationAwareSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.js'; +import type { AssociationImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/AssociationImplementation.js'; +import type { EnumerationMapping } from '../../../models/metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; import type { EnumValueMapping, SourceValue, -} from '../../../models/metamodels/pure/packageableElements/mapping/EnumValueMapping'; -import { ExpectedOutputMappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert'; -import type { InferableMappingElementIdValue } from '../../../models/metamodels/pure/packageableElements/mapping/InferableMappingElementId'; -import type { InferableMappingElementRoot } from '../../../models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot'; -import type { InputData } from '../../../models/metamodels/pure/packageableElements/mapping/InputData'; -import type { InstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import type { LocalMappingPropertyInfo } from '../../../models/metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo'; -import type { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping'; -import type { MappingClass } from '../../../models/metamodels/pure/packageableElements/mapping/MappingClass'; -import type { MappingInclude } from '../../../models/metamodels/pure/packageableElements/mapping/MappingInclude'; -import type { MappingTest } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTest'; -import type { MappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTestAssert'; -import type { MergeOperationSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation'; -import type { OperationSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/OperationSetImplementation'; +} from '../../../models/metamodels/pure/packageableElements/mapping/EnumValueMapping.js'; +import { ExpectedOutputMappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.js'; +import type { InferableMappingElementIdValue } from '../../../models/metamodels/pure/packageableElements/mapping/InferableMappingElementId.js'; +import type { InferableMappingElementRoot } from '../../../models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.js'; +import type { InputData } from '../../../models/metamodels/pure/packageableElements/mapping/InputData.js'; +import type { InstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import type { LocalMappingPropertyInfo } from '../../../models/metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo.js'; +import type { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { MappingClass } from '../../../models/metamodels/pure/packageableElements/mapping/MappingClass.js'; +import type { MappingInclude } from '../../../models/metamodels/pure/packageableElements/mapping/MappingInclude.js'; +import type { MappingTest } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTest.js'; +import type { MappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTestAssert.js'; +import type { MergeOperationSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation.js'; +import type { OperationSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; import type { PropertyMapping, PropertyMappingVisitor, -} from '../../../models/metamodels/pure/packageableElements/mapping/PropertyMapping'; +} from '../../../models/metamodels/pure/packageableElements/mapping/PropertyMapping.js'; import type { SetImplementation, SetImplementationVisitor, -} from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementation'; -import type { SetImplementationContainer } from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementationContainer'; -import type { SetImplementationReference } from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementationReference'; -import type { SubstituteStore } from '../../../models/metamodels/pure/packageableElements/mapping/SubstituteStore'; -import type { TEMPORARY__UnresolvedSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation'; -import type { XStorePropertyMapping } from '../../../models/metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping'; -import type { PackageableRuntime } from '../../../models/metamodels/pure/packageableElements/runtime/PackageableRuntime'; +} from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import type { SetImplementationContainer } from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementationContainer.js'; +import type { SetImplementationReference } from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementationReference.js'; +import type { SubstituteStore } from '../../../models/metamodels/pure/packageableElements/mapping/SubstituteStore.js'; +import type { TEMPORARY__UnresolvedSetImplementation } from '../../../models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.js'; +import type { XStorePropertyMapping } from '../../../models/metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping.js'; +import type { PackageableRuntime } from '../../../models/metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; import { EngineRuntime, RuntimePointer, type IdentifiedConnection, type Runtime, type StoreConnections, -} from '../../../models/metamodels/pure/packageableElements/runtime/Runtime'; -import type { FlatDataConnection } from '../../../models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection'; -import type { EmbeddedFlatDataPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping'; -import { FlatDataInputData } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData'; -import type { FlatDataInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation'; -import type { FlatDataPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping'; -import type { JsonModelConnection } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection'; -import type { ModelChainConnection } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection'; -import type { XmlModelConnection } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection'; -import { ObjectInputData } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData'; -import type { PureInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation'; -import type { PurePropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping'; -import type { RelationalDatabaseConnection } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection'; -import type { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation'; -import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; -import { RelationalInputData } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData'; -import type { RelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation'; -import type { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -import type { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import type { Store } from '../../../models/metamodels/pure/packageableElements/store/Store'; -import type { DSLMapping_PureGraphManagerPlugin_Extension } from '../../DSLMapping_PureGraphManagerPlugin_Extension'; +} from '../../../models/metamodels/pure/packageableElements/runtime/Runtime.js'; +import type { FlatDataConnection } from '../../../models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.js'; +import type { EmbeddedFlatDataPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js'; +import { FlatDataInputData } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.js'; +import type { FlatDataInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.js'; +import type { FlatDataPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.js'; +import type { JsonModelConnection } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.js'; +import type { ModelChainConnection } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.js'; +import type { XmlModelConnection } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.js'; +import { ObjectInputData } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.js'; +import type { PureInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js'; +import type { PurePropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.js'; +import type { RelationalDatabaseConnection } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; +import type { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.js'; +import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; +import { RelationalInputData } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.js'; +import type { RelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.js'; +import type { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +import type { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import type { Store } from '../../../models/metamodels/pure/packageableElements/store/Store.js'; +import type { DSLMapping_PureGraphManagerPlugin_Extension } from '../../DSLMapping_PureGraphManagerPlugin_Extension.js'; import { type ObserverContext, observe_Abstract_PackageableElement, @@ -92,19 +92,19 @@ import { skipObservedWithContext, observe_Multiplicity, observe_OptionalPackageableElementReference, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; import { observe_EnumValueReference, observe_PropertyReference, -} from './DomainObserverHelper'; -import { observe_RawLambda } from './RawValueSpecificationObserver'; +} from './DomainObserverHelper.js'; +import { observe_RawLambda } from './RawValueSpecificationObserver.js'; import { observe_EmbeddedFlatDataPropertyMapping, observe_FlatDataConnection, observe_FlatDataInputData, observe_FlatDataInstanceSetImplementation, observe_FlatDataPropertyMapping, -} from './StoreFlatData_ObserverHelper'; +} from './StoreFlatData_ObserverHelper.js'; import { observe_EmbeddedRelationalInstanceSetImplementation, observe_InlineEmbeddedRelationalInstanceSetImplementation, @@ -114,7 +114,7 @@ import { observe_RelationalInstanceSetImplementation, observe_RelationalPropertyMapping, observe_RootRelationalInstanceSetImplementation, -} from './StoreRelational_ObserverHelper'; +} from './StoreRelational_ObserverHelper.js'; // ------------------------------------- Store ------------------------------------- diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/DSLService_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/DSLService_ObserverHelper.ts index 249ac9b12f8..95bd91342a8 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/DSLService_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/DSLService_ObserverHelper.ts @@ -15,44 +15,44 @@ */ import { computed, makeObservable, observable, override } from 'mobx'; -import type { Service } from '../../../models/metamodels/pure/packageableElements/service/Service'; +import type { Service } from '../../../models/metamodels/pure/packageableElements/service/Service.js'; import { type KeyedExecutionParameter, type PureExecution, type ServiceExecution, PureMultiExecution, PureSingleExecution, -} from '../../../models/metamodels/pure/packageableElements/service/ServiceExecution'; -import type { ServiceTest } from '../../../models/metamodels/pure/packageableElements/service/ServiceTest'; +} from '../../../models/metamodels/pure/packageableElements/service/ServiceExecution.js'; +import type { ServiceTest } from '../../../models/metamodels/pure/packageableElements/service/ServiceTest.js'; import { observe_Abstract_PackageableElement, observe_PackageableElementReference, skipObserved, skipObservedWithContext, type ObserverContext, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; import { observe_StereotypeReference, observe_TaggedValue, -} from './DomainObserverHelper'; -import { observe_RawLambda } from './RawValueSpecificationObserver'; -import { observe_Runtime } from './DSLMapping_ObserverHelper'; -import type { ConnectionTestData } from '../../../models/metamodels/pure/packageableElements/service/ConnectionTestData'; -import { observe_EmbeddedData } from './DSLData_ObserverHelper'; -import type { ParameterValue } from '../../../models/metamodels/pure/packageableElements/service/ParameterValue'; +} from './DomainObserverHelper.js'; +import { observe_RawLambda } from './RawValueSpecificationObserver.js'; +import { observe_Runtime } from './DSLMapping_ObserverHelper.js'; +import type { ConnectionTestData } from '../../../models/metamodels/pure/packageableElements/service/ConnectionTestData.js'; +import { observe_EmbeddedData } from './DSLData_ObserverHelper.js'; +import type { ParameterValue } from '../../../models/metamodels/pure/packageableElements/service/ParameterValue.js'; import { type DEPRECATED__ServiceTest, type DEPRECATED__KeyedSingleExecutionTest, type DEPRECATED__TestContainer, DEPRECATED__MultiExecutionTest, DEPRECATED__SingleExecutionTest, -} from '../../../models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest'; -import type { ServiceTestSuite } from '../../../models/metamodels/pure/packageableElements/service/ServiceTestSuite'; -import type { TestData } from '../../../models/metamodels/pure/packageableElements/service/ServiceTestData'; +} from '../../../models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.js'; +import type { ServiceTestSuite } from '../../../models/metamodels/pure/packageableElements/service/ServiceTestSuite.js'; +import type { TestData } from '../../../models/metamodels/pure/packageableElements/service/ServiceTestData.js'; import { observe_AtomicTest, observe_TestAssertion, -} from './Testable_ObserverHelper'; +} from './Testable_ObserverHelper.js'; export const observe_ConnectionTestData = skipObservedWithContext( ( diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/DomainObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/DomainObserverHelper.ts index af0bbcc9bf2..509f1cc43e1 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/DomainObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/DomainObserverHelper.ts @@ -22,37 +22,37 @@ import { observable, override, } from 'mobx'; -import type { Association } from '../../../models/metamodels/pure/packageableElements/domain/Association'; -import { Class } from '../../../models/metamodels/pure/packageableElements/domain/Class'; -import type { ConcreteFunctionDefinition } from '../../../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { Constraint } from '../../../models/metamodels/pure/packageableElements/domain/Constraint'; -import type { DataType } from '../../../models/metamodels/pure/packageableElements/domain/DataType'; -import type { DerivedProperty } from '../../../models/metamodels/pure/packageableElements/domain/DerivedProperty'; -import type { Enum } from '../../../models/metamodels/pure/packageableElements/domain/Enum'; -import { Enumeration } from '../../../models/metamodels/pure/packageableElements/domain/Enumeration'; -import type { EnumValueReference } from '../../../models/metamodels/pure/packageableElements/domain/EnumValueReference'; -import type { GenericType } from '../../../models/metamodels/pure/packageableElements/domain/GenericType'; -import type { GenericTypeReference } from '../../../models/metamodels/pure/packageableElements/domain/GenericTypeReference'; +import type { Association } from '../../../models/metamodels/pure/packageableElements/domain/Association.js'; +import { Class } from '../../../models/metamodels/pure/packageableElements/domain/Class.js'; +import type { ConcreteFunctionDefinition } from '../../../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { Constraint } from '../../../models/metamodels/pure/packageableElements/domain/Constraint.js'; +import type { DataType } from '../../../models/metamodels/pure/packageableElements/domain/DataType.js'; +import type { DerivedProperty } from '../../../models/metamodels/pure/packageableElements/domain/DerivedProperty.js'; +import type { Enum } from '../../../models/metamodels/pure/packageableElements/domain/Enum.js'; +import { Enumeration } from '../../../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import type { EnumValueReference } from '../../../models/metamodels/pure/packageableElements/domain/EnumValueReference.js'; +import type { GenericType } from '../../../models/metamodels/pure/packageableElements/domain/GenericType.js'; +import type { GenericTypeReference } from '../../../models/metamodels/pure/packageableElements/domain/GenericTypeReference.js'; import { Measure, Unit, -} from '../../../models/metamodels/pure/packageableElements/domain/Measure'; -import { Package } from '../../../models/metamodels/pure/packageableElements/domain/Package'; -import type { Profile } from '../../../models/metamodels/pure/packageableElements/domain/Profile'; -import type { Property } from '../../../models/metamodels/pure/packageableElements/domain/Property'; -import type { PropertyReference } from '../../../models/metamodels/pure/packageableElements/domain/PropertyReference'; -import type { Stereotype } from '../../../models/metamodels/pure/packageableElements/domain/Stereotype'; -import type { StereotypeReference } from '../../../models/metamodels/pure/packageableElements/domain/StereotypeReference'; -import type { Tag } from '../../../models/metamodels/pure/packageableElements/domain/Tag'; -import type { TaggedValue } from '../../../models/metamodels/pure/packageableElements/domain/TaggedValue'; -import type { TagReference } from '../../../models/metamodels/pure/packageableElements/domain/TagReference'; -import type { Type } from '../../../models/metamodels/pure/packageableElements/domain/Type'; +} from '../../../models/metamodels/pure/packageableElements/domain/Measure.js'; +import { Package } from '../../../models/metamodels/pure/packageableElements/domain/Package.js'; +import type { Profile } from '../../../models/metamodels/pure/packageableElements/domain/Profile.js'; +import type { Property } from '../../../models/metamodels/pure/packageableElements/domain/Property.js'; +import type { PropertyReference } from '../../../models/metamodels/pure/packageableElements/domain/PropertyReference.js'; +import type { Stereotype } from '../../../models/metamodels/pure/packageableElements/domain/Stereotype.js'; +import type { StereotypeReference } from '../../../models/metamodels/pure/packageableElements/domain/StereotypeReference.js'; +import type { Tag } from '../../../models/metamodels/pure/packageableElements/domain/Tag.js'; +import type { TaggedValue } from '../../../models/metamodels/pure/packageableElements/domain/TaggedValue.js'; +import type { TagReference } from '../../../models/metamodels/pure/packageableElements/domain/TagReference.js'; +import type { Type } from '../../../models/metamodels/pure/packageableElements/domain/Type.js'; import { DefaultCodeSection, ImportAwareCodeSection, type Section, -} from '../../../models/metamodels/pure/packageableElements/section/Section'; -import type { SectionIndex } from '../../../models/metamodels/pure/packageableElements/section/SectionIndex'; +} from '../../../models/metamodels/pure/packageableElements/section/Section.js'; +import type { SectionIndex } from '../../../models/metamodels/pure/packageableElements/section/SectionIndex.js'; import { observe_Multiplicity, observe_Abstract_PackageableElement, @@ -60,12 +60,12 @@ import { skipObserved, skipObservedWithContext, type ObserverContext, -} from './CoreObserverHelper'; -import { observe_PackageableElement } from './PackageableElementObserver'; +} from './CoreObserverHelper.js'; +import { observe_PackageableElement } from './PackageableElementObserver.js'; import { observe_RawLambda, observe_RawVariableExpression, -} from './RawValueSpecificationObserver'; +} from './RawValueSpecificationObserver.js'; const _observe_Abstract_Package = (metamodel: Package): void => { observe_Abstract_PackageableElement(metamodel); diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/EngineObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/EngineObserverHelper.ts index 815e9761ba8..bc5849e7779 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/EngineObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/EngineObserverHelper.ts @@ -15,8 +15,8 @@ */ import { action, makeObservable, observable } from 'mobx'; -import type { TEMPORARY__AbstractEngineConfig } from '../TEMPORARY__AbstractEngineConfig'; -import { skipObserved } from './CoreObserverHelper'; +import type { TEMPORARY__AbstractEngineConfig } from '../TEMPORARY__AbstractEngineConfig.js'; +import { skipObserved } from './CoreObserverHelper.js'; export const observe_TEMPORARY__AbstractEngineConfig = skipObserved( ( diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/GraphObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/GraphObserverHelper.ts index 2105304f842..47e7376a102 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/GraphObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/GraphObserverHelper.ts @@ -15,13 +15,13 @@ */ import { computed, isObservable, makeObservable, observable } from 'mobx'; -import type { BasicModel } from '../../../graph/BasicModel'; -import type { DependencyManager } from '../../../graph/DependencyManager'; -import type { PureGraphExtension } from '../../../graph/PureGraphExtension'; -import type { PureModel } from '../../../graph/PureModel'; -import type { PackageableElement } from '../../../models/metamodels/pure/packageableElements/PackageableElement'; -import { type ObserverContext, skipObserved } from './CoreObserverHelper'; -import { observe_PackageTree } from './DomainObserverHelper'; +import type { BasicModel } from '../../../graph/BasicModel.js'; +import type { DependencyManager } from '../../../graph/DependencyManager.js'; +import type { PureGraphExtension } from '../../../graph/PureGraphExtension.js'; +import type { PureModel } from '../../../graph/PureModel.js'; +import type { PackageableElement } from '../../../models/metamodels/pure/packageableElements/PackageableElement.js'; +import { type ObserverContext, skipObserved } from './CoreObserverHelper.js'; +import { observe_PackageTree } from './DomainObserverHelper.js'; const observe_PureGraphExtension = skipObserved( ( diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/PackageableElementObserver.ts b/packages/legend-graph/src/graphManager/action/changeDetection/PackageableElementObserver.ts index e894c8b23be..53f1b0a7ace 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/PackageableElementObserver.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/PackageableElementObserver.ts @@ -17,24 +17,24 @@ import type { PackageableElement, PackageableElementVisitor, -} from '../../../models/metamodels/pure/packageableElements/PackageableElement'; -import type { Profile } from '../../../models/metamodels/pure/packageableElements/domain/Profile'; -import type { Enumeration } from '../../../models/metamodels/pure/packageableElements/domain/Enumeration'; -import type { Measure } from '../../../models/metamodels/pure/packageableElements/domain/Measure'; -import type { Class } from '../../../models/metamodels/pure/packageableElements/domain/Class'; -import type { Association } from '../../../models/metamodels/pure/packageableElements/domain/Association'; -import type { ConcreteFunctionDefinition } from '../../../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { FlatData } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import type { Database } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Database'; -import type { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping'; -import type { Service } from '../../../models/metamodels/pure/packageableElements/service/Service'; -import type { PackageableRuntime } from '../../../models/metamodels/pure/packageableElements/runtime/PackageableRuntime'; -import type { PackageableConnection } from '../../../models/metamodels/pure/packageableElements/connection/PackageableConnection'; -import type { FileGenerationSpecification } from '../../../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import type { GenerationSpecification } from '../../../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; -import type { Package } from '../../../models/metamodels/pure/packageableElements/domain/Package'; -import type { PrimitiveType } from '../../../models/metamodels/pure/packageableElements/domain/PrimitiveType'; -import type { SectionIndex } from '../../../models/metamodels/pure/packageableElements/section/SectionIndex'; +} from '../../../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { Profile } from '../../../models/metamodels/pure/packageableElements/domain/Profile.js'; +import type { Enumeration } from '../../../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import type { Measure } from '../../../models/metamodels/pure/packageableElements/domain/Measure.js'; +import type { Class } from '../../../models/metamodels/pure/packageableElements/domain/Class.js'; +import type { Association } from '../../../models/metamodels/pure/packageableElements/domain/Association.js'; +import type { ConcreteFunctionDefinition } from '../../../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { FlatData } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import type { Database } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +import type { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { Service } from '../../../models/metamodels/pure/packageableElements/service/Service.js'; +import type { PackageableRuntime } from '../../../models/metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +import type { PackageableConnection } from '../../../models/metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import type { FileGenerationSpecification } from '../../../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import type { GenerationSpecification } from '../../../models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; +import type { Package } from '../../../models/metamodels/pure/packageableElements/domain/Package.js'; +import type { PrimitiveType } from '../../../models/metamodels/pure/packageableElements/domain/PrimitiveType.js'; +import type { SectionIndex } from '../../../models/metamodels/pure/packageableElements/section/SectionIndex.js'; import { observe_Association, observe_Class, @@ -44,25 +44,25 @@ import { observe_Package, observe_Profile, observe_SectionIndex, -} from './DomainObserverHelper'; +} from './DomainObserverHelper.js'; import { type ObserverContext, skipObservedWithContext, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; import { observe_FileGenerationSpecification, observe_GenerationSpecification, -} from './DSLGenerationSpecification_ObserverHelper'; +} from './DSLGenerationSpecification_ObserverHelper.js'; import { observe_Mapping, observe_PackageableConnection, observe_PackageableRuntime, -} from './DSLMapping_ObserverHelper'; -import { observe_Service } from './DSLService_ObserverHelper'; -import { observe_FlatData } from './StoreFlatData_ObserverHelper'; -import { observe_Database } from './StoreRelational_ObserverHelper'; -import type { DataElement } from '../../../models/metamodels/pure/packageableElements/data/DataElement'; -import { observe_DataElement } from './DSLData_ObserverHelper'; +} from './DSLMapping_ObserverHelper.js'; +import { observe_Service } from './DSLService_ObserverHelper.js'; +import { observe_FlatData } from './StoreFlatData_ObserverHelper.js'; +import { observe_Database } from './StoreRelational_ObserverHelper.js'; +import type { DataElement } from '../../../models/metamodels/pure/packageableElements/data/DataElement.js'; +import { observe_DataElement } from './DSLData_ObserverHelper.js'; class PackageableElementObserver implements PackageableElementVisitor { observerContext: ObserverContext; diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/RawValueSpecificationObserver.ts b/packages/legend-graph/src/graphManager/action/changeDetection/RawValueSpecificationObserver.ts index d6e45c7159d..cbf5c50b255 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/RawValueSpecificationObserver.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/RawValueSpecificationObserver.ts @@ -15,20 +15,20 @@ */ import { computed, makeObservable, observable } from 'mobx'; -import type { RawPrimitiveInstanceValue } from '../../../models/metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue'; -import type { RawLambda } from '../../../models/metamodels/pure/rawValueSpecification/RawLambda'; +import type { RawPrimitiveInstanceValue } from '../../../models/metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.js'; +import type { RawLambda } from '../../../models/metamodels/pure/rawValueSpecification/RawLambda.js'; import type { RawValueSpecification, RawValueSpecificationVisitor, -} from '../../../models/metamodels/pure/rawValueSpecification/RawValueSpecification'; -import type { RawVariableExpression } from '../../../models/metamodels/pure/rawValueSpecification/RawVariableExpression'; +} from '../../../models/metamodels/pure/rawValueSpecification/RawValueSpecification.js'; +import type { RawVariableExpression } from '../../../models/metamodels/pure/rawValueSpecification/RawVariableExpression.js'; import { observe_PackageableElementReference, observe_Multiplicity, skipObserved, skipObservedWithContext, type ObserverContext, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; export const observe_RawPrimitiveInstanceValue = skipObserved( (metamodel: RawPrimitiveInstanceValue): RawPrimitiveInstanceValue => { diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/StoreFlatData_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/StoreFlatData_ObserverHelper.ts index 77e1225760d..826940bf208 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/StoreFlatData_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/StoreFlatData_ObserverHelper.ts @@ -15,9 +15,9 @@ */ import { computed, makeObservable, observable, override } from 'mobx'; -import type { FlatDataConnection } from '../../../models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection'; -import type { FlatDataInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation'; -import type { FlatData } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatData'; +import type { FlatDataConnection } from '../../../models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.js'; +import type { FlatDataInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.js'; +import type { FlatData } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; import { type FlatDataRecordField, type FlatDataDataType, @@ -26,27 +26,27 @@ import { FlatDataDate, FlatDataNumber, FlatDataString, -} from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType'; -import type { FlatDataProperty } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty'; -import type { FlatDataSection } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection'; -import type { RootFlatDataRecordTypeReference } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference'; +} from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.js'; +import type { FlatDataProperty } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty.js'; +import type { FlatDataSection } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.js'; +import type { RootFlatDataRecordTypeReference } from '../../../models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference.js'; import type { EmbeddedFlatDataPropertyMapping, FlatDataInputData, FlatDataPropertyMapping, FlatDataSectionReference, -} from '../../../StoreFlatData_Exports'; +} from '../../../StoreFlatData_Exports.js'; import { observe_Abstract_PackageableElement, observe_PackageableElementReference, skipObserved, skipObservedWithContext, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; import { observe_Abstract_InstanceSetImplementation, observe_Abstract_PropertyMapping, -} from './DSLMapping_ObserverHelper'; -import { observe_RawLambda } from './RawValueSpecificationObserver'; +} from './DSLMapping_ObserverHelper.js'; +import { observe_RawLambda } from './RawValueSpecificationObserver.js'; // ------------------------------------- Store ------------------------------------- diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/StoreRelational_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/StoreRelational_ObserverHelper.ts index ba694435fc8..366d0b91b73 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/StoreRelational_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/StoreRelational_ObserverHelper.ts @@ -25,7 +25,7 @@ import { SnowflakePublicAuthenticationStrategy, UsernamePasswordAuthenticationStrategy, GCPWorkloadIdentityFederationAuthenticationStrategy, -} from '../../../models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js'; import { type DatasourceSpecification, BigQueryDatasourceSpecification, @@ -35,34 +35,34 @@ import { RedshiftDatasourceSpecification, SnowflakeDatasourceSpecification, StaticDatasourceSpecification, -} from '../../../models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification'; -import { MapperPostProcessor } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor'; -import type { PostProcessor } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.js'; +import { MapperPostProcessor } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor.js'; +import type { PostProcessor } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor.js'; import type { DatabaseConnection, RelationalDatabaseConnection, -} from '../../../models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection'; -import type { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import type { FilterMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/FilterMapping'; -import type { GroupByMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping'; -import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation'; -import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; -import type { RelationalInputData } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData'; -import type { RelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation'; -import type { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -import type { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { Column } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Column'; -import type { ColumnMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/model/ColumnMapping'; -import type { ColumnReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/ColumnReference'; -import type { Database } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Database'; -import type { Filter } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Filter'; -import type { FilterReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/FilterReference'; -import type { Join } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Join'; -import type { JoinReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/JoinReference'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; +import type { EmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import type { FilterMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/FilterMapping.js'; +import type { GroupByMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.js'; +import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.js'; +import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; +import type { RelationalInputData } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.js'; +import type { RelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.js'; +import type { RelationalPropertyMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +import type { RootRelationalInstanceSetImplementation } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { Column } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Column.js'; +import type { ColumnMapping } from '../../../models/metamodels/pure/packageableElements/store/relational/model/ColumnMapping.js'; +import type { ColumnReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/ColumnReference.js'; +import type { Database } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +import type { Filter } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Filter.js'; +import type { FilterReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/FilterReference.js'; +import type { Join } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Join.js'; +import type { JoinReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/JoinReference.js'; import { type Milestoning, TemporalMilestoning, -} from '../../../models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.js'; import { type RelationalDataType, Binary, @@ -82,7 +82,7 @@ import { TinyInt, VarBinary, VarChar, -} from '../../../models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType.js'; import { RelationalOperationElement, type NamedRelation, @@ -93,31 +93,31 @@ import { Literal, LiteralList, RelationalOperationElementWithJoin, -} from '../../../models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -import type { Schema } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Schema'; -import type { Table } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Table'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +import type { Schema } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Schema.js'; +import type { Table } from '../../../models/metamodels/pure/packageableElements/store/relational/model/Table.js'; import { type NamedRelationalReference, TableReference, -} from '../../../models/metamodels/pure/packageableElements/store/relational/model/TableReference'; -import type { View } from '../../../models/metamodels/pure/packageableElements/store/relational/model/View'; -import { ViewReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/ViewReference'; -import type { StoreRelational_PureGraphManagerPlugin_Extension } from '../../StoreRelational_PureGraphManagerPlugin_Extension'; +} from '../../../models/metamodels/pure/packageableElements/store/relational/model/TableReference.js'; +import type { View } from '../../../models/metamodels/pure/packageableElements/store/relational/model/View.js'; +import { ViewReference } from '../../../models/metamodels/pure/packageableElements/store/relational/model/ViewReference.js'; +import type { StoreRelational_PureGraphManagerPlugin_Extension } from '../../StoreRelational_PureGraphManagerPlugin_Extension.js'; import { type ObserverContext, observe_Abstract_PackageableElement, observe_PackageableElementReference, skipObserved, skipObservedWithContext, -} from './CoreObserverHelper'; -import { observe_BindingTransformer } from './DSLExternalFormat_ObserverHelper'; +} from './CoreObserverHelper.js'; +import { observe_BindingTransformer } from './DSLExternalFormat_ObserverHelper.js'; import { observe_Abstract_Connection, observe_Abstract_InstanceSetImplementation, observe_Abstract_PropertyMapping, observe_PropertyMapping, observe_SetImplementation, -} from './DSLMapping_ObserverHelper'; +} from './DSLMapping_ObserverHelper.js'; // ------------------------------------- Operation ------------------------------------- diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/Testable_ObserverHelper.ts b/packages/legend-graph/src/graphManager/action/changeDetection/Testable_ObserverHelper.ts index 15dba6e878f..4eb5fabc43d 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/Testable_ObserverHelper.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/Testable_ObserverHelper.ts @@ -15,29 +15,29 @@ */ import { computed, makeObservable, observable } from 'mobx'; -import { ServiceTest } from '../../../DSLService_Exports'; -import { ServiceTestSuite } from '../../../models/metamodels/pure/packageableElements/service/ServiceTestSuite'; -import { EqualTo } from '../../../models/metamodels/pure/test/assertion/EqualTo'; -import { EqualToJson } from '../../../models/metamodels/pure/test/assertion/EqualToJson'; +import { ServiceTest } from '../../../DSLService_Exports.js'; +import { ServiceTestSuite } from '../../../models/metamodels/pure/packageableElements/service/ServiceTestSuite.js'; +import { EqualTo } from '../../../models/metamodels/pure/test/assertion/EqualTo.js'; +import { EqualToJson } from '../../../models/metamodels/pure/test/assertion/EqualToJson.js'; import { EqualToTDS, type RelationalTDS, -} from '../../../models/metamodels/pure/test/assertion/EqualToTDS'; -import type { TestAssertion } from '../../../models/metamodels/pure/test/assertion/TestAssertion'; +} from '../../../models/metamodels/pure/test/assertion/EqualToTDS.js'; +import type { TestAssertion } from '../../../models/metamodels/pure/test/assertion/TestAssertion.js'; import type { AtomicTest, TestSuite, -} from '../../../models/metamodels/pure/test/Test'; -import { type ObserverContext, skipObserved } from './CoreObserverHelper'; +} from '../../../models/metamodels/pure/test/Test.js'; +import { type ObserverContext, skipObserved } from './CoreObserverHelper.js'; import { observe_ExternalFormatData, observe_RelationalDataTableColumn, observe_RelationalDataTableRow, -} from './DSLData_ObserverHelper'; +} from './DSLData_ObserverHelper.js'; import { observe_ServiceTest, observe_ServiceTestSuite, -} from './DSLService_ObserverHelper'; +} from './DSLService_ObserverHelper.js'; const observe_EqualTo = skipObserved((metamodel: EqualTo): EqualTo => { makeObservable(metamodel, { diff --git a/packages/legend-graph/src/graphManager/action/changeDetection/ValueSpecificationObserver.ts b/packages/legend-graph/src/graphManager/action/changeDetection/ValueSpecificationObserver.ts index 3bdeac449ad..2dcae63a625 100644 --- a/packages/legend-graph/src/graphManager/action/changeDetection/ValueSpecificationObserver.ts +++ b/packages/legend-graph/src/graphManager/action/changeDetection/ValueSpecificationObserver.ts @@ -16,19 +16,19 @@ import { filterByType, Pair } from '@finos/legend-shared'; import { computed, makeObservable, observable } from 'mobx'; -import { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference'; -import { Runtime } from '../../../models/metamodels/pure/packageableElements/runtime/Runtime'; +import { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference.js'; +import { Runtime } from '../../../models/metamodels/pure/packageableElements/runtime/Runtime.js'; import { type AlloySerializationConfigInstanceValue, AlloySerializationConfig, -} from '../../../models/metamodels/pure/valueSpecification/AlloySerializationConfig'; +} from '../../../models/metamodels/pure/valueSpecification/AlloySerializationConfig.js'; import { type RootGraphFetchTreeInstanceValue, type PropertyGraphFetchTreeInstanceValue, type GraphFetchTree, PropertyGraphFetchTree, RootGraphFetchTree, -} from '../../../models/metamodels/pure/valueSpecification/GraphFetchTree'; +} from '../../../models/metamodels/pure/valueSpecification/GraphFetchTree.js'; import type { PrimitiveInstanceValue, EnumValueInstanceValue, @@ -38,24 +38,24 @@ import type { PureListInstanceValue, CollectionInstanceValue, InstanceValue, -} from '../../../models/metamodels/pure/valueSpecification/InstanceValue'; -import type { INTERNAL__UnknownValueSpecification } from '../../../models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification'; +} from '../../../models/metamodels/pure/valueSpecification/InstanceValue.js'; +import type { INTERNAL__UnknownValueSpecification } from '../../../models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.js'; import { type LambdaFunctionInstanceValue, type FunctionType, LambdaFunction, -} from '../../../models/metamodels/pure/valueSpecification/LambdaFunction'; -import type { INTERNAL__PropagatedValue } from '../../../models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue'; +} from '../../../models/metamodels/pure/valueSpecification/LambdaFunction.js'; +import type { INTERNAL__PropagatedValue } from '../../../models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue.js'; import type { FunctionExpression, SimpleFunctionExpression, AbstractPropertyExpression, -} from '../../../models/metamodels/pure/valueSpecification/SimpleFunctionExpression'; +} from '../../../models/metamodels/pure/valueSpecification/SimpleFunctionExpression.js'; import { type ValueSpecificationVisitor, ValueSpecification, -} from '../../../models/metamodels/pure/valueSpecification/ValueSpecification'; -import type { VariableExpression } from '../../../models/metamodels/pure/valueSpecification/VariableExpression'; +} from '../../../models/metamodels/pure/valueSpecification/ValueSpecification.js'; +import type { VariableExpression } from '../../../models/metamodels/pure/valueSpecification/VariableExpression.js'; import { type ObserverContext, skipObservedWithContext, @@ -63,13 +63,13 @@ import { observe_OptionalPackageableElementReference, observe_Multiplicity, observe_PackageableElementReference, -} from './CoreObserverHelper'; +} from './CoreObserverHelper.js'; import { observe_EnumValueReference, observe_GenericTypeReference, observe_PropertyReference, -} from './DomainObserverHelper'; -import { observe_Runtime } from './DSLMapping_ObserverHelper'; +} from './DomainObserverHelper.js'; +import { observe_Runtime } from './DSLMapping_ObserverHelper.js'; const observe_Abstract_ValueSpecification = ( metamodel: ValueSpecification, diff --git a/packages/legend-graph/src/graphManager/action/creation/DSLMapping_ModelCreatorHelper.ts b/packages/legend-graph/src/graphManager/action/creation/DSLMapping_ModelCreatorHelper.ts index cfd4993d867..a5be28270af 100644 --- a/packages/legend-graph/src/graphManager/action/creation/DSLMapping_ModelCreatorHelper.ts +++ b/packages/legend-graph/src/graphManager/action/creation/DSLMapping_ModelCreatorHelper.ts @@ -15,10 +15,10 @@ */ import { isNonNullable } from '@finos/legend-shared'; -import type { EnumValueMapping } from '../../../models/metamodels/pure/packageableElements/mapping/EnumValueMapping'; -import { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping'; -import type { SetImplementationContainer } from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementationContainer'; -import type { StoreConnections } from '../../../models/metamodels/pure/packageableElements/runtime/Runtime'; +import type { EnumValueMapping } from '../../../models/metamodels/pure/packageableElements/mapping/EnumValueMapping.js'; +import { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { SetImplementationContainer } from '../../../models/metamodels/pure/packageableElements/mapping/SetImplementationContainer.js'; +import type { StoreConnections } from '../../../models/metamodels/pure/packageableElements/runtime/Runtime.js'; export const stub_Mapping = (): Mapping => new Mapping(''); diff --git a/packages/legend-graph/src/graphManager/action/creation/DomainModelCreatorHelper.ts b/packages/legend-graph/src/graphManager/action/creation/DomainModelCreatorHelper.ts index 61454b2e2a9..5afc93f185f 100644 --- a/packages/legend-graph/src/graphManager/action/creation/DomainModelCreatorHelper.ts +++ b/packages/legend-graph/src/graphManager/action/creation/DomainModelCreatorHelper.ts @@ -14,23 +14,23 @@ * limitations under the License. */ -import { Profile } from '../../../models/metamodels/pure/packageableElements/domain/Profile'; -import { Tag } from '../../../models/metamodels/pure/packageableElements/domain/Tag'; -import { Enum } from '../../../models/metamodels/pure/packageableElements/domain/Enum'; -import { Stereotype } from '../../../models/metamodels/pure/packageableElements/domain/Stereotype'; -import { TaggedValue } from '../../../models/metamodels/pure/packageableElements/domain/TaggedValue'; -import { TagExplicitReference } from '../../../models/metamodels/pure/packageableElements/domain/TagReference'; -import type { Enumeration } from '../../../models/metamodels/pure/packageableElements/domain/Enumeration'; -import { Class } from '../../../models/metamodels/pure/packageableElements/domain/Class'; -import { Constraint } from '../../../models/metamodels/pure/packageableElements/domain/Constraint'; -import { stub_RawLambda } from './RawValueSpecificationCreatorHelper'; -import type { PackageableElement } from '../../../models/metamodels/pure/packageableElements/PackageableElement'; -import { Multiplicity } from '../../../models/metamodels/pure/packageableElements/domain/Multiplicity'; -import { GenericTypeExplicitReference } from '../../../models/metamodels/pure/packageableElements/domain/GenericTypeReference'; -import { GenericType } from '../../../models/metamodels/pure/packageableElements/domain/GenericType'; -import type { Type } from '../../../models/metamodels/pure/packageableElements/domain/Type'; -import { DerivedProperty } from '../../../models/metamodels/pure/packageableElements/domain/DerivedProperty'; -import { Property } from '../../../models/metamodels/pure/packageableElements/domain/Property'; +import { Profile } from '../../../models/metamodels/pure/packageableElements/domain/Profile.js'; +import { Tag } from '../../../models/metamodels/pure/packageableElements/domain/Tag.js'; +import { Enum } from '../../../models/metamodels/pure/packageableElements/domain/Enum.js'; +import { Stereotype } from '../../../models/metamodels/pure/packageableElements/domain/Stereotype.js'; +import { TaggedValue } from '../../../models/metamodels/pure/packageableElements/domain/TaggedValue.js'; +import { TagExplicitReference } from '../../../models/metamodels/pure/packageableElements/domain/TagReference.js'; +import type { Enumeration } from '../../../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import { Class } from '../../../models/metamodels/pure/packageableElements/domain/Class.js'; +import { Constraint } from '../../../models/metamodels/pure/packageableElements/domain/Constraint.js'; +import { stub_RawLambda } from './RawValueSpecificationCreatorHelper.js'; +import type { PackageableElement } from '../../../models/metamodels/pure/packageableElements/PackageableElement.js'; +import { Multiplicity } from '../../../models/metamodels/pure/packageableElements/domain/Multiplicity.js'; +import { GenericTypeExplicitReference } from '../../../models/metamodels/pure/packageableElements/domain/GenericTypeReference.js'; +import { GenericType } from '../../../models/metamodels/pure/packageableElements/domain/GenericType.js'; +import type { Type } from '../../../models/metamodels/pure/packageableElements/domain/Type.js'; +import { DerivedProperty } from '../../../models/metamodels/pure/packageableElements/domain/DerivedProperty.js'; +import { Property } from '../../../models/metamodels/pure/packageableElements/domain/Property.js'; export const stub_Tag = (profile: Profile): Tag => new Tag(profile, ''); export const stub_TaggedValue = (tag: Tag): TaggedValue => diff --git a/packages/legend-graph/src/graphManager/action/creation/RawValueSpecificationCreatorHelper.ts b/packages/legend-graph/src/graphManager/action/creation/RawValueSpecificationCreatorHelper.ts index 347c2186520..29c2adfc9cd 100644 --- a/packages/legend-graph/src/graphManager/action/creation/RawValueSpecificationCreatorHelper.ts +++ b/packages/legend-graph/src/graphManager/action/creation/RawValueSpecificationCreatorHelper.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { Multiplicity } from '../../../models/metamodels/pure/packageableElements/domain/Multiplicity'; -import type { Type } from '../../../models/metamodels/pure/packageableElements/domain/Type'; -import { PackageableElementExplicitReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference'; -import { RawLambda } from '../../../models/metamodels/pure/rawValueSpecification/RawLambda'; -import { RawVariableExpression } from '../../../models/metamodels/pure/rawValueSpecification/RawVariableExpression'; +import { Multiplicity } from '../../../models/metamodels/pure/packageableElements/domain/Multiplicity.js'; +import type { Type } from '../../../models/metamodels/pure/packageableElements/domain/Type.js'; +import { PackageableElementExplicitReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference.js'; +import { RawLambda } from '../../../models/metamodels/pure/rawValueSpecification/RawLambda.js'; +import { RawVariableExpression } from '../../../models/metamodels/pure/rawValueSpecification/RawVariableExpression.js'; export const stub_RawVariableExpression = (type: Type): RawVariableExpression => new RawVariableExpression( diff --git a/packages/legend-graph/src/graphManager/action/creation/StoreRelational_ModelCreatorHelper.ts b/packages/legend-graph/src/graphManager/action/creation/StoreRelational_ModelCreatorHelper.ts index be5bf5c6932..71d08a3eeef 100644 --- a/packages/legend-graph/src/graphManager/action/creation/StoreRelational_ModelCreatorHelper.ts +++ b/packages/legend-graph/src/graphManager/action/creation/StoreRelational_ModelCreatorHelper.ts @@ -15,8 +15,8 @@ */ import { isEmpty } from '@finos/legend-shared'; -import type { RawRelationalOperationElement } from '../../../models/metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement'; -import { Database } from '../../../StoreRelational_Exports'; +import type { RawRelationalOperationElement } from '../../../models/metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement.js'; +import { Database } from '../../../StoreRelational_Exports.js'; export const stub_RawRelationalOperationElement = (): RawRelationalOperationElement => ({}); diff --git a/packages/legend-graph/src/graphManager/action/execution/ExecutionResultHelper.ts b/packages/legend-graph/src/graphManager/action/execution/ExecutionResultHelper.ts index 85665abafdb..ca60527c7d8 100644 --- a/packages/legend-graph/src/graphManager/action/execution/ExecutionResultHelper.ts +++ b/packages/legend-graph/src/graphManager/action/execution/ExecutionResultHelper.ts @@ -21,7 +21,7 @@ import { TdsExecutionResult, ClassExecutionResult, INTERNAL__UnknownExecutionResult, -} from './ExecutionResult'; +} from './ExecutionResult.js'; // Execution Results often wrap the result values with additional metadata. // This method extracts the actual values from the execution result diff --git a/packages/legend-graph/src/graphManager/action/externalFormat/ExternalFormatDescription.ts b/packages/legend-graph/src/graphManager/action/externalFormat/ExternalFormatDescription.ts index 39dd5937386..e2a7c596c8f 100644 --- a/packages/legend-graph/src/graphManager/action/externalFormat/ExternalFormatDescription.ts +++ b/packages/legend-graph/src/graphManager/action/externalFormat/ExternalFormatDescription.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { GenerationProperty } from '../generation/GenerationConfigurationDescription'; +import type { GenerationProperty } from '../generation/GenerationConfigurationDescription.js'; export class ExternalFormatDescription { name: string; diff --git a/packages/legend-graph/src/graphManager/action/generation/DatabaseBuilderInput.ts b/packages/legend-graph/src/graphManager/action/generation/DatabaseBuilderInput.ts index 951fbaf11a8..d11df1db8d1 100644 --- a/packages/legend-graph/src/graphManager/action/generation/DatabaseBuilderInput.ts +++ b/packages/legend-graph/src/graphManager/action/generation/DatabaseBuilderInput.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { RelationalDatabaseConnection } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection'; +import type { RelationalDatabaseConnection } from '../../../models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; export class DatabasePattern { schemaPattern = ''; diff --git a/packages/legend-graph/src/graphManager/action/query/Query.ts b/packages/legend-graph/src/graphManager/action/query/Query.ts index 66a41385dc4..f91837b5201 100644 --- a/packages/legend-graph/src/graphManager/action/query/Query.ts +++ b/packages/legend-graph/src/graphManager/action/query/Query.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping'; -import type { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference'; -import type { PackageableRuntime } from '../../../models/metamodels/pure/packageableElements/runtime/PackageableRuntime'; +import type { Mapping } from '../../../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { PackageableElementReference } from '../../../models/metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { PackageableRuntime } from '../../../models/metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; export class QueryTaggedValue { profile!: string; diff --git a/packages/legend-graph/src/graphManager/action/query/QuerySearchSpecification.ts b/packages/legend-graph/src/graphManager/action/query/QuerySearchSpecification.ts index e39680b193d..5a3f769e10c 100644 --- a/packages/legend-graph/src/graphManager/action/query/QuerySearchSpecification.ts +++ b/packages/legend-graph/src/graphManager/action/query/QuerySearchSpecification.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { QueryStereotype, QueryTaggedValue } from './Query'; +import type { QueryStereotype, QueryTaggedValue } from './Query.js'; export class QueryProjectCoordinates { groupId!: string; diff --git a/packages/legend-graph/src/graphManager/action/validation/DSLMapping_ValidationHelper.ts b/packages/legend-graph/src/graphManager/action/validation/DSLMapping_ValidationHelper.ts index e9f53f909e9..e22861f24a8 100644 --- a/packages/legend-graph/src/graphManager/action/validation/DSLMapping_ValidationHelper.ts +++ b/packages/legend-graph/src/graphManager/action/validation/DSLMapping_ValidationHelper.ts @@ -15,24 +15,24 @@ */ import { fromGrammarString, isValidJSONString } from '@finos/legend-shared'; -import { ExpectedOutputMappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert'; -import type { InputData } from '../../../models/metamodels/pure/packageableElements/mapping/InputData'; -import type { MappingTest } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTest'; -import type { MappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTestAssert'; -import { FlatDataInputData } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData'; +import { ExpectedOutputMappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.js'; +import type { InputData } from '../../../models/metamodels/pure/packageableElements/mapping/InputData.js'; +import type { MappingTest } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTest.js'; +import type { MappingTestAssert } from '../../../models/metamodels/pure/packageableElements/mapping/MappingTestAssert.js'; +import { FlatDataInputData } from '../../../models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.js'; import { ObjectInputData, ObjectInputType, -} from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData'; -import { RelationalInputData } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData'; -import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper'; -import { isStubbed_RawLambda } from '../creation/RawValueSpecificationCreatorHelper'; -import { DEPRECATED__validate_FlatDataInputData } from './StoreFlatData_ValidationHelper'; -import { DEPRECATED__validation_RelationalInputData } from './StoreRelational_ValidationHelper'; +} from '../../../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.js'; +import { RelationalInputData } from '../../../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.js'; +import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper.js'; +import { isStubbed_RawLambda } from '../creation/RawValueSpecificationCreatorHelper.js'; +import { DEPRECATED__validate_FlatDataInputData } from './StoreFlatData_ValidationHelper.js'; +import { DEPRECATED__validation_RelationalInputData } from './StoreRelational_ValidationHelper.js'; import { type ValidationIssue, createValidationError, -} from './ValidationHelper'; +} from './ValidationHelper.js'; /** * @deprecated diff --git a/packages/legend-graph/src/graphManager/action/validation/DSLService_ValidationHelper.ts b/packages/legend-graph/src/graphManager/action/validation/DSLService_ValidationHelper.ts index 17bf00870e3..7b1a4888e15 100644 --- a/packages/legend-graph/src/graphManager/action/validation/DSLService_ValidationHelper.ts +++ b/packages/legend-graph/src/graphManager/action/validation/DSLService_ValidationHelper.ts @@ -19,13 +19,13 @@ import type { KeyedExecutionParameter, PureExecution, PureSingleExecution, -} from '../../../models/metamodels/pure/packageableElements/service/ServiceExecution'; -import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper'; -import { isStubbed_RawLambda } from '../creation/RawValueSpecificationCreatorHelper'; +} from '../../../models/metamodels/pure/packageableElements/service/ServiceExecution.js'; +import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper.js'; +import { isStubbed_RawLambda } from '../creation/RawValueSpecificationCreatorHelper.js'; import { type ValidationIssue, createValidationError, -} from './ValidationHelper'; +} from './ValidationHelper.js'; export const validate_ServicePattern = ( pattern: string, diff --git a/packages/legend-graph/src/graphManager/action/validation/StoreFlatData_ValidationHelper.ts b/packages/legend-graph/src/graphManager/action/validation/StoreFlatData_ValidationHelper.ts index 4a4ab61f4ef..2adb1bc42a6 100644 --- a/packages/legend-graph/src/graphManager/action/validation/StoreFlatData_ValidationHelper.ts +++ b/packages/legend-graph/src/graphManager/action/validation/StoreFlatData_ValidationHelper.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import type { FlatDataInputData } from '../../../StoreFlatData_Exports'; -import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper'; +import type { FlatDataInputData } from '../../../StoreFlatData_Exports.js'; +import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper.js'; import { type ValidationIssue, createValidationError, -} from './ValidationHelper'; +} from './ValidationHelper.js'; /** * @deprecated diff --git a/packages/legend-graph/src/graphManager/action/validation/StoreRelational_ValidationHelper.ts b/packages/legend-graph/src/graphManager/action/validation/StoreRelational_ValidationHelper.ts index f07c72b11f7..18fc14d2e6e 100644 --- a/packages/legend-graph/src/graphManager/action/validation/StoreRelational_ValidationHelper.ts +++ b/packages/legend-graph/src/graphManager/action/validation/StoreRelational_ValidationHelper.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import type { RelationalInputData } from '../../../StoreRelational_Exports'; -import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper'; +import type { RelationalInputData } from '../../../StoreRelational_Exports.js'; +import { isStubbed_PackageableElement } from '../creation/DomainModelCreatorHelper.js'; import { type ValidationIssue, createValidationError, -} from './ValidationHelper'; +} from './ValidationHelper.js'; /** * @deprecated diff --git a/packages/legend-graph/src/helpers/DSLGeneration_Helper.ts b/packages/legend-graph/src/helpers/DSLGeneration_Helper.ts index 16a586011f2..ecff0ca94d4 100644 --- a/packages/legend-graph/src/helpers/DSLGeneration_Helper.ts +++ b/packages/legend-graph/src/helpers/DSLGeneration_Helper.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { ConfigurationProperty } from '../models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty'; -import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; +import type { ConfigurationProperty } from '../models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.js'; +import type { FileGenerationSpecification } from '../models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; export const getNullableFileGenerationConfig = ( fileGeneration: FileGenerationSpecification, diff --git a/packages/legend-graph/src/helpers/DSLMapping_Helper.ts b/packages/legend-graph/src/helpers/DSLMapping_Helper.ts index d05afb47c09..08c64f4d268 100644 --- a/packages/legend-graph/src/helpers/DSLMapping_Helper.ts +++ b/packages/legend-graph/src/helpers/DSLMapping_Helper.ts @@ -23,21 +23,21 @@ import { uniq, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { EnumerationMapping } from '../models/metamodels/pure/packageableElements/mapping/EnumerationMapping'; -import type { SetImplementation } from '../models/metamodels/pure/packageableElements/mapping/SetImplementation'; -import type { Class } from '../models/metamodels/pure/packageableElements/domain/Class'; -import type { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration'; -import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping'; -import { AggregationAwareSetImplementation } from '../models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation'; -import { RootRelationalInstanceSetImplementation } from '../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import type { PropertyMapping } from '../models/metamodels/pure/packageableElements/mapping/PropertyMapping'; -import type { InstanceSetImplementation } from '../models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; +import type { EnumerationMapping } from '../models/metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; +import type { SetImplementation } from '../models/metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import type { Class } from '../models/metamodels/pure/packageableElements/domain/Class.js'; +import type { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import type { Mapping } from '../models/metamodels/pure/packageableElements/mapping/Mapping.js'; +import { AggregationAwareSetImplementation } from '../models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.js'; +import { RootRelationalInstanceSetImplementation } from '../models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import type { PropertyMapping } from '../models/metamodels/pure/packageableElements/mapping/PropertyMapping.js'; +import type { InstanceSetImplementation } from '../models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; import type { EngineRuntime, IdentifiedConnection, -} from '../models/metamodels/pure/packageableElements/runtime/Runtime'; -import { OperationSetImplementation } from '../models/metamodels/pure/packageableElements/mapping/OperationSetImplementation'; -import { ObjectInputType } from '../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData'; +} from '../models/metamodels/pure/packageableElements/runtime/Runtime.js'; +import { OperationSetImplementation } from '../models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; +import { ObjectInputType } from '../models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.js'; // ----------------------------------------- Mapping ----------------------------------------- diff --git a/packages/legend-graph/src/helpers/DomainHelper.ts b/packages/legend-graph/src/helpers/DomainHelper.ts index 20ba66c9765..bec4c8e4e88 100644 --- a/packages/legend-graph/src/helpers/DomainHelper.ts +++ b/packages/legend-graph/src/helpers/DomainHelper.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import type { PureModel } from '../graph/PureModel'; -import { Class } from '../models/metamodels/pure/packageableElements/domain/Class'; +import type { PureModel } from '../graph/PureModel.js'; +import { Class } from '../models/metamodels/pure/packageableElements/domain/Class.js'; import { CORE_PURE_PATH, ELEMENT_PATH_DELIMITER, RESERVERD_PACKAGE_NAMES, MILESTONING_STEREOTYPE, PRIMITIVE_TYPE, -} from '../MetaModelConst'; -import { Package } from '../models/metamodels/pure/packageableElements/domain/Package'; -import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; +} from '../MetaModelConst.js'; +import { Package } from '../models/metamodels/pure/packageableElements/domain/Package.js'; +import type { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; import { type Clazz, AssertionError, @@ -35,28 +35,28 @@ import { uniqBy, UnsupportedOperationError, } from '@finos/legend-shared'; -import { createPath } from '../MetaModelUtils'; -import type { BasicModel } from '../graph/BasicModel'; -import type { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile'; -import type { Tag } from '../models/metamodels/pure/packageableElements/domain/Tag'; -import type { Stereotype } from '../models/metamodels/pure/packageableElements/domain/Stereotype'; -import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type'; +import { createPath } from '../MetaModelUtils.js'; +import type { BasicModel } from '../graph/BasicModel.js'; +import type { Profile } from '../models/metamodels/pure/packageableElements/domain/Profile.js'; +import type { Tag } from '../models/metamodels/pure/packageableElements/domain/Tag.js'; +import type { Stereotype } from '../models/metamodels/pure/packageableElements/domain/Stereotype.js'; +import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type.js'; import { Measure, Unit, -} from '../models/metamodels/pure/packageableElements/domain/Measure'; -import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration'; -import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType'; -import { Property } from '../models/metamodels/pure/packageableElements/domain/Property'; -import type { Association } from '../models/metamodels/pure/packageableElements/domain/Association'; +} from '../models/metamodels/pure/packageableElements/domain/Measure.js'; +import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration.js'; +import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType.js'; +import { Property } from '../models/metamodels/pure/packageableElements/domain/Property.js'; +import type { Association } from '../models/metamodels/pure/packageableElements/domain/Association.js'; import type { AbstractProperty, PropertyOwner, -} from '../models/metamodels/pure/packageableElements/domain/AbstractProperty'; -import { DerivedProperty } from '../models/metamodels/pure/packageableElements/domain/DerivedProperty'; -import type { Enum } from '../models/metamodels/pure/packageableElements/domain/Enum'; -import type { Constraint } from '../models/metamodels/pure/packageableElements/domain/Constraint'; -import type { GenericType } from '../models/metamodels/pure/packageableElements/domain/GenericType'; +} from '../models/metamodels/pure/packageableElements/domain/AbstractProperty.js'; +import { DerivedProperty } from '../models/metamodels/pure/packageableElements/domain/DerivedProperty.js'; +import type { Enum } from '../models/metamodels/pure/packageableElements/domain/Enum.js'; +import type { Constraint } from '../models/metamodels/pure/packageableElements/domain/Constraint.js'; +import type { GenericType } from '../models/metamodels/pure/packageableElements/domain/GenericType.js'; export const addElementToPackage = ( parent: Package, diff --git a/packages/legend-graph/src/helpers/PureLanguageHelper.ts b/packages/legend-graph/src/helpers/PureLanguageHelper.ts index e43af19e2b7..e0e6df9afc4 100644 --- a/packages/legend-graph/src/helpers/PureLanguageHelper.ts +++ b/packages/legend-graph/src/helpers/PureLanguageHelper.ts @@ -18,11 +18,11 @@ import { MULTIPLICITY_INFINITE, MULTIPLICITY_RANGE_OPERATOR, PRIMITIVE_TYPE, -} from '../MetaModelConst'; -import type { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type'; -import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType'; -import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration'; +} from '../MetaModelConst.js'; +import type { ConcreteFunctionDefinition } from '../models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { Type } from '../models/metamodels/pure/packageableElements/domain/Type.js'; +import { PrimitiveType } from '../models/metamodels/pure/packageableElements/domain/PrimitiveType.js'; +import { Enumeration } from '../models/metamodels/pure/packageableElements/domain/Enumeration.js'; import format from 'date-fns/format'; export enum PURE_ELEMENT_NAME { diff --git a/packages/legend-graph/src/helpers/StoreFlatData_Helper.ts b/packages/legend-graph/src/helpers/StoreFlatData_Helper.ts index 4f8c673e259..ed6b94b1431 100644 --- a/packages/legend-graph/src/helpers/StoreFlatData_Helper.ts +++ b/packages/legend-graph/src/helpers/StoreFlatData_Helper.ts @@ -15,9 +15,9 @@ */ import { guaranteeNonNullable } from '@finos/legend-shared'; -import type { FlatData } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import type { RootFlatDataRecordType } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType'; -import type { FlatDataSection } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection'; +import type { FlatData } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import type { RootFlatDataRecordType } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.js'; +import type { FlatDataSection } from '../models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.js'; export const getRootRecordType = ( section: FlatDataSection, diff --git a/packages/legend-graph/src/helpers/StoreRelational_Helper.ts b/packages/legend-graph/src/helpers/StoreRelational_Helper.ts index 6c05a0d1073..85daae7036a 100644 --- a/packages/legend-graph/src/helpers/StoreRelational_Helper.ts +++ b/packages/legend-graph/src/helpers/StoreRelational_Helper.ts @@ -20,18 +20,18 @@ import { guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { RelationalInputType } from '../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData'; -import { Column } from '../models/metamodels/pure/packageableElements/store/relational/model/Column'; -import { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database'; -import type { Filter } from '../models/metamodels/pure/packageableElements/store/relational/model/Filter'; -import type { Join } from '../models/metamodels/pure/packageableElements/store/relational/model/Join'; +import { RelationalInputType } from '../models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.js'; +import { Column } from '../models/metamodels/pure/packageableElements/store/relational/model/Column.js'; +import { Database } from '../models/metamodels/pure/packageableElements/store/relational/model/Database.js'; +import type { Filter } from '../models/metamodels/pure/packageableElements/store/relational/model/Filter.js'; +import type { Join } from '../models/metamodels/pure/packageableElements/store/relational/model/Join.js'; import { JoinType, type Relation, -} from '../models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -import type { Schema } from '../models/metamodels/pure/packageableElements/store/relational/model/Schema'; -import type { Table } from '../models/metamodels/pure/packageableElements/store/relational/model/Table'; -import type { View } from '../models/metamodels/pure/packageableElements/store/relational/model/View'; +} from '../models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +import type { Schema } from '../models/metamodels/pure/packageableElements/store/relational/model/Schema.js'; +import type { Table } from '../models/metamodels/pure/packageableElements/store/relational/model/Table.js'; +import type { View } from '../models/metamodels/pure/packageableElements/store/relational/model/View.js'; const collectIncludedDatabases = ( results: Set, diff --git a/packages/legend-graph/src/helpers/Testable_Helper.ts b/packages/legend-graph/src/helpers/Testable_Helper.ts index 78f0e0eb7e2..f5145f4414f 100644 --- a/packages/legend-graph/src/helpers/Testable_Helper.ts +++ b/packages/legend-graph/src/helpers/Testable_Helper.ts @@ -15,10 +15,10 @@ */ import { isNonNullable } from '@finos/legend-shared'; -import type { PureModel } from '../graph/PureModel'; -import type { PureGraphManagerPlugin } from '../graphManager/PureGraphManagerPlugin'; -import { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement'; -import type { Testable } from '../models/metamodels/pure/test/Testable'; +import type { PureModel } from '../graph/PureModel.js'; +import type { PureGraphManagerPlugin } from '../graphManager/PureGraphManagerPlugin.js'; +import { PackageableElement } from '../models/metamodels/pure/packageableElements/PackageableElement.js'; +import type { Testable } from '../models/metamodels/pure/test/Testable.js'; export const getNullableTestable = ( id: string, diff --git a/packages/legend-graph/src/helpers/__tests__/DomainHelper.test.ts b/packages/legend-graph/src/helpers/__tests__/DomainHelper.test.ts index 37a963c71c4..8f246bdf1bc 100644 --- a/packages/legend-graph/src/helpers/__tests__/DomainHelper.test.ts +++ b/packages/legend-graph/src/helpers/__tests__/DomainHelper.test.ts @@ -16,8 +16,8 @@ import { test, expect } from '@jest/globals'; import { guaranteeType, unitTest } from '@finos/legend-shared'; -import { Package } from '../../models/metamodels/pure/packageableElements/domain/Package'; -import { getOrCreatePackage } from '../DomainHelper'; +import { Package } from '../../models/metamodels/pure/packageableElements/domain/Package.js'; +import { getOrCreatePackage } from '../DomainHelper.js'; test(unitTest('Get or create package utility properly handle cache'), () => { const root = new Package('ROOT'); diff --git a/packages/legend-graph/src/helpers/__tests__/PureLanguageHelper.test.ts b/packages/legend-graph/src/helpers/__tests__/PureLanguageHelper.test.ts index 4180d64e357..dd978b5f5e6 100644 --- a/packages/legend-graph/src/helpers/__tests__/PureLanguageHelper.test.ts +++ b/packages/legend-graph/src/helpers/__tests__/PureLanguageHelper.test.ts @@ -21,11 +21,11 @@ import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, -} from '../../GraphManagerTestUtils'; +} from '../../GraphManagerTestUtils.js'; import { generateFunctionCallString, generateFunctionSignature, -} from '../../helpers/PureLanguageHelper'; +} from '../../helpers/PureLanguageHelper.js'; afterEach(() => { // running all pending timers and switching to real timers using Jest diff --git a/packages/legend-graph/src/index.ts b/packages/legend-graph/src/index.ts index 3111e30a229..6c1c89653c4 100644 --- a/packages/legend-graph/src/index.ts +++ b/packages/legend-graph/src/index.ts @@ -17,95 +17,95 @@ // --------------------------------------------- PACKAGEABLE ELEMENT -------------------------------------------------- // metamodels -export * from './models/metamodels/pure/Reference'; -export * from './models/metamodels/pure/packageableElements/connection/Connection'; -export * from './models/metamodels/pure/packageableElements/PackageableElement'; -export * from './models/metamodels/pure/packageableElements/PackageableElementReference'; -export { SectionIndex } from './models/metamodels/pure/packageableElements/section/SectionIndex'; +export * from './models/metamodels/pure/Reference.js'; +export * from './models/metamodels/pure/packageableElements/connection/Connection.js'; +export * from './models/metamodels/pure/packageableElements/PackageableElement.js'; +export * from './models/metamodels/pure/packageableElements/PackageableElementReference.js'; +export { SectionIndex } from './models/metamodels/pure/packageableElements/section/SectionIndex.js'; -export { Multiplicity } from './models/metamodels/pure/packageableElements/domain/Multiplicity'; -export { Type } from './models/metamodels/pure/packageableElements/domain/Type'; -export { DataType } from './models/metamodels/pure/packageableElements/domain/DataType'; -export { PrimitiveType } from './models/metamodels/pure/packageableElements/domain/PrimitiveType'; +export { Multiplicity } from './models/metamodels/pure/packageableElements/domain/Multiplicity.js'; +export { Type } from './models/metamodels/pure/packageableElements/domain/Type.js'; +export { DataType } from './models/metamodels/pure/packageableElements/domain/DataType.js'; +export { PrimitiveType } from './models/metamodels/pure/packageableElements/domain/PrimitiveType.js'; export { GenericTypeReference, GenericTypeExplicitReference, -} from './models/metamodels/pure/packageableElements/domain/GenericTypeReference'; -export { GenericType } from './models/metamodels/pure/packageableElements/domain/GenericType'; -export { Class } from './models/metamodels/pure/packageableElements/domain/Class'; -export { type AnnotatedElement } from './models/metamodels/pure/packageableElements/domain/AnnotatedElement'; -export { Package } from './models/metamodels/pure/packageableElements/domain/Package'; -export { Constraint } from './models/metamodels/pure/packageableElements/domain/Constraint'; -export { Association } from './models/metamodels/pure/packageableElements/domain/Association'; -export { Enumeration } from './models/metamodels/pure/packageableElements/domain/Enumeration'; -export { Enum } from './models/metamodels/pure/packageableElements/domain/Enum'; -export { TaggedValue } from './models/metamodels/pure/packageableElements/domain/TaggedValue'; -export { Tag } from './models/metamodels/pure/packageableElements/domain/Tag'; -export { Profile } from './models/metamodels/pure/packageableElements/domain/Profile'; -export { Stereotype } from './models/metamodels/pure/packageableElements/domain/Stereotype'; +} from './models/metamodels/pure/packageableElements/domain/GenericTypeReference.js'; +export { GenericType } from './models/metamodels/pure/packageableElements/domain/GenericType.js'; +export { Class } from './models/metamodels/pure/packageableElements/domain/Class.js'; +export { type AnnotatedElement } from './models/metamodels/pure/packageableElements/domain/AnnotatedElement.js'; +export { Package } from './models/metamodels/pure/packageableElements/domain/Package.js'; +export { Constraint } from './models/metamodels/pure/packageableElements/domain/Constraint.js'; +export { Association } from './models/metamodels/pure/packageableElements/domain/Association.js'; +export { Enumeration } from './models/metamodels/pure/packageableElements/domain/Enumeration.js'; +export { Enum } from './models/metamodels/pure/packageableElements/domain/Enum.js'; +export { TaggedValue } from './models/metamodels/pure/packageableElements/domain/TaggedValue.js'; +export { Tag } from './models/metamodels/pure/packageableElements/domain/Tag.js'; +export { Profile } from './models/metamodels/pure/packageableElements/domain/Profile.js'; +export { Stereotype } from './models/metamodels/pure/packageableElements/domain/Stereotype.js'; export { Measure, Unit, -} from './models/metamodels/pure/packageableElements/domain/Measure'; +} from './models/metamodels/pure/packageableElements/domain/Measure.js'; export { EnumValueReference, EnumValueExplicitReference, -} from './models/metamodels/pure/packageableElements/domain/EnumValueReference'; -export { type AbstractProperty } from './models/metamodels/pure/packageableElements/domain/AbstractProperty'; -export { DerivedProperty } from './models/metamodels/pure/packageableElements/domain/DerivedProperty'; -export { Property } from './models/metamodels/pure/packageableElements/domain/Property'; +} from './models/metamodels/pure/packageableElements/domain/EnumValueReference.js'; +export { type AbstractProperty } from './models/metamodels/pure/packageableElements/domain/AbstractProperty.js'; +export { DerivedProperty } from './models/metamodels/pure/packageableElements/domain/DerivedProperty.js'; +export { Property } from './models/metamodels/pure/packageableElements/domain/Property.js'; export { PropertyReference, PropertyExplicitReference, -} from './models/metamodels/pure/packageableElements/domain/PropertyReference'; -export { ConcreteFunctionDefinition } from './models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; +} from './models/metamodels/pure/packageableElements/domain/PropertyReference.js'; +export { ConcreteFunctionDefinition } from './models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; export { StereotypeReference, StereotypeExplicitReference, -} from './models/metamodels/pure/packageableElements/domain/StereotypeReference'; +} from './models/metamodels/pure/packageableElements/domain/StereotypeReference.js'; export { TagReference, TagExplicitReference, -} from './models/metamodels/pure/packageableElements/domain/TagReference'; +} from './models/metamodels/pure/packageableElements/domain/TagReference.js'; export { RuntimePointer, StoreConnections, -} from './models/metamodels/pure/packageableElements/runtime/Runtime'; +} from './models/metamodels/pure/packageableElements/runtime/Runtime.js'; // metamodel external formats -export { Binding } from './models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding'; -export { ModelUnit } from './models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit'; -export { SchemaSet } from './models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet'; -export { Schema as ExternalFormatSchema } from './models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema'; -export { ExternalFormatConnection } from './models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection'; -export { UrlStream } from './models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream'; -export { DSLExternalFormat_GraphPreset } from './graph/DSLExternalFormat_Extension'; -export { BindingTransformer } from './models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer'; -export * from './graphManager/DSLExternalFormat_PureGraphManagerPlugin'; +export { Binding } from './models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js'; +export { ModelUnit } from './models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit.js'; +export { SchemaSet } from './models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.js'; +export { Schema as ExternalFormatSchema } from './models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema.js'; +export { ExternalFormatConnection } from './models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.js'; +export { UrlStream } from './models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream.js'; +export { DSLExternalFormat_GraphPreset } from './graph/DSLExternalFormat_Extension.js'; +export { BindingTransformer } from './models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer.js'; +export * from './graphManager/DSLExternalFormat_PureGraphManagerPlugin.js'; // V1 protocols -export * from './models/protocols/pure/v1/model/packageableElements/V1_PackageableElement'; -export { V1_StereotypePtr } from './models/protocols/pure/v1/model/packageableElements/domain/V1_StereotypePtr'; -export { V1_TaggedValue } from './models/protocols/pure/v1/model/packageableElements/domain/V1_TaggedValue'; -export { V1_PropertyPointer } from './models/protocols/pure/v1/model/packageableElements/domain/V1_PropertyPointer'; -export { V1_SectionIndex } from './models/protocols/pure/v1/model/packageableElements/section/V1_SectionIndex'; +export * from './models/protocols/pure/v1/model/packageableElements/V1_PackageableElement.js'; +export { V1_StereotypePtr } from './models/protocols/pure/v1/model/packageableElements/domain/V1_StereotypePtr.js'; +export { V1_TaggedValue } from './models/protocols/pure/v1/model/packageableElements/domain/V1_TaggedValue.js'; +export { V1_PropertyPointer } from './models/protocols/pure/v1/model/packageableElements/domain/V1_PropertyPointer.js'; +export { V1_SectionIndex } from './models/protocols/pure/v1/model/packageableElements/section/V1_SectionIndex.js'; // --------------------------------------------- VALUE SPECIFICATION -------------------------------------------------- // metamodels -export { RawLambda } from './models/metamodels/pure/rawValueSpecification/RawLambda'; -export { RawVariableExpression } from './models/metamodels/pure/rawValueSpecification/RawVariableExpression'; -export { INTERNAL__UnknownValueSpecification } from './models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification'; -export { VariableExpression } from './models/metamodels/pure/valueSpecification/VariableExpression'; +export { RawLambda } from './models/metamodels/pure/rawValueSpecification/RawLambda.js'; +export { RawVariableExpression } from './models/metamodels/pure/rawValueSpecification/RawVariableExpression.js'; +export { INTERNAL__UnknownValueSpecification } from './models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.js'; +export { VariableExpression } from './models/metamodels/pure/valueSpecification/VariableExpression.js'; export { AbstractPropertyExpression, SimpleFunctionExpression, FunctionExpression, -} from './models/metamodels/pure/valueSpecification/SimpleFunctionExpression'; +} from './models/metamodels/pure/valueSpecification/SimpleFunctionExpression.js'; export { FunctionType, LambdaFunction, LambdaFunctionInstanceValue, -} from './models/metamodels/pure/valueSpecification/LambdaFunction'; -export { AlloySerializationConfigInstanceValue } from './models/metamodels/pure/valueSpecification/AlloySerializationConfig'; +} from './models/metamodels/pure/valueSpecification/LambdaFunction.js'; +export { AlloySerializationConfigInstanceValue } from './models/metamodels/pure/valueSpecification/AlloySerializationConfig.js'; export { EnumValueInstanceValue, MappingInstanceValue, @@ -115,12 +115,12 @@ export { InstanceValue, CollectionInstanceValue, PrimitiveInstanceValue, -} from './models/metamodels/pure/valueSpecification/InstanceValue'; -export { INTERNAL__PropagatedValue } from './models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue'; +} from './models/metamodels/pure/valueSpecification/InstanceValue.js'; +export { INTERNAL__PropagatedValue } from './models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue.js'; export { ValueSpecification, type ValueSpecificationVisitor, -} from './models/metamodels/pure/valueSpecification/ValueSpecification'; +} from './models/metamodels/pure/valueSpecification/ValueSpecification.js'; export { GraphFetchTree, PropertyGraphFetchTree, @@ -128,203 +128,203 @@ export { GraphFetchTreeInstanceValue, PropertyGraphFetchTreeInstanceValue, RootGraphFetchTreeInstanceValue, -} from './models/metamodels/pure/valueSpecification/GraphFetchTree'; -export { V1_PureGraphManager } from './models/protocols/pure/v1/V1_PureGraphManager'; +} from './models/metamodels/pure/valueSpecification/GraphFetchTree.js'; +export { V1_PureGraphManager } from './models/protocols/pure/v1/V1_PureGraphManager.js'; // V1 protocols -export { V1_AppliedFunction } from './models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedFunction'; -export { V1_AppliedProperty } from './models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedProperty'; -export { V1_Collection } from './models/protocols/pure/v1/model/valueSpecification/raw/V1_Collection'; -export { V1_Lambda } from './models/protocols/pure/v1/model/valueSpecification/raw/V1_Lambda'; -export { V1_Variable } from './models/protocols/pure/v1/model/valueSpecification/V1_Variable'; -export { V1_ValueSpecification } from './models/protocols/pure/v1/model/valueSpecification/V1_ValueSpecification'; -export { V1_Multiplicity } from './models/protocols/pure/v1/model/packageableElements/domain/V1_Multiplicity'; -export { V1_ExternalFormatDescription } from './models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatDescription'; -export { V1_ExternalFormatModelGenerationInput } from './models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration'; +export { V1_AppliedFunction } from './models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedFunction.js'; +export { V1_AppliedProperty } from './models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedProperty.js'; +export { V1_Collection } from './models/protocols/pure/v1/model/valueSpecification/raw/V1_Collection.js'; +export { V1_Lambda } from './models/protocols/pure/v1/model/valueSpecification/raw/V1_Lambda.js'; +export { V1_Variable } from './models/protocols/pure/v1/model/valueSpecification/V1_Variable.js'; +export { V1_ValueSpecification } from './models/protocols/pure/v1/model/valueSpecification/V1_ValueSpecification.js'; +export { V1_Multiplicity } from './models/protocols/pure/v1/model/packageableElements/domain/V1_Multiplicity.js'; +export { V1_ExternalFormatDescription } from './models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatDescription.js'; +export { V1_ExternalFormatModelGenerationInput } from './models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.js'; // --------------------------------------------- EXECUTION PLAN -------------------------------------------------- -export * from './models/metamodels/pure/executionPlan/ExecutionPlan'; -export { ExecutionNode } from './models/metamodels/pure/executionPlan/nodes/ExecutionNode'; -export { SQLExecutionNode } from './models/metamodels/pure/executionPlan/nodes/SQLExecutionNode'; -export { SQLResultColumn } from './models/metamodels/pure/executionPlan/nodes/SQLResultColumn'; -export { RelationalTDSInstantiationExecutionNode } from './models/metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode'; -export { ResultType } from './models/metamodels/pure/executionPlan/result/ResultType'; -export { TDSResultType } from './models/metamodels/pure/executionPlan/result/TDSResultType'; +export * from './models/metamodels/pure/executionPlan/ExecutionPlan.js'; +export { ExecutionNode } from './models/metamodels/pure/executionPlan/nodes/ExecutionNode.js'; +export { SQLExecutionNode } from './models/metamodels/pure/executionPlan/nodes/SQLExecutionNode.js'; +export { SQLResultColumn } from './models/metamodels/pure/executionPlan/nodes/SQLResultColumn.js'; +export { RelationalTDSInstantiationExecutionNode } from './models/metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode.js'; +export { ResultType } from './models/metamodels/pure/executionPlan/result/ResultType.js'; +export { TDSResultType } from './models/metamodels/pure/executionPlan/result/TDSResultType.js'; // --------------------------------------------- HELPER -------------------------------------------------- -export * from './MetaModelUtils'; -export * from './MetaModelConst'; +export * from './MetaModelUtils.js'; +export * from './MetaModelConst.js'; -export * from './helpers/DomainHelper'; -export * from './helpers/Testable_Helper'; -export * from './helpers/DSLMapping_Helper'; -export * from './helpers/StoreRelational_Helper'; -export * from './helpers/StoreFlatData_Helper'; -export * from './helpers/DSLGeneration_Helper'; +export * from './helpers/DomainHelper.js'; +export * from './helpers/Testable_Helper.js'; +export * from './helpers/DSLMapping_Helper.js'; +export * from './helpers/StoreRelational_Helper.js'; +export * from './helpers/StoreFlatData_Helper.js'; +export * from './helpers/DSLGeneration_Helper.js'; -export * from './helpers/PureLanguageHelper'; +export * from './helpers/PureLanguageHelper.js'; // --------------------------------------------- GRAPH -------------------------------------------------- -export { DependencyManager } from './graph/DependencyManager'; -export { BasicModel } from './graph/BasicModel'; +export { DependencyManager } from './graph/DependencyManager.js'; +export { BasicModel } from './graph/BasicModel.js'; export { CoreModel, SystemModel, GenerationModel, PureModel, -} from './graph/PureModel'; -export * from './graph/PureGraphExtension'; -export * from './graph/PureGraphPlugin'; +} from './graph/PureModel.js'; +export * from './graph/PureGraphExtension.js'; +export * from './graph/PureGraphPlugin.js'; // --------------------------------------------- GRAPH MANAGER -------------------------------------------------- -export { type GraphPluginManager } from './GraphPluginManager'; -export { CorePureGraphManagerPlugin } from './graphManager/CorePureGraphManagerPlugin'; -export { GraphManagerState } from './GraphManagerState'; -export * from './GraphManagerStateProvider'; -export * from './GraphManagerTestUtils'; +export { type GraphPluginManager } from './GraphPluginManager.js'; +export { CorePureGraphManagerPlugin } from './graphManager/CorePureGraphManagerPlugin.js'; +export { GraphManagerState } from './GraphManagerState.js'; +export * from './GraphManagerStateProvider.js'; +export * from './GraphManagerTestUtils.js'; export { AbstractPureGraphManager, type GraphBuilderOptions, -} from './graphManager/AbstractPureGraphManager'; -export { GraphBuilderReport } from './graphManager/GraphBuilderReport'; -export { GraphManagerTelemetry } from './graphManager/GraphManagerTelemetry'; -export * from './graphManager/GraphManagerUtils'; -export * from './graphManager/GraphManagerEvent'; -export * from './graphManager/DSLMapping_PureGraphManagerPlugin_Extension'; -export * from './graphManager/DSLGenerationSpecification_PureGraphManagerPlugin_Extension'; +} from './graphManager/AbstractPureGraphManager.js'; +export { GraphBuilderReport } from './graphManager/GraphBuilderReport.js'; +export { GraphManagerTelemetry } from './graphManager/GraphManagerTelemetry.js'; +export * from './graphManager/GraphManagerUtils.js'; +export * from './graphManager/GraphManagerEvent.js'; +export * from './graphManager/DSLMapping_PureGraphManagerPlugin_Extension.js'; +export * from './graphManager/DSLGenerationSpecification_PureGraphManagerPlugin_Extension.js'; export { ExecutionResult, TdsExecutionResult, RawExecutionResult, EXECUTION_SERIALIZATION_FORMAT, -} from './graphManager/action/execution/ExecutionResult'; -export { ExternalFormatDescription } from './graphManager/action/externalFormat/ExternalFormatDescription'; -export * from './graphManager/action/execution/ExecutionResultHelper'; -export * from './graphManager/PureGraphManagerPlugin'; -export * from './graphManager/action/query/Query'; -export * from './graphManager/action/query/QuerySearchSpecification'; -export * from './graphManager/action/EngineError'; -export * from './graphManager/action/SourceInformationHelper'; -export * from './graphManager/action/generation/ImportConfigurationDescription'; -export * from './graphManager/action/generation/DatabaseBuilderInput'; -export * from './graphManager/action/generation/GenerationConfigurationDescription'; -export { GenerationOutput } from './graphManager/action/generation/GenerationOutput'; -export { ServiceExecutionMode } from './graphManager/action/service/ServiceExecutionMode'; -export { ServiceRegistrationResult } from './graphManager/action/service/ServiceRegistrationResult'; -export { DEPRECATED__ServiceTestResult } from './graphManager/action/service/DEPRECATED__ServiceTestResult'; -export { SourceInformation } from './graphManager/action/SourceInformation'; +} from './graphManager/action/execution/ExecutionResult.js'; +export { ExternalFormatDescription } from './graphManager/action/externalFormat/ExternalFormatDescription.js'; +export * from './graphManager/action/execution/ExecutionResultHelper.js'; +export * from './graphManager/PureGraphManagerPlugin.js'; +export * from './graphManager/action/query/Query.js'; +export * from './graphManager/action/query/QuerySearchSpecification.js'; +export * from './graphManager/action/EngineError.js'; +export * from './graphManager/action/SourceInformationHelper.js'; +export * from './graphManager/action/generation/ImportConfigurationDescription.js'; +export * from './graphManager/action/generation/DatabaseBuilderInput.js'; +export * from './graphManager/action/generation/GenerationConfigurationDescription.js'; +export { GenerationOutput } from './graphManager/action/generation/GenerationOutput.js'; +export { ServiceExecutionMode } from './graphManager/action/service/ServiceExecutionMode.js'; +export { ServiceRegistrationResult } from './graphManager/action/service/ServiceRegistrationResult.js'; +export { DEPRECATED__ServiceTestResult } from './graphManager/action/service/DEPRECATED__ServiceTestResult.js'; +export { SourceInformation } from './graphManager/action/SourceInformation.js'; -export { getGraphManager } from './models/protocols/pure/Pure'; -export * from './models/protocols/pure/PureProtocolProcessorPlugin'; +export { getGraphManager } from './models/protocols/pure/Pure.js'; +export * from './models/protocols/pure/PureProtocolProcessorPlugin.js'; // --------------------------------------------- TRANSFORMATION -------------------------------------------------- -export { V1_transformConnection } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer'; -export { V1_transformRuntime } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer'; -export { V1_transformPackageableElement } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer'; +export { V1_transformConnection } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js'; +export { V1_transformRuntime } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.js'; +export { V1_transformPackageableElement } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.js'; export { V1_transformStereotype, V1_transformTaggedValue, -} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_DomainTransformer'; -export { V1_buildTaggedValue } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper'; -export { V1_PureModelContextData } from './models/protocols/pure/v1/model/context/V1_PureModelContextData'; -export * from './models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext'; -export * from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationPathResolver'; -export * from './models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementBuilder'; -export { V1_RawLambda } from './models/protocols/pure/v1/model/rawValueSpecification/V1_RawLambda'; -export { V1_ProcessingContext } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext'; -export { V1_ProtocolToMetaModelConnectionBuilder } from './models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder'; -export * from './models/protocols/pure/v1/transformation/pureGraph/from/V1_GraphTransformerContext'; +} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.js'; +export { V1_buildTaggedValue } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js'; +export { V1_PureModelContextData } from './models/protocols/pure/v1/model/context/V1_PureModelContextData.js'; +export * from './models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.js'; +export * from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationPathResolver.js'; +export * from './models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementBuilder.js'; +export { V1_RawLambda } from './models/protocols/pure/v1/model/rawValueSpecification/V1_RawLambda.js'; +export { V1_ProcessingContext } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.js'; +export { V1_ProtocolToMetaModelConnectionBuilder } from './models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.js'; +export * from './models/protocols/pure/v1/transformation/pureGraph/from/V1_GraphTransformerContext.js'; export { V1_initPackageableElement, V1_transformElementReference, -} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_CoreTransformerHelper'; +} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_CoreTransformerHelper.js'; export { V1_RawValueSpecificationTransformer, V1_transformRawLambda, -} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer'; +} from './models/protocols/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.js'; export { V1_deserializeConnectionValue, V1_serializeConnectionValue, -} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper'; -export { V1_runtimePointerModelSchema } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper'; +} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.js'; +export { V1_runtimePointerModelSchema } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js'; export { V1_rawLambdaModelSchema, V1_deserializeRawValueSpecification, V1_serializeRawValueSpecification, -} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper'; -export { V1_transformPropertyReference } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer'; -export { V1_buildEngineRuntime } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper'; -export { V1_EngineServerClient } from './models/protocols/pure/v1/engine/V1_EngineServerClient'; -export { V1_Engine } from './models/protocols/pure/v1/engine/V1_Engine'; +} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js'; +export { V1_transformPropertyReference } from './models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.js'; +export { V1_buildEngineRuntime } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js'; +export { V1_EngineServerClient } from './models/protocols/pure/v1/engine/V1_EngineServerClient.js'; +export { V1_Engine } from './models/protocols/pure/v1/engine/V1_Engine.js'; export { V1_entitiesToPureModelContextData, V1_deserializePureModelContextData, -} from './models/protocols/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization'; +} from './models/protocols/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.js'; export { V1_propertyPointerModelSchema, V1_stereotypePtrSchema, V1_taggedValueSchema, -} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper'; -export { V1_serializeValueSpecification } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer'; -export { V1_ValueSpecificationBuilder } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper'; -export * from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; -export * from './models/protocols/pure/v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper'; -export * from './models/ModelGenerationConfiguration'; -export * from './models/protocols/pure/MappingGeneration_PureProtocolProcessorPlugin_Extension'; +} from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js'; +export { V1_serializeValueSpecification } from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.js'; +export { V1_ValueSpecificationBuilder } from './models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js'; +export * from './models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; +export * from './models/protocols/pure/v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper.js'; +export * from './models/ModelGenerationConfiguration.js'; +export * from './models/protocols/pure/MappingGeneration_PureProtocolProcessorPlugin_Extension.js'; // --------------------------------------------- TESTING -------------------------------------------------- -export * from './models/metamodels/pure/test/Testable'; -export * from './models/metamodels/pure/test/result/RunTestsTestableInput'; -export * from './models/metamodels/pure/test/result/TestResult'; -export * from './models/metamodels/pure/test/assertion/status/AssertionStatus'; -export * from './models/metamodels/pure/test/assertion/status/AssertFail'; -export * from './models/metamodels/pure/test/assertion/status/AssertPass'; -export * from './models/metamodels/pure/test/assertion/status/EqualToJsonAssertFail'; -export * from './models/metamodels/pure/test/assertion/TestAssertion'; -export * from './models/metamodels/pure/test/Test'; -export * from './models/metamodels/pure/test/result/AtomicTestId'; +export * from './models/metamodels/pure/test/Testable.js'; +export * from './models/metamodels/pure/test/result/RunTestsTestableInput.js'; +export * from './models/metamodels/pure/test/result/TestResult.js'; +export * from './models/metamodels/pure/test/assertion/status/AssertionStatus.js'; +export * from './models/metamodels/pure/test/assertion/status/AssertFail.js'; +export * from './models/metamodels/pure/test/assertion/status/AssertPass.js'; +export * from './models/metamodels/pure/test/assertion/status/EqualToJsonAssertFail.js'; +export * from './models/metamodels/pure/test/assertion/TestAssertion.js'; +export * from './models/metamodels/pure/test/Test.js'; +export * from './models/metamodels/pure/test/result/AtomicTestId.js'; // --------------------------------------------- VALIDATION -------------------------------------------------- -export * from './graphManager/action/validation/ValidationHelper'; -export * from './graphManager/action/validation/DSLService_ValidationHelper'; -export * from './graphManager/action/validation/DSLMapping_ValidationHelper'; +export * from './graphManager/action/validation/ValidationHelper.js'; +export * from './graphManager/action/validation/DSLService_ValidationHelper.js'; +export * from './graphManager/action/validation/DSLMapping_ValidationHelper.js'; // --------------------------------------------- OBSERVER -------------------------------------------------- -export * from './graphManager/action/changeDetection/PackageableElementObserver'; -export * from './graphManager/action/changeDetection/CoreObserverHelper'; -export * from './graphManager/action/changeDetection/DomainObserverHelper'; -export * from './graphManager/action/changeDetection/DSLMapping_ObserverHelper'; -export * from './graphManager/action/changeDetection/RawValueSpecificationObserver'; -export * from './graphManager/action/changeDetection/ValueSpecificationObserver'; -export * from './graphManager/action/changeDetection/StoreRelational_ObserverHelper'; -export * from './graphManager/action/changeDetection/StoreFlatData_ObserverHelper'; -export * from './graphManager/action/changeDetection/GraphObserverHelper'; -export * from './graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper'; -export * from './graphManager/action/changeDetection/DSLService_ObserverHelper'; -export * from './graphManager/action/changeDetection/DSLGenerationSpecification_ObserverHelper'; +export * from './graphManager/action/changeDetection/PackageableElementObserver.js'; +export * from './graphManager/action/changeDetection/CoreObserverHelper.js'; +export * from './graphManager/action/changeDetection/DomainObserverHelper.js'; +export * from './graphManager/action/changeDetection/DSLMapping_ObserverHelper.js'; +export * from './graphManager/action/changeDetection/RawValueSpecificationObserver.js'; +export * from './graphManager/action/changeDetection/ValueSpecificationObserver.js'; +export * from './graphManager/action/changeDetection/StoreRelational_ObserverHelper.js'; +export * from './graphManager/action/changeDetection/StoreFlatData_ObserverHelper.js'; +export * from './graphManager/action/changeDetection/GraphObserverHelper.js'; +export * from './graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.js'; +export * from './graphManager/action/changeDetection/DSLService_ObserverHelper.js'; +export * from './graphManager/action/changeDetection/DSLGenerationSpecification_ObserverHelper.js'; -export * from './graphManager/action/changeDetection/EngineObserverHelper'; +export * from './graphManager/action/changeDetection/EngineObserverHelper.js'; // --------------------------------------------- CREATOR -------------------------------------------------- -export * from './graphManager/action/creation/DomainModelCreatorHelper'; -export * from './graphManager/action/creation/DSLMapping_ModelCreatorHelper'; -export * from './graphManager/action/creation/RawValueSpecificationCreatorHelper'; -export * from './graphManager/action/creation/StoreRelational_ModelCreatorHelper'; +export * from './graphManager/action/creation/DomainModelCreatorHelper.js'; +export * from './graphManager/action/creation/DSLMapping_ModelCreatorHelper.js'; +export * from './graphManager/action/creation/RawValueSpecificationCreatorHelper.js'; +export * from './graphManager/action/creation/StoreRelational_ModelCreatorHelper.js'; // --------------------------------------------- TO BE MODULARIZED -------------------------------------------------- -export * from './DSLMapping_Exports'; -export * from './DSLService_Exports'; -export * from './DSLGenerationSpecification_Exports'; -export * from './StoreFlatData_Exports'; -export * from './StoreRelational_Exports'; -export * from './DSLData_Exports'; +export * from './DSLMapping_Exports.js'; +export * from './DSLService_Exports.js'; +export * from './DSLGenerationSpecification_Exports.js'; +export * from './StoreFlatData_Exports.js'; +export * from './StoreRelational_Exports.js'; +export * from './DSLData_Exports.js'; diff --git a/packages/legend-graph/src/models/metamodels/pure/data/EmbeddedData.ts b/packages/legend-graph/src/models/metamodels/pure/data/EmbeddedData.ts index e20b25861d6..7ab6ba19ea5 100644 --- a/packages/legend-graph/src/models/metamodels/pure/data/EmbeddedData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/data/EmbeddedData.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst'; -import { hashObjectWithoutSourceInformation } from '../../../../MetaModelUtils'; -import type { DataElement } from '../packageableElements/data/DataElement'; -import type { Class } from '../packageableElements/domain/Class'; -import type { PackageableElementReference } from '../packageableElements/PackageableElementReference'; -import type { RelationalData } from './RelationalData'; +import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst.js'; +import { hashObjectWithoutSourceInformation } from '../../../../MetaModelUtils.js'; +import type { DataElement } from '../packageableElements/data/DataElement.js'; +import type { Class } from '../packageableElements/domain/Class.js'; +import type { PackageableElementReference } from '../packageableElements/PackageableElementReference.js'; +import type { RelationalData } from './RelationalData.js'; export interface EmbeddedDataVisitor { visit_EmbeddedData(embeddedData: EmbeddedData): T; diff --git a/packages/legend-graph/src/models/metamodels/pure/data/RelationalData.ts b/packages/legend-graph/src/models/metamodels/pure/data/RelationalData.ts index aa76c6cc115..28ed4f19d89 100644 --- a/packages/legend-graph/src/models/metamodels/pure/data/RelationalData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/data/RelationalData.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst'; -import { type EmbeddedDataVisitor, EmbeddedData } from './EmbeddedData'; +import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst.js'; +import { type EmbeddedDataVisitor, EmbeddedData } from './EmbeddedData.js'; export class RelationalDataTableColumn implements Hashable { value!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/ExecutionPlan.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/ExecutionPlan.ts index 754f30bde98..cea80608b07 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/ExecutionPlan.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/ExecutionPlan.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { ExecutionNode } from './nodes/ExecutionNode'; +import type { ExecutionNode } from './nodes/ExecutionNode.js'; export type RawExecutionPlan = object; diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/ExecutionNode.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/ExecutionNode.ts index 28c1157fb9a..1bfd503d63b 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/ExecutionNode.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/ExecutionNode.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { Multiplicity } from '../../packageableElements/domain/Multiplicity'; -import type { ResultType } from '../result/ResultType'; +import type { Multiplicity } from '../../packageableElements/domain/Multiplicity.js'; +import type { ResultType } from '../result/ResultType.js'; export class ExecutionNode { // fromCluster : ClusteredValueSpecification[0..1]; diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode.ts index 864ee573d7d..34227b2dd13 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { ExecutionNode } from './ExecutionNode'; +import { ExecutionNode } from './ExecutionNode.js'; export abstract class RelationalInstantiationExecutionNode extends ExecutionNode {} diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLExecutionNode.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLExecutionNode.ts index f9751a272ef..2ec0d44fb0e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLExecutionNode.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLExecutionNode.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { DatabaseConnection } from '../../packageableElements/store/relational/connection/RelationalDatabaseConnection'; -import { ExecutionNode } from './ExecutionNode'; -import type { SQLResultColumn } from './SQLResultColumn'; +import type { DatabaseConnection } from '../../packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; +import { ExecutionNode } from './ExecutionNode.js'; +import type { SQLResultColumn } from './SQLResultColumn.js'; export class SQLExecutionNode extends ExecutionNode { sqlQuery!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLResultColumn.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLResultColumn.ts index 1d115a50024..46fd729122f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLResultColumn.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/nodes/SQLResultColumn.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { RelationalDataType } from '../../packageableElements/store/relational/model/RelationalDataType'; +import type { RelationalDataType } from '../../packageableElements/store/relational/model/RelationalDataType.js'; export class SQLResultColumn { label!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/DataTypeResultType.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/DataTypeResultType.ts index 082a906e0da..83a1a32a068 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/DataTypeResultType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/DataTypeResultType.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { ResultType } from './ResultType'; +import { ResultType } from './ResultType.js'; export class DataTypeResultType extends ResultType {} diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/ResultType.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/ResultType.ts index 14e536a9d4d..d520ffe6b71 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/ResultType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/ResultType.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { GenericTypeReference } from '../../packageableElements/domain/GenericTypeReference'; -import type { Type } from '../../packageableElements/domain/Type'; -import type { PackageableElementReference } from '../../packageableElements/PackageableElementReference'; +import type { GenericTypeReference } from '../../packageableElements/domain/GenericTypeReference.js'; +import type { Type } from '../../packageableElements/domain/Type.js'; +import type { PackageableElementReference } from '../../packageableElements/PackageableElementReference.js'; export class ResultType { type!: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSColumn.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSColumn.ts index cbfe4279b73..2fc9d073cc6 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSColumn.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSColumn.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { DataType } from '../../packageableElements/domain/DataType'; -import type { PackageableElementReference } from '../../packageableElements/PackageableElementReference'; +import type { DataType } from '../../packageableElements/domain/DataType.js'; +import type { PackageableElementReference } from '../../packageableElements/PackageableElementReference.js'; export class TDSColumn { name!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSResultType.ts b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSResultType.ts index b11bb3b4a58..c3c5365613f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSResultType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/executionPlan/result/TDSResultType.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { ResultType } from './ResultType'; -import type { TDSColumn } from './TDSColumn'; +import { ResultType } from './ResultType.js'; +import type { TDSColumn } from './TDSColumn.js'; export class TDSResultType extends ResultType { tdsColumns: TDSColumn[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElement.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElement.ts index 170b1c9ae2a..63a045f0339 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElement.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElement.ts @@ -23,25 +23,25 @@ import { import { CORE_HASH_STRUCTURE, ELEMENT_PATH_DELIMITER, -} from '../../../../MetaModelConst'; -import type { Package } from './domain/Package'; -import type { Profile } from './domain/Profile'; -import type { Enumeration } from './domain/Enumeration'; -import type { Class } from './domain/Class'; -import type { Association } from './domain/Association'; -import type { ConcreteFunctionDefinition } from './domain/ConcreteFunctionDefinition'; -import type { FlatData } from './store/flatData/model/FlatData'; -import type { Mapping } from './mapping/Mapping'; -import type { Service } from './service/Service'; -import type { PrimitiveType } from './domain/PrimitiveType'; -import type { Database } from './store/relational/model/Database'; -import type { PackageableConnection } from './connection/PackageableConnection'; -import type { PackageableRuntime } from './runtime/PackageableRuntime'; -import type { FileGenerationSpecification } from './fileGeneration/FileGenerationSpecification'; -import type { GenerationSpecification } from './generationSpecification/GenerationSpecification'; -import type { Measure } from './domain/Measure'; -import type { SectionIndex } from './section/SectionIndex'; -import type { DataElement } from './data/DataElement'; +} from '../../../../MetaModelConst.js'; +import type { Package } from './domain/Package.js'; +import type { Profile } from './domain/Profile.js'; +import type { Enumeration } from './domain/Enumeration.js'; +import type { Class } from './domain/Class.js'; +import type { Association } from './domain/Association.js'; +import type { ConcreteFunctionDefinition } from './domain/ConcreteFunctionDefinition.js'; +import type { FlatData } from './store/flatData/model/FlatData.js'; +import type { Mapping } from './mapping/Mapping.js'; +import type { Service } from './service/Service.js'; +import type { PrimitiveType } from './domain/PrimitiveType.js'; +import type { Database } from './store/relational/model/Database.js'; +import type { PackageableConnection } from './connection/PackageableConnection.js'; +import type { PackageableRuntime } from './runtime/PackageableRuntime.js'; +import type { FileGenerationSpecification } from './fileGeneration/FileGenerationSpecification.js'; +import type { GenerationSpecification } from './generationSpecification/GenerationSpecification.js'; +import type { Measure } from './domain/Measure.js'; +import type { SectionIndex } from './section/SectionIndex.js'; +import type { DataElement } from './data/DataElement.js'; export interface PackageableElementVisitor { visit_PackageableElement(element: PackageableElement): T; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElementReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElementReference.ts index 2c098ef63ac..3f90d39b6ca 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElementReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/PackageableElementReference.ts @@ -15,9 +15,9 @@ */ import { assertType } from '@finos/legend-shared'; -import type { PackageableElement } from './PackageableElement'; -import type { Section } from './section/Section'; -import { RequiredReference, OptionalReference } from '../Reference'; +import type { PackageableElement } from './PackageableElement.js'; +import type { Section } from './section/Section.js'; +import { RequiredReference, OptionalReference } from '../Reference.js'; export abstract class PackageableElementReference< T extends PackageableElement, diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/Connection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/Connection.ts index 50c48106624..02e69567463 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/Connection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/Connection.ts @@ -15,15 +15,15 @@ */ import { hashArray, uuid, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { Store } from '../store/Store'; -import type { JsonModelConnection } from '../store/modelToModel/connection/JsonModelConnection'; -import type { XmlModelConnection } from '../store/modelToModel/connection/XmlModelConnection'; -import type { FlatDataConnection } from '../store/flatData/connection/FlatDataConnection'; -import type { PackageableConnection } from './PackageableConnection'; -import type { RelationalDatabaseConnection } from '../store/relational/connection/RelationalDatabaseConnection'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import type { ModelChainConnection } from '../store/modelToModel/connection/ModelChainConnection'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { Store } from '../store/Store.js'; +import type { JsonModelConnection } from '../store/modelToModel/connection/JsonModelConnection.js'; +import type { XmlModelConnection } from '../store/modelToModel/connection/XmlModelConnection.js'; +import type { FlatDataConnection } from '../store/flatData/connection/FlatDataConnection.js'; +import type { PackageableConnection } from './PackageableConnection.js'; +import type { RelationalDatabaseConnection } from '../store/relational/connection/RelationalDatabaseConnection.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import type { ModelChainConnection } from '../store/modelToModel/connection/ModelChainConnection.js'; export interface ConnectionVisitor { visit_Connection(connection: Connection): T; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/PackageableConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/PackageableConnection.ts index 909e6bacec2..5ad9e87f726 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/PackageableConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/connection/PackageableConnection.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { Connection } from './Connection'; +} from '../PackageableElement.js'; +import type { Connection } from './Connection.js'; export class PackageableConnection extends PackageableElement diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/data/DataElement.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/data/DataElement.ts index b6e2a27345c..98f0721e7c7 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/data/DataElement.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/data/DataElement.ts @@ -15,14 +15,14 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { EmbeddedData } from '../../data/EmbeddedData'; -import type { StereotypeReference } from '../domain/StereotypeReference'; -import type { TaggedValue } from '../domain/TaggedValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { EmbeddedData } from '../../data/EmbeddedData.js'; +import type { StereotypeReference } from '../domain/StereotypeReference.js'; +import type { TaggedValue } from '../domain/TaggedValue.js'; import { PackageableElement, type PackageableElementVisitor, -} from '../PackageableElement'; +} from '../PackageableElement.js'; export class DataElement extends PackageableElement implements Hashable { stereotypes: StereotypeReference[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AbstractProperty.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AbstractProperty.ts index e7be1d3e766..3b44094bf1e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AbstractProperty.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AbstractProperty.ts @@ -15,11 +15,11 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { GenericTypeReference } from './GenericTypeReference'; -import type { Multiplicity } from './Multiplicity'; -import type { Class } from './Class'; -import type { Association } from './Association'; -import type { AnnotatedElement } from './AnnotatedElement'; +import type { GenericTypeReference } from './GenericTypeReference.js'; +import type { Multiplicity } from './Multiplicity.js'; +import type { Class } from './Class.js'; +import type { Association } from './Association.js'; +import type { AnnotatedElement } from './AnnotatedElement.js'; // NOTE: In PURE we have `Class` and `Association` extends `PropertyOwner`, which extends `PackageableElement` export type PropertyOwner = Class | Association; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AnnotatedElement.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AnnotatedElement.ts index 1f95c00a254..8b26d3ac1af 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AnnotatedElement.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/AnnotatedElement.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { TaggedValue } from './TaggedValue'; -import type { StereotypeReference } from './StereotypeReference'; +import type { TaggedValue } from './TaggedValue.js'; +import type { StereotypeReference } from './StereotypeReference.js'; export interface AnnotatedElement { stereotypes: StereotypeReference[]; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Association.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Association.ts index bc2bfa7ac4c..807083366a0 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Association.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Association.ts @@ -15,21 +15,21 @@ */ import { type Hashable, type Writable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { Property } from './Property'; -import type { AnnotatedElement } from './AnnotatedElement'; -import type { TaggedValue } from './TaggedValue'; -import type { StereotypeReference } from './StereotypeReference'; -import type { DerivedProperty } from './DerivedProperty'; -import type { AbstractProperty } from './AbstractProperty'; +} from '../PackageableElement.js'; +import type { Property } from './Property.js'; +import type { AnnotatedElement } from './AnnotatedElement.js'; +import type { TaggedValue } from './TaggedValue.js'; +import type { StereotypeReference } from './StereotypeReference.js'; +import type { DerivedProperty } from './DerivedProperty.js'; +import type { AbstractProperty } from './AbstractProperty.js'; import { stub_Class, stub_Property, -} from '../../../../../graphManager/action/creation/DomainModelCreatorHelper'; +} from '../../../../../graphManager/action/creation/DomainModelCreatorHelper.js'; /** * Assocation needs exactly 2 properties (for 2 classes, not enumeration, not primitive), e.g. diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Class.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Class.ts index 57e5c187b6d..c9f4224a7a8 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Class.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Class.ts @@ -15,16 +15,16 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { Type } from './Type'; -import type { Property } from './Property'; -import type { Constraint } from './Constraint'; -import type { DerivedProperty } from './DerivedProperty'; -import type { AbstractProperty } from './AbstractProperty'; -import type { PackageableElementVisitor } from '../PackageableElement'; -import type { StereotypeReference } from './StereotypeReference'; -import type { TaggedValue } from './TaggedValue'; -import type { GenericTypeReference } from './GenericTypeReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { Type } from './Type.js'; +import type { Property } from './Property.js'; +import type { Constraint } from './Constraint.js'; +import type { DerivedProperty } from './DerivedProperty.js'; +import type { AbstractProperty } from './AbstractProperty.js'; +import type { PackageableElementVisitor } from '../PackageableElement.js'; +import type { StereotypeReference } from './StereotypeReference.js'; +import type { TaggedValue } from './TaggedValue.js'; +import type { GenericTypeReference } from './GenericTypeReference.js'; export class Class extends Type implements Hashable { /** diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.ts index 68bb6d7bcc3..b6c08dfaf31 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.ts @@ -15,16 +15,16 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { hashRawLambda } from '../../../../../MetaModelUtils'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PackageableElementVisitor } from '../PackageableElement'; -import type { RawVariableExpression } from '../../rawValueSpecification/RawVariableExpression'; -import type { Type } from './Type'; -import type { Multiplicity } from './Multiplicity'; -import type { StereotypeReference } from './StereotypeReference'; -import type { TaggedValue } from './TaggedValue'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import { FunctionDefinition } from './Function'; +import { hashRawLambda } from '../../../../../MetaModelUtils.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PackageableElementVisitor } from '../PackageableElement.js'; +import type { RawVariableExpression } from '../../rawValueSpecification/RawVariableExpression.js'; +import type { Type } from './Type.js'; +import type { Multiplicity } from './Multiplicity.js'; +import type { StereotypeReference } from './StereotypeReference.js'; +import type { TaggedValue } from './TaggedValue.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import { FunctionDefinition } from './Function.js'; export class ConcreteFunctionDefinition extends FunctionDefinition diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Constraint.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Constraint.ts index 69ef4b96a9a..08181cfd2fd 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Constraint.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Constraint.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { hashArray, uuid, type Hashable } from '@finos/legend-shared'; -import type { RawLambda } from '../../rawValueSpecification/RawLambda'; -import type { Class } from './Class'; +import type { RawLambda } from '../../rawValueSpecification/RawLambda.js'; +import type { Class } from './Class.js'; export class Constraint implements Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DataType.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DataType.ts index 1fbfbc08479..12dc5887b2c 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DataType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DataType.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { Type } from './Type'; +import { Type } from './Type.js'; export abstract class DataType extends Type {} diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DerivedProperty.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DerivedProperty.ts index 3d06726825d..c5ecdffb896 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DerivedProperty.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/DerivedProperty.ts @@ -15,14 +15,14 @@ */ import { type Hashable, hashArray, uuid } from '@finos/legend-shared'; -import { hashRawLambda } from '../../../../../MetaModelUtils'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { Multiplicity } from './Multiplicity'; -import type { TaggedValue } from './TaggedValue'; -import type { AbstractProperty, PropertyOwner } from './AbstractProperty'; -import type { AnnotatedElement } from './AnnotatedElement'; -import type { StereotypeReference } from './StereotypeReference'; -import type { GenericTypeReference } from './GenericTypeReference'; +import { hashRawLambda } from '../../../../../MetaModelUtils.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { Multiplicity } from './Multiplicity.js'; +import type { TaggedValue } from './TaggedValue.js'; +import type { AbstractProperty, PropertyOwner } from './AbstractProperty.js'; +import type { AnnotatedElement } from './AnnotatedElement.js'; +import type { StereotypeReference } from './StereotypeReference.js'; +import type { GenericTypeReference } from './GenericTypeReference.js'; export class DerivedProperty implements AbstractProperty, AnnotatedElement, Hashable diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enum.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enum.ts index eca7187e7dc..4aa0fb67cfb 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enum.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enum.ts @@ -15,11 +15,11 @@ */ import { type Hashable, uuid, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { Enumeration } from './Enumeration'; -import type { TaggedValue } from './TaggedValue'; -import type { AnnotatedElement } from './AnnotatedElement'; -import type { StereotypeReference } from './StereotypeReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { Enumeration } from './Enumeration.js'; +import type { TaggedValue } from './TaggedValue.js'; +import type { AnnotatedElement } from './AnnotatedElement.js'; +import type { StereotypeReference } from './StereotypeReference.js'; export class Enum implements AnnotatedElement, Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/EnumValueReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/EnumValueReference.ts index 632c7d50bd1..08240741da6 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/EnumValueReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/EnumValueReference.ts @@ -18,10 +18,10 @@ import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../PackageableElementReference'; -import type { Enumeration } from './Enumeration'; -import type { Enum } from './Enum'; -import { ReferenceWithOwner } from '../../Reference'; +} from '../PackageableElementReference.js'; +import type { Enumeration } from './Enumeration.js'; +import type { Enum } from './Enum.js'; +import { ReferenceWithOwner } from '../../Reference.js'; export abstract class EnumValueReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enumeration.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enumeration.ts index c0479bf6eba..53248c93168 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enumeration.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Enumeration.ts @@ -15,12 +15,12 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { DataType } from './DataType'; -import type { Enum } from './Enum'; -import type { PackageableElementVisitor } from '../PackageableElement'; -import type { StereotypeReference } from './StereotypeReference'; -import type { TaggedValue } from './TaggedValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { DataType } from './DataType.js'; +import type { Enum } from './Enum.js'; +import type { PackageableElementVisitor } from '../PackageableElement.js'; +import type { StereotypeReference } from './StereotypeReference.js'; +import type { TaggedValue } from './TaggedValue.js'; export class Enumeration extends DataType implements Hashable { values: Enum[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Function.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Function.ts index e0638cdbd3a..7a0cb6f480d 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Function.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Function.ts @@ -18,7 +18,7 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; +} from '../PackageableElement.js'; export abstract class Function extends PackageableElement { functionName: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericType.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericType.ts index 784bfd345a6..393a2780798 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericType.ts @@ -15,7 +15,7 @@ */ import { uuid } from '@finos/legend-shared'; -import type { Type } from './Type'; +import type { Type } from './Type.js'; export class GenericType { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericTypeReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericTypeReference.ts index 07c6bbd2743..e668bd29a24 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericTypeReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/GenericTypeReference.ts @@ -18,10 +18,10 @@ import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../PackageableElementReference'; -import { ReferenceWithOwner } from '../../Reference'; -import type { GenericType } from './GenericType'; -import type { Type } from './Type'; +} from '../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../Reference.js'; +import type { GenericType } from './GenericType.js'; +import type { Type } from './Type.js'; export abstract class GenericTypeReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Measure.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Measure.ts index 292a6fefffa..becdc935fa5 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Measure.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Measure.ts @@ -19,11 +19,11 @@ import { UnsupportedOperationError, type Hashable, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PackageableElementVisitor } from '../PackageableElement'; -import { Type } from './Type'; -import { DataType } from './DataType'; -import type { RawLambda } from '../../rawValueSpecification/RawLambda'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PackageableElementVisitor } from '../PackageableElement.js'; +import { Type } from './Type.js'; +import { DataType } from './DataType.js'; +import type { RawLambda } from '../../rawValueSpecification/RawLambda.js'; export class Unit extends DataType implements Hashable { measure: Measure; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Multiplicity.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Multiplicity.ts index 65106cf9fb8..bcfc74da92e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Multiplicity.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Multiplicity.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; export class Multiplicity implements Hashable { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Package.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Package.ts index f8f1a517762..39edfe99f09 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Package.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Package.ts @@ -18,7 +18,7 @@ import type { Hashable } from '@finos/legend-shared'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; +} from '../PackageableElement.js'; export class Package extends PackageableElement implements Hashable { children: PackageableElement[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PrimitiveType.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PrimitiveType.ts index 7fd89320234..4336a2e3ce1 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PrimitiveType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PrimitiveType.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { DataType } from './DataType'; -import type { PackageableElementVisitor } from '../PackageableElement'; +import { DataType } from './DataType.js'; +import type { PackageableElementVisitor } from '../PackageableElement.js'; export class PrimitiveType extends DataType { accept_PackageableElementVisitor( diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Profile.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Profile.ts index fdeab32fd8f..759baa0be99 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Profile.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Profile.ts @@ -15,13 +15,13 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { Stereotype } from './Stereotype'; -import type { Tag } from './Tag'; +} from '../PackageableElement.js'; +import type { Stereotype } from './Stereotype.js'; +import type { Tag } from './Tag.js'; export class Profile extends PackageableElement implements Hashable { stereotypes: Stereotype[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Property.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Property.ts index e659ad8c21a..cbd6fcfb6ae 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Property.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Property.ts @@ -15,13 +15,13 @@ */ import { type Hashable, hashArray, uuid } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { GenericTypeReference } from './GenericTypeReference'; -import type { Multiplicity } from './Multiplicity'; -import type { AbstractProperty, PropertyOwner } from './AbstractProperty'; -import type { AnnotatedElement } from './AnnotatedElement'; -import type { TaggedValue } from './TaggedValue'; -import type { StereotypeReference } from './StereotypeReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { GenericTypeReference } from './GenericTypeReference.js'; +import type { Multiplicity } from './Multiplicity.js'; +import type { AbstractProperty, PropertyOwner } from './AbstractProperty.js'; +import type { AnnotatedElement } from './AnnotatedElement.js'; +import type { TaggedValue } from './TaggedValue.js'; +import type { StereotypeReference } from './StereotypeReference.js'; export class Property implements AbstractProperty, AnnotatedElement, Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PropertyReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PropertyReference.ts index 1ef746ae445..98031c97f69 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PropertyReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/PropertyReference.ts @@ -14,18 +14,18 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { hashString } from '@finos/legend-shared'; import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../PackageableElementReference'; -import { ReferenceWithOwner } from '../../Reference'; -import type { AbstractProperty } from './AbstractProperty'; -import type { Class } from './Class'; -import { Association } from './Association'; -import { getAssociatedPropertyClass } from '../../../../../helpers/DomainHelper'; +} from '../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../Reference.js'; +import type { AbstractProperty } from './AbstractProperty.js'; +import type { Class } from './Class.js'; +import { Association } from './Association.js'; +import { getAssociatedPropertyClass } from '../../../../../helpers/DomainHelper.js'; export abstract class PropertyReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference< diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Stereotype.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Stereotype.ts index 3634112c022..6247da14585 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Stereotype.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Stereotype.ts @@ -15,7 +15,7 @@ */ import { uuid } from '@finos/legend-shared'; -import type { Profile } from './Profile'; +import type { Profile } from './Profile.js'; export class Stereotype { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/StereotypeReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/StereotypeReference.ts index 5d6755fa2b2..0a92f2ddb52 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/StereotypeReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/StereotypeReference.ts @@ -14,16 +14,16 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { hashString } from '@finos/legend-shared'; import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../PackageableElementReference'; -import type { Profile } from './Profile'; -import { ReferenceWithOwner } from '../../Reference'; -import type { Stereotype } from './Stereotype'; +} from '../PackageableElementReference.js'; +import type { Profile } from './Profile.js'; +import { ReferenceWithOwner } from '../../Reference.js'; +import type { Stereotype } from './Stereotype.js'; export abstract class StereotypeReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Tag.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Tag.ts index a0a5df6beba..a7c08a74cca 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Tag.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Tag.ts @@ -15,7 +15,7 @@ */ import { uuid } from '@finos/legend-shared'; -import type { Profile } from './Profile'; +import type { Profile } from './Profile.js'; export class Tag { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TagReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TagReference.ts index f21e3fd8a7f..72bac04c6e9 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TagReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TagReference.ts @@ -14,16 +14,16 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { hashString } from '@finos/legend-shared'; import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../PackageableElementReference'; -import type { Profile } from './Profile'; -import type { Tag } from './Tag'; -import { ReferenceWithOwner } from '../../Reference'; +} from '../PackageableElementReference.js'; +import type { Profile } from './Profile.js'; +import type { Tag } from './Tag.js'; +import { ReferenceWithOwner } from '../../Reference.js'; export abstract class TagReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TaggedValue.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TaggedValue.ts index 4cd8bc5ef23..2cf3ec80370 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TaggedValue.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/TaggedValue.ts @@ -15,8 +15,8 @@ */ import { hashArray, uuid, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { TagReference } from './TagReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { TagReference } from './TagReference.js'; export class TaggedValue implements Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Type.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Type.ts index d6c0c8c669b..c010f23b8af 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Type.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/domain/Type.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { PackageableElement } from '../PackageableElement'; +import { PackageableElement } from '../PackageableElement.js'; export abstract class Type extends PackageableElement {} diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.ts index f74876aa39c..a936f12291e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.ts @@ -15,14 +15,14 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { Binding } from '../store/DSLExternalFormat_Binding'; -import type { UrlStream } from './DSLExternalFormat_UrlStream'; +import type { Binding } from '../store/DSLExternalFormat_Binding.js'; +import type { UrlStream } from './DSLExternalFormat_UrlStream.js'; import { Connection, type ConnectionVisitor, -} from '../../connection/Connection'; -import type { PackageableElementReference } from '../../PackageableElementReference'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils'; +} from '../../connection/Connection.js'; +import type { PackageableElementReference } from '../../PackageableElementReference.js'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils.js'; export class ExternalFormatConnection extends Connection implements Hashable { declare store: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream.ts index 7eecf6f2c07..2d9bc3b2258 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils.js'; export class UrlStream implements Hashable { url!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema.ts index 370761515fd..de616aa064e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema.ts @@ -15,7 +15,7 @@ */ import { uuid, hashArray, type Hashable } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils.js'; export class Schema implements Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.ts index 6814deef319..0d10c6a83d4 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { Schema } from './DSLExternalFormat_Schema'; +import type { Schema } from './DSLExternalFormat_Schema.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../../PackageableElement'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils'; +} from '../../PackageableElement.js'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils.js'; export class SchemaSet extends PackageableElement implements Hashable { format!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts index d874939cf0d..d1607ee6dc5 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { SchemaSet } from '../schemaSet/DSLExternalFormat_SchemaSet'; -import { Store } from '../../store/Store'; -import type { OptionalPackageableElementReference } from '../../PackageableElementReference'; -import type { ModelUnit } from './DSLExternalFormat_ModelUnit'; -import type { PackageableElementVisitor } from '../../PackageableElement'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils'; +import type { SchemaSet } from '../schemaSet/DSLExternalFormat_SchemaSet.js'; +import { Store } from '../../store/Store.js'; +import type { OptionalPackageableElementReference } from '../../PackageableElementReference.js'; +import type { ModelUnit } from './DSLExternalFormat_ModelUnit.js'; +import type { PackageableElementVisitor } from '../../PackageableElement.js'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils.js'; export class Binding extends Store implements Hashable { schemaSet!: OptionalPackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer.ts index e93306de9b4..f4d3831b546 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; -import type { PackageableElementReference } from '../../PackageableElementReference'; -import type { Binding } from './DSLExternalFormat_Binding'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; +import type { PackageableElementReference } from '../../PackageableElementReference.js'; +import type { Binding } from './DSLExternalFormat_Binding.js'; export class BindingTransformer implements Hashable { binding!: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit.ts index 4a139af215f..1163347cb3a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { PackageableElementReference } from '../../PackageableElementReference'; -import type { PackageableElement } from '../../PackageableElement'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils'; +import type { PackageableElementReference } from '../../PackageableElementReference.js'; +import type { PackageableElement } from '../../PackageableElement.js'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils.js'; export class ModelUnit implements Hashable { packageableElementIncludes: PackageableElementReference[] = diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.ts index 60a97b7d158..bdf3a537d92 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.ts @@ -15,7 +15,7 @@ */ import { hashArray, hashObject, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; export class ConfigurationProperty implements Hashable { name: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.ts index 7128a5869f4..53afef7cde4 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.ts @@ -15,14 +15,14 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import type { PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import { PackageableElementReference } from '../PackageableElementReference'; -import { AbstractGenerationSpecification } from '../generationSpecification/AbstractGenerationSpecification'; -import type { ConfigurationProperty } from './ConfigurationProperty'; +} from '../PackageableElement.js'; +import { PackageableElementReference } from '../PackageableElementReference.js'; +import { AbstractGenerationSpecification } from '../generationSpecification/AbstractGenerationSpecification.js'; +import type { ConfigurationProperty } from './ConfigurationProperty.js'; export class FileGenerationSpecification extends AbstractGenerationSpecification diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/AbstractGenerationSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/AbstractGenerationSpecification.ts index 6d994ca1f93..db3a9143737 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/AbstractGenerationSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/AbstractGenerationSpecification.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { PackageableElement } from '../PackageableElement'; +import { PackageableElement } from '../PackageableElement.js'; export abstract class AbstractGenerationSpecification extends PackageableElement {} diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.ts index 60c76538006..5f0f91713fd 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.ts @@ -17,15 +17,15 @@ import { CORE_HASH_STRUCTURE, PackageableElementPointerType, -} from '../../../../../MetaModelConst'; +} from '../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import type { FileGenerationSpecification } from '../fileGeneration/FileGenerationSpecification'; -import { hashElementPointer } from '../../../../../MetaModelUtils'; +} from '../PackageableElement.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import type { FileGenerationSpecification } from '../fileGeneration/FileGenerationSpecification.js'; +import { hashElementPointer } from '../../../../../MetaModelUtils.js'; // NOTE: As of now the tree only supports a linear order of generation. This is because the only use case is linear, // but the shape has been left as a tree to support 'branching' off in the future. diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification.ts index 24ec07de3c7..2217bcfdc74 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { AbstractGenerationSpecification } from './AbstractGenerationSpecification'; +import { AbstractGenerationSpecification } from './AbstractGenerationSpecification.js'; export abstract class ModelGenerationSpecification extends AbstractGenerationSpecification {} diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/AssociationImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/AssociationImplementation.ts index b0d1d540d07..cf775b3b40f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/AssociationImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/AssociationImplementation.ts @@ -15,17 +15,17 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import type { PackageableElementExplicitReference, PackageableElementReference, -} from '../PackageableElementReference'; -import type { PropertyMappingsImplementation } from './PropertyMappingsImplementation'; -import type { Association } from '../domain/Association'; -import type { Mapping } from './Mapping'; -import type { Store } from '../store/Store'; -import type { PropertyMapping } from './PropertyMapping'; -import type { InferableMappingElementIdValue } from './InferableMappingElementId'; +} from '../PackageableElementReference.js'; +import type { PropertyMappingsImplementation } from './PropertyMappingsImplementation.js'; +import type { Association } from '../domain/Association.js'; +import type { Mapping } from './Mapping.js'; +import type { Store } from '../store/Store.js'; +import type { PropertyMapping } from './PropertyMapping.js'; +import type { InferableMappingElementIdValue } from './InferableMappingElementId.js'; export abstract class AssociationImplementation implements PropertyMappingsImplementation, Hashable diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EmbeddedSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EmbeddedSetImplementation.ts index a07e85a2c50..029c9443c6b 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EmbeddedSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EmbeddedSetImplementation.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { PropertyMapping } from './PropertyMapping'; -import type { InstanceSetImplementation } from './InstanceSetImplementation'; -import type { SetImplementation } from './SetImplementation'; +import type { PropertyMapping } from './PropertyMapping.js'; +import type { InstanceSetImplementation } from './InstanceSetImplementation.js'; +import type { SetImplementation } from './SetImplementation.js'; export interface EmbeddedSetImplementation extends InstanceSetImplementation, diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumValueMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumValueMapping.ts index d26f064c3cc..c92757dc64e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumValueMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumValueMapping.ts @@ -21,9 +21,9 @@ import { hashArray, isNonNullable, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { Enum } from '../domain/Enum'; -import type { EnumValueReference } from '../domain/EnumValueReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { Enum } from '../domain/Enum.js'; +import type { EnumValueReference } from '../domain/EnumValueReference.js'; export class SourceValue { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts index 8c686760711..64190c7c2b1 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts @@ -15,16 +15,16 @@ */ import { hashArray, isNonNullable, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import type { PackageableElementReference, OptionalPackageableElementReference, -} from '../PackageableElementReference'; -import type { Mapping } from './Mapping'; -import type { Enumeration } from '../domain/Enumeration'; -import type { EnumValueMapping } from './EnumValueMapping'; -import type { Type } from '../domain/Type'; -import type { InferableMappingElementIdValue } from './InferableMappingElementId'; +} from '../PackageableElementReference.js'; +import type { Mapping } from './Mapping.js'; +import type { Enumeration } from '../domain/Enumeration.js'; +import type { EnumValueMapping } from './EnumValueMapping.js'; +import type { Type } from '../domain/Type.js'; +import type { InferableMappingElementIdValue } from './InferableMappingElementId.js'; export class EnumerationMapping implements Hashable { readonly _PARENT: Mapping; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.ts index 170d63a89a3..726b7a0b063 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.ts @@ -19,8 +19,8 @@ import { hashArray, tryToMinifyLosslessJSONString, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { MappingTestAssert } from './MappingTestAssert'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { MappingTestAssert } from './MappingTestAssert.js'; export class ExpectedOutputMappingTestAssert extends MappingTestAssert diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementId.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementId.ts index 04fb9120c9a..ab9b50d2f7f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementId.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementId.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { fromElementPathToMappingElementId } from '../../../../../MetaModelUtils'; -import { InferableValue } from '../../InferableValue'; +import { fromElementPathToMappingElementId } from '../../../../../MetaModelUtils.js'; +import { InferableValue } from '../../InferableValue.js'; export abstract class InferableMappingElementIdValue extends InferableValue< string, diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.ts index 5988e2efb47..c2f7ba05646 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { InferableValue } from '../../InferableValue'; +import { InferableValue } from '../../InferableValue.js'; export abstract class InferableMappingElementRoot extends InferableValue< boolean, diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.ts index e332bd9b21d..509640328be 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/InstanceSetImplementation.ts @@ -15,10 +15,10 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { MappingClass } from './MappingClass'; -import { SetImplementation } from './SetImplementation'; -import type { PropertyMappingsImplementation } from './PropertyMappingsImplementation'; -import type { PropertyMapping } from './PropertyMapping'; +import type { MappingClass } from './MappingClass.js'; +import { SetImplementation } from './SetImplementation.js'; +import type { PropertyMappingsImplementation } from './PropertyMappingsImplementation.js'; +import type { PropertyMapping } from './PropertyMapping.js'; export abstract class InstanceSetImplementation extends SetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo.ts index af09d61f5e5..e58c6290edd 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo.ts @@ -15,10 +15,10 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { Multiplicity } from '../domain/Multiplicity'; -import type { Type } from '../domain/Type'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PackageableElementReference } from '../PackageableElementReference'; +import type { Multiplicity } from '../domain/Multiplicity.js'; +import type { Type } from '../domain/Type.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; export class LocalMappingPropertyInfo implements Hashable { localMappingProperty!: boolean; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/Mapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/Mapping.ts index 764245924d1..6dac0a43bd8 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/Mapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/Mapping.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { EnumerationMapping } from './EnumerationMapping'; -import type { SetImplementation } from './SetImplementation'; -import type { AssociationImplementation } from './AssociationImplementation'; +import type { EnumerationMapping } from './EnumerationMapping.js'; +import type { SetImplementation } from './SetImplementation.js'; +import type { AssociationImplementation } from './AssociationImplementation.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { MappingTest } from './MappingTest'; -import type { MappingInclude } from './MappingInclude'; +} from '../PackageableElement.js'; +import type { MappingTest } from './MappingTest.js'; +import type { MappingInclude } from './MappingInclude.js'; export class Mapping extends PackageableElement implements Hashable { includes: MappingInclude[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingClass.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingClass.ts index c8840eb25ec..e9115a1a40f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingClass.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingClass.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { SetImplementation } from './SetImplementation'; -import { Class } from '../domain/Class'; -import type { Property } from '../domain/Property'; +import type { SetImplementation } from './SetImplementation.js'; +import { Class } from '../domain/Class.js'; +import type { Property } from '../domain/Property.js'; export class MappingClass extends Class { setImplementation?: SetImplementation | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingInclude.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingInclude.ts index 51433826da2..9eef0b0d9a5 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingInclude.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingInclude.ts @@ -15,10 +15,10 @@ */ import { hashArray, getNullableFirstElement } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import type { Mapping } from './Mapping'; -import type { SubstituteStore } from './SubstituteStore'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import type { Mapping } from './Mapping.js'; +import type { SubstituteStore } from './SubstituteStore.js'; export class MappingInclude { readonly _OWNER: Mapping; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingTest.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingTest.ts index 81dd245afc2..2b5f7478d1d 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingTest.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MappingTest.ts @@ -15,10 +15,10 @@ */ import { uuid, hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { MappingTestAssert } from './MappingTestAssert'; -import type { InputData } from './InputData'; -import type { RawLambda } from '../../rawValueSpecification/RawLambda'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { MappingTestAssert } from './MappingTestAssert.js'; +import type { InputData } from './InputData.js'; +import type { RawLambda } from '../../rawValueSpecification/RawLambda.js'; export class MappingTest implements Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation.ts index bde99830eba..575f46a551d 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation.ts @@ -15,19 +15,19 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import type { Mapping } from './Mapping'; -import type { Class } from '../domain/Class'; -import type { InferableMappingElementIdValue } from './InferableMappingElementId'; -import type { InferableMappingElementRoot } from './InferableMappingElementRoot'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import type { Mapping } from './Mapping.js'; +import type { Class } from '../domain/Class.js'; +import type { InferableMappingElementIdValue } from './InferableMappingElementId.js'; +import type { InferableMappingElementRoot } from './InferableMappingElementRoot.js'; import { type OperationType, OperationSetImplementation, -} from './OperationSetImplementation'; -import type { RawLambda } from '../../rawValueSpecification/RawLambda'; -import type { SetImplementationVisitor } from './SetImplementation'; -import { hashRawLambda } from '../../../../../MetaModelUtils'; +} from './OperationSetImplementation.js'; +import type { RawLambda } from '../../rawValueSpecification/RawLambda.js'; +import type { SetImplementationVisitor } from './SetImplementation.js'; +import { hashRawLambda } from '../../../../../MetaModelUtils.js'; export class MergeOperationSetImplementation extends OperationSetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.ts index ef303136a11..55be0b67071 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/OperationSetImplementation.ts @@ -15,17 +15,17 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PackageableElementReference } from '../PackageableElementReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; import { type SetImplementationVisitor, SetImplementation, -} from './SetImplementation'; -import type { SetImplementationContainer } from './SetImplementationContainer'; -import type { Mapping } from './Mapping'; -import type { Class } from '../domain/Class'; -import type { InferableMappingElementIdValue } from './InferableMappingElementId'; -import type { InferableMappingElementRoot } from './InferableMappingElementRoot'; +} from './SetImplementation.js'; +import type { SetImplementationContainer } from './SetImplementationContainer.js'; +import type { Mapping } from './Mapping.js'; +import type { Class } from '../domain/Class.js'; +import type { InferableMappingElementIdValue } from './InferableMappingElementId.js'; +import type { InferableMappingElementRoot } from './InferableMappingElementRoot.js'; export enum OperationType { STORE_UNION = 'STORE_UNION', diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMapping.ts index d9e83512f60..15bf237008b 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMapping.ts @@ -15,20 +15,20 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PropertyReference } from '../domain/PropertyReference'; -import type { PropertyMappingsImplementation } from './PropertyMappingsImplementation'; -import type { SetImplementation } from './SetImplementation'; -import type { PurePropertyMapping } from '../store/modelToModel/mapping/PurePropertyMapping'; -import type { FlatDataPropertyMapping } from '../store/flatData/mapping/FlatDataPropertyMapping'; -import type { EmbeddedFlatDataPropertyMapping } from '../store/flatData/mapping/EmbeddedFlatDataPropertyMapping'; -import type { RelationalPropertyMapping } from '../store/relational/mapping/RelationalPropertyMapping'; -import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; -import type { EmbeddedRelationalInstanceSetImplementation } from '../store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation'; -import type { AggregationAwarePropertyMapping } from './aggregationAware/AggregationAwarePropertyMapping'; -import type { XStorePropertyMapping } from './xStore/XStorePropertyMapping'; -import type { LocalMappingPropertyInfo } from './LocalMappingPropertyInfo'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PropertyReference } from '../domain/PropertyReference.js'; +import type { PropertyMappingsImplementation } from './PropertyMappingsImplementation.js'; +import type { SetImplementation } from './SetImplementation.js'; +import type { PurePropertyMapping } from '../store/modelToModel/mapping/PurePropertyMapping.js'; +import type { FlatDataPropertyMapping } from '../store/flatData/mapping/FlatDataPropertyMapping.js'; +import type { EmbeddedFlatDataPropertyMapping } from '../store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js'; +import type { RelationalPropertyMapping } from '../store/relational/mapping/RelationalPropertyMapping.js'; +import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; +import type { EmbeddedRelationalInstanceSetImplementation } from '../store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.js'; +import type { AggregationAwarePropertyMapping } from './aggregationAware/AggregationAwarePropertyMapping.js'; +import type { XStorePropertyMapping } from './xStore/XStorePropertyMapping.js'; +import type { LocalMappingPropertyInfo } from './LocalMappingPropertyInfo.js'; /* @MARKER: NEW CLASS MAPPING TYPE SUPPORT --- consider adding class mapping type handler here whenever support for a new one is added to the app */ export interface PropertyMappingVisitor { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation.ts index bbb8519e1bd..db3d727af36 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { PropertyOwnerImplementation } from './PropertyOwnerImplementation'; -import type { PropertyMapping } from './PropertyMapping'; +import type { PropertyOwnerImplementation } from './PropertyOwnerImplementation.js'; +import type { PropertyMapping } from './PropertyMapping.js'; export interface PropertyMappingsImplementation extends PropertyOwnerImplementation { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyOwnerImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyOwnerImplementation.ts index cc199bc955e..a3bd89af297 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyOwnerImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/PropertyOwnerImplementation.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { Mapping } from './Mapping'; -import type { InferableMappingElementIdValue } from './InferableMappingElementId'; +import type { Mapping } from './Mapping.js'; +import type { InferableMappingElementIdValue } from './InferableMappingElementId.js'; export interface PropertyOwnerImplementation { id: InferableMappingElementIdValue; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation.ts index dcf8baa01e7..c81607aa36c 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation.ts @@ -15,8 +15,8 @@ */ import { hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { AssociationImplementation } from './AssociationImplementation'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { AssociationImplementation } from './AssociationImplementation.js'; export class RelationalAssociationImplementation extends AssociationImplementation { override get hashCode(): string { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementation.ts index 0f23c13e107..673c06cafbe 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementation.ts @@ -15,23 +15,23 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import type { PropertyOwnerImplementation } from './PropertyOwnerImplementation'; -import type { Mapping } from './Mapping'; -import type { OperationSetImplementation } from './OperationSetImplementation'; -import type { PureInstanceSetImplementation } from '../store/modelToModel/mapping/PureInstanceSetImplementation'; -import type { FlatDataInstanceSetImplementation } from '../store/flatData/mapping/FlatDataInstanceSetImplementation'; -import type { EmbeddedFlatDataPropertyMapping } from '../store/flatData/mapping/EmbeddedFlatDataPropertyMapping'; -import type { RelationalInstanceSetImplementation } from '../store/relational/mapping/RelationalInstanceSetImplementation'; -import type { RootRelationalInstanceSetImplementation } from '../store/relational/mapping/RootRelationalInstanceSetImplementation'; -import type { InferableMappingElementIdValue } from './InferableMappingElementId'; -import type { InferableMappingElementRoot } from './InferableMappingElementRoot'; -import type { AggregationAwareSetImplementation } from './aggregationAware/AggregationAwareSetImplementation'; -import type { InstanceSetImplementation } from './InstanceSetImplementation'; -import type { MergeOperationSetImplementation } from './MergeOperationSetImplementation'; -import type { TEMPORARY__UnresolvedSetImplementation } from './TEMPORARY__UnresolvedSetImplementation'; -import type { Class } from '../domain/Class'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import type { PropertyOwnerImplementation } from './PropertyOwnerImplementation.js'; +import type { Mapping } from './Mapping.js'; +import type { OperationSetImplementation } from './OperationSetImplementation.js'; +import type { PureInstanceSetImplementation } from '../store/modelToModel/mapping/PureInstanceSetImplementation.js'; +import type { FlatDataInstanceSetImplementation } from '../store/flatData/mapping/FlatDataInstanceSetImplementation.js'; +import type { EmbeddedFlatDataPropertyMapping } from '../store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js'; +import type { RelationalInstanceSetImplementation } from '../store/relational/mapping/RelationalInstanceSetImplementation.js'; +import type { RootRelationalInstanceSetImplementation } from '../store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import type { InferableMappingElementIdValue } from './InferableMappingElementId.js'; +import type { InferableMappingElementRoot } from './InferableMappingElementRoot.js'; +import type { AggregationAwareSetImplementation } from './aggregationAware/AggregationAwareSetImplementation.js'; +import type { InstanceSetImplementation } from './InstanceSetImplementation.js'; +import type { MergeOperationSetImplementation } from './MergeOperationSetImplementation.js'; +import type { TEMPORARY__UnresolvedSetImplementation } from './TEMPORARY__UnresolvedSetImplementation.js'; +import type { Class } from '../domain/Class.js'; export interface SetImplementationVisitor { visit_SetImplementation(setImplementation: InstanceSetImplementation): T; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationContainer.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationContainer.ts index 15627009985..aecb9c962c0 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationContainer.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationContainer.ts @@ -15,7 +15,7 @@ */ import { uuid } from '@finos/legend-shared'; -import type { SetImplementationReference } from './SetImplementationReference'; +import type { SetImplementationReference } from './SetImplementationReference.js'; export class SetImplementationContainer { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.ts index f9ea2cead8a..73acc241533 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.ts @@ -21,13 +21,13 @@ import { type OptionalPackageableElementReference, PackageableElementExplicitReference, OptionalPackageableElementExplicitReference, -} from '../PackageableElementReference'; -import type { Mapping } from './Mapping'; -import type { SetImplementation } from './SetImplementation'; +} from '../PackageableElementReference.js'; +import type { Mapping } from './Mapping.js'; +import type { SetImplementation } from './SetImplementation.js'; import { OptionalReferenceWithOwner, ReferenceWithOwner, -} from '../../Reference'; +} from '../../Reference.js'; export abstract class SetImplementationReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SubstituteStore.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SubstituteStore.ts index 6d0f86ddb36..9b8e6a2f588 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SubstituteStore.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/SubstituteStore.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { Store } from '../store/Store'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import type { MappingInclude } from './MappingInclude'; +import type { Store } from '../store/Store.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import type { MappingInclude } from './MappingInclude.js'; export class SubstituteStore { readonly _OWNER: MappingInclude; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.ts index 43446312e9b..d870fe45c92 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.ts @@ -14,15 +14,15 @@ * limitations under the License. */ -import { Class } from '../domain/Class'; -import { PackageableElementExplicitReference } from '../PackageableElementReference'; -import { InferableMappingElementIdExplicitValue } from './InferableMappingElementId'; -import { InferableMappingElementRootExplicitValue } from './InferableMappingElementRoot'; -import type { Mapping } from './Mapping'; +import { Class } from '../domain/Class.js'; +import { PackageableElementExplicitReference } from '../PackageableElementReference.js'; +import { InferableMappingElementIdExplicitValue } from './InferableMappingElementId.js'; +import { InferableMappingElementRootExplicitValue } from './InferableMappingElementRoot.js'; +import type { Mapping } from './Mapping.js'; import { SetImplementation, type SetImplementationVisitor, -} from './SetImplementation'; +} from './SetImplementation.js'; /** * When set implementation cannot be resolved by ID, diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer.ts index 4af9bf8fdc9..17733dc469e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { InstanceSetImplementation } from '../InstanceSetImplementation'; -import type { AggregateSpecification } from './AggregateSpecification'; +import type { InstanceSetImplementation } from '../InstanceSetImplementation.js'; +import type { AggregateSpecification } from './AggregateSpecification.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; export class AggregateSetImplementationContainer implements Hashable { index: number; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification.ts index c11f87319d5..ecfb3d73ef1 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { AggregationFunctionSpecification } from './AggregationFunctionSpecification'; -import type { GroupByFunctionSpecification } from './GroupByFunctionSpecification'; +import type { AggregationFunctionSpecification } from './AggregationFunctionSpecification.js'; +import type { GroupByFunctionSpecification } from './GroupByFunctionSpecification.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; export class AggregateSpecification implements Hashable { canAggregate: boolean; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping.ts index 0be755abc2e..3d22c920635 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping.ts @@ -17,7 +17,7 @@ import { type PropertyMappingVisitor, PropertyMapping, -} from '../PropertyMapping'; +} from '../PropertyMapping.js'; export class AggregationAwarePropertyMapping extends PropertyMapping { accept_PropertyMappingVisitor(visitor: PropertyMappingVisitor): T { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.ts index 9b9d9be7f9a..e4691044151 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.ts @@ -14,16 +14,16 @@ * limitations under the License. */ -import { InstanceSetImplementation } from '../InstanceSetImplementation'; -import type { SetImplementationVisitor } from '../SetImplementation'; -import type { InferableMappingElementIdValue } from '../InferableMappingElementId'; -import type { Mapping } from '../Mapping'; -import type { PackageableElementReference } from '../../PackageableElementReference'; -import type { Class } from '../../domain/Class'; -import type { InferableMappingElementRoot } from '../InferableMappingElementRoot'; -import type { AggregateSetImplementationContainer } from './AggregateSetImplementationContainer'; +import { InstanceSetImplementation } from '../InstanceSetImplementation.js'; +import type { SetImplementationVisitor } from '../SetImplementation.js'; +import type { InferableMappingElementIdValue } from '../InferableMappingElementId.js'; +import type { Mapping } from '../Mapping.js'; +import type { PackageableElementReference } from '../../PackageableElementReference.js'; +import type { Class } from '../../domain/Class.js'; +import type { InferableMappingElementRoot } from '../InferableMappingElementRoot.js'; +import type { AggregateSetImplementationContainer } from './AggregateSetImplementationContainer.js'; import { hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; export class AggregationAwareSetImplementation extends InstanceSetImplementation { aggregateSetImplementations: AggregateSetImplementationContainer[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification.ts index 7bc44291e97..ca032032b26 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { RawLambda } from '../../../rawValueSpecification/RawLambda'; +import type { RawLambda } from '../../../rawValueSpecification/RawLambda.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; -import { hashRawLambda } from '../../../../../../MetaModelUtils'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; +import { hashRawLambda } from '../../../../../../MetaModelUtils.js'; export class AggregationFunctionSpecification implements Hashable { /** diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification.ts index f32d2dcd03a..202cc3f1a0b 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { RawLambda } from '../../../rawValueSpecification/RawLambda'; +import type { RawLambda } from '../../../rawValueSpecification/RawLambda.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; -import { hashRawLambda } from '../../../../../../MetaModelUtils'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; +import { hashRawLambda } from '../../../../../../MetaModelUtils.js'; export class GroupByFunctionSpecification implements Hashable { /** diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation.ts index 9d9f933825c..ca65020cb66 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation.ts @@ -15,8 +15,8 @@ */ import { hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; -import { AssociationImplementation } from '../AssociationImplementation'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; +import { AssociationImplementation } from '../AssociationImplementation.js'; export class XStoreAssociationImplementation extends AssociationImplementation { override get hashCode(): string { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping.ts index 43b645b7fbf..079562af45c 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; -import type { RawLambda } from '../../../rawValueSpecification/RawLambda'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; +import type { RawLambda } from '../../../rawValueSpecification/RawLambda.js'; import { type PropertyMappingVisitor, PropertyMapping, -} from '../PropertyMapping'; +} from '../PropertyMapping.js'; export class XStorePropertyMapping extends PropertyMapping implements Hashable { /** diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/PackageableRuntime.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/PackageableRuntime.ts index 3ad7c177ca5..e9c1b16426a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/PackageableRuntime.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/PackageableRuntime.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { EngineRuntime } from './Runtime'; +} from '../PackageableElement.js'; +import type { EngineRuntime } from './Runtime.js'; export class PackageableRuntime extends PackageableElement implements Hashable { runtimeValue!: EngineRuntime; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/Runtime.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/Runtime.ts index 7f652001e48..d172eb376cd 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/Runtime.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/runtime/Runtime.ts @@ -18,13 +18,13 @@ import { type Hashable, hashArray, uuid } from '@finos/legend-shared'; import { CORE_HASH_STRUCTURE, PackageableElementPointerType, -} from '../../../../../MetaModelConst'; -import type { Connection } from '../connection/Connection'; -import type { PackageableRuntime } from './PackageableRuntime'; -import type { Mapping } from '../mapping/Mapping'; -import type { Store } from '../store/Store'; -import type { PackageableElementReference } from '../PackageableElementReference'; -import { hashElementPointer } from '../../../../../MetaModelUtils'; +} from '../../../../../MetaModelConst.js'; +import type { Connection } from '../connection/Connection.js'; +import type { PackageableRuntime } from './PackageableRuntime.js'; +import type { Mapping } from '../mapping/Mapping.js'; +import type { Store } from '../store/Store.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; +import { hashElementPointer } from '../../../../../MetaModelUtils.js'; export class IdentifiedConnection implements Hashable { readonly _UUID = uuid(); diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/Section.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/Section.ts index 3819ef1ed2c..b4c8d2e223d 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/Section.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/Section.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { PackageableElement } from '../PackageableElement'; -import type { Package } from '../domain/Package'; -import type { SectionIndex } from './SectionIndex'; -import type { PackageableElementExplicitReference } from '../PackageableElementReference'; +import type { PackageableElement } from '../PackageableElement.js'; +import type { Package } from '../domain/Package.js'; +import type { SectionIndex } from './SectionIndex.js'; +import type { PackageableElementExplicitReference } from '../PackageableElementReference.js'; export abstract class Section implements Hashable { readonly _OWNER: SectionIndex; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/SectionIndex.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/SectionIndex.ts index 3154399372a..b979a2630dd 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/SectionIndex.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/section/SectionIndex.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { Section } from './Section'; +} from '../PackageableElement.js'; +import type { Section } from './Section.js'; export class SectionIndex extends PackageableElement implements Hashable { sections: Section[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ConnectionTestData.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ConnectionTestData.ts index bb9ad5cdc92..29cb9f18994 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ConnectionTestData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ConnectionTestData.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { EmbeddedData } from '../../data/EmbeddedData'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { EmbeddedData } from '../../data/EmbeddedData.js'; export class ConnectionTestData implements Hashable { connectionId!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.ts index 9b6c3b7810e..bb9c64b422a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray, uuid } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { RawLambda } from '../../rawValueSpecification/RawLambda'; -import type { Service } from './Service'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { RawLambda } from '../../rawValueSpecification/RawLambda.js'; +import type { Service } from './Service.js'; /** * TODO: Remove once migration from `ServiceTest_Legacy` to `ServiceTest` is complete diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ParameterValue.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ParameterValue.ts index ddebe73b7af..beb715ab909 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ParameterValue.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ParameterValue.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { hashObjectWithoutSourceInformation } from '../../../../../MetaModelUtils'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { hashObjectWithoutSourceInformation } from '../../../../../MetaModelUtils.js'; export class ParameterValue implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/Service.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/Service.ts index 8b4de3607a5..ebab527c28a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/Service.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/Service.ts @@ -15,17 +15,17 @@ */ import { hashArray, uniq, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { ServiceExecution } from './ServiceExecution'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { ServiceExecution } from './ServiceExecution.js'; import { type PackageableElementVisitor, PackageableElement, -} from '../PackageableElement'; -import type { StereotypeReference } from '../domain/StereotypeReference'; -import type { TaggedValue } from '../domain/TaggedValue'; -import type { DEPRECATED__ServiceTest } from './DEPRECATED__ServiceTest'; -import type { ServiceTestSuite } from './ServiceTestSuite'; -import type { Testable } from '../../test/Testable'; +} from '../PackageableElement.js'; +import type { StereotypeReference } from '../domain/StereotypeReference.js'; +import type { TaggedValue } from '../domain/TaggedValue.js'; +import type { DEPRECATED__ServiceTest } from './DEPRECATED__ServiceTest.js'; +import type { ServiceTestSuite } from './ServiceTestSuite.js'; +import type { Testable } from '../../test/Testable.js'; export const DEFAULT_SERVICE_PATTERN = '/'; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceExecution.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceExecution.ts index ce2e3e5d5cc..2954a0ab1c8 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceExecution.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceExecution.ts @@ -15,12 +15,12 @@ */ import { hashArray, uuid, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { Mapping } from '../mapping/Mapping'; -import type { RawLambda } from '../../rawValueSpecification/RawLambda'; -import type { Service } from './Service'; -import type { Runtime } from '../runtime/Runtime'; -import type { PackageableElementReference } from '../PackageableElementReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { Mapping } from '../mapping/Mapping.js'; +import type { RawLambda } from '../../rawValueSpecification/RawLambda.js'; +import type { Service } from './Service.js'; +import type { Runtime } from '../runtime/Runtime.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; export abstract class ServiceExecution implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTest.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTest.ts index 7c5b53988bf..24580d393f7 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTest.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTest.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { AtomicTest } from '../../test/Test'; -import type { ParameterValue } from './ParameterValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { AtomicTest } from '../../test/Test.js'; +import type { ParameterValue } from './ParameterValue.js'; export class ServiceTest extends AtomicTest implements Hashable { parameters: ParameterValue[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestData.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestData.ts index fece257201e..5e91b356d6c 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestData.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { ConnectionTestData } from './ConnectionTestData'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { ConnectionTestData } from './ConnectionTestData.js'; export class TestData implements Hashable { connectionsTestData: ConnectionTestData[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestSuite.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestSuite.ts index 546a73e97b4..8dbadedc3b5 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestSuite.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/service/ServiceTestSuite.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { TestSuite } from '../../test/Test'; -import type { TestData } from './ServiceTestData'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { TestSuite } from '../../test/Test.js'; +import type { TestData } from './ServiceTestData.js'; export class ServiceTestSuite extends TestSuite implements Hashable { testData!: TestData; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/Store.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/Store.ts index 1033e3e6bff..cd897ea1ebf 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/Store.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/Store.ts @@ -15,8 +15,8 @@ */ import type { Hashable } from '@finos/legend-shared'; -import { PackageableElement } from '../PackageableElement'; -import type { PackageableElementReference } from '../PackageableElementReference'; +import { PackageableElement } from '../PackageableElement.js'; +import type { PackageableElementReference } from '../PackageableElementReference.js'; export abstract class Store extends PackageableElement implements Hashable { includes: PackageableElementReference[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.ts index f1c0ae45ca1..17014818a0c 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.ts @@ -20,13 +20,13 @@ import { ContentType, createUrlStringFromData, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type ConnectionVisitor, Connection, -} from '../../../connection/Connection'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import type { FlatData } from '../model/FlatData'; +} from '../../../connection/Connection.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import type { FlatData } from '../model/FlatData.js'; export class FlatDataConnection extends Connection implements Hashable { declare store: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping.ts index babd5e8f78c..73d33a4957d 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { PropertyMapping } from '../../../mapping/PropertyMapping'; +import { PropertyMapping } from '../../../mapping/PropertyMapping.js'; export abstract class AbstractFlatDataPropertyMapping extends PropertyMapping {} diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.ts index a686b926af2..8ef7ab57130 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.ts @@ -15,26 +15,26 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { Mapping } from '../../../mapping/Mapping'; -import { AbstractFlatDataPropertyMapping } from './AbstractFlatDataPropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { Mapping } from '../../../mapping/Mapping.js'; +import { AbstractFlatDataPropertyMapping } from './AbstractFlatDataPropertyMapping.js'; import type { PropertyMapping, PropertyMappingVisitor, -} from '../../../mapping/PropertyMapping'; +} from '../../../mapping/PropertyMapping.js'; import type { SetImplementationVisitor, SetImplementation, -} from '../../../mapping/SetImplementation'; -import type { Class } from '../../../domain/Class'; -import type { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation'; -import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation'; -import type { PropertyReference } from '../../../domain/PropertyReference'; -import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import { InferableMappingElementRootExplicitValue } from '../../../mapping/InferableMappingElementRoot'; -import type { MappingClass } from '../../../mapping/MappingClass'; -import { FlatDataPropertyMapping } from './FlatDataPropertyMapping'; +} from '../../../mapping/SetImplementation.js'; +import type { Class } from '../../../domain/Class.js'; +import type { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation.js'; +import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation.js'; +import type { PropertyReference } from '../../../domain/PropertyReference.js'; +import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import { InferableMappingElementRootExplicitValue } from '../../../mapping/InferableMappingElementRoot.js'; +import type { MappingClass } from '../../../mapping/MappingClass.js'; +import { FlatDataPropertyMapping } from './FlatDataPropertyMapping.js'; /** * We can think of embedded property mappings as a 'gateway' from one set of property mappings to another. They are in a sense diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.ts index 1b5d25b92a1..4c38a18b05c 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.ts @@ -18,11 +18,11 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import { CORE_HASH_STRUCTURE, PackageableElementPointerType, -} from '../../../../../../../MetaModelConst'; -import { InputData } from '../../../mapping/InputData'; -import type { FlatData } from '../model/FlatData'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import { hashElementPointer } from '../../../../../../../MetaModelUtils'; +} from '../../../../../../../MetaModelConst.js'; +import { InputData } from '../../../mapping/InputData.js'; +import type { FlatData } from '../model/FlatData.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import { hashElementPointer } from '../../../../../../../MetaModelUtils.js'; export class FlatDataInputData extends InputData implements Hashable { sourceFlatData: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.ts index c3e7476158c..3f6e8f46ff4 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.ts @@ -15,18 +15,18 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation'; -import type { AbstractFlatDataPropertyMapping } from './AbstractFlatDataPropertyMapping'; -import type { Class } from '../../../domain/Class'; -import type { Mapping } from '../../../mapping/Mapping'; -import type { SetImplementationVisitor } from '../../../mapping/SetImplementation'; -import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId'; -import type { RawLambda } from '../../../../rawValueSpecification/RawLambda'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import type { RootFlatDataRecordTypeReference } from '../model/RootFlatDataRecordTypeReference'; -import type { InferableMappingElementRoot } from '../../../mapping/InferableMappingElementRoot'; -import { FlatDataPropertyMapping } from './FlatDataPropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation.js'; +import type { AbstractFlatDataPropertyMapping } from './AbstractFlatDataPropertyMapping.js'; +import type { Class } from '../../../domain/Class.js'; +import type { Mapping } from '../../../mapping/Mapping.js'; +import type { SetImplementationVisitor } from '../../../mapping/SetImplementation.js'; +import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId.js'; +import type { RawLambda } from '../../../../rawValueSpecification/RawLambda.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import type { RootFlatDataRecordTypeReference } from '../model/RootFlatDataRecordTypeReference.js'; +import type { InferableMappingElementRoot } from '../../../mapping/InferableMappingElementRoot.js'; +import { FlatDataPropertyMapping } from './FlatDataPropertyMapping.js'; export class FlatDataInstanceSetImplementation extends InstanceSetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.ts index c63ae582018..991cb1e6911 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.ts @@ -14,15 +14,15 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { EnumerationMapping } from '../../../mapping/EnumerationMapping'; -import type { RawLambda } from '../../../../rawValueSpecification/RawLambda'; -import { AbstractFlatDataPropertyMapping } from './AbstractFlatDataPropertyMapping'; -import type { SetImplementation } from '../../../mapping/SetImplementation'; -import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation'; -import type { PropertyReference } from '../../../domain/PropertyReference'; -import type { PropertyMappingVisitor } from '../../../mapping/PropertyMapping'; +import type { EnumerationMapping } from '../../../mapping/EnumerationMapping.js'; +import type { RawLambda } from '../../../../rawValueSpecification/RawLambda.js'; +import { AbstractFlatDataPropertyMapping } from './AbstractFlatDataPropertyMapping.js'; +import type { SetImplementation } from '../../../mapping/SetImplementation.js'; +import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation.js'; +import type { PropertyReference } from '../../../domain/PropertyReference.js'; +import type { PropertyMappingVisitor } from '../../../mapping/PropertyMapping.js'; export class FlatDataPropertyMapping extends AbstractFlatDataPropertyMapping diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatData.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatData.ts index 1a501574f55..63bdc78e42a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatData.ts @@ -15,10 +15,10 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { FlatDataSection } from './FlatDataSection'; -import { Store } from '../../Store'; -import type { PackageableElementVisitor } from '../../../PackageableElement'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { FlatDataSection } from './FlatDataSection.js'; +import { Store } from '../../Store.js'; +import type { PackageableElementVisitor } from '../../../PackageableElement.js'; export class FlatData extends Store implements Hashable { sections: FlatDataSection[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.ts index 35cd98393e1..7b212211499 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { FlatDataSection } from './FlatDataSection'; -import type { PrimitiveType } from '../../../domain/PrimitiveType'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { FlatDataSection } from './FlatDataSection.js'; +import type { PrimitiveType } from '../../../domain/PrimitiveType.js'; export abstract class FlatDataDataType { readonly _correspondingPrimitiveType?: PrimitiveType | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty.ts index 7c6ec5d20f1..39d91dc9c49 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export type FlatDataPropertyValue = boolean | string | number; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.ts index 0bc3e3e9c05..c64947de9af 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { FlatData } from './FlatData'; -import type { FlatDataProperty } from './FlatDataProperty'; -import type { RootFlatDataRecordType } from './FlatDataDataType'; +import type { FlatData } from './FlatData.js'; +import type { FlatDataProperty } from './FlatDataProperty.js'; +import type { RootFlatDataRecordType } from './FlatDataDataType.js'; export class FlatDataSection implements Hashable { readonly _OWNER: FlatData; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSectionReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSectionReference.ts index 3f39f49a797..9302c5e6566 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSectionReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/FlatDataSectionReference.ts @@ -14,16 +14,16 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashString } from '@finos/legend-shared'; import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../../../PackageableElementReference'; -import { ReferenceWithOwner } from '../../../../Reference'; -import type { FlatData } from './FlatData'; -import type { FlatDataSection } from './FlatDataSection'; +} from '../../../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../../../Reference.js'; +import type { FlatData } from './FlatData.js'; +import type { FlatDataSection } from './FlatDataSection.js'; export abstract class FlatDataSectionReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference.ts index 0428fdecf72..204e075d9ca 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference.ts @@ -18,10 +18,10 @@ import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../../../PackageableElementReference'; -import { ReferenceWithOwner } from '../../../../Reference'; -import type { RootFlatDataRecordType } from './FlatDataDataType'; -import type { FlatData } from './FlatData'; +} from '../../../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../../../Reference.js'; +import type { RootFlatDataRecordType } from './FlatDataDataType.js'; +import type { FlatData } from './FlatData.js'; export abstract class RootFlatDataRecordTypeReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.ts index bef42e58c07..275db02bdfe 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.ts @@ -20,12 +20,12 @@ import { ContentType, createUrlStringFromData, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { ConnectionVisitor } from '../../../connection/Connection'; -import type { Class } from '../../../domain/Class'; -import type { ModelStore } from '../model/ModelStore'; -import { PureModelConnection } from './PureModelConnection'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { ConnectionVisitor } from '../../../connection/Connection.js'; +import type { Class } from '../../../domain/Class.js'; +import type { ModelStore } from '../model/ModelStore.js'; +import { PureModelConnection } from './PureModelConnection.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; export class JsonModelConnection extends PureModelConnection diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.ts index 561bfb6218d..253259d639a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.ts @@ -15,14 +15,14 @@ */ import { hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type ConnectionVisitor, Connection, -} from '../../../connection/Connection'; -import type { Mapping } from '../../../mapping/Mapping'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import type { ModelStore } from '../model/ModelStore'; +} from '../../../connection/Connection.js'; +import type { Mapping } from '../../../mapping/Mapping.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import type { ModelStore } from '../model/ModelStore.js'; export class ModelChainConnection extends Connection { declare store: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/PureModelConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/PureModelConnection.ts index c2fc9f63cdf..b40c885ce95 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/PureModelConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/PureModelConnection.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { Connection } from '../../../connection/Connection'; +import { Connection } from '../../../connection/Connection.js'; export abstract class PureModelConnection extends Connection {} diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.ts index 80b8a8cd8c1..7d5ed9dbf00 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { ConnectionVisitor } from '../../../connection/Connection'; -import type { Class } from '../../../domain/Class'; -import type { ModelStore } from '../model/ModelStore'; -import { PureModelConnection } from './PureModelConnection'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { ConnectionVisitor } from '../../../connection/Connection.js'; +import type { Class } from '../../../domain/Class.js'; +import type { ModelStore } from '../model/ModelStore.js'; +import { PureModelConnection } from './PureModelConnection.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; export class XmlModelConnection extends PureModelConnection diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.ts index 032f3f16e3d..7b87af7bbf4 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.ts @@ -19,10 +19,10 @@ import { hashArray, tryToMinifyLosslessJSONString, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { InputData } from '../../../mapping/InputData'; -import type { Class } from '../../../domain/Class'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { InputData } from '../../../mapping/InputData.js'; +import type { Class } from '../../../domain/Class.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; export enum ObjectInputType { JSON = 'JSON', diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts index c5c2cbd1d10..05c25c94971 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts @@ -15,19 +15,19 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { Class } from '../../../domain/Class'; -import { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation'; -import type { PurePropertyMapping } from './PurePropertyMapping'; -import type { SetImplementationVisitor } from '../../../mapping/SetImplementation'; -import type { RawLambda } from '../../../../rawValueSpecification/RawLambda'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { Class } from '../../../domain/Class.js'; +import { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation.js'; +import type { PurePropertyMapping } from './PurePropertyMapping.js'; +import type { SetImplementationVisitor } from '../../../mapping/SetImplementation.js'; +import type { RawLambda } from '../../../../rawValueSpecification/RawLambda.js'; import type { PackageableElementReference, OptionalPackageableElementReference, -} from '../../../PackageableElementReference'; -import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId'; -import type { Mapping } from '../../../mapping/Mapping'; -import type { InferableMappingElementRoot } from '../../../mapping/InferableMappingElementRoot'; +} from '../../../PackageableElementReference.js'; +import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId.js'; +import type { Mapping } from '../../../mapping/Mapping.js'; +import type { InferableMappingElementRoot } from '../../../mapping/InferableMappingElementRoot.js'; export class PureInstanceSetImplementation extends InstanceSetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.ts index a055020c76f..e37f3cbb8ac 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; import { type PropertyMappingVisitor, PropertyMapping, -} from '../../../mapping/PropertyMapping'; -import type { EnumerationMapping } from '../../../mapping/EnumerationMapping'; -import type { PropertyReference } from '../../../domain/PropertyReference'; -import type { SetImplementation } from '../../../mapping/SetImplementation'; -import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation'; -import type { RawLambda } from '../../../../rawValueSpecification/RawLambda'; +} from '../../../mapping/PropertyMapping.js'; +import type { EnumerationMapping } from '../../../mapping/EnumerationMapping.js'; +import type { PropertyReference } from '../../../domain/PropertyReference.js'; +import type { SetImplementation } from '../../../mapping/SetImplementation.js'; +import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation.js'; +import type { RawLambda } from '../../../../rawValueSpecification/RawLambda.js'; export class PurePropertyMapping extends PropertyMapping implements Hashable { // TODO: convert to reference diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore.ts index 5cca27d46c9..3e47be7980e 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/modelToModel/model/ModelStore.ts @@ -15,9 +15,9 @@ */ import { UnsupportedOperationError } from '@finos/legend-shared'; -import { MODEL_STORE_NAME } from '../../../../../../../MetaModelConst'; -import { Store } from '../../Store'; -import type { PackageableElementVisitor } from '../../../PackageableElement'; +import { MODEL_STORE_NAME } from '../../../../../../../MetaModelConst.js'; +import { Store } from '../../Store.js'; +import type { PackageableElementVisitor } from '../../../PackageableElement.js'; export class ModelStore extends Store { constructor() { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.ts index 9325cb913a3..386c8ef6bef 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class AuthenticationStrategy implements Hashable { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.ts index 7004e59d40d..18f1bf98fdc 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export abstract class DatasourceSpecification implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.ts index 90918665d76..ad4e585a5fb 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; import { type ConnectionVisitor, Connection, -} from '../../../connection/Connection'; -import type { DatasourceSpecification } from './DatasourceSpecification'; -import type { AuthenticationStrategy } from './AuthenticationStrategy'; -import type { Database } from '../model/Database'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import type { PostProcessor } from './postprocessor/PostProcessor'; +} from '../../../connection/Connection.js'; +import type { DatasourceSpecification } from './DatasourceSpecification.js'; +import type { AuthenticationStrategy } from './AuthenticationStrategy.js'; +import type { Database } from '../model/Database.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import type { PostProcessor } from './postprocessor/PostProcessor.js'; // TODO: to be modularized or handled differently // See https://github.com/finos/legend-studio/issues/946 diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper.ts index df3e3183036..e7dc9f8bc2c 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export class PostProcessorParameter {} diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor.ts index 450128643ef..69ba8c68b9b 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { Mapper } from './Mapper'; -import { PostProcessor } from './PostProcessor'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; +import type { Mapper } from './Mapper.js'; +import { PostProcessor } from './PostProcessor.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export class MapperPostProcessor extends PostProcessor implements Hashable { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.ts index 61959d9d979..8ed50608950 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.ts @@ -20,28 +20,28 @@ import { type Hashable, isEmpty, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { RelationalOperationElement } from '../model/RelationalOperationElement'; -import type { EmbeddedSetImplementation } from '../../../mapping/EmbeddedSetImplementation'; -import type { Class } from '../../../domain/Class'; -import type { Mapping } from '../../../mapping/Mapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { RelationalOperationElement } from '../model/RelationalOperationElement.js'; +import type { EmbeddedSetImplementation } from '../../../mapping/EmbeddedSetImplementation.js'; +import type { Class } from '../../../domain/Class.js'; +import type { Mapping } from '../../../mapping/Mapping.js'; import type { SetImplementationVisitor, SetImplementation, -} from '../../../mapping/SetImplementation'; -import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation'; +} from '../../../mapping/SetImplementation.js'; +import type { PropertyMappingsImplementation } from '../../../mapping/PropertyMappingsImplementation.js'; import { type PropertyMappingVisitor, PropertyMapping, -} from '../../../mapping/PropertyMapping'; -import type { RootRelationalInstanceSetImplementation } from './RootRelationalInstanceSetImplementation'; -import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import type { PropertyReference } from '../../../domain/PropertyReference'; -import type { RelationalInstanceSetImplementation } from './RelationalInstanceSetImplementation'; -import { InferableMappingElementRootExplicitValue } from '../../../mapping/InferableMappingElementRoot'; -import type { MappingClass } from '../../../mapping/MappingClass'; -import { RelationalPropertyMapping } from './RelationalPropertyMapping'; +} from '../../../mapping/PropertyMapping.js'; +import type { RootRelationalInstanceSetImplementation } from './RootRelationalInstanceSetImplementation.js'; +import type { InferableMappingElementIdValue } from '../../../mapping/InferableMappingElementId.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import type { PropertyReference } from '../../../domain/PropertyReference.js'; +import type { RelationalInstanceSetImplementation } from './RelationalInstanceSetImplementation.js'; +import { InferableMappingElementRootExplicitValue } from '../../../mapping/InferableMappingElementRoot.js'; +import type { MappingClass } from '../../../mapping/MappingClass.js'; +import { RelationalPropertyMapping } from './RelationalPropertyMapping.js'; export class EmbeddedRelationalInstanceSetImplementation extends PropertyMapping diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/FilterMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/FilterMapping.ts index 0e74441e0ab..e22f5ec078a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/FilterMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/FilterMapping.ts @@ -14,14 +14,14 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { Database } from '../model/Database'; +import type { Database } from '../model/Database.js'; import { extractLine, type JoinTreeNode, -} from '../model/RelationalOperationElement'; -import type { FilterReference } from '../model/FilterReference'; +} from '../model/RelationalOperationElement.js'; +import type { FilterReference } from '../model/FilterReference.js'; export class FilterMapping implements Hashable { // setMappingOwner?: RelationalInstanceSetImplementation | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.ts index e31ebd9393c..a92224bdef8 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { RelationalOperationElement } from '../model/RelationalOperationElement'; +import type { RelationalOperationElement } from '../model/RelationalOperationElement.js'; export class GroupByMapping { // setMappingOwner?: RelationalInstanceSetImplementation | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.ts index f32b0dfc77f..e2435b8b5a1 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.ts @@ -14,15 +14,15 @@ * limitations under the License. */ -import { EmbeddedRelationalInstanceSetImplementation } from './EmbeddedRelationalInstanceSetImplementation'; -import type { InlineEmbeddedSetImplementation } from '../../../mapping/EmbeddedSetImplementation'; +import { EmbeddedRelationalInstanceSetImplementation } from './EmbeddedRelationalInstanceSetImplementation.js'; +import type { InlineEmbeddedSetImplementation } from '../../../mapping/EmbeddedSetImplementation.js'; import type { SetImplementation, SetImplementationVisitor, -} from '../../../mapping/SetImplementation'; -import type { PropertyMappingVisitor } from '../../../mapping/PropertyMapping'; +} from '../../../mapping/SetImplementation.js'; +import type { PropertyMappingVisitor } from '../../../mapping/PropertyMapping.js'; import { hashArray, UnsupportedOperationError } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export class InlineEmbeddedRelationalInstanceSetImplementation extends EmbeddedRelationalInstanceSetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.ts index c42771fb1c8..17c27472447 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.ts @@ -19,14 +19,14 @@ import { hashArray, UnsupportedOperationError, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { EmbeddedRelationalInstanceSetImplementation } from './EmbeddedRelationalInstanceSetImplementation'; -import type { OtherwiseEmebddedSetImplementation } from '../../../mapping/EmbeddedSetImplementation'; -import type { SetImplementationVisitor } from '../../../mapping/SetImplementation'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { EmbeddedRelationalInstanceSetImplementation } from './EmbeddedRelationalInstanceSetImplementation.js'; +import type { OtherwiseEmebddedSetImplementation } from '../../../mapping/EmbeddedSetImplementation.js'; +import type { SetImplementationVisitor } from '../../../mapping/SetImplementation.js'; import type { PropertyMapping, PropertyMappingVisitor, -} from '../../../mapping/PropertyMapping'; +} from '../../../mapping/PropertyMapping.js'; export class OtherwiseEmbeddedRelationalInstanceSetImplementation extends EmbeddedRelationalInstanceSetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.ts index 93c25db74f9..7dc5e4163c2 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.ts @@ -15,10 +15,10 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { InputData } from '../../../mapping/InputData'; -import type { PackageableElementReference } from '../../../PackageableElementReference'; -import type { Database } from '../model/Database'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { InputData } from '../../../mapping/InputData.js'; +import type { PackageableElementReference } from '../../../PackageableElementReference.js'; +import type { Database } from '../model/Database.js'; export enum RelationalInputType { SQL = 'SQL', diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.ts index f1fdd4904eb..d368f11a259 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.ts @@ -15,11 +15,11 @@ */ import { type Hashable, hashArray, isEmpty } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation'; -import type { SetImplementationVisitor } from '../../../mapping/SetImplementation'; -import type { RelationalOperationElement } from '../model/RelationalOperationElement'; -import { RelationalPropertyMapping } from './RelationalPropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { InstanceSetImplementation } from '../../../mapping/InstanceSetImplementation.js'; +import type { SetImplementationVisitor } from '../../../mapping/SetImplementation.js'; +import type { RelationalOperationElement } from '../model/RelationalOperationElement.js'; +import { RelationalPropertyMapping } from './RelationalPropertyMapping.js'; export class RelationalInstanceSetImplementation extends InstanceSetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.ts index 44df63c9624..38fa07deb93 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.ts @@ -14,16 +14,16 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { EnumerationMapping } from '../../../mapping/EnumerationMapping'; +import type { EnumerationMapping } from '../../../mapping/EnumerationMapping.js'; import { type PropertyMappingVisitor, PropertyMapping, -} from '../../../mapping/PropertyMapping'; -import { hashObjectWithoutSourceInformation } from '../../../../../../../MetaModelUtils'; -import type { RawRelationalOperationElement } from '../model/RawRelationalOperationElement'; -import type { BindingTransformer } from '../../../externalFormat/store/DSLExternalFormat_BindingTransformer'; +} from '../../../mapping/PropertyMapping.js'; +import { hashObjectWithoutSourceInformation } from '../../../../../../../MetaModelUtils.js'; +import type { RawRelationalOperationElement } from '../model/RawRelationalOperationElement.js'; +import type { BindingTransformer } from '../../../externalFormat/store/DSLExternalFormat_BindingTransformer.js'; export class RelationalPropertyMapping extends PropertyMapping diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.ts index ff3e440cf17..81f49a63adc 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.ts @@ -15,16 +15,16 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { SetImplementationVisitor } from '../../../mapping/SetImplementation'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { SetImplementationVisitor } from '../../../mapping/SetImplementation.js'; import type { RelationalMappingSpecification, TableAlias, -} from '../model/RelationalOperationElement'; -import type { ColumnMapping } from '../model/ColumnMapping'; -import { RelationalInstanceSetImplementation } from './RelationalInstanceSetImplementation'; -import type { GroupByMapping } from './GroupByMapping'; -import type { FilterMapping } from './FilterMapping'; +} from '../model/RelationalOperationElement.js'; +import type { ColumnMapping } from '../model/ColumnMapping.js'; +import { RelationalInstanceSetImplementation } from './RelationalInstanceSetImplementation.js'; +import type { GroupByMapping } from './GroupByMapping.js'; +import type { FilterMapping } from './FilterMapping.js'; export class RootRelationalInstanceSetImplementation extends RelationalInstanceSetImplementation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Column.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Column.ts index ed4c809c20d..6cbe9445f7a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Column.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Column.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; import { type Relation, RelationalOperationElement, -} from './RelationalOperationElement'; -import type { RelationalDataType } from './RelationalDataType'; +} from './RelationalOperationElement.js'; +import type { RelationalDataType } from './RelationalDataType.js'; export class Column extends RelationalOperationElement implements Hashable { owner!: Relation; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnMapping.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnMapping.ts index 645994764cd..1363df2a9cb 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnMapping.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnMapping.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { RelationalOperationElement } from './RelationalOperationElement'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { RelationalOperationElement } from './RelationalOperationElement.js'; export class ColumnMapping implements Hashable { columnName: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnReference.ts index 8aa229f0723..53eec1ab130 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ColumnReference.ts @@ -18,14 +18,14 @@ import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../../../PackageableElementReference'; -import { ReferenceWithOwner } from '../../../../Reference'; -import type { Database } from './Database'; -import type { Column } from './Column'; -import type { Relation } from './RelationalOperationElement'; -import type { Schema } from './Schema'; -import { View } from './View'; -import { Table } from './Table'; +} from '../../../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../../../Reference.js'; +import type { Database } from './Database.js'; +import type { Column } from './Column.js'; +import type { Relation } from './RelationalOperationElement.js'; +import type { Schema } from './Schema.js'; +import { View } from './View.js'; +import { Table } from './Table.js'; import { UnsupportedOperationError } from '@finos/legend-shared'; const getSchemaFromRelation = (value: Relation): Schema => { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Database.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Database.ts index fb39db9ca81..5aae50bd2dc 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Database.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Database.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { Store } from '../../Store'; -import type { PackageableElementVisitor } from '../../../PackageableElement'; -import type { Schema } from './Schema'; -import type { Join } from './Join'; -import type { Filter } from './Filter'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { Store } from '../../Store.js'; +import type { PackageableElementVisitor } from '../../../PackageableElement.js'; +import type { Schema } from './Schema.js'; +import type { Join } from './Join.js'; +import type { Filter } from './Filter.js'; export class Database extends Store implements Hashable { schemas: Schema[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Filter.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Filter.ts index 13feb24e8f2..8432b5784ae 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Filter.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Filter.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { Operation } from './RelationalOperationElement'; -import type { Database } from './Database'; +import type { Operation } from './RelationalOperationElement.js'; +import type { Database } from './Database.js'; export class Filter implements Hashable { owner!: Database; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/FilterReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/FilterReference.ts index b4fa2f8e97a..52aae8b0372 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/FilterReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/FilterReference.ts @@ -18,10 +18,10 @@ import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../../../PackageableElementReference'; -import { ReferenceWithOwner } from '../../../../Reference'; -import type { Database } from './Database'; -import type { Filter } from './Filter'; +} from '../../../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../../../Reference.js'; +import type { Database } from './Database.js'; +import type { Filter } from './Filter.js'; export abstract class FilterReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Join.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Join.ts index b4ce268a498..9cd33a641b7 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Join.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Join.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, type Pair, hashArray } from '@finos/legend-shared'; -import type { Operation, TableAlias } from './RelationalOperationElement'; -import type { Database } from './Database'; +import type { Operation, TableAlias } from './RelationalOperationElement.js'; +import type { Database } from './Database.js'; export const SELF_JOIN_TABLE_NAME = '{target}'; export const SELF_JOIN_SCHEMA_NAME = 'default'; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/JoinReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/JoinReference.ts index ed15c595071..e861bb6f4ec 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/JoinReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/JoinReference.ts @@ -18,10 +18,10 @@ import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../../../PackageableElementReference'; -import { ReferenceWithOwner } from '../../../../Reference'; -import type { Database } from './Database'; -import type { Join } from './Join'; +} from '../../../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../../../Reference.js'; +import type { Database } from './Database.js'; +import type { Join } from './Join.js'; export abstract class JoinReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationReference.ts index 308b9fefe28..4bb17210fb0 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationReference.ts @@ -15,16 +15,19 @@ */ import { UnsupportedOperationError } from '@finos/legend-shared'; -import type { PackageableElementImplicitReference } from '../../../PackageableElementReference'; -import type { Database } from './Database'; -import { Table } from './Table'; -import type { Relation } from './RelationalOperationElement'; -import { ViewExplicitReference, ViewImplicitReference } from './ViewReference'; -import { View } from './View'; +import type { PackageableElementImplicitReference } from '../../../PackageableElementReference.js'; +import type { Database } from './Database.js'; +import { Table } from './Table.js'; +import type { Relation } from './RelationalOperationElement.js'; +import { + ViewExplicitReference, + ViewImplicitReference, +} from './ViewReference.js'; +import { View } from './View.js'; import { TableExplicitReference, TableImplicitReference, -} from './TableReference'; +} from './TableReference.js'; export const createExplicitRelationReference = ( value: Relation, diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType.ts index 8ebaec52ea8..35775442342 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalDataType.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; export abstract class RelationalDataType { diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.ts index d27bc62d5e6..01f3a2db8f4 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.ts @@ -14,20 +14,20 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray, UnsupportedOperationError, type Hashable, } from '@finos/legend-shared'; -import type { GroupByMapping } from '../mapping/GroupByMapping'; -import type { FilterMapping } from '../mapping/FilterMapping'; -import type { JoinReference } from './JoinReference'; -import type { TableReference } from './TableReference'; -import type { ViewReference } from './ViewReference'; -import type { ColumnReference } from './ColumnReference'; -import type { Database } from './Database'; -import { SELF_JOIN_TABLE_NAME } from './Join'; +import type { GroupByMapping } from '../mapping/GroupByMapping.js'; +import type { FilterMapping } from '../mapping/FilterMapping.js'; +import type { JoinReference } from './JoinReference.js'; +import type { TableReference } from './TableReference.js'; +import type { ViewReference } from './ViewReference.js'; +import type { ColumnReference } from './ColumnReference.js'; +import type { Database } from './Database.js'; +import { SELF_JOIN_TABLE_NAME } from './Join.js'; export abstract class RelationalOperationElement { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Schema.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Schema.ts index 571825cba27..7ca6166d725 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Schema.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Schema.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { Database } from './Database'; -import type { Table } from './Table'; -import type { View } from './View'; +import type { Database } from './Database.js'; +import type { Table } from './Table.js'; +import type { View } from './View.js'; export class Schema implements Hashable { readonly _OWNER: Database; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Table.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Table.ts index ea0dd62868e..f6c6451476f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Table.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/Table.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { NamedRelation } from './RelationalOperationElement'; -import type { Schema } from './Schema'; -import type { Column } from './Column'; -import type { Milestoning } from './milestoning/Milestoning'; +import { NamedRelation } from './RelationalOperationElement.js'; +import type { Schema } from './Schema.js'; +import type { Column } from './Column.js'; +import type { Milestoning } from './milestoning/Milestoning.js'; export class Table extends NamedRelation implements Hashable { schema!: Schema; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/TableReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/TableReference.ts index 2355f1bfc17..60a24fa04d3 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/TableReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/TableReference.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashString } from '@finos/legend-shared'; import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../../../PackageableElementReference'; -import { ReferenceWithOwner } from '../../../../Reference'; -import type { Database } from './Database'; -import type { Table } from './Table'; -import { SELF_JOIN_SCHEMA_NAME, SELF_JOIN_TABLE_NAME } from './Join'; +} from '../../../PackageableElementReference.js'; +import { ReferenceWithOwner } from '../../../../Reference.js'; +import type { Database } from './Database.js'; +import type { Table } from './Table.js'; +import { SELF_JOIN_SCHEMA_NAME, SELF_JOIN_TABLE_NAME } from './Join.js'; export abstract class NamedRelationalReference extends ReferenceWithOwner { override readonly ownerReference: PackageableElementReference; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/View.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/View.ts index 06097079252..8326e21cbc8 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/View.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/View.ts @@ -15,16 +15,16 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { ColumnMapping } from './ColumnMapping'; -import type { Schema } from './Schema'; -import type { Column } from './Column'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { ColumnMapping } from './ColumnMapping.js'; +import type { Schema } from './Schema.js'; +import type { Column } from './Column.js'; import { type RelationalMappingSpecification, NamedRelation, -} from './RelationalOperationElement'; -import type { GroupByMapping } from '../mapping/GroupByMapping'; -import type { FilterMapping } from '../mapping/FilterMapping'; +} from './RelationalOperationElement.js'; +import type { GroupByMapping } from '../mapping/GroupByMapping.js'; +import type { FilterMapping } from '../mapping/FilterMapping.js'; export class View extends NamedRelation diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ViewReference.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ViewReference.ts index 659eed30199..49a0976dc31 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ViewReference.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/ViewReference.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashString } from '@finos/legend-shared'; import { PackageableElementExplicitReference, type PackageableElementReference, type PackageableElementImplicitReference, -} from '../../../PackageableElementReference'; -import type { Database } from './Database'; -import type { View } from './View'; -import { NamedRelationalReference } from './TableReference'; -import { SELF_JOIN_SCHEMA_NAME, SELF_JOIN_TABLE_NAME } from './Join'; +} from '../../../PackageableElementReference.js'; +import type { Database } from './Database.js'; +import type { View } from './View.js'; +import { NamedRelationalReference } from './TableReference.js'; +import { SELF_JOIN_SCHEMA_NAME, SELF_JOIN_TABLE_NAME } from './Join.js'; export abstract class ViewReference extends NamedRelationalReference { value: View; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning.ts index 07fd5ddbe58..5d200ee5bdc 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; -import { TemporalMilestoning } from './Milestoning'; +import { TemporalMilestoning } from './Milestoning.js'; export class BusinessMilestoning extends TemporalMilestoning { // from and to are columns in mm. We will use string for now until we add resolvement of columns diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning.ts index c28da955ae3..3dc49a6fb72 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; -import { TemporalMilestoning } from './Milestoning'; +import { TemporalMilestoning } from './Milestoning.js'; export class BusinessSnapshotMilestoning extends TemporalMilestoning { // TODO: resolve snapshotDate to a column diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.ts index 896085802a3..27b3a70d32d 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.ts @@ -15,7 +15,7 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { RawPrimitiveInstanceValue } from '../../../../../rawValueSpecification/RawPrimitiveInstanceValue'; +import type { RawPrimitiveInstanceValue } from '../../../../../rawValueSpecification/RawPrimitiveInstanceValue.js'; export abstract class Milestoning implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning.ts b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning.ts index a8b853af2db..e9dc6b91737 100644 --- a/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning.ts +++ b/packages/legend-graph/src/models/metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { TemporalMilestoning } from './Milestoning'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; +import { TemporalMilestoning } from './Milestoning.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; export class ProcessingMilestoning extends TemporalMilestoning { diff --git a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawLambda.ts b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawLambda.ts index 717e41780bf..57dc285807b 100644 --- a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawLambda.ts +++ b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawLambda.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { hashRawLambda } from '../../../../MetaModelUtils'; +import { hashRawLambda } from '../../../../MetaModelUtils.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst.js'; import { type RawValueSpecificationVisitor, RawValueSpecification, -} from './RawValueSpecification'; +} from './RawValueSpecification.js'; export class RawLambda extends RawValueSpecification implements Hashable { body?: object | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.ts b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.ts index a49afa04bb3..67be585bd02 100644 --- a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.ts +++ b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.ts @@ -15,14 +15,14 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { Multiplicity } from '../packageableElements/domain/Multiplicity'; -import type { PackageableElementReference } from '../packageableElements/PackageableElementReference'; -import type { Type } from '../packageableElements/domain/Type'; +import type { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; +import type { PackageableElementReference } from '../packageableElements/PackageableElementReference.js'; +import type { Type } from '../packageableElements/domain/Type.js'; import { type RawValueSpecificationVisitor, RawValueSpecification, -} from './RawValueSpecification'; -import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst'; +} from './RawValueSpecification.js'; +import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst.js'; export class RawPrimitiveInstanceValue extends RawValueSpecification diff --git a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawValueSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawValueSpecification.ts index 1fbc42be8f9..81be1677185 100644 --- a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawValueSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawValueSpecification.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { RawVariableExpression } from './RawVariableExpression'; -import type { RawLambda } from './RawLambda'; -import type { RawPrimitiveInstanceValue } from './RawPrimitiveInstanceValue'; +import type { RawVariableExpression } from './RawVariableExpression.js'; +import type { RawLambda } from './RawLambda.js'; +import type { RawPrimitiveInstanceValue } from './RawPrimitiveInstanceValue.js'; export interface RawValueSpecificationVisitor { visit_RawLambda(valueSpecification: RawLambda): T; diff --git a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawVariableExpression.ts b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawVariableExpression.ts index dee85c42253..7fd55e21898 100644 --- a/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawVariableExpression.ts +++ b/packages/legend-graph/src/models/metamodels/pure/rawValueSpecification/RawVariableExpression.ts @@ -15,14 +15,14 @@ */ import { hashArray, uuid, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst'; -import type { Type } from '../packageableElements/domain/Type'; -import type { Multiplicity } from '../packageableElements/domain/Multiplicity'; -import type { PackageableElementReference } from '../packageableElements/PackageableElementReference'; +import { CORE_HASH_STRUCTURE } from '../../../../MetaModelConst.js'; +import type { Type } from '../packageableElements/domain/Type.js'; +import type { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; +import type { PackageableElementReference } from '../packageableElements/PackageableElementReference.js'; import { type RawValueSpecificationVisitor, RawValueSpecification, -} from './RawValueSpecification'; +} from './RawValueSpecification.js'; export class RawVariableExpression extends RawValueSpecification diff --git a/packages/legend-graph/src/models/metamodels/pure/test/Test.ts b/packages/legend-graph/src/models/metamodels/pure/test/Test.ts index d4b1338538e..69281fd8bce 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/Test.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/Test.ts @@ -15,7 +15,7 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { TestAssertion } from './assertion/TestAssertion'; +import type { TestAssertion } from './assertion/TestAssertion.js'; export abstract class Test implements Hashable { id!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/Testable.ts b/packages/legend-graph/src/models/metamodels/pure/test/Testable.ts index 63efc05475b..7c376817ccf 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/Testable.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/Testable.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { Test } from './Test'; +import type { Test } from './Test.js'; export interface Testable { tests: Test[]; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualTo.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualTo.ts index f33797d2481..47fccc2b426 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualTo.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualTo.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import { hashObjectWithoutSourceInformation } from '../../../../../MetaModelUtils'; -import { TestAssertion, type TestAssertionVisitor } from './TestAssertion'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import { hashObjectWithoutSourceInformation } from '../../../../../MetaModelUtils.js'; +import { TestAssertion, type TestAssertionVisitor } from './TestAssertion.js'; export class EqualTo extends TestAssertion implements Hashable { /** diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToJson.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToJson.ts index dc999c6d4c7..ffe8b25e26b 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToJson.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToJson.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; -import type { ExternalFormatData } from '../../data/EmbeddedData'; -import { TestAssertion, type TestAssertionVisitor } from './TestAssertion'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; +import type { ExternalFormatData } from '../../data/EmbeddedData.js'; +import { TestAssertion, type TestAssertionVisitor } from './TestAssertion.js'; export class EqualToJson extends TestAssertion implements Hashable { expected!: ExternalFormatData; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToTDS.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToTDS.ts index 8e89b5f1518..625631ab7e6 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToTDS.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/EqualToTDS.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../MetaModelConst.js'; import type { RelationalDataTableColumn, RelationalDataTableRow, -} from '../../data/RelationalData'; -import { type TestAssertionVisitor, TestAssertion } from './TestAssertion'; +} from '../../data/RelationalData.js'; +import { type TestAssertionVisitor, TestAssertion } from './TestAssertion.js'; export class RelationalTDS implements Hashable { columns: RelationalDataTableColumn[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/TestAssertion.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/TestAssertion.ts index 89f46c1532e..7d1c9883ad5 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/TestAssertion.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/TestAssertion.ts @@ -15,10 +15,10 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { AtomicTest } from '../Test'; -import type { EqualTo } from './EqualTo'; -import type { EqualToJson } from './EqualToJson'; -import type { EqualToTDS } from './EqualToTDS'; +import type { AtomicTest } from '../Test.js'; +import type { EqualTo } from './EqualTo.js'; +import type { EqualToJson } from './EqualToJson.js'; +import type { EqualToTDS } from './EqualToTDS.js'; export abstract class TestAssertion implements Hashable { id!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertFail.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertFail.ts index b9aad34bc04..df31e9d88f3 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertFail.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertFail.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { TestAssertion } from '../TestAssertion'; -import { AssertionStatus } from './AssertionStatus'; +import type { TestAssertion } from '../TestAssertion.js'; +import { AssertionStatus } from './AssertionStatus.js'; export class AssertFail extends AssertionStatus { message?: string | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertPass.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertPass.ts index 832eb3722d9..c0ad135a3e8 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertPass.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertPass.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { AssertionStatus } from './AssertionStatus'; +import { AssertionStatus } from './AssertionStatus.js'; export class AssertPass extends AssertionStatus {} diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertionStatus.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertionStatus.ts index f0a38f83aab..206d9ab2d1f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertionStatus.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/AssertionStatus.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { TestAssertion } from '../TestAssertion'; +import type { TestAssertion } from '../TestAssertion.js'; export abstract class AssertionStatus { assertion: TestAssertion; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/EqualToJsonAssertFail.ts b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/EqualToJsonAssertFail.ts index 03ace435ede..562348a9a82 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/EqualToJsonAssertFail.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/assertion/status/EqualToJsonAssertFail.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { AssertFail } from './AssertFail'; +import { AssertFail } from './AssertFail.js'; export class EqualToJsonAssertFail extends AssertFail { expected!: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/result/AtomicTestId.ts b/packages/legend-graph/src/models/metamodels/pure/test/result/AtomicTestId.ts index 3f6582efa6a..7d6c83a23c3 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/result/AtomicTestId.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/result/AtomicTestId.ts @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { AtomicTest, TestSuite } from '../Test'; +import type { AtomicTest, TestSuite } from '../Test.js'; export class AtomicTestId { parentSuite: TestSuite | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/result/RunTestsTestableInput.ts b/packages/legend-graph/src/models/metamodels/pure/test/result/RunTestsTestableInput.ts index 8d5a887294d..125e937a702 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/result/RunTestsTestableInput.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/result/RunTestsTestableInput.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { Testable } from '../Testable'; -import type { AtomicTestId } from './AtomicTestId'; +import type { Testable } from '../Testable.js'; +import type { AtomicTestId } from './AtomicTestId.js'; export class RunTestsTestableInput { testable: Testable; diff --git a/packages/legend-graph/src/models/metamodels/pure/test/result/TestResult.ts b/packages/legend-graph/src/models/metamodels/pure/test/result/TestResult.ts index d3bcd90d964..2bacbd82994 100644 --- a/packages/legend-graph/src/models/metamodels/pure/test/result/TestResult.ts +++ b/packages/legend-graph/src/models/metamodels/pure/test/result/TestResult.ts @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import type { AssertionStatus } from '../assertion/status/AssertionStatus'; -import type { Testable } from '../Testable'; -import type { AtomicTestId } from './AtomicTestId'; +import type { AssertionStatus } from '../assertion/status/AssertionStatus.js'; +import type { Testable } from '../Testable.js'; +import type { AtomicTestId } from './AtomicTestId.js'; export class TestResult { testable!: Testable; diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/AlloySerializationConfig.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/AlloySerializationConfig.ts index c15506e5bde..534646642dd 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/AlloySerializationConfig.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/AlloySerializationConfig.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { InstanceValue } from './InstanceValue'; +import { InstanceValue } from './InstanceValue.js'; export class AlloySerializationConfig { typeKeyName: string; diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ExecutionContext.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ExecutionContext.ts index a3c9b0ba9c7..e3baa89a165 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ExecutionContext.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ExecutionContext.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { LambdaFunction } from './LambdaFunction'; +import type { LambdaFunction } from './LambdaFunction.js'; export abstract class ExecutionContext { queryTimeOutInSeconds?: number | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/GraphFetchTree.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/GraphFetchTree.ts index 1d6e25e5ece..32f6a83161a 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/GraphFetchTree.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/GraphFetchTree.ts @@ -14,18 +14,18 @@ * limitations under the License. */ -import type { Class } from '../packageableElements/domain/Class'; -import type { PropertyReference } from '../packageableElements/domain/PropertyReference'; +import type { Class } from '../packageableElements/domain/Class.js'; +import type { PropertyReference } from '../packageableElements/domain/PropertyReference.js'; import { OptionalPackageableElementExplicitReference, type OptionalPackageableElementReference, type PackageableElementReference, -} from '../packageableElements/PackageableElementReference'; +} from '../packageableElements/PackageableElementReference.js'; import type { ValueSpecification, ValueSpecificationVisitor, -} from './ValueSpecification'; -import { InstanceValue } from './InstanceValue'; +} from './ValueSpecification.js'; +import { InstanceValue } from './InstanceValue.js'; export abstract class GraphFetchTree { subTrees: GraphFetchTree[] = []; diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue.ts index f6ac44b39dc..2f85b153684 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__PropagatedValue.ts @@ -17,7 +17,7 @@ import { ValueSpecification, type ValueSpecificationVisitor, -} from './ValueSpecification'; +} from './ValueSpecification.js'; /** * This value specification maintains a reference to another value specification diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.ts index cf2fbd45df0..fabb9af36dd 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { Multiplicity } from '../packageableElements/domain/Multiplicity'; +import { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; import { type ValueSpecificationVisitor, ValueSpecification, -} from './ValueSpecification'; +} from './ValueSpecification.js'; /** * This value specification is used to hold a value specification type that we can't yet handle diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/InstanceValue.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/InstanceValue.ts index 17ddbdb437d..bf8693b8d27 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/InstanceValue.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/InstanceValue.ts @@ -18,13 +18,13 @@ import type { Pair } from '@finos/legend-shared'; import { type ValueSpecificationVisitor, ValueSpecification, -} from './ValueSpecification'; -import type { Multiplicity } from '../packageableElements/domain/Multiplicity'; -import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference'; -import type { EnumValueReference } from '../packageableElements/domain/EnumValueReference'; -import type { PackageableElementReference } from '../packageableElements/PackageableElementReference'; -import type { EngineRuntime } from '../packageableElements/runtime/Runtime'; -import type { Mapping } from '../packageableElements/mapping/Mapping'; +} from './ValueSpecification.js'; +import type { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; +import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference.js'; +import type { EnumValueReference } from '../packageableElements/domain/EnumValueReference.js'; +import type { PackageableElementReference } from '../packageableElements/PackageableElementReference.js'; +import type { EngineRuntime } from '../packageableElements/runtime/Runtime.js'; +import type { Mapping } from '../packageableElements/mapping/Mapping.js'; /** * NOTE: {@link InstanceValue} is the only metamodel available in Pure. diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/LambdaFunction.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/LambdaFunction.ts index 45d217ebadc..c07b87c2b2f 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/LambdaFunction.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/LambdaFunction.ts @@ -14,14 +14,14 @@ * limitations under the License. */ -import type { Type } from '../packageableElements/domain/Type'; -import type { VariableExpression } from './VariableExpression'; -import { InstanceValue } from './InstanceValue'; +import type { Type } from '../packageableElements/domain/Type.js'; +import type { VariableExpression } from './VariableExpression.js'; +import { InstanceValue } from './InstanceValue.js'; import type { ValueSpecification, ValueSpecificationVisitor, -} from './ValueSpecification'; -import type { Multiplicity } from '../packageableElements/domain/Multiplicity'; +} from './ValueSpecification.js'; +import type { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; export class FunctionType { returnType?: Type | undefined; diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/SimpleFunctionExpression.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/SimpleFunctionExpression.ts index 0587ae44562..b907c8bf0f2 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/SimpleFunctionExpression.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/SimpleFunctionExpression.ts @@ -14,15 +14,15 @@ * limitations under the License. */ -import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference'; -import type { Multiplicity } from '../packageableElements/domain/Multiplicity'; -import type { PackageableElementReference } from '../packageableElements/PackageableElementReference'; +import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference.js'; +import type { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; +import type { PackageableElementReference } from '../packageableElements/PackageableElementReference.js'; import { type ValueSpecificationVisitor, ValueSpecification, -} from './ValueSpecification'; -import type { Function } from '../packageableElements/domain/Function'; -import type { AbstractProperty } from '../packageableElements/domain/AbstractProperty'; +} from './ValueSpecification.js'; +import type { Function } from '../packageableElements/domain/Function.js'; +import type { AbstractProperty } from '../packageableElements/domain/AbstractProperty.js'; import { UnsupportedOperationError } from '@finos/legend-shared'; export class Expression extends ValueSpecification { diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ValueSpecification.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ValueSpecification.ts index 01f0563a5cc..64b1f19c2c4 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ValueSpecification.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/ValueSpecification.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference'; -import type { Multiplicity } from '../packageableElements/domain/Multiplicity'; -import type { AlloySerializationConfigInstanceValue } from './AlloySerializationConfig'; +import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference.js'; +import type { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; +import type { AlloySerializationConfigInstanceValue } from './AlloySerializationConfig.js'; import type { RootGraphFetchTreeInstanceValue, PropertyGraphFetchTreeInstanceValue, -} from './GraphFetchTree'; +} from './GraphFetchTree.js'; import type { InstanceValue, PrimitiveInstanceValue, @@ -30,16 +30,16 @@ import type { PairInstanceValue, PureListInstanceValue, CollectionInstanceValue, -} from './InstanceValue'; -import type { LambdaFunctionInstanceValue } from './LambdaFunction'; +} from './InstanceValue.js'; +import type { LambdaFunctionInstanceValue } from './LambdaFunction.js'; import type { FunctionExpression, SimpleFunctionExpression, AbstractPropertyExpression, -} from './SimpleFunctionExpression'; -import type { INTERNAL__UnknownValueSpecification } from './INTERNAL__UnknownValueSpecification'; -import type { VariableExpression } from './VariableExpression'; -import type { INTERNAL__PropagatedValue } from './INTERNAL__PropagatedValue'; +} from './SimpleFunctionExpression.js'; +import type { INTERNAL__UnknownValueSpecification } from './INTERNAL__UnknownValueSpecification.js'; +import type { VariableExpression } from './VariableExpression.js'; +import type { INTERNAL__PropagatedValue } from './INTERNAL__PropagatedValue.js'; export interface ValueSpecificationVisitor { visit_RootGraphFetchTreeInstanceValue( diff --git a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/VariableExpression.ts b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/VariableExpression.ts index 9b572a368f8..97bbcc1220d 100644 --- a/packages/legend-graph/src/models/metamodels/pure/valueSpecification/VariableExpression.ts +++ b/packages/legend-graph/src/models/metamodels/pure/valueSpecification/VariableExpression.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference'; -import type { Multiplicity } from '../packageableElements/domain/Multiplicity'; +import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference.js'; +import type { Multiplicity } from '../packageableElements/domain/Multiplicity.js'; import { type ValueSpecificationVisitor, ValueSpecification, -} from './ValueSpecification'; +} from './ValueSpecification.js'; export class VariableExpression extends ValueSpecification { name: string; diff --git a/packages/legend-graph/src/models/protocols/pure/DSLData_PureProtocolProcessorPlugin_Extension.ts b/packages/legend-graph/src/models/protocols/pure/DSLData_PureProtocolProcessorPlugin_Extension.ts index 80718982184..0dda77dac63 100644 --- a/packages/legend-graph/src/models/protocols/pure/DSLData_PureProtocolProcessorPlugin_Extension.ts +++ b/packages/legend-graph/src/models/protocols/pure/DSLData_PureProtocolProcessorPlugin_Extension.ts @@ -15,11 +15,11 @@ */ import type { PlainObject } from '@finos/legend-shared'; -import type { EmbeddedData } from '../../metamodels/pure/data/EmbeddedData'; -import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin'; -import type { V1_EmbeddedData } from './v1/model/data/V1_EmbeddedData'; -import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext'; -import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext'; +import type { EmbeddedData } from '../../metamodels/pure/data/EmbeddedData.js'; +import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin.js'; +import type { V1_EmbeddedData } from './v1/model/data/V1_EmbeddedData.js'; +import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext.js'; +import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext.js'; export type V1_EmbeddedDataBuilder = ( protocol: V1_EmbeddedData, diff --git a/packages/legend-graph/src/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.ts b/packages/legend-graph/src/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.ts index 0551f1dd497..348e86b30ca 100644 --- a/packages/legend-graph/src/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.ts +++ b/packages/legend-graph/src/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.ts @@ -23,33 +23,33 @@ import { guaranteeNonNullable, } from '@finos/legend-shared'; import { deserialize, serialize } from 'serializr'; -import type { PureModel } from '../../../graph/PureModel'; +import type { PureModel } from '../../../graph/PureModel.js'; import { getOwnBinding, getOwnSchemaSet, -} from '../../../graphManager/DSLExternalFormat_GraphManagerHelper'; -import type { Connection } from '../../metamodels/pure/packageableElements/connection/Connection'; -import type { Mapping } from '../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { PackageableElement } from '../../metamodels/pure/packageableElements/PackageableElement'; +} from '../../../graphManager/DSLExternalFormat_GraphManagerHelper.js'; +import type { Connection } from '../../metamodels/pure/packageableElements/connection/Connection.js'; +import type { Mapping } from '../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { PackageableElement } from '../../metamodels/pure/packageableElements/PackageableElement.js'; import { PackageableElementReference, toOptionalPackageableElementReference, -} from '../../metamodels/pure/packageableElements/PackageableElementReference'; -import type { Runtime } from '../../metamodels/pure/packageableElements/runtime/Runtime'; -import { ExternalFormatConnection } from '../../metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection'; -import { UrlStream } from '../../metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream'; -import { Schema } from '../../metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema'; -import { SchemaSet } from '../../metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet'; -import { Binding } from '../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding'; -import { ModelUnit } from '../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit'; -import type { Store } from '../../metamodels/pure/packageableElements/store/Store'; +} from '../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { Runtime } from '../../metamodels/pure/packageableElements/runtime/Runtime.js'; +import { ExternalFormatConnection } from '../../metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_ExternalFormatConnection.js'; +import { UrlStream } from '../../metamodels/pure/packageableElements/externalFormat/connection/DSLExternalFormat_UrlStream.js'; +import { Schema } from '../../metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_Schema.js'; +import { SchemaSet } from '../../metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.js'; +import { Binding } from '../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js'; +import { ModelUnit } from '../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_ModelUnit.js'; +import type { Store } from '../../metamodels/pure/packageableElements/store/Store.js'; import type { DSLMapping_PureProtocolProcessorPlugin_Extension, V1_ConnectionBuilder, V1_ConnectionProtocolDeserializer, V1_ConnectionProtocolSerializer, V1_ConnectionTransformer, -} from './DSLMapping_PureProtocolProcessorPlugin_Extension'; +} from './DSLMapping_PureProtocolProcessorPlugin_Extension.js'; import { type V1_ElementProtocolClassifierPathGetter, type V1_ElementProtocolDeserializer, @@ -57,30 +57,30 @@ import { type V1_ElementTransformer, type V1_ExecutionInputGetter, PureProtocolProcessorPlugin, -} from './PureProtocolProcessorPlugin'; -import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData'; -import type { V1_Connection } from './v1/model/packageableElements/connection/V1_Connection'; -import { V1_ExternalFormatConnection } from './v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection'; -import { V1_UrlStream } from './v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream'; -import { V1_Schema } from './v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema'; -import { V1_SchemaSet } from './v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet'; -import { V1_Binding } from './v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding'; -import { V1_ModelUnit } from './v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit'; -import type { V1_PackageableElement } from './v1/model/packageableElements/V1_PackageableElement'; +} from './PureProtocolProcessorPlugin.js'; +import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData.js'; +import type { V1_Connection } from './v1/model/packageableElements/connection/V1_Connection.js'; +import { V1_ExternalFormatConnection } from './v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection.js'; +import { V1_UrlStream } from './v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream.js'; +import { V1_Schema } from './v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema.js'; +import { V1_SchemaSet } from './v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet.js'; +import { V1_Binding } from './v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding.js'; +import { V1_ModelUnit } from './v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit.js'; +import type { V1_PackageableElement } from './v1/model/packageableElements/V1_PackageableElement.js'; import { V1_initPackageableElement, V1_transformElementReference, -} from './v1/transformation/pureGraph/from/V1_CoreTransformerHelper'; -import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext'; +} from './v1/transformation/pureGraph/from/V1_CoreTransformerHelper.js'; +import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext.js'; import { V1_resolveBinding, V1_resolveSchemaSet, -} from './v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper'; -import { V1_ElementBuilder } from './v1/transformation/pureGraph/to/V1_ElementBuilder'; +} from './v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper.js'; +import { V1_ElementBuilder } from './v1/transformation/pureGraph/to/V1_ElementBuilder.js'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from './v1/transformation/pureGraph/to/V1_GraphBuilderContext'; +} from './v1/transformation/pureGraph/to/V1_GraphBuilderContext.js'; import { V1_bindingModelSchema, V1_BINDING_ELEMENT_PROTOCOL_TYPE, @@ -88,7 +88,7 @@ import { V1_EXTERNAL_FORMAT_CONNECTION_ELEMENT_PROTOCOL_TYPE, V1_schemaSetModelSchema, V1_SCHEMA_SET_ELEMENT_PROTOCOL_TYPE, -} from './v1/transformation/pureProtocol/serializationHelpers/V1_DSLExternalFormat_ProtocolHelper'; +} from './v1/transformation/pureProtocol/serializationHelpers/V1_DSLExternalFormat_ProtocolHelper.js'; const BINDING_ELEMENT_CLASSIFIER_PATH = 'meta::external::shared::format::binding::Binding'; diff --git a/packages/legend-graph/src/models/protocols/pure/DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension.ts b/packages/legend-graph/src/models/protocols/pure/DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension.ts index 4eccb4cc066..e67f5d94a9c 100644 --- a/packages/legend-graph/src/models/protocols/pure/DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension.ts +++ b/packages/legend-graph/src/models/protocols/pure/DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { ModelGenerationSpecification } from '../../metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification'; -import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin'; -import type { V1_Engine } from './v1/engine/V1_Engine'; -import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData'; +import type { ModelGenerationSpecification } from '../../metamodels/pure/packageableElements/generationSpecification/ModelGenerationSpecification.js'; +import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin.js'; +import type { V1_Engine } from './v1/engine/V1_Engine.js'; +import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData.js'; export type V1_ModelGenerator = ( generationElement: ModelGenerationSpecification, diff --git a/packages/legend-graph/src/models/protocols/pure/DSLMapping_PureProtocolProcessorPlugin_Extension.ts b/packages/legend-graph/src/models/protocols/pure/DSLMapping_PureProtocolProcessorPlugin_Extension.ts index 695f99058a0..99ee1f32d8c 100644 --- a/packages/legend-graph/src/models/protocols/pure/DSLMapping_PureProtocolProcessorPlugin_Extension.ts +++ b/packages/legend-graph/src/models/protocols/pure/DSLMapping_PureProtocolProcessorPlugin_Extension.ts @@ -15,16 +15,16 @@ */ import type { PlainObject } from '@finos/legend-shared'; -import type { Connection } from '../../metamodels/pure/packageableElements/connection/Connection'; -import type { Mapping } from '../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { InstanceSetImplementation } from '../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin'; -import type { V1_Connection } from '../pure/v1/model/packageableElements/connection/V1_Connection'; -import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext'; -import type { V1_ClassMapping } from '../pure/v1/model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { Store } from '../../metamodels/pure/packageableElements/store/Store'; -import type { PackageableElementReference } from '../../metamodels/pure/packageableElements/PackageableElementReference'; +import type { Connection } from '../../metamodels/pure/packageableElements/connection/Connection.js'; +import type { Mapping } from '../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { InstanceSetImplementation } from '../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin.js'; +import type { V1_Connection } from '../pure/v1/model/packageableElements/connection/V1_Connection.js'; +import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext.js'; +import type { V1_ClassMapping } from '../pure/v1/model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { Store } from '../../metamodels/pure/packageableElements/store/Store.js'; +import type { PackageableElementReference } from '../../metamodels/pure/packageableElements/PackageableElementReference.js'; export type V1_ClassMappingFirstPassBuilder = ( classMapping: V1_ClassMapping, diff --git a/packages/legend-graph/src/models/protocols/pure/MappingGeneration_PureProtocolProcessorPlugin_Extension.ts b/packages/legend-graph/src/models/protocols/pure/MappingGeneration_PureProtocolProcessorPlugin_Extension.ts index 66d392572c0..45fb477e118 100644 --- a/packages/legend-graph/src/models/protocols/pure/MappingGeneration_PureProtocolProcessorPlugin_Extension.ts +++ b/packages/legend-graph/src/models/protocols/pure/MappingGeneration_PureProtocolProcessorPlugin_Extension.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { ModelGenerationConfiguration } from '../../ModelGenerationConfiguration'; -import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData'; -import type { V1_Engine } from './v1/engine/V1_Engine'; -import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin'; +import type { ModelGenerationConfiguration } from '../../ModelGenerationConfiguration.js'; +import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData.js'; +import type { V1_Engine } from './v1/engine/V1_Engine.js'; +import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin.js'; export type V1_ModelGeneratorFromConfiguration = ( config: ModelGenerationConfiguration, diff --git a/packages/legend-graph/src/models/protocols/pure/Pure.ts b/packages/legend-graph/src/models/protocols/pure/Pure.ts index 6ba96caf856..8e75a50a801 100644 --- a/packages/legend-graph/src/models/protocols/pure/Pure.ts +++ b/packages/legend-graph/src/models/protocols/pure/Pure.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { AbstractPureGraphManager } from '../../../graphManager/AbstractPureGraphManager'; -import { V1_PureGraphManager } from './v1/V1_PureGraphManager'; +import type { AbstractPureGraphManager } from '../../../graphManager/AbstractPureGraphManager.js'; +import { V1_PureGraphManager } from './v1/V1_PureGraphManager.js'; import type { Log } from '@finos/legend-shared'; -import type { GraphPluginManager } from '../../../GraphPluginManager'; +import type { GraphPluginManager } from '../../../GraphPluginManager.js'; export const getGraphManager = ( pluginManager: GraphPluginManager, diff --git a/packages/legend-graph/src/models/protocols/pure/PureProtocolProcessorPlugin.ts b/packages/legend-graph/src/models/protocols/pure/PureProtocolProcessorPlugin.ts index 6eab93779f5..20be2f39e15 100644 --- a/packages/legend-graph/src/models/protocols/pure/PureProtocolProcessorPlugin.ts +++ b/packages/legend-graph/src/models/protocols/pure/PureProtocolProcessorPlugin.ts @@ -15,21 +15,21 @@ */ import { AbstractPlugin, type PlainObject } from '@finos/legend-shared'; -import type { PackageableElement } from '../../metamodels/pure/packageableElements/PackageableElement'; -import type { V1_PackageableElement } from './v1/model/packageableElements/V1_PackageableElement'; -import type { V1_ElementBuilder } from './v1/transformation/pureGraph/to/V1_ElementBuilder'; -import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData'; -import type { PureModel } from '../../../graph/PureModel'; -import type { Mapping } from '../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { Runtime } from '../../metamodels/pure/packageableElements/runtime/Runtime'; -import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext'; -import type { V1_ValueSpecification } from './v1/model/valueSpecification/V1_ValueSpecification'; -import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_ProcessingContext } from './v1/transformation/pureGraph/to/helpers/V1_ProcessingContext'; -import type { SimpleFunctionExpression } from '../../metamodels/pure/valueSpecification/SimpleFunctionExpression'; -import type { ValueSpecification } from '../../metamodels/pure/valueSpecification/ValueSpecification'; -import type { GraphPluginManager } from '../../../GraphPluginManager'; -import type { Type } from '../../metamodels/pure/packageableElements/domain/Type'; +import type { PackageableElement } from '../../metamodels/pure/packageableElements/PackageableElement.js'; +import type { V1_PackageableElement } from './v1/model/packageableElements/V1_PackageableElement.js'; +import type { V1_ElementBuilder } from './v1/transformation/pureGraph/to/V1_ElementBuilder.js'; +import type { V1_PureModelContextData } from './v1/model/context/V1_PureModelContextData.js'; +import type { PureModel } from '../../../graph/PureModel.js'; +import type { Mapping } from '../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { Runtime } from '../../metamodels/pure/packageableElements/runtime/Runtime.js'; +import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext.js'; +import type { V1_ValueSpecification } from './v1/model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_ProcessingContext } from './v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.js'; +import type { SimpleFunctionExpression } from '../../metamodels/pure/valueSpecification/SimpleFunctionExpression.js'; +import type { ValueSpecification } from '../../metamodels/pure/valueSpecification/ValueSpecification.js'; +import type { GraphPluginManager } from '../../../GraphPluginManager.js'; +import type { Type } from '../../metamodels/pure/packageableElements/domain/Type.js'; export type V1_ElementProtocolClassifierPathGetter = ( protocol: V1_PackageableElement, diff --git a/packages/legend-graph/src/models/protocols/pure/StoreRelational_PureProtocolProcessorPlugin_Extension.ts b/packages/legend-graph/src/models/protocols/pure/StoreRelational_PureProtocolProcessorPlugin_Extension.ts index 84415ca6d03..26c447fa2a2 100644 --- a/packages/legend-graph/src/models/protocols/pure/StoreRelational_PureProtocolProcessorPlugin_Extension.ts +++ b/packages/legend-graph/src/models/protocols/pure/StoreRelational_PureProtocolProcessorPlugin_Extension.ts @@ -15,17 +15,17 @@ */ import type { PlainObject } from '@finos/legend-shared'; -import type { AuthenticationStrategy } from '../../metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy'; -import type { DatasourceSpecification } from '../../metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification'; -import type { PostProcessor } from '../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor'; -import type { Milestoning } from '../../metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning'; -import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin'; -import type { V1_PostProcessor } from './v1/model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor'; -import type { V1_AuthenticationStrategy } from './v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy'; -import type { V1_DatasourceSpecification } from './v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification'; -import type { V1_Milestoning } from './v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning'; -import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext'; -import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext'; +import type { AuthenticationStrategy } from '../../metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js'; +import type { DatasourceSpecification } from '../../metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.js'; +import type { PostProcessor } from '../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor.js'; +import type { Milestoning } from '../../metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.js'; +import type { PureProtocolProcessorPlugin } from './PureProtocolProcessorPlugin.js'; +import type { V1_PostProcessor } from './v1/model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor.js'; +import type { V1_AuthenticationStrategy } from './v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js'; +import type { V1_DatasourceSpecification } from './v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification.js'; +import type { V1_Milestoning } from './v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning.js'; +import type { V1_GraphTransformerContext } from './v1/transformation/pureGraph/from/V1_GraphTransformerContext.js'; +import type { V1_GraphBuilderContext } from './v1/transformation/pureGraph/to/V1_GraphBuilderContext.js'; // milestoning diff --git a/packages/legend-graph/src/models/protocols/pure/v1/V1_PureGraphManager.ts b/packages/legend-graph/src/models/protocols/pure/v1/V1_PureGraphManager.ts index f8dc994ece6..e835c406900 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/V1_PureGraphManager.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/V1_PureGraphManager.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { GRAPH_MANAGER_EVENT } from '../../../../graphManager/GraphManagerEvent'; +import { GRAPH_MANAGER_EVENT } from '../../../../graphManager/GraphManagerEvent.js'; import { CORE_PURE_PATH, ELEMENT_PATH_DELIMITER, SOURCE_INFORMATION_KEY, PackageableElementPointerType, -} from '../../../../MetaModelConst'; +} from '../../../../MetaModelConst.js'; import { type Clazz, type Log, @@ -41,164 +41,164 @@ import { isNonNullable, guaranteeNonEmptyString, } from '@finos/legend-shared'; -import type { TEMPORARY__AbstractEngineConfig } from '../../../../graphManager/action/TEMPORARY__AbstractEngineConfig'; +import type { TEMPORARY__AbstractEngineConfig } from '../../../../graphManager/action/TEMPORARY__AbstractEngineConfig.js'; import { AbstractPureGraphManager, type TEMPORARY__EngineSetupConfig, type GraphBuilderOptions, type ExecutionOptions, -} from '../../../../graphManager/AbstractPureGraphManager'; -import { Mapping } from '../../../metamodels/pure/packageableElements/mapping/Mapping'; +} from '../../../../graphManager/AbstractPureGraphManager.js'; +import { Mapping } from '../../../metamodels/pure/packageableElements/mapping/Mapping.js'; import { type Runtime, EngineRuntime, -} from '../../../metamodels/pure/packageableElements/runtime/Runtime'; +} from '../../../metamodels/pure/packageableElements/runtime/Runtime.js'; import type { ImportConfigurationDescription, ImportMode, -} from '../../../../graphManager/action/generation/ImportConfigurationDescription'; -import type { PackageableElement } from '../../../metamodels/pure/packageableElements/PackageableElement'; +} from '../../../../graphManager/action/generation/ImportConfigurationDescription.js'; +import type { PackageableElement } from '../../../metamodels/pure/packageableElements/PackageableElement.js'; import { type SystemModel, type CoreModel, PureModel, -} from '../../../../graph/PureModel'; -import type { BasicModel } from '../../../../graph/BasicModel'; -import type { DependencyManager } from '../../../../graph/DependencyManager'; -import type { Class } from '../../../metamodels/pure/packageableElements/domain/Class'; -import { RawLambda } from '../../../metamodels/pure/rawValueSpecification/RawLambda'; -import type { RawValueSpecification } from '../../../metamodels/pure/rawValueSpecification/RawValueSpecification'; -import type { FileGenerationSpecification } from '../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; +} from '../../../../graph/PureModel.js'; +import type { BasicModel } from '../../../../graph/BasicModel.js'; +import type { DependencyManager } from '../../../../graph/DependencyManager.js'; +import type { Class } from '../../../metamodels/pure/packageableElements/domain/Class.js'; +import { RawLambda } from '../../../metamodels/pure/rawValueSpecification/RawLambda.js'; +import type { RawValueSpecification } from '../../../metamodels/pure/rawValueSpecification/RawValueSpecification.js'; +import type { FileGenerationSpecification } from '../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; import type { GenerationConfigurationDescription, GenerationMode, -} from '../../../../graphManager/action/generation/GenerationConfigurationDescription'; -import type { DEPRECATED__ServiceTestResult } from '../../../../graphManager/action/service/DEPRECATED__ServiceTestResult'; -import type { ServiceRegistrationResult } from '../../../../graphManager/action/service/ServiceRegistrationResult'; -import type { ExecutionResult } from '../../../../graphManager/action/execution/ExecutionResult'; -import type { GenerationOutput } from '../../../../graphManager/action/generation/GenerationOutput'; -import type { ValueSpecification } from '../../../metamodels/pure/valueSpecification/ValueSpecification'; -import { ServiceExecutionMode } from '../../../../graphManager/action/service/ServiceExecutionMode'; +} from '../../../../graphManager/action/generation/GenerationConfigurationDescription.js'; +import type { DEPRECATED__ServiceTestResult } from '../../../../graphManager/action/service/DEPRECATED__ServiceTestResult.js'; +import type { ServiceRegistrationResult } from '../../../../graphManager/action/service/ServiceRegistrationResult.js'; +import type { ExecutionResult } from '../../../../graphManager/action/execution/ExecutionResult.js'; +import type { GenerationOutput } from '../../../../graphManager/action/generation/GenerationOutput.js'; +import type { ValueSpecification } from '../../../metamodels/pure/valueSpecification/ValueSpecification.js'; +import { ServiceExecutionMode } from '../../../../graphManager/action/service/ServiceExecutionMode.js'; import { KeyedExecutionParameter, PureMultiExecution, PureSingleExecution, -} from '../../../metamodels/pure/packageableElements/service/ServiceExecution'; +} from '../../../metamodels/pure/packageableElements/service/ServiceExecution.js'; import { V1_deserializeRawValueSpecification, V1_serializeRawValueSpecification, -} from './transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper'; +} from './transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js'; import { V1_serializeValueSpecification, V1_deserializeValueSpecification, -} from './transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer'; +} from './transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.js'; import V1_CORE_SYSTEM_MODELS from './V1_Core_SystemModels.json'; -import { V1_serializePackageableElement } from './transformation/pureProtocol/V1_PackageableElementSerialization'; +import { V1_serializePackageableElement } from './transformation/pureProtocol/V1_PackageableElementSerialization.js'; import { V1_entitiesToPureModelContextData, V1_serializePureModelContext, V1_deserializePureModelContextData, V1_setupPureModelContextDataSerialization, -} from './transformation/pureProtocol/V1_PureProtocolSerialization'; -import { V1_PureModelContextData } from './model/context/V1_PureModelContextData'; +} from './transformation/pureProtocol/V1_PureProtocolSerialization.js'; +import { V1_PureModelContextData } from './model/context/V1_PureModelContextData.js'; import { type V1_PackageableElement, type V1_PackageableElementVisitor, V1_PackageableElementPointer, -} from './model/packageableElements/V1_PackageableElement'; -import { V1_ProtocolToMetaModelGraphFirstPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder'; -import { V1_ProtocolToMetaModelGraphSecondPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder'; -import { V1_ProtocolToMetaModelGraphThirdPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder'; -import { V1_ProtocolToMetaModelGraphFourthPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder'; -import { V1_ProtocolToMetaModelGraphFifthPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder'; -import { V1_ProtocolToMetaModelRawValueSpecificationBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder'; -import { V1_RawBaseExecutionContext } from './model/rawValueSpecification/V1_RawExecutionContext'; +} from './model/packageableElements/V1_PackageableElement.js'; +import { V1_ProtocolToMetaModelGraphFirstPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder.js'; +import { V1_ProtocolToMetaModelGraphSecondPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.js'; +import { V1_ProtocolToMetaModelGraphThirdPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder.js'; +import { V1_ProtocolToMetaModelGraphFourthPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder.js'; +import { V1_ProtocolToMetaModelGraphFifthPassBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder.js'; +import { V1_ProtocolToMetaModelRawValueSpecificationBuilder } from './transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder.js'; +import { V1_RawBaseExecutionContext } from './model/rawValueSpecification/V1_RawExecutionContext.js'; import { type V1_GraphBuilderContext, V1_GraphBuilderContextBuilder, -} from './transformation/pureGraph/to/V1_GraphBuilderContext'; -import { V1_PureModelContextPointer } from './model/context/V1_PureModelContextPointer'; -import { V1_Engine } from './engine/V1_Engine'; -import { V1_transformPackageableElement } from './transformation/pureGraph/from/V1_PackageableElementTransformer'; +} from './transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import { V1_PureModelContextPointer } from './model/context/V1_PureModelContextPointer.js'; +import { V1_Engine } from './engine/V1_Engine.js'; +import { V1_transformPackageableElement } from './transformation/pureGraph/from/V1_PackageableElementTransformer.js'; import { V1_transformRawLambda, V1_RawValueSpecificationTransformer, -} from './transformation/pureGraph/from/V1_RawValueSpecificationTransformer'; -import { V1_transformRuntime } from './transformation/pureGraph/from/V1_RuntimeTransformer'; -import type { V1_RawLambda } from './model/rawValueSpecification/V1_RawLambda'; +} from './transformation/pureGraph/from/V1_RawValueSpecificationTransformer.js'; +import { V1_transformRuntime } from './transformation/pureGraph/from/V1_RuntimeTransformer.js'; +import type { V1_RawLambda } from './model/rawValueSpecification/V1_RawLambda.js'; import { V1_ExecuteInput, V1_TestDataGenerationExecutionInput, -} from './engine/execution/V1_ExecuteInput'; -import type { V1_PureModelContextGenerationInput } from './engine/import/V1_PureModelContextGenerationInput'; -import { V1_buildValueSpecification } from './transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper'; -import { V1_transformRootValueSpecification } from './transformation/pureGraph/from/V1_ValueSpecificationTransformer'; -import { V1_Profile } from './model/packageableElements/domain/V1_Profile'; -import { V1_Class } from './model/packageableElements/domain/V1_Class'; -import { V1_Enumeration } from './model/packageableElements/domain/V1_Enumeration'; -import { V1_Association } from './model/packageableElements/domain/V1_Association'; -import { V1_Measure } from './model/packageableElements/domain/V1_Measure'; -import { V1_Store } from './model/packageableElements/store/V1_Store'; -import { V1_Service } from './model/packageableElements/service/V1_Service'; -import { V1_PackageableRuntime } from './model/packageableElements/runtime/V1_PackageableRuntime'; -import { V1_PackageableConnection } from './model/packageableElements/connection/V1_PackageableConnection'; -import { V1_FileGenerationSpecification } from './model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; -import { V1_SectionIndex } from './model/packageableElements/section/V1_SectionIndex'; -import { V1_GenerationSpecification } from './model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import { V1_Mapping } from './model/packageableElements/mapping/V1_Mapping'; -import { V1_ConcreteFunctionDefinition } from './model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import { V1_PureModelContextComposite } from './model/context/V1_PureModelContextComposite'; -import { V1_AlloySDLC } from './model/context/V1_SDLC'; -import { V1_Protocol } from './model/V1_Protocol'; -import type { V1_PureModelContext } from './model/context/V1_PureModelContext'; -import type { V1_ElementBuilder } from './transformation/pureGraph/to/V1_ElementBuilder'; -import { V1_GraphBuilderExtensions } from './transformation/pureGraph/to/V1_GraphBuilderExtensions'; +} from './engine/execution/V1_ExecuteInput.js'; +import type { V1_PureModelContextGenerationInput } from './engine/import/V1_PureModelContextGenerationInput.js'; +import { V1_buildValueSpecification } from './transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js'; +import { V1_transformRootValueSpecification } from './transformation/pureGraph/from/V1_ValueSpecificationTransformer.js'; +import { V1_Profile } from './model/packageableElements/domain/V1_Profile.js'; +import { V1_Class } from './model/packageableElements/domain/V1_Class.js'; +import { V1_Enumeration } from './model/packageableElements/domain/V1_Enumeration.js'; +import { V1_Association } from './model/packageableElements/domain/V1_Association.js'; +import { V1_Measure } from './model/packageableElements/domain/V1_Measure.js'; +import { V1_Store } from './model/packageableElements/store/V1_Store.js'; +import { V1_Service } from './model/packageableElements/service/V1_Service.js'; +import { V1_PackageableRuntime } from './model/packageableElements/runtime/V1_PackageableRuntime.js'; +import { V1_PackageableConnection } from './model/packageableElements/connection/V1_PackageableConnection.js'; +import { V1_FileGenerationSpecification } from './model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; +import { V1_SectionIndex } from './model/packageableElements/section/V1_SectionIndex.js'; +import { V1_GenerationSpecification } from './model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import { V1_Mapping } from './model/packageableElements/mapping/V1_Mapping.js'; +import { V1_ConcreteFunctionDefinition } from './model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import { V1_PureModelContextComposite } from './model/context/V1_PureModelContextComposite.js'; +import { V1_AlloySDLC } from './model/context/V1_SDLC.js'; +import { V1_Protocol } from './model/V1_Protocol.js'; +import type { V1_PureModelContext } from './model/context/V1_PureModelContext.js'; +import type { V1_ElementBuilder } from './transformation/pureGraph/to/V1_ElementBuilder.js'; +import { V1_GraphBuilderExtensions } from './transformation/pureGraph/to/V1_GraphBuilderExtensions.js'; import type { DatabaseBuilderInput, DatabasePattern, -} from '../../../../graphManager/action/generation/DatabaseBuilderInput'; +} from '../../../../graphManager/action/generation/DatabaseBuilderInput.js'; import { V1_DatabaseBuilderConfig, V1_DatabaseBuilderInput, V1_DatabasePattern, V1_setupDatabaseBuilderInputSerialization, V1_TargetDatabase, -} from './engine/generation/V1_DatabaseBuilderInput'; -import { V1_transformRelationalDatabaseConnection } from './transformation/pureGraph/from/V1_ConnectionTransformer'; -import { V1_FlatData } from './model/packageableElements/store/flatData/model/V1_FlatData'; -import { V1_Database } from './model/packageableElements/store/relational/model/V1_Database'; -import type { V1_Multiplicity } from './model/packageableElements/domain/V1_Multiplicity'; -import type { V1_RawVariable } from './model/rawValueSpecification/V1_RawVariable'; -import { V1_setupDatabaseSerialization } from './transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper'; +} from './engine/generation/V1_DatabaseBuilderInput.js'; +import { V1_transformRelationalDatabaseConnection } from './transformation/pureGraph/from/V1_ConnectionTransformer.js'; +import { V1_FlatData } from './model/packageableElements/store/flatData/model/V1_FlatData.js'; +import { V1_Database } from './model/packageableElements/store/relational/model/V1_Database.js'; +import type { V1_Multiplicity } from './model/packageableElements/domain/V1_Multiplicity.js'; +import type { V1_RawVariable } from './model/rawValueSpecification/V1_RawVariable.js'; +import { V1_setupDatabaseSerialization } from './transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js'; import { V1_PACKAGEABLE_RUNTIME_ELEMENT_PROTOCOL_TYPE, V1_setupEngineRuntimeSerialization, V1_setupLegacyRuntimeSerialization, -} from './transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper'; -import type { DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension } from '../DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension'; -import type { RawRelationalOperationElement } from '../../../metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement'; -import { V1_GraphTransformerContextBuilder } from './transformation/pureGraph/from/V1_GraphTransformerContext'; +} from './transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js'; +import type { DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension } from '../DSLGenerationSpecification_PureProtocolProcessorPlugin_Extension.js'; +import type { RawRelationalOperationElement } from '../../../metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement.js'; +import { V1_GraphTransformerContextBuilder } from './transformation/pureGraph/from/V1_GraphTransformerContext.js'; import type { ExecutionPlan, RawExecutionPlan, -} from '../../../metamodels/pure/executionPlan/ExecutionPlan'; -import type { V1_ExecutionNode } from './model/executionPlan/nodes/V1_ExecutionNode'; -import type { ExecutionNode } from '../../../metamodels/pure/executionPlan/nodes/ExecutionNode'; -import type { V1_ExecutionPlan } from './model/executionPlan/V1_ExecutionPlan'; +} from '../../../metamodels/pure/executionPlan/ExecutionPlan.js'; +import type { V1_ExecutionNode } from './model/executionPlan/nodes/V1_ExecutionNode.js'; +import type { ExecutionNode } from '../../../metamodels/pure/executionPlan/nodes/ExecutionNode.js'; +import type { V1_ExecutionPlan } from './model/executionPlan/V1_ExecutionPlan.js'; import { V1_transformExecutionNode, V1_transformExecutionPlan, -} from './transformation/pureGraph/from/executionPlan/V1_ExecutionPlanTransformer'; +} from './transformation/pureGraph/from/executionPlan/V1_ExecutionPlanTransformer.js'; import { V1_deserializeExecutionPlan, V1_serializeExecutionNode, V1_serializeExecutionPlan, -} from './transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper'; -import { V1_buildExecutionPlan } from './transformation/pureGraph/to/V1_ExecutionPlanBuilder'; +} from './transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.js'; +import { V1_buildExecutionPlan } from './transformation/pureGraph/to/V1_ExecutionPlanBuilder.js'; import type { LightQuery, Query, -} from '../../../../graphManager/action/query/Query'; +} from '../../../../graphManager/action/query/Query.js'; import { V1_buildQuery, V1_buildLegacyServiceTestResult, @@ -207,8 +207,8 @@ import { V1_buildGenerationOutput, V1_buildLightQuery, V1_transformQuerySearchSpecification, -} from './engine/V1_EngineHelper'; -import { V1_buildExecutionResult } from './engine/V1_ExecutionHelper'; +} from './engine/V1_EngineHelper.js'; +import { V1_buildExecutionResult } from './engine/V1_ExecutionHelper.js'; import { type Entity, ENTITY_PATH_DELIMITER, @@ -217,44 +217,44 @@ import { DependencyGraphBuilderError, GraphBuilderError, SystemGraphBuilderError, -} from '../../../../graphManager/GraphManagerUtils'; +} from '../../../../graphManager/GraphManagerUtils.js'; import { PackageableElementExplicitReference, PackageableElementReference, -} from '../../../metamodels/pure/packageableElements/PackageableElementReference'; -import type { GraphPluginManager } from '../../../../GraphPluginManager'; -import type { QuerySearchSpecification } from '../../../../graphManager/action/query/QuerySearchSpecification'; -import type { ExternalFormatDescription } from '../../../../graphManager/action/externalFormat/ExternalFormatDescription'; -import type { ConfigurationProperty } from '../../../metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty'; -import { V1_ExternalFormatModelGenerationInput } from './engine/externalFormat/V1_ExternalFormatModelGeneration'; -import { GraphBuilderReport } from '../../../../graphManager/GraphBuilderReport'; +} from '../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { GraphPluginManager } from '../../../../GraphPluginManager.js'; +import type { QuerySearchSpecification } from '../../../../graphManager/action/query/QuerySearchSpecification.js'; +import type { ExternalFormatDescription } from '../../../../graphManager/action/externalFormat/ExternalFormatDescription.js'; +import type { ConfigurationProperty } from '../../../metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.js'; +import { V1_ExternalFormatModelGenerationInput } from './engine/externalFormat/V1_ExternalFormatModelGeneration.js'; +import { GraphBuilderReport } from '../../../../graphManager/GraphBuilderReport.js'; import { V1_PureMultiExecution, V1_PureSingleExecution, -} from './model/packageableElements/service/V1_ServiceExecution'; -import { V1_MAPPING_ELEMENT_PROTOCOL_TYPE } from './transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper'; -import { V1_SERVICE_ELEMENT_PROTOCOL_TYPE } from './transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper'; -import { MappingInclude } from '../../../metamodels/pure/packageableElements/mapping/MappingInclude'; -import type { ModelGenerationConfiguration } from '../../../ModelGenerationConfiguration'; -import type { MappingGeneration_PureProtocolProcessorPlugin_Extension } from '../MappingGeneration_PureProtocolProcessorPlugin_Extension'; -import type { Package } from '../../../metamodels/pure/packageableElements/domain/Package'; -import { V1_DataElement } from './model/packageableElements/data/V1_DataElement'; +} from './model/packageableElements/service/V1_ServiceExecution.js'; +import { V1_MAPPING_ELEMENT_PROTOCOL_TYPE } from './transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.js'; +import { V1_SERVICE_ELEMENT_PROTOCOL_TYPE } from './transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.js'; +import { MappingInclude } from '../../../metamodels/pure/packageableElements/mapping/MappingInclude.js'; +import type { ModelGenerationConfiguration } from '../../../ModelGenerationConfiguration.js'; +import type { MappingGeneration_PureProtocolProcessorPlugin_Extension } from '../MappingGeneration_PureProtocolProcessorPlugin_Extension.js'; +import type { Package } from '../../../metamodels/pure/packageableElements/domain/Package.js'; +import { V1_DataElement } from './model/packageableElements/data/V1_DataElement.js'; import { V1_RunTestsInput, V1_RunTestsTestableInput, -} from './engine/test/V1_RunTestsInput'; -import { V1_AtomicTestId } from './model/test/V1_AtomicTestId'; -import type { RunTestsTestableInput } from '../../../metamodels/pure/test/result/RunTestsTestableInput'; -import { V1_buildTestsResult } from './engine/test/V1_RunTestsResult'; -import type { TestResult } from '../../../metamodels/pure/test/result/TestResult'; -import type { Service } from '../../../../DSLService_Exports'; -import type { Testable } from '../../../metamodels/pure/test/Testable'; -import { stub_RawLambda } from '../../../../graphManager/action/creation/RawValueSpecificationCreatorHelper'; +} from './engine/test/V1_RunTestsInput.js'; +import { V1_AtomicTestId } from './model/test/V1_AtomicTestId.js'; +import type { RunTestsTestableInput } from '../../../metamodels/pure/test/result/RunTestsTestableInput.js'; +import { V1_buildTestsResult } from './engine/test/V1_RunTestsResult.js'; +import type { TestResult } from '../../../metamodels/pure/test/result/TestResult.js'; +import type { Service } from '../../../../DSLService_Exports.js'; +import type { Testable } from '../../../metamodels/pure/test/Testable.js'; +import { stub_RawLambda } from '../../../../graphManager/action/creation/RawValueSpecificationCreatorHelper.js'; import { getNullableIDFromTestable, getNullableTestable, -} from '../../../../helpers/Testable_Helper'; -import { V1_getIncludedMappingPath } from './helper/V1_DSLMapping_Helper'; +} from '../../../../helpers/Testable_Helper.js'; +import { V1_getIncludedMappingPath } from './helper/V1_DSLMapping_Helper.js'; const V1_FUNCTION_SUFFIX_MULTIPLICITY_INFINITE = 'MANY'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_Engine.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_Engine.ts index c259ea7b1d9..b48f9c094be 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_Engine.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_Engine.ts @@ -30,35 +30,35 @@ import { import { type ImportConfigurationDescription, ImportMode, -} from '../../../../../graphManager/action/generation/ImportConfigurationDescription'; -import type { RawLambda } from '../../../../metamodels/pure/rawValueSpecification/RawLambda'; +} from '../../../../../graphManager/action/generation/ImportConfigurationDescription.js'; +import type { RawLambda } from '../../../../metamodels/pure/rawValueSpecification/RawLambda.js'; import { GenerationMode, type GenerationConfigurationDescription, -} from '../../../../../graphManager/action/generation/GenerationConfigurationDescription'; -import { TEMPORARY__AbstractEngineConfig } from '../../../../../graphManager/action/TEMPORARY__AbstractEngineConfig'; -import { V1_EngineServerClient } from './V1_EngineServerClient'; -import type { V1_PureModelContextData } from '../model/context/V1_PureModelContextData'; -import type { V1_LambdaReturnTypeResult } from '../engine/compilation/V1_LambdaReturnTypeResult'; -import type { V1_RawLambda } from '../model/rawValueSpecification/V1_RawLambda'; +} from '../../../../../graphManager/action/generation/GenerationConfigurationDescription.js'; +import { TEMPORARY__AbstractEngineConfig } from '../../../../../graphManager/action/TEMPORARY__AbstractEngineConfig.js'; +import { V1_EngineServerClient } from './V1_EngineServerClient.js'; +import type { V1_PureModelContextData } from '../model/context/V1_PureModelContextData.js'; +import type { V1_LambdaReturnTypeResult } from '../engine/compilation/V1_LambdaReturnTypeResult.js'; +import type { V1_RawLambda } from '../model/rawValueSpecification/V1_RawLambda.js'; import { V1_deserializePureModelContextData, V1_serializePureModelContext, V1_serializePureModelContextData, -} from '../transformation/pureProtocol/V1_PureProtocolSerialization'; -import { V1_DEPRECATED__ServiceTestResult } from './service/V1_DEPRECATED__ServiceTestResult'; -import { V1_serializeRawValueSpecification } from '../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper'; -import { V1_transformRawLambda } from '../transformation/pureGraph/from/V1_RawValueSpecificationTransformer'; -import { V1_GenerateFileInput } from '../engine/generation/V1_FileGenerationInput'; -import { V1_ImportConfigurationDescription } from '../engine/import/V1_ImportConfigurationDescription'; -import { V1_GenerationConfigurationDescription } from '../engine/generation/V1_GenerationConfigurationDescription'; -import { V1_GenerationOutput } from '../engine/generation/V1_GenerationOutput'; -import { V1_ParserError } from '../engine/grammar/V1_ParserError'; -import { V1_CompilationError } from '../engine/compilation/V1_CompilationError'; -import type { V1_RawRelationalOperationElement } from '../model/packageableElements/store/relational/model/V1_RawRelationalOperationElement'; -import type { RawRelationalOperationElement } from '../../../../metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement'; -import { V1_GraphTransformerContextBuilder } from '../transformation/pureGraph/from/V1_GraphTransformerContext'; -import type { PureProtocolProcessorPlugin } from '../../PureProtocolProcessorPlugin'; +} from '../transformation/pureProtocol/V1_PureProtocolSerialization.js'; +import { V1_DEPRECATED__ServiceTestResult } from './service/V1_DEPRECATED__ServiceTestResult.js'; +import { V1_serializeRawValueSpecification } from '../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js'; +import { V1_transformRawLambda } from '../transformation/pureGraph/from/V1_RawValueSpecificationTransformer.js'; +import { V1_GenerateFileInput } from '../engine/generation/V1_FileGenerationInput.js'; +import { V1_ImportConfigurationDescription } from '../engine/import/V1_ImportConfigurationDescription.js'; +import { V1_GenerationConfigurationDescription } from '../engine/generation/V1_GenerationConfigurationDescription.js'; +import { V1_GenerationOutput } from '../engine/generation/V1_GenerationOutput.js'; +import { V1_ParserError } from '../engine/grammar/V1_ParserError.js'; +import { V1_CompilationError } from '../engine/compilation/V1_CompilationError.js'; +import type { V1_RawRelationalOperationElement } from '../model/packageableElements/store/relational/model/V1_RawRelationalOperationElement.js'; +import type { RawRelationalOperationElement } from '../../../../metamodels/pure/packageableElements/store/relational/model/RawRelationalOperationElement.js'; +import { V1_GraphTransformerContextBuilder } from '../transformation/pureGraph/from/V1_GraphTransformerContext.js'; +import type { PureProtocolProcessorPlugin } from '../../PureProtocolProcessorPlugin.js'; import { V1_buildCompilationError, V1_buildExecutionError, @@ -66,35 +66,35 @@ import { V1_buildGenerationConfigurationDescription, V1_buildImportConfigurationDescription, V1_buildParserError, -} from './V1_EngineHelper'; -import { V1_LightQuery, V1_Query } from './query/V1_Query'; -import { V1_DatabaseBuilderInput } from './generation/V1_DatabaseBuilderInput'; -import type { V1_ServiceConfigurationInfo } from './service/V1_ServiceConfiguration'; +} from './V1_EngineHelper.js'; +import { V1_LightQuery, V1_Query } from './query/V1_Query.js'; +import { V1_DatabaseBuilderInput } from './generation/V1_DatabaseBuilderInput.js'; +import type { V1_ServiceConfigurationInfo } from './service/V1_ServiceConfiguration.js'; import { V1_ExecuteInput, V1_TestDataGenerationExecutionInput, -} from './execution/V1_ExecuteInput'; -import type { V1_ExecutionPlan } from '../model/executionPlan/V1_ExecutionPlan'; +} from './execution/V1_ExecuteInput.js'; +import type { V1_ExecutionPlan } from '../model/executionPlan/V1_ExecutionPlan.js'; import { type V1_ExecutionResult, V1_serializeExecutionResult, -} from './execution/V1_ExecutionResult'; -import { V1_ServiceStorage } from './service/V1_ServiceStorage'; -import { V1_ServiceRegistrationResult } from './service/V1_ServiceRegistrationResult'; -import type { V1_PureModelContext } from '../model/context/V1_PureModelContext'; -import { ServiceExecutionMode } from '../../../../../graphManager/action/service/ServiceExecutionMode'; +} from './execution/V1_ExecutionResult.js'; +import { V1_ServiceStorage } from './service/V1_ServiceStorage.js'; +import { V1_ServiceRegistrationResult } from './service/V1_ServiceRegistrationResult.js'; +import type { V1_PureModelContext } from '../model/context/V1_PureModelContext.js'; +import { ServiceExecutionMode } from '../../../../../graphManager/action/service/ServiceExecutionMode.js'; import { serialize } from 'serializr'; -import { V1_ExecutionError } from './execution/V1_ExecutionError'; -import { V1_PureModelContextText } from '../model/context/V1_PureModelContextText'; -import { V1_QuerySearchSpecification } from './query/V1_QuerySearchSpecification'; -import type { ExecutionOptions } from '../../../../../graphManager/AbstractPureGraphManager'; -import type { ExternalFormatDescription } from '../../../../../graphManager/action/externalFormat/ExternalFormatDescription'; -import { V1_ExternalFormatDescription } from './externalFormat/V1_ExternalFormatDescription'; -import { V1_ExternalFormatModelGenerationInput } from './externalFormat/V1_ExternalFormatModelGeneration'; -import { GRAPH_MANAGER_EVENT } from '../../../../../graphManager/GraphManagerEvent'; -import { V1_RunTestsInput } from './test/V1_RunTestsInput'; -import { V1_RunTestsResult } from './test/V1_RunTestsResult'; -import { V1_RenderStyle } from './grammar/V1_RenderStyle'; +import { V1_ExecutionError } from './execution/V1_ExecutionError.js'; +import { V1_PureModelContextText } from '../model/context/V1_PureModelContextText.js'; +import { V1_QuerySearchSpecification } from './query/V1_QuerySearchSpecification.js'; +import type { ExecutionOptions } from '../../../../../graphManager/AbstractPureGraphManager.js'; +import type { ExternalFormatDescription } from '../../../../../graphManager/action/externalFormat/ExternalFormatDescription.js'; +import { V1_ExternalFormatDescription } from './externalFormat/V1_ExternalFormatDescription.js'; +import { V1_ExternalFormatModelGenerationInput } from './externalFormat/V1_ExternalFormatModelGeneration.js'; +import { GRAPH_MANAGER_EVENT } from '../../../../../graphManager/GraphManagerEvent.js'; +import { V1_RunTestsInput } from './test/V1_RunTestsInput.js'; +import { V1_RunTestsResult } from './test/V1_RunTestsResult.js'; +import { V1_RenderStyle } from './grammar/V1_RenderStyle.js'; class V1_EngineConfig extends TEMPORARY__AbstractEngineConfig { private engine: V1_Engine; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineError.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineError.ts index da1050a36de..3b16d37f9e5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineError.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineError.ts @@ -16,8 +16,8 @@ import { createModelSchema, optional, primitive } from 'serializr'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; -import type { V1_SourceInformation } from '../model/V1_SourceInformation'; -import { V1_sourceInformationSerialization } from '../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; +import type { V1_SourceInformation } from '../model/V1_SourceInformation.js'; +import { V1_sourceInformationSerialization } from '../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; export enum V1_EngineErrorType { COMPILATION = 'COMPILATION', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineHelper.ts index a72ca51041c..b4c48901571 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineHelper.ts @@ -24,52 +24,52 @@ import { Query, QueryStereotype, QueryTaggedValue, -} from '../../../../../graphManager/action/query/Query'; -import { type V1_LightQuery, V1_Query } from './query/V1_Query'; -import type { PureModel } from '../../../../../graph/PureModel'; -import { PackageableElementExplicitReference } from '../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { DEPRECATED__ServiceTestResult } from '../../../../../graphManager/action/service/DEPRECATED__ServiceTestResult'; -import type { V1_DEPRECATED__ServiceTestResult } from './service/V1_DEPRECATED__ServiceTestResult'; -import type { V1_ServiceRegistrationResult } from './service/V1_ServiceRegistrationResult'; -import { ServiceRegistrationResult } from '../../../../../graphManager/action/service/ServiceRegistrationResult'; +} from '../../../../../graphManager/action/query/Query.js'; +import { type V1_LightQuery, V1_Query } from './query/V1_Query.js'; +import type { PureModel } from '../../../../../graph/PureModel.js'; +import { PackageableElementExplicitReference } from '../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { DEPRECATED__ServiceTestResult } from '../../../../../graphManager/action/service/DEPRECATED__ServiceTestResult.js'; +import type { V1_DEPRECATED__ServiceTestResult } from './service/V1_DEPRECATED__ServiceTestResult.js'; +import type { V1_ServiceRegistrationResult } from './service/V1_ServiceRegistrationResult.js'; +import { ServiceRegistrationResult } from '../../../../../graphManager/action/service/ServiceRegistrationResult.js'; import { getImportMode, ImportConfigurationDescription, -} from '../../../../../graphManager/action/generation/ImportConfigurationDescription'; -import type { V1_ImportConfigurationDescription } from './import/V1_ImportConfigurationDescription'; -import { GenerationOutput } from '../../../../../graphManager/action/generation/GenerationOutput'; -import type { V1_GenerationOutput } from './generation/V1_GenerationOutput'; +} from '../../../../../graphManager/action/generation/ImportConfigurationDescription.js'; +import type { V1_ImportConfigurationDescription } from './import/V1_ImportConfigurationDescription.js'; +import { GenerationOutput } from '../../../../../graphManager/action/generation/GenerationOutput.js'; +import type { V1_GenerationOutput } from './generation/V1_GenerationOutput.js'; import { GenerationConfigurationDescription, GenerationMode, GenerationProperty, GenerationPropertyItem, getGenerationPropertyItemType, -} from '../../../../../graphManager/action/generation/GenerationConfigurationDescription'; +} from '../../../../../graphManager/action/generation/GenerationConfigurationDescription.js'; import type { V1_GenerationConfigurationDescription, V1_GenerationProperty, -} from './generation/V1_GenerationConfigurationDescription'; -import type { V1_CompilationError } from './compilation/V1_CompilationError'; -import type { V1_ParserError } from './grammar/V1_ParserError'; +} from './generation/V1_GenerationConfigurationDescription.js'; +import type { V1_CompilationError } from './compilation/V1_CompilationError.js'; +import type { V1_ParserError } from './grammar/V1_ParserError.js'; import { CompilationError, ParserError, -} from '../../../../../graphManager/action/EngineError'; -import type { V1_SourceInformation } from '../model/V1_SourceInformation'; -import { SourceInformation } from '../../../../../graphManager/action/SourceInformation'; -import { ExecutionError } from '../../../../../graphManager/action/ExecutionError'; -import type { V1_ExecutionError } from './execution/V1_ExecutionError'; -import type { QuerySearchSpecification } from '../../../../../graphManager/action/query/QuerySearchSpecification'; +} from '../../../../../graphManager/action/EngineError.js'; +import type { V1_SourceInformation } from '../model/V1_SourceInformation.js'; +import { SourceInformation } from '../../../../../graphManager/action/SourceInformation.js'; +import { ExecutionError } from '../../../../../graphManager/action/ExecutionError.js'; +import type { V1_ExecutionError } from './execution/V1_ExecutionError.js'; +import type { QuerySearchSpecification } from '../../../../../graphManager/action/query/QuerySearchSpecification.js'; import { V1_QueryProjectCoordinates, V1_QuerySearchSpecification, -} from './query/V1_QuerySearchSpecification'; -import { V1_TaggedValue } from '../model/packageableElements/domain/V1_TaggedValue'; -import { V1_TagPtr } from '../model/packageableElements/domain/V1_TagPtr'; -import { V1_StereotypePtr } from '../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_ExternalFormatDescription } from './externalFormat/V1_ExternalFormatDescription'; -import { ExternalFormatDescription } from '../../../../../graphManager/action/externalFormat/ExternalFormatDescription'; +} from './query/V1_QuerySearchSpecification.js'; +import { V1_TaggedValue } from '../model/packageableElements/domain/V1_TaggedValue.js'; +import { V1_TagPtr } from '../model/packageableElements/domain/V1_TagPtr.js'; +import { V1_StereotypePtr } from '../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_ExternalFormatDescription } from './externalFormat/V1_ExternalFormatDescription.js'; +import { ExternalFormatDescription } from '../../../../../graphManager/action/externalFormat/ExternalFormatDescription.js'; export const V1_buildLightQuery = ( protocol: V1_LightQuery, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineServerClient.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineServerClient.ts index f95adbf5409..07ea6e7723d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineServerClient.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_EngineServerClient.ts @@ -22,35 +22,35 @@ import { type TraceData, HttpHeader, } from '@finos/legend-shared'; -import type { ImportMode } from '../../../../../graphManager/action/generation/ImportConfigurationDescription'; -import type { V1_PureModelContextData } from '../model/context/V1_PureModelContextData'; -import type { V1_LambdaReturnTypeResult } from './compilation/V1_LambdaReturnTypeResult'; -import type { V1_DEPRECATED__ServiceTestResult } from './service/V1_DEPRECATED__ServiceTestResult'; -import type { V1_ServiceRegistrationResult } from './service/V1_ServiceRegistrationResult'; -import type { V1_ServiceConfigurationInfo } from './service/V1_ServiceConfiguration'; -import type { V1_CompileResult } from './compilation/V1_CompileResult'; -import type { V1_RawLambda } from '../model/rawValueSpecification/V1_RawLambda'; -import type { V1_PureModelContextGenerationInput } from './import/V1_PureModelContextGenerationInput'; -import type { V1_GenerateFileInput } from './generation/V1_FileGenerationInput'; -import type { V1_ExecutionResult } from './execution/V1_ExecutionResult'; -import type { V1_ImportConfigurationDescription } from './import/V1_ImportConfigurationDescription'; -import type { V1_GenerationConfigurationDescription } from './generation/V1_GenerationConfigurationDescription'; -import type { V1_GenerationOutput } from './generation/V1_GenerationOutput'; -import type { V1_ExecuteInput } from './execution/V1_ExecuteInput'; -import type { V1_PureModelContext } from '../model/context/V1_PureModelContext'; -import type { V1_ExecutionPlan } from '../model/executionPlan/V1_ExecutionPlan'; -import type { V1_LightQuery, V1_Query } from './query/V1_Query'; -import type { V1_ServiceStorage } from './service/V1_ServiceStorage'; -import type { GenerationMode } from '../../../../../graphManager/action/generation/GenerationConfigurationDescription'; -import type { V1_QuerySearchSpecification } from './query/V1_QuerySearchSpecification'; -import type { EXECUTION_SERIALIZATION_FORMAT } from '../../../../../graphManager/action/execution/ExecutionResult'; -import type { V1_ExternalFormatDescription } from './externalFormat/V1_ExternalFormatDescription'; -import type { V1_ExternalFormatModelGenerationInput } from './externalFormat/V1_ExternalFormatModelGeneration'; -import type { V1_RunTestsInput } from './test/V1_RunTestsInput'; -import type { V1_TestResult } from '../model/test/result/V1_TestResult'; -import type { V1_RawRelationalOperationElement } from '../model/packageableElements/store/relational/model/V1_RawRelationalOperationElement'; -import type { V1_RenderStyle } from './grammar/V1_RenderStyle'; -import type { V1_ParserError } from './grammar/V1_ParserError'; +import type { ImportMode } from '../../../../../graphManager/action/generation/ImportConfigurationDescription.js'; +import type { V1_PureModelContextData } from '../model/context/V1_PureModelContextData.js'; +import type { V1_LambdaReturnTypeResult } from './compilation/V1_LambdaReturnTypeResult.js'; +import type { V1_DEPRECATED__ServiceTestResult } from './service/V1_DEPRECATED__ServiceTestResult.js'; +import type { V1_ServiceRegistrationResult } from './service/V1_ServiceRegistrationResult.js'; +import type { V1_ServiceConfigurationInfo } from './service/V1_ServiceConfiguration.js'; +import type { V1_CompileResult } from './compilation/V1_CompileResult.js'; +import type { V1_RawLambda } from '../model/rawValueSpecification/V1_RawLambda.js'; +import type { V1_PureModelContextGenerationInput } from './import/V1_PureModelContextGenerationInput.js'; +import type { V1_GenerateFileInput } from './generation/V1_FileGenerationInput.js'; +import type { V1_ExecutionResult } from './execution/V1_ExecutionResult.js'; +import type { V1_ImportConfigurationDescription } from './import/V1_ImportConfigurationDescription.js'; +import type { V1_GenerationConfigurationDescription } from './generation/V1_GenerationConfigurationDescription.js'; +import type { V1_GenerationOutput } from './generation/V1_GenerationOutput.js'; +import type { V1_ExecuteInput } from './execution/V1_ExecuteInput.js'; +import type { V1_PureModelContext } from '../model/context/V1_PureModelContext.js'; +import type { V1_ExecutionPlan } from '../model/executionPlan/V1_ExecutionPlan.js'; +import type { V1_LightQuery, V1_Query } from './query/V1_Query.js'; +import type { V1_ServiceStorage } from './service/V1_ServiceStorage.js'; +import type { GenerationMode } from '../../../../../graphManager/action/generation/GenerationConfigurationDescription.js'; +import type { V1_QuerySearchSpecification } from './query/V1_QuerySearchSpecification.js'; +import type { EXECUTION_SERIALIZATION_FORMAT } from '../../../../../graphManager/action/execution/ExecutionResult.js'; +import type { V1_ExternalFormatDescription } from './externalFormat/V1_ExternalFormatDescription.js'; +import type { V1_ExternalFormatModelGenerationInput } from './externalFormat/V1_ExternalFormatModelGeneration.js'; +import type { V1_RunTestsInput } from './test/V1_RunTestsInput.js'; +import type { V1_TestResult } from '../model/test/result/V1_TestResult.js'; +import type { V1_RawRelationalOperationElement } from '../model/packageableElements/store/relational/model/V1_RawRelationalOperationElement.js'; +import type { V1_RenderStyle } from './grammar/V1_RenderStyle.js'; +import type { V1_ParserError } from './grammar/V1_ParserError.js'; enum CORE_ENGINE_TRACER_SPAN { GRAMMAR_TO_JSON = 'transform Pure code to protocol', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_ExecutionHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_ExecutionHelper.ts index 30b1f7871d7..d5a19da5e70 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_ExecutionHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/V1_ExecutionHelper.ts @@ -28,7 +28,7 @@ import { TdsBuilder, TDSColumn, RawExecutionResult, -} from '../../../../../graphManager/action/execution/ExecutionResult'; +} from '../../../../../graphManager/action/execution/ExecutionResult.js'; import { type V1_ExecutionResult, type V1_TdsBuilder, @@ -37,7 +37,7 @@ import { V1_INTERNAL__UnknownExecutionResult, V1_TdsExecutionResult, V1_RawExecutionResult, -} from './execution/V1_ExecutionResult'; +} from './execution/V1_ExecutionResult.js'; const buildJSONExecutionResult = ( protocol: V1_JsonExecutionResult, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/compilation/V1_CompilationError.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/compilation/V1_CompilationError.ts index e99581f0e87..c04296b497a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/compilation/V1_CompilationError.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/compilation/V1_CompilationError.ts @@ -16,8 +16,8 @@ import { createModelSchema, optional, primitive } from 'serializr'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; -import { V1_EngineError } from '../../engine/V1_EngineError'; -import { V1_sourceInformationSerialization } from '../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; +import { V1_EngineError } from '../../engine/V1_EngineError.js'; +import { V1_sourceInformationSerialization } from '../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; export class V1_CompilationError extends V1_EngineError { static override readonly serialization = new SerializationFactory( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecuteInput.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecuteInput.ts index 95d3d095984..e5dad220a68 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecuteInput.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecuteInput.ts @@ -24,15 +24,15 @@ import { SKIP, } from 'serializr'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; -import { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData'; -import type { V1_Runtime } from '../../model/packageableElements/runtime/V1_Runtime'; -import type { V1_RawExecutionContext } from '../../model/rawValueSpecification/V1_RawExecutionContext'; -import type { V1_RawLambda } from '../../model/rawValueSpecification/V1_RawLambda'; -import { V1_serializeRuntime } from '../../transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper'; +import { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData.js'; +import type { V1_Runtime } from '../../model/packageableElements/runtime/V1_Runtime.js'; +import type { V1_RawExecutionContext } from '../../model/rawValueSpecification/V1_RawExecutionContext.js'; +import type { V1_RawLambda } from '../../model/rawValueSpecification/V1_RawLambda.js'; +import { V1_serializeRuntime } from '../../transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js'; import { V1_rawBaseExecutionContextModelSchema, V1_rawLambdaModelSchema, -} from '../../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper'; +} from '../../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js'; export class V1_ExecuteInput { clientVersion!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecutionResult.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecutionResult.ts index 2c7b0cf5322..410679905da 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecutionResult.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/execution/V1_ExecutionResult.ts @@ -21,7 +21,7 @@ import { usingModelSchema, isString, } from '@finos/legend-shared'; -import { BuilderType } from '../../../../../../graphManager/action/execution/ExecutionResult'; +import { BuilderType } from '../../../../../../graphManager/action/execution/ExecutionResult.js'; export class V1_ResultBuilder { static readonly builderSerialization = new SerializationFactory( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatDescription.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatDescription.ts index d75b59a2138..fa39db13016 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatDescription.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatDescription.ts @@ -16,7 +16,7 @@ import { list, primitive, createModelSchema } from 'serializr'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; -import { V1_GenerationProperty } from '../generation/V1_GenerationConfigurationDescription'; +import { V1_GenerationProperty } from '../generation/V1_GenerationConfigurationDescription.js'; export class V1_ExternalFormatDescription { name: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.ts index f8fa67c29c5..20a8abf32ae 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/externalFormat/V1_ExternalFormatModelGeneration.ts @@ -16,9 +16,9 @@ import { createModelSchema, optional, primitive, raw } from 'serializr'; import { SerializationFactory } from '@finos/legend-shared'; -import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext'; -import { PureClientVersion } from '../../../../../../graphManager/GraphManagerUtils'; -import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization'; +import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js'; +import { PureClientVersion } from '../../../../../../graphManager/GraphManagerUtils.js'; +import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization.js'; export class V1_ExternalFormatModelGenerationInput { clientVersion?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_DatabaseBuilderInput.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_DatabaseBuilderInput.ts index f5cbd25e909..1e2779e70ea 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_DatabaseBuilderInput.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_DatabaseBuilderInput.ts @@ -25,9 +25,9 @@ import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; import { V1_serializeConnectionValue, V1_deserializeConnectionValue, -} from '../../transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper'; -import type { V1_RelationalDatabaseConnection } from '../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; -import type { PureProtocolProcessorPlugin } from '../../../PureProtocolProcessorPlugin'; +} from '../../transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.js'; +import type { V1_RelationalDatabaseConnection } from '../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; +import type { PureProtocolProcessorPlugin } from '../../../PureProtocolProcessorPlugin.js'; export class V1_DatabasePattern { schemaPattern!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_FileGenerationInput.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_FileGenerationInput.ts index e611db25a74..563c253b7a4 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_FileGenerationInput.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/generation/V1_FileGenerationInput.ts @@ -16,9 +16,9 @@ import { createModelSchema, optional, primitive, raw } from 'serializr'; import { SerializationFactory } from '@finos/legend-shared'; -import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization'; -import { PureClientVersion } from '../../../../../../graphManager/GraphManagerUtils'; -import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext'; +import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization.js'; +import { PureClientVersion } from '../../../../../../graphManager/GraphManagerUtils.js'; +import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js'; export class V1_GenerateFileInput { clientVersion?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/grammar/V1_ParserError.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/grammar/V1_ParserError.ts index deee2e86e08..32098a5a187 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/grammar/V1_ParserError.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/grammar/V1_ParserError.ts @@ -16,8 +16,8 @@ import { createModelSchema, optional, primitive } from 'serializr'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; -import { V1_EngineError } from '../../engine/V1_EngineError'; -import { V1_sourceInformationSerialization } from '../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; +import { V1_EngineError } from '../../engine/V1_EngineError.js'; +import { V1_sourceInformationSerialization } from '../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; export class V1_ParserError extends V1_EngineError { static override readonly serialization = new SerializationFactory( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_Query.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_Query.ts index d6d94058ed6..1324cda775d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_Query.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_Query.ts @@ -16,12 +16,12 @@ import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; import { createModelSchema, list, optional, primitive } from 'serializr'; -import type { V1_StereotypePtr } from '../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../model/packageableElements/domain/V1_TaggedValue'; +import type { V1_StereotypePtr } from '../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../model/packageableElements/domain/V1_TaggedValue.js'; import { V1_stereotypePtrSchema, V1_taggedValueSchema, -} from '../../transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper'; +} from '../../transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js'; export class V1_Query { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_QuerySearchSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_QuerySearchSpecification.ts index 49e8e97c771..a9eeace73d6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_QuerySearchSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/query/V1_QuerySearchSpecification.ts @@ -16,12 +16,12 @@ import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; import { createModelSchema, list, optional, primitive } from 'serializr'; -import type { V1_StereotypePtr } from '../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../model/packageableElements/domain/V1_TaggedValue'; +import type { V1_StereotypePtr } from '../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../model/packageableElements/domain/V1_TaggedValue.js'; import { V1_stereotypePtrSchema, V1_taggedValueSchema, -} from '../../transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper'; +} from '../../transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.js'; export class V1_QueryProjectCoordinates { groupId!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsInput.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsInput.ts index c1f765316a8..6967020c7f2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsInput.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsInput.ts @@ -16,9 +16,9 @@ import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; import { createModelSchema, object, primitive, list } from 'serializr'; -import { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData'; -import type { V1_AtomicTestId } from '../../model/test/V1_AtomicTestId'; -import { V1_atomicTestIdModelSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper'; +import { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData.js'; +import type { V1_AtomicTestId } from '../../model/test/V1_AtomicTestId.js'; +import { V1_atomicTestIdModelSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js'; export class V1_RunTestsTestableInput { testable!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsResult.ts b/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsResult.ts index 071fad3a764..0b9e353bede 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsResult.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/engine/test/V1_RunTestsResult.ts @@ -20,11 +20,11 @@ import { SerializationFactory, } from '@finos/legend-shared'; import { createModelSchema, custom, list, SKIP } from 'serializr'; -import type { TestResult } from '../../../../../metamodels/pure/test/result/TestResult'; -import type { Testable } from '../../../../../metamodels/pure/test/Testable'; -import type { V1_TestResult } from '../../model/test/result/V1_TestResult'; -import { V1_buildTestResult } from '../../transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper'; -import { V1_deserializeTestResult } from '../../transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper'; +import type { TestResult } from '../../../../../metamodels/pure/test/result/TestResult.js'; +import type { Testable } from '../../../../../metamodels/pure/test/Testable.js'; +import type { V1_TestResult } from '../../model/test/result/V1_TestResult.js'; +import { V1_buildTestResult } from '../../transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.js'; +import { V1_deserializeTestResult } from '../../transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js'; export class V1_RunTestsResult { results: V1_TestResult[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/helper/V1_DSLMapping_Helper.ts b/packages/legend-graph/src/models/protocols/pure/v1/helper/V1_DSLMapping_Helper.ts index 008bb992e46..5d8c7b60b61 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/helper/V1_DSLMapping_Helper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/helper/V1_DSLMapping_Helper.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { ELEMENT_PATH_DELIMITER } from '../../../../../MetaModelConst'; -import type { V1_MappingInclude } from '../model/packageableElements/mapping/V1_MappingInclude'; +import { ELEMENT_PATH_DELIMITER } from '../../../../../MetaModelConst.js'; +import type { V1_MappingInclude } from '../model/packageableElements/mapping/V1_MappingInclude.js'; export const V1_getIncludedMappingPath = ( mappingInclude: V1_MappingInclude, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextComposite.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextComposite.ts index 343df53c6d2..7ea6382dc45 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextComposite.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextComposite.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { V1_PureModelContext } from '../../model/context/V1_PureModelContext'; -import type { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData'; -import type { V1_PureModelContextPointer } from '../../model/context/V1_PureModelContextPointer'; -import type { V1_Protocol } from '../../model/V1_Protocol'; +import { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js'; +import type { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData.js'; +import type { V1_PureModelContextPointer } from '../../model/context/V1_PureModelContextPointer.js'; +import type { V1_Protocol } from '../../model/V1_Protocol.js'; export class V1_PureModelContextComposite extends V1_PureModelContext { serializer: V1_Protocol; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextData.ts index 59a80710710..0924085640c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextData.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { V1_PureModelContext } from '../../model/context/V1_PureModelContext'; -import type { V1_PackageableElement } from '../../model/packageableElements/V1_PackageableElement'; -import type { V1_PureModelContextPointer } from '../../model/context/V1_PureModelContextPointer'; -import type { V1_Protocol } from '../../model/V1_Protocol'; +import { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js'; +import type { V1_PackageableElement } from '../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_PureModelContextPointer } from '../../model/context/V1_PureModelContextPointer.js'; +import type { V1_Protocol } from '../../model/V1_Protocol.js'; export class V1_PureModelContextData extends V1_PureModelContext { origin?: V1_PureModelContextPointer | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextPointer.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextPointer.ts index 2a264637c08..d80e3aa0672 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextPointer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextPointer.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { V1_SDLC } from './V1_SDLC'; -import type { V1_Protocol } from '../../model/V1_Protocol'; -import { V1_PureModelContext } from './V1_PureModelContext'; +import type { V1_SDLC } from './V1_SDLC.js'; +import type { V1_Protocol } from '../../model/V1_Protocol.js'; +import { V1_PureModelContext } from './V1_PureModelContext.js'; export class V1_PureModelContextPointer extends V1_PureModelContext { serializer: V1_Protocol; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextText.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextText.ts index f8f82c4866c..caaa8a0e840 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextText.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_PureModelContextText.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { V1_PureModelContext } from '../../model/context/V1_PureModelContext'; -import type { V1_Protocol } from '../../model/V1_Protocol'; +import { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js'; +import type { V1_Protocol } from '../../model/V1_Protocol.js'; export class V1_PureModelContextText extends V1_PureModelContext { serializer?: V1_Protocol | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_SDLC.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_SDLC.ts index e05b354d345..dfc9bc00f85 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_SDLC.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/context/V1_SDLC.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { V1_PackageableElementPointer } from '../packageableElements/V1_PackageableElement'; +import type { V1_PackageableElementPointer } from '../packageableElements/V1_PackageableElement.js'; export abstract class V1_SDLC { baseVersion = 'latest'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_EmbeddedData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_EmbeddedData.ts index 3e56e030cb7..f241b22fbc9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_EmbeddedData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_EmbeddedData.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; -import { hashObjectWithoutSourceInformation } from '../../../../../../MetaModelUtils'; -import type { V1_RelationalData } from './V1_RelationalData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; +import { hashObjectWithoutSourceInformation } from '../../../../../../MetaModelUtils.js'; +import type { V1_RelationalData } from './V1_RelationalData.js'; export interface V1_EmbeddedDataVisitor { visit_EmbeddedData(embeddedData: V1_EmbeddedData): T; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_RelationalData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_RelationalData.ts index c2a5d98ee66..0118c440c35 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_RelationalData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/data/V1_RelationalData.ts @@ -15,11 +15,11 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; import { V1_EmbeddedData, type V1_EmbeddedDataVisitor, -} from './V1_EmbeddedData'; +} from './V1_EmbeddedData.js'; export class V1_RelationalDataTableColumn implements Hashable { value!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/V1_SimpleExecutionPlan.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/V1_SimpleExecutionPlan.ts index 11035dd3679..0092b32200f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/V1_SimpleExecutionPlan.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/V1_SimpleExecutionPlan.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { V1_Protocol } from '../V1_Protocol'; -import type { V1_ExecutionNode } from './nodes/V1_ExecutionNode'; -import { V1_ExecutionPlan } from './V1_ExecutionPlan'; +import type { V1_Protocol } from '../V1_Protocol.js'; +import type { V1_ExecutionNode } from './nodes/V1_ExecutionNode.js'; +import { V1_ExecutionPlan } from './V1_ExecutionPlan.js'; export class V1_SimpleExecutionPlan extends V1_ExecutionPlan { authDependent!: boolean; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_ExecutionNode.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_ExecutionNode.ts index c68c7c57da6..b42b0332282 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_ExecutionNode.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_ExecutionNode.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_Multiplicity } from '../../packageableElements/domain/V1_Multiplicity'; -import type { V1_ResultType } from '../results/V1_ResultType'; +import type { V1_Multiplicity } from '../../packageableElements/domain/V1_Multiplicity.js'; +import type { V1_ResultType } from '../results/V1_ResultType.js'; export abstract class V1_ExecutionNode { resultType!: V1_ResultType; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalInstantiationExecutionNode.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalInstantiationExecutionNode.ts index 1a315edf175..d5f4ddf1b00 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalInstantiationExecutionNode.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalInstantiationExecutionNode.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { V1_ExecutionNode } from './V1_ExecutionNode'; +import { V1_ExecutionNode } from './V1_ExecutionNode.js'; export abstract class V1_RelationalInstantiationExecutionNode extends V1_ExecutionNode {} diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode.ts index cc02ed018ec..c36f519fbe6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { V1_RelationalInstantiationExecutionNode } from './V1_RelationalInstantiationExecutionNode'; +import { V1_RelationalInstantiationExecutionNode } from './V1_RelationalInstantiationExecutionNode.js'; export class V1_RelationalTDSInstantiationExecutionNode extends V1_RelationalInstantiationExecutionNode {} diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_SQLExecutionNode.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_SQLExecutionNode.ts index ebd74db0747..b9a5d533fb7 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_SQLExecutionNode.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/nodes/V1_SQLExecutionNode.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { V1_DatabaseConnection } from '../../packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; -import { V1_ExecutionNode } from './V1_ExecutionNode'; -import type { V1_SQLResultColumn } from './V1_SQLResultColumn'; +import type { V1_DatabaseConnection } from '../../packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; +import { V1_ExecutionNode } from './V1_ExecutionNode.js'; +import type { V1_SQLResultColumn } from './V1_SQLResultColumn.js'; export class V1_SQLExecutionNode extends V1_ExecutionNode { sqlQuery!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_DataTypeResultType.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_DataTypeResultType.ts index 87e7980114f..37019b1a2c2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_DataTypeResultType.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_DataTypeResultType.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { V1_ResultType } from './V1_ResultType'; +import { V1_ResultType } from './V1_ResultType.js'; export class V1_DataTypeResultType extends V1_ResultType { dataType!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_TDSResultType.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_TDSResultType.ts index 835dcc2f8d1..cb3c5f5ce3f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_TDSResultType.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/executionPlan/results/V1_TDSResultType.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { V1_ResultType } from './V1_ResultType'; -import type { V1_TDSColumn } from './V1_TDSColumn'; +import { V1_ResultType } from './V1_ResultType.js'; +import type { V1_TDSColumn } from './V1_TDSColumn.js'; export class V1_TDSResultType extends V1_ResultType { tdsColumns: V1_TDSColumn[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/V1_PackageableElement.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/V1_PackageableElement.ts index fe07356174d..5adcad19285 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/V1_PackageableElement.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/V1_PackageableElement.ts @@ -17,24 +17,24 @@ import { CORE_HASH_STRUCTURE, ELEMENT_PATH_DELIMITER, -} from '../../../../../../MetaModelConst'; +} from '../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_Profile } from './domain/V1_Profile'; -import type { V1_Class } from './domain/V1_Class'; -import type { V1_Enumeration } from './domain/V1_Enumeration'; -import type { V1_FlatData } from './store/flatData/model/V1_FlatData'; -import type { V1_Database } from './store/relational/model/V1_Database'; -import type { V1_Mapping } from './mapping/V1_Mapping'; -import type { V1_Service } from './service/V1_Service'; -import type { V1_ConcreteFunctionDefinition } from './function/V1_ConcreteFunctionDefinition'; -import type { V1_Association } from './domain/V1_Association'; -import type { V1_PackageableRuntime } from './runtime/V1_PackageableRuntime'; -import type { V1_PackageableConnection } from './connection/V1_PackageableConnection'; -import type { V1_FileGenerationSpecification } from './fileGeneration/V1_FileGenerationSpecification'; -import type { V1_GenerationSpecification } from './generationSpecification/V1_GenerationSpecification'; -import type { V1_Measure } from './domain/V1_Measure'; -import type { V1_SectionIndex } from './section/V1_SectionIndex'; -import type { V1_DataElement } from './data/V1_DataElement'; +import type { V1_Profile } from './domain/V1_Profile.js'; +import type { V1_Class } from './domain/V1_Class.js'; +import type { V1_Enumeration } from './domain/V1_Enumeration.js'; +import type { V1_FlatData } from './store/flatData/model/V1_FlatData.js'; +import type { V1_Database } from './store/relational/model/V1_Database.js'; +import type { V1_Mapping } from './mapping/V1_Mapping.js'; +import type { V1_Service } from './service/V1_Service.js'; +import type { V1_ConcreteFunctionDefinition } from './function/V1_ConcreteFunctionDefinition.js'; +import type { V1_Association } from './domain/V1_Association.js'; +import type { V1_PackageableRuntime } from './runtime/V1_PackageableRuntime.js'; +import type { V1_PackageableConnection } from './connection/V1_PackageableConnection.js'; +import type { V1_FileGenerationSpecification } from './fileGeneration/V1_FileGenerationSpecification.js'; +import type { V1_GenerationSpecification } from './generationSpecification/V1_GenerationSpecification.js'; +import type { V1_Measure } from './domain/V1_Measure.js'; +import type { V1_SectionIndex } from './section/V1_SectionIndex.js'; +import type { V1_DataElement } from './data/V1_DataElement.js'; export interface V1_PackageableElementVisitor { visit_PackageableElement(element: V1_PackageableElement): T; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_Connection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_Connection.ts index e1495ff6eb4..244ab63ecfc 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_Connection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_Connection.ts @@ -15,12 +15,12 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection'; -import type { V1_RelationalDatabaseConnection } from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; -import type { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection'; -import type { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection'; -import type { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection'; -import type { V1_ConnectionPointer } from './V1_ConnectionPointer'; +import type { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.js'; +import type { V1_RelationalDatabaseConnection } from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; +import type { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.js'; +import type { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.js'; +import type { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection.js'; +import type { V1_ConnectionPointer } from './V1_ConnectionPointer.js'; export interface V1_ConnectionVisitor { visit_Connection(connection: V1_Connection): T; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_ConnectionPointer.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_ConnectionPointer.ts index e071d4400ee..f16279c855b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_ConnectionPointer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_ConnectionPointer.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_ConnectionVisitor, V1_Connection, -} from '../../../model/packageableElements/connection/V1_Connection'; +} from '../../../model/packageableElements/connection/V1_Connection.js'; export class V1_ConnectionPointer extends V1_Connection implements Hashable { connection!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_PackageableConnection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_PackageableConnection.ts index 3ccb830d0d3..b05f79410ff 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_PackageableConnection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/connection/V1_PackageableConnection.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection.js'; export class V1_PackageableConnection extends V1_PackageableElement diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/data/V1_DataElement.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/data/V1_DataElement.ts index 0c54304c36f..20fc10a5eb8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/data/V1_DataElement.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/data/V1_DataElement.ts @@ -15,14 +15,14 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_EmbeddedData } from '../../data/V1_EmbeddedData'; -import type { V1_StereotypePtr } from '../domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../domain/V1_TaggedValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_EmbeddedData } from '../../data/V1_EmbeddedData.js'; +import type { V1_StereotypePtr } from '../domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../domain/V1_TaggedValue.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../V1_PackageableElement'; +} from '../V1_PackageableElement.js'; export class V1_DataElement extends V1_PackageableElement implements Hashable { stereotypes: V1_StereotypePtr[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Association.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Association.ts index 80af9e80147..f4db604d83d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Association.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Association.ts @@ -15,15 +15,15 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_DerivedProperty } from './V1_DerivedProperty'; -import type { V1_Property } from './V1_Property'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_DerivedProperty } from './V1_DerivedProperty.js'; +import type { V1_Property } from './V1_Property.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; export class V1_Association extends V1_PackageableElement implements Hashable { properties: V1_Property[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Class.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Class.ts index 004daacb107..e7e35c87424 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Class.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Class.ts @@ -15,16 +15,16 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_Property } from '../../../model/packageableElements/domain/V1_Property'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_Property } from '../../../model/packageableElements/domain/V1_Property.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; -import type { V1_Constraint } from '../../../model/packageableElements/domain/V1_Constraint'; -import type { V1_DerivedProperty } from './V1_DerivedProperty'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; +import type { V1_Constraint } from '../../../model/packageableElements/domain/V1_Constraint.js'; +import type { V1_DerivedProperty } from './V1_DerivedProperty.js'; export class V1_Class extends V1_PackageableElement implements Hashable { superTypes: string[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Constraint.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Constraint.ts index ca8680c439a..563f37af0e9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Constraint.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Constraint.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; export class V1_Constraint implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_DerivedProperty.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_DerivedProperty.ts index 3523dd8b8a2..4a27b4220a3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_DerivedProperty.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_DerivedProperty.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import { hashRawLambda } from '../../../../../../../MetaModelUtils'; +import { hashRawLambda } from '../../../../../../../MetaModelUtils.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_Multiplicity } from './V1_Multiplicity'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_Multiplicity } from './V1_Multiplicity.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; export class V1_DerivedProperty implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_EnumValue.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_EnumValue.ts index 5927b2e409d..e335a15327b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_EnumValue.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_EnumValue.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; export class V1_EnumValue implements Hashable { value!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Enumeration.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Enumeration.ts index 6c167f84e85..0b52dff04e3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Enumeration.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Enumeration.ts @@ -15,14 +15,14 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_EnumValue } from './V1_EnumValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_EnumValue } from './V1_EnumValue.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; export class V1_Enumeration extends V1_PackageableElement implements Hashable { values: V1_EnumValue[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Measure.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Measure.ts index 54b0fdcc9f8..7664175d6d9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Measure.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Measure.ts @@ -19,12 +19,12 @@ import { UnsupportedOperationError, type Hashable, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; export class V1_Unit extends V1_PackageableElement implements Hashable { measure!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Multiplicity.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Multiplicity.ts index 9128efa15a2..33be4169593 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Multiplicity.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Multiplicity.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; export class V1_Multiplicity implements Hashable { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Profile.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Profile.ts index b1f9311c0f3..dc70fcd0c44 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Profile.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Profile.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; export class V1_Profile extends V1_PackageableElement implements Hashable { stereotypes: string[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Property.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Property.ts index ed7fced0f2e..ef71e4d2038 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Property.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_Property.ts @@ -15,10 +15,10 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_Multiplicity } from './V1_Multiplicity'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_Multiplicity } from './V1_Multiplicity.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; export class V1_Property implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_PropertyPointer.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_PropertyPointer.ts index a48a3732dad..d192e7f37a8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_PropertyPointer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_PropertyPointer.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export class V1_PropertyPointer implements Hashable { // NOTE: In Pure protocol, this property is required, but for cases like embedded property mapping, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_StereotypePtr.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_StereotypePtr.ts index 6255083d6fb..b555ec6d87a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_StereotypePtr.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_StereotypePtr.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export class V1_StereotypePtr implements Hashable { profile!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TagPtr.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TagPtr.ts index 63e72445a64..f2607ca830b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TagPtr.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TagPtr.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export class V1_TagPtr implements Hashable { profile!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TaggedValue.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TaggedValue.ts index aad01fb48a5..6ff6e8acb40 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TaggedValue.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/domain/V1_TaggedValue.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr.js'; export class V1_TaggedValue implements Hashable { tag!: V1_TagPtr; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection.ts index 7dbcf3034f7..5e977e285f6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils.js'; import { V1_Connection, type V1_ConnectionVisitor, -} from '../../connection/V1_Connection'; -import type { V1_UrlStream } from './V1_DSLExternalFormat_UrlStream'; +} from '../../connection/V1_Connection.js'; +import type { V1_UrlStream } from './V1_DSLExternalFormat_UrlStream.js'; export class V1_ExternalFormatConnection extends V1_Connection diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream.ts index 2c627fc6f0c..d0ea181a5f6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils.js'; export class V1_UrlStream implements Hashable { url = ''; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema.ts index f0b9b07df29..0d66f4dace2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils.js'; export class V1_Schema implements Hashable { id?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet.ts index 09a0e1b1e77..667a59d07b0 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../V1_PackageableElement'; -import type { V1_Schema } from './V1_DSLExternalFormat_Schema'; +} from '../../V1_PackageableElement.js'; +import type { V1_Schema } from './V1_DSLExternalFormat_Schema.js'; export class V1_SchemaSet extends V1_PackageableElement implements Hashable { format = ''; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_BindingTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_BindingTransformer.ts index a276c9d6f39..3740f220390 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_BindingTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_BindingTransformer.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; export class V1_BindingTransformer implements Hashable { binding!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding.ts index d0e2c3ac6af..54980b61324 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding.ts @@ -15,10 +15,10 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils'; -import { V1_Store } from '../../store/V1_Store'; -import type { V1_PackageableElementVisitor } from '../../V1_PackageableElement'; -import type { V1_ModelUnit } from './V1_DSLExternalFormat_ModelUnit'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils.js'; +import { V1_Store } from '../../store/V1_Store.js'; +import type { V1_PackageableElementVisitor } from '../../V1_PackageableElement.js'; +import type { V1_ModelUnit } from './V1_DSLExternalFormat_ModelUnit.js'; export class V1_Binding extends V1_Store implements Hashable { schemaSet?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit.ts index b55befe86dc..95b75e21d93 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils'; +import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../../../DSLExternalFormat_ModelUtils.js'; export class V1_ModelUnit implements Hashable { packageableElementIncludes: string[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_ConfigurationProperty.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_ConfigurationProperty.ts index 67202b60d3d..d7133c1e6ff 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_ConfigurationProperty.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_ConfigurationProperty.ts @@ -15,7 +15,7 @@ */ import { hashArray, hashObject, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export class V1_ConfigurationProperty implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_FileGenerationSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_FileGenerationSpecification.ts index 967927c33eb..0b8cd95d10c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_FileGenerationSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/fileGeneration/V1_FileGenerationSpecification.ts @@ -15,10 +15,10 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_ConfigurationProperty } from './V1_ConfigurationProperty'; -import type { V1_PackageableElementVisitor } from '../V1_PackageableElement'; -import { V1_AbstractGenerationSpecification } from '../generationSpecification/V1_AbstractGenerationSpecification'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_ConfigurationProperty } from './V1_ConfigurationProperty.js'; +import type { V1_PackageableElementVisitor } from '../V1_PackageableElement.js'; +import { V1_AbstractGenerationSpecification } from '../generationSpecification/V1_AbstractGenerationSpecification.js'; export class V1_FileGenerationSpecification extends V1_AbstractGenerationSpecification diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/function/V1_ConcreteFunctionDefinition.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/function/V1_ConcreteFunctionDefinition.ts index 807c396e284..d70d6faecd5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/function/V1_ConcreteFunctionDefinition.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/function/V1_ConcreteFunctionDefinition.ts @@ -15,16 +15,16 @@ */ import { hashArray } from '@finos/legend-shared'; -import { hashRawLambda } from '../../../../../../../MetaModelUtils'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; +import { hashRawLambda } from '../../../../../../../MetaModelUtils.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; export class V1_ConcreteFunctionDefinition extends V1_PackageableElement { /** diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_AbstractGenerationSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_AbstractGenerationSpecification.ts index a33c0bc92a8..f0d65204df3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_AbstractGenerationSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_AbstractGenerationSpecification.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { V1_PackageableElement } from '../V1_PackageableElement'; +import { V1_PackageableElement } from '../V1_PackageableElement.js'; export abstract class V1_AbstractGenerationSpecification extends V1_PackageableElement {} diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_GenerationSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_GenerationSpecification.ts index b936f9cf167..2619e7f67a2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_GenerationSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_GenerationSpecification.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; import { V1_PackageableElement, type V1_PackageableElementVisitor, type V1_PackageableElementPointer, -} from '../../../model/packageableElements/V1_PackageableElement'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; export class V1_GenerationTreeNode { id!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_ModelGenerationSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_ModelGenerationSpecification.ts index f4d58fd289f..9df3677502f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_ModelGenerationSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/generationSpecification/V1_ModelGenerationSpecification.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { V1_AbstractGenerationSpecification } from './V1_AbstractGenerationSpecification'; +import { V1_AbstractGenerationSpecification } from './V1_AbstractGenerationSpecification.js'; export abstract class V1_ModelGenerationSpecification extends V1_AbstractGenerationSpecification {} diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_AssociationMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_AssociationMapping.ts index 2f0bca7b8cc..1323cc3f5c4 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_AssociationMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_AssociationMapping.ts @@ -15,7 +15,7 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export abstract class V1_AssociationMapping implements Hashable { id?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ClassMapping.ts index fe9c52fa2e2..bdb84f45ad8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ClassMapping.ts @@ -15,15 +15,15 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping'; -import type { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping'; -import type { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping'; -import type { V1_MappingClass } from './V1_MappingClass'; -import type { V1_OperationClassMapping } from './V1_OperationClassMapping'; -import type { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping'; -import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping'; -import type { V1_MergeOperationClassMapping } from './V1_MergeOperationClassMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.js'; +import type { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.js'; +import type { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.js'; +import type { V1_MappingClass } from './V1_MappingClass.js'; +import type { V1_OperationClassMapping } from './V1_OperationClassMapping.js'; +import type { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.js'; +import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.js'; +import type { V1_MergeOperationClassMapping } from './V1_MergeOperationClassMapping.js'; export interface V1_ClassMappingVisitor { visit_ClassMapping(classMapping: V1_ClassMapping): T; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumValueMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumValueMapping.ts index b544118a5ab..350225f210f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumValueMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumValueMapping.ts @@ -22,7 +22,7 @@ import { import { CORE_HASH_STRUCTURE, PRIMITIVE_TYPE, -} from '../../../../../../../MetaModelConst'; +} from '../../../../../../../MetaModelConst.js'; export abstract class V1_EnumValueMappingSourceValue { value!: unknown; // Any diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumerationMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumerationMapping.ts index 0eb5d0d4771..516253b0c4d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumerationMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_EnumerationMapping.ts @@ -19,11 +19,11 @@ import { getNullableFirstElement, type Hashable, } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_EnumValueMapping, V1_getEnumValueMappingSourceValueType, -} from '../../../model/packageableElements/mapping/V1_EnumValueMapping'; +} from '../../../model/packageableElements/mapping/V1_EnumValueMapping.js'; export class V1_EnumerationMapping implements Hashable { id?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert.ts index 3af44362d14..b97affdf8e0 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { V1_MappingTestAssert } from './V1_MappingTestAssert'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { V1_MappingTestAssert } from './V1_MappingTestAssert.js'; export class V1_ExpectedOutputMappingTestAssert extends V1_MappingTestAssert diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_LocalMappingPropertyInfo.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_LocalMappingPropertyInfo.ts index 643e4e64617..40545f95a47 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_LocalMappingPropertyInfo.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_LocalMappingPropertyInfo.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; export class V1_LocalMappingPropertyInfo implements Hashable { type!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_Mapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_Mapping.ts index cb1b3f112c6..8a341261b6b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_Mapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_Mapping.ts @@ -15,16 +15,16 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_MappingInclude } from '../../../model/packageableElements/mapping/V1_MappingInclude'; -import type { V1_ClassMapping } from '../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_AssociationMapping } from '../../../model/packageableElements/mapping/V1_AssociationMapping'; -import type { V1_EnumerationMapping } from '../../../model/packageableElements/mapping/V1_EnumerationMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_MappingInclude } from '../../../model/packageableElements/mapping/V1_MappingInclude.js'; +import type { V1_ClassMapping } from '../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_AssociationMapping } from '../../../model/packageableElements/mapping/V1_AssociationMapping.js'; +import type { V1_EnumerationMapping } from '../../../model/packageableElements/mapping/V1_EnumerationMapping.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_MappingTest } from '../../../model/packageableElements/mapping/V1_MappingTest'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_MappingTest } from '../../../model/packageableElements/mapping/V1_MappingTest.js'; export class V1_Mapping extends V1_PackageableElement implements Hashable { includedMappings: V1_MappingInclude[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingClass.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingClass.ts index 87d1a6a6250..aef19aac320 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingClass.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingClass.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { V1_ClassMapping } from './V1_ClassMapping'; -import type { V1_Property } from '../../../model/packageableElements/domain/V1_Property'; -import { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; +import type { V1_ClassMapping } from './V1_ClassMapping.js'; +import type { V1_Property } from '../../../model/packageableElements/domain/V1_Property.js'; +import { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; export class V1_MappingClass extends V1_Class { setImplementation?: V1_ClassMapping | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingInclude.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingInclude.ts index 9f1263ebcf5..fffc3fb3bff 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingInclude.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingInclude.ts @@ -18,7 +18,7 @@ import { type Hashable, hashArray } from '@finos/legend-shared'; import { CORE_HASH_STRUCTURE, ELEMENT_PATH_DELIMITER, -} from '../../../../../../../MetaModelConst'; +} from '../../../../../../../MetaModelConst.js'; export class V1_MappingInclude implements Hashable { includedMapping?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingTest.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingTest.ts index 129cac12b5d..c2d3d01e0d9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingTest.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MappingTest.ts @@ -15,10 +15,10 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; -import type { V1_MappingTestAssert } from './V1_MappingTestAssert'; -import type { V1_InputData } from './V1_InputData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; +import type { V1_MappingTestAssert } from './V1_MappingTestAssert.js'; +import type { V1_InputData } from './V1_InputData.js'; export class V1_MappingTest implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MergeOperationClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MergeOperationClassMapping.ts index 63a869f9ef5..705dc85f236 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MergeOperationClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_MergeOperationClassMapping.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { hashRawLambda } from '../../../../../../../MetaModelUtils'; -import type { V1_RawLambda } from '../../rawValueSpecification/V1_RawLambda'; -import type { V1_ClassMappingVisitor } from './V1_ClassMapping'; -import { V1_OperationClassMapping } from './V1_OperationClassMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { hashRawLambda } from '../../../../../../../MetaModelUtils.js'; +import type { V1_RawLambda } from '../../rawValueSpecification/V1_RawLambda.js'; +import type { V1_ClassMappingVisitor } from './V1_ClassMapping.js'; +import { V1_OperationClassMapping } from './V1_OperationClassMapping.js'; export class V1_MergeOperationClassMapping extends V1_OperationClassMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_OperationClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_OperationClassMapping.ts index 4c58eaa82d4..d1b515d3eff 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_OperationClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_OperationClassMapping.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_ClassMappingVisitor, V1_ClassMapping, -} from './V1_ClassMapping'; +} from './V1_ClassMapping.js'; export enum V1_MappingOperationType { STORE_UNION = 'STORE_UNION', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.ts index c4cefed7e20..15f212de84c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.ts @@ -15,18 +15,18 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping'; -import type { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping'; -import type { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping'; -import type { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping'; -import type { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping'; -import type { V1_LocalMappingPropertyInfo } from './V1_LocalMappingPropertyInfo'; -import type { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer'; -import type { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping'; -import type { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping'; -import type { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping'; -import type { V1_XStorePropertyMapping } from './xStore/V1_XStorePropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.js'; +import type { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.js'; +import type { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.js'; +import type { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.js'; +import type { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.js'; +import type { V1_LocalMappingPropertyInfo } from './V1_LocalMappingPropertyInfo.js'; +import type { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer.js'; +import type { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.js'; +import type { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.js'; +import type { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.js'; +import type { V1_XStorePropertyMapping } from './xStore/V1_XStorePropertyMapping.js'; /* @MARKER: NEW CLASS MAPPING TYPE SUPPORT --- consider adding class mapping type handler here whenever support for a new one is added to the app */ export interface V1_PropertyMappingVisitor { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_RelationalAssociationMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_RelationalAssociationMapping.ts index 4a6fe0bbe10..98e7bd3ebc9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_RelationalAssociationMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_RelationalAssociationMapping.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { V1_AssociationMapping } from './V1_AssociationMapping'; -import type { V1_PropertyMapping } from './V1_PropertyMapping'; +import { V1_AssociationMapping } from './V1_AssociationMapping.js'; +import type { V1_PropertyMapping } from './V1_PropertyMapping.js'; export class V1_RelationalAssociationMapping extends V1_AssociationMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping.ts index a8bfa2822f9..0b8dd496f19 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping.ts @@ -15,9 +15,9 @@ */ import { hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; -import { V1_AssociationMapping } from '../V1_AssociationMapping'; -import type { V1_PropertyMapping } from '../V1_PropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; +import { V1_AssociationMapping } from '../V1_AssociationMapping.js'; +import type { V1_PropertyMapping } from '../V1_PropertyMapping.js'; export class V1_XStoreAssociationMapping extends V1_AssociationMapping { propertyMappings: V1_PropertyMapping[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStorePropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStorePropertyMapping.ts index 9ab2e92d1d2..b9f1a387518 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStorePropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/mapping/xStore/V1_XStorePropertyMapping.ts @@ -18,9 +18,9 @@ import { hashArray, type Hashable } from '@finos/legend-shared'; import { type V1_PropertyMappingVisitor, V1_PropertyMapping, -} from '../V1_PropertyMapping'; -import type { V1_RawLambda } from '../../../rawValueSpecification/V1_RawLambda'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; +} from '../V1_PropertyMapping.js'; +import type { V1_RawLambda } from '../../../rawValueSpecification/V1_RawLambda.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; export class V1_XStorePropertyMapping extends V1_PropertyMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_PackageableRuntime.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_PackageableRuntime.ts index 7f1738d0fa2..8681cfe19a1 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_PackageableRuntime.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_PackageableRuntime.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_EngineRuntime } from '../../../model/packageableElements/runtime/V1_Runtime'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_EngineRuntime } from '../../../model/packageableElements/runtime/V1_Runtime.js'; export class V1_PackageableRuntime extends V1_PackageableElement diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.ts index 638cb5da692..90fbb4e52d5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection'; +import type { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection.js'; export abstract class V1_Runtime implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_Section.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_Section.ts index 184af7de7c4..76efb2be17b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_Section.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_Section.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; export abstract class V1_Section { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_SectionIndex.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_SectionIndex.ts index 3354b30bdbd..b15c812d2d6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_SectionIndex.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/section/V1_SectionIndex.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Section } from './V1_Section'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Section } from './V1_Section.js'; export class V1_SectionIndex extends V1_PackageableElement implements Hashable { sections: V1_Section[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ConnectionTestData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ConnectionTestData.ts index c104acad304..47585959f9b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ConnectionTestData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ConnectionTestData.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_EmbeddedData } from '../../data/V1_EmbeddedData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_EmbeddedData } from '../../data/V1_EmbeddedData.js'; export class V1_ConnectionTestData implements Hashable { id!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_DEPRECATED__ServiceTest.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_DEPRECATED__ServiceTest.ts index dfdeab2e8a9..011c9750d70 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_DEPRECATED__ServiceTest.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_DEPRECATED__ServiceTest.ts @@ -15,8 +15,8 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_RawLambda } from '../../rawValueSpecification/V1_RawLambda'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_RawLambda } from '../../rawValueSpecification/V1_RawLambda.js'; /** * TODO: Remove once migration from `V1_ServiceTest_Legacy` to `V1_ServiceTest` is complete diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ParameterValue.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ParameterValue.ts index 84436257eec..137dcbbd1bd 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ParameterValue.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ParameterValue.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { hashObjectWithoutSourceInformation } from '../../../../../../../MetaModelUtils'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { hashObjectWithoutSourceInformation } from '../../../../../../../MetaModelUtils.js'; export class V1_ParameterValue implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_Service.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_Service.ts index 892c15a0756..270d282e5fb 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_Service.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_Service.ts @@ -15,16 +15,16 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_ServiceExecution } from './V1_ServiceExecution'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; -import type { V1_DEPRECATED__ServiceTest } from './V1_DEPRECATED__ServiceTest'; -import type { V1_TestSuite } from '../../test/V1_TestSuite'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_ServiceExecution } from './V1_ServiceExecution.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; +import type { V1_DEPRECATED__ServiceTest } from './V1_DEPRECATED__ServiceTest.js'; +import type { V1_TestSuite } from '../../test/V1_TestSuite.js'; export class V1_Service extends V1_PackageableElement implements Hashable { stereotypes: V1_StereotypePtr[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceExecution.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceExecution.ts index 08bb656e0a2..5cea590c506 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceExecution.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceExecution.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_Runtime } from '../../../model/packageableElements/runtime/V1_Runtime'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_Runtime } from '../../../model/packageableElements/runtime/V1_Runtime.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; export abstract class V1_ServiceExecution implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.ts index b5555a9d257..fd1a526de98 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTest.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { V1_AtomicTest } from '../../test/V1_AtomicTest'; -import type { V1_ParameterValue } from './V1_ParameterValue'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { V1_AtomicTest } from '../../test/V1_AtomicTest.js'; +import type { V1_ParameterValue } from './V1_ParameterValue.js'; export class V1_ServiceTest extends V1_AtomicTest implements Hashable { parameters: V1_ParameterValue[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTestSuite.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTestSuite.ts index 918f740121e..fe0d6072215 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTestSuite.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_ServiceTestSuite.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { V1_TestSuite } from '../../test/V1_TestSuite'; -import type { V1_TestData } from './V1_TestData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { V1_TestSuite } from '../../test/V1_TestSuite.js'; +import type { V1_TestData } from './V1_TestData.js'; export class V1_ServiceTestSuite extends V1_TestSuite implements Hashable { testData!: V1_TestData; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_TestData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_TestData.ts index a1af9429f9f..81719239703 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_TestData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/service/V1_TestData.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_ConnectionTestData } from './V1_ConnectionTestData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_ConnectionTestData } from './V1_ConnectionTestData.js'; export class V1_TestData implements Hashable { connectionsTestData: V1_ConnectionTestData[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/V1_Store.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/V1_Store.ts index e45a7de2fa9..73efb3d6e7b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/V1_Store.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/V1_Store.ts @@ -15,7 +15,7 @@ */ import type { Hashable } from '@finos/legend-shared'; -import { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement'; +import { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement.js'; export abstract class V1_Store extends V1_PackageableElement diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/connection/V1_FlatDataConnection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/connection/V1_FlatDataConnection.ts index 2f086d690da..87063e9e167 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/connection/V1_FlatDataConnection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/connection/V1_FlatDataConnection.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; import { type V1_ConnectionVisitor, V1_Connection, -} from '../../../../../model/packageableElements/connection/V1_Connection'; +} from '../../../../../model/packageableElements/connection/V1_Connection.js'; export class V1_FlatDataConnection extends V1_Connection implements Hashable { url!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_AbstractFlatDataPropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_AbstractFlatDataPropertyMapping.ts index d64cfb768ab..e1bfa354d94 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_AbstractFlatDataPropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_AbstractFlatDataPropertyMapping.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +import { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export abstract class V1_AbstractFlatDataPropertyMapping extends V1_PropertyMapping {} diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.ts index 22d81b069f3..62fd134779a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import { V1_AbstractFlatDataPropertyMapping } from './V1_AbstractFlatDataPropertyMapping'; -import type { V1_PropertyMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import { V1_AbstractFlatDataPropertyMapping } from './V1_AbstractFlatDataPropertyMapping.js'; +import type { V1_PropertyMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export class V1_EmbeddedFlatDataPropertyMapping extends V1_AbstractFlatDataPropertyMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataInputData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataInputData.ts index b15408576ae..c5a218e49bc 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataInputData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataInputData.ts @@ -15,9 +15,9 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import { V1_InputData } from '../../../../../model/packageableElements/mapping/V1_InputData'; -import type { V1_PackageableElementPointer } from '../../../../../model/packageableElements/V1_PackageableElement'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import { V1_InputData } from '../../../../../model/packageableElements/mapping/V1_InputData.js'; +import type { V1_PackageableElementPointer } from '../../../../../model/packageableElements/V1_PackageableElement.js'; export class V1_FlatDataInputData extends V1_InputData implements Hashable { sourceFlatData!: V1_PackageableElementPointer; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.ts index b8c5f2e82cf..92bd779aa83 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.ts @@ -15,10 +15,10 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import { V1_AbstractFlatDataPropertyMapping } from './V1_AbstractFlatDataPropertyMapping'; -import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda'; -import type { V1_PropertyMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import { V1_AbstractFlatDataPropertyMapping } from './V1_AbstractFlatDataPropertyMapping.js'; +import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda.js'; +import type { V1_PropertyMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export class V1_FlatDataPropertyMapping extends V1_AbstractFlatDataPropertyMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.ts index 52f2ec6ba36..442994bcdec 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.ts @@ -15,13 +15,13 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_ClassMappingVisitor, V1_ClassMapping, -} from '../../../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda'; -import type { V1_AbstractFlatDataPropertyMapping } from './V1_AbstractFlatDataPropertyMapping'; +} from '../../../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda.js'; +import type { V1_AbstractFlatDataPropertyMapping } from './V1_AbstractFlatDataPropertyMapping.js'; export class V1_RootFlatDataClassMapping extends V1_ClassMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatData.ts index 0cac7947b1c..9018d01729b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatData.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_FlatDataSection } from './V1_FlatDataSection'; -import { V1_Store } from '../../../../../model/packageableElements/store/V1_Store'; -import type { V1_PackageableElementVisitor } from '../../../../../model/packageableElements/V1_PackageableElement'; +import type { V1_FlatDataSection } from './V1_FlatDataSection.js'; +import { V1_Store } from '../../../../../model/packageableElements/store/V1_Store.js'; +import type { V1_PackageableElementVisitor } from '../../../../../model/packageableElements/V1_PackageableElement.js'; export class V1_FlatData extends V1_Store implements Hashable { sections: V1_FlatDataSection[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.ts index d6b855b8973..e39cd5f58f3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataDataType.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_FlatDataDataType implements Hashable { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.ts index f62b8ccc299..d6102a5b31d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataProperty.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export class V1_FlatDataProperty implements Hashable { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataSection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataSection.ts index 85860386f1b..82c93ff175d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataSection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/flatData/model/V1_FlatDataSection.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_FlatDataProperty } from './V1_FlatDataProperty'; -import type { V1_RootFlatDataRecordType } from './V1_FlatDataDataType'; +import type { V1_FlatDataProperty } from './V1_FlatDataProperty.js'; +import type { V1_RootFlatDataRecordType } from './V1_FlatDataDataType.js'; export class V1_FlatDataSection implements Hashable { driverId!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.ts index 9a04e873434..0c196b2044f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_ConnectionVisitor, V1_Connection, -} from '../../../../../model/packageableElements/connection/V1_Connection'; +} from '../../../../../model/packageableElements/connection/V1_Connection.js'; export class V1_JsonModelConnection extends V1_Connection implements Hashable { class!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.ts index 2006aba6658..172a71320c8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_ConnectionVisitor, V1_Connection, -} from '../../../../../model/packageableElements/connection/V1_Connection'; +} from '../../../../../model/packageableElements/connection/V1_Connection.js'; export class V1_ModelChainConnection extends V1_Connection implements Hashable { mappings: string[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.ts index 821b124e7b0..f0d94576fcf 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.ts @@ -15,11 +15,11 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_ConnectionVisitor, V1_Connection, -} from '../../../../../model/packageableElements/connection/V1_Connection'; +} from '../../../../../model/packageableElements/connection/V1_Connection.js'; export class V1_XmlModelConnection extends V1_Connection implements Hashable { class!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData.ts index ba0fa6da6ad..2c821d859f4 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import { V1_InputData } from '../../../../../model/packageableElements/mapping/V1_InputData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import { V1_InputData } from '../../../../../model/packageableElements/mapping/V1_InputData.js'; export enum V1_ObjectInputType { JSON = 'JSON', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.ts index 630825af69e..6c307314691 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.ts @@ -15,13 +15,13 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_ClassMappingVisitor, V1_ClassMapping, -} from '../../../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; -import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda'; +} from '../../../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; +import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda.js'; export class V1_PureInstanceClassMapping extends V1_ClassMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.ts index 12ff829b73c..8bfaf31c5af 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_PropertyMappingVisitor, V1_PropertyMapping, -} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; -import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda'; +} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; +import type { V1_RawLambda } from '../../../../../model/rawValueSpecification/V1_RawLambda.js'; export class V1_PurePropertyMapping extends V1_PropertyMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.ts index e4247de8031..15df8841fc3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export abstract class V1_AuthenticationStrategy implements Hashable { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification.ts index 7f0c592c18f..a2587240dd5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_DatasourceSpecification.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; export abstract class V1_DatasourceSpecification implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.ts index 09ea9801b9c..a605bb9bd6b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.ts @@ -15,14 +15,14 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_ConnectionVisitor, V1_Connection, -} from '../../../../../model/packageableElements/connection/V1_Connection'; -import type { V1_DatasourceSpecification } from './V1_DatasourceSpecification'; -import type { V1_AuthenticationStrategy } from './V1_AuthenticationStrategy'; -import type { V1_PostProcessor } from './postprocessor/V1_PostProcessor'; +} from '../../../../../model/packageableElements/connection/V1_Connection.js'; +import type { V1_DatasourceSpecification } from './V1_DatasourceSpecification.js'; +import type { V1_AuthenticationStrategy } from './V1_AuthenticationStrategy.js'; +import type { V1_PostProcessor } from './postprocessor/V1_PostProcessor.js'; // TODO: to be modularized or handled differently // See https://github.com/finos/legend-studio/issues/946 diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.ts index 0e99916a66c..89c4ae8bd2c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export class V1_Mapper implements Hashable { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor.ts index d28ab89c2ce..b5768c06a88 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { V1_Mapper } from './V1_Mapper'; -import { V1_PostProcessor } from './V1_PostProcessor'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import type { V1_Mapper } from './V1_Mapper.js'; +import { V1_PostProcessor } from './V1_PostProcessor.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; export class V1_MapperPostProcessor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.ts index cfa8d195dde..a6e3defc9a6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_RelationalClassMapping } from './V1_RelationalClassMapping'; +import type { V1_RelationalClassMapping } from './V1_RelationalClassMapping.js'; import { type V1_PropertyMappingVisitor, V1_PropertyMapping, -} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export class V1_EmbeddedRelationalPropertyMapping extends V1_PropertyMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_FilterMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_FilterMapping.ts index 62867bfac96..f4a3335a87c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_FilterMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_FilterMapping.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_FilterPointer } from './V1_FilterPointer'; -import type { V1_JoinPointer } from '../../../../../model/packageableElements/store/relational/model/V1_JoinPointer'; +import type { V1_FilterPointer } from './V1_FilterPointer.js'; +import type { V1_JoinPointer } from '../../../../../model/packageableElements/store/relational/model/V1_JoinPointer.js'; export class V1_FilterMapping implements Hashable { filter!: V1_FilterPointer; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.ts index 5c80a231a25..61b58b20286 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.ts @@ -15,11 +15,11 @@ */ import { hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type V1_PropertyMappingVisitor, V1_PropertyMapping, -} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export class V1_InlineEmbeddedPropertyMapping extends V1_PropertyMapping { id!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.ts index f637f71aa24..31bdc8dfbc3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { V1_EmbeddedRelationalPropertyMapping } from './V1_EmbeddedRelationalPropertyMapping'; -import type { V1_RelationalPropertyMapping } from './V1_RelationalPropertyMapping'; -import type { V1_PropertyMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +import { V1_EmbeddedRelationalPropertyMapping } from './V1_EmbeddedRelationalPropertyMapping.js'; +import type { V1_RelationalPropertyMapping } from './V1_RelationalPropertyMapping.js'; +import type { V1_PropertyMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export class V1_OtherwiseEmbeddedRelationalPropertyMapping extends V1_EmbeddedRelationalPropertyMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping.ts index d4bbaf4ccef..04c74ce4ed9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; -import { V1_AssociationMapping } from '../../../../../model/packageableElements/mapping/V1_AssociationMapping'; -import type { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +import { V1_AssociationMapping } from '../../../../../model/packageableElements/mapping/V1_AssociationMapping.js'; +import type { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export class V1_RelationalAssociationMapping extends V1_AssociationMapping { propertyMappings: V1_PropertyMapping[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.ts index 754014145f1..d67832a4c5e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.ts @@ -15,13 +15,13 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; -import type { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; +import type { V1_PropertyMapping } from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; import { type V1_ClassMappingVisitor, V1_ClassMapping, -} from '../../../../../model/packageableElements/mapping/V1_ClassMapping'; +} from '../../../../../model/packageableElements/mapping/V1_ClassMapping.js'; export class V1_RelationalClassMapping extends V1_ClassMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalInputData.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalInputData.ts index 4dcbd83e2c6..8a5bc4dda77 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalInputData.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalInputData.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import { V1_InputData } from '../../../../../model/packageableElements/mapping/V1_InputData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import { V1_InputData } from '../../../../../model/packageableElements/mapping/V1_InputData.js'; export class V1_RelationalInputData extends V1_InputData implements Hashable { database!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.ts index 693128df5e3..c96e05c0fa0 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.ts @@ -14,15 +14,15 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; import { type V1_PropertyMappingVisitor, V1_PropertyMapping, -} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping'; -import { hashObjectWithoutSourceInformation } from '../../../../../../../../../MetaModelUtils'; -import type { V1_RawRelationalOperationElement } from '../model/V1_RawRelationalOperationElement'; -import type { V1_BindingTransformer } from '../../../externalFormat/store/V1_BindingTransformer'; +} from '../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; +import { hashObjectWithoutSourceInformation } from '../../../../../../../../../MetaModelUtils.js'; +import type { V1_RawRelationalOperationElement } from '../model/V1_RawRelationalOperationElement.js'; +import type { V1_BindingTransformer } from '../../../externalFormat/store/V1_BindingTransformer.js'; export class V1_RelationalPropertyMapping extends V1_PropertyMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.ts index c849beb73bd..dd14892063b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.ts @@ -15,12 +15,12 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import type { V1_FilterMapping } from './V1_FilterMapping'; -import { V1_RelationalClassMapping } from './V1_RelationalClassMapping'; -import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; -import type { V1_TablePtr } from '../../../../../model/packageableElements/store/relational/model/V1_TablePtr'; -import type { V1_ClassMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_ClassMapping'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import type { V1_FilterMapping } from './V1_FilterMapping.js'; +import { V1_RelationalClassMapping } from './V1_RelationalClassMapping.js'; +import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; +import type { V1_TablePtr } from '../../../../../model/packageableElements/store/relational/model/V1_TablePtr.js'; +import type { V1_ClassMappingVisitor } from '../../../../../model/packageableElements/mapping/V1_ClassMapping.js'; export class V1_RootRelationalClassMapping extends V1_RelationalClassMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction.ts index db3d5fc0e36..773a5d1a44f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { V1_RawLambda } from '../../../../../../model/rawValueSpecification/V1_RawLambda'; +import type { V1_RawLambda } from '../../../../../../model/rawValueSpecification/V1_RawLambda.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; -import { hashRawLambda } from '../../../../../../../../../../MetaModelUtils'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; +import { hashRawLambda } from '../../../../../../../../../../MetaModelUtils.js'; export class V1_AggregateFunction implements Hashable { /** diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.ts index bcf463c12d9..27014b976d9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { V1_ClassMapping } from '../../../../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_AggregateSpecification } from './V1_AggregateSpecification'; +import type { V1_ClassMapping } from '../../../../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_AggregateSpecification } from './V1_AggregateSpecification.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; export class V1_AggregateSetImplementationContainer implements Hashable { index!: number; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification.ts index 8a2de1ad0e0..2f38f602adb 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { V1_GroupByFunction } from './V1_GroupByFunction'; -import type { V1_AggregateFunction } from './V1_AggregateFunction'; +import type { V1_GroupByFunction } from './V1_GroupByFunction.js'; +import type { V1_AggregateFunction } from './V1_AggregateFunction.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; export class V1_AggregateSpecification implements Hashable { canAggregate = false; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.ts index 1a091e6a7b2..af38fc87be5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.ts @@ -17,11 +17,11 @@ import { type V1_ClassMappingVisitor, V1_ClassMapping, -} from '../../../../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_PropertyMapping } from '../../../../../../model/packageableElements/mapping/V1_PropertyMapping'; -import type { V1_AggregateSetImplementationContainer } from './V1_AggregateSetImplementationContainer'; +} from '../../../../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_PropertyMapping } from '../../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; +import type { V1_AggregateSetImplementationContainer } from './V1_AggregateSetImplementationContainer.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; export class V1_AggregationAwareClassMapping extends V1_ClassMapping diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.ts index 658da219cf6..34b1220948f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.ts @@ -17,7 +17,7 @@ import { type V1_PropertyMappingVisitor, V1_PropertyMapping, -} from '../../../../../../model/packageableElements/mapping/V1_PropertyMapping'; +} from '../../../../../../model/packageableElements/mapping/V1_PropertyMapping.js'; export class V1_AggregationAwarePropertyMapping extends V1_PropertyMapping { accept_PropertyMappingVisitor(visitor: V1_PropertyMappingVisitor): T { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction.ts index 0f72238909d..368fdd9c350 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { V1_RawLambda } from '../../../../../../model/rawValueSpecification/V1_RawLambda'; +import type { V1_RawLambda } from '../../../../../../model/rawValueSpecification/V1_RawLambda.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; -import { hashRawLambda } from '../../../../../../../../../../MetaModelUtils'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; +import { hashRawLambda } from '../../../../../../../../../../MetaModelUtils.js'; export class V1_GroupByFunction implements Hashable { /** diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Column.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Column.ts index 49eddf7cc93..76b1aadd0d4 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Column.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Column.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_RelationalDataType } from './V1_RelationalDataType'; +import type { V1_RelationalDataType } from './V1_RelationalDataType.js'; export class V1_Column implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_ColumnMapping.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_ColumnMapping.ts index 6d13d2d47f7..c7485174bf6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_ColumnMapping.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_ColumnMapping.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; +import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; export class V1_ColumnMapping implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Database.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Database.ts index f81b2f2f883..bae1d5d33c7 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Database.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Database.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_PackageableElementVisitor } from '../../../../../model/packageableElements/V1_PackageableElement'; -import { V1_Store } from '../../../../../model/packageableElements/store/V1_Store'; -import type { V1_Schema } from './V1_Schema'; -import type { V1_Join } from './V1_Join'; -import type { V1_Filter } from './V1_Filter'; +import type { V1_PackageableElementVisitor } from '../../../../../model/packageableElements/V1_PackageableElement.js'; +import { V1_Store } from '../../../../../model/packageableElements/store/V1_Store.js'; +import type { V1_Schema } from './V1_Schema.js'; +import type { V1_Join } from './V1_Join.js'; +import type { V1_Filter } from './V1_Filter.js'; export class V1_Database extends V1_Store implements Hashable { schemas: V1_Schema[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Filter.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Filter.ts index 0a3229a5392..45f816194b8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Filter.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Filter.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; +import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; export class V1_Filter implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Join.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Join.ts index 7c880fc3416..94deb20cda3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Join.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Join.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; +import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; export class V1_Join implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_JoinPointer.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_JoinPointer.ts index aee601ee645..09dd30585cd 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_JoinPointer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_JoinPointer.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; export class V1_JoinPointer implements Hashable { db!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RawRelationalOperationElement.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RawRelationalOperationElement.ts index 9f6b39c1e54..9ec428742d5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RawRelationalOperationElement.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RawRelationalOperationElement.ts @@ -15,7 +15,7 @@ */ import type { PlainObject } from '@finos/legend-shared'; -import type { V1_RelationalOperationElement } from './V1_RelationalOperationElement'; +import type { V1_RelationalOperationElement } from './V1_RelationalOperationElement.js'; /** * Studio does not process value specification, they are left in raw JSON form diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalDataType.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalDataType.ts index cd2cdcfa97a..b5926606d4f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalDataType.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalDataType.ts @@ -15,7 +15,7 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; export abstract class V1_RelationalDataType implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalOperationElement.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalOperationElement.ts index b3ac5471db1..fd799b5625b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalOperationElement.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_RelationalOperationElement.ts @@ -15,9 +15,9 @@ */ import { type Hashable, hashArray } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; -import type { V1_JoinPointer } from './V1_JoinPointer'; -import type { V1_TablePtr } from './V1_TablePtr'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; +import type { V1_JoinPointer } from './V1_JoinPointer.js'; +import type { V1_TablePtr } from './V1_TablePtr.js'; export abstract class V1_RelationalOperationElement implements Hashable { abstract get hashCode(): string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Schema.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Schema.ts index 43cc9baf541..4b83f1cefa0 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Schema.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Schema.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_Table } from './V1_Table'; -import type { V1_View } from './V1_View'; +import type { V1_Table } from './V1_Table.js'; +import type { V1_View } from './V1_View.js'; export class V1_Schema implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Table.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Table.ts index 4049236fb80..47a430ca14f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Table.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_Table.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { type Hashable, hashArray } from '@finos/legend-shared'; -import type { V1_Column } from './V1_Column'; -import type { V1_Milestoning } from './milestoning/V1_Milestoning'; +import type { V1_Column } from './V1_Column.js'; +import type { V1_Milestoning } from './milestoning/V1_Milestoning.js'; export class V1_Table implements Hashable { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_TablePtr.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_TablePtr.ts index d8a1a655cbe..6690d1ce36c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_TablePtr.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_TablePtr.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; export class V1_TablePtr implements Hashable { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_View.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_View.ts index 5dbfe780716..8c741eb50ce 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_View.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/V1_View.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; -import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; -import type { V1_TablePtr } from '../../../../../model/packageableElements/store/relational/model/V1_TablePtr'; -import type { V1_FilterMapping } from '../../../../../model/packageableElements/store/relational/mapping/V1_FilterMapping'; -import type { V1_ColumnMapping } from '../../../../../model/packageableElements/store/relational/model/V1_ColumnMapping'; +import type { V1_RelationalOperationElement } from '../../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; +import type { V1_TablePtr } from '../../../../../model/packageableElements/store/relational/model/V1_TablePtr.js'; +import type { V1_FilterMapping } from '../../../../../model/packageableElements/store/relational/mapping/V1_FilterMapping.js'; +import type { V1_ColumnMapping } from '../../../../../model/packageableElements/store/relational/model/V1_ColumnMapping.js'; export class V1_View { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning.ts index a5d31e1e1e7..95a886b69d3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; -import { V1_Milestoning } from './V1_Milestoning'; +import { V1_Milestoning } from './V1_Milestoning.js'; export class V1_BusinessMilestoning extends V1_Milestoning { from!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning.ts index 8bf633ae5e6..657667545dd 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { V1_Milestoning } from './V1_Milestoning'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import { V1_Milestoning } from './V1_Milestoning.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; export class V1_BusinessSnapshotMilestoning extends V1_Milestoning { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning.ts index b4e31479601..ca3ed5c7394 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_Milestoning.ts @@ -15,7 +15,7 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { V1_RawPrimitiveInstanceValue } from '../../../../../rawValueSpecification/V1_RawPrimitiveInstanceValue'; +import type { V1_RawPrimitiveInstanceValue } from '../../../../../rawValueSpecification/V1_RawPrimitiveInstanceValue.js'; export abstract class V1_Milestoning implements Hashable { infinityDate?: V1_RawPrimitiveInstanceValue | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning.ts index b1cd2658a65..39d028fa176 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { V1_Milestoning } from './V1_Milestoning'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst'; +import { V1_Milestoning } from './V1_Milestoning.js'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../../../MetaModelConst.js'; import { hashArray } from '@finos/legend-shared'; export class V1_ProcessingMilestoning extends V1_Milestoning { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawLambda.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawLambda.ts index b3ca2f4c750..f5728848194 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawLambda.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawLambda.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { hashRawLambda } from '../../../../../../MetaModelUtils'; +import { hashRawLambda } from '../../../../../../MetaModelUtils.js'; import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; import { type V1_RawValueSpecificationVisitor, V1_RawValueSpecification, -} from '../../model/rawValueSpecification/V1_RawValueSpecification'; +} from '../../model/rawValueSpecification/V1_RawValueSpecification.js'; export class V1_RawLambda extends V1_RawValueSpecification implements Hashable { body?: object | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawPrimitiveInstanceValue.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawPrimitiveInstanceValue.ts index 1be8566db9b..593cdd5addc 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawPrimitiveInstanceValue.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawPrimitiveInstanceValue.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; import { type V1_RawValueSpecificationVisitor, V1_RawValueSpecification, -} from './V1_RawValueSpecification'; -import type { V1_Multiplicity } from '../packageableElements/domain/V1_Multiplicity'; +} from './V1_RawValueSpecification.js'; +import type { V1_Multiplicity } from '../packageableElements/domain/V1_Multiplicity.js'; export class V1_RawPrimitiveInstanceValue extends V1_RawValueSpecification diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawValueSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawValueSpecification.ts index b55135ffc6f..7eba7422f1e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawValueSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawValueSpecification.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { V1_RawVariable } from '../../model/rawValueSpecification/V1_RawVariable'; -import type { V1_RawLambda } from '../../model/rawValueSpecification/V1_RawLambda'; -import type { V1_RawPrimitiveInstanceValue } from './V1_RawPrimitiveInstanceValue'; +import type { V1_RawVariable } from '../../model/rawValueSpecification/V1_RawVariable.js'; +import type { V1_RawLambda } from '../../model/rawValueSpecification/V1_RawLambda.js'; +import type { V1_RawPrimitiveInstanceValue } from './V1_RawPrimitiveInstanceValue.js'; export interface V1_RawValueSpecificationVisitor { visit_Lambda(valueSpecification: V1_RawLambda): T; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawVariable.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawVariable.ts index a653df272d3..fb1d3d97b6c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawVariable.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/rawValueSpecification/V1_RawVariable.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../MetaModelConst.js'; import { type V1_RawValueSpecificationVisitor, V1_RawValueSpecification, -} from '../../model/rawValueSpecification/V1_RawValueSpecification'; -import type { V1_Multiplicity } from '../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../model/rawValueSpecification/V1_RawValueSpecification.js'; +import type { V1_Multiplicity } from '../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_RawVariable extends V1_RawValueSpecification diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_AtomicTest.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_AtomicTest.ts index 9eeda6995e5..9929e1b3d70 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_AtomicTest.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_AtomicTest.ts @@ -15,8 +15,8 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { V1_TestAssertion } from './assertion/V1_TestAssertion'; -import { V1_Test } from './V1_Test'; +import type { V1_TestAssertion } from './assertion/V1_TestAssertion.js'; +import { V1_Test } from './V1_Test.js'; export abstract class V1_AtomicTest extends V1_Test implements Hashable { assertions: V1_TestAssertion[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_TestSuite.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_TestSuite.ts index 53665c27167..3c17613a205 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_TestSuite.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/V1_TestSuite.ts @@ -15,8 +15,8 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { V1_AtomicTest } from './V1_AtomicTest'; -import { V1_Test } from './V1_Test'; +import type { V1_AtomicTest } from './V1_AtomicTest.js'; +import { V1_Test } from './V1_Test.js'; export abstract class V1_TestSuite extends V1_Test implements Hashable { tests: V1_AtomicTest[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualTo.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualTo.ts index b48ef32f7bd..91926f441d3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualTo.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualTo.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import { hashObjectWithoutSourceInformation } from '../../../../../../../MetaModelUtils'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import { hashObjectWithoutSourceInformation } from '../../../../../../../MetaModelUtils.js'; import { V1_TestAssertion, type V1_TestAssertionVisitor, -} from './V1_TestAssertion'; +} from './V1_TestAssertion.js'; export class V1_EqualTo extends V1_TestAssertion implements Hashable { expected!: object; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToJson.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToJson.ts index 1d07b7d5042..8f5ad779b2b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToJson.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToJson.ts @@ -15,12 +15,12 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; -import type { V1_ExternalFormatData } from '../../data/V1_EmbeddedData'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; +import type { V1_ExternalFormatData } from '../../data/V1_EmbeddedData.js'; import { V1_TestAssertion, type V1_TestAssertionVisitor, -} from './V1_TestAssertion'; +} from './V1_TestAssertion.js'; export class V1_EqualToJson extends V1_TestAssertion implements Hashable { expected!: V1_ExternalFormatData; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.ts index f232275dfe1..f2765722849 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_EqualToTDS.ts @@ -15,15 +15,15 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../MetaModelConst.js'; import type { V1_RelationalDataTableColumn, V1_RelationalDataTableRow, -} from '../../data/V1_RelationalData'; +} from '../../data/V1_RelationalData.js'; import { type V1_TestAssertionVisitor, V1_TestAssertion, -} from './V1_TestAssertion'; +} from './V1_TestAssertion.js'; export class V1_RelationalTDS implements Hashable { columns: V1_RelationalDataTableColumn[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_TestAssertion.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_TestAssertion.ts index 203ea402a5e..ea76c84becc 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_TestAssertion.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/V1_TestAssertion.ts @@ -15,9 +15,9 @@ */ import type { Hashable } from '@finos/legend-shared'; -import type { V1_EqualTo } from './V1_EqualTo'; -import type { V1_EqualToJson } from './V1_EqualToJson'; -import type { V1_EqualToTDS } from './V1_EqualToTDS'; +import type { V1_EqualTo } from './V1_EqualTo.js'; +import type { V1_EqualToJson } from './V1_EqualToJson.js'; +import type { V1_EqualToTDS } from './V1_EqualToTDS.js'; export interface V1_TestAssertionVisitor { visit_TestAssertion(testAssertion: V1_TestAssertion): T; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertFail.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertFail.ts index a6b8cbef42b..d43cef0436d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertFail.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertFail.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; -import { V1_AssertionStatus } from './V1_AssertionStatus'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; +import { V1_AssertionStatus } from './V1_AssertionStatus.js'; export class V1_AssertFail extends V1_AssertionStatus implements Hashable { message!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertPass.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertPass.ts index d62379f7c2b..1693566cd40 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertPass.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_AssertPass.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; -import { V1_AssertionStatus } from './V1_AssertionStatus'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; +import { V1_AssertionStatus } from './V1_AssertionStatus.js'; export class V1_AssertPass extends V1_AssertionStatus implements Hashable { get hashCode(): string { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_EqualToJsonAssertFail.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_EqualToJsonAssertFail.ts index 647b91fc9e2..d2dbd26b876 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_EqualToJsonAssertFail.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/assertion/status/V1_EqualToJsonAssertFail.ts @@ -15,8 +15,8 @@ */ import { hashArray, type Hashable } from '@finos/legend-shared'; -import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst'; -import { V1_AssertFail } from './V1_AssertFail'; +import { CORE_HASH_STRUCTURE } from '../../../../../../../../MetaModelConst.js'; +import { V1_AssertFail } from './V1_AssertFail.js'; export class V1_EqualToJsonAssertFail extends V1_AssertFail diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/test/result/V1_TestResult.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/test/result/V1_TestResult.ts index 83331f2d33f..ac5497e369a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/test/result/V1_TestResult.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/test/result/V1_TestResult.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_AssertionStatus } from '../assertion/status/V1_AssertionStatus'; -import type { V1_AtomicTestId } from '../V1_AtomicTestId'; +import type { V1_AssertionStatus } from '../assertion/status/V1_AssertionStatus.js'; +import type { V1_AtomicTestId } from '../V1_AtomicTestId.js'; export abstract class V1_TestResult { testable!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.ts index ee9199c7fd6..b189dacb7c5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.ts @@ -17,7 +17,7 @@ import { V1_ValueSpecification, type V1_ValueSpecificationVisitor, -} from './V1_ValueSpecification'; +} from './V1_ValueSpecification.js'; export class V1_INTERNAL__UnknownValueSpecification extends V1_ValueSpecification { content!: object; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_ValueSpecification.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_ValueSpecification.ts index b939987a587..8239404ce57 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_ValueSpecification.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_ValueSpecification.ts @@ -14,43 +14,43 @@ * limitations under the License. */ -import type { V1_Variable } from '../../model/valueSpecification/V1_Variable'; -import type { V1_RootGraphFetchTree } from '../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree'; -import type { V1_Lambda } from '../../model/valueSpecification/raw/V1_Lambda'; -import type { V1_EnumValue } from '../../model/valueSpecification/raw/V1_EnumValue'; -import type { V1_Path } from '../../model/valueSpecification/raw/path/V1_Path'; -import type { V1_AppliedFunction } from './application/V1_AppliedFunction'; -import type { V1_Collection } from '../../model/valueSpecification/raw/V1_Collection'; -import type { V1_CDecimal } from '../../model/valueSpecification/raw/V1_CDecimal'; -import type { V1_CInteger } from '../../model/valueSpecification/raw/V1_CInteger'; -import type { V1_CString } from '../../model/valueSpecification/raw/V1_CString'; -import type { V1_CFloat } from '../../model/valueSpecification/raw/V1_CFloat'; -import type { V1_CDateTime } from '../../model/valueSpecification/raw/V1_CDateTime'; -import type { V1_CStrictTime } from '../../model/valueSpecification/raw/V1_CStrictTime'; -import type { V1_CStrictDate } from '../../model/valueSpecification/raw/V1_CStrictDate'; -import type { V1_CLatestDate } from '../../model/valueSpecification/raw/V1_CLatestDate'; -import type { V1_CBoolean } from '../../model/valueSpecification/raw/V1_CBoolean'; -import type { V1_AggregateValue } from '../../model/valueSpecification/raw/V1_AggregateValue'; -import type { V1_Pair } from '../../model/valueSpecification/raw/V1_Pair'; -import type { V1_RuntimeInstance } from '../../model/valueSpecification/raw/V1_RuntimeInstance'; -import type { V1_ExecutionContextInstance } from '../../model/valueSpecification/raw/V1_ExecutionContextInstance'; -import type { V1_PropertyGraphFetchTree } from '../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree'; -import type { V1_SerializationConfig } from '../../model/valueSpecification/raw/V1_SerializationConfig'; -import type { V1_UnitType } from '../../model/valueSpecification/raw/V1_UnitType'; -import type { V1_KeyExpression } from '../../model/valueSpecification/raw/V1_KeyExpression'; -import type { V1_PrimitiveType } from '../../model/valueSpecification/raw/V1_PrimitiveType'; -import type { V1_UnitInstance } from '../../model/valueSpecification/raw/V1_UnitInstance'; -import type { V1_PureList } from '../../model/valueSpecification/raw/V1_PureList'; -import type { V1_TDSAggregateValue } from '../../model/valueSpecification/raw/V1_TDSAggregateValue'; -import type { V1_TDSColumnInformation } from '../../model/valueSpecification/raw/V1_TDSColumnInformation'; -import type { V1_TDSSortInformation } from '../../model/valueSpecification/raw/V1_TDSSortInformation'; -import type { V1_TdsOlapRank } from '../../model/valueSpecification/raw/V1_TdsOlapRank'; -import type { V1_TdsOlapAggregation } from '../../model/valueSpecification/raw/V1_TdsOlapAggregation'; -import type { V1_AppliedProperty } from './application/V1_AppliedProperty'; -import type { V1_PackageableElementPtr } from './raw/V1_PackageableElementPtr'; -import type { V1_HackedClass } from './raw/V1_HackedClass'; -import type { V1_HackedUnit } from './raw/V1_HackedUnit'; -import type { V1_INTERNAL__UnknownValueSpecification } from './V1_INTERNAL__UnknownValueSpecfication'; +import type { V1_Variable } from '../../model/valueSpecification/V1_Variable.js'; +import type { V1_RootGraphFetchTree } from '../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree.js'; +import type { V1_Lambda } from '../../model/valueSpecification/raw/V1_Lambda.js'; +import type { V1_EnumValue } from '../../model/valueSpecification/raw/V1_EnumValue.js'; +import type { V1_Path } from '../../model/valueSpecification/raw/path/V1_Path.js'; +import type { V1_AppliedFunction } from './application/V1_AppliedFunction.js'; +import type { V1_Collection } from '../../model/valueSpecification/raw/V1_Collection.js'; +import type { V1_CDecimal } from '../../model/valueSpecification/raw/V1_CDecimal.js'; +import type { V1_CInteger } from '../../model/valueSpecification/raw/V1_CInteger.js'; +import type { V1_CString } from '../../model/valueSpecification/raw/V1_CString.js'; +import type { V1_CFloat } from '../../model/valueSpecification/raw/V1_CFloat.js'; +import type { V1_CDateTime } from '../../model/valueSpecification/raw/V1_CDateTime.js'; +import type { V1_CStrictTime } from '../../model/valueSpecification/raw/V1_CStrictTime.js'; +import type { V1_CStrictDate } from '../../model/valueSpecification/raw/V1_CStrictDate.js'; +import type { V1_CLatestDate } from '../../model/valueSpecification/raw/V1_CLatestDate.js'; +import type { V1_CBoolean } from '../../model/valueSpecification/raw/V1_CBoolean.js'; +import type { V1_AggregateValue } from '../../model/valueSpecification/raw/V1_AggregateValue.js'; +import type { V1_Pair } from '../../model/valueSpecification/raw/V1_Pair.js'; +import type { V1_RuntimeInstance } from '../../model/valueSpecification/raw/V1_RuntimeInstance.js'; +import type { V1_ExecutionContextInstance } from '../../model/valueSpecification/raw/V1_ExecutionContextInstance.js'; +import type { V1_PropertyGraphFetchTree } from '../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.js'; +import type { V1_SerializationConfig } from '../../model/valueSpecification/raw/V1_SerializationConfig.js'; +import type { V1_UnitType } from '../../model/valueSpecification/raw/V1_UnitType.js'; +import type { V1_KeyExpression } from '../../model/valueSpecification/raw/V1_KeyExpression.js'; +import type { V1_PrimitiveType } from '../../model/valueSpecification/raw/V1_PrimitiveType.js'; +import type { V1_UnitInstance } from '../../model/valueSpecification/raw/V1_UnitInstance.js'; +import type { V1_PureList } from '../../model/valueSpecification/raw/V1_PureList.js'; +import type { V1_TDSAggregateValue } from '../../model/valueSpecification/raw/V1_TDSAggregateValue.js'; +import type { V1_TDSColumnInformation } from '../../model/valueSpecification/raw/V1_TDSColumnInformation.js'; +import type { V1_TDSSortInformation } from '../../model/valueSpecification/raw/V1_TDSSortInformation.js'; +import type { V1_TdsOlapRank } from '../../model/valueSpecification/raw/V1_TdsOlapRank.js'; +import type { V1_TdsOlapAggregation } from '../../model/valueSpecification/raw/V1_TdsOlapAggregation.js'; +import type { V1_AppliedProperty } from './application/V1_AppliedProperty.js'; +import type { V1_PackageableElementPtr } from './raw/V1_PackageableElementPtr.js'; +import type { V1_HackedClass } from './raw/V1_HackedClass.js'; +import type { V1_HackedUnit } from './raw/V1_HackedUnit.js'; +import type { V1_INTERNAL__UnknownValueSpecification } from './V1_INTERNAL__UnknownValueSpecfication.js'; export interface V1_ValueSpecificationVisitor { visit_PackageableElementPtr(valueSpecification: V1_PackageableElementPtr): T; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_Variable.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_Variable.ts index f189b9028df..9efbff2c846 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_Variable.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/V1_Variable.ts @@ -17,8 +17,8 @@ import { V1_ValueSpecification, type V1_ValueSpecificationVisitor, -} from '../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_Variable extends V1_ValueSpecification { class?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedFunction.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedFunction.ts index 5daf1c00f09..b2d33ba9cb8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedFunction.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedFunction.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_AppliedFunction extends V1_ValueSpecification { function!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedProperty.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedProperty.ts index 955fe3629ac..0762140368d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedProperty.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/application/V1_AppliedProperty.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_AppliedProperty extends V1_ValueSpecification { class?: string | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_AggregateValue.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_AggregateValue.ts index a22112e1ba9..2fb972673e2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_AggregateValue.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_AggregateValue.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Lambda } from '../../../model/valueSpecification/raw/V1_Lambda'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Lambda } from '../../../model/valueSpecification/raw/V1_Lambda.js'; export class V1_AggregateValue extends V1_ValueSpecification { mapFn!: V1_Lambda; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CBoolean.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CBoolean.ts index 240da6627c5..aacbc75991a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CBoolean.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CBoolean.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_CBoolean extends V1_ValueSpecification { values: boolean[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDate.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDate.ts index 66e11038393..3b9a56d8e8f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDate.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDate.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { V1_ValueSpecification } from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +import { V1_ValueSpecification } from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; export abstract class V1_CDate extends V1_ValueSpecification { multiplicity!: V1_Multiplicity; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDateTime.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDateTime.ts index 0fb672a0aeb..f31b8760096 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDateTime.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDateTime.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_ValueSpecificationVisitor } from '../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_CDate } from './V1_CDate'; +import type { V1_ValueSpecificationVisitor } from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_CDate } from './V1_CDate.js'; export class V1_CDateTime extends V1_CDate { values: string[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDecimal.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDecimal.ts index 6e4a1c47828..a6d348e0a76 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDecimal.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CDecimal.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_CDecimal extends V1_ValueSpecification { values: number[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CFloat.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CFloat.ts index e573670bda6..0a4edefe434 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CFloat.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CFloat.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_CFloat extends V1_ValueSpecification { values: number[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CInteger.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CInteger.ts index 73b2ec7fac1..64ba6455fd5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CInteger.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CInteger.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_CInteger extends V1_ValueSpecification { values: number[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CLatestDate.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CLatestDate.ts index da1babb5ceb..94ca8fcef3c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CLatestDate.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CLatestDate.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_ValueSpecificationVisitor } from '../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_CDate } from './V1_CDate'; +import type { V1_ValueSpecificationVisitor } from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_CDate } from './V1_CDate.js'; export class V1_CLatestDate extends V1_CDate { accept_ValueSpecificationVisitor( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictDate.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictDate.ts index 4d1f2b65784..2b163bf5b6f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictDate.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictDate.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_ValueSpecificationVisitor } from '../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_CDate } from './V1_CDate'; +import type { V1_ValueSpecificationVisitor } from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_CDate } from './V1_CDate.js'; export class V1_CStrictDate extends V1_CDate { values: string[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictTime.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictTime.ts index ad7b2437937..5eb0f7409b8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictTime.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CStrictTime.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; import { V1_ValueSpecification, type V1_ValueSpecificationVisitor, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_CStrictTime extends V1_ValueSpecification { multiplicity!: V1_Multiplicity; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CString.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CString.ts index e84d7e699ab..d99369e51ab 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CString.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_CString.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_CString extends V1_ValueSpecification { values: string[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Collection.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Collection.ts index e0c14dd9f45..f3204214e7a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Collection.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Collection.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; export class V1_Collection extends V1_ValueSpecification { values: V1_ValueSpecification[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_EnumValue.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_EnumValue.ts index 40bc0391048..193ef350bd7 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_EnumValue.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_EnumValue.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_EnumValue extends V1_ValueSpecification { fullPath!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_ExecutionContextInstance.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_ExecutionContextInstance.ts index fbcd3815fdc..0b25eaa8d3b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_ExecutionContextInstance.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_ExecutionContextInstance.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_ExecutionContext } from './executionContext/V1_ExecutionContext'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_ExecutionContext } from './executionContext/V1_ExecutionContext.js'; export class V1_ExecutionContextInstance extends V1_ValueSpecification { executionContext!: V1_ExecutionContext; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedClass.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedClass.ts index cd40fd5b05e..f14a26db298 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedClass.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedClass.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_ValueSpecificationVisitor } from '../V1_ValueSpecification'; -import { V1_PackageableElementPtr } from './V1_PackageableElementPtr'; +import type { V1_ValueSpecificationVisitor } from '../V1_ValueSpecification.js'; +import { V1_PackageableElementPtr } from './V1_PackageableElementPtr.js'; export class V1_HackedClass extends V1_PackageableElementPtr { override accept_ValueSpecificationVisitor( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedUnit.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedUnit.ts index aeecd57150d..a57eff41e12 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedUnit.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_HackedUnit.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../V1_ValueSpecification'; +} from '../V1_ValueSpecification.js'; /** * @deprecated diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_KeyExpression.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_KeyExpression.ts index efa11e28733..b0aa0323e39 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_KeyExpression.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_KeyExpression.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_KeyExpression extends V1_ValueSpecification { add?: boolean | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Lambda.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Lambda.ts index 80cb41c57f7..914c90c7a74 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Lambda.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Lambda.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Variable } from '../../../model/valueSpecification/V1_Variable'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Variable } from '../../../model/valueSpecification/V1_Variable.js'; export class V1_Lambda extends V1_ValueSpecification { body: V1_ValueSpecification[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PackageableElementPtr.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PackageableElementPtr.ts index ab7a5517260..c20df523962 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PackageableElementPtr.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PackageableElementPtr.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_PackageableElementPtr extends V1_ValueSpecification { fullPath!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Pair.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Pair.ts index 12cc6408aaa..9dae0906a1e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Pair.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_Pair.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_Pair extends V1_ValueSpecification { first!: V1_ValueSpecification; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PrimitiveType.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PrimitiveType.ts index 8978c3cebd2..1f0e1803c95 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PrimitiveType.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PrimitiveType.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_PrimitiveType extends V1_ValueSpecification { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PureList.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PureList.ts index a7a98edfef4..c3f5fc6dc33 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PureList.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_PureList.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_PureList extends V1_ValueSpecification { values: V1_ValueSpecification[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_RuntimeInstance.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_RuntimeInstance.ts index 1fc5ace4679..421bea72f25 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_RuntimeInstance.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_RuntimeInstance.ts @@ -14,11 +14,11 @@ * limitations under the License. */ -import type { V1_Runtime } from '../../../model/packageableElements/runtime/V1_Runtime'; +import type { V1_Runtime } from '../../../model/packageableElements/runtime/V1_Runtime.js'; import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_RuntimeInstance extends V1_ValueSpecification { runtime!: V1_Runtime; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_SerializationConfig.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_SerializationConfig.ts index 872617c4519..34336b03d06 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_SerializationConfig.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_SerializationConfig.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_SerializationConfig extends V1_ValueSpecification { includeType?: boolean | undefined; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSAggregateValue.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSAggregateValue.ts index a70cbacea3a..13807177803 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSAggregateValue.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSAggregateValue.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Lambda } from './V1_Lambda'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Lambda } from './V1_Lambda.js'; export class V1_TDSAggregateValue extends V1_ValueSpecification { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSColumnInformation.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSColumnInformation.ts index 2c004cc8b1c..85202885483 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSColumnInformation.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSColumnInformation.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Lambda } from './V1_Lambda'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Lambda } from './V1_Lambda.js'; export class V1_TDSColumnInformation extends V1_ValueSpecification { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSSortInformation.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSSortInformation.ts index 272749a3cb1..3a3472706a5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSSortInformation.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TDSSortInformation.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_TDSSortInformation extends V1_ValueSpecification { column!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapAggregation.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapAggregation.ts index 1469a0d8796..18a0a07ba82 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapAggregation.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapAggregation.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Lambda } from './V1_Lambda'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Lambda } from './V1_Lambda.js'; export class V1_TdsOlapAggregation extends V1_ValueSpecification { function!: V1_Lambda; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapRank.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapRank.ts index 8a16e5c9734..0aba2f5dbe9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapRank.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_TdsOlapRank.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Lambda } from './V1_Lambda'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Lambda } from './V1_Lambda.js'; export class V1_TdsOlapRank extends V1_ValueSpecification { function!: V1_Lambda; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitInstance.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitInstance.ts index 4f8213bfbe8..9710f817314 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitInstance.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitInstance.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_UnitInstance extends V1_ValueSpecification { unitType!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitType.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitType.ts index 98a836ce8a9..158654b7a9e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitType.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/V1_UnitType.ts @@ -17,7 +17,7 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; export class V1_UnitType extends V1_ValueSpecification { unitType!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext.ts index 4759cfd038a..6f320539c7f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_Lambda } from '../../../../model/valueSpecification/raw/V1_Lambda'; -import { V1_ExecutionContext } from './V1_ExecutionContext'; +import type { V1_Lambda } from '../../../../model/valueSpecification/raw/V1_Lambda.js'; +import { V1_ExecutionContext } from './V1_ExecutionContext.js'; export class V1_AnalyticsExecutionContext extends V1_ExecutionContext { useAnalytics!: boolean; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_BaseExecutionContext.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_BaseExecutionContext.ts index 72f73c292b7..7cf301f0258 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_BaseExecutionContext.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/executionContext/V1_BaseExecutionContext.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -import { V1_ExecutionContext } from './V1_ExecutionContext'; +import { V1_ExecutionContext } from './V1_ExecutionContext.js'; export class V1_BaseExecutionContext extends V1_ExecutionContext {} diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_GraphFetchTree.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_GraphFetchTree.ts index a04b9a9e2b3..f5604c6fb55 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_GraphFetchTree.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_GraphFetchTree.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification'; +import { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification.js'; export abstract class V1_GraphFetchTree extends V1_ValueSpecification { subTrees: V1_GraphFetchTree[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.ts index 0c4bbbecb5c..71f8c58fe11 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.ts @@ -17,8 +17,8 @@ import type { V1_ValueSpecification, V1_ValueSpecificationVisitor, -} from '../../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_GraphFetchTree } from './V1_GraphFetchTree'; +} from '../../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_GraphFetchTree } from './V1_GraphFetchTree.js'; export class V1_PropertyGraphFetchTree extends V1_GraphFetchTree { property!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_RootGraphFetchTree.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_RootGraphFetchTree.ts index 0cc5e88dae4..3a6b8ddb425 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_RootGraphFetchTree.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/graph/V1_RootGraphFetchTree.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_ValueSpecificationVisitor } from '../../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_GraphFetchTree } from './V1_GraphFetchTree'; +import type { V1_ValueSpecificationVisitor } from '../../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_GraphFetchTree } from './V1_GraphFetchTree.js'; export class V1_RootGraphFetchTree extends V1_GraphFetchTree { class!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_Path.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_Path.ts index 8e67f417b75..df90b4f3fa1 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_Path.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_Path.ts @@ -17,8 +17,8 @@ import { type V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_PathElement } from './V1_PathElement'; +} from '../../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_PathElement } from './V1_PathElement.js'; export class V1_Path extends V1_ValueSpecification { name!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_PropertyPathElement.ts b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_PropertyPathElement.ts index 4e85a57cb32..5b6d91d6060 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_PropertyPathElement.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/model/valueSpecification/raw/path/V1_PropertyPathElement.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_PathElement } from './V1_PathElement'; +import type { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_PathElement } from './V1_PathElement.js'; export class V1_PropertyPathElement extends V1_PathElement { property!: string; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts index 59e05c02246..1f3527888c5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts @@ -18,16 +18,16 @@ import { IllegalStateError, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection'; +import type { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection.js'; import { ConnectionPointer, type Connection, type ConnectionVisitor, -} from '../../../../../../metamodels/pure/packageableElements/connection/Connection'; -import type { JsonModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection'; -import type { XmlModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection'; -import type { FlatDataConnection } from '../../../../../../metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection'; -import type { RelationalDatabaseConnection } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection'; +} from '../../../../../../metamodels/pure/packageableElements/connection/Connection.js'; +import type { JsonModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.js'; +import type { XmlModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.js'; +import type { FlatDataConnection } from '../../../../../../metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.js'; +import type { RelationalDatabaseConnection } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; import { type AuthenticationStrategy, DefaultH2AuthenticationStrategy, @@ -38,7 +38,7 @@ import { OAuthAuthenticationStrategy, UsernamePasswordAuthenticationStrategy, GCPWorkloadIdentityFederationAuthenticationStrategy, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js'; import { type DatasourceSpecification, LocalH2DatasourceSpecification, @@ -48,13 +48,13 @@ import { SnowflakeDatasourceSpecification, RedshiftDatasourceSpecification, BigQueryDatasourceSpecification, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification'; -import type { ModelChainConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.js'; +import type { ModelChainConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.js'; import { V1_initPackageableElement, V1_transformElementReference, -} from './V1_CoreTransformerHelper'; -import { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; +} from './V1_CoreTransformerHelper.js'; +import { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; import { type V1_DatasourceSpecification, V1_LocalH2DataSourceSpecification, @@ -64,7 +64,7 @@ import { V1_DatabricksDatasourceSpecification, V1_StaticDatasourceSpecification, V1_RedshiftDatasourceSpecification, -} from '../../../model/packageableElements/store/relational/connection/V1_DatasourceSpecification'; +} from '../../../model/packageableElements/store/relational/connection/V1_DatasourceSpecification.js'; import { type V1_AuthenticationStrategy, V1_DefaultH2AuthenticationStrategy, @@ -75,21 +75,21 @@ import { V1_DelegatedKerberosAuthenticationStrategy, V1_OAuthAuthenticationStrategy, V1_GCPWorkloadIdentityFederationAuthenticationStrategy, -} from '../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy'; -import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection'; +} from '../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js'; +import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection.js'; import { type V1_DatabaseType, V1_RelationalDatabaseConnection, -} from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; -import { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer'; -import { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection'; -import { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection'; -import { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection'; -import { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection'; -import { V1_transformPostProcessor } from './V1_PostProcessorTransformer'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; -import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; +} from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; +import { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer.js'; +import { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.js'; +import { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.js'; +import { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection.js'; +import { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.js'; +import { V1_transformPostProcessor } from './V1_PostProcessorTransformer.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; +import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; const transformStaticDatasourceSpecification = ( metamodel: StaticDatasourceSpecification, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_CoreTransformerHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_CoreTransformerHelper.ts index b0768ac86bd..93b23a3a600 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_CoreTransformerHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_CoreTransformerHelper.ts @@ -14,17 +14,17 @@ * limitations under the License. */ -import type { Multiplicity } from '../../../../../../metamodels/pure/packageableElements/domain/Multiplicity'; -import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement'; +import type { Multiplicity } from '../../../../../../metamodels/pure/packageableElements/domain/Multiplicity.js'; +import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; import type { OptionalPackageableElementReference, PackageableElementReference, -} from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; +} from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; import { V1_PackageableElementPointer, type V1_PackageableElement, -} from '../../../model/packageableElements/V1_PackageableElement'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; export const V1_transformOptionalElementReference = < T extends PackageableElement, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.ts index 215cfb20c88..5e2449a6b56 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DataElementTransformer.ts @@ -20,32 +20,32 @@ import { DataElementReference, ExternalFormatData, ModelStoreData, -} from '../../../../../../metamodels/pure/data/EmbeddedData'; +} from '../../../../../../metamodels/pure/data/EmbeddedData.js'; import { type RelationalDataTable, RelationalData, -} from '../../../../../../metamodels/pure/data/RelationalData'; -import type { DataElement } from '../../../../../../metamodels/pure/packageableElements/data/DataElement'; -import type { DSLData_PureProtocolProcessorPlugin_Extension } from '../../../../DSLData_PureProtocolProcessorPlugin_Extension'; +} from '../../../../../../metamodels/pure/data/RelationalData.js'; +import type { DataElement } from '../../../../../../metamodels/pure/packageableElements/data/DataElement.js'; +import type { DSLData_PureProtocolProcessorPlugin_Extension } from '../../../../DSLData_PureProtocolProcessorPlugin_Extension.js'; import { type V1_EmbeddedData, V1_DataElementReference, V1_ExternalFormatData, V1_ModelStoreData, -} from '../../../model/data/V1_EmbeddedData'; +} from '../../../model/data/V1_EmbeddedData.js'; import { V1_RelationalData, V1_RelationalDataTable, V1_RelationalDataTableColumn, V1_RelationalDataTableRow, -} from '../../../model/data/V1_RelationalData'; -import { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement'; -import { V1_initPackageableElement } from './V1_CoreTransformerHelper'; +} from '../../../model/data/V1_RelationalData.js'; +import { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; +import { V1_initPackageableElement } from './V1_CoreTransformerHelper.js'; import { V1_transformStereotype, V1_transformTaggedValue, -} from './V1_DomainTransformer'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; +} from './V1_DomainTransformer.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; // ----------------------------------------------- DATA ---------------------------------------- diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DatabaseTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DatabaseTransformer.ts index 0dd80b09d2b..7c96d2991d3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DatabaseTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DatabaseTransformer.ts @@ -15,7 +15,7 @@ */ import { UnsupportedOperationError } from '@finos/legend-shared'; -import type { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database'; +import type { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database.js'; import { type RelationalDataType, Real, @@ -36,7 +36,7 @@ import { SmallInt, BigInt, SemiStructured, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType.js'; import { type TableAlias, RelationalOperationElement, @@ -46,19 +46,19 @@ import { LiteralList, RelationalOperationElementWithJoin, extractLine, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -import type { Table } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Table'; -import type { Column } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Column'; -import type { Filter } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Filter'; -import type { GroupByMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +import type { Table } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Table.js'; +import type { Column } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Column.js'; +import type { Filter } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Filter.js'; +import type { GroupByMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.js'; import { type Join, SELF_JOIN_SCHEMA_NAME, SELF_JOIN_TABLE_NAME, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Join'; -import type { ColumnMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnMapping'; -import type { View } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/View'; -import type { Schema } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Schema'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Join.js'; +import type { ColumnMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnMapping.js'; +import type { View } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/View.js'; +import type { Schema } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Schema.js'; import { type V1_RelationalDataType, V1_VarChar, @@ -79,12 +79,12 @@ import { V1_Binary, V1_Other, V1_SemiStructured, -} from '../../../model/packageableElements/store/relational/model/V1_RelationalDataType'; -import { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database'; +} from '../../../model/packageableElements/store/relational/model/V1_RelationalDataType.js'; +import { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database.js'; import { V1_initPackageableElement, V1_transformElementReference, -} from './V1_CoreTransformerHelper'; +} from './V1_CoreTransformerHelper.js'; import { type V1_RelationalOperationElement, V1_ElementWithJoins, @@ -92,20 +92,20 @@ import { V1_Literal, V1_TableAliasColumn, V1_DynaFunc, -} from '../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; -import { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr'; -import { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer'; -import { V1_ColumnMapping } from '../../../model/packageableElements/store/relational/model/V1_ColumnMapping'; -import { V1_Column } from '../../../model/packageableElements/store/relational/model/V1_Column'; -import { V1_Filter } from '../../../model/packageableElements/store/relational/model/V1_Filter'; -import { V1_Join } from '../../../model/packageableElements/store/relational/model/V1_Join'; -import { V1_View } from '../../../model/packageableElements/store/relational/model/V1_View'; -import { V1_Schema } from '../../../model/packageableElements/store/relational/model/V1_Schema'; -import { V1_Table } from '../../../model/packageableElements/store/relational/model/V1_Table'; -import { V1_transformMilestoning } from './V1_MilestoningTransformer'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; -import { V1_FilterMapping } from '../../../model/packageableElements/store/relational/mapping/V1_FilterMapping'; -import { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer'; +} from '../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; +import { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr.js'; +import { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer.js'; +import { V1_ColumnMapping } from '../../../model/packageableElements/store/relational/model/V1_ColumnMapping.js'; +import { V1_Column } from '../../../model/packageableElements/store/relational/model/V1_Column.js'; +import { V1_Filter } from '../../../model/packageableElements/store/relational/model/V1_Filter.js'; +import { V1_Join } from '../../../model/packageableElements/store/relational/model/V1_Join.js'; +import { V1_View } from '../../../model/packageableElements/store/relational/model/V1_View.js'; +import { V1_Schema } from '../../../model/packageableElements/store/relational/model/V1_Schema.js'; +import { V1_Table } from '../../../model/packageableElements/store/relational/model/V1_Table.js'; +import { V1_transformMilestoning } from './V1_MilestoningTransformer.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; +import { V1_FilterMapping } from '../../../model/packageableElements/store/relational/mapping/V1_FilterMapping.js'; +import { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer.js'; const transformRelationalDataType = ( type: RelationalDataType, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.ts index a127f20d268..1565184ddb8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.ts @@ -14,47 +14,47 @@ * limitations under the License. */ -import type { DerivedProperty } from '../../../../../../metamodels/pure/packageableElements/domain/DerivedProperty'; -import type { Constraint } from '../../../../../../metamodels/pure/packageableElements/domain/Constraint'; +import type { DerivedProperty } from '../../../../../../metamodels/pure/packageableElements/domain/DerivedProperty.js'; +import type { Constraint } from '../../../../../../metamodels/pure/packageableElements/domain/Constraint.js'; import type { Measure, Unit, -} from '../../../../../../metamodels/pure/packageableElements/domain/Measure'; -import type { Enum } from '../../../../../../metamodels/pure/packageableElements/domain/Enum'; -import type { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile'; -import type { StereotypeReference } from '../../../../../../metamodels/pure/packageableElements/domain/StereotypeReference'; -import type { TaggedValue } from '../../../../../../metamodels/pure/packageableElements/domain/TaggedValue'; -import type { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration'; -import type { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association'; -import type { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { Property } from '../../../../../../metamodels/pure/packageableElements/domain/Property'; -import { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; -import { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; +} from '../../../../../../metamodels/pure/packageableElements/domain/Measure.js'; +import type { Enum } from '../../../../../../metamodels/pure/packageableElements/domain/Enum.js'; +import type { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile.js'; +import type { StereotypeReference } from '../../../../../../metamodels/pure/packageableElements/domain/StereotypeReference.js'; +import type { TaggedValue } from '../../../../../../metamodels/pure/packageableElements/domain/TaggedValue.js'; +import type { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration.js'; +import type { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association.js'; +import type { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { Property } from '../../../../../../metamodels/pure/packageableElements/domain/Property.js'; +import { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; +import { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; import { V1_initPackageableElement, V1_transformMultiplicity, V1_transformElementReference, -} from './V1_CoreTransformerHelper'; -import { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; -import { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr'; -import { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; -import { V1_EnumValue } from '../../../model/packageableElements/domain/V1_EnumValue'; +} from './V1_CoreTransformerHelper.js'; +import { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; +import { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr.js'; +import { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; +import { V1_EnumValue } from '../../../model/packageableElements/domain/V1_EnumValue.js'; import { V1_Measure, V1_Unit, -} from '../../../model/packageableElements/domain/V1_Measure'; -import { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; -import { V1_Constraint } from '../../../model/packageableElements/domain/V1_Constraint'; -import { V1_Property } from '../../../model/packageableElements/domain/V1_Property'; -import { V1_DerivedProperty } from '../../../model/packageableElements/domain/V1_DerivedProperty'; -import type { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; -import { isStubbed_RawLambda } from '../../../../../../../graphManager/action/creation/RawValueSpecificationCreatorHelper'; +} from '../../../model/packageableElements/domain/V1_Measure.js'; +import { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; +import { V1_Constraint } from '../../../model/packageableElements/domain/V1_Constraint.js'; +import { V1_Property } from '../../../model/packageableElements/domain/V1_Property.js'; +import { V1_DerivedProperty } from '../../../model/packageableElements/domain/V1_DerivedProperty.js'; +import type { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; +import { isStubbed_RawLambda } from '../../../../../../../graphManager/action/creation/RawValueSpecificationCreatorHelper.js'; export const V1_transformProfile = (element: Profile): V1_Profile => { const profile = new V1_Profile(); diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_FlatDataTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_FlatDataTransformer.ts index f7278b27718..2f252708882 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_FlatDataTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_FlatDataTransformer.ts @@ -15,7 +15,7 @@ */ import { UnsupportedOperationError } from '@finos/legend-shared'; -import type { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData'; +import type { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; import { FlatDataString, FlatDataBoolean, @@ -30,10 +30,10 @@ import { FlatDataRecordType, type FlatDataDataType, type FlatDataRecordField, -} from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType'; -import type { FlatDataSection } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataSection'; -import { V1_FlatDataSection } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataSection'; -import { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData'; +} from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.js'; +import type { FlatDataSection } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.js'; +import { V1_FlatDataSection } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataSection.js'; +import { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData.js'; import { type V1_FlatDataDataType, V1_FlatDataRecordField, @@ -48,9 +48,9 @@ import { V1_FlatDataInteger, V1_FlatDataBoolean, V1_FlatDataString, -} from '../../../model/packageableElements/store/flatData/model/V1_FlatDataDataType'; -import { V1_initPackageableElement } from './V1_CoreTransformerHelper'; -import { V1_FlatDataProperty } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataProperty'; +} from '../../../model/packageableElements/store/flatData/model/V1_FlatDataDataType.js'; +import { V1_initPackageableElement } from './V1_CoreTransformerHelper.js'; +import { V1_FlatDataProperty } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataProperty.js'; function transformFlatDataType(type: FlatDataDataType): V1_FlatDataDataType { const transformFlatDataRecordField = ( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GenerationSpecificationTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GenerationSpecificationTransformer.ts index 3d6e937b48a..7b5af480aec 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GenerationSpecificationTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GenerationSpecificationTransformer.ts @@ -14,25 +14,25 @@ * limitations under the License. */ -import { PackageableElementPointerType } from '../../../../../../../MetaModelConst'; -import type { ConfigurationProperty } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty'; -import type { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; +import { PackageableElementPointerType } from '../../../../../../../MetaModelConst.js'; +import type { ConfigurationProperty } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.js'; +import type { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; import type { GenerationSpecification, GenerationTreeNode, -} from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; -import { PackageableElementReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { V1_ConfigurationProperty } from '../../../model/packageableElements/fileGeneration/V1_ConfigurationProperty'; -import { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; +} from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; +import { PackageableElementReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { V1_ConfigurationProperty } from '../../../model/packageableElements/fileGeneration/V1_ConfigurationProperty.js'; +import { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; import { V1_GenerationSpecification, V1_GenerationTreeNode, -} from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; +} from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; import { V1_transformElementReferencePointer, V1_initPackageableElement, V1_transformElementReference, -} from './V1_CoreTransformerHelper'; +} from './V1_CoreTransformerHelper.js'; // ----------------------------------------------- GENERATION SPECIFICATION ---------------------------------------- diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GraphTransformerContext.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GraphTransformerContext.ts index 90ccb29060a..9a52fba0c0f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GraphTransformerContext.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_GraphTransformerContext.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; export class V1_GraphTransformerContext { readonly keepSourceInformation: boolean; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.ts index b5d4d0c2053..1d7ccbf11c9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.ts @@ -20,137 +20,137 @@ import { isNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; +import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; import type { SetImplementationVisitor, SetImplementation, -} from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation'; +} from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation.js'; import type { PropertyMappingVisitor, PropertyMapping, -} from '../../../../../../metamodels/pure/packageableElements/mapping/PropertyMapping'; -import { PurePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping'; -import { Enum } from '../../../../../../metamodels/pure/packageableElements/domain/Enum'; -import type { EnumValueMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/EnumValueMapping'; -import type { EnumerationMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping'; -import type { InputData } from '../../../../../../metamodels/pure/packageableElements/mapping/InputData'; -import type { MappingTestAssert } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingTestAssert'; +} from '../../../../../../metamodels/pure/packageableElements/mapping/PropertyMapping.js'; +import { PurePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.js'; +import { Enum } from '../../../../../../metamodels/pure/packageableElements/domain/Enum.js'; +import type { EnumValueMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/EnumValueMapping.js'; +import type { EnumerationMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; +import type { InputData } from '../../../../../../metamodels/pure/packageableElements/mapping/InputData.js'; +import type { MappingTestAssert } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingTestAssert.js'; import { ObjectInputData, ObjectInputType, -} from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData'; -import { FlatDataInputData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData'; -import { ExpectedOutputMappingTestAssert } from '../../../../../../metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert'; -import { extractLine } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -import { FlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping'; -import type { EmbeddedFlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping'; -import type { PureInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation'; +} from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.js'; +import { FlatDataInputData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.js'; +import { ExpectedOutputMappingTestAssert } from '../../../../../../metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.js'; +import { extractLine } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +import { FlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.js'; +import type { EmbeddedFlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js'; +import type { PureInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js'; import { type OperationSetImplementation, OperationType, -} from '../../../../../../metamodels/pure/packageableElements/mapping/OperationSetImplementation'; -import type { FlatDataInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation'; -import type { RelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation'; -import type { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { RelationalPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -import type { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation'; -import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; -import type { InferableMappingElementIdValue } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId'; -import type { MappingInclude } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingInclude'; -import type { InferableMappingElementRoot } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementRoot'; -import type { MappingTest } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingTest'; -import type { AssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/AssociationImplementation'; -import { RelationalAssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation'; -import type { PropertyReference } from '../../../../../../metamodels/pure/packageableElements/domain/PropertyReference'; -import type { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation'; -import type { AggregationAwarePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping'; -import type { AggregateSetImplementationContainer } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer'; -import type { AggregateSpecification } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification'; -import type { AggregationFunctionSpecification } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification'; -import type { GroupByFunctionSpecification } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; +} from '../../../../../../metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; +import type { FlatDataInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.js'; +import type { RelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.js'; +import type { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { RelationalPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +import type { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.js'; +import type { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; +import type { InferableMappingElementIdValue } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId.js'; +import type { MappingInclude } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingInclude.js'; +import type { InferableMappingElementRoot } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.js'; +import type { MappingTest } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingTest.js'; +import type { AssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/AssociationImplementation.js'; +import { RelationalAssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation.js'; +import type { PropertyReference } from '../../../../../../metamodels/pure/packageableElements/domain/PropertyReference.js'; +import type { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.js'; +import type { AggregationAwarePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping.js'; +import type { AggregateSetImplementationContainer } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer.js'; +import type { AggregateSpecification } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification.js'; +import type { AggregationFunctionSpecification } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification.js'; +import type { GroupByFunctionSpecification } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; import { V1_initPackageableElement, V1_transformElementReference, V1_transformElementReferencePointer, V1_transformMultiplicity, V1_transformOptionalElementReference, -} from './V1_CoreTransformerHelper'; -import { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; +} from './V1_CoreTransformerHelper.js'; +import { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; import { V1_EnumValueMapping, V1_EnumValueMappingEnumSourceValue, V1_EnumValueMappingIntegerSourceValue, V1_EnumValueMappingStringSourceValue, -} from '../../../model/packageableElements/mapping/V1_EnumValueMapping'; -import type { V1_PropertyMapping } from '../../../model/packageableElements/mapping/V1_PropertyMapping'; -import type { V1_ClassMapping } from '../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_InputData } from '../../../model/packageableElements/mapping/V1_InputData'; -import type { V1_AssociationMapping } from '../../../model/packageableElements/mapping/V1_AssociationMapping'; -import { V1_RelationalAssociationMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping'; -import type { V1_MappingTestAssert } from '../../../model/packageableElements/mapping/V1_MappingTestAssert'; +} from '../../../model/packageableElements/mapping/V1_EnumValueMapping.js'; +import type { V1_PropertyMapping } from '../../../model/packageableElements/mapping/V1_PropertyMapping.js'; +import type { V1_ClassMapping } from '../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_InputData } from '../../../model/packageableElements/mapping/V1_InputData.js'; +import type { V1_AssociationMapping } from '../../../model/packageableElements/mapping/V1_AssociationMapping.js'; +import { V1_RelationalAssociationMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping.js'; +import type { V1_MappingTestAssert } from '../../../model/packageableElements/mapping/V1_MappingTestAssert.js'; import { V1_ObjectInputData, V1_ObjectInputType, -} from '../../../model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData'; -import { V1_FlatDataInputData } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataInputData'; -import { V1_ExpectedOutputMappingTestAssert } from '../../../model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert'; -import { V1_MappingTest } from '../../../model/packageableElements/mapping/V1_MappingTest'; -import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer'; -import { V1_MappingInclude } from '../../../model/packageableElements/mapping/V1_MappingInclude'; -import { V1_EnumerationMapping } from '../../../model/packageableElements/mapping/V1_EnumerationMapping'; -import { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping'; -import { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer'; -import { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping'; -import { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping'; -import { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping'; +} from '../../../model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData.js'; +import { V1_FlatDataInputData } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataInputData.js'; +import { V1_ExpectedOutputMappingTestAssert } from '../../../model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert.js'; +import { V1_MappingTest } from '../../../model/packageableElements/mapping/V1_MappingTest.js'; +import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer.js'; +import { V1_MappingInclude } from '../../../model/packageableElements/mapping/V1_MappingInclude.js'; +import { V1_EnumerationMapping } from '../../../model/packageableElements/mapping/V1_EnumerationMapping.js'; +import { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.js'; +import { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer.js'; +import { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.js'; +import { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.js'; +import { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.js'; import { V1_transformRelationalOperationElement, V1_transformTableAliasToTablePointer, -} from './V1_DatabaseTransformer'; -import { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping'; -import { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping'; -import { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping'; -import { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping'; +} from './V1_DatabaseTransformer.js'; +import { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.js'; +import { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.js'; +import { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.js'; +import { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.js'; import { V1_MappingOperationType, V1_OperationClassMapping, -} from '../../../model/packageableElements/mapping/V1_OperationClassMapping'; -import { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping'; -import { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping'; -import { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping'; -import { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping'; -import { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping'; -import { V1_AggregateSetImplementationContainer } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer'; -import { V1_AggregateSpecification } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification'; -import { V1_AggregateFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction'; -import { V1_GroupByFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction'; -import type { XStorePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping'; -import { V1_XStorePropertyMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStorePropertyMapping'; -import { XStoreAssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation'; -import { V1_XStoreAssociationMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping'; -import { V1_LocalMappingPropertyInfo } from '../../../model/packageableElements/mapping/V1_LocalMappingPropertyInfo'; -import type { LocalMappingPropertyInfo } from '../../../../../../metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo'; -import { V1_FilterMapping } from '../../../model/packageableElements/store/relational/mapping/V1_FilterMapping'; -import { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer'; -import { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer'; -import type { V1_RawRelationalOperationElement } from '../../../model/packageableElements/store/relational/model/V1_RawRelationalOperationElement'; -import { RelationalInputData } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData'; -import { V1_RelationalInputData } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalInputData'; -import { PackageableElementPointerType } from '../../../../../../../MetaModelConst'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; -import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension'; -import type { InstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import type { SubstituteStore } from '../../../../../../metamodels/pure/packageableElements/mapping/SubstituteStore'; -import { V1_BindingTransformer } from '../../../model/packageableElements/externalFormat/store/V1_BindingTransformer'; -import { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping'; -import { MergeOperationSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation'; -import type { TEMPORARY__UnresolvedSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation'; -import { isStubbed_EnumValueMapping } from '../../../../../../../graphManager/action/creation/DSLMapping_ModelCreatorHelper'; -import { isStubbed_RawLambda } from '../../../../../../../graphManager/action/creation/RawValueSpecificationCreatorHelper'; -import { isStubbed_RawRelationalOperationElement } from '../../../../../../../graphManager/action/creation/StoreRelational_ModelCreatorHelper'; -import { pruneSourceInformation } from '../../../../../../../MetaModelUtils'; +} from '../../../model/packageableElements/mapping/V1_OperationClassMapping.js'; +import { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.js'; +import { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.js'; +import { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.js'; +import { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.js'; +import { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.js'; +import { V1_AggregateSetImplementationContainer } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.js'; +import { V1_AggregateSpecification } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification.js'; +import { V1_AggregateFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction.js'; +import { V1_GroupByFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction.js'; +import type { XStorePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping.js'; +import { V1_XStorePropertyMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStorePropertyMapping.js'; +import { XStoreAssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation.js'; +import { V1_XStoreAssociationMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping.js'; +import { V1_LocalMappingPropertyInfo } from '../../../model/packageableElements/mapping/V1_LocalMappingPropertyInfo.js'; +import type { LocalMappingPropertyInfo } from '../../../../../../metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo.js'; +import { V1_FilterMapping } from '../../../model/packageableElements/store/relational/mapping/V1_FilterMapping.js'; +import { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer.js'; +import { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer.js'; +import type { V1_RawRelationalOperationElement } from '../../../model/packageableElements/store/relational/model/V1_RawRelationalOperationElement.js'; +import { RelationalInputData } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.js'; +import { V1_RelationalInputData } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalInputData.js'; +import { PackageableElementPointerType } from '../../../../../../../MetaModelConst.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; +import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension.js'; +import type { InstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import type { SubstituteStore } from '../../../../../../metamodels/pure/packageableElements/mapping/SubstituteStore.js'; +import { V1_BindingTransformer } from '../../../model/packageableElements/externalFormat/store/V1_BindingTransformer.js'; +import { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping.js'; +import { MergeOperationSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation.js'; +import type { TEMPORARY__UnresolvedSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.js'; +import { isStubbed_EnumValueMapping } from '../../../../../../../graphManager/action/creation/DSLMapping_ModelCreatorHelper.js'; +import { isStubbed_RawLambda } from '../../../../../../../graphManager/action/creation/RawValueSpecificationCreatorHelper.js'; +import { isStubbed_RawRelationalOperationElement } from '../../../../../../../graphManager/action/creation/StoreRelational_ModelCreatorHelper.js'; +import { pruneSourceInformation } from '../../../../../../../MetaModelUtils.js'; export const V1_transformPropertyReference = ( element: PropertyReference, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MilestoningTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MilestoningTransformer.ts index 47eac0f3bd6..a9ea11cf189 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MilestoningTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MilestoningTransformer.ts @@ -14,19 +14,19 @@ * limitations under the License. */ -import { BusinessMilestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning'; +import { BusinessMilestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning.js'; import { guaranteeType, UnsupportedOperationError } from '@finos/legend-shared'; -import { V1_BusinessMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning'; -import type { V1_Milestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning'; -import type { Milestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning'; -import { V1_BusinessSnapshotMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning'; -import { BusinessSnapshotMilestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning'; -import { V1_ProcessingMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning'; -import { ProcessingMilestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; -import { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue'; -import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer'; +import { V1_BusinessMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning.js'; +import type { V1_Milestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning.js'; +import type { Milestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.js'; +import { V1_BusinessSnapshotMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning.js'; +import { BusinessSnapshotMilestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning.js'; +import { V1_ProcessingMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning.js'; +import { ProcessingMilestoning } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; +import { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue.js'; +import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer.js'; const transformBusinessMilesoning = ( metamodel: BusinessMilestoning, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts index 5965cd72435..577409c68fc 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PackageableElementTransformer.ts @@ -21,25 +21,25 @@ import { import type { PackageableElement, PackageableElementVisitor, -} from '../../../../../../metamodels/pure/packageableElements/PackageableElement'; -import type { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile'; -import type { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration'; -import type { Measure } from '../../../../../../metamodels/pure/packageableElements/domain/Measure'; -import type { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association'; -import type { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import type { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database'; -import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service'; -import type { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime'; -import type { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection'; -import type { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import type { GenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; -import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package'; -import type { PrimitiveType } from '../../../../../../metamodels/pure/packageableElements/domain/PrimitiveType'; -import type { SectionIndex } from '../../../../../../metamodels/pure/packageableElements/section/SectionIndex'; -import type { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement'; +} from '../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; +import type { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile.js'; +import type { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration.js'; +import type { Measure } from '../../../../../../metamodels/pure/packageableElements/domain/Measure.js'; +import type { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association.js'; +import type { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import type { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database.js'; +import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service.js'; +import type { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +import type { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import type { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import type { GenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; +import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package.js'; +import type { PrimitiveType } from '../../../../../../metamodels/pure/packageableElements/domain/PrimitiveType.js'; +import type { SectionIndex } from '../../../../../../metamodels/pure/packageableElements/section/SectionIndex.js'; +import type { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement.js'; import { V1_transformAssociation, V1_transformClass, @@ -47,25 +47,25 @@ import { V1_transformFunction, V1_transformMeasure, V1_transformProfile, -} from './V1_DomainTransformer'; -import { V1_transformSectionIndex } from './V1_SectionIndexTransformer'; +} from './V1_DomainTransformer.js'; +import { V1_transformSectionIndex } from './V1_SectionIndexTransformer.js'; import { V1_transformFileGeneration, V1_transformGenerationSpecification, -} from './V1_GenerationSpecificationTransformer'; -import { V1_transformFlatData } from './V1_FlatDataTransformer'; -import { V1_transformDatabase } from './V1_DatabaseTransformer'; -import { V1_transformMapping } from './V1_MappingTransformer'; -import { V1_transformService } from './V1_ServiceTransformer'; -import { V1_transformPackageableRuntime } from './V1_RuntimeTransformer'; -import { V1_transformPackageableConnection } from './V1_ConnectionTransformer'; +} from './V1_GenerationSpecificationTransformer.js'; +import { V1_transformFlatData } from './V1_FlatDataTransformer.js'; +import { V1_transformDatabase } from './V1_DatabaseTransformer.js'; +import { V1_transformMapping } from './V1_MappingTransformer.js'; +import { V1_transformService } from './V1_ServiceTransformer.js'; +import { V1_transformPackageableRuntime } from './V1_RuntimeTransformer.js'; +import { V1_transformPackageableConnection } from './V1_ConnectionTransformer.js'; import type { V1_ElementTransformer, PureProtocolProcessorPlugin, -} from '../../../../PureProtocolProcessorPlugin'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; -import type { DataElement } from '../../../../../../metamodels/pure/packageableElements/data/DataElement'; -import { V1_transformDataElement } from './V1_DataElementTransformer'; +} from '../../../../PureProtocolProcessorPlugin.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; +import type { DataElement } from '../../../../../../metamodels/pure/packageableElements/data/DataElement.js'; +import { V1_transformDataElement } from './V1_DataElementTransformer.js'; class V1_PackageableElementTransformer implements PackageableElementVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PostProcessorTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PostProcessorTransformer.ts index fd7a705c283..85c5af20f88 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PostProcessorTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_PostProcessorTransformer.ts @@ -14,26 +14,26 @@ * limitations under the License. */ -import type { PostProcessor } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor'; -import { MapperPostProcessor } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor'; -import { V1_MapperPostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor'; -import type { V1_PostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor'; +import type { PostProcessor } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor.js'; +import { MapperPostProcessor } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor.js'; +import { V1_MapperPostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor.js'; +import type { V1_PostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor.js'; import { UnsupportedOperationError } from '@finos/legend-shared'; import { type Mapper, SchemaNameMapper, TableNameMapper, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper.js'; import { type V1_Mapper, V1_SchemaNameMapper, V1_TableNameMapper, -} from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_Mapper'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; -import type { ViewReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/ViewReference'; -import type { TableReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/TableReference'; -import { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; +} from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; +import type { ViewReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/ViewReference.js'; +import type { TableReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/TableReference.js'; +import { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; const V1_transformSchemaNameMapper = ( val: SchemaNameMapper, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.ts index 5ce4300dfc1..ef9896bd5e5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.ts @@ -14,20 +14,20 @@ * limitations under the License. */ -import type { RawValueSpecificationVisitor } from '../../../../../../metamodels/pure/rawValueSpecification/RawValueSpecification'; -import type { RawLambda } from '../../../../../../metamodels/pure/rawValueSpecification/RawLambda'; -import type { RawVariableExpression } from '../../../../../../metamodels/pure/rawValueSpecification/RawVariableExpression'; -import { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; -import { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable'; +import type { RawValueSpecificationVisitor } from '../../../../../../metamodels/pure/rawValueSpecification/RawValueSpecification.js'; +import type { RawLambda } from '../../../../../../metamodels/pure/rawValueSpecification/RawLambda.js'; +import type { RawVariableExpression } from '../../../../../../metamodels/pure/rawValueSpecification/RawVariableExpression.js'; +import { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; +import { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable.js'; import { V1_transformMultiplicity, V1_transformElementReference, -} from './V1_CoreTransformerHelper'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; -import type { V1_RawValueSpecification } from '../../../model/rawValueSpecification/V1_RawValueSpecification'; -import { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue'; -import type { RawPrimitiveInstanceValue } from '../../../../../../metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue'; -import { pruneSourceInformation } from '../../../../../../../MetaModelUtils'; +} from './V1_CoreTransformerHelper.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; +import type { V1_RawValueSpecification } from '../../../model/rawValueSpecification/V1_RawValueSpecification.js'; +import { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue.js'; +import type { RawPrimitiveInstanceValue } from '../../../../../../metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.js'; +import { pruneSourceInformation } from '../../../../../../../MetaModelUtils.js'; export class V1_RawValueSpecificationTransformer implements RawValueSpecificationVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.ts index 12b4639310c..21654ca3e63 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.ts @@ -15,29 +15,29 @@ */ import { UnsupportedOperationError } from '@finos/legend-shared'; -import type { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime'; +import type { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; import { EngineRuntime, RuntimePointer, type StoreConnections, type Runtime, -} from '../../../../../../metamodels/pure/packageableElements/runtime/Runtime'; +} from '../../../../../../metamodels/pure/packageableElements/runtime/Runtime.js'; import { V1_initPackageableElement, V1_transformElementReference, V1_transformElementReferencePointer, -} from './V1_CoreTransformerHelper'; -import { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; +} from './V1_CoreTransformerHelper.js'; +import { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; import { type V1_Runtime, V1_EngineRuntime, V1_StoreConnections, V1_IdentifiedConnection, V1_RuntimePointer, -} from '../../../model/packageableElements/runtime/V1_Runtime'; -import { V1_transformConnection } from './V1_ConnectionTransformer'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; -import { PackageableElementPointerType } from '../../../../../../../MetaModelConst'; +} from '../../../model/packageableElements/runtime/V1_Runtime.js'; +import { V1_transformConnection } from './V1_ConnectionTransformer.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; +import { PackageableElementPointerType } from '../../../../../../../MetaModelConst.js'; const transformStoreConnections = ( element: StoreConnections, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_SectionIndexTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_SectionIndexTransformer.ts index 1540f405069..3227724989e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_SectionIndexTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_SectionIndexTransformer.ts @@ -18,17 +18,17 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { DefaultCodeSection, ImportAwareCodeSection, -} from '../../../../../../metamodels/pure/packageableElements/section/Section'; -import type { SectionIndex } from '../../../../../../metamodels/pure/packageableElements/section/SectionIndex'; +} from '../../../../../../metamodels/pure/packageableElements/section/Section.js'; +import type { SectionIndex } from '../../../../../../metamodels/pure/packageableElements/section/SectionIndex.js'; import { V1_DefaultCodeSection, V1_ImportAwareCodeSection, -} from '../../../model/packageableElements/section/V1_Section'; -import { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; +} from '../../../model/packageableElements/section/V1_Section.js'; +import { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; import { V1_initPackageableElement, V1_transformElementReference, -} from './V1_CoreTransformerHelper'; +} from './V1_CoreTransformerHelper.js'; const transformDefaultCodeSectionSchema = ( element: DefaultCodeSection, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts index 157ba1863ad..23054ea95d2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ServiceTransformer.ts @@ -15,62 +15,62 @@ */ import { UnsupportedOperationError } from '@finos/legend-shared'; -import type { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service'; -import type { ServiceTest } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTest'; +import type { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service.js'; +import type { ServiceTest } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTest.js'; import { type KeyedExecutionParameter, type ServiceExecution, PureSingleExecution, PureMultiExecution, -} from '../../../../../../metamodels/pure/packageableElements/service/ServiceExecution'; +} from '../../../../../../metamodels/pure/packageableElements/service/ServiceExecution.js'; import { V1_initPackageableElement, V1_transformElementReference, -} from './V1_CoreTransformerHelper'; -import { V1_Service } from '../../../model/packageableElements/service/V1_Service'; +} from './V1_CoreTransformerHelper.js'; +import { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; import { type V1_ServiceExecution, V1_PureSingleExecution, V1_PureMultiExecution, V1_KeyedExecutionParameter, -} from '../../../model/packageableElements/service/V1_ServiceExecution'; -import { V1_ServiceTest } from '../../../model/packageableElements/service/V1_ServiceTest'; -import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; -import { V1_transformRuntime } from './V1_RuntimeTransformer'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; +} from '../../../model/packageableElements/service/V1_ServiceExecution.js'; +import { V1_ServiceTest } from '../../../model/packageableElements/service/V1_ServiceTest.js'; +import { V1_RawValueSpecificationTransformer } from './V1_RawValueSpecificationTransformer.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; +import { V1_transformRuntime } from './V1_RuntimeTransformer.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; import { V1_transformStereotype, V1_transformTaggedValue, -} from './V1_DomainTransformer'; +} from './V1_DomainTransformer.js'; import { type DEPRECATED__ServiceTest, type DEPRECATED__KeyedSingleExecutionTest, type DEPRECATED__TestContainer, DEPRECATED__MultiExecutionTest, DEPRECATED__SingleExecutionTest, -} from '../../../../../../metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest'; +} from '../../../../../../metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.js'; import { type V1_DEPRECATED__ServiceTest, V1_DEPRECATED__KeyedSingleExecutionTest, V1_DEPRECATED__MultiExecutionTest, V1_DEPRECATED__SingleExecutionTest, V1_DEPRECATED__TestContainer, -} from '../../../model/packageableElements/service/V1_DEPRECATED__ServiceTest'; -import type { ConnectionTestData } from '../../../../../../metamodels/pure/packageableElements/service/ConnectionTestData'; -import { V1_ConnectionTestData } from '../../../model/packageableElements/service/V1_ConnectionTestData'; -import { V1_transformEmbeddedData } from './V1_DataElementTransformer'; -import { V1_ParameterValue } from '../../../model/packageableElements/service/V1_ParameterValue'; -import type { ParameterValue } from '../../../../../../metamodels/pure/packageableElements/service/ParameterValue'; -import type { TestData } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestData'; -import { V1_TestData } from '../../../model/packageableElements/service/V1_TestData'; -import { V1_ServiceTestSuite } from '../../../model/packageableElements/service/V1_ServiceTestSuite'; -import type { ServiceTestSuite } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite'; +} from '../../../model/packageableElements/service/V1_DEPRECATED__ServiceTest.js'; +import type { ConnectionTestData } from '../../../../../../metamodels/pure/packageableElements/service/ConnectionTestData.js'; +import { V1_ConnectionTestData } from '../../../model/packageableElements/service/V1_ConnectionTestData.js'; +import { V1_transformEmbeddedData } from './V1_DataElementTransformer.js'; +import { V1_ParameterValue } from '../../../model/packageableElements/service/V1_ParameterValue.js'; +import type { ParameterValue } from '../../../../../../metamodels/pure/packageableElements/service/ParameterValue.js'; +import type { TestData } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestData.js'; +import { V1_TestData } from '../../../model/packageableElements/service/V1_TestData.js'; +import { V1_ServiceTestSuite } from '../../../model/packageableElements/service/V1_ServiceTestSuite.js'; +import type { ServiceTestSuite } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite.js'; import { V1_transformAtomicTest, V1_transformTestAssertion, V1_transformTestSuite, -} from './V1_TestTransformer'; +} from './V1_TestTransformer.js'; const transformConnectionTestData = ( element: ConnectionTestData, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.ts index 01101772a27..9fbd3f71e6f 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_TestTransformer.ts @@ -15,31 +15,31 @@ */ import { UnsupportedOperationError } from '@finos/legend-shared'; -import { V1_EqualTo } from '../../../model/test/assertion/V1_EqualTo'; -import { V1_EqualToJson } from '../../../model/test/assertion/V1_EqualToJson'; -import { EqualTo } from '../../../../../../metamodels/pure/test/assertion/EqualTo'; -import { EqualToJson } from '../../../../../../metamodels/pure/test/assertion/EqualToJson'; -import { V1_transformExternalFormatData } from './V1_DataElementTransformer'; -import type { V1_AtomicTest } from '../../../model/test/V1_AtomicTest'; -import { ServiceTest } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTest'; -import type { V1_TestAssertion } from '../../../model/test/assertion/V1_TestAssertion'; -import type { TestAssertion } from '../../../../../../metamodels/pure/test/assertion/TestAssertion'; -import type { V1_TestSuite } from '../../../model/test/V1_TestSuite'; +import { V1_EqualTo } from '../../../model/test/assertion/V1_EqualTo.js'; +import { V1_EqualToJson } from '../../../model/test/assertion/V1_EqualToJson.js'; +import { EqualTo } from '../../../../../../metamodels/pure/test/assertion/EqualTo.js'; +import { EqualToJson } from '../../../../../../metamodels/pure/test/assertion/EqualToJson.js'; +import { V1_transformExternalFormatData } from './V1_DataElementTransformer.js'; +import type { V1_AtomicTest } from '../../../model/test/V1_AtomicTest.js'; +import { ServiceTest } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTest.js'; +import type { V1_TestAssertion } from '../../../model/test/assertion/V1_TestAssertion.js'; +import type { TestAssertion } from '../../../../../../metamodels/pure/test/assertion/TestAssertion.js'; +import type { V1_TestSuite } from '../../../model/test/V1_TestSuite.js'; import { V1_transformServiceTest, V1_transformServiceTestSuite, -} from './V1_ServiceTransformer'; -import { ServiceTestSuite } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite'; -import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext'; +} from './V1_ServiceTransformer.js'; +import { ServiceTestSuite } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite.js'; +import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js'; import type { AtomicTest, TestSuite, -} from '../../../../../../metamodels/pure/test/Test'; -import { EqualToTDS } from '../../../../../../metamodels/pure/test/assertion/EqualToTDS'; +} from '../../../../../../metamodels/pure/test/Test.js'; +import { EqualToTDS } from '../../../../../../metamodels/pure/test/assertion/EqualToTDS.js'; import { V1_EqualToTDS, V1_RelationalTDS, -} from '../../../model/test/assertion/V1_EqualToTDS'; +} from '../../../model/test/assertion/V1_EqualToTDS.js'; const transformEqualTo = (element: EqualTo): V1_EqualTo => { const equalTo = new V1_EqualTo(); diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ValueSpecificationTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ValueSpecificationTransformer.ts index 65c92b60b34..629cfcee2c5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ValueSpecificationTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ValueSpecificationTransformer.ts @@ -20,15 +20,15 @@ import { guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { PRIMITIVE_TYPE } from '../../../../../../../MetaModelConst'; -import type { AlloySerializationConfigInstanceValue } from '../../../../../../metamodels/pure/valueSpecification/AlloySerializationConfig'; +import { PRIMITIVE_TYPE } from '../../../../../../../MetaModelConst.js'; +import type { AlloySerializationConfigInstanceValue } from '../../../../../../metamodels/pure/valueSpecification/AlloySerializationConfig.js'; import { type GraphFetchTree, type PropertyGraphFetchTreeInstanceValue, type RootGraphFetchTreeInstanceValue, PropertyGraphFetchTree, RootGraphFetchTree, -} from '../../../../../../metamodels/pure/valueSpecification/GraphFetchTree'; +} from '../../../../../../metamodels/pure/valueSpecification/GraphFetchTree.js'; import type { PrimitiveInstanceValue, EnumValueInstanceValue, @@ -38,51 +38,51 @@ import type { PureListInstanceValue, CollectionInstanceValue, InstanceValue, -} from '../../../../../../metamodels/pure/valueSpecification/InstanceValue'; +} from '../../../../../../metamodels/pure/valueSpecification/InstanceValue.js'; import { LambdaFunctionInstanceValue, type LambdaFunction, -} from '../../../../../../metamodels/pure/valueSpecification/LambdaFunction'; +} from '../../../../../../metamodels/pure/valueSpecification/LambdaFunction.js'; import type { AbstractPropertyExpression, FunctionExpression, SimpleFunctionExpression, -} from '../../../../../../metamodels/pure/valueSpecification/SimpleFunctionExpression'; +} from '../../../../../../metamodels/pure/valueSpecification/SimpleFunctionExpression.js'; import { type ValueSpecificationVisitor, ValueSpecification, -} from '../../../../../../metamodels/pure/valueSpecification/ValueSpecification'; -import type { VariableExpression } from '../../../../../../metamodels/pure/valueSpecification/VariableExpression'; -import { V1_Lambda } from '../../../model/valueSpecification/raw/V1_Lambda'; -import type { V1_ValueSpecification } from '../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_Variable } from '../../../model/valueSpecification/V1_Variable'; -import { V1_AppliedFunction } from '../../../model/valueSpecification/application/V1_AppliedFunction'; -import { V1_AppliedProperty } from '../../../model/valueSpecification/application/V1_AppliedProperty'; -import { V1_CString } from '../../../model/valueSpecification/raw/V1_CString'; -import { V1_CInteger } from '../../../model/valueSpecification/raw/V1_CInteger'; -import { V1_CDecimal } from '../../../model/valueSpecification/raw/V1_CDecimal'; -import { V1_CBoolean } from '../../../model/valueSpecification/raw/V1_CBoolean'; -import { V1_CFloat } from '../../../model/valueSpecification/raw/V1_CFloat'; -import { V1_CDateTime } from '../../../model/valueSpecification/raw/V1_CDateTime'; -import { V1_CStrictDate } from '../../../model/valueSpecification/raw/V1_CStrictDate'; -import { V1_CStrictTime } from '../../../model/valueSpecification/raw/V1_CStrictTime'; -import { V1_CLatestDate } from '../../../model/valueSpecification/raw/V1_CLatestDate'; -import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; -import { V1_EnumValue } from '../../../model/valueSpecification/raw/V1_EnumValue'; -import { V1_PropertyGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree'; -import { V1_RootGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree'; -import type { V1_GraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_GraphFetchTree'; -import { V1_Collection } from '../../../model/valueSpecification/raw/V1_Collection'; -import { V1_PackageableElementPtr } from '../../../model/valueSpecification/raw/V1_PackageableElementPtr'; -import { PackageableElementReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { Unit } from '../../../../../../metamodels/pure/packageableElements/domain/Measure'; -import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class'; -import { V1_HackedUnit } from '../../../model/valueSpecification/raw/V1_HackedUnit'; -import { V1_HackedClass } from '../../../model/valueSpecification/raw/V1_HackedClass'; -import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement'; -import type { INTERNAL__UnknownValueSpecification } from '../../../../../../metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification'; -import { V1_INTERNAL__UnknownValueSpecification } from '../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication'; -import type { INTERNAL__PropagatedValue } from '../../../../../../metamodels/pure/valueSpecification/INTERNAL__PropagatedValue'; +} from '../../../../../../metamodels/pure/valueSpecification/ValueSpecification.js'; +import type { VariableExpression } from '../../../../../../metamodels/pure/valueSpecification/VariableExpression.js'; +import { V1_Lambda } from '../../../model/valueSpecification/raw/V1_Lambda.js'; +import type { V1_ValueSpecification } from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_Variable } from '../../../model/valueSpecification/V1_Variable.js'; +import { V1_AppliedFunction } from '../../../model/valueSpecification/application/V1_AppliedFunction.js'; +import { V1_AppliedProperty } from '../../../model/valueSpecification/application/V1_AppliedProperty.js'; +import { V1_CString } from '../../../model/valueSpecification/raw/V1_CString.js'; +import { V1_CInteger } from '../../../model/valueSpecification/raw/V1_CInteger.js'; +import { V1_CDecimal } from '../../../model/valueSpecification/raw/V1_CDecimal.js'; +import { V1_CBoolean } from '../../../model/valueSpecification/raw/V1_CBoolean.js'; +import { V1_CFloat } from '../../../model/valueSpecification/raw/V1_CFloat.js'; +import { V1_CDateTime } from '../../../model/valueSpecification/raw/V1_CDateTime.js'; +import { V1_CStrictDate } from '../../../model/valueSpecification/raw/V1_CStrictDate.js'; +import { V1_CStrictTime } from '../../../model/valueSpecification/raw/V1_CStrictTime.js'; +import { V1_CLatestDate } from '../../../model/valueSpecification/raw/V1_CLatestDate.js'; +import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; +import { V1_EnumValue } from '../../../model/valueSpecification/raw/V1_EnumValue.js'; +import { V1_PropertyGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.js'; +import { V1_RootGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree.js'; +import type { V1_GraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_GraphFetchTree.js'; +import { V1_Collection } from '../../../model/valueSpecification/raw/V1_Collection.js'; +import { V1_PackageableElementPtr } from '../../../model/valueSpecification/raw/V1_PackageableElementPtr.js'; +import { PackageableElementReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { Unit } from '../../../../../../metamodels/pure/packageableElements/domain/Measure.js'; +import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import { V1_HackedUnit } from '../../../model/valueSpecification/raw/V1_HackedUnit.js'; +import { V1_HackedClass } from '../../../model/valueSpecification/raw/V1_HackedClass.js'; +import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; +import type { INTERNAL__UnknownValueSpecification } from '../../../../../../metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.js'; +import { V1_INTERNAL__UnknownValueSpecification } from '../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.js'; +import type { INTERNAL__PropagatedValue } from '../../../../../../metamodels/pure/valueSpecification/INTERNAL__PropagatedValue.js'; class V1_ValueSpecificationTransformer implements ValueSpecificationVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/executionPlan/V1_ExecutionPlanTransformer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/executionPlan/V1_ExecutionPlanTransformer.ts index d741a835f74..d6fe1333d34 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/executionPlan/V1_ExecutionPlanTransformer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/from/executionPlan/V1_ExecutionPlanTransformer.ts @@ -15,11 +15,11 @@ */ import { guaranteeType, UnsupportedOperationError } from '@finos/legend-shared'; -import type { ExecutionPlan } from '../../../../../../../metamodels/pure/executionPlan/ExecutionPlan'; -import type { ExecutionNode } from '../../../../../../../metamodels/pure/executionPlan/nodes/ExecutionNode'; -import { RelationalTDSInstantiationExecutionNode } from '../../../../../../../metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode'; -import { SQLExecutionNode } from '../../../../../../../metamodels/pure/executionPlan/nodes/SQLExecutionNode'; -import type { SQLResultColumn } from '../../../../../../../metamodels/pure/executionPlan/nodes/SQLResultColumn'; +import type { ExecutionPlan } from '../../../../../../../metamodels/pure/executionPlan/ExecutionPlan.js'; +import type { ExecutionNode } from '../../../../../../../metamodels/pure/executionPlan/nodes/ExecutionNode.js'; +import { RelationalTDSInstantiationExecutionNode } from '../../../../../../../metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode.js'; +import { SQLExecutionNode } from '../../../../../../../metamodels/pure/executionPlan/nodes/SQLExecutionNode.js'; +import type { SQLResultColumn } from '../../../../../../../metamodels/pure/executionPlan/nodes/SQLResultColumn.js'; import { Real, Binary, @@ -39,27 +39,27 @@ import { SmallInt, BigInt, RelationalDataType, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType'; -import type { V1_ExecutionNode } from '../../../../model/executionPlan/nodes/V1_ExecutionNode'; -import { V1_RelationalTDSInstantiationExecutionNode } from '../../../../model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode'; -import { V1_SQLExecutionNode } from '../../../../model/executionPlan/nodes/V1_SQLExecutionNode'; -import { V1_SQLResultColumn } from '../../../../model/executionPlan/nodes/V1_SQLResultColumn'; -import type { V1_ExecutionPlan } from '../../../../model/executionPlan/V1_ExecutionPlan'; -import type { V1_GraphTransformerContext } from '../V1_GraphTransformerContext'; -import type { V1_ResultType } from '../../../../model/executionPlan/results/V1_ResultType'; -import type { ResultType } from '../../../../../../../metamodels/pure/executionPlan/result/ResultType'; -import { V1_DataTypeResultType } from '../../../../model/executionPlan/results/V1_DataTypeResultType'; -import { V1_TDSResultType } from '../../../../model/executionPlan/results/V1_TDSResultType'; -import { DataTypeResultType } from '../../../../../../../metamodels/pure/executionPlan/result/DataTypeResultType'; -import { TDSResultType } from '../../../../../../../metamodels/pure/executionPlan/result/TDSResultType'; -import type { TDSColumn } from '../../../../../../../metamodels/pure/executionPlan/result/TDSColumn'; -import { V1_TDSColumn } from '../../../../model/executionPlan/results/V1_TDSColumn'; -import { V1_SimpleExecutionPlan } from '../../../../model/executionPlan/V1_SimpleExecutionPlan'; -import { V1_Protocol } from '../../../../model/V1_Protocol'; -import { V1_transformMultiplicity } from '../V1_CoreTransformerHelper'; -import { V1_transformConnection } from '../V1_ConnectionTransformer'; -import { V1_DatabaseConnection } from '../../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; -import { PureClientVersion } from '../../../../../../../../graphManager/GraphManagerUtils'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType.js'; +import type { V1_ExecutionNode } from '../../../../model/executionPlan/nodes/V1_ExecutionNode.js'; +import { V1_RelationalTDSInstantiationExecutionNode } from '../../../../model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode.js'; +import { V1_SQLExecutionNode } from '../../../../model/executionPlan/nodes/V1_SQLExecutionNode.js'; +import { V1_SQLResultColumn } from '../../../../model/executionPlan/nodes/V1_SQLResultColumn.js'; +import type { V1_ExecutionPlan } from '../../../../model/executionPlan/V1_ExecutionPlan.js'; +import type { V1_GraphTransformerContext } from '../V1_GraphTransformerContext.js'; +import type { V1_ResultType } from '../../../../model/executionPlan/results/V1_ResultType.js'; +import type { ResultType } from '../../../../../../../metamodels/pure/executionPlan/result/ResultType.js'; +import { V1_DataTypeResultType } from '../../../../model/executionPlan/results/V1_DataTypeResultType.js'; +import { V1_TDSResultType } from '../../../../model/executionPlan/results/V1_TDSResultType.js'; +import { DataTypeResultType } from '../../../../../../../metamodels/pure/executionPlan/result/DataTypeResultType.js'; +import { TDSResultType } from '../../../../../../../metamodels/pure/executionPlan/result/TDSResultType.js'; +import type { TDSColumn } from '../../../../../../../metamodels/pure/executionPlan/result/TDSColumn.js'; +import { V1_TDSColumn } from '../../../../model/executionPlan/results/V1_TDSColumn.js'; +import { V1_SimpleExecutionPlan } from '../../../../model/executionPlan/V1_SimpleExecutionPlan.js'; +import { V1_Protocol } from '../../../../model/V1_Protocol.js'; +import { V1_transformMultiplicity } from '../V1_CoreTransformerHelper.js'; +import { V1_transformConnection } from '../V1_ConnectionTransformer.js'; +import { V1_DatabaseConnection } from '../../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; +import { PureClientVersion } from '../../../../../../../../graphManager/GraphManagerUtils.js'; const stringifyDataType = (dataType: RelationalDataType): string => { if (dataType instanceof Integer) { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper.ts index a5321df012f..1229d7f7758 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_DSLExternalFormat_GraphBuilderHelper.ts @@ -17,11 +17,11 @@ import { getSchemaSet, getBinding, -} from '../../../../../../../graphManager/DSLExternalFormat_GraphManagerHelper'; -import type { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import type { SchemaSet } from '../../../../../../metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet'; -import type { Binding } from '../../../../../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding'; -import type { V1_GraphBuilderContext } from './V1_GraphBuilderContext'; +} from '../../../../../../../graphManager/DSLExternalFormat_GraphManagerHelper.js'; +import type { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { SchemaSet } from '../../../../../../metamodels/pure/packageableElements/externalFormat/schemaSet/DSLExternalFormat_SchemaSet.js'; +import type { Binding } from '../../../../../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js'; +import type { V1_GraphBuilderContext } from './V1_GraphBuilderContext.js'; export const V1_resolveSchemaSet = ( path: string, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementBuilder.ts index 25ed41c1e12..7263673baa7 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementBuilder.ts @@ -23,14 +23,14 @@ import { import { addElementToPackage, getOrCreateGraphPackage, -} from '../../../../../../../helpers/DomainHelper'; -import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package'; -import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement'; -import type { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement'; +} from '../../../../../../../helpers/DomainHelper.js'; +import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package.js'; +import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; +import type { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement.js'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from './V1_GraphBuilderContext'; +} from './V1_GraphBuilderContext.js'; export type V1_ElementBuilderPass = ( elementProtocol: V1_PackageableElement, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.ts index 945ff8f27a4..d03fcc627d7 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.ts @@ -19,12 +19,12 @@ import { guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { ExecutionPlan } from '../../../../../../metamodels/pure/executionPlan/ExecutionPlan'; -import type { ExecutionNode } from '../../../../../../metamodels/pure/executionPlan/nodes/ExecutionNode'; -import { RelationalTDSInstantiationExecutionNode } from '../../../../../../metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode'; -import { SQLExecutionNode } from '../../../../../../metamodels/pure/executionPlan/nodes/SQLExecutionNode'; -import { SQLResultColumn } from '../../../../../../metamodels/pure/executionPlan/nodes/SQLResultColumn'; -import { DatabaseConnection } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection'; +import { ExecutionPlan } from '../../../../../../metamodels/pure/executionPlan/ExecutionPlan.js'; +import type { ExecutionNode } from '../../../../../../metamodels/pure/executionPlan/nodes/ExecutionNode.js'; +import { RelationalTDSInstantiationExecutionNode } from '../../../../../../metamodels/pure/executionPlan/nodes/RelationalInstantiationExecutionNode.js'; +import { SQLExecutionNode } from '../../../../../../metamodels/pure/executionPlan/nodes/SQLExecutionNode.js'; +import { SQLResultColumn } from '../../../../../../metamodels/pure/executionPlan/nodes/SQLResultColumn.js'; +import { DatabaseConnection } from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; import { type RelationalDataType, Real, @@ -44,24 +44,24 @@ import { TinyInt, SmallInt, BigInt, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType'; -import type { V1_ExecutionNode } from '../../../model/executionPlan/nodes/V1_ExecutionNode'; -import { V1_RelationalTDSInstantiationExecutionNode } from '../../../model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode'; -import { V1_SQLExecutionNode } from '../../../model/executionPlan/nodes/V1_SQLExecutionNode'; -import type { V1_SQLResultColumn } from '../../../model/executionPlan/nodes/V1_SQLResultColumn'; -import type { V1_ExecutionPlan } from '../../../model/executionPlan/V1_ExecutionPlan'; -import { V1_SimpleExecutionPlan } from '../../../model/executionPlan/V1_SimpleExecutionPlan'; -import type { V1_GraphBuilderContext } from './V1_GraphBuilderContext'; -import { V1_ProtocolToMetaModelConnectionBuilder } from './V1_ProtocolToMetaModelConnectionBuilder'; -import type { V1_ResultType } from '../../../model/executionPlan/results/V1_ResultType'; -import type { ResultType } from '../../../../../../metamodels/pure/executionPlan/result/ResultType'; -import { V1_DataTypeResultType } from '../../../model/executionPlan/results/V1_DataTypeResultType'; -import { V1_TDSResultType } from '../../../model/executionPlan/results/V1_TDSResultType'; -import { DataTypeResultType } from '../../../../../../metamodels/pure/executionPlan/result/DataTypeResultType'; -import { TDSResultType } from '../../../../../../metamodels/pure/executionPlan/result/TDSResultType'; -import { TDSColumn } from '../../../../../../metamodels/pure/executionPlan/result/TDSColumn'; -import type { V1_TDSColumn } from '../../../model/executionPlan/results/V1_TDSColumn'; -import { CORE_PURE_PATH } from '../../../../../../../MetaModelConst'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType.js'; +import type { V1_ExecutionNode } from '../../../model/executionPlan/nodes/V1_ExecutionNode.js'; +import { V1_RelationalTDSInstantiationExecutionNode } from '../../../model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode.js'; +import { V1_SQLExecutionNode } from '../../../model/executionPlan/nodes/V1_SQLExecutionNode.js'; +import type { V1_SQLResultColumn } from '../../../model/executionPlan/nodes/V1_SQLResultColumn.js'; +import type { V1_ExecutionPlan } from '../../../model/executionPlan/V1_ExecutionPlan.js'; +import { V1_SimpleExecutionPlan } from '../../../model/executionPlan/V1_SimpleExecutionPlan.js'; +import type { V1_GraphBuilderContext } from './V1_GraphBuilderContext.js'; +import { V1_ProtocolToMetaModelConnectionBuilder } from './V1_ProtocolToMetaModelConnectionBuilder.js'; +import type { V1_ResultType } from '../../../model/executionPlan/results/V1_ResultType.js'; +import type { ResultType } from '../../../../../../metamodels/pure/executionPlan/result/ResultType.js'; +import { V1_DataTypeResultType } from '../../../model/executionPlan/results/V1_DataTypeResultType.js'; +import { V1_TDSResultType } from '../../../model/executionPlan/results/V1_TDSResultType.js'; +import { DataTypeResultType } from '../../../../../../metamodels/pure/executionPlan/result/DataTypeResultType.js'; +import { TDSResultType } from '../../../../../../metamodels/pure/executionPlan/result/TDSResultType.js'; +import { TDSColumn } from '../../../../../../metamodels/pure/executionPlan/result/TDSColumn.js'; +import type { V1_TDSColumn } from '../../../model/executionPlan/results/V1_TDSColumn.js'; +import { CORE_PURE_PATH } from '../../../../../../../MetaModelConst.js'; const parseDataType = (val: string): RelationalDataType => { const getTypeParams = (typeVal: string): number[] => diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.ts index b7d5d7959c7..75c82907670 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.ts @@ -18,7 +18,7 @@ import { PRIMITIVE_TYPE, ELEMENT_PATH_DELIMITER, ROOT_PACKAGE_NAME, -} from '../../../../../../../MetaModelConst'; +} from '../../../../../../../MetaModelConst.js'; import { type Log, uniq, @@ -26,75 +26,75 @@ import { assertNonEmptyString, guaranteeType, } from '@finos/legend-shared'; -import { GenericType } from '../../../../../../metamodels/pure/packageableElements/domain/GenericType'; -import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement'; -import type { PureModel } from '../../../../../../../graph/PureModel'; -import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package'; +import { GenericType } from '../../../../../../metamodels/pure/packageableElements/domain/GenericType.js'; +import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; +import type { PureModel } from '../../../../../../../graph/PureModel.js'; +import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package.js'; import { type Section, ImportAwareCodeSection, -} from '../../../../../../metamodels/pure/packageableElements/section/Section'; -import { StereotypeImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/StereotypeReference'; -import { GenericTypeImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/GenericTypeReference'; -import type { Type } from '../../../../../../metamodels/pure/packageableElements/domain/Type'; -import type { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration'; -import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association'; -import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile'; -import type { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import type { Store } from '../../../../../../metamodels/pure/packageableElements/store/Store'; -import type { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service'; -import type { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import type { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database'; -import type { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection'; -import type { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime'; -import type { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import type { GenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; +} from '../../../../../../metamodels/pure/packageableElements/section/Section.js'; +import { StereotypeImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/StereotypeReference.js'; +import { GenericTypeImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/GenericTypeReference.js'; +import type { Type } from '../../../../../../metamodels/pure/packageableElements/domain/Type.js'; +import type { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration.js'; +import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association.js'; +import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile.js'; +import type { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import type { Store } from '../../../../../../metamodels/pure/packageableElements/store/Store.js'; +import type { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service.js'; +import type { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import type { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database.js'; +import type { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import type { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +import type { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import type { GenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; import type { Measure, Unit, -} from '../../../../../../metamodels/pure/packageableElements/domain/Measure'; -import { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { TagImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/TagReference'; -import { PropertyImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/PropertyReference'; -import { JoinImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/JoinReference'; -import { FilterImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/FilterReference'; -import { RootFlatDataRecordTypeImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference'; -import type { ViewImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/ViewReference'; -import type { TableImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/TableReference'; -import { createImplicitRelationReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationReference'; -import { EnumValueImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/EnumValueReference'; -import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import type { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr'; -import type { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer'; -import type { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer'; -import type { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer'; -import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping'; -import type { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr'; -import { V1_getRelation } from './helpers/V1_DatabaseBuilderHelper'; -import type { BasicModel } from '../../../../../../../graph/BasicModel'; -import type { V1_GraphBuilderExtensions } from './V1_GraphBuilderExtensions'; -import type { GraphBuilderOptions } from '../../../../../../../graphManager/AbstractPureGraphManager'; -import { DataType } from '../../../../../../metamodels/pure/packageableElements/domain/DataType'; -import { GraphBuilderError } from '../../../../../../../graphManager/GraphManagerUtils'; -import type { DataElement } from '../../../../../../../DSLData_Exports'; +} from '../../../../../../metamodels/pure/packageableElements/domain/Measure.js'; +import { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { TagImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/TagReference.js'; +import { PropertyImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/PropertyReference.js'; +import { JoinImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/JoinReference.js'; +import { FilterImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/FilterReference.js'; +import { RootFlatDataRecordTypeImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/RootFlatDataRecordTypeReference.js'; +import type { ViewImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/ViewReference.js'; +import type { TableImplicitReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/TableReference.js'; +import { createImplicitRelationReference } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationReference.js'; +import { EnumValueImplicitReference } from '../../../../../../metamodels/pure/packageableElements/domain/EnumValueReference.js'; +import type { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import type { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr.js'; +import type { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer.js'; +import type { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer.js'; +import type { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer.js'; +import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.js'; +import type { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr.js'; +import { V1_getRelation } from './helpers/V1_DatabaseBuilderHelper.js'; +import type { BasicModel } from '../../../../../../../graph/BasicModel.js'; +import type { V1_GraphBuilderExtensions } from './V1_GraphBuilderExtensions.js'; +import type { GraphBuilderOptions } from '../../../../../../../graphManager/AbstractPureGraphManager.js'; +import { DataType } from '../../../../../../metamodels/pure/packageableElements/domain/DataType.js'; +import { GraphBuilderError } from '../../../../../../../graphManager/GraphManagerUtils.js'; +import type { DataElement } from '../../../../../../../DSLData_Exports.js'; import { getClassProperty, getEnumValue, getOwnClassProperty, getStereotype, getTag, -} from '../../../../../../../helpers/DomainHelper'; +} from '../../../../../../../helpers/DomainHelper.js'; import { getFilter, getJoin, -} from '../../../../../../../helpers/StoreRelational_Helper'; +} from '../../../../../../../helpers/StoreRelational_Helper.js'; import { getRootRecordType, getSection, -} from '../../../../../../../helpers/StoreFlatData_Helper'; +} from '../../../../../../../helpers/StoreFlatData_Helper.js'; export const V1_buildFullPath = ( packagePath: string | undefined, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.ts index a93d53d9401..b153fa7271c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_GraphBuilderExtensions.ts @@ -23,26 +23,26 @@ import { UnsupportedOperationError, IllegalStateError, } from '@finos/legend-shared'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; -import { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; +import { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; import { V1_Measure, V1_Unit, -} from '../../../model/packageableElements/domain/V1_Measure'; -import { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; -import { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; -import { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; -import { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; -import { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; -import { V1_Service } from '../../../model/packageableElements/service/V1_Service'; -import { V1_Store } from '../../../model/packageableElements/store/V1_Store'; -import { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_ElementBuilder } from './V1_ElementBuilder'; +} from '../../../model/packageableElements/domain/V1_Measure.js'; +import { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; +import { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; +import { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; +import { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; +import { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; +import { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; +import { V1_Store } from '../../../model/packageableElements/store/V1_Store.js'; +import { V1_PackageableElement } from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_ElementBuilder } from './V1_ElementBuilder.js'; const FORBIDDEN_BUILDER_PROTOCOL_CLASSES = new Set< GenericClazz diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingFirstPassBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingFirstPassBuilder.ts index d0fab8ac0ea..8d13d9dca8d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingFirstPassBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingFirstPassBuilder.ts @@ -20,37 +20,37 @@ import { assertNonNullable, guaranteeNonNullable, } from '@finos/legend-shared'; -import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { SetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation'; +import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { SetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation.js'; import { OperationSetImplementation, OperationType, -} from '../../../../../../metamodels/pure/packageableElements/mapping/OperationSetImplementation'; -import { PureInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation'; -import { FlatDataInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation'; -import { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { InferableMappingElementRootExplicitValue } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementRoot'; -import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext'; +} from '../../../../../../metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; +import { PureInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js'; +import { FlatDataInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.js'; +import { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { InferableMappingElementRootExplicitValue } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.js'; +import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; import type { V1_ClassMappingVisitor, V1_ClassMapping, -} from '../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_OperationClassMapping } from '../../../model/packageableElements/mapping/V1_OperationClassMapping'; -import type { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping'; -import type { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping'; -import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping'; -import type { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping'; -import type { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping'; -import { V1_getInferredClassMappingId } from '../../../transformation/pureGraph/to/helpers/V1_MappingBuilderHelper'; -import { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation'; -import type { InstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import { V1_buildAggregateContainer } from './helpers/V1_AggregationAwareClassMappingBuilderHelper'; -import { V1_buildRawLambdaWithResolvedPaths } from './helpers/V1_ValueSpecificationPathResolver'; -import { V1_buildRelationalMappingFilter } from './helpers/V1_RelationalClassMappingBuilderHelper'; -import { toOptionalPackageableElementReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension'; -import type { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping'; -import { MergeOperationSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation'; +} from '../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_OperationClassMapping } from '../../../model/packageableElements/mapping/V1_OperationClassMapping.js'; +import type { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.js'; +import type { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.js'; +import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.js'; +import type { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.js'; +import type { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.js'; +import { V1_getInferredClassMappingId } from '../../../transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.js'; +import { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.js'; +import type { InstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import { V1_buildAggregateContainer } from './helpers/V1_AggregationAwareClassMappingBuilderHelper.js'; +import { V1_buildRawLambdaWithResolvedPaths } from './helpers/V1_ValueSpecificationPathResolver.js'; +import { V1_buildRelationalMappingFilter } from './helpers/V1_RelationalClassMappingBuilderHelper.js'; +import { toOptionalPackageableElementReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension.js'; +import type { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping.js'; +import { MergeOperationSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/MergeOperationSetImplementation.js'; const getClassMappingOperationType = (value: string): OperationType => guaranteeNonNullable( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingSecondPassBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingSecondPassBuilder.ts index 68b8221b518..eb5fae8d2aa 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingSecondPassBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingSecondPassBuilder.ts @@ -24,49 +24,49 @@ import { assertTrue, guaranteeNonNullable, } from '@finos/legend-shared'; -import { GRAPH_MANAGER_EVENT } from '../../../../../../../graphManager/GraphManagerEvent'; -import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { SetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation'; -import type { PurePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping'; -import { OperationSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/OperationSetImplementation'; -import { SetImplementationContainer } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementationContainer'; -import { PureInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation'; -import { TableAlias } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -import { GroupByMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping'; -import { FlatDataInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation'; -import { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import type { AbstractFlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping'; -import { SetImplementationImplicitReference } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementationReference'; -import type { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import type { V1_GraphBuilderContext } from './V1_GraphBuilderContext'; -import { V1_buildRelationalOperationElement } from './helpers/V1_DatabaseBuilderHelper'; +import { GRAPH_MANAGER_EVENT } from '../../../../../../../graphManager/GraphManagerEvent.js'; +import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { SetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import type { PurePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.js'; +import { OperationSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/OperationSetImplementation.js'; +import { SetImplementationContainer } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementationContainer.js'; +import { PureInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js'; +import { TableAlias } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +import { GroupByMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.js'; +import { FlatDataInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInstanceSetImplementation.js'; +import { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import type { AbstractFlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/AbstractFlatDataPropertyMapping.js'; +import { SetImplementationImplicitReference } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementationReference.js'; +import type { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import type { V1_GraphBuilderContext } from './V1_GraphBuilderContext.js'; +import { V1_buildRelationalOperationElement } from './helpers/V1_DatabaseBuilderHelper.js'; import { V1_buildRelationalClassMapping, V1_buildRelationalPrimaryKey, -} from './helpers/V1_RelationalClassMappingBuilderHelper'; +} from './helpers/V1_RelationalClassMappingBuilderHelper.js'; import type { V1_ClassMappingVisitor, V1_ClassMapping, -} from '../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_OperationClassMapping } from '../../../model/packageableElements/mapping/V1_OperationClassMapping'; -import type { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping'; -import type { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping'; -import { V1_ProtocolToMetaModelPropertyMappingBuilder } from './V1_ProtocolToMetaModelPropertyMappingBuilder'; -import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping'; -import type { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping'; -import type { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping'; -import { V1_getInferredClassMappingId } from './helpers/V1_MappingBuilderHelper'; -import { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation'; -import type { V1_AggregateSetImplementationContainer } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer'; -import { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; +} from '../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_OperationClassMapping } from '../../../model/packageableElements/mapping/V1_OperationClassMapping.js'; +import type { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.js'; +import type { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.js'; +import { V1_ProtocolToMetaModelPropertyMappingBuilder } from './V1_ProtocolToMetaModelPropertyMappingBuilder.js'; +import type { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.js'; +import type { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.js'; +import type { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.js'; +import { V1_getInferredClassMappingId } from './helpers/V1_MappingBuilderHelper.js'; +import { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.js'; +import type { V1_AggregateSetImplementationContainer } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.js'; +import { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; import { extractClassMappingsFromAggregationAwareClassMappings, getAllClassMappings, getAllEnumerationMappings, getOwnClassMappingById, -} from '../../../../../../../helpers/DSLMapping_Helper'; -import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension'; -import type { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping'; +} from '../../../../../../../helpers/DSLMapping_Helper.js'; +import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension.js'; +import type { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping.js'; export class V1_ProtocolToMetaModelClassMappingSecondPassBuilder implements V1_ClassMappingVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.ts index 6b2f7003159..e1ae88dcb72 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.ts @@ -21,44 +21,44 @@ import { assertType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { MODEL_STORE_NAME } from '../../../../../../../MetaModelConst'; +import { MODEL_STORE_NAME } from '../../../../../../../MetaModelConst.js'; import { type DatabaseType, RelationalDatabaseConnection, -} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection'; +} from '../../../../../../metamodels/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js'; import { type Connection, ConnectionPointer, -} from '../../../../../../metamodels/pure/packageableElements/connection/Connection'; -import { JsonModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection'; -import { XmlModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection'; -import { FlatDataConnection } from '../../../../../../metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection'; -import type { Store } from '../../../../../../metamodels/pure/packageableElements/store/Store'; -import { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database'; -import { ModelStore } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/model/ModelStore'; +} from '../../../../../../metamodels/pure/packageableElements/connection/Connection.js'; +import { JsonModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/JsonModelConnection.js'; +import { XmlModelConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/XmlModelConnection.js'; +import { FlatDataConnection } from '../../../../../../metamodels/pure/packageableElements/store/flatData/connection/FlatDataConnection.js'; +import type { Store } from '../../../../../../metamodels/pure/packageableElements/store/Store.js'; +import { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database.js'; +import { ModelStore } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/model/ModelStore.js'; import { type PackageableElementReference, PackageableElementImplicitReference, -} from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { ModelChainConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection'; -import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext'; +} from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { ModelChainConnection } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/connection/ModelChainConnection.js'; +import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; import type { V1_Connection, V1_ConnectionVisitor, -} from '../../../model/packageableElements/connection/V1_Connection'; -import type { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection'; -import type { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection'; -import type { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection'; -import type { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer'; -import type { V1_RelationalDatabaseConnection } from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; +} from '../../../model/packageableElements/connection/V1_Connection.js'; +import type { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.js'; +import type { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.js'; +import type { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection.js'; +import type { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer.js'; +import type { V1_RelationalDatabaseConnection } from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; import { V1_buildDatasourceSpecification, V1_buildAuthenticationStrategy, -} from '../../../transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper'; -import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension'; -import type { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection'; -import { V1_buildPostProcessor } from './helpers/V1_PostProcessorBuilderHelper'; +} from '../../../transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.js'; +import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension.js'; +import type { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.js'; +import { V1_buildPostProcessor } from './helpers/V1_PostProcessorBuilderHelper.js'; export class V1_ProtocolToMetaModelConnectionBuilder implements V1_ConnectionVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder.ts index e5e8c655bb4..18b2eec6c68 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder.ts @@ -18,32 +18,32 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from './V1_GraphBuilderContext'; +} from './V1_GraphBuilderContext.js'; import type { V1_PackageableElement, V1_PackageableElementVisitor, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; -import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; -import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData'; -import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database'; -import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; -import type { V1_Service } from '../../../model/packageableElements/service/V1_Service'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; +import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; +import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData.js'; +import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database.js'; +import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; +import type { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; import { V1_buildConstraint, V1_buildDerivedProperty, -} from './helpers/V1_DomainBuilderHelper'; -import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; -import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; -import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; -import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure'; -import { V1_buildDatabaseSchemaViewsSecondPass } from './helpers/V1_DatabaseBuilderHelper'; -import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; -import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement'; +} from './helpers/V1_DomainBuilderHelper.js'; +import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; +import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; +import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; +import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure.js'; +import { V1_buildDatabaseSchemaViewsSecondPass } from './helpers/V1_DatabaseBuilderHelper.js'; +import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; +import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; export class V1_ProtocolToMetaModelGraphFifthPassBuilder implements V1_PackageableElementVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder.ts index f8a7a271e1a..38afdb8396a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder.ts @@ -18,55 +18,55 @@ import { assertNonEmptyString } from '@finos/legend-shared'; import { PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, -} from '../../../../../../../MetaModelConst'; -import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement'; -import { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile'; -import { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration'; -import { Measure } from '../../../../../../metamodels/pure/packageableElements/domain/Measure'; -import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class'; -import { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association'; -import { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition'; -import { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database'; -import { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service'; -import { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime'; -import { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection'; -import { GenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; -import { SectionIndex } from '../../../../../../metamodels/pure/packageableElements/section/SectionIndex'; -import { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; +} from '../../../../../../../MetaModelConst.js'; +import type { PackageableElement } from '../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; +import { Profile } from '../../../../../../metamodels/pure/packageableElements/domain/Profile.js'; +import { Enumeration } from '../../../../../../metamodels/pure/packageableElements/domain/Enumeration.js'; +import { Measure } from '../../../../../../metamodels/pure/packageableElements/domain/Measure.js'; +import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association.js'; +import { ConcreteFunctionDefinition } from '../../../../../../metamodels/pure/packageableElements/domain/ConcreteFunctionDefinition.js'; +import { FlatData } from '../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import { Database } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/Database.js'; +import { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import { Service } from '../../../../../../metamodels/pure/packageableElements/service/Service.js'; +import { FileGenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import { PackageableRuntime } from '../../../../../../metamodels/pure/packageableElements/runtime/PackageableRuntime.js'; +import { PackageableConnection } from '../../../../../../metamodels/pure/packageableElements/connection/PackageableConnection.js'; +import { GenerationSpecification } from '../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; +import { SectionIndex } from '../../../../../../metamodels/pure/packageableElements/section/SectionIndex.js'; +import { PackageableElementImplicitReference } from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from './V1_GraphBuilderContext'; +} from './V1_GraphBuilderContext.js'; import type { V1_PackageableElement, V1_PackageableElementVisitor, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; -import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; -import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData'; -import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database'; -import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; -import type { V1_Service } from '../../../model/packageableElements/service/V1_Service'; -import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; -import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; -import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; -import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure'; -import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; +import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; +import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData.js'; +import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database.js'; +import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; +import type { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; +import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; +import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; +import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; +import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure.js'; +import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; import { addElementToPackage, getOrCreateGraphPackage, -} from '../../../../../../../helpers/DomainHelper'; -import { V1_checkDuplicatedElement } from './V1_ElementBuilder'; -import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package'; -import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement'; -import { DataElement } from '../../../../../../metamodels/pure/packageableElements/data/DataElement'; +} from '../../../../../../../helpers/DomainHelper.js'; +import { V1_checkDuplicatedElement } from './V1_ElementBuilder.js'; +import type { Package } from '../../../../../../metamodels/pure/packageableElements/domain/Package.js'; +import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; +import { DataElement } from '../../../../../../metamodels/pure/packageableElements/data/DataElement.js'; export class V1_ProtocolToMetaModelGraphFirstPassBuilder implements V1_PackageableElementVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder.ts index 898349bc3a3..282131524be 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder.ts @@ -18,38 +18,38 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from './V1_GraphBuilderContext'; +} from './V1_GraphBuilderContext.js'; import type { V1_PackageableElement, V1_PackageableElementVisitor, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; -import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; -import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData'; -import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database'; -import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; -import type { V1_Service } from '../../../model/packageableElements/service/V1_Service'; -import { V1_ProtocolToMetaModelClassMappingSecondPassBuilder } from './V1_ProtocolToMetaModelClassMappingSecondPassBuilder'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; +import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; +import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData.js'; +import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database.js'; +import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; +import type { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; +import { V1_ProtocolToMetaModelClassMappingSecondPassBuilder } from './V1_ProtocolToMetaModelClassMappingSecondPassBuilder.js'; import { V1_buildMappingTest, V1_resolveClassMappingRoot, -} from './helpers/V1_MappingBuilderHelper'; -import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; -import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; -import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; -import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure'; +} from './helpers/V1_MappingBuilderHelper.js'; +import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; +import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; +import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; +import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure.js'; import { V1_buildDatabaseJoin, V1_buildDatabaseFilter, -} from './helpers/V1_DatabaseBuilderHelper'; -import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; -import { V1_buildAssociationMapping } from './helpers/V1_AssociationMappingHelper'; -import { V1_buildMilestoningProperties } from './helpers/V1_MilestoneBuilderHelper'; -import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement'; +} from './helpers/V1_DatabaseBuilderHelper.js'; +import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; +import { V1_buildAssociationMapping } from './helpers/V1_AssociationMappingHelper.js'; +import { V1_buildMilestoningProperties } from './helpers/V1_MilestoneBuilderHelper.js'; +import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; export class V1_ProtocolToMetaModelGraphFourthPassBuilder implements V1_PackageableElementVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.ts index ec9036b96dc..7fd37398505 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.ts @@ -24,64 +24,64 @@ import { LogEvent, guaranteeType, } from '@finos/legend-shared'; -import { Stereotype } from '../../../../../../metamodels/pure/packageableElements/domain/Stereotype'; -import { Tag } from '../../../../../../metamodels/pure/packageableElements/domain/Tag'; -import { Enum } from '../../../../../../metamodels/pure/packageableElements/domain/Enum'; +import { Stereotype } from '../../../../../../metamodels/pure/packageableElements/domain/Stereotype.js'; +import { Tag } from '../../../../../../metamodels/pure/packageableElements/domain/Tag.js'; +import { Enum } from '../../../../../../metamodels/pure/packageableElements/domain/Enum.js'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from '../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; +} from '../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; import type { V1_PackageableElement, V1_PackageableElementVisitor, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; -import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; -import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData'; -import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database'; -import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; -import type { V1_Service } from '../../../model/packageableElements/service/V1_Service'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; +import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; +import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData.js'; +import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database.js'; +import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; +import type { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; import { V1_buildVariable, V1_buildUnit, V1_buildTaggedValue, -} from '../../../transformation/pureGraph/to/helpers/V1_DomainBuilderHelper'; +} from '../../../transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js'; import { V1_buildServiceExecution, V1_buildLegacyServiceTest, -} from '../../../transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper'; +} from '../../../transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js'; import { V1_buildEnumerationMapping, V1_buildMappingInclude, -} from '../../../transformation/pureGraph/to/helpers/V1_MappingBuilderHelper'; -import { V1_buildFlatDataSection } from '../../../transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper'; -import { V1_buildSchema } from '../../../transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper'; +} from '../../../transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.js'; +import { V1_buildFlatDataSection } from '../../../transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.js'; +import { V1_buildSchema } from '../../../transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js'; import { V1_buildConfigurationProperty, V1_buildScopeElement, -} from '../../../transformation/pureGraph/to/helpers/V1_FileGenerationBuilderHelper'; -import { V1_buildEngineRuntime } from '../../../transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper'; -import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; -import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; -import { V1_ProtocolToMetaModelConnectionBuilder } from './V1_ProtocolToMetaModelConnectionBuilder'; -import { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer'; -import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; +} from '../../../transformation/pureGraph/to/helpers/V1_FileGenerationBuilderHelper.js'; +import { V1_buildEngineRuntime } from '../../../transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js'; +import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; +import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; +import { V1_ProtocolToMetaModelConnectionBuilder } from './V1_ProtocolToMetaModelConnectionBuilder.js'; +import { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer.js'; +import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; import { V1_buildGenerationTreeNode, V1_buildFileGenerationPointer, -} from '../../../transformation/pureGraph/to/helpers/V1_GenerationSpecificationBuilderHelper'; -import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure'; -import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; -import { V1_buildSection } from '../../../transformation/pureGraph/to/helpers/V1_SectionBuilderHelper'; -import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement'; -import { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './helpers/V1_DataElementBuilderHelper'; -import { V1_buildTestSuite } from './helpers/V1_TestBuilderHelper'; -import { ServiceTestSuite } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite'; -import { V1_getIncludedMappingPath } from '../../../helper/V1_DSLMapping_Helper'; +} from '../../../transformation/pureGraph/to/helpers/V1_GenerationSpecificationBuilderHelper.js'; +import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure.js'; +import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; +import { V1_buildSection } from '../../../transformation/pureGraph/to/helpers/V1_SectionBuilderHelper.js'; +import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; +import { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './helpers/V1_DataElementBuilderHelper.js'; +import { V1_buildTestSuite } from './helpers/V1_TestBuilderHelper.js'; +import { ServiceTestSuite } from '../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite.js'; +import { V1_getIncludedMappingPath } from '../../../helper/V1_DSLMapping_Helper.js'; export class V1_ProtocolToMetaModelGraphSecondPassBuilder implements V1_PackageableElementVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder.ts index e9f04edfedf..bbb8ef2885e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder.ts @@ -23,41 +23,41 @@ import { LogEvent, addUniqueEntry, } from '@finos/legend-shared'; -import { CORE_PURE_PATH } from '../../../../../../../MetaModelConst'; -import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class'; +import { CORE_PURE_PATH } from '../../../../../../../MetaModelConst.js'; +import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class.js'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from '../../../transformation/pureGraph/to/V1_GraphBuilderContext'; +} from '../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; import type { V1_PackageableElement, V1_PackageableElementVisitor, -} from '../../../model/packageableElements/V1_PackageableElement'; -import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; -import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; -import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData'; -import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database'; -import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; -import type { V1_Service } from '../../../model/packageableElements/service/V1_Service'; -import { V1_ProtocolToMetaModelClassMappingFirstPassBuilder } from './V1_ProtocolToMetaModelClassMappingFirstPassBuilder'; +} from '../../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; +import type { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; +import type { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import type { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import type { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import type { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData.js'; +import type { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database.js'; +import type { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; +import type { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; +import { V1_ProtocolToMetaModelClassMappingFirstPassBuilder } from './V1_ProtocolToMetaModelClassMappingFirstPassBuilder.js'; import { V1_buildAssociationProperty, V1_buildDerivedProperty, V1_buildProperty, V1_buildTaggedValue, -} from '../../../transformation/pureGraph/to/helpers/V1_DomainBuilderHelper'; -import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; -import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; -import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; -import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure'; -import { V1_buildDatabaseSchemaViewsFirstPass } from '../../../transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper'; -import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; -import { GraphBuilderError } from '../../../../../../../graphManager/GraphManagerUtils'; -import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement'; +} from '../../../transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js'; +import type { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; +import type { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; +import type { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; +import type { V1_GenerationSpecification } from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import type { V1_Measure } from '../../../model/packageableElements/domain/V1_Measure.js'; +import { V1_buildDatabaseSchemaViewsFirstPass } from '../../../transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js'; +import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; +import { GraphBuilderError } from '../../../../../../../graphManager/GraphManagerUtils.js'; +import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; export class V1_ProtocolToMetaModelGraphThirdPassBuilder implements V1_PackageableElementVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.ts index dd009b4d77e..f88b0ad778a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.ts @@ -22,79 +22,79 @@ import { guaranteeNonNullable, returnUndefOnError, } from '@finos/legend-shared'; -import { GRAPH_MANAGER_EVENT } from '../../../../../../../graphManager/GraphManagerEvent'; -import type { PropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/PropertyMapping'; -import { PurePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping'; -import { RelationalPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -import type { InstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import type { PropertyMappingsImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation'; -import { EmbeddedFlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping'; -import { FlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping'; -import type { EnumerationMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping'; -import type { SetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation'; -import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association'; -import type { TableAlias } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -import { InferableMappingElementIdExplicitValue } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId'; +import { GRAPH_MANAGER_EVENT } from '../../../../../../../graphManager/GraphManagerEvent.js'; +import type { PropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/PropertyMapping.js'; +import { PurePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.js'; +import { RelationalPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +import type { InstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import type { PropertyMappingsImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation.js'; +import { EmbeddedFlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js'; +import { FlatDataPropertyMapping } from '../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.js'; +import type { EnumerationMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; +import type { SetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import { Class } from '../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { Association } from '../../../../../../metamodels/pure/packageableElements/domain/Association.js'; +import type { TableAlias } from '../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +import { InferableMappingElementIdExplicitValue } from '../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId.js'; import { type PackageableElementReference, PackageableElementImplicitReference, -} from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; +} from '../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; import { type PropertyReference, PropertyImplicitReference, -} from '../../../../../../metamodels/pure/packageableElements/domain/PropertyReference'; -import { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation'; -import { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation'; -import { AssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/AssociationImplementation'; -import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext'; +} from '../../../../../../metamodels/pure/packageableElements/domain/PropertyReference.js'; +import { RootRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { OtherwiseEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/OtherwiseEmbeddedRelationalInstanceSetImplementation.js'; +import { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import { InlineEmbeddedRelationalInstanceSetImplementation } from '../../../../../../metamodels/pure/packageableElements/store/relational/mapping/InlineEmbeddedRelationalInstanceSetImplementation.js'; +import { AssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/AssociationImplementation.js'; +import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; import type { V1_PropertyMapping, V1_PropertyMappingVisitor, -} from '../../../model/packageableElements/mapping/V1_PropertyMapping'; -import type { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping'; -import type { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping'; -import type { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping'; -import type { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping'; -import type { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping'; -import type { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping'; -import type { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping'; -import type { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping'; -import { V1_buildRelationalOperationElement } from '../../../transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper'; -import { V1_buildEmbeddedRelationalMappingProperty } from '../../../transformation/pureGraph/to/helpers/V1_RelationalPropertyMappingBuilder'; -import type { V1_XStorePropertyMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStorePropertyMapping'; -import { XStorePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping'; -import type { XStoreAssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation'; -import { Property } from '../../../../../../metamodels/pure/packageableElements/domain/Property'; -import { MappingClass } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingClass'; -import { LocalMappingPropertyInfo } from '../../../../../../metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo'; -import type { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation'; -import { AggregationAwarePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping'; -import { V1_buildRawLambdaWithResolvedPaths } from './helpers/V1_ValueSpecificationPathResolver'; +} from '../../../model/packageableElements/mapping/V1_PropertyMapping.js'; +import type { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.js'; +import type { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.js'; +import type { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.js'; +import type { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.js'; +import type { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.js'; +import type { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.js'; +import type { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.js'; +import type { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.js'; +import { V1_buildRelationalOperationElement } from '../../../transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js'; +import { V1_buildEmbeddedRelationalMappingProperty } from '../../../transformation/pureGraph/to/helpers/V1_RelationalPropertyMappingBuilder.js'; +import type { V1_XStorePropertyMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStorePropertyMapping.js'; +import { XStorePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStorePropertyMapping.js'; +import type { XStoreAssociationImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation.js'; +import { Property } from '../../../../../../metamodels/pure/packageableElements/domain/Property.js'; +import { MappingClass } from '../../../../../../metamodels/pure/packageableElements/mapping/MappingClass.js'; +import { LocalMappingPropertyInfo } from '../../../../../../metamodels/pure/packageableElements/mapping/LocalMappingPropertyInfo.js'; +import type { AggregationAwareSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwareSetImplementation.js'; +import { AggregationAwarePropertyMapping } from '../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationAwarePropertyMapping.js'; +import { V1_buildRawLambdaWithResolvedPaths } from './helpers/V1_ValueSpecificationPathResolver.js'; import { V1_deserializeRelationalOperationElement, V1_serializeRelationalOperationElement, -} from '../../pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper'; -import { V1_transformRelationalOperationElement } from '../from/V1_DatabaseTransformer'; -import { V1_GraphTransformerContextBuilder } from '../from/V1_GraphTransformerContext'; +} from '../../pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js'; +import { V1_transformRelationalOperationElement } from '../from/V1_DatabaseTransformer.js'; +import { V1_GraphTransformerContextBuilder } from '../from/V1_GraphTransformerContext.js'; import { getAllEnumerationMappings, getClassMappingById, getClassMappingsByClass, -} from '../../../../../../../helpers/DSLMapping_Helper'; -import { GraphBuilderError } from '../../../../../../../graphManager/GraphManagerUtils'; -import type { AbstractProperty } from '../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty'; -import { BindingTransformer } from '../../../../../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer'; -import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import { V1_resolveBinding } from './V1_DSLExternalFormat_GraphBuilderHelper'; -import { TEMPORARY__UnresolvedSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation'; +} from '../../../../../../../helpers/DSLMapping_Helper.js'; +import { GraphBuilderError } from '../../../../../../../graphManager/GraphManagerUtils.js'; +import type { AbstractProperty } from '../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty.js'; +import { BindingTransformer } from '../../../../../../metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_BindingTransformer.js'; +import type { Mapping } from '../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import { V1_resolveBinding } from './V1_DSLExternalFormat_GraphBuilderHelper.js'; +import { TEMPORARY__UnresolvedSetImplementation } from '../../../../../../metamodels/pure/packageableElements/mapping/TEMPORARY__UnresolvedSetImplementation.js'; import { getAssociatedPropertyClass, getOwnProperty, getClassProperty, -} from '../../../../../../../helpers/DomainHelper'; +} from '../../../../../../../helpers/DomainHelper.js'; /** * This test is skipped because we want to temporarily relax graph building algorithm diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder.ts index 1e699aaf559..4fe2f184ea3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder.ts @@ -14,15 +14,15 @@ * limitations under the License. */ -import type { RawValueSpecification } from '../../../../../../metamodels/pure/rawValueSpecification/RawValueSpecification'; -import { RawLambda } from '../../../../../../metamodels/pure/rawValueSpecification/RawLambda'; -import { RawVariableExpression } from '../../../../../../metamodels/pure/rawValueSpecification/RawVariableExpression'; -import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_RawValueSpecificationVisitor } from '../../../model/rawValueSpecification/V1_RawValueSpecification'; -import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; -import type { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable'; -import type { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue'; -import { RawPrimitiveInstanceValue } from '../../../../../../metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue'; +import type { RawValueSpecification } from '../../../../../../metamodels/pure/rawValueSpecification/RawValueSpecification.js'; +import { RawLambda } from '../../../../../../metamodels/pure/rawValueSpecification/RawLambda.js'; +import { RawVariableExpression } from '../../../../../../metamodels/pure/rawValueSpecification/RawVariableExpression.js'; +import type { V1_GraphBuilderContext } from '../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_RawValueSpecificationVisitor } from '../../../model/rawValueSpecification/V1_RawValueSpecification.js'; +import type { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; +import type { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable.js'; +import type { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue.js'; +import { RawPrimitiveInstanceValue } from '../../../../../../metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.js'; export class V1_ProtocolToMetaModelRawValueSpecificationBuilder implements V1_RawValueSpecificationVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_GraphBuilderExtensions.test.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_GraphBuilderExtensions.test.ts index fa7b0f8163c..39ecff8be34 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_GraphBuilderExtensions.test.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_GraphBuilderExtensions.test.ts @@ -23,15 +23,15 @@ import { import { type PackageableElementVisitor, PackageableElement, -} from '../../../../../../../metamodels/pure/packageableElements/PackageableElement'; -import { PureProtocolProcessorPlugin } from '../../../../../PureProtocolProcessorPlugin'; +} from '../../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; +import { PureProtocolProcessorPlugin } from '../../../../../PureProtocolProcessorPlugin.js'; import { type V1_PackageableElementVisitor, V1_PackageableElement, -} from '../../../../model/packageableElements/V1_PackageableElement'; -import { V1_ElementBuilder } from '../V1_ElementBuilder'; -import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext'; -import { V1_GraphBuilderExtensions } from '../V1_GraphBuilderExtensions'; +} from '../../../../model/packageableElements/V1_PackageableElement.js'; +import { V1_ElementBuilder } from '../V1_ElementBuilder.js'; +import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext.js'; +import { V1_GraphBuilderExtensions } from '../V1_GraphBuilderExtensions.js'; class TestElement extends V1_PackageableElement { accept_PackageableElementVisitor( diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_ValueSpecificationBuilder.test.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_ValueSpecificationBuilder.test.ts index 467649de3a8..0c4750ab252 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_ValueSpecificationBuilder.test.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/__tests__/V1_ValueSpecificationBuilder.test.ts @@ -21,13 +21,13 @@ import { CoreModel, PureModel, SystemModel, -} from '../../../../../../../../graph/PureModel'; -import { TEST__GraphPluginManager } from '../../../../../../../../GraphManagerTestUtils'; -import { getGraphManager } from '../../../../../Pure'; +} from '../../../../../../../../graph/PureModel.js'; +import { TEST__GraphPluginManager } from '../../../../../../../../GraphManagerTestUtils.js'; +import { getGraphManager } from '../../../../../Pure.js'; import { V1_TEST_DATA__unsupportedFunctionExpression, V1_TEST_DATA__valueSpecificationWithLatestDate, -} from './V1_TEST_DATA__ValueSpecificationBuilder'; +} from './V1_TEST_DATA__ValueSpecificationBuilder.js'; type RoundtripTestCase = [ string, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.ts index f85cb8fe3d1..aa6ebb3f0b3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.ts @@ -14,19 +14,19 @@ * limitations under the License. */ -import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_AggregateSetImplementationContainer } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer'; -import { AggregateSetImplementationContainer } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer'; -import type { InstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import { AggregateSpecification } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification'; -import type { V1_AggregateSpecification } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification'; -import type { V1_GroupByFunction } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction'; -import { GroupByFunctionSpecification } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification'; -import { AggregationFunctionSpecification } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification'; -import type { V1_AggregateFunction } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction'; -import { V1_ProtocolToMetaModelClassMappingFirstPassBuilder } from '../V1_ProtocolToMetaModelClassMappingFirstPassBuilder'; -import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver'; +import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_AggregateSetImplementationContainer } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.js'; +import { AggregateSetImplementationContainer } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSetImplementationContainer.js'; +import type { InstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import { AggregateSpecification } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregateSpecification.js'; +import type { V1_AggregateSpecification } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification.js'; +import type { V1_GroupByFunction } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction.js'; +import { GroupByFunctionSpecification } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/GroupByFunctionSpecification.js'; +import { AggregationFunctionSpecification } from '../../../../../../../metamodels/pure/packageableElements/mapping/aggregationAware/AggregationFunctionSpecification.js'; +import type { V1_AggregateFunction } from '../../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction.js'; +import { V1_ProtocolToMetaModelClassMappingFirstPassBuilder } from '../V1_ProtocolToMetaModelClassMappingFirstPassBuilder.js'; +import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver.js'; const buildGroupByFunction = ( groupByFunction: V1_GroupByFunction, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AssociationMappingHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AssociationMappingHelper.ts index 72cd7a22880..e13b1fff55e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AssociationMappingHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AssociationMappingHelper.ts @@ -14,23 +14,23 @@ * limitations under the License. */ -import { fromElementPathToMappingElementId } from '../../../../../../../../MetaModelUtils'; +import { fromElementPathToMappingElementId } from '../../../../../../../../MetaModelUtils.js'; import { UnsupportedOperationError } from '@finos/legend-shared'; -import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import { RelationalAssociationImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation'; -import type { AssociationImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/AssociationImplementation'; -import { InferableMappingElementIdImplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId'; -import type { Association } from '../../../../../../../metamodels/pure/packageableElements/domain/Association'; -import { V1_RelationalAssociationMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import { V1_ProtocolToMetaModelPropertyMappingBuilder } from '../../../../transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder'; -import type { V1_AssociationMapping } from '../../../../model/packageableElements/mapping/V1_AssociationMapping'; -import { V1_XStoreAssociationMapping } from '../../../../model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping'; -import { XStoreAssociationImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation'; +import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import { RelationalAssociationImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/RelationalAssociationImplementation.js'; +import type { AssociationImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/AssociationImplementation.js'; +import { InferableMappingElementIdImplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId.js'; +import type { Association } from '../../../../../../../metamodels/pure/packageableElements/domain/Association.js'; +import { V1_RelationalAssociationMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import { V1_ProtocolToMetaModelPropertyMappingBuilder } from '../../../../transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.js'; +import type { V1_AssociationMapping } from '../../../../model/packageableElements/mapping/V1_AssociationMapping.js'; +import { V1_XStoreAssociationMapping } from '../../../../model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping.js'; +import { XStoreAssociationImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/xStore/XStoreAssociationImplementation.js'; import { getAllEnumerationMappings, getAllIncludedMappings, -} from '../../../../../../../../helpers/DSLMapping_Helper'; +} from '../../../../../../../../helpers/DSLMapping_Helper.js'; const getInferredAssociationMappingId = ( _association: Association, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.ts index c18bec4958d..90e04f52654 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.ts @@ -20,25 +20,25 @@ import { DataElementReference, ExternalFormatData, ModelStoreData, -} from '../../../../../../../metamodels/pure/data/EmbeddedData'; +} from '../../../../../../../metamodels/pure/data/EmbeddedData.js'; import { RelationalData, RelationalDataTable, RelationalDataTableColumn, RelationalDataTableRow, -} from '../../../../../../../metamodels/pure/data/RelationalData'; -import type { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { DSLData_PureProtocolProcessorPlugin_Extension } from '../../../../../DSLData_PureProtocolProcessorPlugin_Extension'; +} from '../../../../../../../metamodels/pure/data/RelationalData.js'; +import type { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { DSLData_PureProtocolProcessorPlugin_Extension } from '../../../../../DSLData_PureProtocolProcessorPlugin_Extension.js'; import type { V1_DataElementReference, V1_EmbeddedData, V1_EmbeddedDataVisitor, V1_ExternalFormatData, V1_ModelStoreData, -} from '../../../../model/data/V1_EmbeddedData'; -import type { V1_RelationalData } from '../../../../model/data/V1_RelationalData'; +} from '../../../../model/data/V1_EmbeddedData.js'; +import type { V1_RelationalData } from '../../../../model/data/V1_RelationalData.js'; -import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext'; +import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext.js'; export class V1_ProtocolToMetaModelEmbeddedDataBuilder implements V1_EmbeddedDataVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.ts index 9eb5649ae40..67a48520b4c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.ts @@ -23,7 +23,7 @@ import { guaranteeType, assertTrue, } from '@finos/legend-shared'; -import { Database } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Database'; +import { Database } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Database.js'; import { getAllIncludedDatabases, getColumn, @@ -31,17 +31,17 @@ import { getJoinType, getSchema, getView, -} from '../../../../../../../../helpers/StoreRelational_Helper'; -import { Schema } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Schema'; -import { Table } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Table'; -import { Column } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Column'; -import { View } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/View'; +} from '../../../../../../../../helpers/StoreRelational_Helper.js'; +import { Schema } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Schema.js'; +import { Table } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Table.js'; +import { Column } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Column.js'; +import { View } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/View.js'; import { Join, SELF_JOIN_TABLE_NAME, SELF_JOIN_ALIAS_PREFIX, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Join'; -import { Filter } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Filter'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Join.js'; +import { Filter } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Filter.js'; import { type JoinType, type RelationalOperationElement, @@ -53,7 +53,7 @@ import { TableAliasColumn, JoinTreeNode, RelationalOperationElementWithJoin, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; import { type RelationalDataType, Real, @@ -74,20 +74,20 @@ import { SmallInt, BigInt, SemiStructured, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType'; -import { ColumnMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnMapping'; -import { GroupByMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping'; -import type { JoinReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/JoinReference'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalDataType.js'; +import { ColumnMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnMapping.js'; +import { GroupByMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/GroupByMapping.js'; +import type { JoinReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/JoinReference.js'; import { ColumnImplicitReference, ColumnExplicitReference, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnReference'; -import { TableReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/TableReference'; -import { ViewReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ViewReference'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_Schema } from '../../../../model/packageableElements/store/relational/model/V1_Schema'; -import type { V1_Table } from '../../../../model/packageableElements/store/relational/model/V1_Table'; -import type { V1_Column } from '../../../../model/packageableElements/store/relational/model/V1_Column'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnReference.js'; +import { TableReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/TableReference.js'; +import { ViewReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ViewReference.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_Schema } from '../../../../model/packageableElements/store/relational/model/V1_Schema.js'; +import type { V1_Table } from '../../../../model/packageableElements/store/relational/model/V1_Table.js'; +import type { V1_Column } from '../../../../model/packageableElements/store/relational/model/V1_Column.js'; import { type V1_RelationalDataType, V1_VarChar, @@ -108,9 +108,9 @@ import { V1_Binary, V1_Other, V1_SemiStructured, -} from '../../../../model/packageableElements/store/relational/model/V1_RelationalDataType'; -import type { V1_View } from '../../../../model/packageableElements/store/relational/model/V1_View'; -import type { V1_Join } from '../../../../model/packageableElements/store/relational/model/V1_Join'; +} from '../../../../model/packageableElements/store/relational/model/V1_RelationalDataType.js'; +import type { V1_View } from '../../../../model/packageableElements/store/relational/model/V1_View.js'; +import type { V1_Join } from '../../../../model/packageableElements/store/relational/model/V1_Join.js'; import { V1_RelationalOperationElement, V1_TableAliasColumn, @@ -118,15 +118,15 @@ import { V1_DynaFunc, V1_Literal, V1_LiteralList, -} from '../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; -import type { V1_JoinPointer } from '../../../../model/packageableElements/store/relational/model/V1_JoinPointer'; -import type { V1_Filter } from '../../../../model/packageableElements/store/relational/model/V1_Filter'; -import { V1_buildMilestoning } from './V1_MilestoningBuilderHelper'; -import { DEFAULT_DATABASE_SCHEMA_NAME } from '../../../../../../../../MetaModelConst'; -import { FilterMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/FilterMapping'; -import type { V1_FilterMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_FilterMapping'; -import { FilterImplicitReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/FilterReference'; -import { PackageableElementImplicitReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; +} from '../../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; +import type { V1_JoinPointer } from '../../../../model/packageableElements/store/relational/model/V1_JoinPointer.js'; +import type { V1_Filter } from '../../../../model/packageableElements/store/relational/model/V1_Filter.js'; +import { V1_buildMilestoning } from './V1_MilestoningBuilderHelper.js'; +import { DEFAULT_DATABASE_SCHEMA_NAME } from '../../../../../../../../MetaModelConst.js'; +import { FilterMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/FilterMapping.js'; +import type { V1_FilterMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_FilterMapping.js'; +import { FilterImplicitReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/FilterReference.js'; +import { PackageableElementImplicitReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; const _schemaExists = ( db: Database, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.ts index 2350d450d6b..c68b4cacba5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.ts @@ -21,39 +21,39 @@ import { isNonNullable, assertTrue, } from '@finos/legend-shared'; -import type { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { Association } from '../../../../../../../metamodels/pure/packageableElements/domain/Association'; +import type { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { Association } from '../../../../../../../metamodels/pure/packageableElements/domain/Association.js'; import { type Measure, Unit, -} from '../../../../../../../metamodels/pure/packageableElements/domain/Measure'; -import { Property } from '../../../../../../../metamodels/pure/packageableElements/domain/Property'; -import { DerivedProperty } from '../../../../../../../metamodels/pure/packageableElements/domain/DerivedProperty'; -import { RawVariableExpression } from '../../../../../../../metamodels/pure/rawValueSpecification/RawVariableExpression'; -import { TaggedValue } from '../../../../../../../metamodels/pure/packageableElements/domain/TaggedValue'; -import { Constraint } from '../../../../../../../metamodels/pure/packageableElements/domain/Constraint'; -import type { BasicModel } from '../../../../../../../../graph/BasicModel'; +} from '../../../../../../../metamodels/pure/packageableElements/domain/Measure.js'; +import { Property } from '../../../../../../../metamodels/pure/packageableElements/domain/Property.js'; +import { DerivedProperty } from '../../../../../../../metamodels/pure/packageableElements/domain/DerivedProperty.js'; +import { RawVariableExpression } from '../../../../../../../metamodels/pure/rawValueSpecification/RawVariableExpression.js'; +import { TaggedValue } from '../../../../../../../metamodels/pure/packageableElements/domain/TaggedValue.js'; +import { Constraint } from '../../../../../../../metamodels/pure/packageableElements/domain/Constraint.js'; +import type { BasicModel } from '../../../../../../../../graph/BasicModel.js'; import type { AbstractProperty, PropertyOwner, -} from '../../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty'; -import type { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification'; +} from '../../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty.js'; +import type { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification.js'; import { V1_buildFullPath, type V1_GraphBuilderContext, -} from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_Constraint } from '../../../../model/packageableElements/domain/V1_Constraint'; -import type { V1_RawVariable } from '../../../../model/rawValueSpecification/V1_RawVariable'; -import type { V1_Property } from '../../../../model/packageableElements/domain/V1_Property'; -import type { V1_DerivedProperty } from '../../../../model/packageableElements/domain/V1_DerivedProperty'; -import type { V1_Unit } from '../../../../model/packageableElements/domain/V1_Measure'; -import type { V1_TaggedValue } from '../../../../model/packageableElements/domain/V1_TaggedValue'; -import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver'; +} from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_Constraint } from '../../../../model/packageableElements/domain/V1_Constraint.js'; +import type { V1_RawVariable } from '../../../../model/rawValueSpecification/V1_RawVariable.js'; +import type { V1_Property } from '../../../../model/packageableElements/domain/V1_Property.js'; +import type { V1_DerivedProperty } from '../../../../model/packageableElements/domain/V1_DerivedProperty.js'; +import type { V1_Unit } from '../../../../model/packageableElements/domain/V1_Measure.js'; +import type { V1_TaggedValue } from '../../../../model/packageableElements/domain/V1_TaggedValue.js'; +import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver.js'; import { addElementToPackage, getAllClassProperties, getOrCreateGraphPackage, -} from '../../../../../../../../helpers/DomainHelper'; +} from '../../../../../../../../helpers/DomainHelper.js'; export const V1_buildTaggedValue = ( taggedValue: V1_TaggedValue, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FileGenerationBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FileGenerationBuilderHelper.ts index 7cbc6afbb42..3a52fa386a2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FileGenerationBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FileGenerationBuilderHelper.ts @@ -15,14 +15,14 @@ */ import { returnUndefOnError } from '@finos/legend-shared'; -import { ConfigurationProperty } from '../../../../../../../metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty'; -import type { PackageableElement } from '../../../../../../../metamodels/pure/packageableElements/PackageableElement'; +import { ConfigurationProperty } from '../../../../../../../metamodels/pure/packageableElements/fileGeneration/ConfigurationProperty.js'; +import type { PackageableElement } from '../../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; import { type PackageableElementReference, PackageableElementExplicitReference, -} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_ConfigurationProperty } from '../../../../model/packageableElements/fileGeneration/V1_ConfigurationProperty'; +} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_ConfigurationProperty } from '../../../../model/packageableElements/fileGeneration/V1_ConfigurationProperty.js'; export const V1_buildConfigurationProperty = ( propSpec: V1_ConfigurationProperty, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.ts index 16bc1956458..13ac3562446 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_FlatDataStoreBuilderHelper.ts @@ -24,8 +24,8 @@ import { isString, guaranteeType, } from '@finos/legend-shared'; -import { PRIMITIVE_TYPE } from '../../../../../../../../MetaModelConst'; -import { FlatDataSection } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataSection'; +import { PRIMITIVE_TYPE } from '../../../../../../../../MetaModelConst.js'; +import { FlatDataSection } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataSection.js'; import { type FlatDataDataType, FlatDataString, @@ -40,11 +40,11 @@ import { FlatDataRecordType, RootFlatDataRecordType, FlatDataRecordField, -} from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType'; -import type { FlatData } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData'; -import { FlatDataProperty } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_FlatDataSection } from '../../../../model/packageableElements/store/flatData/model/V1_FlatDataSection'; +} from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataDataType.js'; +import type { FlatData } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatData.js'; +import { FlatDataProperty } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/model/FlatDataProperty.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_FlatDataSection } from '../../../../model/packageableElements/store/flatData/model/V1_FlatDataSection.js'; import { type V1_FlatDataDataType, type V1_FlatDataRecordField, @@ -59,8 +59,8 @@ import { V1_FlatDataStrictDate, V1_FlatDataRecordType, V1_RootFlatDataRecordType, -} from '../../../../model/packageableElements/store/flatData/model/V1_FlatDataDataType'; -import type { V1_FlatDataProperty } from '../../../../model/packageableElements/store/flatData/model/V1_FlatDataProperty'; +} from '../../../../model/packageableElements/store/flatData/model/V1_FlatDataDataType.js'; +import type { V1_FlatDataProperty } from '../../../../model/packageableElements/store/flatData/model/V1_FlatDataProperty.js'; const buildFlatDataDataType = ( type: V1_FlatDataDataType, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_GenerationSpecificationBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_GenerationSpecificationBuilderHelper.ts index 50c9057b9b9..35fa71249e7 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_GenerationSpecificationBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_GenerationSpecificationBuilderHelper.ts @@ -15,12 +15,12 @@ */ import { assertNonEmptyString } from '@finos/legend-shared'; -import { GenerationTreeNode } from '../../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification'; -import type { FileGenerationSpecification } from '../../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification'; -import type { PackageableElementReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_GenerationTreeNode } from '../../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import type { V1_PackageableElementPointer } from '../../../../model/packageableElements/V1_PackageableElement'; +import { GenerationTreeNode } from '../../../../../../../metamodels/pure/packageableElements/generationSpecification/GenerationSpecification.js'; +import type { FileGenerationSpecification } from '../../../../../../../metamodels/pure/packageableElements/fileGeneration/FileGenerationSpecification.js'; +import type { PackageableElementReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_GenerationTreeNode } from '../../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import type { V1_PackageableElementPointer } from '../../../../model/packageableElements/V1_PackageableElement.js'; export const V1_buildGenerationTreeNode = ( generationNode: V1_GenerationTreeNode, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.ts index 4eb5ca08b83..f190e513ac4 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.ts @@ -22,55 +22,55 @@ import { assertType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { PRIMITIVE_TYPE } from '../../../../../../../../MetaModelConst'; -import { fromElementPathToMappingElementId } from '../../../../../../../../MetaModelUtils'; -import { Type } from '../../../../../../../metamodels/pure/packageableElements/domain/Type'; -import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import { EnumerationMapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping'; -import { Enumeration } from '../../../../../../../metamodels/pure/packageableElements/domain/Enumeration'; +import { PRIMITIVE_TYPE } from '../../../../../../../../MetaModelConst.js'; +import { fromElementPathToMappingElementId } from '../../../../../../../../MetaModelUtils.js'; +import { Type } from '../../../../../../../metamodels/pure/packageableElements/domain/Type.js'; +import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import { EnumerationMapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; +import { Enumeration } from '../../../../../../../metamodels/pure/packageableElements/domain/Enumeration.js'; import { EnumValueMapping, SourceValue, -} from '../../../../../../../metamodels/pure/packageableElements/mapping/EnumValueMapping'; -import { MappingTest } from '../../../../../../../metamodels/pure/packageableElements/mapping/MappingTest'; -import { ObjectInputData } from '../../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData'; -import type { InputData } from '../../../../../../../metamodels/pure/packageableElements/mapping/InputData'; -import { FlatDataInputData } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData'; -import { ExpectedOutputMappingTestAssert } from '../../../../../../../metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert'; -import type { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class'; -import { InferableMappingElementIdImplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId'; +} from '../../../../../../../metamodels/pure/packageableElements/mapping/EnumValueMapping.js'; +import { MappingTest } from '../../../../../../../metamodels/pure/packageableElements/mapping/MappingTest.js'; +import { ObjectInputData } from '../../../../../../../metamodels/pure/packageableElements/store/modelToModel/mapping/ObjectInputData.js'; +import type { InputData } from '../../../../../../../metamodels/pure/packageableElements/mapping/InputData.js'; +import { FlatDataInputData } from '../../../../../../../metamodels/pure/packageableElements/store/flatData/mapping/FlatDataInputData.js'; +import { ExpectedOutputMappingTestAssert } from '../../../../../../../metamodels/pure/packageableElements/mapping/ExpectedOutputMappingTestAssert.js'; +import type { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import { InferableMappingElementIdImplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId.js'; import { type PackageableElementImplicitReference, toOptionalPackageableElementReference, -} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { EnumValueImplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/EnumValueReference'; -import { MappingInclude } from '../../../../../../../metamodels/pure/packageableElements/mapping/MappingInclude'; -import { SubstituteStore } from '../../../../../../../metamodels/pure/packageableElements/mapping/SubstituteStore'; -import type { SetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation'; -import { InferableMappingElementRootImplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementRoot'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; +} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { EnumValueImplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/EnumValueReference.js'; +import { MappingInclude } from '../../../../../../../metamodels/pure/packageableElements/mapping/MappingInclude.js'; +import { SubstituteStore } from '../../../../../../../metamodels/pure/packageableElements/mapping/SubstituteStore.js'; +import type { SetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import { InferableMappingElementRootImplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementRoot.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; import { type V1_EnumValueMapping, V1_getEnumValueMappingSourceValueType, -} from '../../../../model/packageableElements/mapping/V1_EnumValueMapping'; -import type { V1_EnumerationMapping } from '../../../../model/packageableElements/mapping/V1_EnumerationMapping'; -import type { V1_MappingTest } from '../../../../model/packageableElements/mapping/V1_MappingTest'; -import { V1_ExpectedOutputMappingTestAssert } from '../../../../model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert'; -import type { V1_InputData } from '../../../../model/packageableElements/mapping/V1_InputData'; -import { V1_ObjectInputData } from '../../../../model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData'; -import { V1_FlatDataInputData } from '../../../../model/packageableElements/store/flatData/mapping/V1_FlatDataInputData'; -import type { V1_ClassMapping } from '../../../../model/packageableElements/mapping/V1_ClassMapping'; -import type { V1_MappingInclude } from '../../../../model/packageableElements/mapping/V1_MappingInclude'; -import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver'; -import { V1_RelationalInputData } from '../../../../model/packageableElements/store/relational/mapping/V1_RelationalInputData'; -import { RelationalInputData } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData'; +} from '../../../../model/packageableElements/mapping/V1_EnumValueMapping.js'; +import type { V1_EnumerationMapping } from '../../../../model/packageableElements/mapping/V1_EnumerationMapping.js'; +import type { V1_MappingTest } from '../../../../model/packageableElements/mapping/V1_MappingTest.js'; +import { V1_ExpectedOutputMappingTestAssert } from '../../../../model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert.js'; +import type { V1_InputData } from '../../../../model/packageableElements/mapping/V1_InputData.js'; +import { V1_ObjectInputData } from '../../../../model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData.js'; +import { V1_FlatDataInputData } from '../../../../model/packageableElements/store/flatData/mapping/V1_FlatDataInputData.js'; +import type { V1_ClassMapping } from '../../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import type { V1_MappingInclude } from '../../../../model/packageableElements/mapping/V1_MappingInclude.js'; +import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver.js'; +import { V1_RelationalInputData } from '../../../../model/packageableElements/store/relational/mapping/V1_RelationalInputData.js'; +import { RelationalInputData } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInputData.js'; import { getAllClassMappings, getObjectInputType, -} from '../../../../../../../../helpers/DSLMapping_Helper'; -import { getRelationalInputType } from '../../../../../../../../helpers/StoreRelational_Helper'; -import { getEnumValue } from '../../../../../../../../helpers/DomainHelper'; -import { V1_getIncludedMappingPath } from '../../../../helper/V1_DSLMapping_Helper'; +} from '../../../../../../../../helpers/DSLMapping_Helper.js'; +import { getRelationalInputType } from '../../../../../../../../helpers/StoreRelational_Helper.js'; +import { getEnumValue } from '../../../../../../../../helpers/DomainHelper.js'; +import { V1_getIncludedMappingPath } from '../../../../helper/V1_DSLMapping_Helper.js'; export const V1_getInferredClassMappingId = ( _class: Class, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.ts index 35f2eb166a3..4d879b0e61a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.ts @@ -15,8 +15,8 @@ */ import type { PlainObject } from '@finos/legend-shared'; -import type { PureModel } from '../../../../../../../../graph/PureModel'; -import { getMilestoneTemporalStereotype } from '../../../../../../../../helpers/DomainHelper'; +import type { PureModel } from '../../../../../../../../graph/PureModel.js'; +import { getMilestoneTemporalStereotype } from '../../../../../../../../helpers/DomainHelper.js'; import { DEFAULT_PROCESSING_DATE_MILESTONING_PARAMETER_NAME, MILESTONING_END_DATE_PARAMETER_NAME, @@ -25,18 +25,18 @@ import { PRIMITIVE_TYPE, MILESTONING_START_DATE_PARAMETER_NAME, DEFAULT_BUSINESS_DATE_MILESTONING_PARAMETER_NAME, -} from '../../../../../../../../MetaModelConst'; -import type { PropertyOwner } from '../../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty'; -import { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class'; -import { DerivedProperty } from '../../../../../../../metamodels/pure/packageableElements/domain/DerivedProperty'; -import { GenericType } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericType'; -import { GenericTypeExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericTypeReference'; -import { Multiplicity } from '../../../../../../../metamodels/pure/packageableElements/domain/Multiplicity'; -import { Property } from '../../../../../../../metamodels/pure/packageableElements/domain/Property'; -import { V1_Multiplicity } from '../../../../model/packageableElements/domain/V1_Multiplicity'; -import type { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_Variable } from '../../../../model/valueSpecification/V1_Variable'; -import { V1_serializeValueSpecification } from '../../../pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer'; +} from '../../../../../../../../MetaModelConst.js'; +import type { PropertyOwner } from '../../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty.js'; +import { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import { DerivedProperty } from '../../../../../../../metamodels/pure/packageableElements/domain/DerivedProperty.js'; +import { GenericType } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericType.js'; +import { GenericTypeExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericTypeReference.js'; +import { Multiplicity } from '../../../../../../../metamodels/pure/packageableElements/domain/Multiplicity.js'; +import { Property } from '../../../../../../../metamodels/pure/packageableElements/domain/Property.js'; +import { V1_Multiplicity } from '../../../../model/packageableElements/domain/V1_Multiplicity.js'; +import type { V1_ValueSpecification } from '../../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_Variable } from '../../../../model/valueSpecification/V1_Variable.js'; +import { V1_serializeValueSpecification } from '../../../pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.js'; const buildMilestoningParameter = ( parameterName: string, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoningBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoningBuilderHelper.ts index e01059ca6d9..2c8731a5ee5 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoningBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoningBuilderHelper.ts @@ -14,23 +14,23 @@ * limitations under the License. */ -import { BusinessMilestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning'; +import { BusinessMilestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessMilestoning.js'; import { assertNonEmptyString, guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { V1_BusinessMilestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning'; -import type { V1_Milestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning'; -import type { Milestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning'; -import { V1_BusinessSnapshotMilestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning'; -import { BusinessSnapshotMilestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning'; -import { V1_ProcessingMilestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning'; -import { ProcessingMilestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning'; -import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; -import { RawPrimitiveInstanceValue } from '../../../../../../../metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue'; -import { V1_ProtocolToMetaModelRawValueSpecificationBuilder } from '../V1_ProtocolToMetaModelRawValueSpecificationBuilder'; +import { V1_BusinessMilestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning.js'; +import type { V1_Milestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning.js'; +import type { Milestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/Milestoning.js'; +import { V1_BusinessSnapshotMilestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning.js'; +import { BusinessSnapshotMilestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/BusinessSnapshotMilestoning.js'; +import { V1_ProcessingMilestoning } from '../../../../model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning.js'; +import { ProcessingMilestoning } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/milestoning/ProcessingMilestoning.js'; +import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; +import { RawPrimitiveInstanceValue } from '../../../../../../../metamodels/pure/rawValueSpecification/RawPrimitiveInstanceValue.js'; +import { V1_ProtocolToMetaModelRawValueSpecificationBuilder } from '../V1_ProtocolToMetaModelRawValueSpecificationBuilder.js'; const buildBusinessMilesoning = ( protocol: V1_BusinessMilestoning, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_PostProcessorBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_PostProcessorBuilderHelper.ts index 8c3595fb46e..b9d6e83dcf9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_PostProcessorBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_PostProcessorBuilderHelper.ts @@ -14,23 +14,23 @@ * limitations under the License. */ -import type { PostProcessor } from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor'; -import { MapperPostProcessor } from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor'; -import { V1_MapperPostProcessor } from '../../../../model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor'; -import type { V1_PostProcessor } from '../../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor'; +import type { PostProcessor } from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/PostProcessor.js'; +import { MapperPostProcessor } from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/MapperPostProcessor.js'; +import { V1_MapperPostProcessor } from '../../../../model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor.js'; +import type { V1_PostProcessor } from '../../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor.js'; import { UnsupportedOperationError } from '@finos/legend-shared'; import { type V1_Mapper, V1_TableNameMapper, V1_SchemaNameMapper, -} from '../../../../model/packageableElements/store/relational/connection/postprocessor/V1_Mapper'; +} from '../../../../model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.js'; import { type Mapper, SchemaNameMapper, TableNameMapper, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper'; -import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/postprocessor/Mapper.js'; +import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; const buildSchemaNameMapper = (schema: V1_SchemaNameMapper): SchemaNameMapper => new SchemaNameMapper(schema.from, schema.to); diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.ts index dc908a033e0..3b3ba64ce44 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.ts @@ -15,7 +15,7 @@ */ import { Stack } from '@finos/legend-shared'; -import type { ValueSpecification } from '../../../../../../../metamodels/pure/valueSpecification/ValueSpecification'; +import type { ValueSpecification } from '../../../../../../../metamodels/pure/valueSpecification/ValueSpecification.js'; export class V1_ProcessingContext { inferredVariableList: Map[] = []; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.ts index 1b32cfab959..9e7f9ac5d66 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.ts @@ -14,30 +14,30 @@ * limitations under the License. */ -import type { RootRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import type { RelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation'; -import type { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; -import type { SetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation'; -import type { RelationalPropertyMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping'; -import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping'; -import type { EnumerationMapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping'; +import type { RootRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import type { RelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalInstanceSetImplementation.js'; +import type { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; +import type { SetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import type { RelationalPropertyMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js'; +import type { Mapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/Mapping.js'; +import type { EnumerationMapping } from '../../../../../../../metamodels/pure/packageableElements/mapping/EnumerationMapping.js'; import { type TableAlias, TableAliasColumn, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement'; -import type { Column } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Column'; -import { Table } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Table'; -import { View } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/View'; -import { ColumnExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnReference'; -import { FilterMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/FilterMapping'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_RelationalClassMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping'; -import type { V1_FilterMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_FilterMapping'; -import { V1_ProtocolToMetaModelPropertyMappingBuilder } from '../../../../transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/RelationalOperationElement.js'; +import type { Column } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Column.js'; +import { Table } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/Table.js'; +import { View } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/View.js'; +import { ColumnExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/store/relational/model/ColumnReference.js'; +import { FilterMapping } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/FilterMapping.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_RelationalClassMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.js'; +import type { V1_FilterMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_FilterMapping.js'; +import { V1_ProtocolToMetaModelPropertyMappingBuilder } from '../../../../transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.js'; import { V1_buildElementWithJoinsJoinTreeNode, V1_buildRelationalOperationElement, -} from './V1_DatabaseBuilderHelper'; +} from './V1_DatabaseBuilderHelper.js'; export const V1_buildRelationalClassMapping = ( relationalClassMapping: V1_RelationalClassMapping, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.ts index a1e0cbd3d14..923aad2d79a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalConnectionBuilderHelper.ts @@ -29,7 +29,7 @@ import { SnowflakeDatasourceSpecification, RedshiftDatasourceSpecification, BigQueryDatasourceSpecification, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/DatasourceSpecification.js'; import { type AuthenticationStrategy, SnowflakePublicAuthenticationStrategy, @@ -40,8 +40,8 @@ import { DefaultH2AuthenticationStrategy, DelegatedKerberosAuthenticationStrategy, GCPWorkloadIdentityFederationAuthenticationStrategy, -} from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; +} from '../../../../../../../metamodels/pure/packageableElements/store/relational/connection/AuthenticationStrategy.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; import { type V1_DatasourceSpecification, V1_LocalH2DataSourceSpecification, @@ -51,7 +51,7 @@ import { V1_SnowflakeDatasourceSpecification, V1_RedshiftDatasourceSpecification, V1_BigQueryDatasourceSpecification, -} from '../../../../model/packageableElements/store/relational/connection/V1_DatasourceSpecification'; +} from '../../../../model/packageableElements/store/relational/connection/V1_DatasourceSpecification.js'; import { type V1_AuthenticationStrategy, V1_SnowflakePublicAuthenticationStrategy, @@ -62,8 +62,8 @@ import { V1_DelegatedKerberosAuthenticationStrategy, V1_UsernamePasswordAuthenticationStrategy, V1_GCPWorkloadIdentityFederationAuthenticationStrategy, -} from '../../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; +} from '../../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; export const V1_buildDatasourceSpecification = ( protocol: V1_DatasourceSpecification, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalPropertyMappingBuilder.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalPropertyMappingBuilder.ts index 660959fa4f3..54000bc6e5b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalPropertyMappingBuilder.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalPropertyMappingBuilder.ts @@ -15,23 +15,23 @@ */ import { guaranteeType } from '@finos/legend-shared'; -import type { InstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation'; -import { RootRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation'; -import { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation'; +import type { InstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/InstanceSetImplementation.js'; +import { RootRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/RootRelationalInstanceSetImplementation.js'; +import { EmbeddedRelationalInstanceSetImplementation } from '../../../../../../../metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js'; import { type PackageableElementReference, PackageableElementImplicitReference, -} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { InferableMappingElementIdExplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId'; -import type { Property } from '../../../../../../../metamodels/pure/packageableElements/domain/Property'; -import { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { PropertyMappingsImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation'; -import type { SetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_EmbeddedRelationalPropertyMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping'; -import { V1_getInferredClassMappingId } from '../../../../transformation/pureGraph/to/helpers/V1_MappingBuilderHelper'; -import { GraphBuilderError } from '../../../../../../../../graphManager/GraphManagerUtils'; -import { getClassProperty } from '../../../../../../../../helpers/DomainHelper'; +} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { InferableMappingElementIdExplicitValue } from '../../../../../../../metamodels/pure/packageableElements/mapping/InferableMappingElementId.js'; +import type { Property } from '../../../../../../../metamodels/pure/packageableElements/domain/Property.js'; +import { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { PropertyMappingsImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/PropertyMappingsImplementation.js'; +import type { SetImplementation } from '../../../../../../../metamodels/pure/packageableElements/mapping/SetImplementation.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_EmbeddedRelationalPropertyMapping } from '../../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.js'; +import { V1_getInferredClassMappingId } from '../../../../transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.js'; +import { GraphBuilderError } from '../../../../../../../../graphManager/GraphManagerUtils.js'; +import { getClassProperty } from '../../../../../../../../helpers/DomainHelper.js'; export const V1_buildEmbeddedRelationalMappingProperty = ( propertyMapping: V1_EmbeddedRelationalPropertyMapping, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts index 289727620d5..d93069f6473 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts @@ -19,10 +19,10 @@ import { EngineRuntime, StoreConnections, IdentifiedConnection, -} from '../../../../../../../metamodels/pure/packageableElements/runtime/Runtime'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_EngineRuntime } from '../../../../model/packageableElements/runtime/V1_Runtime'; -import { V1_ProtocolToMetaModelConnectionBuilder } from '../../../../transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder'; +} from '../../../../../../../metamodels/pure/packageableElements/runtime/Runtime.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_EngineRuntime } from '../../../../model/packageableElements/runtime/V1_Runtime.js'; +import { V1_ProtocolToMetaModelConnectionBuilder } from '../../../../transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.js'; export const V1_buildEngineRuntime = ( runtime: V1_EngineRuntime, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_SectionBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_SectionBuilderHelper.ts index c1c157d84fa..1e1dda887c8 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_SectionBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_SectionBuilderHelper.ts @@ -20,20 +20,20 @@ import { isNonNullable, uniq, } from '@finos/legend-shared'; -import { GRAPH_MANAGER_EVENT } from '../../../../../../../../graphManager/GraphManagerEvent'; +import { GRAPH_MANAGER_EVENT } from '../../../../../../../../graphManager/GraphManagerEvent.js'; import { type Section, ImportAwareCodeSection, DefaultCodeSection, -} from '../../../../../../../metamodels/pure/packageableElements/section/Section'; -import type { SectionIndex } from '../../../../../../../metamodels/pure/packageableElements/section/SectionIndex'; -import { PackageableElementExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; +} from '../../../../../../../metamodels/pure/packageableElements/section/Section.js'; +import type { SectionIndex } from '../../../../../../../metamodels/pure/packageableElements/section/SectionIndex.js'; +import { PackageableElementExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; import { type V1_Section, V1_ImportAwareCodeSection, V1_DefaultCodeSection, -} from '../../../../model/packageableElements/section/V1_Section'; +} from '../../../../model/packageableElements/section/V1_Section.js'; export const V1_buildSection = ( protocol: V1_Section, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts index 0171ec71096..cc284f5a9a1 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts @@ -21,26 +21,26 @@ import { assertType, assertNonNullable, } from '@finos/legend-shared'; -import { GRAPH_MANAGER_EVENT } from '../../../../../../../../graphManager/GraphManagerEvent'; +import { GRAPH_MANAGER_EVENT } from '../../../../../../../../graphManager/GraphManagerEvent.js'; import { type Runtime, RuntimePointer, -} from '../../../../../../../metamodels/pure/packageableElements/runtime/Runtime'; -import type { Service } from '../../../../../../../metamodels/pure/packageableElements/service/Service'; -import { ServiceTest } from '../../../../../../../metamodels/pure/packageableElements/service/ServiceTest'; +} from '../../../../../../../metamodels/pure/packageableElements/runtime/Runtime.js'; +import type { Service } from '../../../../../../../metamodels/pure/packageableElements/service/Service.js'; +import { ServiceTest } from '../../../../../../../metamodels/pure/packageableElements/service/ServiceTest.js'; import { type ServiceExecution, PureSingleExecution, PureMultiExecution, KeyedExecutionParameter, -} from '../../../../../../../metamodels/pure/packageableElements/service/ServiceExecution'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_ServiceTest } from '../../../../model/packageableElements/service/V1_ServiceTest'; +} from '../../../../../../../metamodels/pure/packageableElements/service/ServiceExecution.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_ServiceTest } from '../../../../model/packageableElements/service/V1_ServiceTest.js'; import { type V1_ServiceExecution, V1_PureSingleExecution, V1_PureMultiExecution, -} from '../../../../model/packageableElements/service/V1_ServiceExecution'; +} from '../../../../model/packageableElements/service/V1_ServiceExecution.js'; import { type V1_Runtime, V1_RuntimePointer, @@ -48,38 +48,38 @@ import { V1_LegacyRuntime, V1_StoreConnections, V1_IdentifiedConnection, -} from '../../../../model/packageableElements/runtime/V1_Runtime'; -import { V1_buildEngineRuntime } from './V1_RuntimeBuilderHelper'; -import { V1_PackageableElementPointer } from '../../../../model/packageableElements/V1_PackageableElement'; -import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver'; -import { GraphBuilderError } from '../../../../../../../../graphManager/GraphManagerUtils'; +} from '../../../../model/packageableElements/runtime/V1_Runtime.js'; +import { V1_buildEngineRuntime } from './V1_RuntimeBuilderHelper.js'; +import { V1_PackageableElementPointer } from '../../../../model/packageableElements/V1_PackageableElement.js'; +import { V1_buildRawLambdaWithResolvedPaths } from './V1_ValueSpecificationPathResolver.js'; +import { GraphBuilderError } from '../../../../../../../../graphManager/GraphManagerUtils.js'; import { type DEPRECATED__ServiceTest, DEPRECATED__KeyedSingleExecutionTest, DEPRECATED__MultiExecutionTest, DEPRECATED__SingleExecutionTest, DEPRECATED__TestContainer, -} from '../../../../../../../metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest'; -import { ConnectionTestData } from '../../../../../../../metamodels/pure/packageableElements/service/ConnectionTestData'; -import { ParameterValue } from '../../../../../../../metamodels/pure/packageableElements/service/ParameterValue'; -import { ServiceTestSuite } from '../../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite'; -import { TestData } from '../../../../../../../metamodels/pure/packageableElements/service/ServiceTestData'; -import type { V1_ConnectionTestData } from '../../../../model/packageableElements/service/V1_ConnectionTestData'; -import type { V1_ParameterValue } from '../../../../model/packageableElements/service/V1_ParameterValue'; -import type { V1_ServiceTestSuite } from '../../../../model/packageableElements/service/V1_ServiceTestSuite'; -import type { V1_TestData } from '../../../../model/packageableElements/service/V1_TestData'; +} from '../../../../../../../metamodels/pure/packageableElements/service/DEPRECATED__ServiceTest.js'; +import { ConnectionTestData } from '../../../../../../../metamodels/pure/packageableElements/service/ConnectionTestData.js'; +import { ParameterValue } from '../../../../../../../metamodels/pure/packageableElements/service/ParameterValue.js'; +import { ServiceTestSuite } from '../../../../../../../metamodels/pure/packageableElements/service/ServiceTestSuite.js'; +import { TestData } from '../../../../../../../metamodels/pure/packageableElements/service/ServiceTestData.js'; +import type { V1_ConnectionTestData } from '../../../../model/packageableElements/service/V1_ConnectionTestData.js'; +import type { V1_ParameterValue } from '../../../../model/packageableElements/service/V1_ParameterValue.js'; +import type { V1_ServiceTestSuite } from '../../../../model/packageableElements/service/V1_ServiceTestSuite.js'; +import type { V1_TestData } from '../../../../model/packageableElements/service/V1_TestData.js'; import { V1_buildTestAssertion, V1_buildAtomicTest, -} from './V1_TestBuilderHelper'; -import { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './V1_DataElementBuilderHelper'; +} from './V1_TestBuilderHelper.js'; +import { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './V1_DataElementBuilderHelper.js'; import { type V1_DEPRECATED__ServiceTest, V1_DEPRECATED__SingleExecutionTest, V1_DEPRECATED__MultiExecutionTest, -} from '../../../../model/packageableElements/service/V1_DEPRECATED__ServiceTest'; -import type { TestSuite } from '../../../../../../../metamodels/pure/test/Test'; -import { PackageableElementPointerType } from '../../../../../../../../MetaModelConst'; +} from '../../../../model/packageableElements/service/V1_DEPRECATED__ServiceTest.js'; +import type { TestSuite } from '../../../../../../../metamodels/pure/test/Test.js'; +import { PackageableElementPointerType } from '../../../../../../../../MetaModelConst.js'; const buildConnectionTestData = ( element: V1_ConnectionTestData, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.ts index 00776e27a4a..48be5ef71ea 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.ts @@ -15,32 +15,32 @@ */ import { guaranteeType, UnsupportedOperationError } from '@finos/legend-shared'; -import { ExternalFormatData } from '../../../../../../../metamodels/pure/data/EmbeddedData'; -import { EqualTo } from '../../../../../../../metamodels/pure/test/assertion/EqualTo'; -import { EqualToJson } from '../../../../../../../metamodels/pure/test/assertion/EqualToJson'; +import { ExternalFormatData } from '../../../../../../../metamodels/pure/data/EmbeddedData.js'; +import { EqualTo } from '../../../../../../../metamodels/pure/test/assertion/EqualTo.js'; +import { EqualToJson } from '../../../../../../../metamodels/pure/test/assertion/EqualToJson.js'; import { EqualToTDS, RelationalTDS, -} from '../../../../../../../metamodels/pure/test/assertion/EqualToTDS'; -import type { TestAssertion } from '../../../../../../../metamodels/pure/test/assertion/TestAssertion'; +} from '../../../../../../../metamodels/pure/test/assertion/EqualToTDS.js'; +import type { TestAssertion } from '../../../../../../../metamodels/pure/test/assertion/TestAssertion.js'; import type { AtomicTest, TestSuite, -} from '../../../../../../../metamodels/pure/test/Test'; -import { V1_ServiceTest } from '../../../../model/packageableElements/service/V1_ServiceTest'; -import { V1_ServiceTestSuite } from '../../../../model/packageableElements/service/V1_ServiceTestSuite'; -import { V1_EqualTo } from '../../../../model/test/assertion/V1_EqualTo'; -import { V1_EqualToJson } from '../../../../model/test/assertion/V1_EqualToJson'; -import { V1_EqualToTDS } from '../../../../model/test/assertion/V1_EqualToTDS'; -import type { V1_TestAssertion } from '../../../../model/test/assertion/V1_TestAssertion'; -import type { V1_AtomicTest } from '../../../../model/test/V1_AtomicTest'; -import type { V1_TestSuite } from '../../../../model/test/V1_TestSuite'; -import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext'; -import { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './V1_DataElementBuilderHelper'; +} from '../../../../../../../metamodels/pure/test/Test.js'; +import { V1_ServiceTest } from '../../../../model/packageableElements/service/V1_ServiceTest.js'; +import { V1_ServiceTestSuite } from '../../../../model/packageableElements/service/V1_ServiceTestSuite.js'; +import { V1_EqualTo } from '../../../../model/test/assertion/V1_EqualTo.js'; +import { V1_EqualToJson } from '../../../../model/test/assertion/V1_EqualToJson.js'; +import { V1_EqualToTDS } from '../../../../model/test/assertion/V1_EqualToTDS.js'; +import type { V1_TestAssertion } from '../../../../model/test/assertion/V1_TestAssertion.js'; +import type { V1_AtomicTest } from '../../../../model/test/V1_AtomicTest.js'; +import type { V1_TestSuite } from '../../../../model/test/V1_TestSuite.js'; +import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext.js'; +import { V1_ProtocolToMetaModelEmbeddedDataBuilder } from './V1_DataElementBuilderHelper.js'; import { V1_buildServiceTest, V1_buildServiceTestSuite, -} from './V1_ServiceBuilderHelper'; +} from './V1_ServiceBuilderHelper.js'; const buildEqualTo = ( element: V1_EqualTo, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.ts index c616b4d2415..0cd00ceb483 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.ts @@ -20,33 +20,33 @@ import { guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { AssertFail } from '../../../../../../../metamodels/pure/test/assertion/status/AssertFail'; -import type { AssertionStatus } from '../../../../../../../metamodels/pure/test/assertion/status/AssertionStatus'; -import { AssertPass } from '../../../../../../../metamodels/pure/test/assertion/status/AssertPass'; -import { EqualToJsonAssertFail } from '../../../../../../../metamodels/pure/test/assertion/status/EqualToJsonAssertFail'; -import { AtomicTestId } from '../../../../../../../metamodels/pure/test/result/AtomicTestId'; +import { AssertFail } from '../../../../../../../metamodels/pure/test/assertion/status/AssertFail.js'; +import type { AssertionStatus } from '../../../../../../../metamodels/pure/test/assertion/status/AssertionStatus.js'; +import { AssertPass } from '../../../../../../../metamodels/pure/test/assertion/status/AssertPass.js'; +import { EqualToJsonAssertFail } from '../../../../../../../metamodels/pure/test/assertion/status/EqualToJsonAssertFail.js'; +import { AtomicTestId } from '../../../../../../../metamodels/pure/test/result/AtomicTestId.js'; import { TestError, TestFailed, TestPassed, type TestResult, -} from '../../../../../../../metamodels/pure/test/result/TestResult'; +} from '../../../../../../../metamodels/pure/test/result/TestResult.js'; import { AtomicTest, TestSuite, -} from '../../../../../../../metamodels/pure/test/Test'; -import type { Testable } from '../../../../../../../metamodels/pure/test/Testable'; -import { V1_AssertFail } from '../../../../model/test/assertion/status/V1_AssertFail'; -import type { V1_AssertionStatus } from '../../../../model/test/assertion/status/V1_AssertionStatus'; -import { V1_AssertPass } from '../../../../model/test/assertion/status/V1_AssertPass'; -import { V1_EqualToJsonAssertFail } from '../../../../model/test/assertion/status/V1_EqualToJsonAssertFail'; +} from '../../../../../../../metamodels/pure/test/Test.js'; +import type { Testable } from '../../../../../../../metamodels/pure/test/Testable.js'; +import { V1_AssertFail } from '../../../../model/test/assertion/status/V1_AssertFail.js'; +import type { V1_AssertionStatus } from '../../../../model/test/assertion/status/V1_AssertionStatus.js'; +import { V1_AssertPass } from '../../../../model/test/assertion/status/V1_AssertPass.js'; +import { V1_EqualToJsonAssertFail } from '../../../../model/test/assertion/status/V1_EqualToJsonAssertFail.js'; import { type V1_TestResult, V1_TestFailed, V1_TestPassed, V1_TestError, -} from '../../../../model/test/result/V1_TestResult'; -import type { V1_AtomicTestId } from '../../../../model/test/V1_AtomicTestId'; +} from '../../../../model/test/result/V1_TestResult.js'; +import type { V1_AtomicTestId } from '../../../../model/test/V1_AtomicTestId.js'; const buildAtomicTestId = ( element: V1_AtomicTestId, diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.ts index 6efea68c6b3..aaa0b5b54de 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.ts @@ -25,34 +25,34 @@ import { import { TYPICAL_MULTIPLICITY_TYPE, PRIMITIVE_TYPE, -} from '../../../../../../../../MetaModelConst'; +} from '../../../../../../../../MetaModelConst.js'; import { LambdaFunction, FunctionType, LambdaFunctionInstanceValue, -} from '../../../../../../../metamodels/pure/valueSpecification/LambdaFunction'; +} from '../../../../../../../metamodels/pure/valueSpecification/LambdaFunction.js'; import { type ExecutionContext, BaseExecutionContext, AnalyticsExecutionContext, -} from '../../../../../../../metamodels/pure/valueSpecification/ExecutionContext'; -import { VariableExpression } from '../../../../../../../metamodels/pure/valueSpecification/VariableExpression'; -import { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class'; -import type { AbstractProperty } from '../../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty'; +} from '../../../../../../../metamodels/pure/valueSpecification/ExecutionContext.js'; +import { VariableExpression } from '../../../../../../../metamodels/pure/valueSpecification/VariableExpression.js'; +import { Class } from '../../../../../../../metamodels/pure/packageableElements/domain/Class.js'; +import type { AbstractProperty } from '../../../../../../../metamodels/pure/packageableElements/domain/AbstractProperty.js'; import { type GraphFetchTree, PropertyGraphFetchTree, RootGraphFetchTree, PropertyGraphFetchTreeInstanceValue, RootGraphFetchTreeInstanceValue, -} from '../../../../../../../metamodels/pure/valueSpecification/GraphFetchTree'; -import { ValueSpecification } from '../../../../../../../metamodels/pure/valueSpecification/ValueSpecification'; +} from '../../../../../../../metamodels/pure/valueSpecification/GraphFetchTree.js'; +import { ValueSpecification } from '../../../../../../../metamodels/pure/valueSpecification/ValueSpecification.js'; import { type SimpleFunctionExpression, AbstractPropertyExpression, -} from '../../../../../../../metamodels/pure/valueSpecification/SimpleFunctionExpression'; -import { GenericType } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericType'; -import { GenericTypeExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericTypeReference'; +} from '../../../../../../../metamodels/pure/valueSpecification/SimpleFunctionExpression.js'; +import { GenericType } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericType.js'; +import { GenericTypeExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/GenericTypeReference.js'; import { InstanceValue, PrimitiveInstanceValue, @@ -60,68 +60,68 @@ import { PairInstanceValue, PureListInstanceValue, CollectionInstanceValue, -} from '../../../../../../../metamodels/pure/valueSpecification/InstanceValue'; -import { Multiplicity } from '../../../../../../../metamodels/pure/packageableElements/domain/Multiplicity'; -import type { Type } from '../../../../../../../metamodels/pure/packageableElements/domain/Type'; -import { PropertyExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/PropertyReference'; +} from '../../../../../../../metamodels/pure/valueSpecification/InstanceValue.js'; +import { Multiplicity } from '../../../../../../../metamodels/pure/packageableElements/domain/Multiplicity.js'; +import type { Type } from '../../../../../../../metamodels/pure/packageableElements/domain/Type.js'; +import { PropertyExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/PropertyReference.js'; import { OptionalPackageableElementExplicitReference, PackageableElementExplicitReference, -} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; +} from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; import type { V1_ValueSpecificationVisitor, V1_ValueSpecification, -} from '../../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext'; -import type { V1_Lambda } from '../../../../model/valueSpecification/raw/V1_Lambda'; -import { V1_Variable } from '../../../../model/valueSpecification/V1_Variable'; -import { V1_ProcessingContext } from './V1_ProcessingContext'; -import type { V1_ExecutionContext } from '../../../../model/valueSpecification/raw/executionContext/V1_ExecutionContext'; -import { V1_BaseExecutionContext } from '../../../../model/valueSpecification/raw/executionContext/V1_BaseExecutionContext'; -import { V1_AnalyticsExecutionContext } from '../../../../model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext'; -import { V1_PropertyGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree'; -import { V1_Multiplicity } from '../../../../model/packageableElements/domain/V1_Multiplicity'; -import { V1_RootGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree'; -import type { V1_GraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_GraphFetchTree'; -import type { V1_AppliedFunction } from '../../../../model/valueSpecification/application/V1_AppliedFunction'; -import type { V1_AppliedProperty } from '../../../../model/valueSpecification/application/V1_AppliedProperty'; -import type { V1_AggregateValue } from '../../../../model/valueSpecification/raw/V1_AggregateValue'; -import type { V1_CBoolean } from '../../../../model/valueSpecification/raw/V1_CBoolean'; -import type { V1_CDateTime } from '../../../../model/valueSpecification/raw/V1_CDateTime'; -import type { V1_CStrictTime } from '../../../../model/valueSpecification/raw/V1_CStrictTime'; -import type { V1_CDecimal } from '../../../../model/valueSpecification/raw/V1_CDecimal'; -import type { V1_CFloat } from '../../../../model/valueSpecification/raw/V1_CFloat'; -import type { V1_CInteger } from '../../../../model/valueSpecification/raw/V1_CInteger'; -import type { V1_CLatestDate } from '../../../../model/valueSpecification/raw/V1_CLatestDate'; -import type { V1_Collection } from '../../../../model/valueSpecification/raw/V1_Collection'; -import type { V1_CStrictDate } from '../../../../model/valueSpecification/raw/V1_CStrictDate'; -import { V1_CString } from '../../../../model/valueSpecification/raw/V1_CString'; -import type { V1_EnumValue } from '../../../../model/valueSpecification/raw/V1_EnumValue'; -import type { V1_ExecutionContextInstance } from '../../../../model/valueSpecification/raw/V1_ExecutionContextInstance'; -import type { V1_KeyExpression } from '../../../../model/valueSpecification/raw/V1_KeyExpression'; -import type { V1_Pair } from '../../../../model/valueSpecification/raw/V1_Pair'; -import type { V1_Path } from '../../../../model/valueSpecification/raw/path/V1_Path'; -import type { V1_PrimitiveType } from '../../../../model/valueSpecification/raw/V1_PrimitiveType'; -import type { V1_PureList } from '../../../../model/valueSpecification/raw/V1_PureList'; -import type { V1_RuntimeInstance } from '../../../../model/valueSpecification/raw/V1_RuntimeInstance'; -import type { V1_SerializationConfig } from '../../../../model/valueSpecification/raw/V1_SerializationConfig'; -import type { V1_TDSAggregateValue } from '../../../../model/valueSpecification/raw/V1_TDSAggregateValue'; -import type { V1_TDSColumnInformation } from '../../../../model/valueSpecification/raw/V1_TDSColumnInformation'; -import type { V1_TdsOlapAggregation } from '../../../../model/valueSpecification/raw/V1_TdsOlapAggregation'; -import type { V1_TdsOlapRank } from '../../../../model/valueSpecification/raw/V1_TdsOlapRank'; -import type { V1_TDSSortInformation } from '../../../../model/valueSpecification/raw/V1_TDSSortInformation'; -import type { V1_UnitInstance } from '../../../../model/valueSpecification/raw/V1_UnitInstance'; -import type { V1_UnitType } from '../../../../model/valueSpecification/raw/V1_UnitType'; -import { V1_getAppliedProperty } from './V1_DomainBuilderHelper'; -import { Enumeration } from '../../../../../../../metamodels/pure/packageableElements/domain/Enumeration'; -import { EnumValueExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/EnumValueReference'; -import type { V1_PackageableElementPtr } from '../../../../model/valueSpecification/raw/V1_PackageableElementPtr'; -import type { V1_HackedClass } from '../../../../model/valueSpecification/raw/V1_HackedClass'; -import type { V1_HackedUnit } from '../../../../model/valueSpecification/raw/V1_HackedUnit'; -import type { V1_INTERNAL__UnknownValueSpecification } from '../../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication'; -import { INTERNAL__UnknownValueSpecification } from '../../../../../../../metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification'; -import { GraphBuilderError } from '../../../../../../../../graphManager/GraphManagerUtils'; -import { getEnumValue } from '../../../../../../../../helpers/DomainHelper'; +} from '../../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_GraphBuilderContext } from '../../../../transformation/pureGraph/to/V1_GraphBuilderContext.js'; +import type { V1_Lambda } from '../../../../model/valueSpecification/raw/V1_Lambda.js'; +import { V1_Variable } from '../../../../model/valueSpecification/V1_Variable.js'; +import { V1_ProcessingContext } from './V1_ProcessingContext.js'; +import type { V1_ExecutionContext } from '../../../../model/valueSpecification/raw/executionContext/V1_ExecutionContext.js'; +import { V1_BaseExecutionContext } from '../../../../model/valueSpecification/raw/executionContext/V1_BaseExecutionContext.js'; +import { V1_AnalyticsExecutionContext } from '../../../../model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext.js'; +import { V1_PropertyGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.js'; +import { V1_Multiplicity } from '../../../../model/packageableElements/domain/V1_Multiplicity.js'; +import { V1_RootGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree.js'; +import type { V1_GraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_GraphFetchTree.js'; +import type { V1_AppliedFunction } from '../../../../model/valueSpecification/application/V1_AppliedFunction.js'; +import type { V1_AppliedProperty } from '../../../../model/valueSpecification/application/V1_AppliedProperty.js'; +import type { V1_AggregateValue } from '../../../../model/valueSpecification/raw/V1_AggregateValue.js'; +import type { V1_CBoolean } from '../../../../model/valueSpecification/raw/V1_CBoolean.js'; +import type { V1_CDateTime } from '../../../../model/valueSpecification/raw/V1_CDateTime.js'; +import type { V1_CStrictTime } from '../../../../model/valueSpecification/raw/V1_CStrictTime.js'; +import type { V1_CDecimal } from '../../../../model/valueSpecification/raw/V1_CDecimal.js'; +import type { V1_CFloat } from '../../../../model/valueSpecification/raw/V1_CFloat.js'; +import type { V1_CInteger } from '../../../../model/valueSpecification/raw/V1_CInteger.js'; +import type { V1_CLatestDate } from '../../../../model/valueSpecification/raw/V1_CLatestDate.js'; +import type { V1_Collection } from '../../../../model/valueSpecification/raw/V1_Collection.js'; +import type { V1_CStrictDate } from '../../../../model/valueSpecification/raw/V1_CStrictDate.js'; +import { V1_CString } from '../../../../model/valueSpecification/raw/V1_CString.js'; +import type { V1_EnumValue } from '../../../../model/valueSpecification/raw/V1_EnumValue.js'; +import type { V1_ExecutionContextInstance } from '../../../../model/valueSpecification/raw/V1_ExecutionContextInstance.js'; +import type { V1_KeyExpression } from '../../../../model/valueSpecification/raw/V1_KeyExpression.js'; +import type { V1_Pair } from '../../../../model/valueSpecification/raw/V1_Pair.js'; +import type { V1_Path } from '../../../../model/valueSpecification/raw/path/V1_Path.js'; +import type { V1_PrimitiveType } from '../../../../model/valueSpecification/raw/V1_PrimitiveType.js'; +import type { V1_PureList } from '../../../../model/valueSpecification/raw/V1_PureList.js'; +import type { V1_RuntimeInstance } from '../../../../model/valueSpecification/raw/V1_RuntimeInstance.js'; +import type { V1_SerializationConfig } from '../../../../model/valueSpecification/raw/V1_SerializationConfig.js'; +import type { V1_TDSAggregateValue } from '../../../../model/valueSpecification/raw/V1_TDSAggregateValue.js'; +import type { V1_TDSColumnInformation } from '../../../../model/valueSpecification/raw/V1_TDSColumnInformation.js'; +import type { V1_TdsOlapAggregation } from '../../../../model/valueSpecification/raw/V1_TdsOlapAggregation.js'; +import type { V1_TdsOlapRank } from '../../../../model/valueSpecification/raw/V1_TdsOlapRank.js'; +import type { V1_TDSSortInformation } from '../../../../model/valueSpecification/raw/V1_TDSSortInformation.js'; +import type { V1_UnitInstance } from '../../../../model/valueSpecification/raw/V1_UnitInstance.js'; +import type { V1_UnitType } from '../../../../model/valueSpecification/raw/V1_UnitType.js'; +import { V1_getAppliedProperty } from './V1_DomainBuilderHelper.js'; +import { Enumeration } from '../../../../../../../metamodels/pure/packageableElements/domain/Enumeration.js'; +import { EnumValueExplicitReference } from '../../../../../../../metamodels/pure/packageableElements/domain/EnumValueReference.js'; +import type { V1_PackageableElementPtr } from '../../../../model/valueSpecification/raw/V1_PackageableElementPtr.js'; +import type { V1_HackedClass } from '../../../../model/valueSpecification/raw/V1_HackedClass.js'; +import type { V1_HackedUnit } from '../../../../model/valueSpecification/raw/V1_HackedUnit.js'; +import type { V1_INTERNAL__UnknownValueSpecification } from '../../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.js'; +import { INTERNAL__UnknownValueSpecification } from '../../../../../../../metamodels/pure/valueSpecification/INTERNAL__UnknownValueSpecification.js'; +import { GraphBuilderError } from '../../../../../../../../graphManager/GraphManagerUtils.js'; +import { getEnumValue } from '../../../../../../../../helpers/DomainHelper.js'; const LET_FUNCTION = 'letFunction'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationPathResolver.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationPathResolver.ts index a38b54928c9..b057c756764 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationPathResolver.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationPathResolver.ts @@ -19,62 +19,62 @@ import { assertErrorThrown, returnUndefOnError, } from '@finos/legend-shared'; -import { GRAPH_MANAGER_EVENT } from '../../../../../../../../graphManager/GraphManagerEvent'; -import type { PackageableElement } from '../../../../../../../metamodels/pure/packageableElements/PackageableElement'; -import type { PackageableElementReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference'; -import { RawLambda } from '../../../../../../../metamodels/pure/rawValueSpecification/RawLambda'; -import { isValidFullPath } from '../../../../../../../../MetaModelUtils'; -import { V1_RawLambda } from '../../../../model/rawValueSpecification/V1_RawLambda'; -import type { V1_AppliedFunction } from '../../../../model/valueSpecification/application/V1_AppliedFunction'; -import type { V1_AppliedProperty } from '../../../../model/valueSpecification/application/V1_AppliedProperty'; -import type { V1_PropertyGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree'; -import type { V1_RootGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree'; -import type { V1_Path } from '../../../../model/valueSpecification/raw/path/V1_Path'; -import type { V1_AggregateValue } from '../../../../model/valueSpecification/raw/V1_AggregateValue'; -import type { V1_CBoolean } from '../../../../model/valueSpecification/raw/V1_CBoolean'; -import type { V1_CDateTime } from '../../../../model/valueSpecification/raw/V1_CDateTime'; -import type { V1_CDecimal } from '../../../../model/valueSpecification/raw/V1_CDecimal'; -import type { V1_CFloat } from '../../../../model/valueSpecification/raw/V1_CFloat'; -import type { V1_CInteger } from '../../../../model/valueSpecification/raw/V1_CInteger'; -import type { V1_CLatestDate } from '../../../../model/valueSpecification/raw/V1_CLatestDate'; -import type { V1_Collection } from '../../../../model/valueSpecification/raw/V1_Collection'; -import type { V1_CStrictDate } from '../../../../model/valueSpecification/raw/V1_CStrictDate'; -import type { V1_CStrictTime } from '../../../../model/valueSpecification/raw/V1_CStrictTime'; -import type { V1_CString } from '../../../../model/valueSpecification/raw/V1_CString'; -import type { V1_EnumValue } from '../../../../model/valueSpecification/raw/V1_EnumValue'; -import type { V1_ExecutionContextInstance } from '../../../../model/valueSpecification/raw/V1_ExecutionContextInstance'; -import type { V1_HackedClass } from '../../../../model/valueSpecification/raw/V1_HackedClass'; -import type { V1_HackedUnit } from '../../../../model/valueSpecification/raw/V1_HackedUnit'; -import type { V1_KeyExpression } from '../../../../model/valueSpecification/raw/V1_KeyExpression'; -import type { V1_Lambda } from '../../../../model/valueSpecification/raw/V1_Lambda'; -import type { V1_PackageableElementPtr } from '../../../../model/valueSpecification/raw/V1_PackageableElementPtr'; -import type { V1_Pair } from '../../../../model/valueSpecification/raw/V1_Pair'; -import type { V1_PrimitiveType } from '../../../../model/valueSpecification/raw/V1_PrimitiveType'; -import type { V1_PureList } from '../../../../model/valueSpecification/raw/V1_PureList'; -import type { V1_RuntimeInstance } from '../../../../model/valueSpecification/raw/V1_RuntimeInstance'; -import type { V1_SerializationConfig } from '../../../../model/valueSpecification/raw/V1_SerializationConfig'; -import type { V1_TDSAggregateValue } from '../../../../model/valueSpecification/raw/V1_TDSAggregateValue'; -import type { V1_TDSColumnInformation } from '../../../../model/valueSpecification/raw/V1_TDSColumnInformation'; -import type { V1_TdsOlapAggregation } from '../../../../model/valueSpecification/raw/V1_TdsOlapAggregation'; -import type { V1_TdsOlapRank } from '../../../../model/valueSpecification/raw/V1_TdsOlapRank'; -import type { V1_TDSSortInformation } from '../../../../model/valueSpecification/raw/V1_TDSSortInformation'; -import type { V1_UnitInstance } from '../../../../model/valueSpecification/raw/V1_UnitInstance'; -import type { V1_UnitType } from '../../../../model/valueSpecification/raw/V1_UnitType'; -import type { V1_INTERNAL__UnknownValueSpecification } from '../../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication'; +import { GRAPH_MANAGER_EVENT } from '../../../../../../../../graphManager/GraphManagerEvent.js'; +import type { PackageableElement } from '../../../../../../../metamodels/pure/packageableElements/PackageableElement.js'; +import type { PackageableElementReference } from '../../../../../../../metamodels/pure/packageableElements/PackageableElementReference.js'; +import { RawLambda } from '../../../../../../../metamodels/pure/rawValueSpecification/RawLambda.js'; +import { isValidFullPath } from '../../../../../../../../MetaModelUtils.js'; +import { V1_RawLambda } from '../../../../model/rawValueSpecification/V1_RawLambda.js'; +import type { V1_AppliedFunction } from '../../../../model/valueSpecification/application/V1_AppliedFunction.js'; +import type { V1_AppliedProperty } from '../../../../model/valueSpecification/application/V1_AppliedProperty.js'; +import type { V1_PropertyGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.js'; +import type { V1_RootGraphFetchTree } from '../../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree.js'; +import type { V1_Path } from '../../../../model/valueSpecification/raw/path/V1_Path.js'; +import type { V1_AggregateValue } from '../../../../model/valueSpecification/raw/V1_AggregateValue.js'; +import type { V1_CBoolean } from '../../../../model/valueSpecification/raw/V1_CBoolean.js'; +import type { V1_CDateTime } from '../../../../model/valueSpecification/raw/V1_CDateTime.js'; +import type { V1_CDecimal } from '../../../../model/valueSpecification/raw/V1_CDecimal.js'; +import type { V1_CFloat } from '../../../../model/valueSpecification/raw/V1_CFloat.js'; +import type { V1_CInteger } from '../../../../model/valueSpecification/raw/V1_CInteger.js'; +import type { V1_CLatestDate } from '../../../../model/valueSpecification/raw/V1_CLatestDate.js'; +import type { V1_Collection } from '../../../../model/valueSpecification/raw/V1_Collection.js'; +import type { V1_CStrictDate } from '../../../../model/valueSpecification/raw/V1_CStrictDate.js'; +import type { V1_CStrictTime } from '../../../../model/valueSpecification/raw/V1_CStrictTime.js'; +import type { V1_CString } from '../../../../model/valueSpecification/raw/V1_CString.js'; +import type { V1_EnumValue } from '../../../../model/valueSpecification/raw/V1_EnumValue.js'; +import type { V1_ExecutionContextInstance } from '../../../../model/valueSpecification/raw/V1_ExecutionContextInstance.js'; +import type { V1_HackedClass } from '../../../../model/valueSpecification/raw/V1_HackedClass.js'; +import type { V1_HackedUnit } from '../../../../model/valueSpecification/raw/V1_HackedUnit.js'; +import type { V1_KeyExpression } from '../../../../model/valueSpecification/raw/V1_KeyExpression.js'; +import type { V1_Lambda } from '../../../../model/valueSpecification/raw/V1_Lambda.js'; +import type { V1_PackageableElementPtr } from '../../../../model/valueSpecification/raw/V1_PackageableElementPtr.js'; +import type { V1_Pair } from '../../../../model/valueSpecification/raw/V1_Pair.js'; +import type { V1_PrimitiveType } from '../../../../model/valueSpecification/raw/V1_PrimitiveType.js'; +import type { V1_PureList } from '../../../../model/valueSpecification/raw/V1_PureList.js'; +import type { V1_RuntimeInstance } from '../../../../model/valueSpecification/raw/V1_RuntimeInstance.js'; +import type { V1_SerializationConfig } from '../../../../model/valueSpecification/raw/V1_SerializationConfig.js'; +import type { V1_TDSAggregateValue } from '../../../../model/valueSpecification/raw/V1_TDSAggregateValue.js'; +import type { V1_TDSColumnInformation } from '../../../../model/valueSpecification/raw/V1_TDSColumnInformation.js'; +import type { V1_TdsOlapAggregation } from '../../../../model/valueSpecification/raw/V1_TdsOlapAggregation.js'; +import type { V1_TdsOlapRank } from '../../../../model/valueSpecification/raw/V1_TdsOlapRank.js'; +import type { V1_TDSSortInformation } from '../../../../model/valueSpecification/raw/V1_TDSSortInformation.js'; +import type { V1_UnitInstance } from '../../../../model/valueSpecification/raw/V1_UnitInstance.js'; +import type { V1_UnitType } from '../../../../model/valueSpecification/raw/V1_UnitType.js'; +import type { V1_INTERNAL__UnknownValueSpecification } from '../../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.js'; import type { V1_ValueSpecification, V1_ValueSpecificationVisitor, -} from '../../../../model/valueSpecification/V1_ValueSpecification'; -import type { V1_Variable } from '../../../../model/valueSpecification/V1_Variable'; +} from '../../../../model/valueSpecification/V1_ValueSpecification.js'; +import type { V1_Variable } from '../../../../model/valueSpecification/V1_Variable.js'; import { V1_serializeRawValueSpecification, V1_deserializeRawValueSpecification, -} from '../../../pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper'; +} from '../../../pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js'; import { V1_deserializeValueSpecification, V1_serializeValueSpecification, -} from '../../../pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer'; -import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext'; +} from '../../../pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.js'; +import type { V1_GraphBuilderContext } from '../V1_GraphBuilderContext.js'; class V1_ValueSpecificationPathResolver implements V1_ValueSpecificationVisitor diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts index 88769637e6a..16338402ff0 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PackageableElementSerialization.ts @@ -21,61 +21,61 @@ import { assertErrorThrown, guaranteeIsString, } from '@finos/legend-shared'; -import type { V1_PackageableConnection } from '../../model/packageableElements/connection/V1_PackageableConnection'; -import type { V1_Association } from '../../model/packageableElements/domain/V1_Association'; -import type { V1_Class } from '../../model/packageableElements/domain/V1_Class'; -import type { V1_Enumeration } from '../../model/packageableElements/domain/V1_Enumeration'; -import type { V1_Measure } from '../../model/packageableElements/domain/V1_Measure'; -import type { V1_Profile } from '../../model/packageableElements/domain/V1_Profile'; -import type { V1_FileGenerationSpecification } from '../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; -import type { V1_ConcreteFunctionDefinition } from '../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import type { V1_GenerationSpecification } from '../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; -import type { V1_Mapping } from '../../model/packageableElements/mapping/V1_Mapping'; +import type { V1_PackageableConnection } from '../../model/packageableElements/connection/V1_PackageableConnection.js'; +import type { V1_Association } from '../../model/packageableElements/domain/V1_Association.js'; +import type { V1_Class } from '../../model/packageableElements/domain/V1_Class.js'; +import type { V1_Enumeration } from '../../model/packageableElements/domain/V1_Enumeration.js'; +import type { V1_Measure } from '../../model/packageableElements/domain/V1_Measure.js'; +import type { V1_Profile } from '../../model/packageableElements/domain/V1_Profile.js'; +import type { V1_FileGenerationSpecification } from '../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; +import type { V1_ConcreteFunctionDefinition } from '../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import type { V1_GenerationSpecification } from '../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; +import type { V1_Mapping } from '../../model/packageableElements/mapping/V1_Mapping.js'; import type { V1_PackageableElement, V1_PackageableElementVisitor, -} from '../../model/packageableElements/V1_PackageableElement'; -import type { V1_PackageableRuntime } from '../../model/packageableElements/runtime/V1_PackageableRuntime'; -import type { V1_SectionIndex } from '../../model/packageableElements/section/V1_SectionIndex'; -import type { V1_Service } from '../../model/packageableElements/service/V1_Service'; -import type { V1_FlatData } from '../../model/packageableElements/store/flatData/model/V1_FlatData'; -import type { V1_Database } from '../../model/packageableElements/store/relational/model/V1_Database'; +} from '../../model/packageableElements/V1_PackageableElement.js'; +import type { V1_PackageableRuntime } from '../../model/packageableElements/runtime/V1_PackageableRuntime.js'; +import type { V1_SectionIndex } from '../../model/packageableElements/section/V1_SectionIndex.js'; +import type { V1_Service } from '../../model/packageableElements/service/V1_Service.js'; +import type { V1_FlatData } from '../../model/packageableElements/store/flatData/model/V1_FlatData.js'; +import type { V1_Database } from '../../model/packageableElements/store/relational/model/V1_Database.js'; import { V1_flatDataModelSchema, V1_FLAT_DATA_ELEMENT_PROTOCOL_TYPE, -} from './serializationHelpers/V1_StoreSerializationHelper'; +} from './serializationHelpers/V1_StoreSerializationHelper.js'; import { V1_mappingModelSchema, V1_MAPPING_ELEMENT_PROTOCOL_TYPE, -} from './serializationHelpers/V1_MappingSerializationHelper'; +} from './serializationHelpers/V1_MappingSerializationHelper.js'; import { V1_serviceModelSchema, V1_SERVICE_ELEMENT_PROTOCOL_TYPE, -} from './serializationHelpers/V1_ServiceSerializationHelper'; +} from './serializationHelpers/V1_ServiceSerializationHelper.js'; import { V1_PACKAGEABLE_RUNTIME_ELEMENT_PROTOCOL_TYPE, V1_packageableRuntimeModelSchema, -} from './serializationHelpers/V1_RuntimeSerializationHelper'; +} from './serializationHelpers/V1_RuntimeSerializationHelper.js'; import { V1_PACKAGEABLE_CONNECTION_ELEMENT_PROTOCOL_TYPE, V1_packageableConnectionModelSchema, -} from './serializationHelpers/V1_ConnectionSerializationHelper'; +} from './serializationHelpers/V1_ConnectionSerializationHelper.js'; import { V1_FILE_GENERATION_ELEMENT_PROTOCOL_TYPE, V1_fileGenerationModelSchema, -} from './serializationHelpers/V1_FileGenerationSerializationHelper'; +} from './serializationHelpers/V1_FileGenerationSerializationHelper.js'; import { V1_GENERATION_SPECIFICATION_ELEMENT_PROTOCOL_TYPE, V1_generationSpecificationsModelSchema, -} from './serializationHelpers/V1_GenerationSpecificationSerializationHelper'; +} from './serializationHelpers/V1_GenerationSpecificationSerializationHelper.js'; import { V1_SECTION_INDEX_ELEMENT_PROTOCOL_TYPE, V1_sectionIndexModelSchema, -} from './serializationHelpers/V1_SectionIndexSerializationHelper'; +} from './serializationHelpers/V1_SectionIndexSerializationHelper.js'; import { V1_databaseModelSchema, V1_DATABASE_ELEMENT_PROTOCOL_TYPE, -} from './serializationHelpers/V1_DatabaseSerializationHelper'; +} from './serializationHelpers/V1_DatabaseSerializationHelper.js'; import { V1_associationSchema, V1_ASSOCIATION_ELEMENT_PROTOCOL_TYPE, @@ -89,17 +89,17 @@ import { V1_MEASURE_ELEMENT_PROTOCOL_TYPE, V1_profileSchema, V1_PROFILE_ELEMENT_PROTOCOL_TYPE, -} from './serializationHelpers/V1_DomainSerializationHelper'; +} from './serializationHelpers/V1_DomainSerializationHelper.js'; import type { PureProtocolProcessorPlugin, V1_ElementProtocolSerializer, -} from '../../../PureProtocolProcessorPlugin'; -import { createPath } from '../../../../../../MetaModelUtils'; -import type { V1_DataElement } from '../../model/packageableElements/data/V1_DataElement'; +} from '../../../PureProtocolProcessorPlugin.js'; +import { createPath } from '../../../../../../MetaModelUtils.js'; +import type { V1_DataElement } from '../../model/packageableElements/data/V1_DataElement.js'; import { V1_dataElementModelSchema, V1_DATA_ELEMENT_PROTOCOL_TYPE, -} from './serializationHelpers/V1_DataElementSerializationHelper'; +} from './serializationHelpers/V1_DataElementSerializationHelper.js'; class V1_PackageableElementSerializer implements V1_PackageableElementVisitor> diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.ts index 556510c9805..7f972ac5587 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.ts @@ -32,22 +32,22 @@ import { assertErrorThrown, usingModelSchema, } from '@finos/legend-shared'; -import { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData'; -import { V1_PureModelContextPointer } from '../../model/context/V1_PureModelContextPointer'; -import type { V1_PackageableElement } from '../../model/packageableElements/V1_PackageableElement'; +import { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData.js'; +import { V1_PureModelContextPointer } from '../../model/context/V1_PureModelContextPointer.js'; +import type { V1_PackageableElement } from '../../model/packageableElements/V1_PackageableElement.js'; import { V1_serializePackageableElement, V1_deserializePackageableElement, -} from '../../transformation/pureProtocol/V1_PackageableElementSerialization'; -import { V1_PureModelContextComposite } from '../../model/context/V1_PureModelContextComposite'; -import { V1_Protocol } from '../../model/V1_Protocol'; -import { V1_AlloySDLC } from '../../model/context/V1_SDLC'; -import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext'; -import { V1_packageableElementPointerDeserializerSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; -import type { PureProtocolProcessorPlugin } from '../../../PureProtocolProcessorPlugin'; +} from '../../transformation/pureProtocol/V1_PackageableElementSerialization.js'; +import { V1_PureModelContextComposite } from '../../model/context/V1_PureModelContextComposite.js'; +import { V1_Protocol } from '../../model/V1_Protocol.js'; +import { V1_AlloySDLC } from '../../model/context/V1_SDLC.js'; +import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js'; +import { V1_packageableElementPointerDeserializerSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; +import type { PureProtocolProcessorPlugin } from '../../../PureProtocolProcessorPlugin.js'; import type { Entity } from '@finos/legend-model-storage'; -import { GraphDataDeserializationError } from '../../../../../../graphManager/GraphManagerUtils'; -import { V1_PureModelContextText } from '../../model/context/V1_PureModelContextText'; +import { GraphDataDeserializationError } from '../../../../../../graphManager/GraphManagerUtils.js'; +import { V1_PureModelContextText } from '../../model/context/V1_PureModelContextText.js'; enum V1_SDLCType { ALLOY = 'alloy', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.ts index d3a0e390778..430e29fdf97 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ConnectionSerializationHelper.ts @@ -33,16 +33,16 @@ import { serializeArray, deserializeArray, } from '@finos/legend-shared'; -import { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection'; -import { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection'; -import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection'; -import { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection'; -import { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection'; -import { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection'; +import { V1_ModelChainConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_ModelChainConnection.js'; +import { V1_PackageableConnection } from '../../../model/packageableElements/connection/V1_PackageableConnection.js'; +import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection.js'; +import { V1_JsonModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_JsonModelConnection.js'; +import { V1_XmlModelConnection } from '../../../model/packageableElements/store/modelToModel/connection/V1_XmlModelConnection.js'; +import { V1_FlatDataConnection } from '../../../model/packageableElements/store/flatData/connection/V1_FlatDataConnection.js'; import { type V1_DatabaseConnection, V1_RelationalDatabaseConnection, -} from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; +} from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; import { type V1_DatasourceSpecification, V1_LocalH2DataSourceSpecification, @@ -52,7 +52,7 @@ import { V1_StaticDatasourceSpecification, V1_EmbeddedH2DatasourceSpecification, V1_RedshiftDatasourceSpecification, -} from '../../../model/packageableElements/store/relational/connection/V1_DatasourceSpecification'; +} from '../../../model/packageableElements/store/relational/connection/V1_DatasourceSpecification.js'; import { type V1_AuthenticationStrategy, V1_ApiTokenAuthenticationStrategy, @@ -63,11 +63,11 @@ import { V1_DelegatedKerberosAuthenticationStrategy, V1_UsernamePasswordAuthenticationStrategy, V1_GCPWorkloadIdentityFederationAuthenticationStrategy, -} from '../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; -import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension'; -import { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer'; +} from '../../../model/packageableElements/store/relational/connection/V1_AuthenticationStrategy.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; +import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension.js'; +import { V1_ConnectionPointer } from '../../../model/packageableElements/connection/V1_ConnectionPointer.js'; export const V1_PACKAGEABLE_CONNECTION_ELEMENT_PROTOCOL_TYPE = 'connection'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.ts index 9616a0fb83d..06d8273be2a 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.ts @@ -16,9 +16,9 @@ import { primitive, createModelSchema, optional } from 'serializr'; import { SerializationFactory } from '@finos/legend-shared'; -import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity'; -import { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement'; -import { V1_SourceInformation } from '../../../model/V1_SourceInformation'; +import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js'; +import { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement.js'; +import { V1_SourceInformation } from '../../../model/V1_SourceInformation.js'; export const V1_sourceInformationSerialization = new SerializationFactory( createModelSchema(V1_SourceInformation, { diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DSLExternalFormat_ProtocolHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DSLExternalFormat_ProtocolHelper.ts index 712b5f351eb..a3d83a4e71e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DSLExternalFormat_ProtocolHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DSLExternalFormat_ProtocolHelper.ts @@ -28,12 +28,12 @@ import { serialize, deserialize, } from 'serializr'; -import { V1_ExternalFormatConnection } from '../../../model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection'; -import { V1_UrlStream } from '../../../model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream'; -import { V1_Schema } from '../../../model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema'; -import { V1_SchemaSet } from '../../../model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet'; -import { V1_Binding } from '../../../model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding'; -import { V1_ModelUnit } from '../../../model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit'; +import { V1_ExternalFormatConnection } from '../../../model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_ExternalFormatConnection.js'; +import { V1_UrlStream } from '../../../model/packageableElements/externalFormat/connection/V1_DSLExternalFormat_UrlStream.js'; +import { V1_Schema } from '../../../model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_Schema.js'; +import { V1_SchemaSet } from '../../../model/packageableElements/externalFormat/schemaSet/V1_DSLExternalFormat_SchemaSet.js'; +import { V1_Binding } from '../../../model/packageableElements/externalFormat/store/V1_DSLExternalFormat_Binding.js'; +import { V1_ModelUnit } from '../../../model/packageableElements/externalFormat/store/V1_DSLExternalFormat_ModelUnit.js'; export const V1_SCHEMA_SET_ELEMENT_PROTOCOL_TYPE = 'externalFormatSchemaSet'; export const V1_BINDING_ELEMENT_PROTOCOL_TYPE = 'binding'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.ts index 2d1b169c00b..d58cbdf125d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.ts @@ -34,25 +34,25 @@ import { optional, list, } from 'serializr'; -import type { DSLData_PureProtocolProcessorPlugin_Extension } from '../../../../DSLData_PureProtocolProcessorPlugin_Extension'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; +import type { DSLData_PureProtocolProcessorPlugin_Extension } from '../../../../DSLData_PureProtocolProcessorPlugin_Extension.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; import { type V1_EmbeddedData, V1_ExternalFormatData, V1_ModelStoreData, V1_DataElementReference, -} from '../../../model/data/V1_EmbeddedData'; +} from '../../../model/data/V1_EmbeddedData.js'; import { V1_RelationalData, V1_RelationalDataTable, V1_RelationalDataTableColumn, V1_RelationalDataTableRow, -} from '../../../model/data/V1_RelationalData'; -import { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement'; +} from '../../../model/data/V1_RelationalData.js'; +import { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js'; import { V1_stereotypePtrSchema, V1_taggedValueSchema, -} from './V1_DomainSerializationHelper'; +} from './V1_DomainSerializationHelper.js'; export const V1_DATA_ELEMENT_PROTOCOL_TYPE = 'dataElement'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.ts index 3c5acee30fa..97cee1c575d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.ts @@ -34,13 +34,13 @@ import { serializeArray, usingModelSchema, } from '@finos/legend-shared'; -import { V1_Column } from '../../../model/packageableElements/store/relational/model/V1_Column'; -import { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database'; -import { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr'; -import { V1_Schema } from '../../../model/packageableElements/store/relational/model/V1_Schema'; -import { V1_Join } from '../../../model/packageableElements/store/relational/model/V1_Join'; -import { V1_Filter } from '../../../model/packageableElements/store/relational/model/V1_Filter'; -import { V1_Table } from '../../../model/packageableElements/store/relational/model/V1_Table'; +import { V1_Column } from '../../../model/packageableElements/store/relational/model/V1_Column.js'; +import { V1_Database } from '../../../model/packageableElements/store/relational/model/V1_Database.js'; +import { V1_TablePtr } from '../../../model/packageableElements/store/relational/model/V1_TablePtr.js'; +import { V1_Schema } from '../../../model/packageableElements/store/relational/model/V1_Schema.js'; +import { V1_Join } from '../../../model/packageableElements/store/relational/model/V1_Join.js'; +import { V1_Filter } from '../../../model/packageableElements/store/relational/model/V1_Filter.js'; +import { V1_Table } from '../../../model/packageableElements/store/relational/model/V1_Table.js'; import { type V1_RelationalDataType, V1_VarChar, @@ -61,12 +61,12 @@ import { V1_Other, V1_Decimal, V1_SemiStructured, -} from '../../../model/packageableElements/store/relational/model/V1_RelationalDataType'; -import { V1_View } from '../../../model/packageableElements/store/relational/model/V1_View'; -import { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer'; -import { V1_FilterMapping } from '../../../model/packageableElements/store/relational/mapping/V1_FilterMapping'; -import { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer'; -import { V1_ColumnMapping } from '../../../model/packageableElements/store/relational/model/V1_ColumnMapping'; +} from '../../../model/packageableElements/store/relational/model/V1_RelationalDataType.js'; +import { V1_View } from '../../../model/packageableElements/store/relational/model/V1_View.js'; +import { V1_FilterPointer } from '../../../model/packageableElements/store/relational/mapping/V1_FilterPointer.js'; +import { V1_FilterMapping } from '../../../model/packageableElements/store/relational/mapping/V1_FilterMapping.js'; +import { V1_JoinPointer } from '../../../model/packageableElements/store/relational/model/V1_JoinPointer.js'; +import { V1_ColumnMapping } from '../../../model/packageableElements/store/relational/model/V1_ColumnMapping.js'; import { type V1_RelationalOperationElement, V1_DynaFunc, @@ -74,26 +74,26 @@ import { V1_Literal, V1_LiteralList, V1_TableAliasColumn, -} from '../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; +} from '../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; import { V1_deserializeMilestoning, V1_serializeMilestoning, -} from './V1_MilestoningSerializationHelper'; -import type { V1_Milestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import { V1_RelationalDatabaseConnection } from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection'; +} from './V1_MilestoningSerializationHelper.js'; +import type { V1_Milestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import { V1_RelationalDatabaseConnection } from '../../../model/packageableElements/store/relational/connection/V1_RelationalDatabaseConnection.js'; import { V1_deserializePostProcessor, V1_serializePostProcessor, -} from './V1_PostProcessorSerializationHelper'; -import type { V1_PostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor'; +} from './V1_PostProcessorSerializationHelper.js'; +import type { V1_PostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor.js'; import { V1_ConnectionType, V1_deserializeAuthenticationStrategy, V1_deserializeDatasourceSpecification, V1_serializeAuthenticationStrategy, V1_serializeDatasourceSpecification, -} from './V1_ConnectionSerializationHelper'; +} from './V1_ConnectionSerializationHelper.js'; export const V1_DATABASE_ELEMENT_PROTOCOL_TYPE = 'relational'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts index 9d164ce0a7a..98de568cb81 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DomainSerializationHelper.ts @@ -32,28 +32,28 @@ import { usingConstantValueSchema, usingModelSchema, } from '@finos/legend-shared'; -import { V1_multiplicitySchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; -import { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration'; -import { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile'; +import { V1_multiplicitySchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; +import { V1_Enumeration } from '../../../model/packageableElements/domain/V1_Enumeration.js'; +import { V1_Profile } from '../../../model/packageableElements/domain/V1_Profile.js'; import { V1_Measure, V1_Unit, -} from '../../../model/packageableElements/domain/V1_Measure'; -import { V1_Class } from '../../../model/packageableElements/domain/V1_Class'; -import { V1_Association } from '../../../model/packageableElements/domain/V1_Association'; -import { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition'; -import { V1_EnumValue } from '../../../model/packageableElements/domain/V1_EnumValue'; -import { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr'; -import { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr'; -import { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue'; -import { V1_Property } from '../../../model/packageableElements/domain/V1_Property'; -import { V1_DerivedProperty } from '../../../model/packageableElements/domain/V1_DerivedProperty'; -import { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer'; -import { V1_Constraint } from '../../../model/packageableElements/domain/V1_Constraint'; +} from '../../../model/packageableElements/domain/V1_Measure.js'; +import { V1_Class } from '../../../model/packageableElements/domain/V1_Class.js'; +import { V1_Association } from '../../../model/packageableElements/domain/V1_Association.js'; +import { V1_ConcreteFunctionDefinition } from '../../../model/packageableElements/function/V1_ConcreteFunctionDefinition.js'; +import { V1_EnumValue } from '../../../model/packageableElements/domain/V1_EnumValue.js'; +import { V1_StereotypePtr } from '../../../model/packageableElements/domain/V1_StereotypePtr.js'; +import { V1_TagPtr } from '../../../model/packageableElements/domain/V1_TagPtr.js'; +import { V1_TaggedValue } from '../../../model/packageableElements/domain/V1_TaggedValue.js'; +import { V1_Property } from '../../../model/packageableElements/domain/V1_Property.js'; +import { V1_DerivedProperty } from '../../../model/packageableElements/domain/V1_DerivedProperty.js'; +import { V1_PropertyPointer } from '../../../model/packageableElements/domain/V1_PropertyPointer.js'; +import { V1_Constraint } from '../../../model/packageableElements/domain/V1_Constraint.js'; import { V1_rawLambdaModelSchema, V1_rawVariableModelSchema, -} from './V1_RawValueSpecificationSerializationHelper'; +} from './V1_RawValueSpecificationSerializationHelper.js'; export const V1_CLASS_ELEMENT_PROTOCOL_TYPE = 'class'; export const V1_PROFILE_ELEMENT_PROTOCOL_TYPE = 'profile'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FileGenerationSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FileGenerationSerializationHelper.ts index 34d0f3fb1e2..29bc08114f3 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FileGenerationSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_FileGenerationSerializationHelper.ts @@ -19,8 +19,8 @@ import { usingConstantValueSchema, usingModelSchema, } from '@finos/legend-shared'; -import { V1_ConfigurationProperty } from '../../../model/packageableElements/fileGeneration/V1_ConfigurationProperty'; -import { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification'; +import { V1_ConfigurationProperty } from '../../../model/packageableElements/fileGeneration/V1_ConfigurationProperty.js'; +import { V1_FileGenerationSpecification } from '../../../model/packageableElements/fileGeneration/V1_FileGenerationSpecification.js'; export const V1_FILE_GENERATION_ELEMENT_PROTOCOL_TYPE = 'fileGeneration'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_GenerationSpecificationSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_GenerationSpecificationSerializationHelper.ts index 0750e63d0d4..22c12135b13 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_GenerationSpecificationSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_GenerationSpecificationSerializationHelper.ts @@ -21,11 +21,11 @@ import { usingModelSchema, usingConstantValueSchema, } from '@finos/legend-shared'; -import { V1_packageableElementPointerDeserializerSchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; +import { V1_packageableElementPointerDeserializerSchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; import { V1_GenerationSpecification, V1_GenerationTreeNode, -} from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification'; +} from '../../../model/packageableElements/generationSpecification/V1_GenerationSpecification.js'; export const V1_GENERATION_SPECIFICATION_ELEMENT_PROTOCOL_TYPE = 'generationSpecification'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.ts index 6880b43dac1..014647cc211 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MappingSerializationHelper.ts @@ -41,67 +41,67 @@ import { usingModelSchema, optionalCustom, } from '@finos/legend-shared'; -import { PRIMITIVE_TYPE } from '../../../../../../../MetaModelConst'; -import type { V1_InputData } from '../../../model/packageableElements/mapping/V1_InputData'; -import { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping'; -import { V1_MappingTest } from '../../../model/packageableElements/mapping/V1_MappingTest'; +import { PRIMITIVE_TYPE } from '../../../../../../../MetaModelConst.js'; +import type { V1_InputData } from '../../../model/packageableElements/mapping/V1_InputData.js'; +import { V1_Mapping } from '../../../model/packageableElements/mapping/V1_Mapping.js'; +import { V1_MappingTest } from '../../../model/packageableElements/mapping/V1_MappingTest.js'; import { V1_multiplicitySchema, V1_packageableElementPointerDeserializerSchema, -} from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; -import { V1_propertyPointerModelSchema } from './V1_DomainSerializationHelper'; -import { V1_FlatDataInputData } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataInputData'; -import { V1_ObjectInputData } from '../../../model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData'; -import { V1_ExpectedOutputMappingTestAssert } from '../../../model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert'; -import type { V1_MappingTestAssert } from '../../../model/packageableElements/mapping/V1_MappingTestAssert'; -import type { V1_AssociationMapping } from '../../../model/packageableElements/mapping/V1_AssociationMapping'; -import type { V1_PropertyMapping } from '../../../model/packageableElements/mapping/V1_PropertyMapping'; -import { V1_RelationalAssociationMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping'; -import { V1_LocalMappingPropertyInfo } from '../../../model/packageableElements/mapping/V1_LocalMappingPropertyInfo'; -import { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping'; +} from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; +import { V1_propertyPointerModelSchema } from './V1_DomainSerializationHelper.js'; +import { V1_FlatDataInputData } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataInputData.js'; +import { V1_ObjectInputData } from '../../../model/packageableElements/store/modelToModel/mapping/V1_ObjectInputData.js'; +import { V1_ExpectedOutputMappingTestAssert } from '../../../model/packageableElements/mapping/V1_ExpectedOutputMappingTestAssert.js'; +import type { V1_MappingTestAssert } from '../../../model/packageableElements/mapping/V1_MappingTestAssert.js'; +import type { V1_AssociationMapping } from '../../../model/packageableElements/mapping/V1_AssociationMapping.js'; +import type { V1_PropertyMapping } from '../../../model/packageableElements/mapping/V1_PropertyMapping.js'; +import { V1_RelationalAssociationMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalAssociationMapping.js'; +import { V1_LocalMappingPropertyInfo } from '../../../model/packageableElements/mapping/V1_LocalMappingPropertyInfo.js'; +import { V1_RelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalPropertyMapping.js'; import { V1_serializeRelationalOperationElement, V1_deserializeRelationalOperationElement, V1_filterMappingModelSchema, V1_tablePtrModelSchema, -} from './V1_DatabaseSerializationHelper'; -import { V1_MappingInclude } from '../../../model/packageableElements/mapping/V1_MappingInclude'; +} from './V1_DatabaseSerializationHelper.js'; +import { V1_MappingInclude } from '../../../model/packageableElements/mapping/V1_MappingInclude.js'; import { type V1_EnumValueMappingSourceValue, V1_EnumValueMappingEnumSourceValue, V1_EnumValueMappingIntegerSourceValue, V1_EnumValueMappingStringSourceValue, V1_EnumValueMapping, -} from '../../../model/packageableElements/mapping/V1_EnumValueMapping'; -import { V1_EnumerationMapping } from '../../../model/packageableElements/mapping/V1_EnumerationMapping'; -import type { V1_ClassMapping } from '../../../model/packageableElements/mapping/V1_ClassMapping'; -import { V1_OperationClassMapping } from '../../../model/packageableElements/mapping/V1_OperationClassMapping'; -import { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping'; -import { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping'; -import { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping'; -import { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping'; -import { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping'; -import { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping'; -import { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping'; -import { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping'; -import { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping'; -import { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping'; -import { V1_rawLambdaModelSchema } from './V1_RawValueSpecificationSerializationHelper'; -import { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping'; -import { V1_AggregateSetImplementationContainer } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer'; -import { V1_AggregateSpecification } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification'; -import { V1_AggregateFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction'; -import { V1_GroupByFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction'; -import { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping'; -import type { V1_AbstractFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_AbstractFlatDataPropertyMapping'; -import { V1_XStorePropertyMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStorePropertyMapping'; -import { V1_XStoreAssociationMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping'; -import { V1_RelationalInputData } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalInputData'; -import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import { V1_BindingTransformer } from '../../../model/packageableElements/externalFormat/store/V1_BindingTransformer'; -import { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping'; -import type { V1_RelationalOperationElement } from '../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement'; +} from '../../../model/packageableElements/mapping/V1_EnumValueMapping.js'; +import { V1_EnumerationMapping } from '../../../model/packageableElements/mapping/V1_EnumerationMapping.js'; +import type { V1_ClassMapping } from '../../../model/packageableElements/mapping/V1_ClassMapping.js'; +import { V1_OperationClassMapping } from '../../../model/packageableElements/mapping/V1_OperationClassMapping.js'; +import { V1_PureInstanceClassMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PureInstanceClassMapping.js'; +import { V1_PurePropertyMapping } from '../../../model/packageableElements/store/modelToModel/mapping/V1_PurePropertyMapping.js'; +import { V1_FlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_FlatDataPropertyMapping.js'; +import { V1_EmbeddedFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_EmbeddedFlatDataPropertyMapping.js'; +import { V1_RootFlatDataClassMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_RootFlatDataClassMapping.js'; +import { V1_RootRelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RootRelationalClassMapping.js'; +import { V1_RelationalClassMapping } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalClassMapping.js'; +import { V1_EmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_EmbeddedRelationalPropertyMapping.js'; +import { V1_OtherwiseEmbeddedRelationalPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_OtherwiseEmbeddedRelationalPropertyMapping.js'; +import { V1_InlineEmbeddedPropertyMapping } from '../../../model/packageableElements/store/relational/mapping/V1_InlineEmbeddedPropertyMapping.js'; +import { V1_rawLambdaModelSchema } from './V1_RawValueSpecificationSerializationHelper.js'; +import { V1_AggregationAwareClassMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwareClassMapping.js'; +import { V1_AggregateSetImplementationContainer } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSetImplementationContainer.js'; +import { V1_AggregateSpecification } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateSpecification.js'; +import { V1_AggregateFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregateFunction.js'; +import { V1_GroupByFunction } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_GroupByFunction.js'; +import { V1_AggregationAwarePropertyMapping } from '../../../model/packageableElements/store/relational/mapping/aggregationAware/V1_AggregationAwarePropertyMapping.js'; +import type { V1_AbstractFlatDataPropertyMapping } from '../../../model/packageableElements/store/flatData/mapping/V1_AbstractFlatDataPropertyMapping.js'; +import { V1_XStorePropertyMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStorePropertyMapping.js'; +import { V1_XStoreAssociationMapping } from '../../../model/packageableElements/mapping/xStore/V1_XStoreAssociationMapping.js'; +import { V1_RelationalInputData } from '../../../model/packageableElements/store/relational/mapping/V1_RelationalInputData.js'; +import type { DSLMapping_PureProtocolProcessorPlugin_Extension } from '../../../../DSLMapping_PureProtocolProcessorPlugin_Extension.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import { V1_BindingTransformer } from '../../../model/packageableElements/externalFormat/store/V1_BindingTransformer.js'; +import { V1_MergeOperationClassMapping } from '../../../model/packageableElements/mapping/V1_MergeOperationClassMapping.js'; +import type { V1_RelationalOperationElement } from '../../../model/packageableElements/store/relational/model/V1_RelationalOperationElement.js'; enum V1_ClassMappingType { OPERATION = 'operation', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MilestoningSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MilestoningSerializationHelper.ts index eebf51f622e..c06870e395b 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MilestoningSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_MilestoningSerializationHelper.ts @@ -26,16 +26,16 @@ import { primitive, serialize, } from 'serializr'; -import { V1_BusinessMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning'; -import { V1_BusinessSnapshotMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning'; -import type { V1_Milestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning'; -import { V1_ProcessingMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; +import { V1_BusinessMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessMilestoning.js'; +import { V1_BusinessSnapshotMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_BusinessSnapshotMilestoning.js'; +import type { V1_Milestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_Milestoning.js'; +import { V1_ProcessingMilestoning } from '../../../model/packageableElements/store/relational/model/milestoning/V1_ProcessingMilestoning.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; import { V1_deserializeRawValueSpecification, V1_serializeRawValueSpecification, -} from './V1_RawValueSpecificationSerializationHelper'; +} from './V1_RawValueSpecificationSerializationHelper.js'; enum V1_MilestoningType { BUSINESS_MILESTONING = 'businessMilestoning', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_PostProcessorSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_PostProcessorSerializationHelper.ts index 166215dddd1..55e8dcd983e 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_PostProcessorSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_PostProcessorSerializationHelper.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { V1_PostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor'; +import type { V1_PostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_PostProcessor.js'; import { createModelSchema, deserialize, @@ -27,16 +27,16 @@ import { type V1_Mapper, V1_SchemaNameMapper, V1_TableNameMapper, -} from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_Mapper'; +} from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_Mapper.js'; import { type PlainObject, usingConstantValueSchema, UnsupportedOperationError, usingModelSchema, } from '@finos/legend-shared'; -import { V1_MapperPostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension'; +import { V1_MapperPostProcessor } from '../../../model/packageableElements/store/relational/connection/postprocessor/V1_MapperPostProcessor.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import type { StoreRelational_PureProtocolProcessorPlugin_Extension } from '../../../../StoreRelational_PureProtocolProcessorPlugin_Extension.js'; enum V1_MapperType { TABLE = 'table', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.ts index 15c504aded4..07d5cba11f4 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.ts @@ -31,16 +31,16 @@ import { UnsupportedOperationError, usingModelSchema, } from '@finos/legend-shared'; -import { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda'; +import { V1_RawLambda } from '../../../model/rawValueSpecification/V1_RawLambda.js'; import type { V1_RawValueSpecification, V1_RawValueSpecificationVisitor, -} from '../../../model/rawValueSpecification/V1_RawValueSpecification'; -import { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable'; -import { V1_multiplicitySchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; -import { V1_RawBaseExecutionContext } from '../../../model/rawValueSpecification/V1_RawExecutionContext'; -import { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue'; -import { PRIMITIVE_TYPE } from '../../../../../../../MetaModelConst'; +} from '../../../model/rawValueSpecification/V1_RawValueSpecification.js'; +import { V1_RawVariable } from '../../../model/rawValueSpecification/V1_RawVariable.js'; +import { V1_multiplicitySchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; +import { V1_RawBaseExecutionContext } from '../../../model/rawValueSpecification/V1_RawExecutionContext.js'; +import { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue.js'; +import { PRIMITIVE_TYPE } from '../../../../../../../MetaModelConst.js'; enum V1_RawExecutionContextType { BASE_EXECUTION_CONTEXT = 'BaseExecutionContext', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts index ed1d2e31082..f6e059c0e7c 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts @@ -29,8 +29,8 @@ import { UnsupportedOperationError, usingModelSchema, } from '@finos/legend-shared'; -import { V1_packageableElementPointerDeserializerSchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper'; -import { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime'; +import { V1_packageableElementPointerDeserializerSchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js'; +import { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js'; import { type V1_Runtime, V1_EngineRuntime, @@ -38,12 +38,12 @@ import { V1_LegacyRuntime, V1_RuntimePointer, V1_StoreConnections, -} from '../../../model/packageableElements/runtime/V1_Runtime'; +} from '../../../model/packageableElements/runtime/V1_Runtime.js'; import { V1_serializeConnectionValue, V1_deserializeConnectionValue, -} from './V1_ConnectionSerializationHelper'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; +} from './V1_ConnectionSerializationHelper.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; export const V1_PACKAGEABLE_RUNTIME_ELEMENT_PROTOCOL_TYPE = 'runtime'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_SectionIndexSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_SectionIndexSerializationHelper.ts index dbd50369054..9bd81faa72d 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_SectionIndexSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_SectionIndexSerializationHelper.ts @@ -31,8 +31,8 @@ import { type V1_Section, V1_ImportAwareCodeSection, V1_DefaultCodeSection, -} from '../../../model/packageableElements/section/V1_Section'; -import { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex'; +} from '../../../model/packageableElements/section/V1_Section.js'; +import { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js'; export const V1_SECTION_INDEX_ELEMENT_PROTOCOL_TYPE = 'sectionIndex'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts index 652bddf7c91..228ba71c735 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ServiceSerializationHelper.ts @@ -38,31 +38,31 @@ import { V1_KeyedExecutionParameter, V1_PureMultiExecution, V1_PureSingleExecution, -} from '../../../model/packageableElements/service/V1_ServiceExecution'; -import { V1_Service } from '../../../model/packageableElements/service/V1_Service'; -import { V1_rawLambdaModelSchema } from './V1_RawValueSpecificationSerializationHelper'; +} from '../../../model/packageableElements/service/V1_ServiceExecution.js'; +import { V1_Service } from '../../../model/packageableElements/service/V1_Service.js'; +import { V1_rawLambdaModelSchema } from './V1_RawValueSpecificationSerializationHelper.js'; import { type V1_Runtime, V1_EngineRuntime, V1_LegacyRuntime, V1_RuntimePointer, -} from '../../../model/packageableElements/runtime/V1_Runtime'; +} from '../../../model/packageableElements/runtime/V1_Runtime.js'; import { V1_runtimePointerModelSchema, V1_RuntimeType, -} from './V1_RuntimeSerializationHelper'; -import { V1_ServiceTest } from '../../../model/packageableElements/service/V1_ServiceTest'; +} from './V1_RuntimeSerializationHelper.js'; +import { V1_ServiceTest } from '../../../model/packageableElements/service/V1_ServiceTest.js'; import { V1_stereotypePtrSchema, V1_taggedValueSchema, -} from './V1_DomainSerializationHelper'; -import { V1_ConnectionTestData } from '../../../model/packageableElements/service/V1_ConnectionTestData'; +} from './V1_DomainSerializationHelper.js'; +import { V1_ConnectionTestData } from '../../../model/packageableElements/service/V1_ConnectionTestData.js'; import { V1_deserializeEmbeddedDataType, V1_serializeEmbeddedDataType, -} from './V1_DataElementSerializationHelper'; -import { V1_ParameterValue } from '../../../model/packageableElements/service/V1_ParameterValue'; -import { V1_TestData } from '../../../model/packageableElements/service/V1_TestData'; +} from './V1_DataElementSerializationHelper.js'; +import { V1_ParameterValue } from '../../../model/packageableElements/service/V1_ParameterValue.js'; +import { V1_TestData } from '../../../model/packageableElements/service/V1_TestData.js'; import { V1_AtomicTestType, V1_deserializeAtomicTest, @@ -72,17 +72,17 @@ import { V1_serializeTestAssertion, V1_serializeTestSuite, V1_TestSuiteType, -} from './V1_TestSerializationHelper'; -import { V1_ServiceTestSuite } from '../../../model/packageableElements/service/V1_ServiceTestSuite'; +} from './V1_TestSerializationHelper.js'; +import { V1_ServiceTestSuite } from '../../../model/packageableElements/service/V1_ServiceTestSuite.js'; import { type V1_DEPRECATED__ServiceTest, V1_DEPRECATED__KeyedSingleExecutionTest, V1_DEPRECATED__MultiExecutionTest, V1_DEPRECATED__SingleExecutionTest, V1_DEPRECATED__TestContainer, -} from '../../../model/packageableElements/service/V1_DEPRECATED__ServiceTest'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import type { V1_TestSuite } from '../../../model/test/V1_TestSuite'; +} from '../../../model/packageableElements/service/V1_DEPRECATED__ServiceTest.js'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import type { V1_TestSuite } from '../../../model/test/V1_TestSuite.js'; export const V1_SERVICE_ELEMENT_PROTOCOL_TYPE = 'service'; diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.ts index 90b55f7c200..9f2031eeec6 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_StoreSerializationHelper.ts @@ -32,8 +32,8 @@ import { serializeArray, usingModelSchema, } from '@finos/legend-shared'; -import { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData'; -import { V1_FlatDataProperty } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataProperty'; +import { V1_FlatData } from '../../../model/packageableElements/store/flatData/model/V1_FlatData.js'; +import { V1_FlatDataProperty } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataProperty.js'; import { type V1_FlatDataDataType, V1_FlatDataDecimal, @@ -48,8 +48,8 @@ import { V1_FlatDataNumber, V1_FlatDataRecordField, V1_FlatDataString, -} from '../../../model/packageableElements/store/flatData/model/V1_FlatDataDataType'; -import { V1_FlatDataSection } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataSection'; +} from '../../../model/packageableElements/store/flatData/model/V1_FlatDataDataType.js'; +import { V1_FlatDataSection } from '../../../model/packageableElements/store/flatData/model/V1_FlatDataSection.js'; // ------------------------------------------ Flat Data ------------------------------------------ diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts index c4eb0fda085..75eb6cb17c9 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts @@ -28,38 +28,38 @@ import { primitive, serialize, } from 'serializr'; -import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin'; -import { V1_ServiceTest } from '../../../model/packageableElements/service/V1_ServiceTest'; -import { V1_ServiceTestSuite } from '../../../model/packageableElements/service/V1_ServiceTestSuite'; -import { V1_AssertFail } from '../../../model/test/assertion/status/V1_AssertFail'; -import type { V1_AssertionStatus } from '../../../model/test/assertion/status/V1_AssertionStatus'; -import { V1_AssertPass } from '../../../model/test/assertion/status/V1_AssertPass'; -import { V1_EqualToJsonAssertFail } from '../../../model/test/assertion/status/V1_EqualToJsonAssertFail'; -import { V1_EqualTo } from '../../../model/test/assertion/V1_EqualTo'; -import { V1_EqualToJson } from '../../../model/test/assertion/V1_EqualToJson'; +import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js'; +import { V1_ServiceTest } from '../../../model/packageableElements/service/V1_ServiceTest.js'; +import { V1_ServiceTestSuite } from '../../../model/packageableElements/service/V1_ServiceTestSuite.js'; +import { V1_AssertFail } from '../../../model/test/assertion/status/V1_AssertFail.js'; +import type { V1_AssertionStatus } from '../../../model/test/assertion/status/V1_AssertionStatus.js'; +import { V1_AssertPass } from '../../../model/test/assertion/status/V1_AssertPass.js'; +import { V1_EqualToJsonAssertFail } from '../../../model/test/assertion/status/V1_EqualToJsonAssertFail.js'; +import { V1_EqualTo } from '../../../model/test/assertion/V1_EqualTo.js'; +import { V1_EqualToJson } from '../../../model/test/assertion/V1_EqualToJson.js'; import { V1_EqualToTDS, V1_RelationalTDS, -} from '../../../model/test/assertion/V1_EqualToTDS'; -import type { V1_TestAssertion } from '../../../model/test/assertion/V1_TestAssertion'; +} from '../../../model/test/assertion/V1_EqualToTDS.js'; +import type { V1_TestAssertion } from '../../../model/test/assertion/V1_TestAssertion.js'; import { type V1_TestResult, V1_TestError, V1_TestFailed, V1_TestPassed, -} from '../../../model/test/result/V1_TestResult'; -import type { V1_AtomicTest } from '../../../model/test/V1_AtomicTest'; -import { V1_AtomicTestId } from '../../../model/test/V1_AtomicTestId'; -import type { V1_TestSuite } from '../../../model/test/V1_TestSuite'; +} from '../../../model/test/result/V1_TestResult.js'; +import type { V1_AtomicTest } from '../../../model/test/V1_AtomicTest.js'; +import { V1_AtomicTestId } from '../../../model/test/V1_AtomicTestId.js'; +import type { V1_TestSuite } from '../../../model/test/V1_TestSuite.js'; import { V1_externalFormatDataModelSchema, V1_relationalDataTableColumnSchema, V1_relationalDataTableRowModelSchema, -} from './V1_DataElementSerializationHelper'; +} from './V1_DataElementSerializationHelper.js'; import { V1_serviceTestModelSchema, V1_serviceTestSuiteModelSchema, -} from './V1_ServiceSerializationHelper'; +} from './V1_ServiceSerializationHelper.js'; enum V1_AssertionStatusType { ASSERT_FAIL = 'assertFail', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.ts index d601f96cd12..bcc783e04ee 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.ts @@ -30,56 +30,56 @@ import { UnsupportedOperationError, usingModelSchema, } from '@finos/legend-shared'; -import { V1_Variable } from '../../../model/valueSpecification/V1_Variable'; -import { V1_RootGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree'; -import { V1_Lambda } from '../../../model/valueSpecification/raw/V1_Lambda'; -import { V1_EnumValue } from '../../../model/valueSpecification/raw/V1_EnumValue'; -import { V1_Path } from '../../../model/valueSpecification/raw/path/V1_Path'; -import { V1_AppliedFunction } from '../../../model/valueSpecification/application/V1_AppliedFunction'; -import { V1_Collection } from '../../../model/valueSpecification/raw/V1_Collection'; -import { V1_CDecimal } from '../../../model/valueSpecification/raw/V1_CDecimal'; -import { V1_CInteger } from '../../../model/valueSpecification/raw/V1_CInteger'; -import { V1_CString } from '../../../model/valueSpecification/raw/V1_CString'; -import { V1_CFloat } from '../../../model/valueSpecification/raw/V1_CFloat'; -import { V1_CDateTime } from '../../../model/valueSpecification/raw/V1_CDateTime'; -import { V1_CStrictDate } from '../../../model/valueSpecification/raw/V1_CStrictDate'; -import { V1_CStrictTime } from '../../../model/valueSpecification/raw/V1_CStrictTime'; -import { V1_CLatestDate } from '../../../model/valueSpecification/raw/V1_CLatestDate'; -import { V1_CBoolean } from '../../../model/valueSpecification/raw/V1_CBoolean'; -import { V1_AggregateValue } from '../../../model/valueSpecification/raw/V1_AggregateValue'; -import { V1_Pair } from '../../../model/valueSpecification/raw/V1_Pair'; -import { V1_RuntimeInstance } from '../../../model/valueSpecification/raw/V1_RuntimeInstance'; -import { V1_ExecutionContextInstance } from '../../../model/valueSpecification/raw/V1_ExecutionContextInstance'; -import { V1_PropertyGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree'; -import { V1_SerializationConfig } from '../../../model/valueSpecification/raw/V1_SerializationConfig'; -import { V1_UnitType } from '../../../model/valueSpecification/raw/V1_UnitType'; -import { V1_KeyExpression } from '../../../model/valueSpecification/raw/V1_KeyExpression'; -import { V1_PrimitiveType } from '../../../model/valueSpecification/raw/V1_PrimitiveType'; -import { V1_UnitInstance } from '../../../model/valueSpecification/raw/V1_UnitInstance'; -import { V1_PureList } from '../../../model/valueSpecification/raw/V1_PureList'; -import { V1_TDSAggregateValue } from '../../../model/valueSpecification/raw/V1_TDSAggregateValue'; -import { V1_TDSColumnInformation } from '../../../model/valueSpecification/raw/V1_TDSColumnInformation'; -import { V1_TDSSortInformation } from '../../../model/valueSpecification/raw/V1_TDSSortInformation'; -import { V1_TdsOlapRank } from '../../../model/valueSpecification/raw/V1_TdsOlapRank'; -import { V1_TdsOlapAggregation } from '../../../model/valueSpecification/raw/V1_TdsOlapAggregation'; -import { V1_multiplicitySchema } from './V1_CoreSerializationHelper'; +import { V1_Variable } from '../../../model/valueSpecification/V1_Variable.js'; +import { V1_RootGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_RootGraphFetchTree.js'; +import { V1_Lambda } from '../../../model/valueSpecification/raw/V1_Lambda.js'; +import { V1_EnumValue } from '../../../model/valueSpecification/raw/V1_EnumValue.js'; +import { V1_Path } from '../../../model/valueSpecification/raw/path/V1_Path.js'; +import { V1_AppliedFunction } from '../../../model/valueSpecification/application/V1_AppliedFunction.js'; +import { V1_Collection } from '../../../model/valueSpecification/raw/V1_Collection.js'; +import { V1_CDecimal } from '../../../model/valueSpecification/raw/V1_CDecimal.js'; +import { V1_CInteger } from '../../../model/valueSpecification/raw/V1_CInteger.js'; +import { V1_CString } from '../../../model/valueSpecification/raw/V1_CString.js'; +import { V1_CFloat } from '../../../model/valueSpecification/raw/V1_CFloat.js'; +import { V1_CDateTime } from '../../../model/valueSpecification/raw/V1_CDateTime.js'; +import { V1_CStrictDate } from '../../../model/valueSpecification/raw/V1_CStrictDate.js'; +import { V1_CStrictTime } from '../../../model/valueSpecification/raw/V1_CStrictTime.js'; +import { V1_CLatestDate } from '../../../model/valueSpecification/raw/V1_CLatestDate.js'; +import { V1_CBoolean } from '../../../model/valueSpecification/raw/V1_CBoolean.js'; +import { V1_AggregateValue } from '../../../model/valueSpecification/raw/V1_AggregateValue.js'; +import { V1_Pair } from '../../../model/valueSpecification/raw/V1_Pair.js'; +import { V1_RuntimeInstance } from '../../../model/valueSpecification/raw/V1_RuntimeInstance.js'; +import { V1_ExecutionContextInstance } from '../../../model/valueSpecification/raw/V1_ExecutionContextInstance.js'; +import { V1_PropertyGraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_PropertyGraphFetchTree.js'; +import { V1_SerializationConfig } from '../../../model/valueSpecification/raw/V1_SerializationConfig.js'; +import { V1_UnitType } from '../../../model/valueSpecification/raw/V1_UnitType.js'; +import { V1_KeyExpression } from '../../../model/valueSpecification/raw/V1_KeyExpression.js'; +import { V1_PrimitiveType } from '../../../model/valueSpecification/raw/V1_PrimitiveType.js'; +import { V1_UnitInstance } from '../../../model/valueSpecification/raw/V1_UnitInstance.js'; +import { V1_PureList } from '../../../model/valueSpecification/raw/V1_PureList.js'; +import { V1_TDSAggregateValue } from '../../../model/valueSpecification/raw/V1_TDSAggregateValue.js'; +import { V1_TDSColumnInformation } from '../../../model/valueSpecification/raw/V1_TDSColumnInformation.js'; +import { V1_TDSSortInformation } from '../../../model/valueSpecification/raw/V1_TDSSortInformation.js'; +import { V1_TdsOlapRank } from '../../../model/valueSpecification/raw/V1_TdsOlapRank.js'; +import { V1_TdsOlapAggregation } from '../../../model/valueSpecification/raw/V1_TdsOlapAggregation.js'; +import { V1_multiplicitySchema } from './V1_CoreSerializationHelper.js'; import type { V1_ValueSpecification, V1_ValueSpecificationVisitor, -} from '../../../model/valueSpecification/V1_ValueSpecification'; -import { V1_PropertyPathElement } from '../../../model/valueSpecification/raw/path/V1_PropertyPathElement'; -import type { V1_PathElement } from '../../../model/valueSpecification/raw/path/V1_PathElement'; -import { V1_AppliedProperty } from '../../../model/valueSpecification/application/V1_AppliedProperty'; -import { V1_serializeRuntime } from './V1_RuntimeSerializationHelper'; -import type { V1_ExecutionContext } from '../../../model/valueSpecification/raw/executionContext/V1_ExecutionContext'; -import { V1_AnalyticsExecutionContext } from '../../../model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext'; -import { V1_BaseExecutionContext } from '../../../model/valueSpecification/raw/executionContext/V1_BaseExecutionContext'; -import type { V1_GraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_GraphFetchTree'; -import { V1_PackageableElementPtr } from '../../../model/valueSpecification/raw/V1_PackageableElementPtr'; -import { V1_HackedClass } from '../../../model/valueSpecification/raw/V1_HackedClass'; -import { V1_HackedUnit } from '../../../model/valueSpecification/raw/V1_HackedUnit'; -import type { V1_INTERNAL__UnknownValueSpecification } from '../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication'; -import { V1_EngineRuntime } from '../../../model/packageableElements/runtime/V1_Runtime'; +} from '../../../model/valueSpecification/V1_ValueSpecification.js'; +import { V1_PropertyPathElement } from '../../../model/valueSpecification/raw/path/V1_PropertyPathElement.js'; +import type { V1_PathElement } from '../../../model/valueSpecification/raw/path/V1_PathElement.js'; +import { V1_AppliedProperty } from '../../../model/valueSpecification/application/V1_AppliedProperty.js'; +import { V1_serializeRuntime } from './V1_RuntimeSerializationHelper.js'; +import type { V1_ExecutionContext } from '../../../model/valueSpecification/raw/executionContext/V1_ExecutionContext.js'; +import { V1_AnalyticsExecutionContext } from '../../../model/valueSpecification/raw/executionContext/V1_AnalyticsExecutionContext.js'; +import { V1_BaseExecutionContext } from '../../../model/valueSpecification/raw/executionContext/V1_BaseExecutionContext.js'; +import type { V1_GraphFetchTree } from '../../../model/valueSpecification/raw/graph/V1_GraphFetchTree.js'; +import { V1_PackageableElementPtr } from '../../../model/valueSpecification/raw/V1_PackageableElementPtr.js'; +import { V1_HackedClass } from '../../../model/valueSpecification/raw/V1_HackedClass.js'; +import { V1_HackedUnit } from '../../../model/valueSpecification/raw/V1_HackedUnit.js'; +import type { V1_INTERNAL__UnknownValueSpecification } from '../../../model/valueSpecification/V1_INTERNAL__UnknownValueSpecfication.js'; +import { V1_EngineRuntime } from '../../../model/packageableElements/runtime/V1_Runtime.js'; enum V1_PathElementType { PROPERTY_PATH_ELEMENT = 'propertyPath', diff --git a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.ts b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.ts index 92dfd1231dd..3914e39d4c2 100644 --- a/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.ts +++ b/packages/legend-graph/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/executionPlan/V1_ExecutionPlanSerializationHelper.ts @@ -34,21 +34,21 @@ import { usingConstantValueSchema, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { V1_ExecutionPlan } from '../../../../model/executionPlan/V1_ExecutionPlan'; -import { V1_SimpleExecutionPlan } from '../../../../model/executionPlan/V1_SimpleExecutionPlan'; -import { V1_Protocol } from '../../../../model/V1_Protocol'; -import { V1_DataTypeResultType } from '../../../../model/executionPlan/results/V1_DataTypeResultType'; -import { V1_TDSResultType } from '../../../../model/executionPlan/results/V1_TDSResultType'; -import { V1_TDSColumn } from '../../../../model/executionPlan/results/V1_TDSColumn'; -import type { V1_ResultType } from '../../../../model/executionPlan/results/V1_ResultType'; -import { V1_multiplicitySchema } from '../V1_CoreSerializationHelper'; -import { V1_RelationalTDSInstantiationExecutionNode } from '../../../../model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode'; -import { V1_SQLExecutionNode } from '../../../../model/executionPlan/nodes/V1_SQLExecutionNode'; -import { V1_SQLResultColumn } from '../../../../model/executionPlan/nodes/V1_SQLResultColumn'; +import type { V1_ExecutionPlan } from '../../../../model/executionPlan/V1_ExecutionPlan.js'; +import { V1_SimpleExecutionPlan } from '../../../../model/executionPlan/V1_SimpleExecutionPlan.js'; +import { V1_Protocol } from '../../../../model/V1_Protocol.js'; +import { V1_DataTypeResultType } from '../../../../model/executionPlan/results/V1_DataTypeResultType.js'; +import { V1_TDSResultType } from '../../../../model/executionPlan/results/V1_TDSResultType.js'; +import { V1_TDSColumn } from '../../../../model/executionPlan/results/V1_TDSColumn.js'; +import type { V1_ResultType } from '../../../../model/executionPlan/results/V1_ResultType.js'; +import { V1_multiplicitySchema } from '../V1_CoreSerializationHelper.js'; +import { V1_RelationalTDSInstantiationExecutionNode } from '../../../../model/executionPlan/nodes/V1_RelationalTDSInstantiationExecutionNode.js'; +import { V1_SQLExecutionNode } from '../../../../model/executionPlan/nodes/V1_SQLExecutionNode.js'; +import { V1_SQLResultColumn } from '../../../../model/executionPlan/nodes/V1_SQLResultColumn.js'; import { V1_deserializeDatabaseConnectionValue, V1_serializeDatabaseConnectionValue, -} from '../V1_ConnectionSerializationHelper'; +} from '../V1_ConnectionSerializationHelper.js'; // ---------------------------------------- Result Type ---------------------------------------- diff --git a/packages/legend-manual-tests/cypress/integration/element-editors/file-generation-editor.ts b/packages/legend-manual-tests/cypress/integration/element-editors/file-generation-editor.ts index be755634dea..366337d56d6 100644 --- a/packages/legend-manual-tests/cypress/integration/element-editors/file-generation-editor.ts +++ b/packages/legend-manual-tests/cypress/integration/element-editors/file-generation-editor.ts @@ -16,9 +16,9 @@ // eslint-disable-next-line no-restricted-imports /// -import { TEST_ID } from '../../../src/const'; -import { ElementEditorTester } from '../../utils/ElementEditorTester'; -import { FileGenerationHelperExtension } from '../../utils/ElementHelperExtension'; +import { TEST_ID } from '../../../src/const.js'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; +import { FileGenerationHelperExtension } from '../../utils/ElementHelperExtension.js'; Cypress.config('defaultCommandTimeout', 30000); Cypress.config('pageLoadTimeout', 60000); diff --git a/packages/legend-manual-tests/cypress/integration/element-editors/flatData-mapping-editor.ts b/packages/legend-manual-tests/cypress/integration/element-editors/flatData-mapping-editor.ts index e81880b9689..b7f58da0ac3 100644 --- a/packages/legend-manual-tests/cypress/integration/element-editors/flatData-mapping-editor.ts +++ b/packages/legend-manual-tests/cypress/integration/element-editors/flatData-mapping-editor.ts @@ -16,8 +16,8 @@ // eslint-disable-next-line no-restricted-imports /// -import { ElementEditorTester } from '../../utils/ElementEditorTester'; -import { CoreElementHelper } from '../../utils/ElementHelperExtension'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; +import { CoreElementHelper } from '../../utils/ElementHelperExtension.js'; Cypress.config('defaultCommandTimeout', 30000); Cypress.config('pageLoadTimeout', 60000); diff --git a/packages/legend-manual-tests/cypress/integration/element-editors/m2m-mapping-editor.ts b/packages/legend-manual-tests/cypress/integration/element-editors/m2m-mapping-editor.ts index e18550b4466..28ec2cfc600 100644 --- a/packages/legend-manual-tests/cypress/integration/element-editors/m2m-mapping-editor.ts +++ b/packages/legend-manual-tests/cypress/integration/element-editors/m2m-mapping-editor.ts @@ -16,9 +16,9 @@ // eslint-disable-next-line no-restricted-imports /// -import { TEST_ID } from '../../../src/const'; -import { ElementEditorTester } from '../../utils/ElementEditorTester'; -import { MappingHelperExtension } from '../../utils/ElementHelperExtension'; +import { TEST_ID } from '../../../src/const.js'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; +import { MappingHelperExtension } from '../../utils/ElementHelperExtension.js'; Cypress.config('defaultCommandTimeout', 30000); Cypress.config('pageLoadTimeout', 60000); diff --git a/packages/legend-manual-tests/cypress/integration/element-editors/relational-mapping.ts b/packages/legend-manual-tests/cypress/integration/element-editors/relational-mapping.ts index e5a1bd0f334..b9f75fdd1ed 100644 --- a/packages/legend-manual-tests/cypress/integration/element-editors/relational-mapping.ts +++ b/packages/legend-manual-tests/cypress/integration/element-editors/relational-mapping.ts @@ -16,9 +16,9 @@ // eslint-disable-next-line no-restricted-imports /// -import { TEST_ID } from '../../../src/const'; -import { ElementEditorTester } from '../../utils/ElementEditorTester'; -import { ServiceHelperExtension } from '../../utils/ElementHelperExtension'; +import { TEST_ID } from '../../../src/const.js'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; +import { ServiceHelperExtension } from '../../utils/ElementHelperExtension.js'; Cypress.config('defaultCommandTimeout', 30000); Cypress.config('pageLoadTimeout', 60000); diff --git a/packages/legend-manual-tests/cypress/integration/element-editors/uml-editor.ts b/packages/legend-manual-tests/cypress/integration/element-editors/uml-editor.ts index 0fef3509e83..541be80ab8d 100644 --- a/packages/legend-manual-tests/cypress/integration/element-editors/uml-editor.ts +++ b/packages/legend-manual-tests/cypress/integration/element-editors/uml-editor.ts @@ -16,10 +16,10 @@ // eslint-disable-next-line no-restricted-imports /// -import { TEST_ID } from '../../../src/const'; -import { EDITOR_LANGUAGE } from '../../../src/stores/EditorConfig'; -import { ElementEditorTester } from '../../utils/ElementEditorTester'; -import { CoreElementHelper } from '../../utils/ElementHelperExtension'; +import { TEST_ID } from '../../../src/const.js'; +import { EDITOR_LANGUAGE } from '../../../src/stores/EditorConfig.js'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; +import { CoreElementHelper } from '../../utils/ElementHelperExtension.js'; describe('UML End to End Test', () => { let tester: ElementEditorTester; diff --git a/packages/legend-manual-tests/cypress/integration/sdlc/conflict_resolution.ts b/packages/legend-manual-tests/cypress/integration/sdlc/conflict_resolution.ts index 288aa81cb08..7cb04196c6d 100644 --- a/packages/legend-manual-tests/cypress/integration/sdlc/conflict_resolution.ts +++ b/packages/legend-manual-tests/cypress/integration/sdlc/conflict_resolution.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import { TEST_ID } from '../../../src/const'; -import { ElementEditorTester } from '../../utils/ElementEditorTester'; -import { ConflictResolutionHelperExtension } from '../../utils/ElementHelperExtension'; +import { TEST_ID } from '../../../src/const.js'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; +import { ConflictResolutionHelperExtension } from '../../utils/ElementHelperExtension.js'; Cypress.config('defaultCommandTimeout', 160000); Cypress.config('pageLoadTimeout', 160000); diff --git a/packages/legend-manual-tests/cypress/integration/sdlc/simple_sdlc.ts b/packages/legend-manual-tests/cypress/integration/sdlc/simple_sdlc.ts index 490f931af83..70016291d3b 100644 --- a/packages/legend-manual-tests/cypress/integration/sdlc/simple_sdlc.ts +++ b/packages/legend-manual-tests/cypress/integration/sdlc/simple_sdlc.ts @@ -16,9 +16,9 @@ // eslint-disable-next-line no-restricted-imports /// -import { TEST_ID } from '../../../src/const'; -import { ElementEditorTester } from '../../utils/ElementEditorTester'; -import { SDLCHelperExtension } from '../../utils/ElementHelperExtension'; +import { TEST_ID } from '../../../src/const.js'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; +import { SDLCHelperExtension } from '../../utils/ElementHelperExtension.js'; const TEXT = 'Class model::Firm\n' + diff --git a/packages/legend-manual-tests/cypress/integration/viewer/viewer.ts b/packages/legend-manual-tests/cypress/integration/viewer/viewer.ts index 62e994b7f70..0d4ae72a200 100644 --- a/packages/legend-manual-tests/cypress/integration/viewer/viewer.ts +++ b/packages/legend-manual-tests/cypress/integration/viewer/viewer.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { TEST_ID } from '../../../src/const'; -import { ElementEditorTester } from '../../utils/ElementEditorTester'; +import { TEST_ID } from '../../../src/const.js'; +import { ElementEditorTester } from '../../utils/ElementEditorTester.js'; describe('Viewer Demo Script Test', () => { let demoTest: ElementEditorTester; diff --git a/packages/legend-manual-tests/cypress/utils/ElementEditorTester.ts b/packages/legend-manual-tests/cypress/utils/ElementEditorTester.ts index f69725bf14b..ccc5a744aba 100644 --- a/packages/legend-manual-tests/cypress/utils/ElementEditorTester.ts +++ b/packages/legend-manual-tests/cypress/utils/ElementEditorTester.ts @@ -14,13 +14,13 @@ * limitations under the License. */ -import { TEST_ID } from '../../src/const'; -import { EDITOR_LANGUAGE } from '../../src/stores/EditorConfig'; -import { getConfigUrls } from './E2ETestUtil'; +import { TEST_ID } from '../../src/const.js'; +import { EDITOR_LANGUAGE } from '../../src/stores/EditorConfig.js'; +import { getConfigUrls } from './E2ETestUtil.js'; import { editor as MonacoEditorAPI } from 'monaco-editor'; import { Clazz, guaranteeType } from '@finos/legend-shared'; -import { EndToEndTester } from './EndToEndTester'; -import { ElementHelperExtension } from './ElementHelperExtension'; +import { EndToEndTester } from './EndToEndTester.js'; +import { ElementHelperExtension } from './ElementHelperExtension.js'; export class ElementEditorTester extends EndToEndTester { // TODO make this an array diff --git a/packages/legend-manual-tests/cypress/utils/ElementHelperExtension.ts b/packages/legend-manual-tests/cypress/utils/ElementHelperExtension.ts index a83a58072ea..b0ab5d2caf3 100644 --- a/packages/legend-manual-tests/cypress/utils/ElementHelperExtension.ts +++ b/packages/legend-manual-tests/cypress/utils/ElementHelperExtension.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { TEST_ID } from '../../src/const'; +import { TEST_ID } from '../../src/const.js'; export abstract class ElementHelperExtension { name!: string; diff --git a/packages/legend-manual-tests/cypress/utils/EndToEndTester.ts b/packages/legend-manual-tests/cypress/utils/EndToEndTester.ts index 3be92954481..9e4b19eafa0 100644 --- a/packages/legend-manual-tests/cypress/utils/EndToEndTester.ts +++ b/packages/legend-manual-tests/cypress/utils/EndToEndTester.ts @@ -16,7 +16,7 @@ /// -import { TEST_ID } from '../../src/const'; +import { TEST_ID } from '../../src/const.js'; const TITLE = { REVIEW: 'Review (Ctrl + Shift + M)', diff --git a/packages/legend-model-storage/src/index.ts b/packages/legend-model-storage/src/index.ts index 3e9be6087d8..fcfe82caa32 100644 --- a/packages/legend-model-storage/src/index.ts +++ b/packages/legend-model-storage/src/index.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -export * from './Entity'; -export * from './EntityUtils'; +export * from './Entity.js'; +export * from './EntityUtils.js'; diff --git a/packages/legend-query-deployment/src/index.tsx b/packages/legend-query-deployment/src/index.tsx index a989e549e3b..dbdd71e8938 100644 --- a/packages/legend-query-deployment/src/index.tsx +++ b/packages/legend-query-deployment/src/index.tsx @@ -15,7 +15,7 @@ */ import { LegendQueryWebApplication } from '@finos/legend-query-app'; -import config from '../query.config'; +import config from '../query.config.js'; import './index.scss'; LegendQueryWebApplication.run(config.baseUrl); diff --git a/packages/legend-query/src/application/LegendQuery.tsx b/packages/legend-query/src/application/LegendQuery.tsx index 4ade35343db..8fc69307a2e 100644 --- a/packages/legend-query/src/application/LegendQuery.tsx +++ b/packages/legend-query/src/application/LegendQuery.tsx @@ -27,15 +27,15 @@ import { configure as configureReactHotkeys } from 'react-hotkeys'; import { ModuleRegistry as agGrid_ModuleRegistry } from '@ag-grid-community/core'; import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model'; import { BrowserRouter } from 'react-router-dom'; -import { LegendQueryApplication } from '../components/LegendQueryApplication'; -import { LegendQueryPluginManager } from './LegendQueryPluginManager'; -import { Query_GraphPreset } from '../models/Query_GraphPreset'; +import { LegendQueryApplication } from '../components/LegendQueryApplication.js'; +import { LegendQueryPluginManager } from './LegendQueryPluginManager.js'; +import { Query_GraphPreset } from '../models/Query_GraphPreset.js'; import { getRootElement } from '@finos/legend-art'; import { CorePureGraphManagerPlugin } from '@finos/legend-graph'; import { type LegendQueryConfigurationData, LegendQueryConfig, -} from './LegendQueryConfig'; +} from './LegendQueryConfig.js'; export const setupLegendQueryUILibrary = async (): Promise => { // Register module extensions for `ag-grid` diff --git a/packages/legend-query/src/application/LegendQueryPluginManager.ts b/packages/legend-query/src/application/LegendQueryPluginManager.ts index 184e00ddcb5..d5193f492f0 100644 --- a/packages/legend-query/src/application/LegendQueryPluginManager.ts +++ b/packages/legend-query/src/application/LegendQueryPluginManager.ts @@ -21,7 +21,7 @@ import type { PureGraphPlugin, PureProtocolProcessorPlugin, } from '@finos/legend-graph'; -import type { LegendQueryPlugin } from '../stores/LegendQueryPlugin'; +import type { LegendQueryPlugin } from '../stores/LegendQueryPlugin.js'; export class LegendQueryPluginManager extends LegendApplicationPluginManager diff --git a/packages/legend-query/src/components/LegendQueryApplication.tsx b/packages/legend-query/src/components/LegendQueryApplication.tsx index d3f31602fa8..9ca36747589 100644 --- a/packages/legend-query/src/components/LegendQueryApplication.tsx +++ b/packages/legend-query/src/components/LegendQueryApplication.tsx @@ -17,27 +17,27 @@ import { useEffect } from 'react'; import { Redirect, Route, Switch } from 'react-router-dom'; import { observer } from 'mobx-react-lite'; -import { LEGEND_QUERY_ROUTE_PATTERN } from '../stores/LegendQueryRouter'; -import { QuerySetup } from './QuerySetup'; +import { LEGEND_QUERY_ROUTE_PATTERN } from '../stores/LegendQueryRouter.js'; +import { QuerySetup } from './QuerySetup.js'; import { CreateQueryLoader, ExistingQueryLoader, ServiceQueryLoader, -} from './QueryEditor'; +} from './QueryEditor.js'; import { flowResult } from 'mobx'; import { PanelLoadingIndicator } from '@finos/legend-art'; import { LegendQueryStoreProvider, useLegendQueryStore, -} from './LegendQueryStoreProvider'; +} from './LegendQueryStoreProvider.js'; import { DepotServerClientProvider } from '@finos/legend-server-depot'; import { GraphManagerStateProvider } from '@finos/legend-graph'; import { LegendApplicationComponentFrameworkProvider, useApplicationStore, } from '@finos/legend-application'; -import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager'; -import type { LegendQueryConfig } from '../application/LegendQueryConfig'; +import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js'; +import type { LegendQueryConfig } from '../application/LegendQueryConfig.js'; const LegendQueryApplicationInner = observer(() => { const queryStore = useLegendQueryStore(); diff --git a/packages/legend-query/src/components/LegendQueryStoreProvider.tsx b/packages/legend-query/src/components/LegendQueryStoreProvider.tsx index c2a0e42e830..e3500ae758d 100644 --- a/packages/legend-query/src/components/LegendQueryStoreProvider.tsx +++ b/packages/legend-query/src/components/LegendQueryStoreProvider.tsx @@ -16,13 +16,13 @@ import { createContext, useContext } from 'react'; import { useLocalObservable } from 'mobx-react-lite'; -import { LegendQueryStore } from '../stores/LegendQueryStore'; +import { LegendQueryStore } from '../stores/LegendQueryStore.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; import { useDepotServerClient } from '@finos/legend-server-depot'; import { useGraphManagerState } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager'; -import type { LegendQueryConfig } from '../application/LegendQueryConfig'; +import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js'; +import type { LegendQueryConfig } from '../application/LegendQueryConfig.js'; const LegendQueryStoreContext = createContext( undefined, diff --git a/packages/legend-query/src/components/QueryBuilder.tsx b/packages/legend-query/src/components/QueryBuilder.tsx index 4b5b3efcd2e..b656fcb8055 100644 --- a/packages/legend-query/src/components/QueryBuilder.tsx +++ b/packages/legend-query/src/components/QueryBuilder.tsx @@ -33,21 +33,21 @@ import { CaretDownIcon, CogIcon, } from '@finos/legend-art'; -import { QueryBuilderFilterPanel } from './QueryBuilderFilterPanel'; -import { QueryBuilderExplorerPanel } from './QueryBuilderExplorerPanel'; -import { QueryBuilderSetupPanel } from './QueryBuilderSetupPanel'; -import { QueryBuilderResultPanel } from './QueryBuilderResultPanel'; -import { QueryBuilderTextEditor } from './QueryBuilderTextEditor'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { QueryTextEditorMode } from '../stores/QueryTextEditorState'; -import { QueryBuilderFetchStructurePanel } from './QueryBuilderFetchStructurePanel'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; +import { QueryBuilderFilterPanel } from './QueryBuilderFilterPanel.js'; +import { QueryBuilderExplorerPanel } from './QueryBuilderExplorerPanel.js'; +import { QueryBuilderSetupPanel } from './QueryBuilderSetupPanel.js'; +import { QueryBuilderResultPanel } from './QueryBuilderResultPanel.js'; +import { QueryBuilderTextEditor } from './QueryBuilderTextEditor.js'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { QueryTextEditorMode } from '../stores/QueryTextEditorState.js'; +import { QueryBuilderFetchStructurePanel } from './QueryBuilderFetchStructurePanel.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; import { flowResult } from 'mobx'; -import { QueryBuilderUnsupportedQueryEditor } from './QueryBuilderUnsupportedQueryEditor'; +import { QueryBuilderUnsupportedQueryEditor } from './QueryBuilderUnsupportedQueryEditor.js'; import { useApplicationStore } from '@finos/legend-application'; -import { QueryBuilderParameterPanel } from './QueryBuilderParameterPanel'; -import { QueryBuilderPostFilterPanel } from './QueryBuilderPostFilterPanel'; -import { QueryBuilderFunctionsExplorerPanel } from './QueryBuilderFunctionsExplorerPanel'; +import { QueryBuilderParameterPanel } from './QueryBuilderParameterPanel.js'; +import { QueryBuilderPostFilterPanel } from './QueryBuilderPostFilterPanel.js'; +import { QueryBuilderFunctionsExplorerPanel } from './QueryBuilderFunctionsExplorerPanel.js'; enum QUERY_BUILDER_HOTKEY { COMPILE = 'COMPILE', diff --git a/packages/legend-query/src/components/QueryBuilderCustomDatePicker.tsx b/packages/legend-query/src/components/QueryBuilderCustomDatePicker.tsx index dcf2f8cfc08..afca418e70e 100644 --- a/packages/legend-query/src/components/QueryBuilderCustomDatePicker.tsx +++ b/packages/legend-query/src/components/QueryBuilderCustomDatePicker.tsx @@ -44,12 +44,12 @@ import { DAY_OF_WEEK, DURATION_UNIT, SUPPORTED_FUNCTIONS, -} from '../QueryBuilder_Const'; -import { buildPrimitiveInstanceValue } from '../stores/QueryBuilderOperatorsHelper'; +} from '../QueryBuilder_Const.js'; +import { buildPrimitiveInstanceValue } from '../stores/QueryBuilderOperatorsHelper.js'; import { genericType_setRawType, instanceValue_changeValue, -} from '../stores/QueryBuilderValueSpecificationModifierHelper'; +} from '../stores/QueryBuilderValueSpecificationModifierHelper.js'; enum QUERY_BUILDER_CUSTOM_DATE_PICKER_OPTION { ABSOLUTE_DATE = 'Absolute Date', diff --git a/packages/legend-query/src/components/QueryBuilderExplorerPanel.tsx b/packages/legend-query/src/components/QueryBuilderExplorerPanel.tsx index 35d5890698c..ce996237afc 100644 --- a/packages/legend-query/src/components/QueryBuilderExplorerPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderExplorerPanel.tsx @@ -54,15 +54,15 @@ import { getQueryBuilderPropertyNodeData, QueryBuilderExplorerTreeSubTypeNodeData, getQueryBuilderSubTypeNodeData, -} from '../stores/QueryBuilderExplorerState'; +} from '../stores/QueryBuilderExplorerState.js'; import { useDrag, useDragLayer } from 'react-dnd'; -import { QueryBuilderPropertyInfoTooltip } from './QueryBuilderPropertyInfoTooltip'; +import { QueryBuilderPropertyInfoTooltip } from './QueryBuilderPropertyInfoTooltip.js'; import { getEmptyImage } from 'react-dnd-html5-backend'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { addQueryBuilderPropertyNode } from '../stores/QueryBuilderGraphFetchTreeUtil'; -import { QueryBuilderSimpleProjectionColumnState } from '../stores/QueryBuilderProjectionState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { addQueryBuilderPropertyNode } from '../stores/QueryBuilderGraphFetchTreeUtil.js'; +import { QueryBuilderSimpleProjectionColumnState } from '../stores/QueryBuilderProjectionState.js'; import { flowResult } from 'mobx'; -import { prettyPropertyName } from '../stores/QueryBuilderPropertyEditorState'; +import { prettyPropertyName } from '../stores/QueryBuilderPropertyEditorState.js'; import { type Type, type Multiplicity, @@ -77,9 +77,9 @@ import { getAllClassDerivedProperties, } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; -import { getClassPropertyIcon } from './shared/ElementIconUtils'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; -import { getMultiplicityDescription } from './shared/QueryBuilderUtils'; +import { getClassPropertyIcon } from './shared/ElementIconUtils.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; +import { getMultiplicityDescription } from './shared/QueryBuilderUtils.js'; import { filterByType, guaranteeNonNullable } from '@finos/legend-shared'; const QueryBuilderSubclassInfoTooltip: React.FC<{ diff --git a/packages/legend-query/src/components/QueryBuilderFetchStructurePanel.tsx b/packages/legend-query/src/components/QueryBuilderFetchStructurePanel.tsx index 5cdbacf6e5d..acf12728539 100644 --- a/packages/legend-query/src/components/QueryBuilderFetchStructurePanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderFetchStructurePanel.tsx @@ -21,12 +21,12 @@ import { PlusIcon, OptionsIcon, } from '@finos/legend-art'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; import { prettyCONSTName } from '@finos/legend-shared'; -import { QueryBuilderProjectionPanel } from './QueryBuilderProjectionPanel'; -import { QueryBuilderGraphFetchTreePanel } from './QueryBuilderGraphFetchTreePanel'; -import { FETCH_STRUCTURE_MODE } from '../stores/QueryBuilderFetchStructureState'; -import { QueryBuilderPostFilterState } from '../stores/QueryBuilderPostFilterState'; +import { QueryBuilderProjectionPanel } from './QueryBuilderProjectionPanel.js'; +import { QueryBuilderGraphFetchTreePanel } from './QueryBuilderGraphFetchTreePanel.js'; +import { FETCH_STRUCTURE_MODE } from '../stores/QueryBuilderFetchStructureState.js'; +import { QueryBuilderPostFilterState } from '../stores/QueryBuilderPostFilterState.js'; const QueryBuilderUnsupportedFetchStructure = observer( (props: { mode: FETCH_STRUCTURE_MODE }) => { diff --git a/packages/legend-query/src/components/QueryBuilderFilterPanel.tsx b/packages/legend-query/src/components/QueryBuilderFilterPanel.tsx index a54a0cb882c..fa5179ec3ed 100644 --- a/packages/legend-query/src/components/QueryBuilderFilterPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderFilterPanel.tsx @@ -49,7 +49,7 @@ import { QueryBuilderFilterTreeConditionNodeData, QueryBuilderFilterTreeBlankConditionNodeData, QueryBuilderFilterTreeGroupNodeData, -} from '../stores/QueryBuilderFilterState'; +} from '../stores/QueryBuilderFilterState.js'; import { type DropTargetMonitor, useDragLayer, @@ -62,18 +62,18 @@ import { type QueryBuilderExplorerTreePropertyNodeData, buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, -} from '../stores/QueryBuilderExplorerState'; -import { QueryBuilderPropertyExpressionBadge } from './QueryBuilderPropertyExpressionEditor'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; +} from '../stores/QueryBuilderExplorerState.js'; +import { QueryBuilderPropertyExpressionBadge } from './QueryBuilderPropertyExpressionEditor.js'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; import { assertErrorThrown } from '@finos/legend-shared'; -import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; +import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; import { useApplicationStore } from '@finos/legend-application'; import { type QueryBuilderParameterDragSource, QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, -} from '../stores/QueryParametersState'; -import { QUERY_BUILDER_GROUP_OPERATION } from '../stores/QueryBuilderOperatorsHelper'; +} from '../stores/QueryParametersState.js'; +import { QUERY_BUILDER_GROUP_OPERATION } from '../stores/QueryBuilderOperatorsHelper.js'; import type { ValueSpecification } from '@finos/legend-graph'; const FilterConditionDragLayer: React.FC = () => { diff --git a/packages/legend-query/src/components/QueryBuilderFunctionsExplorerPanel.tsx b/packages/legend-query/src/components/QueryBuilderFunctionsExplorerPanel.tsx index f03301b1cf9..93ae4518fea 100644 --- a/packages/legend-query/src/components/QueryBuilderFunctionsExplorerPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderFunctionsExplorerPanel.tsx @@ -44,7 +44,7 @@ import { QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE, generateFunctionsExplorerTreeNodeData, getFunctionsExplorerTreeNodeChildren, -} from '../stores/QueryFunctionsExplorerState'; +} from '../stores/QueryFunctionsExplorerState.js'; import { useDrag, useDragLayer } from 'react-dnd'; import { ConcreteFunctionDefinition, @@ -55,8 +55,8 @@ import { } from '@finos/legend-graph'; import { getEmptyImage } from 'react-dnd-html5-backend'; import { useEffect, useState } from 'react'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { getMultiplicityDescription } from './shared/QueryBuilderUtils'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { getMultiplicityDescription } from './shared/QueryBuilderUtils.js'; const isDependencyTreeNode = ( node: QueryBuilderFunctionsExplorerTreeNodeData, diff --git a/packages/legend-query/src/components/QueryBuilderGraphFetchTreePanel.tsx b/packages/legend-query/src/components/QueryBuilderGraphFetchTreePanel.tsx index 9f390700f3b..19c86c0b79a 100644 --- a/packages/legend-query/src/components/QueryBuilderGraphFetchTreePanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderGraphFetchTreePanel.tsx @@ -28,21 +28,21 @@ import { CheckSquareIcon, SquareIcon, } from '@finos/legend-art'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; import { isNonNullable } from '@finos/legend-shared'; import { type QueryBuilderGraphFetchTreeData, type QueryBuilderGraphFetchTreeNodeData, removeNodeRecursively, isGraphFetchTreeDataEmpty, -} from '../stores/QueryBuilderGraphFetchTreeUtil'; +} from '../stores/QueryBuilderGraphFetchTreeUtil.js'; import { type QueryBuilderExplorerTreeDragSource, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, -} from '../stores/QueryBuilderExplorerState'; -import type { QueryBuilderGraphFetchTreeState } from '../stores/QueryBuilderGraphFetchTreeState'; -import { getClassPropertyIcon } from './shared/ElementIconUtils'; +} from '../stores/QueryBuilderExplorerState.js'; +import type { QueryBuilderGraphFetchTreeState } from '../stores/QueryBuilderGraphFetchTreeState.js'; +import { getClassPropertyIcon } from './shared/ElementIconUtils.js'; const QueryBuilderGraphFetchTreeNodeContainer: React.FC< TreeNodeContainerProps< diff --git a/packages/legend-query/src/components/QueryBuilderLambdaEditor.tsx b/packages/legend-query/src/components/QueryBuilderLambdaEditor.tsx index 9225981cd42..a7772eb76c3 100644 --- a/packages/legend-query/src/components/QueryBuilderLambdaEditor.tsx +++ b/packages/legend-query/src/components/QueryBuilderLambdaEditor.tsx @@ -18,7 +18,7 @@ import { flowResult } from 'mobx'; import { observer } from 'mobx-react-lite'; import { type IKeyboardEvent, KeyCode } from 'monaco-editor'; import { useCallback, useMemo } from 'react'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; import type { Type } from '@finos/legend-graph'; import { useApplicationStore, diff --git a/packages/legend-query/src/components/QueryBuilderMilestoneEditor.tsx b/packages/legend-query/src/components/QueryBuilderMilestoneEditor.tsx index ea7b2e644ef..0b77fb974d7 100644 --- a/packages/legend-query/src/components/QueryBuilderMilestoneEditor.tsx +++ b/packages/legend-query/src/components/QueryBuilderMilestoneEditor.tsx @@ -15,11 +15,11 @@ */ import { observer } from 'mobx-react-lite'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; import { type QueryBuilderParameterDragSource, QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, -} from '../stores/QueryParametersState'; +} from '../stores/QueryParametersState.js'; import { useCallback } from 'react'; import { type ValueSpecification, @@ -31,12 +31,12 @@ import { PRIMITIVE_TYPE, TYPICAL_MULTIPLICITY_TYPE, } from '@finos/legend-graph'; -import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor'; +import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; import { type DropTargetMonitor, useDrop } from 'react-dnd'; -import { VariableExpressionViewer } from './QueryBuilderParameterPanel'; +import { VariableExpressionViewer } from './QueryBuilderParameterPanel.js'; import { Dialog } from '@finos/legend-art'; -import { generateDefaultValueForPrimitiveType } from '../stores/QueryBuilderValueSpecificationBuilderHelper'; +import { generateDefaultValueForPrimitiveType } from '../stores/QueryBuilderValueSpecificationBuilderHelper.js'; const MilestoningParameterEditor = observer( (props: { diff --git a/packages/legend-query/src/components/QueryBuilderParameterPanel.tsx b/packages/legend-query/src/components/QueryBuilderParameterPanel.tsx index c46df5175ae..329a99f15a4 100644 --- a/packages/legend-query/src/components/QueryBuilderParameterPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderParameterPanel.tsx @@ -15,7 +15,7 @@ */ import { observer } from 'mobx-react-lite'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; import { Dialog, BlankPanelContent, @@ -29,7 +29,7 @@ import { type QueryBuilderParameterDragSource, QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, QueryParameterState, -} from '../stores/QueryParametersState'; +} from '../stores/QueryParametersState.js'; import { useEffect, useState } from 'react'; import { type Type, @@ -44,9 +44,9 @@ import { } from '@finos/legend-application'; import { useDrag, useDragLayer } from 'react-dnd'; import { getEmptyImage } from 'react-dnd-html5-backend'; -import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor'; +import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor.js'; import { prettyCONSTName } from '@finos/legend-shared'; -import { variableExpression_setName } from '../stores/QueryBuilderValueSpecificationModifierHelper'; +import { variableExpression_setName } from '../stores/QueryBuilderValueSpecificationModifierHelper.js'; const ParameterValuesEditor = observer( (props: { queryBuilderState: QueryBuilderState }) => { diff --git a/packages/legend-query/src/components/QueryBuilderPostFilterPanel.tsx b/packages/legend-query/src/components/QueryBuilderPostFilterPanel.tsx index 59e543d35a8..15067797b00 100644 --- a/packages/legend-query/src/components/QueryBuilderPostFilterPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderPostFilterPanel.tsx @@ -68,10 +68,10 @@ import { useDrag, } from 'react-dnd'; import { getEmptyImage } from 'react-dnd-html5-backend'; -import { getColumnMultiplicity } from '../stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper'; -import { QueryBuilderAggregateColumnState } from '../stores/QueryBuilderAggregationState'; -import { QUERY_BUILDER_GROUP_OPERATION } from '../stores/QueryBuilderOperatorsHelper'; -import type { QueryBuilderPostFilterOperator } from '../stores/QueryBuilderPostFilterOperator'; +import { getColumnMultiplicity } from '../stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.js'; +import { QueryBuilderAggregateColumnState } from '../stores/QueryBuilderAggregationState.js'; +import { QUERY_BUILDER_GROUP_OPERATION } from '../stores/QueryBuilderOperatorsHelper.js'; +import type { QueryBuilderPostFilterOperator } from '../stores/QueryBuilderPostFilterOperator.js'; import { type QueryBuilderPostFilterTreeNodeData, type QueryBuilderPostFilterDropTarget, @@ -81,21 +81,21 @@ import { QueryBuilderPostFilterTreeGroupNodeData, QUERY_BUILDER_POST_FILTER_DND_TYPE, QueryBuilderPostFilterTreeBlankConditionNodeData, -} from '../stores/QueryBuilderPostFilterState'; +} from '../stores/QueryBuilderPostFilterState.js'; import { type QueryBuilderProjectionColumnState, type QueryBuilderProjectionColumnDragSource, QUERY_BUILDER_PROJECTION_DND_TYPE, QueryBuilderDerivationProjectionColumnState, -} from '../stores/QueryBuilderProjectionState'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; +} from '../stores/QueryBuilderProjectionState.js'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; import { type QueryBuilderParameterDragSource, QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, -} from '../stores/QueryParametersState'; -import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; -import { getMultiplicityDescription } from './shared/QueryBuilderUtils'; +} from '../stores/QueryParametersState.js'; +import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; +import { getMultiplicityDescription } from './shared/QueryBuilderUtils.js'; const PostFilterConditionDragLayer: React.FC = () => { const { itemType, item, isDragging, currentPosition } = useDragLayer( diff --git a/packages/legend-query/src/components/QueryBuilderProjectionPanel.tsx b/packages/legend-query/src/components/QueryBuilderProjectionPanel.tsx index 118939a42b5..987992e1249 100644 --- a/packages/legend-query/src/components/QueryBuilderProjectionPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderProjectionPanel.tsx @@ -34,7 +34,7 @@ import { type QueryBuilderExplorerTreePropertyNodeData, buildPropertyExpressionFromExplorerTreeNodeData, QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, -} from '../stores/QueryBuilderExplorerState'; +} from '../stores/QueryBuilderExplorerState.js'; import { type DropTargetMonitor, type XYCoord, @@ -49,19 +49,19 @@ import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, QUERY_BUILDER_PROJECTION_DND_TYPE, -} from '../stores/QueryBuilderProjectionState'; -import { QueryBuilderPropertyExpressionBadge } from './QueryBuilderPropertyExpressionEditor'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { QueryResultModifierModal } from './QueryBuilderResultModifierPanel'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; -import type { QueryBuilderAggregateOperator } from '../stores/QueryBuilderAggregationState'; +} from '../stores/QueryBuilderProjectionState.js'; +import { QueryBuilderPropertyExpressionBadge } from './QueryBuilderPropertyExpressionEditor.js'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { QueryResultModifierModal } from './QueryBuilderResultModifierPanel.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; +import type { QueryBuilderAggregateOperator } from '../stores/QueryBuilderAggregationState.js'; import { flowResult } from 'mobx'; -import { QueryBuilderLambdaEditor } from './QueryBuilderLambdaEditor'; +import { QueryBuilderLambdaEditor } from './QueryBuilderLambdaEditor.js'; import { useApplicationStore } from '@finos/legend-application'; import { type QueryBuilderParameterDragSource, QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, -} from '../stores/QueryParametersState'; +} from '../stores/QueryParametersState.js'; import { type ConcreteFunctionDefinition, generateFunctionCallString, @@ -71,8 +71,8 @@ import { import { type QueryBuilderFunctionsExplorerDragSource, QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE, -} from '../stores/QueryFunctionsExplorerState'; -import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilder_Const'; +} from '../stores/QueryFunctionsExplorerState.js'; +import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilder_Const.js'; const ProjectionColumnDragLayer: React.FC = () => { const { itemType, item, isDragging, currentPosition } = useDragLayer( diff --git a/packages/legend-query/src/components/QueryBuilderPropertyExpressionEditor.tsx b/packages/legend-query/src/components/QueryBuilderPropertyExpressionEditor.tsx index 031904ab7c1..65ca4114677 100644 --- a/packages/legend-query/src/components/QueryBuilderPropertyExpressionEditor.tsx +++ b/packages/legend-query/src/components/QueryBuilderPropertyExpressionEditor.tsx @@ -23,19 +23,19 @@ import { getPropertyPath, type QueryBuilderDerivedPropertyExpressionState, type QueryBuilderPropertyExpressionState, -} from '../stores/QueryBuilderPropertyEditorState'; +} from '../stores/QueryBuilderPropertyEditorState.js'; import { type DropTargetMonitor, useDrop } from 'react-dnd'; import { QUERY_BUILDER_EXPLORER_TREE_DND_TYPE, type QueryBuilderExplorerTreeDragSource, type QueryBuilderExplorerTreePropertyNodeData, -} from '../stores/QueryBuilderExplorerState'; -import { QueryBuilderPropertyInfoTooltip } from './QueryBuilderPropertyInfoTooltip'; -import { VariableExpressionViewer } from './QueryBuilderParameterPanel'; +} from '../stores/QueryBuilderExplorerState.js'; +import { QueryBuilderPropertyInfoTooltip } from './QueryBuilderPropertyInfoTooltip.js'; +import { VariableExpressionViewer } from './QueryBuilderParameterPanel.js'; import { type QueryBuilderParameterDragSource, QUERY_BUILDER_PARAMETER_TREE_DND_TYPE, -} from '../stores/QueryParametersState'; +} from '../stores/QueryParametersState.js'; import { type ValueSpecification, type VariableExpression, @@ -45,8 +45,8 @@ import { PRIMITIVE_TYPE, isSuperType, } from '@finos/legend-graph'; -import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor'; -import { propertyExpression_setParametersValue } from '../stores/QueryBuilderValueSpecificationModifierHelper'; +import { QueryBuilderValueSpecificationEditor } from './QueryBuilderValueSpecificationEditor.js'; +import { propertyExpression_setParametersValue } from '../stores/QueryBuilderValueSpecificationModifierHelper.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; const DerivedPropertyParameterValueEditor = observer( diff --git a/packages/legend-query/src/components/QueryBuilderPropertyInfoTooltip.tsx b/packages/legend-query/src/components/QueryBuilderPropertyInfoTooltip.tsx index 426697a4012..7192aeaebd8 100644 --- a/packages/legend-query/src/components/QueryBuilderPropertyInfoTooltip.tsx +++ b/packages/legend-query/src/components/QueryBuilderPropertyInfoTooltip.tsx @@ -16,7 +16,7 @@ import { type TooltipPlacement, Tooltip } from '@finos/legend-art'; import { type AbstractProperty, DerivedProperty } from '@finos/legend-graph'; -import { getMultiplicityDescription } from './shared/QueryBuilderUtils'; +import { getMultiplicityDescription } from './shared/QueryBuilderUtils.js'; export const QueryBuilderPropertyInfoTooltip: React.FC<{ property: AbstractProperty; diff --git a/packages/legend-query/src/components/QueryBuilderResultModifierPanel.tsx b/packages/legend-query/src/components/QueryBuilderResultModifierPanel.tsx index 68c48485252..bede0820f7c 100644 --- a/packages/legend-query/src/components/QueryBuilderResultModifierPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderResultModifierPanel.tsx @@ -28,9 +28,9 @@ import { import { COLUMN_SORT_TYPE, SortColumnState, -} from '../stores/QueryResultSetModifierState'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import type { QueryBuilderProjectionColumnState } from '../stores/QueryBuilderProjectionState'; +} from '../stores/QueryResultSetModifierState.js'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import type { QueryBuilderProjectionColumnState } from '../stores/QueryBuilderProjectionState.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; const ColumnSortEditor = observer( diff --git a/packages/legend-query/src/components/QueryBuilderResultPanel.tsx b/packages/legend-query/src/components/QueryBuilderResultPanel.tsx index 909beb68c08..d4099506a74 100644 --- a/packages/legend-query/src/components/QueryBuilderResultPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderResultPanel.tsx @@ -31,7 +31,7 @@ import { } from '@finos/legend-art'; import { observer } from 'mobx-react-lite'; import { flowResult } from 'mobx'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; import { type ExecutionResult, extractExecutionResultValues, @@ -47,7 +47,7 @@ import { TextInputEditor, useApplicationStore, } from '@finos/legend-application'; -import { PARAMETER_SUBMIT_ACTION } from '../stores/QueryParametersState'; +import { PARAMETER_SUBMIT_ACTION } from '../stores/QueryParametersState.js'; import { isBoolean } from '@finos/legend-shared'; const QueryBuilderResultValues = observer( diff --git a/packages/legend-query/src/components/QueryBuilderSetupPanel.tsx b/packages/legend-query/src/components/QueryBuilderSetupPanel.tsx index 5dac959d072..62e14e6b7f2 100644 --- a/packages/legend-query/src/components/QueryBuilderSetupPanel.tsx +++ b/packages/legend-query/src/components/QueryBuilderSetupPanel.tsx @@ -26,8 +26,8 @@ import { ClockIcon, } from '@finos/legend-art'; import { observer } from 'mobx-react-lite'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; import { type Class, type Mapping, @@ -44,7 +44,7 @@ import { VARIABLE_REFERENCE_TOKEN, } from '@finos/legend-graph'; import type { PackageableElementOption } from '@finos/legend-application'; -import { MilestoningParametersEditor } from './QueryBuilderMilestoneEditor'; +import { MilestoningParametersEditor } from './QueryBuilderMilestoneEditor.js'; import { useState } from 'react'; const getParameterValue = ( diff --git a/packages/legend-query/src/components/QueryBuilderTextEditor.tsx b/packages/legend-query/src/components/QueryBuilderTextEditor.tsx index 61134ae8692..4f673cb690f 100644 --- a/packages/legend-query/src/components/QueryBuilderTextEditor.tsx +++ b/packages/legend-query/src/components/QueryBuilderTextEditor.tsx @@ -17,10 +17,10 @@ import { useEffect } from 'react'; import { observer } from 'mobx-react-lite'; import { clsx, Dialog } from '@finos/legend-art'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { QueryTextEditorMode } from '../stores/QueryTextEditorState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { QueryTextEditorMode } from '../stores/QueryTextEditorState.js'; import { flowResult } from 'mobx'; -import { QueryBuilderLambdaEditor } from './QueryBuilderLambdaEditor'; +import { QueryBuilderLambdaEditor } from './QueryBuilderLambdaEditor.js'; import { EDITOR_LANGUAGE, TextInputEditor, diff --git a/packages/legend-query/src/components/QueryBuilderUnsupportedQueryEditor.tsx b/packages/legend-query/src/components/QueryBuilderUnsupportedQueryEditor.tsx index c12087c1537..67dbac38b41 100644 --- a/packages/legend-query/src/components/QueryBuilderUnsupportedQueryEditor.tsx +++ b/packages/legend-query/src/components/QueryBuilderUnsupportedQueryEditor.tsx @@ -15,16 +15,16 @@ */ import { observer } from 'mobx-react-lite'; -import type { QueryBuilderState } from '../stores/QueryBuilderState'; -import { QueryTextEditorMode } from '../stores/QueryTextEditorState'; +import type { QueryBuilderState } from '../stores/QueryBuilderState.js'; +import { QueryTextEditorMode } from '../stores/QueryTextEditorState.js'; import { BlankPanelContent, ResizablePanelGroup, ResizablePanel, ResizablePanelSplitter, } from '@finos/legend-art'; -import { QueryBuilderSetupPanel } from './QueryBuilderSetupPanel'; -import { QueryBuilderParameterPanel } from './QueryBuilderParameterPanel'; +import { QueryBuilderSetupPanel } from './QueryBuilderSetupPanel.js'; +import { QueryBuilderParameterPanel } from './QueryBuilderParameterPanel.js'; const QueryBuilderUnsupportedQueryExplorer = observer(() => (
diff --git a/packages/legend-query/src/components/QueryBuilderValueSpecificationEditor.tsx b/packages/legend-query/src/components/QueryBuilderValueSpecificationEditor.tsx index 73cbfb049b5..a3590b58565 100644 --- a/packages/legend-query/src/components/QueryBuilderValueSpecificationEditor.tsx +++ b/packages/legend-query/src/components/QueryBuilderValueSpecificationEditor.tsx @@ -56,12 +56,12 @@ import { SimpleFunctionExpression, getEnumValue, } from '@finos/legend-graph'; -import { getMultiplicityDescription } from './shared/QueryBuilderUtils'; +import { getMultiplicityDescription } from './shared/QueryBuilderUtils.js'; import { instanceValue_changeValue, instanceValue_changeValues, -} from '../stores/QueryBuilderValueSpecificationModifierHelper'; -import { QueryBuilderCustomDatePicker } from './QueryBuilderCustomDatePicker'; +} from '../stores/QueryBuilderValueSpecificationModifierHelper.js'; +import { QueryBuilderCustomDatePicker } from './QueryBuilderCustomDatePicker.js'; type TypeCheckOption = { expectedType: Type; diff --git a/packages/legend-query/src/components/QueryComponentTestUtils.tsx b/packages/legend-query/src/components/QueryComponentTestUtils.tsx index d94c80ad187..a86050984de 100644 --- a/packages/legend-query/src/components/QueryComponentTestUtils.tsx +++ b/packages/legend-query/src/components/QueryComponentTestUtils.tsx @@ -44,14 +44,14 @@ import { TEST__getTestApplicationStore, WebApplicationNavigator, } from '@finos/legend-application'; -import { LegendQueryStore } from '../stores/LegendQueryStore'; -import { TEST__getTestQueryConfig } from '../stores/QueryStoreTestUtils'; -import { LegendQueryStoreProvider } from './LegendQueryStoreProvider'; -import { LegendQueryPluginManager } from '../application/LegendQueryPluginManager'; -import { ExistingQueryLoader } from './QueryEditor'; -import { generateExistingQueryRoute } from '../stores/LegendQueryRouter'; -import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID'; -import type { LegendQueryConfig } from '../application/LegendQueryConfig'; +import { LegendQueryStore } from '../stores/LegendQueryStore.js'; +import { TEST__getTestQueryConfig } from '../stores/QueryStoreTestUtils.js'; +import { LegendQueryStoreProvider } from './LegendQueryStoreProvider.js'; +import { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js'; +import { ExistingQueryLoader } from './QueryEditor.js'; +import { generateExistingQueryRoute } from '../stores/LegendQueryRouter.js'; +import { QUERY_BUILDER_TEST_ID } from './QueryBuilder_TestID.js'; +import type { LegendQueryConfig } from '../application/LegendQueryConfig.js'; import type { Entity } from '@finos/legend-model-storage'; export const TEST__LegendQueryStoreProvider: React.FC<{ @@ -84,7 +84,7 @@ export const TEST__provideMockedLegendQueryStore = (customization?: { TEST__getTestGraphManagerState(customization?.pluginManager), pluginManager, ); - const MockedQueryStoreProvider = require('./LegendQueryStoreProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment + const MockedQueryStoreProvider = require('./LegendQueryStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment MockedQueryStoreProvider.useLegendQueryStore = jest.fn(); MockedQueryStoreProvider.useLegendQueryStore.mockReturnValue(value); return value; diff --git a/packages/legend-query/src/components/QueryEditor.tsx b/packages/legend-query/src/components/QueryEditor.tsx index 0233e9759e7..40312122661 100644 --- a/packages/legend-query/src/components/QueryEditor.tsx +++ b/packages/legend-query/src/components/QueryEditor.tsx @@ -37,15 +37,15 @@ import { type ServiceQueryQueryParams, LEGEND_QUERY_ROUTE_PATTERN, generateCreateQueryRoute, -} from '../stores/LegendQueryRouter'; +} from '../stores/LegendQueryRouter.js'; import { type QueryExportState, ExistingQueryInfoState, ServiceQueryInfoState, CreateQueryInfoState, -} from '../stores/LegendQueryStore'; -import { QueryBuilder } from './QueryBuilder'; -import { useLegendQueryStore } from './LegendQueryStoreProvider'; +} from '../stores/LegendQueryStore.js'; +import { QueryBuilder } from './QueryBuilder.js'; +import { useLegendQueryStore } from './LegendQueryStoreProvider.js'; import { RuntimePointer } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; diff --git a/packages/legend-query/src/components/QuerySetup.tsx b/packages/legend-query/src/components/QuerySetup.tsx index 7e410788b30..441cd67d48c 100644 --- a/packages/legend-query/src/components/QuerySetup.tsx +++ b/packages/legend-query/src/components/QuerySetup.tsx @@ -37,24 +37,24 @@ import { generateCreateQueryRoute, generateExistingQueryRoute, generateServiceQueryRoute, -} from '../stores/LegendQueryRouter'; +} from '../stores/LegendQueryRouter.js'; import { type QuerySetupState, type ServiceExecutionOption, CreateQuerySetupState, ExistingQuerySetupState, ServiceQuerySetupState, -} from '../stores/QuerySetupStore'; +} from '../stores/QuerySetupStore.js'; import { CreateQueryInfoState, ExistingQueryInfoState, ServiceQueryInfoState, -} from '../stores/LegendQueryStore'; +} from '../stores/LegendQueryStore.js'; import { QuerySetupStoreProvider, useQuerySetupStore, -} from './QuerySetupStoreProvider'; -import { useLegendQueryStore } from './LegendQueryStoreProvider'; +} from './QuerySetupStoreProvider.js'; +import { useLegendQueryStore } from './LegendQueryStoreProvider.js'; import { type ProjectData, LATEST_VERSION_ALIAS, diff --git a/packages/legend-query/src/components/QuerySetupStoreProvider.tsx b/packages/legend-query/src/components/QuerySetupStoreProvider.tsx index 81d6be07ee4..4277f25cd60 100644 --- a/packages/legend-query/src/components/QuerySetupStoreProvider.tsx +++ b/packages/legend-query/src/components/QuerySetupStoreProvider.tsx @@ -16,8 +16,8 @@ import { createContext, useContext } from 'react'; import { useLocalObservable } from 'mobx-react-lite'; -import { QuerySetupStore } from '../stores/QuerySetupStore'; -import { useLegendQueryStore } from './LegendQueryStoreProvider'; +import { QuerySetupStore } from '../stores/QuerySetupStore.js'; +import { useLegendQueryStore } from './LegendQueryStoreProvider.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; const QuerySetupStoreContext = createContext( diff --git a/packages/legend-query/src/components/__tests__/QueryBuilder_FetchStructure.test.tsx b/packages/legend-query/src/components/__tests__/QueryBuilder_FetchStructure.test.tsx index 31c281e88ac..11b009c322d 100644 --- a/packages/legend-query/src/components/__tests__/QueryBuilder_FetchStructure.test.tsx +++ b/packages/legend-query/src/components/__tests__/QueryBuilder_FetchStructure.test.tsx @@ -26,7 +26,7 @@ import { TEST_DATA__complexGraphFetch, TEST_DATA__simpleGraphFetch, TEST_DATA__simpleProjectionWithSubtype, -} from '../../stores/__tests__/TEST_DATA__QueryBuilder_Generic'; +} from '../../stores/__tests__/TEST_DATA__QueryBuilder_Generic.js'; import TEST_DATA__ComplexRelationalModel from '../../stores/__tests__/TEST_DATA__QueryBuilder_Model_ComplexRelational.json'; import TEST_DATA__ComplexM2MModel from '../../stores/__tests__/TEST_DATA__QueryBuilder_Model_ComplexM2M.json'; import { @@ -45,17 +45,17 @@ import { import { TEST__provideMockedLegendQueryStore, TEST__setUpQueryEditor, -} from '../QueryComponentTestUtils'; -import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID'; +} from '../QueryComponentTestUtils.js'; +import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js'; import { QueryBuilderExplorerTreeRootNodeData, QueryBuilderExplorerTreeSubTypeNodeData, -} from '../../stores/QueryBuilderExplorerState'; -import { QueryBuilderSimpleProjectionColumnState } from '../../stores/QueryBuilderProjectionState'; -import { COLUMN_SORT_TYPE } from '../../stores/QueryResultSetModifierState'; -import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager'; -import { Query_GraphPreset } from '../../models/Query_GraphPreset'; -import { FETCH_STRUCTURE_MODE } from '../../stores/QueryBuilderFetchStructureState'; +} from '../../stores/QueryBuilderExplorerState.js'; +import { QueryBuilderSimpleProjectionColumnState } from '../../stores/QueryBuilderProjectionState.js'; +import { COLUMN_SORT_TYPE } from '../../stores/QueryResultSetModifierState.js'; +import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager.js'; +import { Query_GraphPreset } from '../../models/Query_GraphPreset.js'; +import { FETCH_STRUCTURE_MODE } from '../../stores/QueryBuilderFetchStructureState.js'; test( integrationTest( diff --git a/packages/legend-query/src/components/__tests__/QueryBuilder_Milestoning.test.tsx b/packages/legend-query/src/components/__tests__/QueryBuilder_Milestoning.test.tsx index f0d9b062983..f306a0d4dac 100644 --- a/packages/legend-query/src/components/__tests__/QueryBuilder_Milestoning.test.tsx +++ b/packages/legend-query/src/components/__tests__/QueryBuilder_Milestoning.test.tsx @@ -29,7 +29,7 @@ import { TEST_DATA__simpleProjectionWithProcessingTemporalSourceAndBiTemporalTarget, TEST_DATA__simpleProjectionWithProcessingTemporalSourceAndBusinessTemporalTarget, TEST_DATA__simpleProjectionWithProcessingTemporalSourceAndProcessingTemporalTarget, -} from '../../stores/__tests__/TEST_DATA__QueryBuilder_Milestoning'; +} from '../../stores/__tests__/TEST_DATA__QueryBuilder_Milestoning.js'; import TEST_MilestoningModel from '../../stores/__tests__/TEST_DATA__QueryBuilder_Model_Milestoning.json'; import { integrationTest, @@ -41,11 +41,11 @@ import { stub_RawLambda, create_RawLambda } from '@finos/legend-graph'; import { TEST__provideMockedLegendQueryStore, TEST__setUpQueryEditor, -} from '../QueryComponentTestUtils'; -import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID'; -import { QueryBuilderSimpleProjectionColumnState } from '../../stores/QueryBuilderProjectionState'; -import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager'; -import { Query_GraphPreset } from '../../models/Query_GraphPreset'; +} from '../QueryComponentTestUtils.js'; +import { QUERY_BUILDER_TEST_ID } from '../QueryBuilder_TestID.js'; +import { QueryBuilderSimpleProjectionColumnState } from '../../stores/QueryBuilderProjectionState.js'; +import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager.js'; +import { Query_GraphPreset } from '../../models/Query_GraphPreset.js'; test( integrationTest( diff --git a/packages/legend-query/src/index.ts b/packages/legend-query/src/index.ts index b4022159516..964dfd5d10a 100644 --- a/packages/legend-query/src/index.ts +++ b/packages/legend-query/src/index.ts @@ -14,31 +14,31 @@ * limitations under the License. */ -export * from './application/LegendQuery'; +export * from './application/LegendQuery.js'; -export { QUERY_BUILDER_TEST_ID } from './components/QueryBuilder_TestID'; +export { QUERY_BUILDER_TEST_ID } from './components/QueryBuilder_TestID.js'; -export { QueryBuilder_PureProtocolProcessorPlugin } from './models/protocols/pure/QueryBuilder_PureProtocolProcessorPlugin'; +export { QueryBuilder_PureProtocolProcessorPlugin } from './models/protocols/pure/QueryBuilder_PureProtocolProcessorPlugin.js'; -export { QueryBuilder } from './components/QueryBuilder'; -export { useQuerySetupStore } from './components/QuerySetupStoreProvider'; -export { useLegendQueryStore } from './components/LegendQueryStoreProvider'; +export { QueryBuilder } from './components/QueryBuilder.js'; +export { useQuerySetupStore } from './components/QuerySetupStoreProvider.js'; +export { useLegendQueryStore } from './components/LegendQueryStoreProvider.js'; -export { LegendQueryPluginManager } from './application/LegendQueryPluginManager'; +export { LegendQueryPluginManager } from './application/LegendQueryPluginManager.js'; -export * from './stores/LegendQueryPlugin'; -export * from './stores/LegendQueryRouter'; -export { QuerySetupState, QuerySetupStore } from './stores/QuerySetupStore'; +export * from './stores/LegendQueryPlugin.js'; +export * from './stores/LegendQueryRouter.js'; +export { QuerySetupState, QuerySetupStore } from './stores/QuerySetupStore.js'; export { LegendQueryStore, CreateQueryInfoState, -} from './stores/LegendQueryStore'; +} from './stores/LegendQueryStore.js'; export { QueryBuilderMode, StandardQueryBuilderMode, QueryBuilderState, -} from './stores/QueryBuilderState'; -export { QueryBuilderExplorerTreeRootNodeData } from './stores/QueryBuilderExplorerState'; -export { FETCH_STRUCTURE_MODE } from './stores/QueryBuilderFetchStructureState'; -export { COLUMN_SORT_TYPE } from './stores/QueryResultSetModifierState'; -export { QueryBuilderSimpleProjectionColumnState } from './stores/QueryBuilderProjectionState'; +} from './stores/QueryBuilderState.js'; +export { QueryBuilderExplorerTreeRootNodeData } from './stores/QueryBuilderExplorerState.js'; +export { FETCH_STRUCTURE_MODE } from './stores/QueryBuilderFetchStructureState.js'; +export { COLUMN_SORT_TYPE } from './stores/QueryResultSetModifierState.js'; +export { QueryBuilderSimpleProjectionColumnState } from './stores/QueryBuilderProjectionState.js'; diff --git a/packages/legend-query/src/models/Query_GraphPreset.ts b/packages/legend-query/src/models/Query_GraphPreset.ts index e185447c2fd..57c89eaac2c 100644 --- a/packages/legend-query/src/models/Query_GraphPreset.ts +++ b/packages/legend-query/src/models/Query_GraphPreset.ts @@ -16,7 +16,7 @@ import packageJson from '../../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { QueryBuilder_PureProtocolProcessorPlugin } from './protocols/pure/QueryBuilder_PureProtocolProcessorPlugin'; +import { QueryBuilder_PureProtocolProcessorPlugin } from './protocols/pure/QueryBuilder_PureProtocolProcessorPlugin.js'; export class Query_GraphPreset extends AbstractPreset { constructor() { diff --git a/packages/legend-query/src/models/protocols/pure/QueryBuilder_PureProtocolProcessorPlugin.ts b/packages/legend-query/src/models/protocols/pure/QueryBuilder_PureProtocolProcessorPlugin.ts index f7bf72ae881..fcb49692391 100644 --- a/packages/legend-query/src/models/protocols/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +++ b/packages/legend-query/src/models/protocols/pure/QueryBuilder_PureProtocolProcessorPlugin.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../../../package.json'; -import { SUPPORTED_FUNCTIONS } from '../../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../../QueryBuilder_Const.js'; import { V1_buildExistsFunctionExpression, V1_buildFilterFunctionExpression, @@ -23,7 +23,7 @@ import { V1_buildGetAllFunctionExpression, V1_buildGroupByFunctionExpression, V1_buildProjectFunctionExpression, -} from './v1/V1_QueryBuilder_FunctionExpressionBuilder'; +} from './v1/V1_QueryBuilder_FunctionExpressionBuilder.js'; import { type V1_GraphBuilderContext, type V1_ProcessingContext, @@ -40,7 +40,7 @@ import { PRIMITIVE_TYPE, GenericType, } from '@finos/legend-graph'; -import { V1_buildSubTypePropertyExpressionTypeInference } from './v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder'; +import { V1_buildSubTypePropertyExpressionTypeInference } from './v1/V1_QueryBuilder_PropertyExpressionTypeInferenceBuilder.js'; export class QueryBuilder_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin { constructor() { diff --git a/packages/legend-query/src/models/protocols/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts b/packages/legend-query/src/models/protocols/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts index 24dc086f58b..b580e807457 100644 --- a/packages/legend-query/src/models/protocols/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts +++ b/packages/legend-query/src/models/protocols/pure/v1/V1_QueryBuilder_FunctionExpressionBuilder.ts @@ -22,7 +22,10 @@ import { guaranteeType, returnUndefOnError, } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS, TDS_ROW } from '../../../../QueryBuilder_Const'; +import { + SUPPORTED_FUNCTIONS, + TDS_ROW, +} from '../../../../QueryBuilder_Const.js'; import { type V1_GraphBuilderContext, type V1_ProcessingContext, diff --git a/packages/legend-query/src/stores/LegendQueryPlugin.ts b/packages/legend-query/src/stores/LegendQueryPlugin.ts index bd19263cd40..9b45a355c2b 100644 --- a/packages/legend-query/src/stores/LegendQueryPlugin.ts +++ b/packages/legend-query/src/stores/LegendQueryPlugin.ts @@ -15,8 +15,8 @@ */ import { AbstractPlugin } from '@finos/legend-shared'; -import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager'; -import type { QuerySetupState, QuerySetupStore } from './QuerySetupStore'; +import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js'; +import type { QuerySetupState, QuerySetupStore } from './QuerySetupStore.js'; export type QuerySetupOptionRendererConfiguration = { key: string; diff --git a/packages/legend-query/src/stores/LegendQueryStore.ts b/packages/legend-query/src/stores/LegendQueryStore.ts index 778b6a02232..9aabf52559c 100644 --- a/packages/legend-query/src/stores/LegendQueryStore.ts +++ b/packages/legend-query/src/stores/LegendQueryStore.ts @@ -57,15 +57,15 @@ import { import { QueryBuilderState, StandardQueryBuilderMode, -} from './QueryBuilderState'; +} from './QueryBuilderState.js'; import { type CreateQueryPathParams, type ExistingQueryPathParams, type ServiceQueryPathParams, generateCreateQueryRoute, generateExistingQueryRoute, -} from './LegendQueryRouter'; -import { LEGEND_QUERY_APP_EVENT } from '../LegendQueryAppEvent'; +} from './LegendQueryRouter.js'; +import { LEGEND_QUERY_APP_EVENT } from '../LegendQueryAppEvent.js'; import type { Entity } from '@finos/legend-model-storage'; import { type DepotServerClient, @@ -81,9 +81,9 @@ import { APPLICATION_EVENT, TAB_SIZE, } from '@finos/legend-application'; -import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager'; -import type { LegendQueryConfig } from '../application/LegendQueryConfig'; -import { LegendQueryEventService } from './LegendQueryEventService'; +import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js'; +import type { LegendQueryConfig } from '../application/LegendQueryConfig.js'; +import { LegendQueryEventService } from './LegendQueryEventService.js'; export abstract class QueryInfoState { queryStore: LegendQueryStore; diff --git a/packages/legend-query/src/stores/QueryBuilderAggregationState.ts b/packages/legend-query/src/stores/QueryBuilderAggregationState.ts index 96724870cbd..f9932e2790f 100644 --- a/packages/legend-query/src/stores/QueryBuilderAggregationState.ts +++ b/packages/legend-query/src/stores/QueryBuilderAggregationState.ts @@ -29,12 +29,12 @@ import type { ValueSpecification, VariableExpression, } from '@finos/legend-graph'; -import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilder_Const'; +import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../QueryBuilder_Const.js'; import { QueryBuilderSimpleProjectionColumnState, type QueryBuilderProjectionColumnState, type QueryBuilderProjectionState, -} from './QueryBuilderProjectionState'; +} from './QueryBuilderProjectionState.js'; export abstract class QueryBuilderAggregateOperator { readonly uuid = uuid(); diff --git a/packages/legend-query/src/stores/QueryBuilderExplorerState.ts b/packages/legend-query/src/stores/QueryBuilderExplorerState.ts index 5a9ed416757..2a86c3b7c9d 100644 --- a/packages/legend-query/src/stores/QueryBuilderExplorerState.ts +++ b/packages/legend-query/src/stores/QueryBuilderExplorerState.ts @@ -60,13 +60,13 @@ import { getAllOwnClassProperties, getAllClassDerivedProperties, } from '@finos/legend-graph'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { action, makeAutoObservable, observable } from 'mobx'; import { DEFAULT_LAMBDA_VARIABLE_NAME, SUPPORTED_FUNCTIONS, -} from '../QueryBuilder_Const'; -import type { QueryBuilderPreviewData } from './QueryBuilderPreviewDataHelper'; +} from '../QueryBuilder_Const.js'; +import type { QueryBuilderPreviewData } from './QueryBuilderPreviewDataHelper.js'; export enum QUERY_BUILDER_EXPLORER_TREE_DND_TYPE { ROOT = 'ROOT', diff --git a/packages/legend-query/src/stores/QueryBuilderFetchStructureState.ts b/packages/legend-query/src/stores/QueryBuilderFetchStructureState.ts index 3665ac528d5..ddcf2ae5b4b 100644 --- a/packages/legend-query/src/stores/QueryBuilderFetchStructureState.ts +++ b/packages/legend-query/src/stores/QueryBuilderFetchStructureState.ts @@ -15,9 +15,9 @@ */ import { action, makeAutoObservable } from 'mobx'; -import type { QueryBuilderState } from './QueryBuilderState'; -import { QueryBuilderGraphFetchTreeState } from './QueryBuilderGraphFetchTreeState'; -import { QueryBuilderProjectionState } from './QueryBuilderProjectionState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; +import { QueryBuilderGraphFetchTreeState } from './QueryBuilderGraphFetchTreeState.js'; +import { QueryBuilderProjectionState } from './QueryBuilderProjectionState.js'; export enum FETCH_STRUCTURE_MODE { PROJECTION = 'PROJECTION', diff --git a/packages/legend-query/src/stores/QueryBuilderFilterState.ts b/packages/legend-query/src/stores/QueryBuilderFilterState.ts index 7397ea81164..473ed403e4b 100644 --- a/packages/legend-query/src/stores/QueryBuilderFilterState.ts +++ b/packages/legend-query/src/stores/QueryBuilderFilterState.ts @@ -35,9 +35,9 @@ import { assertErrorThrown, filterByType, } from '@finos/legend-shared'; -import type { QueryBuilderExplorerTreeDragSource } from './QueryBuilderExplorerState'; -import { QueryBuilderPropertyExpressionState } from './QueryBuilderPropertyEditorState'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderExplorerTreeDragSource } from './QueryBuilderExplorerState.js'; +import { QueryBuilderPropertyExpressionState } from './QueryBuilderPropertyEditorState.js'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { type AbstractPropertyExpression, type ValueSpecification, @@ -49,12 +49,12 @@ import { import { DEFAULT_LAMBDA_VARIABLE_NAME, SUPPORTED_FUNCTIONS, -} from '../QueryBuilder_Const'; -import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper'; +} from '../QueryBuilder_Const.js'; +import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper.js'; import { fromGroupOperation, QUERY_BUILDER_GROUP_OPERATION, -} from './QueryBuilderOperatorsHelper'; +} from './QueryBuilderOperatorsHelper.js'; export abstract class QueryBuilderFilterOperator { readonly uuid = uuid(); diff --git a/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeState.ts b/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeState.ts index 3489a1bda52..de873e5612a 100644 --- a/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeState.ts +++ b/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeState.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { makeAutoObservable, action } from 'mobx'; import { PackageableElementExplicitReference, @@ -24,8 +24,8 @@ import { type QueryBuilderGraphFetchTreeData, addQueryBuilderPropertyNode, buildGraphFetchTreeData, -} from './QueryBuilderGraphFetchTreeUtil'; -import type { QueryBuilderExplorerTreePropertyNodeData } from './QueryBuilderExplorerState'; +} from './QueryBuilderGraphFetchTreeUtil.js'; +import type { QueryBuilderExplorerTreePropertyNodeData } from './QueryBuilderExplorerState.js'; export class QueryBuilderGraphFetchTreeState { queryBuilderState: QueryBuilderState; diff --git a/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeUtil.ts b/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeUtil.ts index 5f13dffd446..554d6ce112c 100644 --- a/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeUtil.ts +++ b/packages/legend-query/src/stores/QueryBuilderGraphFetchTreeUtil.ts @@ -30,12 +30,12 @@ import { type QueryBuilderExplorerTreeNodeData, QueryBuilderExplorerTreePropertyNodeData, QueryBuilderExplorerTreeSubTypeNodeData, -} from './QueryBuilderExplorerState'; -import type { QueryBuilderState } from './QueryBuilderState'; +} from './QueryBuilderExplorerState.js'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { graphFetchTree_addSubTree, graphFetchTree_removeSubTree, -} from './QueryBuilderValueSpecificationModifierHelper'; +} from './QueryBuilderValueSpecificationModifierHelper.js'; export class QueryBuilderGraphFetchTreeNodeData implements TreeNodeData { isSelected?: boolean | undefined; diff --git a/packages/legend-query/src/stores/QueryBuilderLambdaBuilder.ts b/packages/legend-query/src/stores/QueryBuilderLambdaBuilder.ts index 54441f8db06..01e7df1b3e5 100644 --- a/packages/legend-query/src/stores/QueryBuilderLambdaBuilder.ts +++ b/packages/legend-query/src/stores/QueryBuilderLambdaBuilder.ts @@ -51,27 +51,27 @@ import { INTERNAL__PropagatedValue, matchFunctionName, } from '@finos/legend-graph'; -import { isGraphFetchTreeDataEmpty } from './QueryBuilderGraphFetchTreeUtil'; -import type { QueryBuilderState } from './QueryBuilderState'; -import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const'; -import { buildFilterExpression } from './QueryBuilderFilterState'; +import { isGraphFetchTreeDataEmpty } from './QueryBuilderGraphFetchTreeUtil.js'; +import type { QueryBuilderState } from './QueryBuilderState.js'; +import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js'; +import { buildFilterExpression } from './QueryBuilderFilterState.js'; import { QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from './QueryBuilderProjectionState'; -import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderProjectionState.js'; +import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper.js'; import { type QueryBuilderPostFilterState, type QueryBuilderPostFilterTreeNodeData, QueryBuilderPostFilterTreeConditionNodeData, QueryBuilderPostFilterTreeGroupNodeData, -} from './QueryBuilderPostFilterState'; -import { fromGroupOperation } from './QueryBuilderOperatorsHelper'; +} from './QueryBuilderPostFilterState.js'; +import { fromGroupOperation } from './QueryBuilderOperatorsHelper.js'; import { functionExpression_setParametersValues, propertyExpression_setParametersValue, -} from './QueryBuilderValueSpecificationModifierHelper'; -import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState'; +} from './QueryBuilderValueSpecificationModifierHelper.js'; +import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js'; /** * Checks if the provided property expression match the criteria for default diff --git a/packages/legend-query/src/stores/QueryBuilderLambdaProcessor.ts b/packages/legend-query/src/stores/QueryBuilderLambdaProcessor.ts index acfe401ebb9..4d2b9a19844 100644 --- a/packages/legend-query/src/stores/QueryBuilderLambdaProcessor.ts +++ b/packages/legend-query/src/stores/QueryBuilderLambdaProcessor.ts @@ -27,17 +27,17 @@ import { returnUndefOnError, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { COLUMN_SORT_TYPE, SortColumnState, -} from './QueryResultSetModifierState'; +} from './QueryResultSetModifierState.js'; import { type QueryBuilderFilterState, QueryBuilderFilterTreeGroupNodeData, QueryBuilderFilterTreeConditionNodeData, -} from './QueryBuilderFilterState'; -import { FETCH_STRUCTURE_MODE } from './QueryBuilderFetchStructureState'; +} from './QueryBuilderFilterState.js'; +import { FETCH_STRUCTURE_MODE } from './QueryBuilderFetchStructureState.js'; import { type AlloySerializationConfigInstanceValue, type EnumValueInstanceValue, @@ -76,13 +76,13 @@ import { type QueryBuilderProjectionColumnState, QueryBuilderDerivationProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from './QueryBuilderProjectionState'; -import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const'; -import type { QueryBuilderAggregationState } from './QueryBuilderAggregationState'; -import { QueryParameterState } from './QueryParametersState'; -import { toGroupOperation } from './QueryBuilderOperatorsHelper'; -import { processPostFilterLambda } from './QueryBuilderPostFilterProcessor'; -import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState'; +} from './QueryBuilderProjectionState.js'; +import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js'; +import type { QueryBuilderAggregationState } from './QueryBuilderAggregationState.js'; +import { QueryParameterState } from './QueryParametersState.js'; +import { toGroupOperation } from './QueryBuilderOperatorsHelper.js'; +import { processPostFilterLambda } from './QueryBuilderPostFilterProcessor.js'; +import { getDerivedPropertyMilestoningSteoreotype } from './QueryBuilderPropertyEditorState.js'; const getNullableStringValueFromValueSpec = ( valueSpec: ValueSpecification, diff --git a/packages/legend-query/src/stores/QueryBuilderOperatorsHelper.ts b/packages/legend-query/src/stores/QueryBuilderOperatorsHelper.ts index ef938936ab8..2fa7a1e037e 100644 --- a/packages/legend-query/src/stores/QueryBuilderOperatorsHelper.ts +++ b/packages/legend-query/src/stores/QueryBuilderOperatorsHelper.ts @@ -37,7 +37,7 @@ import { guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js'; export enum QUERY_BUILDER_GROUP_OPERATION { AND = 'and', diff --git a/packages/legend-query/src/stores/QueryBuilderPostFilterOperator.ts b/packages/legend-query/src/stores/QueryBuilderPostFilterOperator.ts index 696407a3fc9..8cdf2a20d60 100644 --- a/packages/legend-query/src/stores/QueryBuilderPostFilterOperator.ts +++ b/packages/legend-query/src/stores/QueryBuilderPostFilterOperator.ts @@ -24,7 +24,7 @@ import type { PostFilterConditionState, QueryBuilderPostFilterState, TDS_COLUMN_GETTER, -} from './QueryBuilderPostFilterState'; +} from './QueryBuilderPostFilterState.js'; export abstract class QueryBuilderPostFilterOperator { readonly uuid = uuid(); diff --git a/packages/legend-query/src/stores/QueryBuilderPostFilterProcessor.ts b/packages/legend-query/src/stores/QueryBuilderPostFilterProcessor.ts index 9563ffc37da..b146f9716f0 100644 --- a/packages/legend-query/src/stores/QueryBuilderPostFilterProcessor.ts +++ b/packages/legend-query/src/stores/QueryBuilderPostFilterProcessor.ts @@ -30,10 +30,10 @@ import { guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const'; -import type { QueryBuilderAggregateColumnState } from './QueryBuilderAggregationState'; -import { toGroupOperation } from './QueryBuilderOperatorsHelper'; -import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator'; +import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js'; +import type { QueryBuilderAggregateColumnState } from './QueryBuilderAggregationState.js'; +import { toGroupOperation } from './QueryBuilderOperatorsHelper.js'; +import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator.js'; import { type QueryBuilderPostFilterState, getTDSColumnDerivedProperyFromType, @@ -42,11 +42,11 @@ import { QueryBuilderPostFilterTreeGroupNodeData, TDS_COLUMN_GETTER, getTypeFromDerivedProperty, -} from './QueryBuilderPostFilterState'; +} from './QueryBuilderPostFilterState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderDerivationProjectionColumnState, -} from './QueryBuilderProjectionState'; +} from './QueryBuilderProjectionState.js'; export const findTdsColumnState = ( propertyExpression: AbstractPropertyExpression, diff --git a/packages/legend-query/src/stores/QueryBuilderPostFilterState.ts b/packages/legend-query/src/stores/QueryBuilderPostFilterState.ts index 53af071a344..3ab51436fb9 100644 --- a/packages/legend-query/src/stores/QueryBuilderPostFilterState.ts +++ b/packages/legend-query/src/stores/QueryBuilderPostFilterState.ts @@ -46,16 +46,16 @@ import { makeObservable, observable, } from 'mobx'; -import { DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME } from '../QueryBuilder_Const'; -import type { QueryBuilderAggregateColumnState } from './QueryBuilderAggregationState'; -import { QUERY_BUILDER_GROUP_OPERATION } from './QueryBuilderOperatorsHelper'; -import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator'; +import { DEFAULT_POST_FILTER_LAMBDA_VARIABLE_NAME } from '../QueryBuilder_Const.js'; +import type { QueryBuilderAggregateColumnState } from './QueryBuilderAggregationState.js'; +import { QUERY_BUILDER_GROUP_OPERATION } from './QueryBuilderOperatorsHelper.js'; +import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator.js'; import { type QueryBuilderProjectionColumnDragSource, type QueryBuilderProjectionColumnState, QueryBuilderDerivationProjectionColumnState, -} from './QueryBuilderProjectionState'; -import type { QueryBuilderState } from './QueryBuilderState'; +} from './QueryBuilderProjectionState.js'; +import type { QueryBuilderState } from './QueryBuilderState.js'; export enum QUERY_BUILDER_POST_FILTER_DND_TYPE { GROUP_CONDITION = 'GROUP_CONDITION', diff --git a/packages/legend-query/src/stores/QueryBuilderPreviewDataHelper.ts b/packages/legend-query/src/stores/QueryBuilderPreviewDataHelper.ts index 43202d1c548..f40f381ef1c 100644 --- a/packages/legend-query/src/stores/QueryBuilderPreviewDataHelper.ts +++ b/packages/legend-query/src/stores/QueryBuilderPreviewDataHelper.ts @@ -34,18 +34,18 @@ import { import { DEFAULT_LAMBDA_VARIABLE_NAME, SUPPORTED_FUNCTIONS, -} from '../QueryBuilder_Const'; -import { QueryBuilderAggregateOperator_Average } from './aggregateOperators/QueryBuilderAggregateOperator_Average'; -import { QueryBuilderAggregateOperator_Count } from './aggregateOperators/QueryBuilderAggregateOperator_Count'; -import { QueryBuilderAggregateOperator_DistinctCount } from './aggregateOperators/QueryBuilderAggregateOperator_DistinctCount'; -import { QueryBuilderAggregateOperator_Max } from './aggregateOperators/QueryBuilderAggregateOperator_Max'; -import { QueryBuilderAggregateOperator_Min } from './aggregateOperators/QueryBuilderAggregateOperator_Min'; -import { QueryBuilderAggregateOperator_StdDev_Population } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population'; -import { QueryBuilderAggregateOperator_StdDev_Sample } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample'; -import { QueryBuilderAggregateOperator_Sum } from './aggregateOperators/QueryBuilderAggregateOperator_Sum'; -import type { QueryBuilderAggregateOperator } from './QueryBuilderAggregationState'; -import { buildGetAllFunction } from './QueryBuilderLambdaBuilder'; -import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper'; +} from '../QueryBuilder_Const.js'; +import { QueryBuilderAggregateOperator_Average } from './aggregateOperators/QueryBuilderAggregateOperator_Average.js'; +import { QueryBuilderAggregateOperator_Count } from './aggregateOperators/QueryBuilderAggregateOperator_Count.js'; +import { QueryBuilderAggregateOperator_DistinctCount } from './aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js'; +import { QueryBuilderAggregateOperator_Max } from './aggregateOperators/QueryBuilderAggregateOperator_Max.js'; +import { QueryBuilderAggregateOperator_Min } from './aggregateOperators/QueryBuilderAggregateOperator_Min.js'; +import { QueryBuilderAggregateOperator_StdDev_Population } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js'; +import { QueryBuilderAggregateOperator_StdDev_Sample } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js'; +import { QueryBuilderAggregateOperator_Sum } from './aggregateOperators/QueryBuilderAggregateOperator_Sum.js'; +import type { QueryBuilderAggregateOperator } from './QueryBuilderAggregationState.js'; +import { buildGetAllFunction } from './QueryBuilderLambdaBuilder.js'; +import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper.js'; const buildGroupByFunction = ( getAllFunction: SimpleFunctionExpression, diff --git a/packages/legend-query/src/stores/QueryBuilderProjectionState.ts b/packages/legend-query/src/stores/QueryBuilderProjectionState.ts index fd963af7888..70bc34a324a 100644 --- a/packages/legend-query/src/stores/QueryBuilderProjectionState.ts +++ b/packages/legend-query/src/stores/QueryBuilderProjectionState.ts @@ -42,12 +42,12 @@ import { import { type QueryBuilderExplorerTreePropertyNodeData, buildPropertyExpressionFromExplorerTreeNodeData, -} from './QueryBuilderExplorerState'; +} from './QueryBuilderExplorerState.js'; import { getPropertyChainName, QueryBuilderPropertyExpressionState, -} from './QueryBuilderPropertyEditorState'; -import type { QueryBuilderState } from './QueryBuilderState'; +} from './QueryBuilderPropertyEditorState.js'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { type AbstractPropertyExpression, type CompilationError, @@ -73,24 +73,24 @@ import { import { DEFAULT_LAMBDA_VARIABLE_NAME, QUERY_BUILDER_SOURCE_ID_LABEL, -} from '../QueryBuilder_Const'; -import { QueryBuilderAggregationState } from './QueryBuilderAggregationState'; -import { QueryBuilderAggregateOperator_Count } from './aggregateOperators/QueryBuilderAggregateOperator_Count'; -import { QueryBuilderAggregateOperator_Distinct } from './aggregateOperators/QueryBuilderAggregateOperator_Distinct'; -import { QueryBuilderAggregateOperator_Sum } from './aggregateOperators/QueryBuilderAggregateOperator_Sum'; -import { QueryBuilderAggregateOperator_Average } from './aggregateOperators/QueryBuilderAggregateOperator_Average'; -import { QueryBuilderAggregateOperator_StdDev_Population } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population'; -import { QueryBuilderAggregateOperator_StdDev_Sample } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample'; -import { QueryBuilderAggregateOperator_DistinctCount } from './aggregateOperators/QueryBuilderAggregateOperator_DistinctCount'; -import { QueryBuilderAggregateOperator_Min } from './aggregateOperators/QueryBuilderAggregateOperator_Min'; -import { QueryBuilderAggregateOperator_Max } from './aggregateOperators/QueryBuilderAggregateOperator_Max'; -import { QueryBuilderAggregateOperator_JoinString } from './aggregateOperators/QueryBuilderAggregateOperator_JoinString'; +} from '../QueryBuilder_Const.js'; +import { QueryBuilderAggregationState } from './QueryBuilderAggregationState.js'; +import { QueryBuilderAggregateOperator_Count } from './aggregateOperators/QueryBuilderAggregateOperator_Count.js'; +import { QueryBuilderAggregateOperator_Distinct } from './aggregateOperators/QueryBuilderAggregateOperator_Distinct.js'; +import { QueryBuilderAggregateOperator_Sum } from './aggregateOperators/QueryBuilderAggregateOperator_Sum.js'; +import { QueryBuilderAggregateOperator_Average } from './aggregateOperators/QueryBuilderAggregateOperator_Average.js'; +import { QueryBuilderAggregateOperator_StdDev_Population } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.js'; +import { QueryBuilderAggregateOperator_StdDev_Sample } from './aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.js'; +import { QueryBuilderAggregateOperator_DistinctCount } from './aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.js'; +import { QueryBuilderAggregateOperator_Min } from './aggregateOperators/QueryBuilderAggregateOperator_Min.js'; +import { QueryBuilderAggregateOperator_Max } from './aggregateOperators/QueryBuilderAggregateOperator_Max.js'; +import { QueryBuilderAggregateOperator_JoinString } from './aggregateOperators/QueryBuilderAggregateOperator_JoinString.js'; import { type QueryBuilderPreviewData, buildNonNumericPreviewDataQuery, buildNumericPreviewDataQuery, -} from './QueryBuilderPreviewDataHelper'; -import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderPreviewDataHelper.js'; +import { buildGenericLambdaFunctionInstanceValue } from './QueryBuilderValueSpecificationBuilderHelper.js'; import { LambdaEditorState } from '@finos/legend-application'; export enum QUERY_BUILDER_PROJECTION_DND_TYPE { diff --git a/packages/legend-query/src/stores/QueryBuilderPropertyEditorState.ts b/packages/legend-query/src/stores/QueryBuilderPropertyEditorState.ts index caba93ffe38..4672bc8c4a1 100644 --- a/packages/legend-query/src/stores/QueryBuilderPropertyEditorState.ts +++ b/packages/legend-query/src/stores/QueryBuilderPropertyEditorState.ts @@ -53,11 +53,11 @@ import { INTERNAL__PropagatedValue, Association, } from '@finos/legend-graph'; -import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationBuilderHelper'; -import type { QueryBuilderState } from './QueryBuilderState'; -import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const'; -import { functionExpression_setParametersValues } from './QueryBuilderValueSpecificationModifierHelper'; -import type { QueryBuilderSetupState } from './QueryBuilderSetupState'; +import { generateDefaultValueForPrimitiveType } from './QueryBuilderValueSpecificationBuilderHelper.js'; +import type { QueryBuilderState } from './QueryBuilderState.js'; +import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js'; +import { functionExpression_setParametersValues } from './QueryBuilderValueSpecificationModifierHelper.js'; +import type { QueryBuilderSetupState } from './QueryBuilderSetupState.js'; export const getDerivedPropertyMilestoningSteoreotype = ( property: DerivedProperty, diff --git a/packages/legend-query/src/stores/QueryBuilderResultState.ts b/packages/legend-query/src/stores/QueryBuilderResultState.ts index 11522bfc90e..b659cae2b5b 100644 --- a/packages/legend-query/src/stores/QueryBuilderResultState.ts +++ b/packages/legend-query/src/stores/QueryBuilderResultState.ts @@ -26,7 +26,7 @@ import { UnsupportedOperationError, ActionState, } from '@finos/legend-shared'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { type RawExecutionPlan, type ExecutionResult, @@ -39,7 +39,7 @@ import { import { buildLambdaFunction, buildParametersLetLambdaFunc, -} from './QueryBuilderLambdaBuilder'; +} from './QueryBuilderLambdaBuilder.js'; const DEFAULT_LIMIT = 1000; diff --git a/packages/legend-query/src/stores/QueryBuilderSetupState.ts b/packages/legend-query/src/stores/QueryBuilderSetupState.ts index 5723e1b7b64..70e005aa6c4 100644 --- a/packages/legend-query/src/stores/QueryBuilderSetupState.ts +++ b/packages/legend-query/src/stores/QueryBuilderSetupState.ts @@ -20,7 +20,7 @@ import { isNonNullable, uniq, } from '@finos/legend-shared'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { type Class, type Mapping, diff --git a/packages/legend-query/src/stores/QueryBuilderState.ts b/packages/legend-query/src/stores/QueryBuilderState.ts index 61fb6da68f2..ffcbdb5aa0a 100644 --- a/packages/legend-query/src/stores/QueryBuilderState.ts +++ b/packages/legend-query/src/stores/QueryBuilderState.ts @@ -26,21 +26,21 @@ import { import { type QueryBuilderFilterOperator, QueryBuilderFilterState, -} from './QueryBuilderFilterState'; -import { QueryBuilderFetchStructureState } from './QueryBuilderFetchStructureState'; -import { QueryResultSetModifierState } from './QueryResultSetModifierState'; +} from './QueryBuilderFilterState.js'; +import { QueryBuilderFetchStructureState } from './QueryBuilderFetchStructureState.js'; +import { QueryResultSetModifierState } from './QueryResultSetModifierState.js'; import { QueryTextEditorMode, QueryTextEditorState, -} from './QueryTextEditorState'; -import { QueryBuilderSetupState } from './QueryBuilderSetupState'; -import { QueryBuilderExplorerState } from './QueryBuilderExplorerState'; -import { QueryBuilderResultState } from './QueryBuilderResultState'; +} from './QueryTextEditorState.js'; +import { QueryBuilderSetupState } from './QueryBuilderSetupState.js'; +import { QueryBuilderExplorerState } from './QueryBuilderExplorerState.js'; +import { QueryBuilderResultState } from './QueryBuilderResultState.js'; import { processQueryBuilderLambdaFunction, processQueryParameters, -} from './QueryBuilderLambdaProcessor'; -import { QueryBuilderUnsupportedState } from './QueryBuilderUnsupportedState'; +} from './QueryBuilderLambdaProcessor.js'; +import { QueryBuilderUnsupportedState } from './QueryBuilderUnsupportedState.js'; import { type Class, type Enumeration, @@ -66,32 +66,32 @@ import { import { QueryBuilderFilterOperator_Equal, QueryBuilderFilterOperator_NotEqual, -} from './filterOperators/QueryBuilderFilterOperator_Equal'; -import { QueryBuilderFilterOperator_GreaterThan } from './filterOperators/QueryBuilderFilterOperator_GreaterThan'; +} from './filterOperators/QueryBuilderFilterOperator_Equal.js'; +import { QueryBuilderFilterOperator_GreaterThan } from './filterOperators/QueryBuilderFilterOperator_GreaterThan.js'; import { QueryBuilderFilterOperator_NotStartWith, QueryBuilderFilterOperator_StartWith, -} from './filterOperators/QueryBuilderFilterOperator_StartWith'; -import { QueryBuilderFilterOperator_GreaterThanEqual } from './filterOperators/QueryBuilderFilterOperator_GreaterThanEqual'; -import { QueryBuilderFilterOperator_LessThanEqual } from './filterOperators/QueryBuilderFilterOperator_LessThanEqual'; -import { QueryBuilderFilterOperator_LessThan } from './filterOperators/QueryBuilderFilterOperator_LessThan'; +} from './filterOperators/QueryBuilderFilterOperator_StartWith.js'; +import { QueryBuilderFilterOperator_GreaterThanEqual } from './filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.js'; +import { QueryBuilderFilterOperator_LessThanEqual } from './filterOperators/QueryBuilderFilterOperator_LessThanEqual.js'; +import { QueryBuilderFilterOperator_LessThan } from './filterOperators/QueryBuilderFilterOperator_LessThan.js'; import { QueryBuilderFilterOperator_EndWith, QueryBuilderFilterOperator_NotEndWith, -} from './filterOperators/QueryBuilderFilterOperator_EndWith'; +} from './filterOperators/QueryBuilderFilterOperator_EndWith.js'; import { QueryBuilderFilterOperator_Contain, QueryBuilderFilterOperator_NotContain, -} from './filterOperators/QueryBuilderFilterOperator_Contain'; +} from './filterOperators/QueryBuilderFilterOperator_Contain.js'; import { QueryBuilderFilterOperator_IsEmpty, QueryBuilderFilterOperator_IsNotEmpty, -} from './filterOperators/QueryBuilderFilterOperator_IsEmpty'; +} from './filterOperators/QueryBuilderFilterOperator_IsEmpty.js'; import { QueryBuilderFilterOperator_In, QueryBuilderFilterOperator_NotIn, -} from './filterOperators/QueryBuilderFilterOperator_In'; -import { buildLambdaFunction } from './QueryBuilderLambdaBuilder'; +} from './filterOperators/QueryBuilderFilterOperator_In.js'; +import { buildLambdaFunction } from './QueryBuilderLambdaBuilder.js'; import { buildElementOption, type ApplicationStore, @@ -101,38 +101,38 @@ import { import { QueryParametersState, QueryParameterState, -} from './QueryParametersState'; -import { QueryBuilderPostFilterState } from './QueryBuilderPostFilterState'; +} from './QueryParametersState.js'; +import { QueryBuilderPostFilterState } from './QueryBuilderPostFilterState.js'; import { QueryBuilderPostFilterOperator_Equal, QueryBuilderPostFilterOperator_NotEqual, -} from './postFilterOperators/QueryBuilderPostFilterOperator_Equal'; -import { QueryBuilderPostFilterOperator_LessThan } from './postFilterOperators/QueryBuilderPostFilterOperator_LessThan'; -import { QueryBuilderPostFilterOperator_LessThanEqual } from './postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual'; -import { QueryBuilderPostFilterOperator_GreaterThan } from './postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan'; -import { QueryBuilderPostFilterOperator_GreaterThanEqual } from './postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual'; +} from './postFilterOperators/QueryBuilderPostFilterOperator_Equal.js'; +import { QueryBuilderPostFilterOperator_LessThan } from './postFilterOperators/QueryBuilderPostFilterOperator_LessThan.js'; +import { QueryBuilderPostFilterOperator_LessThanEqual } from './postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.js'; +import { QueryBuilderPostFilterOperator_GreaterThan } from './postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.js'; +import { QueryBuilderPostFilterOperator_GreaterThanEqual } from './postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.js'; import { QueryBuilderPostFilterOperator_NotStartWith, QueryBuilderPostFilterOperator_StartWith, -} from './postFilterOperators/QueryBuilderPostFilterOperator_StartWith'; +} from './postFilterOperators/QueryBuilderPostFilterOperator_StartWith.js'; import { QueryBuilderPostFilterOperator_Contain, QueryBuilderPostFilterOperator_NotContain, -} from './postFilterOperators/QueryBuilderPostFilterOperator_Contain'; +} from './postFilterOperators/QueryBuilderPostFilterOperator_Contain.js'; import { QueryBuilderPostFilterOperator_EndWith, QueryBuilderPostFilterOperator_NotEndWith, -} from './postFilterOperators/QueryBuilderPostFilterOperator_EndWith'; -import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator'; +} from './postFilterOperators/QueryBuilderPostFilterOperator_EndWith.js'; +import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator.js'; import { QueryBuilderPostFilterOperator_In, QueryBuilderPostFilterOperator_NotIn, -} from './postFilterOperators/QueryBuilderPostFilterOperator_In'; +} from './postFilterOperators/QueryBuilderPostFilterOperator_In.js'; import { QueryBuilderPostFilterOperator_IsEmpty, QueryBuilderPostFilterOperator_IsNotEmpty, -} from './postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty'; -import { QueryFunctionsExplorerState } from './QueryFunctionsExplorerState'; +} from './postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.js'; +import { QueryFunctionsExplorerState } from './QueryFunctionsExplorerState.js'; export abstract class QueryBuilderMode { abstract get isParametersDisabled(): boolean; diff --git a/packages/legend-query/src/stores/QueryBuilderUnsupportedState.ts b/packages/legend-query/src/stores/QueryBuilderUnsupportedState.ts index 7c3b02c7c8f..c9b60d2f45d 100644 --- a/packages/legend-query/src/stores/QueryBuilderUnsupportedState.ts +++ b/packages/legend-query/src/stores/QueryBuilderUnsupportedState.ts @@ -15,7 +15,7 @@ */ import { makeAutoObservable, action } from 'mobx'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import type { RawLambda } from '@finos/legend-graph'; export class QueryBuilderUnsupportedState { diff --git a/packages/legend-query/src/stores/QueryFunctionsExplorerState.ts b/packages/legend-query/src/stores/QueryFunctionsExplorerState.ts index 898b716b606..60eed44e361 100644 --- a/packages/legend-query/src/stores/QueryFunctionsExplorerState.ts +++ b/packages/legend-query/src/stores/QueryFunctionsExplorerState.ts @@ -28,7 +28,7 @@ import { uuid, } from '@finos/legend-shared'; import { action, makeObservable, observable } from 'mobx'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import type { TreeNodeData, TreeData } from '@finos/legend-art'; export enum QUERY_BUILDER_FUNCTIONS_EXPLORER_TREE_DND_TYPE { diff --git a/packages/legend-query/src/stores/QueryParametersState.ts b/packages/legend-query/src/stores/QueryParametersState.ts index 36c69e087c9..73577252f93 100644 --- a/packages/legend-query/src/stores/QueryParametersState.ts +++ b/packages/legend-query/src/stores/QueryParametersState.ts @@ -42,13 +42,13 @@ import { uuid, } from '@finos/legend-shared'; import { observable, makeObservable, action } from 'mobx'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { DATE_FORMAT, DATE_TIME_FORMAT } from '@finos/legend-application'; import { multiplicity_setLowerBound, multiplicity_setUpperBound, genericType_setRawType, -} from './QueryBuilderValueSpecificationModifierHelper'; +} from './QueryBuilderValueSpecificationModifierHelper.js'; export enum QUERY_BUILDER_PARAMETER_TREE_DND_TYPE { VARIABLE = 'VARIABLE', diff --git a/packages/legend-query/src/stores/QueryResultSetModifierState.ts b/packages/legend-query/src/stores/QueryResultSetModifierState.ts index ba0afd8d8a2..45e527ee4b8 100644 --- a/packages/legend-query/src/stores/QueryResultSetModifierState.ts +++ b/packages/legend-query/src/stores/QueryResultSetModifierState.ts @@ -15,13 +15,13 @@ */ import { action, makeAutoObservable } from 'mobx'; -import type { QueryBuilderProjectionColumnState } from './QueryBuilderProjectionState'; +import type { QueryBuilderProjectionColumnState } from './QueryBuilderProjectionState.js'; import { addUniqueEntry, deleteEntry, guaranteeType, } from '@finos/legend-shared'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { type LambdaFunction, type ValueSpecification, @@ -36,7 +36,7 @@ import { SimpleFunctionExpression, TYPICAL_MULTIPLICITY_TYPE, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../QueryBuilder_Const.js'; export enum COLUMN_SORT_TYPE { ASC, diff --git a/packages/legend-query/src/stores/QuerySetupStore.ts b/packages/legend-query/src/stores/QuerySetupStore.ts index ba6d222a623..41fc9827633 100644 --- a/packages/legend-query/src/stores/QuerySetupStore.ts +++ b/packages/legend-query/src/stores/QuerySetupStore.ts @@ -37,7 +37,7 @@ import { QuerySearchSpecification, getAllIncludedMappings, } from '@finos/legend-graph'; -import type { LegendQueryStore } from './LegendQueryStore'; +import type { LegendQueryStore } from './LegendQueryStore.js'; import { ProjectData } from '@finos/legend-server-depot'; import { buildElementOption, diff --git a/packages/legend-query/src/stores/QueryStoreTestUtils.ts b/packages/legend-query/src/stores/QueryStoreTestUtils.ts index 727bf73b7c3..ce753e32957 100644 --- a/packages/legend-query/src/stores/QueryStoreTestUtils.ts +++ b/packages/legend-query/src/stores/QueryStoreTestUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { LegendQueryConfig } from '../application/LegendQueryConfig'; +import { LegendQueryConfig } from '../application/LegendQueryConfig.js'; import { TEST_DATA__applicationVersion } from '@finos/legend-application'; export const TEST_DATA__queryConfig = { diff --git a/packages/legend-query/src/stores/QueryTextEditorState.ts b/packages/legend-query/src/stores/QueryTextEditorState.ts index 9e7509b235c..a563060df3c 100644 --- a/packages/legend-query/src/stores/QueryTextEditorState.ts +++ b/packages/legend-query/src/stores/QueryTextEditorState.ts @@ -28,7 +28,7 @@ import { LogEvent, } from '@finos/legend-shared'; import { observable, action, flow, makeObservable, flowResult } from 'mobx'; -import type { QueryBuilderState } from './QueryBuilderState'; +import type { QueryBuilderState } from './QueryBuilderState.js'; import { LambdaEditorState, TAB_SIZE } from '@finos/legend-application'; export class QueryRawLambdaState { diff --git a/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaFailure.test.tsx b/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaFailure.test.tsx index 47bf2ebbf48..8cfdf45abae 100644 --- a/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaFailure.test.tsx +++ b/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaFailure.test.tsx @@ -23,7 +23,7 @@ import { TEST_DATA__unsupportedFunctionWithFullPath, TEST_DATA_malformedFilterExpressionWithSubtype, TEST_DATA__malformedTodayFunction, -} from './TEST_DATA__QueryBuilder_Failure'; +} from './TEST_DATA__QueryBuilder_Failure.js'; import TEST_DATA__ComplexRelationalModel from './TEST_DATA__QueryBuilder_Model_ComplexRelational.json'; import TEST_DATA__PostFilterModel from './TEST_DATA__QueryBuilder_Model_PostFilter.json'; import { integrationTest } from '@finos/legend-shared'; @@ -33,14 +33,14 @@ import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, } from '@finos/legend-graph'; -import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager'; -import { Query_GraphPreset } from '../../models/Query_GraphPreset'; +import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager.js'; +import { Query_GraphPreset } from '../../models/Query_GraphPreset.js'; import { TEST__getTestApplicationStore } from '@finos/legend-application'; import { QueryBuilderState, StandardQueryBuilderMode, -} from '../QueryBuilderState'; -import { TEST__getTestQueryConfig } from '../QueryStoreTestUtils'; +} from '../QueryBuilderState.js'; +import { TEST__getTestQueryConfig } from '../QueryStoreTestUtils.js'; type TestCase = [ string, diff --git a/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaRoundtrip.test.tsx b/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaRoundtrip.test.tsx index 24002306fa0..9f5c12ccf95 100644 --- a/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaRoundtrip.test.tsx +++ b/packages/legend-query/src/stores/__tests__/QueryBuilder_BuildLambdaRoundtrip.test.tsx @@ -32,7 +32,7 @@ import { TEST_DATA__filterQueryWithSubtypeWithoutExists, TEST_DATA__filterQueryWithSubtypeWithExists, TEST_DATA__filterQueryWithSubtypeWithExistsChain, -} from './TEST_DATA__QueryBuilder_Generic'; +} from './TEST_DATA__QueryBuilder_Generic.js'; import TEST_DATA__ComplexRelationalModel from './TEST_DATA__QueryBuilder_Model_ComplexRelational.json'; import TEST_DATA__ComplexM2MModel from './TEST_DATA__QueryBuilder_Model_ComplexM2M.json'; import TEST_DATA__M2MWithInheritance from './TEST_DATA__QueryBuilder_Model_M2MWithInheritance.json'; @@ -50,11 +50,11 @@ import { TEST_DATA__lambda_setOperatorFilter, TEST_DATA__lambda_simpleSingleConditionFilter, TEST_DATA_lambda_dateTimeCapabilityFilterWithYesterday, -} from './TEST_DATA__QueryBuilder_Roundtrip_TestFilterQueries'; +} from './TEST_DATA__QueryBuilder_Roundtrip_TestFilterQueries.js'; import { TEST_DATA__lambda_input_filterWithExists, lambda_output_filterWithExists, -} from './TEST_DATA__QueryBuilder_TestFilterQueriesWithExists'; +} from './TEST_DATA__QueryBuilder_TestFilterQueriesWithExists.js'; import { TEST_DATA__lambda_input_graphFetchWithFullPathFunctions, TEST_DATA__lambda_output_graphFetchWithFullPathFunctions, @@ -62,7 +62,7 @@ import { TEST_DATA__lambda_output_filterWithFullPathFunctions, TEST_DATA__lambda_input_projectionWithFullPathFunctions, TEST_DATA__lambda_output_projectionWithFullPathFunctions, -} from './TEST_DATA__QueryBuilder_TestQueriesWithFullPathFunctions'; +} from './TEST_DATA__QueryBuilder_TestQueriesWithFullPathFunctions.js'; import type { Entity } from '@finos/legend-model-storage'; import { RawLambda, @@ -77,16 +77,16 @@ import { import { QueryBuilderState, StandardQueryBuilderMode, -} from '../QueryBuilderState'; -import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager'; -import { Query_GraphPreset } from '../../models/Query_GraphPreset'; -import { TEST__getTestQueryConfig } from '../QueryStoreTestUtils'; +} from '../QueryBuilderState.js'; +import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager.js'; +import { Query_GraphPreset } from '../../models/Query_GraphPreset.js'; +import { TEST__getTestQueryConfig } from '../QueryStoreTestUtils.js'; import { TEST_DATA__lambda_simpleConditionPostFilter, TEST_DATA__lambda_aggregationPostFilter, TEST_DATA__lambda_derivationPostFilter, TEST_DATA_lambda_dateTimeCapabilityPostFilterWithToday, -} from './TEST_DATA__QueryBuilder_Roundtrip_TestPostFilterQueries'; +} from './TEST_DATA__QueryBuilder_Roundtrip_TestPostFilterQueries.js'; type RoundtripTestCase = [ string, diff --git a/packages/legend-query/src/stores/__tests__/QueryBuilder_ExplorerState.test.ts b/packages/legend-query/src/stores/__tests__/QueryBuilder_ExplorerState.test.ts index 053ecac1c5a..f573f358554 100644 --- a/packages/legend-query/src/stores/__tests__/QueryBuilder_ExplorerState.test.ts +++ b/packages/legend-query/src/stores/__tests__/QueryBuilder_ExplorerState.test.ts @@ -36,14 +36,14 @@ import { type QueryBuilderPropertyMappingData, getPropertyNodeMappingData, getRootMappingData, -} from '../../stores/QueryBuilderExplorerState'; -import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager'; -import { Query_GraphPreset } from '../../models/Query_GraphPreset'; -import { TEST__provideMockedLegendQueryStore } from '../../components/QueryComponentTestUtils'; +} from '../../stores/QueryBuilderExplorerState.js'; +import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager.js'; +import { Query_GraphPreset } from '../../models/Query_GraphPreset.js'; +import { TEST__provideMockedLegendQueryStore } from '../../components/QueryComponentTestUtils.js'; import { TEST_DATA__Auto_M2M, TEST_DATA__Relational_Inline, -} from './TEST_DATA__MappingData'; +} from './TEST_DATA__MappingData.js'; import { EXPECTED__MappingData_ComplexM2MModel, EXPECTED__MappingData__AssociationMapping, @@ -51,7 +51,7 @@ import { EXPECTED__MappingData__COVIDDataSimpleModel, EXPECTED__MappingData__Relational_Inheritance, EXPECTED__MappingData__Relational_Inline, -} from './TEST_DATA__Expected_MappingData'; +} from './TEST_DATA__Expected_MappingData.js'; interface NodePropertyMappingData { property: AbstractProperty; diff --git a/packages/legend-query/src/stores/__tests__/QueryBuilder_LambdaProcessingRoundtrip.test.ts b/packages/legend-query/src/stores/__tests__/QueryBuilder_LambdaProcessingRoundtrip.test.ts index 72b018cc71a..948f8e5e6b9 100644 --- a/packages/legend-query/src/stores/__tests__/QueryBuilder_LambdaProcessingRoundtrip.test.ts +++ b/packages/legend-query/src/stores/__tests__/QueryBuilder_LambdaProcessingRoundtrip.test.ts @@ -37,19 +37,19 @@ import { TEST_DATA__temporalModel, TEST_DATA__personWithSubType, TEST_DATA_dateCompabilityForFilterAndPostFilter, -} from './TEST_DATA__QueryBuilder_LambdaProcessingRoundtrip'; +} from './TEST_DATA__QueryBuilder_LambdaProcessingRoundtrip.js'; import TEST_DATA__PostFilterModel from './TEST_DATA__QueryBuilder_Model_PostFilter.json'; import { simpleDerivationProjection, groupByWithDerivationProjection, groupByWithDerivationAndAggregation, -} from './TEST_DATA__QueryBuilder_ProcessingRoundtrip_TestDerivation'; +} from './TEST_DATA__QueryBuilder_ProcessingRoundtrip_TestDerivation.js'; import { TEST__buildGraphWithEntities, TEST__getTestGraphManagerState, } from '@finos/legend-graph'; -import { Query_GraphPreset } from '../../models/Query_GraphPreset'; -import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager'; +import { Query_GraphPreset } from '../../models/Query_GraphPreset.js'; +import { LegendQueryPluginManager } from '../../application/LegendQueryPluginManager.js'; const pluginManager = LegendQueryPluginManager.create(); pluginManager.usePresets([new Query_GraphPreset()]).install(); diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.ts index 1689330f526..ac8e6a7d8ae 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperatorHelper.ts @@ -27,8 +27,8 @@ import { guaranteeType, assertTrue } from '@finos/legend-shared'; import { type QueryBuilderAggregateOperator, QueryBuilderAggregateColumnState, -} from '../QueryBuilderAggregationState'; -import type { QueryBuilderProjectionColumnState } from '../QueryBuilderProjectionState'; +} from '../QueryBuilderAggregationState.js'; +import type { QueryBuilderProjectionColumnState } from '../QueryBuilderProjectionState.js'; export const buildAggregateExpression = ( operatorFunctionFullPath: string, diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.ts index 24ccdabecb4..39671d01163 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Average.ts @@ -23,19 +23,19 @@ import { type AbstractPropertyExpression, type Type, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_Average extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.ts index f72f4b60a99..564340623a2 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Count.ts @@ -24,19 +24,19 @@ import { type AbstractPropertyExpression, Enumeration, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_Count extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.ts index b3012852019..c58d2bd6d3c 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Distinct.ts @@ -23,19 +23,19 @@ import { type AbstractPropertyExpression, Enumeration, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_Distinct extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.ts index 000dce348a1..3375fc0e369 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_DistinctCount.ts @@ -28,15 +28,15 @@ import { Enumeration, } from '@finos/legend-graph'; import { assertTrue, guaranteeType } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; export class QueryBuilderAggregateOperator_DistinctCount extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.ts index c720fa21ee0..0996e345223 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_JoinString.ts @@ -30,15 +30,15 @@ import { PRIMITIVE_TYPE, } from '@finos/legend-graph'; import { assertTrue, guaranteeType } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; export class QueryBuilderAggregateOperator_JoinString extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.ts index bcf30df335e..bb0a6f727a0 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Max.ts @@ -23,19 +23,19 @@ import { type PureModel, type AbstractPropertyExpression, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_Max extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.ts index 4b36398dff2..bdc646d956d 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Min.ts @@ -23,19 +23,19 @@ import { type PureModel, type AbstractPropertyExpression, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_Min extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.ts index 823354597d9..964c6658850 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Population.ts @@ -23,19 +23,19 @@ import { type AbstractPropertyExpression, type PureModel, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_StdDev_Population extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.ts index 31c1f9aabe1..6d564f58704 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_StdDev_Sample.ts @@ -23,19 +23,19 @@ import { type AbstractPropertyExpression, type PureModel, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_StdDev_Sample extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.ts b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.ts index c654b1d9b9f..2d820a30a7c 100644 --- a/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.ts +++ b/packages/legend-query/src/stores/aggregateOperators/QueryBuilderAggregateOperator_Sum.ts @@ -22,19 +22,19 @@ import { type AbstractPropertyExpression, type PureModel, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { type QueryBuilderAggregateColumnState, QueryBuilderAggregateOperator, -} from '../QueryBuilderAggregationState'; +} from '../QueryBuilderAggregationState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; import { buildAggregateColumnState, buildAggregateExpression, -} from './QueryBuilderAggregateOperatorHelper'; +} from './QueryBuilderAggregateOperatorHelper.js'; export class QueryBuilderAggregateOperator_Sum extends QueryBuilderAggregateOperator { getLabel(projectionColumnState: QueryBuilderProjectionColumnState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperatorHelper.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperatorHelper.ts index f77bb9e7c00..1f1cbf841e5 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperatorHelper.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperatorHelper.ts @@ -34,10 +34,10 @@ import { FilterConditionState, type QueryBuilderFilterState, type QueryBuilderFilterOperator, -} from '../QueryBuilderFilterState'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { buildGenericLambdaFunctionInstanceValue } from '../QueryBuilderValueSpecificationBuilderHelper'; -import { buildPropertyExpressionChain } from '../QueryBuilderLambdaBuilder'; +} from '../QueryBuilderFilterState.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { buildGenericLambdaFunctionInstanceValue } from '../QueryBuilderValueSpecificationBuilderHelper.js'; +import { buildPropertyExpressionChain } from '../QueryBuilderLambdaBuilder.js'; const getPropertyExpressionChainVariable = ( propertyExpression: AbstractPropertyExpression, diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Contain.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Contain.ts index aee21864f35..551667c44da 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Contain.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Contain.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { PRIMITIVE_TYPE, type ValueSpecification, @@ -28,15 +28,15 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildNotExpression, unwrapNotExpression, buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_Contain extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_EndWith.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_EndWith.ts index d97f2075b3d..dd0af18365a 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_EndWith.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_EndWith.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { PRIMITIVE_TYPE, type ValueSpecification, @@ -28,15 +28,15 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildPrimitiveInstanceValue, buildNotExpression, unwrapNotExpression, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_EndWith extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Equal.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Equal.ts index 55393768405..cbceb8efb1e 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Equal.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_Equal.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { type ValueSpecification, type SimpleFunctionExpression, @@ -37,15 +37,15 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildNotExpression, unwrapNotExpression, buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_Equal extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.ts index 5033fe8c23c..d85ef07e543 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThan.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { type ValueSpecification, type SimpleFunctionExpression, @@ -30,13 +30,13 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_GreaterThan extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.ts index dede8c6e75e..8e820837dd9 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_GreaterThanEqual.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { PRIMITIVE_TYPE, type ValueSpecification, @@ -30,13 +30,13 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_GreaterThanEqual extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_In.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_In.ts index 11464e9f63a..550ed16d0c2 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_In.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_In.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { type ValueSpecification, type SimpleFunctionExpression, @@ -33,13 +33,13 @@ import { import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildNotExpression, unwrapNotExpression, getCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_In extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.ts index 07b9c7b49d4..63780d4dbfc 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_IsEmpty.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { PRIMITIVE_TYPE, type ValueSpecification, @@ -28,12 +28,12 @@ import { import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildNotExpression, unwrapNotExpression, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_IsEmpty extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThan.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThan.ts index 6f4bf84a737..4bcc28706a8 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThan.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThan.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { PRIMITIVE_TYPE, type ValueSpecification, @@ -30,13 +30,13 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_LessThan extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.ts index 1af0829fff7..eebb4df7692 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_LessThanEqual.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { PRIMITIVE_TYPE, type ValueSpecification, @@ -30,13 +30,13 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_LessThanEqual extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_StartWith.ts b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_StartWith.ts index f741564af0c..1e269baa4a6 100644 --- a/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_StartWith.ts +++ b/packages/legend-query/src/stores/filterOperators/QueryBuilderFilterOperator_StartWith.ts @@ -18,7 +18,7 @@ import { QueryBuilderFilterOperator, type QueryBuilderFilterState, type FilterConditionState, -} from '../QueryBuilderFilterState'; +} from '../QueryBuilderFilterState.js'; import { PRIMITIVE_TYPE, type ValueSpecification, @@ -28,15 +28,15 @@ import { UnsupportedOperationError } from '@finos/legend-shared'; import { buildFilterConditionState, buildFilterConditionExpression, -} from './QueryBuilderFilterOperatorHelper'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; +} from './QueryBuilderFilterOperatorHelper.js'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; import { buildNotExpression, buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, unwrapNotExpression, -} from '../QueryBuilderOperatorsHelper'; +} from '../QueryBuilderOperatorsHelper.js'; export class QueryBuilderFilterOperator_StartWith extends QueryBuilderFilterOperator { getLabel(filterConditionState: FilterConditionState): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.ts index cf89fd29428..1b4a92a3bf8 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperatorHelper.ts @@ -32,18 +32,18 @@ import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import { TDS_ROW } from '../../QueryBuilder_Const'; -import { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState'; -import type { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; +import { TDS_ROW } from '../../QueryBuilder_Const.js'; +import { QueryBuilderAggregateColumnState } from '../QueryBuilderAggregationState.js'; +import type { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; import { type PostFilterConditionState, type TDS_COLUMN_GETTER, getTDSColumnDerivedProperyFromType, -} from '../QueryBuilderPostFilterState'; +} from '../QueryBuilderPostFilterState.js'; import { type QueryBuilderProjectionColumnState, QueryBuilderSimpleProjectionColumnState, -} from '../QueryBuilderProjectionState'; +} from '../QueryBuilderProjectionState.js'; export const getColumnMultiplicity = ( columnState: diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.ts index ed03b5f8472..d70dbe7e7c8 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Contain.ts @@ -25,21 +25,21 @@ import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildNotExpression, buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, unwrapNotExpression, -} from '../QueryBuilderOperatorsHelper'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +} from '../QueryBuilderOperatorsHelper.js'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; +} from '../QueryBuilderPostFilterState.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_Contain extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.ts index 4774d8a0ce6..2d930b80b2f 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_EndWith.ts @@ -21,21 +21,21 @@ import { PRIMITIVE_TYPE, } from '@finos/legend-graph'; import { UnsupportedOperationError } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildNotExpression, buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, unwrapNotExpression, -} from '../QueryBuilderOperatorsHelper'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +} from '../QueryBuilderOperatorsHelper.js'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; +} from '../QueryBuilderPostFilterState.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_EndWith extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.ts index 6f2d022422a..b1edd981271 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_Equal.ts @@ -34,21 +34,21 @@ import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildNotExpression, buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, unwrapNotExpression, -} from '../QueryBuilderOperatorsHelper'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +} from '../QueryBuilderOperatorsHelper.js'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; +} from '../QueryBuilderPostFilterState.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_Equal extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.ts index 2af00a88efb..2cb54a2bbd0 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThan.ts @@ -26,19 +26,19 @@ import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +} from '../QueryBuilderOperatorsHelper.js'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; +} from '../QueryBuilderPostFilterState.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_GreaterThan extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts index d15853245e1..a54f4e0a023 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts @@ -20,14 +20,14 @@ import { AbstractPropertyExpression, PRIMITIVE_TYPE, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; -import { QueryBuilderPostFilterOperator_GreaterThan } from './QueryBuilderPostFilterOperator_GreaterThan'; +} from '../QueryBuilderPostFilterState.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; +import { QueryBuilderPostFilterOperator_GreaterThan } from './QueryBuilderPostFilterOperator_GreaterThan.js'; export class QueryBuilderPostFilterOperator_GreaterThanEqual extends QueryBuilderPostFilterOperator_GreaterThan { override getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.ts index 1adebe57c8d..258aaaf4704 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_In.ts @@ -28,19 +28,19 @@ import { TYPICAL_MULTIPLICITY_TYPE, } from '@finos/legend-graph'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildNotExpression, getCollectionValueSpecificationType, unwrapNotExpression, -} from '../QueryBuilderOperatorsHelper'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +} from '../QueryBuilderOperatorsHelper.js'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; +} from '../QueryBuilderPostFilterState.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_In extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.ts index 51418652804..6e1d028527b 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_IsEmpty.ts @@ -22,17 +22,17 @@ import { PRIMITIVE_TYPE, } from '@finos/legend-graph'; import { returnUndefOnError } from '@finos/legend-shared'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import { type PostFilterConditionState, type QueryBuilderPostFilterState, TDS_COLUMN_GETTER, -} from '../QueryBuilderPostFilterState'; +} from '../QueryBuilderPostFilterState.js'; import { buildPostFilterConditionExpression, getColumnMultiplicity, -} from './QueryBuilderPostFilterOperatorHelper'; +} from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_IsEmpty extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.ts index a20d00f1493..97ce5e092a0 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThan.ts @@ -26,19 +26,19 @@ import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, -} from '../QueryBuilderOperatorsHelper'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +} from '../QueryBuilderOperatorsHelper.js'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; +} from '../QueryBuilderPostFilterState.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_LessThan extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.ts index 0abbeb7eba3..ae608efbe3b 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_LessThanEqual.ts @@ -20,14 +20,14 @@ import { AbstractPropertyExpression, PRIMITIVE_TYPE, } from '@finos/legend-graph'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; -import { QueryBuilderPostFilterOperator_LessThan } from './QueryBuilderPostFilterOperator_LessThan'; +} from '../QueryBuilderPostFilterState.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; +import { QueryBuilderPostFilterOperator_LessThan } from './QueryBuilderPostFilterOperator_LessThan.js'; export class QueryBuilderPostFilterOperator_LessThanEqual extends QueryBuilderPostFilterOperator_LessThan { override getLabel(): string { diff --git a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.ts b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.ts index f901f78c7b0..196f00030e5 100644 --- a/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.ts +++ b/packages/legend-query/src/stores/postFilterOperators/QueryBuilderPostFilterOperator_StartWith.ts @@ -22,21 +22,21 @@ import { PRIMITIVE_TYPE, } from '@finos/legend-graph'; import { UnsupportedOperationError } from '@finos/legend-shared'; -import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const'; +import { SUPPORTED_FUNCTIONS } from '../../QueryBuilder_Const.js'; import { buildNotExpression, buildPrimitiveInstanceValue, getNonCollectionValueSpecificationType, unwrapNotExpression, -} from '../QueryBuilderOperatorsHelper'; -import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator'; -import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor'; +} from '../QueryBuilderOperatorsHelper.js'; +import { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js'; +import { buildPostFilterConditionState } from '../QueryBuilderPostFilterProcessor.js'; import type { PostFilterConditionState, QueryBuilderPostFilterState, -} from '../QueryBuilderPostFilterState'; -import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper'; -import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper'; +} from '../QueryBuilderPostFilterState.js'; +import { generateDefaultValueForPrimitiveType } from '../QueryBuilderValueSpecificationBuilderHelper.js'; +import { buildPostFilterConditionExpression } from './QueryBuilderPostFilterOperatorHelper.js'; export class QueryBuilderPostFilterOperator_StartWith extends QueryBuilderPostFilterOperator { getLabel(): string { diff --git a/packages/legend-server-depot/src/DepotServerClient.ts b/packages/legend-server-depot/src/DepotServerClient.ts index 7dab1109402..8786a43908a 100644 --- a/packages/legend-server-depot/src/DepotServerClient.ts +++ b/packages/legend-server-depot/src/DepotServerClient.ts @@ -16,13 +16,13 @@ import type { Entity } from '@finos/legend-model-storage'; import { type PlainObject, AbstractServerClient } from '@finos/legend-shared'; -import type { DepotScope } from './models/DepotScope'; -import type { ProjectData } from './models/ProjectData'; +import type { DepotScope } from './models/DepotScope.js'; +import type { ProjectData } from './models/ProjectData.js'; import type { ProjectDependencyCoordinates, ProjectVersionEntities, -} from './models/ProjectVersionEntities'; -import type { StoredEntity } from './models/StoredEntity'; +} from './models/ProjectVersionEntities.js'; +import type { StoredEntity } from './models/StoredEntity.js'; export interface DepotServerClientConfig { serverUrl: string; diff --git a/packages/legend-server-depot/src/DepotServerClientProvider.tsx b/packages/legend-server-depot/src/DepotServerClientProvider.tsx index 11f61dbe20c..49f9a2c17ba 100644 --- a/packages/legend-server-depot/src/DepotServerClientProvider.tsx +++ b/packages/legend-server-depot/src/DepotServerClientProvider.tsx @@ -20,7 +20,7 @@ import { createContext, useContext } from 'react'; import { type DepotServerClientConfig, DepotServerClient, -} from './DepotServerClient'; +} from './DepotServerClient.js'; const DepotServerClientContext = createContext( undefined, diff --git a/packages/legend-server-depot/src/DepotServerClientTestUtils.tsx b/packages/legend-server-depot/src/DepotServerClientTestUtils.tsx index b5e04216be6..d342c005246 100644 --- a/packages/legend-server-depot/src/DepotServerClientTestUtils.tsx +++ b/packages/legend-server-depot/src/DepotServerClientTestUtils.tsx @@ -15,8 +15,8 @@ */ import { jest } from '@jest/globals'; -import { DepotServerClient } from './DepotServerClient'; -import { DepotServerClientProvider } from './DepotServerClientProvider'; +import { DepotServerClient } from './DepotServerClient.js'; +import { DepotServerClientProvider } from './DepotServerClientProvider.js'; export const TEST__getTestDepotServerClient = (): DepotServerClient => new DepotServerClient({ @@ -27,7 +27,7 @@ export const TEST__provideMockedDepotServerClient = (customization?: { mock?: DepotServerClient; }): DepotServerClient => { const value = customization?.mock ?? TEST__getTestDepotServerClient(); - const MockedDepotServerClientProvider = require('./DepotServerClientProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment + const MockedDepotServerClientProvider = require('./DepotServerClientProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment MockedDepotServerClientProvider.useDepotServerClient = jest.fn(); MockedDepotServerClientProvider.useDepotServerClient.mockReturnValue(value); return value; diff --git a/packages/legend-server-depot/src/__tests__/DepotUtils.test.ts b/packages/legend-server-depot/src/__tests__/DepotUtils.test.ts index c70f6ec2bfe..934384af971 100644 --- a/packages/legend-server-depot/src/__tests__/DepotUtils.test.ts +++ b/packages/legend-server-depot/src/__tests__/DepotUtils.test.ts @@ -16,7 +16,7 @@ import { test, expect } from '@jest/globals'; import { unitTest } from '@finos/legend-shared'; -import { compareSemVerVersions } from '../DepotUtils'; +import { compareSemVerVersions } from '../DepotUtils.js'; test(unitTest('Compare Semver versions'), () => { expect(compareSemVerVersions('0.0.0', '0.0.0')).toEqual(0); diff --git a/packages/legend-server-depot/src/index.ts b/packages/legend-server-depot/src/index.ts index 774ae8be431..9100ef80677 100644 --- a/packages/legend-server-depot/src/index.ts +++ b/packages/legend-server-depot/src/index.ts @@ -14,14 +14,14 @@ * limitations under the License. */ -export { ProjectData } from './models/ProjectData'; -export * from './models/ProjectVersionEntities'; -export { StoredEntity } from './models/StoredEntity'; -export { DepotScope } from './models/DepotScope'; +export { ProjectData } from './models/ProjectData.js'; +export * from './models/ProjectVersionEntities.js'; +export { StoredEntity } from './models/StoredEntity.js'; +export { DepotScope } from './models/DepotScope.js'; -export { DepotServerClient } from './DepotServerClient'; -export * from './DepotServerClientProvider'; +export { DepotServerClient } from './DepotServerClient.js'; +export * from './DepotServerClientProvider.js'; -export * from './DepotServerClientTestUtils'; +export * from './DepotServerClientTestUtils.js'; -export * from './DepotUtils'; +export * from './DepotUtils.js'; diff --git a/packages/legend-server-depot/src/models/ProjectData.ts b/packages/legend-server-depot/src/models/ProjectData.ts index 1e67b8bf09b..b12140e7ecc 100644 --- a/packages/legend-server-depot/src/models/ProjectData.ts +++ b/packages/legend-server-depot/src/models/ProjectData.ts @@ -17,7 +17,7 @@ import { list, createModelSchema, primitive } from 'serializr'; import { SerializationFactory } from '@finos/legend-shared'; import { action, makeObservable, observable } from 'mobx'; -import { generateGAVCoordinates } from '../DepotUtils'; +import { generateGAVCoordinates } from '../DepotUtils.js'; export class ProjectData { id!: string; diff --git a/packages/legend-server-depot/src/models/ProjectVersionEntities.ts b/packages/legend-server-depot/src/models/ProjectVersionEntities.ts index 032de57a774..99eccac789f 100644 --- a/packages/legend-server-depot/src/models/ProjectVersionEntities.ts +++ b/packages/legend-server-depot/src/models/ProjectVersionEntities.ts @@ -17,7 +17,7 @@ import { list, createModelSchema, primitive, raw } from 'serializr'; import { SerializationFactory } from '@finos/legend-shared'; import type { Entity } from '@finos/legend-model-storage'; -import { generateGAVCoordinates } from '../DepotUtils'; +import { generateGAVCoordinates } from '../DepotUtils.js'; export class ProjectDependencyCoordinates { groupId: string; diff --git a/packages/legend-server-sdlc/src/SDLCServerClient.ts b/packages/legend-server-sdlc/src/SDLCServerClient.ts index da8e3a6d77d..6598eb6be0d 100644 --- a/packages/legend-server-sdlc/src/SDLCServerClient.ts +++ b/packages/legend-server-sdlc/src/SDLCServerClient.ts @@ -14,18 +14,18 @@ * limitations under the License. */ -import type { Project } from './models/project/Project'; -import type { ImportReport } from './models/project/ImportReport'; -import { type Workspace, WorkspaceType } from './models/workspace/Workspace'; -import type { Revision, RevisionAlias } from './models/revision/Revision'; -import type { Workflow, WorkflowStatus } from './models/workflow/Workflow'; -import type { Review, ReviewState } from './models/review/Review'; -import type { Version } from './models/version/Version'; -import type { WorkspaceUpdateReport } from './models/workspace/WorkspaceUpdateReport'; -import type { ProjectConfiguration } from './models/configuration/ProjectConfiguration'; -import type { CreateVersionCommand } from './models/version/VersionCommands'; -import type { ProjectStructureVersion } from './models/configuration/ProjectStructureVersion'; -import type { User } from './models/User'; +import type { Project } from './models/project/Project.js'; +import type { ImportReport } from './models/project/ImportReport.js'; +import { type Workspace, WorkspaceType } from './models/workspace/Workspace.js'; +import type { Revision, RevisionAlias } from './models/revision/Revision.js'; +import type { Workflow, WorkflowStatus } from './models/workflow/Workflow.js'; +import type { Review, ReviewState } from './models/review/Review.js'; +import type { Version } from './models/version/Version.js'; +import type { WorkspaceUpdateReport } from './models/workspace/WorkspaceUpdateReport.js'; +import type { ProjectConfiguration } from './models/configuration/ProjectConfiguration.js'; +import type { CreateVersionCommand } from './models/version/VersionCommands.js'; +import type { ProjectStructureVersion } from './models/configuration/ProjectStructureVersion.js'; +import type { User } from './models/User.js'; import { type PlainObject, type TraceData, @@ -40,18 +40,18 @@ import type { CreateProjectCommand, ImportProjectCommand, UpdateProjectCommand, -} from './models/project/ProjectCommands'; -import type { UpdateProjectConfigurationCommand } from './models/configuration/ProjectConfigurationCommands'; +} from './models/project/ProjectCommands.js'; +import type { UpdateProjectConfigurationCommand } from './models/configuration/ProjectConfigurationCommands.js'; import type { PerformEntitiesChangesCommand, UpdateEntitiesCommand, -} from './models/entity/EntityCommands'; +} from './models/entity/EntityCommands.js'; import type { CommitReviewCommand, CreateReviewCommand, -} from './models/review/ReviewCommands'; -import type { WorkflowJob } from './models/workflow/WorkflowJob'; -import type { SDLCServerFeaturesConfiguration } from './models/server/SDLCServerFeaturesConfiguration'; +} from './models/review/ReviewCommands.js'; +import type { WorkflowJob } from './models/workflow/WorkflowJob.js'; +import type { SDLCServerFeaturesConfiguration } from './models/server/SDLCServerFeaturesConfiguration.js'; enum SDLC_TRACER_SPAN { IMPORT_PROJECT = 'import project', diff --git a/packages/legend-server-sdlc/src/SDLCServerClientProvider.tsx b/packages/legend-server-sdlc/src/SDLCServerClientProvider.tsx index e44197c1f32..194a3e91866 100644 --- a/packages/legend-server-sdlc/src/SDLCServerClientProvider.tsx +++ b/packages/legend-server-sdlc/src/SDLCServerClientProvider.tsx @@ -20,7 +20,7 @@ import { createContext, useContext } from 'react'; import { type SDLCServerClientConfig, SDLCServerClient, -} from './SDLCServerClient'; +} from './SDLCServerClient.js'; const SDLCServerClientContext = createContext( undefined, diff --git a/packages/legend-server-sdlc/src/SDLCServerClientTestUtils.tsx b/packages/legend-server-sdlc/src/SDLCServerClientTestUtils.tsx index ceb370969b4..fd2db3d5f28 100644 --- a/packages/legend-server-sdlc/src/SDLCServerClientTestUtils.tsx +++ b/packages/legend-server-sdlc/src/SDLCServerClientTestUtils.tsx @@ -15,8 +15,8 @@ */ import { jest } from '@jest/globals'; -import { SDLCServerClient } from './SDLCServerClient'; -import { SDLCServerClientProvider } from './SDLCServerClientProvider'; +import { SDLCServerClient } from './SDLCServerClient.js'; +import { SDLCServerClientProvider } from './SDLCServerClientProvider.js'; export const TEST__getTestSDLCServerClient = (): SDLCServerClient => new SDLCServerClient({ @@ -28,7 +28,7 @@ export const TEST__provideMockedSDLCServerClient = (customization?: { mock?: SDLCServerClient; }): SDLCServerClient => { const value = customization?.mock ?? TEST__getTestSDLCServerClient(); - const MockedSDLCServerClientProvider = require('./SDLCServerClientProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment + const MockedSDLCServerClientProvider = require('./SDLCServerClientProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment MockedSDLCServerClientProvider.useSDLCServerClient = jest.fn(); MockedSDLCServerClientProvider.useSDLCServerClient.mockReturnValue(value); return value; diff --git a/packages/legend-server-sdlc/src/index.ts b/packages/legend-server-sdlc/src/index.ts index 2e7655bf06b..bbb852cf08f 100644 --- a/packages/legend-server-sdlc/src/index.ts +++ b/packages/legend-server-sdlc/src/index.ts @@ -14,41 +14,41 @@ * limitations under the License. */ -export * from './models/server/SDLCServerFeaturesConfiguration'; +export * from './models/server/SDLCServerFeaturesConfiguration.js'; -export * from './models/entity/EntityChange'; -export * from './models/entity/EntityChangeConflict'; -export * from './models/entity/EntityChangeUtils'; +export * from './models/entity/EntityChange.js'; +export * from './models/entity/EntityChangeConflict.js'; +export * from './models/entity/EntityChangeUtils.js'; -export * from './models/comparison/EntityDiff'; +export * from './models/comparison/EntityDiff.js'; -export * from './models/review/Review'; -export * from './models/review/ReviewCommands'; +export * from './models/review/Review.js'; +export * from './models/review/ReviewCommands.js'; -export * from './models/workflow/Workflow'; -export * from './models/workflow/WorkflowJob'; +export * from './models/workflow/Workflow.js'; +export * from './models/workflow/WorkflowJob.js'; -export * from './models/project/Project'; -export * from './models/project/ImportReport'; -export * from './models/project/ProjectCommands'; +export * from './models/project/Project.js'; +export * from './models/project/ImportReport.js'; +export * from './models/project/ProjectCommands.js'; -export * from './models/workspace/Workspace'; -export * from './models/workspace/WorkspaceUtils'; -export * from './models/workspace/WorkspaceUpdateReport'; +export * from './models/workspace/Workspace.js'; +export * from './models/workspace/WorkspaceUtils.js'; +export * from './models/workspace/WorkspaceUpdateReport.js'; -export * from './models/revision/Revision'; +export * from './models/revision/Revision.js'; -export * from './models/version/Version'; -export * from './models/version/VersionCommands'; +export * from './models/version/Version.js'; +export * from './models/version/VersionCommands.js'; -export * from './models/configuration/ProjectDependency'; -export * from './models/configuration/ProjectConfiguration'; -export * from './models/configuration/ProjectStructureVersion'; -export * from './models/configuration/ProjectConfigurationCommands'; +export * from './models/configuration/ProjectDependency.js'; +export * from './models/configuration/ProjectConfiguration.js'; +export * from './models/configuration/ProjectStructureVersion.js'; +export * from './models/configuration/ProjectConfigurationCommands.js'; -export * from './models/User'; +export * from './models/User.js'; -export { SDLCServerClient } from './SDLCServerClient'; -export * from './SDLCServerClientProvider'; +export { SDLCServerClient } from './SDLCServerClient.js'; +export * from './SDLCServerClientProvider.js'; -export * from './SDLCServerClientTestUtils'; +export * from './SDLCServerClientTestUtils.js'; diff --git a/packages/legend-server-sdlc/src/models/comparison/Comparison.ts b/packages/legend-server-sdlc/src/models/comparison/Comparison.ts index 83a54637ed2..179b178a74e 100644 --- a/packages/legend-server-sdlc/src/models/comparison/Comparison.ts +++ b/packages/legend-server-sdlc/src/models/comparison/Comparison.ts @@ -16,8 +16,8 @@ import { observable, makeObservable } from 'mobx'; import { isNonNullable } from '@finos/legend-shared'; -import { EntityDiff } from '../comparison/EntityDiff'; -import { EntityChangeType } from '../entity/EntityChange'; +import { EntityDiff } from '../comparison/EntityDiff.js'; +import { EntityChangeType } from '../entity/EntityChange.js'; export class Comparison { toRevisionId: string; diff --git a/packages/legend-server-sdlc/src/models/comparison/EntityDiff.ts b/packages/legend-server-sdlc/src/models/comparison/EntityDiff.ts index c3f49b30d5d..cdedef9248d 100644 --- a/packages/legend-server-sdlc/src/models/comparison/EntityDiff.ts +++ b/packages/legend-server-sdlc/src/models/comparison/EntityDiff.ts @@ -16,7 +16,7 @@ import { observable, computed, makeObservable } from 'mobx'; import { guaranteeNonNullable, IllegalStateError } from '@finos/legend-shared'; -import { EntityChangeType } from '../entity/EntityChange'; +import { EntityChangeType } from '../entity/EntityChange.js'; import { extractEntityNameFromPath } from '@finos/legend-model-storage'; export class EntityDiff { diff --git a/packages/legend-server-sdlc/src/models/configuration/ProjectConfiguration.ts b/packages/legend-server-sdlc/src/models/configuration/ProjectConfiguration.ts index 552a99cf541..d99f85fb6b5 100644 --- a/packages/legend-server-sdlc/src/models/configuration/ProjectConfiguration.ts +++ b/packages/legend-server-sdlc/src/models/configuration/ProjectConfiguration.ts @@ -16,8 +16,8 @@ import { list, createModelSchema, primitive } from 'serializr'; import { observable, action, computed, makeObservable } from 'mobx'; -import { ProjectStructureVersion } from '../configuration/ProjectStructureVersion'; -import { ProjectDependency } from '../configuration/ProjectDependency'; +import { ProjectStructureVersion } from '../configuration/ProjectStructureVersion.js'; +import { ProjectDependency } from '../configuration/ProjectDependency.js'; import { type Hashable, hashArray, diff --git a/packages/legend-server-sdlc/src/models/configuration/ProjectConfigurationCommands.ts b/packages/legend-server-sdlc/src/models/configuration/ProjectConfigurationCommands.ts index 7e46dcc0a18..fbb3b6debf9 100644 --- a/packages/legend-server-sdlc/src/models/configuration/ProjectConfigurationCommands.ts +++ b/packages/legend-server-sdlc/src/models/configuration/ProjectConfigurationCommands.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { ProjectDependency } from './ProjectDependency'; -import { ProjectStructureVersion } from './ProjectStructureVersion'; +import { ProjectDependency } from './ProjectDependency.js'; +import { ProjectStructureVersion } from './ProjectStructureVersion.js'; import { createModelSchema, list, primitive } from 'serializr'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; diff --git a/packages/legend-server-sdlc/src/models/configuration/ProjectDependency.ts b/packages/legend-server-sdlc/src/models/configuration/ProjectDependency.ts index 9ea858b04f1..9b9cd28dff8 100644 --- a/packages/legend-server-sdlc/src/models/configuration/ProjectDependency.ts +++ b/packages/legend-server-sdlc/src/models/configuration/ProjectDependency.ts @@ -22,7 +22,7 @@ import { SerializationFactory, usingModelSchema, } from '@finos/legend-shared'; -import { VersionId } from '../version/VersionId'; +import { VersionId } from '../version/VersionId.js'; import { observable, action, computed, makeObservable } from 'mobx'; const PROJECT_DEPENDENCY_HASH_STRUCTURE = 'PROJECT_DEPENDENCY'; diff --git a/packages/legend-server-sdlc/src/models/entity/EntityChangeConflict.ts b/packages/legend-server-sdlc/src/models/entity/EntityChangeConflict.ts index 576a4df9435..44d310b57d8 100644 --- a/packages/legend-server-sdlc/src/models/entity/EntityChangeConflict.ts +++ b/packages/legend-server-sdlc/src/models/entity/EntityChangeConflict.ts @@ -15,8 +15,8 @@ */ import { observable, computed, makeObservable } from 'mobx'; -import type { EntityDiff } from '../comparison/EntityDiff'; -import { EntityChangeType } from '../entity/EntityChange'; +import type { EntityDiff } from '../comparison/EntityDiff.js'; +import { EntityChangeType } from '../entity/EntityChange.js'; import { IllegalStateError, shallowStringify } from '@finos/legend-shared'; import { type Entity, diff --git a/packages/legend-server-sdlc/src/models/entity/EntityChangeUtils.ts b/packages/legend-server-sdlc/src/models/entity/EntityChangeUtils.ts index d8dc133edeb..a2eda50bfb9 100644 --- a/packages/legend-server-sdlc/src/models/entity/EntityChangeUtils.ts +++ b/packages/legend-server-sdlc/src/models/entity/EntityChangeUtils.ts @@ -16,8 +16,8 @@ import type { Entity } from '@finos/legend-model-storage'; import { UnsupportedOperationError } from '@finos/legend-shared'; -import type { EntityDiff } from '../comparison/EntityDiff'; -import { type EntityChange, EntityChangeType } from './EntityChange'; +import type { EntityDiff } from '../comparison/EntityDiff.js'; +import { type EntityChange, EntityChangeType } from './EntityChange.js'; export const applyEntityChanges = ( entities: Entity[], diff --git a/packages/legend-server-sdlc/src/models/entity/EntityCommands.ts b/packages/legend-server-sdlc/src/models/entity/EntityCommands.ts index b7fff935e83..21234a5e94f 100644 --- a/packages/legend-server-sdlc/src/models/entity/EntityCommands.ts +++ b/packages/legend-server-sdlc/src/models/entity/EntityCommands.ts @@ -15,7 +15,7 @@ */ import type { Entity } from '@finos/legend-model-storage'; -import type { EntityChange } from './EntityChange'; +import type { EntityChange } from './EntityChange.js'; export interface UpdateEntitiesCommand { message: string; diff --git a/packages/legend-server-sdlc/src/models/project/ImportReport.ts b/packages/legend-server-sdlc/src/models/project/ImportReport.ts index e05ea74bbd1..b9a347b71e3 100644 --- a/packages/legend-server-sdlc/src/models/project/ImportReport.ts +++ b/packages/legend-server-sdlc/src/models/project/ImportReport.ts @@ -16,7 +16,7 @@ import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; import { createModelSchema, primitive } from 'serializr'; -import { Project } from './Project'; +import { Project } from './Project.js'; export class ImportReport { project!: Project; diff --git a/packages/legend-server-sdlc/src/models/review/Review.ts b/packages/legend-server-sdlc/src/models/review/Review.ts index 7d2ea16ac5c..350bc213544 100644 --- a/packages/legend-server-sdlc/src/models/review/Review.ts +++ b/packages/legend-server-sdlc/src/models/review/Review.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import { User } from '../User'; +import { User } from '../User.js'; import { SKIP, custom, createModelSchema, primitive } from 'serializr'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; -import type { WorkspaceType } from '../workspace/Workspace'; +import type { WorkspaceType } from '../workspace/Workspace.js'; export enum ReviewState { OPEN = 'OPEN', diff --git a/packages/legend-server-sdlc/src/models/review/ReviewCommands.ts b/packages/legend-server-sdlc/src/models/review/ReviewCommands.ts index 6fa43adad22..c25b7fdf6a8 100644 --- a/packages/legend-server-sdlc/src/models/review/ReviewCommands.ts +++ b/packages/legend-server-sdlc/src/models/review/ReviewCommands.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { WorkspaceType } from '../workspace/Workspace'; +import type { WorkspaceType } from '../workspace/Workspace.js'; export interface CreateReviewCommand { workspaceId: string; diff --git a/packages/legend-server-sdlc/src/models/version/Version.ts b/packages/legend-server-sdlc/src/models/version/Version.ts index bcbc430f010..2a871f1a70c 100644 --- a/packages/legend-server-sdlc/src/models/version/Version.ts +++ b/packages/legend-server-sdlc/src/models/version/Version.ts @@ -16,7 +16,7 @@ import { createModelSchema, primitive } from 'serializr'; import { observable, makeObservable } from 'mobx'; -import { VersionId } from '../version/VersionId'; +import { VersionId } from '../version/VersionId.js'; import { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; export class Version { diff --git a/packages/legend-server-sdlc/src/models/workspace/WorkspaceUtils.ts b/packages/legend-server-sdlc/src/models/workspace/WorkspaceUtils.ts index 6a0443ff8d2..dd6378f172a 100644 --- a/packages/legend-server-sdlc/src/models/workspace/WorkspaceUtils.ts +++ b/packages/legend-server-sdlc/src/models/workspace/WorkspaceUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { Workspace } from './Workspace'; +import type { Workspace } from './Workspace.js'; export const areWorkspacesEquivalent = ( workspace: Workspace, diff --git a/packages/legend-shared/src/CommonUtils.ts b/packages/legend-shared/src/CommonUtils.ts index 37aeeedadc1..b27e090d777 100644 --- a/packages/legend-shared/src/CommonUtils.ts +++ b/packages/legend-shared/src/CommonUtils.ts @@ -27,7 +27,7 @@ import { mergeWith, type DebouncedFunc, } from 'lodash-es'; -import { UnsupportedOperationError } from './error/ErrorUtils'; +import { UnsupportedOperationError } from './error/ErrorUtils.js'; import { format as prettyPrintObject } from 'pretty-format'; // NOTE: We re-export lodash utilities like this so we centralize utility usage in our app diff --git a/packages/legend-shared/src/__tests__/CommonUtils.test.ts b/packages/legend-shared/src/__tests__/CommonUtils.test.ts index a3fb046f83e..2f4d8b8a39d 100644 --- a/packages/legend-shared/src/__tests__/CommonUtils.test.ts +++ b/packages/legend-shared/src/__tests__/CommonUtils.test.ts @@ -20,8 +20,8 @@ import { mergeObjects, getClass, getSuperclass, -} from '../CommonUtils'; -import { unitTest } from '../application/TestUtils'; +} from '../CommonUtils.js'; +import { unitTest } from '../application/TestUtils.js'; test(unitTest('Recursive omit'), () => { const obj: Record = { a: '', b: { c: '', d: '' } }; diff --git a/packages/legend-shared/src/__tests__/RandomizerUtils.test.ts b/packages/legend-shared/src/__tests__/RandomizerUtils.test.ts index 5125d6e546c..ad526f8b9b5 100644 --- a/packages/legend-shared/src/__tests__/RandomizerUtils.test.ts +++ b/packages/legend-shared/src/__tests__/RandomizerUtils.test.ts @@ -15,8 +15,8 @@ */ import { test, expect } from '@jest/globals'; -import { unitTest } from '../application/TestUtils'; -import { Randomizer } from '../application/RandomizerUtils'; +import { unitTest } from '../application/TestUtils.js'; +import { Randomizer } from '../application/RandomizerUtils.js'; const NUMBER_OF_ITERATIONS = 10000; const repeater = (fn: () => void, repeat = NUMBER_OF_ITERATIONS): void => { diff --git a/packages/legend-shared/src/application/AbstractPluginManager.ts b/packages/legend-shared/src/application/AbstractPluginManager.ts index d638d366a47..f5be41b9d4b 100644 --- a/packages/legend-shared/src/application/AbstractPluginManager.ts +++ b/packages/legend-shared/src/application/AbstractPluginManager.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { uuid } from '../CommonUtils'; +import { uuid } from '../CommonUtils.js'; export class PluginInfo { name!: string; diff --git a/packages/legend-shared/src/application/BrowserUtils.ts b/packages/legend-shared/src/application/BrowserUtils.ts index eb700205148..4a35436512f 100644 --- a/packages/legend-shared/src/application/BrowserUtils.ts +++ b/packages/legend-shared/src/application/BrowserUtils.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { isString } from '../error/AssertionUtils'; -import { UnsupportedOperationError } from '../error/ErrorUtils'; +import { isString } from '../error/AssertionUtils.js'; +import { UnsupportedOperationError } from '../error/ErrorUtils.js'; export const readFileAsText = (file: File): Promise => new Promise((resolve, reject) => { diff --git a/packages/legend-shared/src/application/HashUtils.ts b/packages/legend-shared/src/application/HashUtils.ts index f1bba4cdf56..715b9d1095e 100644 --- a/packages/legend-shared/src/application/HashUtils.ts +++ b/packages/legend-shared/src/application/HashUtils.ts @@ -15,7 +15,7 @@ */ import hash from 'hash.js'; -import type { Clazz } from '../CommonUtils'; +import type { Clazz } from '../CommonUtils.js'; /** * NOTE: despite the push to adopt visitor pattern across the code-base, hashing implementation for now will remain within diff --git a/packages/legend-shared/src/application/SerializationUtils.ts b/packages/legend-shared/src/application/SerializationUtils.ts index 6f97dd906de..2f1f2058cc6 100644 --- a/packages/legend-shared/src/application/SerializationUtils.ts +++ b/packages/legend-shared/src/application/SerializationUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { type PlainObject, pruneNullValues } from '../CommonUtils'; +import { type PlainObject, pruneNullValues } from '../CommonUtils.js'; import { type ModelSchema, type PropSchema, diff --git a/packages/legend-shared/src/application/StopWatch.ts b/packages/legend-shared/src/application/StopWatch.ts index 22e44311803..b95e9cbc4dc 100644 --- a/packages/legend-shared/src/application/StopWatch.ts +++ b/packages/legend-shared/src/application/StopWatch.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { guaranteeNonNullable } from '../error/AssertionUtils'; +import { guaranteeNonNullable } from '../error/AssertionUtils.js'; export class StopWatch { private _startTime = Date.now(); diff --git a/packages/legend-shared/src/application/TestUtils.ts b/packages/legend-shared/src/application/TestUtils.ts index 691aa77a4d5..7d89b4e7554 100644 --- a/packages/legend-shared/src/application/TestUtils.ts +++ b/packages/legend-shared/src/application/TestUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { noop } from '../CommonUtils'; +import { noop } from '../CommonUtils.js'; import { configure as configureMobx } from 'mobx'; /** diff --git a/packages/legend-shared/src/communication/EventNotifierPlugin.ts b/packages/legend-shared/src/communication/EventNotifierPlugin.ts index 3993ab12564..53515d7b6e4 100644 --- a/packages/legend-shared/src/communication/EventNotifierPlugin.ts +++ b/packages/legend-shared/src/communication/EventNotifierPlugin.ts @@ -17,7 +17,7 @@ import { AbstractPlugin, type AbstractPluginManager, -} from '../application/AbstractPluginManager'; +} from '../application/AbstractPluginManager.js'; // NOTE: here, we keep event data at a very generic shape // One of the main motivation of event notifier is Github web-hook diff --git a/packages/legend-shared/src/communication/IframeEventNotifierPlugin.ts b/packages/legend-shared/src/communication/IframeEventNotifierPlugin.ts index a78f7dc9b7d..cacb4c50200 100644 --- a/packages/legend-shared/src/communication/IframeEventNotifierPlugin.ts +++ b/packages/legend-shared/src/communication/IframeEventNotifierPlugin.ts @@ -18,7 +18,7 @@ import packageJson from '../../package.json'; import { type NotificationEventData, EventNotifierPlugin, -} from './EventNotifierPlugin'; +} from './EventNotifierPlugin.js'; export class IframeEventNotifierPlugin extends EventNotifierPlugin { constructor() { diff --git a/packages/legend-shared/src/communication/TelemetryService.ts b/packages/legend-shared/src/communication/TelemetryService.ts index 3fe625515f6..6df0d44a066 100644 --- a/packages/legend-shared/src/communication/TelemetryService.ts +++ b/packages/legend-shared/src/communication/TelemetryService.ts @@ -17,7 +17,7 @@ import { AbstractPlugin, type AbstractPluginManager, -} from '../application/AbstractPluginManager'; +} from '../application/AbstractPluginManager.js'; export interface TelemetryData { [key: string]: unknown; diff --git a/packages/legend-shared/src/error/AssertionUtils.ts b/packages/legend-shared/src/error/AssertionUtils.ts index 5403ddd97ad..883ae72b8c1 100644 --- a/packages/legend-shared/src/error/AssertionUtils.ts +++ b/packages/legend-shared/src/error/AssertionUtils.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { EnrichedError } from './ErrorUtils'; -import type { GenericClazz } from '../CommonUtils'; +import { EnrichedError } from './ErrorUtils.js'; +import type { GenericClazz } from '../CommonUtils.js'; export class AssertionError extends EnrichedError { constructor(error: string | Error | undefined, message?: string) { diff --git a/packages/legend-shared/src/error/ErrorUtils.ts b/packages/legend-shared/src/error/ErrorUtils.ts index 438d6a7cc1b..8307aa5348f 100644 --- a/packages/legend-shared/src/error/ErrorUtils.ts +++ b/packages/legend-shared/src/error/ErrorUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { type SuperGenericFunction, printObject } from '../CommonUtils'; +import { type SuperGenericFunction, printObject } from '../CommonUtils.js'; /** * A generic error that can be used for building other errors in the application diff --git a/packages/legend-shared/src/error/__tests__/AssertionUtils.test.ts b/packages/legend-shared/src/error/__tests__/AssertionUtils.test.ts index e03c3ac1605..83f5e152787 100644 --- a/packages/legend-shared/src/error/__tests__/AssertionUtils.test.ts +++ b/packages/legend-shared/src/error/__tests__/AssertionUtils.test.ts @@ -19,8 +19,8 @@ import { isNonNullable, AssertionError, guaranteeNonNullable, -} from '../AssertionUtils'; -import { unitTest } from '../../application/TestUtils'; +} from '../AssertionUtils.js'; +import { unitTest } from '../../application/TestUtils.js'; test(unitTest('Check nullable value'), () => { expect(isNonNullable(null)).toEqual(false); diff --git a/packages/legend-shared/src/format/ValidatorUtils.ts b/packages/legend-shared/src/format/ValidatorUtils.ts index 4264ab8e7e6..db2ba539f2e 100644 --- a/packages/legend-shared/src/format/ValidatorUtils.ts +++ b/packages/legend-shared/src/format/ValidatorUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { returnUndefOnError } from '../error/ErrorUtils'; +import { returnUndefOnError } from '../error/ErrorUtils.js'; const VALID_STRING = /^[\w_][\w_$]*$/u; diff --git a/packages/legend-shared/src/format/__tests__/FormatterUtils.test.ts b/packages/legend-shared/src/format/__tests__/FormatterUtils.test.ts index 408a3b4ed28..bc7d7499074 100644 --- a/packages/legend-shared/src/format/__tests__/FormatterUtils.test.ts +++ b/packages/legend-shared/src/format/__tests__/FormatterUtils.test.ts @@ -27,8 +27,8 @@ import { toTitleCase, TITLE_CASE_EXCEPTION_WORDS, isCamelCase, -} from '../FormatterUtils'; -import { unitTest } from '../../application/TestUtils'; +} from '../FormatterUtils.js'; +import { unitTest } from '../../application/TestUtils.js'; test(unitTest('To sentence case'), () => { expect(toSentenceCase('')).toEqual(''); diff --git a/packages/legend-shared/src/index.ts b/packages/legend-shared/src/index.ts index aa7cdfded98..1bb3321c711 100644 --- a/packages/legend-shared/src/index.ts +++ b/packages/legend-shared/src/index.ts @@ -14,35 +14,35 @@ * limitations under the License. */ -export * from './CommonUtils'; +export * from './CommonUtils.js'; -export * from './error/AssertionUtils'; -export * from './error/ErrorUtils'; +export * from './error/AssertionUtils.js'; +export * from './error/ErrorUtils.js'; -export * from './network/NetworkUtils'; -export * from './network/AbstractServerClient'; -export * from './network/TracerService'; +export * from './network/NetworkUtils.js'; +export * from './network/AbstractServerClient.js'; +export * from './network/TracerService.js'; -export * from './format/FormatterUtils'; -export * from './format/ValidatorUtils'; +export * from './format/FormatterUtils.js'; +export * from './format/ValidatorUtils.js'; -export * from './markdown/MarkdownUtils'; +export * from './markdown/MarkdownUtils.js'; -export * from './communication/EventNotifierPlugin'; -export * from './communication/IframeEventNotifierPlugin'; -export * from './communication/TelemetryService'; +export * from './communication/EventNotifierPlugin.js'; +export * from './communication/IframeEventNotifierPlugin.js'; +export * from './communication/TelemetryService.js'; -export * from './application/HashUtils'; -export * from './application/TestUtils'; -export * from './application/SerializationUtils'; -export * from './application/RandomizerUtils'; -export * from './application/ActionState'; -export * from './application/StopWatch'; -export * from './application/AbstractPluginManager'; -export * from './application/BrowserUtils'; +export * from './application/HashUtils.js'; +export * from './application/TestUtils.js'; +export * from './application/SerializationUtils.js'; +export * from './application/RandomizerUtils.js'; +export * from './application/ActionState.js'; +export * from './application/StopWatch.js'; +export * from './application/AbstractPluginManager.js'; +export * from './application/BrowserUtils.js'; -export * from './data-structure/Pair'; -export * from './data-structure/Stack'; +export * from './data-structure/Pair.js'; +export * from './data-structure/Stack.js'; -export * from './log/Logger'; -export * from './log/WebConsole'; +export * from './log/Logger.js'; +export * from './log/WebConsole.js'; diff --git a/packages/legend-shared/src/log/Logger.ts b/packages/legend-shared/src/log/Logger.ts index 8b13496aad0..6fe85e79f92 100644 --- a/packages/legend-shared/src/log/Logger.ts +++ b/packages/legend-shared/src/log/Logger.ts @@ -17,7 +17,7 @@ import { AbstractPlugin, type AbstractPluginManager, -} from '../application/AbstractPluginManager'; +} from '../application/AbstractPluginManager.js'; // We use numeric enum here for because we want to do comparison // In order to retrieve the name of the enum we can do reverse mapping, for example: LogLevel[LogLevel.INFO] -> INFO diff --git a/packages/legend-shared/src/log/WebConsole.ts b/packages/legend-shared/src/log/WebConsole.ts index 792da77ba3d..ee4d2623b26 100644 --- a/packages/legend-shared/src/log/WebConsole.ts +++ b/packages/legend-shared/src/log/WebConsole.ts @@ -15,7 +15,7 @@ */ import packageJson from '../../package.json'; -import { type LogEvent, LoggerPlugin } from './Logger'; +import { type LogEvent, LoggerPlugin } from './Logger.js'; const { debug, info, warn, error } = console; diff --git a/packages/legend-shared/src/network/AbstractServerClient.ts b/packages/legend-shared/src/network/AbstractServerClient.ts index 08bba4c6729..8e222c8329d 100644 --- a/packages/legend-shared/src/network/AbstractServerClient.ts +++ b/packages/legend-shared/src/network/AbstractServerClient.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { guaranteeNonNullable } from '../error/AssertionUtils'; +import { guaranteeNonNullable } from '../error/AssertionUtils.js'; import { type Parameters, type RequestHeaders, @@ -24,8 +24,8 @@ import { makeUrl, createRequestHeaders, NetworkClient, -} from './NetworkUtils'; -import type { TraceData, TracerService } from './TracerService'; +} from './NetworkUtils.js'; +import type { TraceData, TracerService } from './TracerService.js'; export interface ServerClientConfig { baseUrl?: string; diff --git a/packages/legend-shared/src/network/NetworkUtils.ts b/packages/legend-shared/src/network/NetworkUtils.ts index 50a34d908ce..c5e4bec0c25 100644 --- a/packages/legend-shared/src/network/NetworkUtils.ts +++ b/packages/legend-shared/src/network/NetworkUtils.ts @@ -21,13 +21,13 @@ import { isObject, AssertionError, assertTrue, -} from '../error/AssertionUtils'; +} from '../error/AssertionUtils.js'; import { deflate } from 'pako'; import { parse as _getQueryParams, parseUrl as _getQueryParamsFromUrl, } from 'query-string'; -import { returnUndefOnError } from '../error/ErrorUtils'; +import { returnUndefOnError } from '../error/ErrorUtils.js'; /** * Unlike the download call (GET requests) which is gziped, the upload call send uncompressed data which is in megabytes realms diff --git a/packages/legend-shared/src/network/TracerService.ts b/packages/legend-shared/src/network/TracerService.ts index 39f4f5b8175..47bb5a59d3b 100644 --- a/packages/legend-shared/src/network/TracerService.ts +++ b/packages/legend-shared/src/network/TracerService.ts @@ -17,7 +17,7 @@ import { AbstractPlugin, type AbstractPluginManager, -} from '../application/AbstractPluginManager'; +} from '../application/AbstractPluginManager.js'; export interface TraceData { spanName: string; diff --git a/packages/legend-studio-deployment/src/index.tsx b/packages/legend-studio-deployment/src/index.tsx index c4521d82358..f73ccb8f0e1 100644 --- a/packages/legend-studio-deployment/src/index.tsx +++ b/packages/legend-studio-deployment/src/index.tsx @@ -15,7 +15,7 @@ */ import { LegendStudioWebApplication } from '@finos/legend-studio-app'; -import config from '../studio.config'; +import config from '../studio.config.js'; import './index.scss'; LegendStudioWebApplication.run(config.baseUrl); diff --git a/packages/legend-studio-extension-management-toolkit/src/components/Management_LegendStudioPlugin.tsx b/packages/legend-studio-extension-management-toolkit/src/components/Management_LegendStudioPlugin.tsx index fa7112ae8b7..bf5e8a5dcbf 100644 --- a/packages/legend-studio-extension-management-toolkit/src/components/Management_LegendStudioPlugin.tsx +++ b/packages/legend-studio-extension-management-toolkit/src/components/Management_LegendStudioPlugin.tsx @@ -19,7 +19,10 @@ import { type ApplicationPageRenderEntry, LegendStudioPlugin, } from '@finos/legend-studio'; -import { PATH_PARAM_TOKEN_REDIRECT_URL, URLRedirector } from './URLRedirector'; +import { + PATH_PARAM_TOKEN_REDIRECT_URL, + URLRedirector, +} from './URLRedirector.js'; export class Management_LegendStudioPlugin extends LegendStudioPlugin { constructor() { diff --git a/packages/legend-studio-extension-management-toolkit/src/index.ts b/packages/legend-studio-extension-management-toolkit/src/index.ts index 8110b4f4a28..60b31e18654 100644 --- a/packages/legend-studio-extension-management-toolkit/src/index.ts +++ b/packages/legend-studio-extension-management-toolkit/src/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './components/Management_LegendStudioPlugin'; +export * from './components/Management_LegendStudioPlugin.js'; diff --git a/packages/legend-studio-extension-query-builder/src/QueryBuilder_LegendStudioPreset.ts b/packages/legend-studio-extension-query-builder/src/QueryBuilder_LegendStudioPreset.ts index e446c5ba9bc..a270b3398f5 100644 --- a/packages/legend-studio-extension-query-builder/src/QueryBuilder_LegendStudioPreset.ts +++ b/packages/legend-studio-extension-query-builder/src/QueryBuilder_LegendStudioPreset.ts @@ -16,7 +16,7 @@ import packageJson from '../package.json'; import { AbstractPreset } from '@finos/legend-shared'; -import { QueryBuilder_LegendStudioPlugin } from './components/QueryBuilder_LegendStudioPlugin'; +import { QueryBuilder_LegendStudioPlugin } from './components/QueryBuilder_LegendStudioPlugin.js'; import { QueryBuilder_PureProtocolProcessorPlugin } from '@finos/legend-query'; export class QueryBuilder_LegendStudioPreset extends AbstractPreset { diff --git a/packages/legend-studio-extension-query-builder/src/components/MappingExecutionQueryBuilder.tsx b/packages/legend-studio-extension-query-builder/src/components/MappingExecutionQueryBuilder.tsx index e1ab90f6a12..07ce111fa5c 100644 --- a/packages/legend-studio-extension-query-builder/src/components/MappingExecutionQueryBuilder.tsx +++ b/packages/legend-studio-extension-query-builder/src/components/MappingExecutionQueryBuilder.tsx @@ -20,7 +20,7 @@ import { } from '@finos/legend-studio'; import { flowResult } from 'mobx'; import { observer } from 'mobx-react-lite'; -import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState'; +import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState.js'; import { useApplicationStore } from '@finos/legend-application'; import { QueryBuilderMode } from '@finos/legend-query'; import { assertErrorThrown } from '@finos/legend-shared'; diff --git a/packages/legend-studio-extension-query-builder/src/components/MappingTestQueryBuilder.tsx b/packages/legend-studio-extension-query-builder/src/components/MappingTestQueryBuilder.tsx index fbe47eb253d..23853275f46 100644 --- a/packages/legend-studio-extension-query-builder/src/components/MappingTestQueryBuilder.tsx +++ b/packages/legend-studio-extension-query-builder/src/components/MappingTestQueryBuilder.tsx @@ -17,9 +17,9 @@ import { type MappingTestState, useEditorStore } from '@finos/legend-studio'; import { flowResult } from 'mobx'; import { observer } from 'mobx-react-lite'; -import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState'; +import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState.js'; import { useApplicationStore } from '@finos/legend-application'; -import { MappingExecutionQueryBuilderMode } from './MappingExecutionQueryBuilder'; +import { MappingExecutionQueryBuilderMode } from './MappingExecutionQueryBuilder.js'; import { assertErrorThrown } from '@finos/legend-shared'; import { PencilIcon } from '@finos/legend-art'; import { isStubbed_RawLambda } from '@finos/legend-graph'; diff --git a/packages/legend-studio-extension-query-builder/src/components/QueryBuilderDialog.tsx b/packages/legend-studio-extension-query-builder/src/components/QueryBuilderDialog.tsx index b466bfb2e59..f2db91311fb 100644 --- a/packages/legend-studio-extension-query-builder/src/components/QueryBuilderDialog.tsx +++ b/packages/legend-studio-extension-query-builder/src/components/QueryBuilderDialog.tsx @@ -26,7 +26,7 @@ import { import { useEditorStore } from '@finos/legend-studio'; import { flowResult } from 'mobx'; import { noop } from '@finos/legend-shared'; -import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState'; +import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState.js'; import { useApplicationStore } from '@finos/legend-application'; import { QueryBuilder } from '@finos/legend-query'; diff --git a/packages/legend-studio-extension-query-builder/src/components/QueryBuilder_LegendStudioPlugin.tsx b/packages/legend-studio-extension-query-builder/src/components/QueryBuilder_LegendStudioPlugin.tsx index 4fd2d27073c..8770002f3b2 100644 --- a/packages/legend-studio-extension-query-builder/src/components/QueryBuilder_LegendStudioPlugin.tsx +++ b/packages/legend-studio-extension-query-builder/src/components/QueryBuilder_LegendStudioPlugin.tsx @@ -44,10 +44,10 @@ import { service_setLegacyTest, } from '@finos/legend-studio'; import { MenuContentItem } from '@finos/legend-art'; -import { QueryBuilderDialog } from './QueryBuilderDialog'; -import { ServiceQueryBuilder } from './ServiceQueryBuilder'; -import { MappingExecutionQueryBuilder } from './MappingExecutionQueryBuilder'; -import { MappingTestQueryBuilder } from './MappingTestQueryBuilder'; +import { QueryBuilderDialog } from './QueryBuilderDialog.js'; +import { ServiceQueryBuilder } from './ServiceQueryBuilder.js'; +import { MappingExecutionQueryBuilder } from './MappingExecutionQueryBuilder.js'; +import { MappingTestQueryBuilder } from './MappingTestQueryBuilder.js'; import { flowResult } from 'mobx'; import { type PackageableElement, @@ -57,7 +57,7 @@ import { Service, DEPRECATED__SingleExecutionTest, } from '@finos/legend-graph'; -import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState'; +import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState.js'; import { setupLegendQueryUILibrary, StandardQueryBuilderMode, diff --git a/packages/legend-studio-extension-query-builder/src/components/ServiceQueryBuilder.tsx b/packages/legend-studio-extension-query-builder/src/components/ServiceQueryBuilder.tsx index cb249ebf865..71d5d6c375a 100644 --- a/packages/legend-studio-extension-query-builder/src/components/ServiceQueryBuilder.tsx +++ b/packages/legend-studio-extension-query-builder/src/components/ServiceQueryBuilder.tsx @@ -20,7 +20,7 @@ import { } from '@finos/legend-studio'; import { flowResult } from 'mobx'; import { observer } from 'mobx-react-lite'; -import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState'; +import { QueryBuilder_EditorExtensionState } from '../stores/QueryBuilder_EditorExtensionState.js'; import { useApplicationStore } from '@finos/legend-application'; import { StandardQueryBuilderMode } from '@finos/legend-query'; import { assertErrorThrown } from '@finos/legend-shared'; diff --git a/packages/legend-studio-extension-query-builder/src/components/__tests__/QueryBuilder_StudioPlugin.test.tsx b/packages/legend-studio-extension-query-builder/src/components/__tests__/QueryBuilder_StudioPlugin.test.tsx index 9a91f57ebf7..0218c4690ca 100644 --- a/packages/legend-studio-extension-query-builder/src/components/__tests__/QueryBuilder_StudioPlugin.test.tsx +++ b/packages/legend-studio-extension-query-builder/src/components/__tests__/QueryBuilder_StudioPlugin.test.tsx @@ -34,7 +34,7 @@ import { } from '@finos/legend-studio'; import { QUERY_BUILDER_TEST_ID } from '@finos/legend-query'; import { TEST__provideMockedGraphManagerState } from '@finos/legend-graph'; -import { QueryBuilder_LegendStudioPreset } from '../../QueryBuilder_LegendStudioPreset'; +import { QueryBuilder_LegendStudioPreset } from '../../QueryBuilder_LegendStudioPreset.js'; import { TEST__provideMockedApplicationStore } from '@finos/legend-application'; import { MockedMonacoEditorInstance } from '@finos/legend-art'; diff --git a/packages/legend-studio-extension-query-builder/src/index.ts b/packages/legend-studio-extension-query-builder/src/index.ts index d444884244c..f3655411f15 100644 --- a/packages/legend-studio-extension-query-builder/src/index.ts +++ b/packages/legend-studio-extension-query-builder/src/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './QueryBuilder_LegendStudioPreset'; +export * from './QueryBuilder_LegendStudioPreset.js'; diff --git a/packages/legend-studio/src/application/LegendStudio.tsx b/packages/legend-studio/src/application/LegendStudio.tsx index 5752c5d3ad6..bb9d4741cdf 100644 --- a/packages/legend-studio/src/application/LegendStudio.tsx +++ b/packages/legend-studio/src/application/LegendStudio.tsx @@ -17,8 +17,8 @@ import { createRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import { configure as configureReactHotkeys } from 'react-hotkeys'; -import { LegendStudioApplication } from '../components/LegendStudioApplication'; -import { LegendStudioPluginManager } from './LegendStudioPluginManager'; +import { LegendStudioApplication } from '../components/LegendStudioApplication.js'; +import { LegendStudioPluginManager } from './LegendStudioPluginManager.js'; import { type LegendApplicationConfig, type LegendApplicationLogger, @@ -33,8 +33,8 @@ import { getRootElement } from '@finos/legend-art'; import { type LegendStudioConfigurationData, LegendStudioConfig, -} from './LegendStudioConfig'; -import { Core_LegendStudioPlugin } from '../components/Core_LegendStudioPlugin'; +} from './LegendStudioConfig.js'; +import { Core_LegendStudioPlugin } from '../components/Core_LegendStudioPlugin.js'; const setupLegendStudioUILibrary = async ( pluginManager: LegendStudioPluginManager, diff --git a/packages/legend-studio/src/application/LegendStudioPluginManager.ts b/packages/legend-studio/src/application/LegendStudioPluginManager.ts index 447dd4a3fbd..74681fcda5d 100644 --- a/packages/legend-studio/src/application/LegendStudioPluginManager.ts +++ b/packages/legend-studio/src/application/LegendStudioPluginManager.ts @@ -22,8 +22,8 @@ import { type PureGraphPlugin, type PureProtocolProcessorPlugin, } from '@finos/legend-graph'; -import { Core_LegendStudioPlugin } from '../components/Core_LegendStudioPlugin'; -import type { LegendStudioPlugin } from '../stores/LegendStudioPlugin'; +import { Core_LegendStudioPlugin } from '../components/Core_LegendStudioPlugin.js'; +import type { LegendStudioPlugin } from '../stores/LegendStudioPlugin.js'; export class LegendStudioPluginManager extends LegendApplicationPluginManager diff --git a/packages/legend-studio/src/components/Core_LegendStudioPlugin.tsx b/packages/legend-studio/src/components/Core_LegendStudioPlugin.tsx index fd6412cbe8c..9d2255ded5e 100644 --- a/packages/legend-studio/src/components/Core_LegendStudioPlugin.tsx +++ b/packages/legend-studio/src/components/Core_LegendStudioPlugin.tsx @@ -24,8 +24,8 @@ import packageJson from '../../package.json'; import { CORE_CONTEXTUAL_DOCUMENTATION_ENTRIES, CORE_DOCUMENTATION_ENTRIES, -} from '../stores/LegendStudioDocumentation'; -import { LegendStudioPlugin } from '../stores/LegendStudioPlugin'; +} from '../stores/LegendStudioDocumentation.js'; +import { LegendStudioPlugin } from '../stores/LegendStudioPlugin.js'; export class Core_LegendStudioPlugin extends LegendStudioPlugin { static NAME = packageJson.extensions.core_studioPlugin; diff --git a/packages/legend-studio/src/components/DSLExternalFormat_LegendStudioPlugin.tsx b/packages/legend-studio/src/components/DSLExternalFormat_LegendStudioPlugin.tsx index 9c8e339c2a0..74cde2292e8 100644 --- a/packages/legend-studio/src/components/DSLExternalFormat_LegendStudioPlugin.tsx +++ b/packages/legend-studio/src/components/DSLExternalFormat_LegendStudioPlugin.tsx @@ -16,7 +16,7 @@ import packageJson from '../../package.json'; import { BufferIcon, SitemapIcon } from '@finos/legend-art'; -import { SchemaSetEditor } from './editor/edit-panel/external-format-editor/SchemaSetElementEditor'; +import { SchemaSetEditor } from './editor/edit-panel/external-format-editor/SchemaSetElementEditor.js'; import { type Connection, type PackageableElement, @@ -36,8 +36,8 @@ import { ExternalFormatConnectionEditor, ExternalFormatConnectionValueState, NewExternalFormatConnectionDriver, -} from './editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor'; -import { BindingEditor } from './editor/edit-panel/external-format-editor/BindingElementEditor'; +} from './editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.js'; +import { BindingEditor } from './editor/edit-panel/external-format-editor/BindingElementEditor.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; import type { ReactNode } from 'react'; import { @@ -55,7 +55,7 @@ import { type PureGrammarParserKeywordSuggestionGetter, type PureGrammarTextSuggestion, LegendStudioPlugin, -} from '../stores/LegendStudioPlugin'; +} from '../stores/LegendStudioPlugin.js'; import type { ConnectionEditorRenderer, ConnectionValueEditorStateBuilder, @@ -63,34 +63,34 @@ import type { DSLMapping_LegendStudioPlugin_Extension, NewConnectionDriverCreator, RuntimeConnectionTooltipTextBuilder, -} from '../stores/DSLMapping_LegendStudioPlugin_Extension'; +} from '../stores/DSLMapping_LegendStudioPlugin_Extension.js'; import type { NewConnectionValueDriver, NewElementDriver, NewElementState, -} from '../stores/NewElementState'; -import type { EditorStore } from '../stores/EditorStore'; -import type { ElementEditorState } from '../stores/editor-state/element-editor-state/ElementEditorState'; -import { SchemaSetEditorState } from '../stores/editor-state/element-editor-state/external-format/SchemaSetEditorState'; -import { BindingEditorState } from '../stores/editor-state/element-editor-state/external-format/BindingEditorState'; -import type { ConnectionValueState } from '../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; +} from '../stores/NewElementState.js'; +import type { EditorStore } from '../stores/EditorStore.js'; +import type { ElementEditorState } from '../stores/editor-state/element-editor-state/ElementEditorState.js'; +import { SchemaSetEditorState } from '../stores/editor-state/element-editor-state/external-format/SchemaSetEditorState.js'; +import { BindingEditorState } from '../stores/editor-state/element-editor-state/external-format/BindingEditorState.js'; +import type { ConnectionValueState } from '../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; import { externalFormat_Binding_setContentType, externalFormat_urlStream_setUrl, -} from '../stores/graphModifier/DSLExternalFormat_GraphModifierHelper'; +} from '../stores/graphModifier/DSLExternalFormat_GraphModifierHelper.js'; import type { LegendApplicationDocumentationEntry } from '@finos/legend-application'; -import { DSL_EXTERNAL_FORMAT_LEGEND_STUDIO_DOCUMENTATION_KEY } from './DSLExternalFormat_LegendStudioDocumentation'; +import { DSL_EXTERNAL_FORMAT_LEGEND_STUDIO_DOCUMENTATION_KEY } from './DSLExternalFormat_LegendStudioDocumentation.js'; import { BASIC_BINDING_SNIPPET, BASIC_SCHEMASET_SNIPPET, SCHEMASET_WITH_JSON_SCHEMA_SNIPPET, SCHEMASET_WITH_XML_SCHEMA_SNIPPET, SCHEMASET_WITH_FLAT_DATA_SCHEMA_SNIPPET, -} from './DSLExternalFormat_CodeSnippets'; +} from './DSLExternalFormat_CodeSnippets.js'; import { NewSchemaSetDriver, NewSchemaSetDriverEditor, -} from './editor/edit-panel/external-format-editor/NewSchemaSetDriver'; +} from './editor/edit-panel/external-format-editor/NewSchemaSetDriver.js'; const SCHEMA_SET_ELEMENT_TYPE = 'SCHEMASET'; const SCHEMA_SET_ELEMENT_PROJECT_EXPLORER_DND_TYPE = diff --git a/packages/legend-studio/src/components/EditorComponentTestUtils.tsx b/packages/legend-studio/src/components/EditorComponentTestUtils.tsx index 40455aa68e3..b08adbf686f 100644 --- a/packages/legend-studio/src/components/EditorComponentTestUtils.tsx +++ b/packages/legend-studio/src/components/EditorComponentTestUtils.tsx @@ -24,17 +24,17 @@ import { } from '@testing-library/react'; import { Router } from 'react-router-dom'; import { createMemoryHistory } from 'history'; -import { LEGEND_STUDIO_TEST_ID } from './LegendStudioTestID'; -import { EditorStore } from '../stores/EditorStore'; -import { Editor } from './editor/Editor'; -import { generateEditorRoute } from '../stores/LegendStudioRouter'; +import { LEGEND_STUDIO_TEST_ID } from './LegendStudioTestID.js'; +import { EditorStore } from '../stores/EditorStore.js'; +import { Editor } from './editor/Editor.js'; +import { generateEditorRoute } from '../stores/LegendStudioRouter.js'; import { type PlainObject, type TEMPORARY__JestMock, MOBX__disableSpyOrMock, MOBX__enableSpyOrMock, } from '@finos/legend-shared'; -import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager'; +import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js'; import type { Entity } from '@finos/legend-model-storage'; import { type Project, @@ -66,7 +66,7 @@ import { TEST__DepotServerClientProvider, TEST__getTestDepotServerClient, } from '@finos/legend-server-depot'; -import { LegendStudioStoreProvider } from './LegendStudioStoreProvider'; +import { LegendStudioStoreProvider } from './LegendStudioStoreProvider.js'; import { type ApplicationStore, TEST__provideMockedWebApplicationNavigator, @@ -75,8 +75,8 @@ import { LegendApplicationComponentFrameworkProvider, WebApplicationNavigator, } from '@finos/legend-application'; -import { TEST__getTestStudioConfig } from '../stores/EditorStoreTestUtils'; -import type { LegendStudioConfig } from '../application/LegendStudioConfig'; +import { TEST__getTestStudioConfig } from '../stores/EditorStoreTestUtils.js'; +import type { LegendStudioConfig } from '../application/LegendStudioConfig.js'; export const TEST_DATA__DefaultSDLCInfo = { project: { @@ -175,7 +175,7 @@ export const TEST__provideMockedEditorStore = (customization?: { TEST__getTestGraphManagerState(customization?.pluginManager), pluginManager, ); - const MockedEditorStoreProvider = require('./editor/EditorStoreProvider'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment + const MockedEditorStoreProvider = require('./editor/EditorStoreProvider.js'); // eslint-disable-line @typescript-eslint/no-unsafe-assignment MockedEditorStoreProvider.useEditorStore = jest.fn(); MockedEditorStoreProvider.useEditorStore.mockReturnValue(value); return value; diff --git a/packages/legend-studio/src/components/LegendStudioAppInfo.tsx b/packages/legend-studio/src/components/LegendStudioAppInfo.tsx index 5959ea620d6..6e5f59641ca 100644 --- a/packages/legend-studio/src/components/LegendStudioAppInfo.tsx +++ b/packages/legend-studio/src/components/LegendStudioAppInfo.tsx @@ -31,7 +31,7 @@ import { type TreeNodeData, } from '@finos/legend-art'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../application/LegendStudioConfig.js'; import { addUniqueEntry, isNonNullable, diff --git a/packages/legend-studio/src/components/LegendStudioApplication.tsx b/packages/legend-studio/src/components/LegendStudioApplication.tsx index 08f1c51745a..aa1f23b1d15 100644 --- a/packages/legend-studio/src/components/LegendStudioApplication.tsx +++ b/packages/legend-studio/src/components/LegendStudioApplication.tsx @@ -16,10 +16,10 @@ import { useEffect } from 'react'; import { Switch, Route } from 'react-router-dom'; -import { Setup } from './setup/Setup'; -import { Editor } from './editor/Editor'; -import { Review } from './review/Review'; -import { Viewer } from './viewer/Viewer'; +import { Setup } from './setup/Setup.js'; +import { Editor } from './editor/Editor.js'; +import { Review } from './review/Review.js'; +import { Viewer } from './viewer/Viewer.js'; import { observer } from 'mobx-react-lite'; import { clsx, @@ -27,23 +27,23 @@ import { MarkdownTextViewer, PanelLoadingIndicator, } from '@finos/legend-art'; -import { LEGEND_STUDIO_ROUTE_PATTERN } from '../stores/LegendStudioRouter'; -import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager'; +import { LEGEND_STUDIO_ROUTE_PATTERN } from '../stores/LegendStudioRouter.js'; +import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js'; import { flowResult } from 'mobx'; import { SDLCServerClientProvider } from '@finos/legend-server-sdlc'; import { DepotServerClientProvider } from '@finos/legend-server-depot'; import { LegendStudioStoreProvider, useLegendStudioStore, -} from './LegendStudioStoreProvider'; +} from './LegendStudioStoreProvider.js'; import { GraphManagerStateProvider } from '@finos/legend-graph'; import { LegendApplicationComponentFrameworkProvider, useApplicationStore, VirtualAssistant, } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../application/LegendStudioConfig'; -import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../stores/LegendStudioDocumentation'; +import type { LegendStudioConfig } from '../application/LegendStudioConfig.js'; +import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../stores/LegendStudioDocumentation.js'; const LegendStudioNotFoundRouteScreen = observer(() => { const applicationStore = useApplicationStore(); diff --git a/packages/legend-studio/src/components/LegendStudioStoreProvider.tsx b/packages/legend-studio/src/components/LegendStudioStoreProvider.tsx index cd2c225b8f8..dda38e9632c 100644 --- a/packages/legend-studio/src/components/LegendStudioStoreProvider.tsx +++ b/packages/legend-studio/src/components/LegendStudioStoreProvider.tsx @@ -18,11 +18,11 @@ import { createContext, useContext } from 'react'; import { guaranteeNonNullable } from '@finos/legend-shared'; import { useSDLCServerClient } from '@finos/legend-server-sdlc'; import { useDepotServerClient } from '@finos/legend-server-depot'; -import { LegendStudioStore } from '../stores/LegendStudioStore'; -import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager'; +import { LegendStudioStore } from '../stores/LegendStudioStore.js'; +import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js'; import { useLocalObservable } from 'mobx-react-lite'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../application/LegendStudioConfig.js'; const LegendStudioStoreContext = createContext( undefined, diff --git a/packages/legend-studio/src/components/__tests__/LegendStudioApplication.test.tsx b/packages/legend-studio/src/components/__tests__/LegendStudioApplication.test.tsx index d9ba963715f..51b8a145d74 100644 --- a/packages/legend-studio/src/components/__tests__/LegendStudioApplication.test.tsx +++ b/packages/legend-studio/src/components/__tests__/LegendStudioApplication.test.tsx @@ -15,7 +15,7 @@ */ import { test, jest, expect } from '@jest/globals'; -import { LegendStudioApplicationRoot } from '../LegendStudioApplication'; +import { LegendStudioApplicationRoot } from '../LegendStudioApplication.js'; import { integrationTest, MOBX__enableSpyOrMock, @@ -29,7 +29,7 @@ import { TEST__provideMockedWebApplicationNavigator, LegendApplicationComponentFrameworkProvider, } from '@finos/legend-application'; -import { TEST__LegendStudioStoreProvider } from '../EditorComponentTestUtils'; +import { TEST__LegendStudioStoreProvider } from '../EditorComponentTestUtils.js'; import { render, waitFor } from '@testing-library/react'; import { MemoryRouter } from 'react-router-dom'; import { createMemoryHistory } from 'history'; @@ -39,8 +39,8 @@ import { TEST__SDLCServerClientProvider, } from '@finos/legend-server-sdlc'; import { TEST__DepotServerClientProvider } from '@finos/legend-server-depot'; -import { TEST__getTestStudioConfig } from '../../stores/EditorStoreTestUtils'; -import { LegendStudioPluginManager } from '../../application/LegendStudioPluginManager'; +import { TEST__getTestStudioConfig } from '../../stores/EditorStoreTestUtils.js'; +import { LegendStudioPluginManager } from '../../application/LegendStudioPluginManager.js'; test( integrationTest('Failed to accept SDLC Terms of Service will show alert'), diff --git a/packages/legend-studio/src/components/editor/ActivityBar.tsx b/packages/legend-studio/src/components/editor/ActivityBar.tsx index b8cb4e49161..009a225fc9b 100644 --- a/packages/legend-studio/src/components/editor/ActivityBar.tsx +++ b/packages/legend-studio/src/components/editor/ActivityBar.tsx @@ -15,8 +15,8 @@ */ import { observer } from 'mobx-react-lite'; -import { ACTIVITY_MODE } from '../../stores/EditorConfig'; -import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID'; +import { ACTIVITY_MODE } from '../../stores/EditorConfig.js'; +import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js'; import { CheckIcon, clsx, @@ -37,15 +37,15 @@ import { MenuIcon, MenuContentDivider, } from '@finos/legend-art'; -import { useEditorStore } from './EditorStoreProvider'; +import { useEditorStore } from './EditorStoreProvider.js'; import { forwardRef, useState } from 'react'; import { useApplicationStore, VIRTUAL_ASSISTANT_TAB, } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; -import { LegendStudioAppInfo } from '../LegendStudioAppInfo'; -import { generateSetupRoute } from '../../stores/LegendStudioRouter'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; +import { LegendStudioAppInfo } from '../LegendStudioAppInfo.js'; +import { generateSetupRoute } from '../../stores/LegendStudioRouter.js'; const SettingsMenu = observer( forwardRef(function SettingsMenu(props, ref) { diff --git a/packages/legend-studio/src/components/editor/Editor.tsx b/packages/legend-studio/src/components/editor/Editor.tsx index 1a8344baf35..5f99469278e 100644 --- a/packages/legend-studio/src/components/editor/Editor.tsx +++ b/packages/legend-studio/src/components/editor/Editor.tsx @@ -31,22 +31,22 @@ import { ResizablePanelSplitterLine, useStateWithCallback, } from '@finos/legend-art'; -import { AuxiliaryPanel } from './aux-panel/AuxiliaryPanel'; -import { SideBar } from './side-bar/SideBar'; -import { EditPanel, EditPanelSplashScreen } from './edit-panel/EditPanel'; +import { AuxiliaryPanel } from './aux-panel/AuxiliaryPanel.js'; +import { SideBar } from './side-bar/SideBar.js'; +import { EditPanel, EditPanelSplashScreen } from './edit-panel/EditPanel.js'; import { GlobalHotKeys } from 'react-hotkeys'; -import { GrammarTextEditor } from './edit-panel/GrammarTextEditor'; -import { StatusBar } from './StatusBar'; -import { ActivityBar } from './ActivityBar'; +import { GrammarTextEditor } from './edit-panel/GrammarTextEditor.js'; +import { StatusBar } from './StatusBar.js'; +import { ActivityBar } from './ActivityBar.js'; import { useParams, Prompt } from 'react-router-dom'; import type { EditorPathParams, GroupEditorPathParams, -} from '../../stores/LegendStudioRouter'; -import { ProjectSearchCommand } from '../editor/command-center/ProjectSearchCommand'; +} from '../../stores/LegendStudioRouter.js'; +import { ProjectSearchCommand } from '../editor/command-center/ProjectSearchCommand.js'; import { isNonNullable } from '@finos/legend-shared'; import { flowResult } from 'mobx'; -import { EditorStoreProvider, useEditorStore } from './EditorStoreProvider'; +import { EditorStoreProvider, useEditorStore } from './EditorStoreProvider.js'; import { ActionAlertType, ActionAlertActionType, @@ -54,8 +54,8 @@ import { useApplicationNavigationContext, } from '@finos/legend-application'; import { WorkspaceType } from '@finos/legend-server-sdlc'; -import { WorkspaceSyncConflictResolver } from './side-bar/WorkspaceSyncConflictResolver'; -import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../stores/LegendStudioApplicationNavigationContext'; +import { WorkspaceSyncConflictResolver } from './side-bar/WorkspaceSyncConflictResolver.js'; +import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../stores/LegendStudioApplicationNavigationContext.js'; export const EditorInner = observer(() => { const params = useParams(); diff --git a/packages/legend-studio/src/components/editor/EditorStoreProvider.tsx b/packages/legend-studio/src/components/editor/EditorStoreProvider.tsx index f5a40662067..8922d364126 100644 --- a/packages/legend-studio/src/components/editor/EditorStoreProvider.tsx +++ b/packages/legend-studio/src/components/editor/EditorStoreProvider.tsx @@ -16,14 +16,14 @@ import { createContext, useContext } from 'react'; import { useLocalObservable } from 'mobx-react-lite'; -import { EditorStore } from '../../stores/EditorStore'; +import { EditorStore } from '../../stores/EditorStore.js'; import { useApplicationStore } from '@finos/legend-application'; import { guaranteeNonNullable } from '@finos/legend-shared'; import { useSDLCServerClient } from '@finos/legend-server-sdlc'; import { useDepotServerClient } from '@finos/legend-server-depot'; -import { useLegendStudioStore } from '../LegendStudioStoreProvider'; +import { useLegendStudioStore } from '../LegendStudioStoreProvider.js'; import { useGraphManagerState } from '@finos/legend-graph'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; const EditorStoreContext = createContext(undefined); diff --git a/packages/legend-studio/src/components/editor/StatusBar.tsx b/packages/legend-studio/src/components/editor/StatusBar.tsx index cdb612eef3d..22f95508257 100644 --- a/packages/legend-studio/src/components/editor/StatusBar.tsx +++ b/packages/legend-studio/src/components/editor/StatusBar.tsx @@ -28,17 +28,17 @@ import { CloudUploadIcon, AssistantIcon, } from '@finos/legend-art'; -import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID'; -import { ACTIVITY_MODE } from '../../stores/EditorConfig'; +import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js'; +import { ACTIVITY_MODE } from '../../stores/EditorConfig.js'; import { generateSetupRoute, type EditorPathParams, type GroupEditorPathParams, -} from '../../stores/LegendStudioRouter'; +} from '../../stores/LegendStudioRouter.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from './EditorStoreProvider'; +import { useEditorStore } from './EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; import { WorkspaceType } from '@finos/legend-server-sdlc'; export const StatusBar = observer((props: { actionsDisabled: boolean }) => { diff --git a/packages/legend-studio/src/components/editor/aux-panel/AuxiliaryPanel.tsx b/packages/legend-studio/src/components/editor/aux-panel/AuxiliaryPanel.tsx index 19391365405..e320149d1e3 100644 --- a/packages/legend-studio/src/components/editor/aux-panel/AuxiliaryPanel.tsx +++ b/packages/legend-studio/src/components/editor/aux-panel/AuxiliaryPanel.tsx @@ -17,11 +17,11 @@ import { useEffect } from 'react'; import { observer } from 'mobx-react-lite'; import { clsx, ChevronUpIcon, ChevronDownIcon, XIcon } from '@finos/legend-art'; -import { Console } from './Console'; -import { AUX_PANEL_MODE } from '../../../stores/EditorConfig'; +import { Console } from './Console.js'; +import { AUX_PANEL_MODE } from '../../../stores/EditorConfig.js'; import { isNonNullable } from '@finos/legend-shared'; -import { DevTool } from './DevTool'; -import { useEditorStore } from '../EditorStoreProvider'; +import { DevTool } from './DevTool.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; export const AuxiliaryPanel = observer(() => { const editorStore = useEditorStore(); diff --git a/packages/legend-studio/src/components/editor/aux-panel/DevTool.tsx b/packages/legend-studio/src/components/editor/aux-panel/DevTool.tsx index 1ff5bdea400..28c05a4a925 100644 --- a/packages/legend-studio/src/components/editor/aux-panel/DevTool.tsx +++ b/packages/legend-studio/src/components/editor/aux-panel/DevTool.tsx @@ -17,7 +17,7 @@ import { observer } from 'mobx-react-lite'; import { clsx, CheckSquareIcon, SquareIcon } from '@finos/legend-art'; import { isValidUrl } from '@finos/legend-shared'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { observe_TEMPORARY__AbstractEngineConfig } from '@finos/legend-graph'; export const DevTool = observer(() => { diff --git a/packages/legend-studio/src/components/editor/command-center/ProjectSearchCommand.tsx b/packages/legend-studio/src/components/editor/command-center/ProjectSearchCommand.tsx index 16af1e48dbf..ec9368dc84b 100644 --- a/packages/legend-studio/src/components/editor/command-center/ProjectSearchCommand.tsx +++ b/packages/legend-studio/src/components/editor/command-center/ProjectSearchCommand.tsx @@ -26,13 +26,13 @@ import { MoreHorizontalIcon, CaretDownIcon, } from '@finos/legend-art'; -import { getElementTypeIcon } from '../../shared/ElementIconUtils'; +import { getElementTypeIcon } from '../../shared/ElementIconUtils.js'; import type { PackageableElement } from '@finos/legend-graph'; import { type PackageableElementOption, buildElementOption, -} from '../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../EditorStoreProvider'; +} from '../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; export const ProjectSearchCommand = observer(() => { const editorStore = useEditorStore(); diff --git a/packages/legend-studio/src/components/editor/edit-panel/EditPanel.tsx b/packages/legend-studio/src/components/editor/edit-panel/EditPanel.tsx index 40cc644ca9b..6dfc3b264f5 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/EditPanel.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/EditPanel.tsx @@ -26,50 +26,50 @@ import { PlusIcon, ArrowsAltHIcon, } from '@finos/legend-art'; -import { MappingEditor } from './mapping-editor/MappingEditor'; -import { UMLEditor } from './uml-editor/UMLEditor'; -import { MappingEditorState } from '../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import { UMLEditorState } from '../../../stores/editor-state/element-editor-state/UMLEditorState'; -import { ElementEditorState } from '../../../stores/editor-state/element-editor-state/ElementEditorState'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; -import { ELEMENT_NATIVE_VIEW_MODE } from '../../../stores/EditorConfig'; +import { MappingEditor } from './mapping-editor/MappingEditor.js'; +import { UMLEditor } from './uml-editor/UMLEditor.js'; +import { MappingEditorState } from '../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import { UMLEditorState } from '../../../stores/editor-state/element-editor-state/UMLEditorState.js'; +import { ElementEditorState } from '../../../stores/editor-state/element-editor-state/ElementEditorState.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; +import { ELEMENT_NATIVE_VIEW_MODE } from '../../../stores/EditorConfig.js'; import { useResizeDetector } from 'react-resize-detector'; -import type { EditorState } from '../../../stores/editor-state/EditorState'; +import type { EditorState } from '../../../stores/editor-state/EditorState.js'; import { DIFF_VIEW_MODE, EntityDiffViewState, -} from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { EntityDiffView } from '../../editor/edit-panel/diff-editor/EntityDiffView'; -import { ModelLoader } from '../../editor/edit-panel/ModelLoader'; -import { ModelLoaderState } from '../../../stores/editor-state/ModelLoaderState'; -import { FunctionEditorState } from '../../../stores/editor-state/element-editor-state/FunctionEditorState'; -import { ServiceEditorState } from '../../../stores/editor-state/element-editor-state/service/ServiceEditorState'; -import { ProjectConfigurationEditorState } from '../../../stores/editor-state/ProjectConfigurationEditorState'; -import { ProjectConfigurationEditor } from '../../editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor'; -import { ElementGenerationEditor } from './element-generation-editor/ElementGenerationEditor'; -import { FunctionEditor } from './FunctionEditor'; -import { ElementNativeView } from './element-generation-editor/ElementNativeView'; -import { ServiceEditor } from './service-editor/ServiceEditor'; -import { PackageableRuntimeEditor } from './RuntimeEditor'; -import { PackageableRuntimeEditorState } from '../../../stores/editor-state/element-editor-state/RuntimeEditorState'; -import { PackageableConnectionEditorState } from '../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; -import { PackageableConnectionEditor } from './connection-editor/ConnectionEditor'; -import { FileGenerationEditorState } from '../../../stores/editor-state/element-editor-state/FileGenerationEditorState'; -import { FileGenerationEditor } from './element-generation-editor/FileGenerationEditor'; +} from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { EntityDiffView } from '../../editor/edit-panel/diff-editor/EntityDiffView.js'; +import { ModelLoader } from '../../editor/edit-panel/ModelLoader.js'; +import { ModelLoaderState } from '../../../stores/editor-state/ModelLoaderState.js'; +import { FunctionEditorState } from '../../../stores/editor-state/element-editor-state/FunctionEditorState.js'; +import { ServiceEditorState } from '../../../stores/editor-state/element-editor-state/service/ServiceEditorState.js'; +import { ProjectConfigurationEditorState } from '../../../stores/editor-state/ProjectConfigurationEditorState.js'; +import { ProjectConfigurationEditor } from '../../editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js'; +import { ElementGenerationEditor } from './element-generation-editor/ElementGenerationEditor.js'; +import { FunctionEditor } from './FunctionEditor.js'; +import { ElementNativeView } from './element-generation-editor/ElementNativeView.js'; +import { ServiceEditor } from './service-editor/ServiceEditor.js'; +import { PackageableRuntimeEditor } from './RuntimeEditor.js'; +import { PackageableRuntimeEditorState } from '../../../stores/editor-state/element-editor-state/RuntimeEditorState.js'; +import { PackageableConnectionEditorState } from '../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; +import { PackageableConnectionEditor } from './connection-editor/ConnectionEditor.js'; +import { FileGenerationEditorState } from '../../../stores/editor-state/element-editor-state/FileGenerationEditorState.js'; +import { FileGenerationEditor } from './element-generation-editor/FileGenerationEditor.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import { EntityChangeConflictEditor } from './diff-editor/EntityChangeConflictEditor'; -import { UnsupportedElementEditorState } from '../../../stores/editor-state/UnsupportedElementEditorState'; -import { UnsupportedElementEditor } from './UnsupportedElementEditor'; -import { getPrettyLabelForRevision } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState'; -import { GenerationSpecificationEditorState } from '../../../stores/editor-state/GenerationSpecificationEditorState'; -import { GenerationSpecificationEditor } from './GenerationSpecificationEditor'; -import { FileGenerationViewerState } from '../../../stores/editor-state/FileGenerationViewerState'; -import { FileGenerationViewer } from '../../editor/edit-panel/FileGenerationViewer'; -import type { DSL_LegendStudioPlugin_Extension } from '../../../stores/LegendStudioPlugin'; -import { useEditorStore } from '../EditorStoreProvider'; -import { PackageableDataEditorState } from '../../../stores/editor-state/element-editor-state/data/DataEditorState'; -import { DataElementEditor } from './data-editor/DataElementEditor'; +import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import { EntityChangeConflictEditor } from './diff-editor/EntityChangeConflictEditor.js'; +import { UnsupportedElementEditorState } from '../../../stores/editor-state/UnsupportedElementEditorState.js'; +import { UnsupportedElementEditor } from './UnsupportedElementEditor.js'; +import { getPrettyLabelForRevision } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; +import { GenerationSpecificationEditorState } from '../../../stores/editor-state/GenerationSpecificationEditorState.js'; +import { GenerationSpecificationEditor } from './GenerationSpecificationEditor.js'; +import { FileGenerationViewerState } from '../../../stores/editor-state/FileGenerationViewerState.js'; +import { FileGenerationViewer } from '../../editor/edit-panel/FileGenerationViewer.js'; +import type { DSL_LegendStudioPlugin_Extension } from '../../../stores/LegendStudioPlugin.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; +import { PackageableDataEditorState } from '../../../stores/editor-state/element-editor-state/data/DataEditorState.js'; +import { DataElementEditor } from './data-editor/DataElementEditor.js'; export const ViewerEditPanelSplashScreen: React.FC = () => { const commandListWidth = 300; diff --git a/packages/legend-studio/src/components/editor/edit-panel/FileGenerationViewer.tsx b/packages/legend-studio/src/components/editor/edit-panel/FileGenerationViewer.tsx index 326b86db4d5..9604bdeb5aa 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/FileGenerationViewer.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/FileGenerationViewer.tsx @@ -19,15 +19,15 @@ import { FileGenerationViewerState, getTextContent, getEditorLanguageFromFormat, -} from '../../../stores/editor-state/FileGenerationViewerState'; +} from '../../../stores/editor-state/FileGenerationViewerState.js'; import { LockIcon, FireIcon, StickArrowCircleRightIcon, } from '@finos/legend-art'; import type { FileGenerationSpecification } from '@finos/legend-graph'; -import { useEditorStore } from '../EditorStoreProvider'; -import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor'; +import { useEditorStore } from '../EditorStoreProvider.js'; +import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor.js'; export const FileGenerationViewer = observer(() => { const editorStore = useEditorStore(); diff --git a/packages/legend-studio/src/components/editor/edit-panel/FunctionEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/FunctionEditor.tsx index e20d65116d7..7a40b73d963 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/FunctionEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/FunctionEditor.tsx @@ -19,12 +19,12 @@ import { observer } from 'mobx-react-lite'; import { FunctionEditorState, FUNCTION_SPEC_TAB, -} from '../../../stores/editor-state/element-editor-state/FunctionEditorState'; +} from '../../../stores/editor-state/element-editor-state/FunctionEditorState.js'; import { CORE_DND_TYPE, type UMLEditorElementDropTarget, type ElementDragSource, -} from '../../../stores/shared/DnDUtil'; +} from '../../../stores/shared/DnDUtil.js'; import { prettyCONSTName, UnsupportedOperationError, @@ -39,12 +39,12 @@ import { TimesIcon, ArrowCircleRightIcon, } from '@finos/legend-art'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; -import { StereotypeSelector } from './uml-editor/StereotypeSelector'; -import { TaggedValueEditor } from './uml-editor/TaggedValueEditor'; -import type { PackageableElementOption } from '../../../stores/shared/PackageableElementOptionUtil'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; +import { StereotypeSelector } from './uml-editor/StereotypeSelector.js'; +import { TaggedValueEditor } from './uml-editor/TaggedValueEditor.js'; +import type { PackageableElementOption } from '../../../stores/shared/PackageableElementOptionUtil.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { type ConcreteFunctionDefinition, type StereotypeReference, @@ -67,8 +67,8 @@ import { stub_RawVariableExpression, } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; -import { StudioLambdaEditor } from '../../shared/StudioLambdaEditor'; -import { getElementIcon } from '../../shared/ElementIconUtils'; +import { StudioLambdaEditor } from '../../shared/StudioLambdaEditor.js'; +import { getElementIcon } from '../../shared/ElementIconUtils.js'; import { function_setReturnType, function_setReturnMultiplicity, @@ -78,12 +78,12 @@ import { annotatedElement_addStereotype, annotatedElement_deleteStereotype, annotatedElement_deleteTaggedValue, -} from '../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../stores/graphModifier/DomainGraphModifierHelper.js'; import { rawVariableExpression_setMultiplicity, rawVariableExpression_setName, rawVariableExpression_setType, -} from '../../../stores/graphModifier/ValueSpecificationGraphModifierHelper'; +} from '../../../stores/graphModifier/ValueSpecificationGraphModifierHelper.js'; enum FUNCTION_PARAMETER_TYPE { CLASS = 'CLASS', diff --git a/packages/legend-studio/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx index f3150e077f2..778e7aea2de 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/GenerationSpecificationEditor.tsx @@ -21,7 +21,7 @@ import { type GenerationSpecNodeDragSource, type GenerationSpecNodeDropTarget, type GenerationTreeNodeState, -} from '../../../stores/editor-state/GenerationSpecificationEditorState'; +} from '../../../stores/editor-state/GenerationSpecificationEditorState.js'; import { getEmptyImage } from 'react-dnd-html5-backend'; import { type DropTargetMonitor, @@ -30,7 +30,7 @@ import { useDrag, useDrop, } from 'react-dnd'; -import { getElementIcon } from '../../shared/ElementIconUtils'; +import { getElementIcon } from '../../shared/ElementIconUtils.js'; import { clsx, BlankPanelContent, @@ -50,15 +50,15 @@ import { CORE_DND_TYPE, type ElementDragSource, type FileGenerationSourceDropTarget, -} from '../../../stores/shared/DnDUtil'; +} from '../../../stores/shared/DnDUtil.js'; import { type PackageableElementOption, buildElementOption, -} from '../../../stores/shared/PackageableElementOptionUtil'; +} from '../../../stores/shared/PackageableElementOptionUtil.js'; import { getNullableFirstElement } from '@finos/legend-shared'; -import type { DSLGenerationSpecification_LegendStudioPlugin_Extension } from '../../../stores/DSLGenerationSpecification_LegendStudioPlugin_Extension'; +import type { DSLGenerationSpecification_LegendStudioPlugin_Extension } from '../../../stores/DSLGenerationSpecification_LegendStudioPlugin_Extension.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { type PackageableElement, type PackageableElementReference, @@ -68,12 +68,12 @@ import { GenerationTreeNode, } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; -import { packageableElementReference_setValue } from '../../../stores/graphModifier/DomainGraphModifierHelper'; +import { packageableElementReference_setValue } from '../../../stores/graphModifier/DomainGraphModifierHelper.js'; import { generationSpecification_addFileGeneration, generationSpecification_deleteFileGeneration, generationSpecification_setId, -} from '../../../stores/graphModifier/DSLGeneration_GraphModifierHelper'; +} from '../../../stores/graphModifier/DSLGeneration_GraphModifierHelper.js'; const ModelGenerationDragLayer: React.FC = () => { const { itemType, item, isDragging, currentPosition } = useDragLayer( diff --git a/packages/legend-studio/src/components/editor/edit-panel/GrammarTextEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/GrammarTextEditor.tsx index 6b8d9837a6f..db3c0af6ec9 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/GrammarTextEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/GrammarTextEditor.tsx @@ -48,14 +48,14 @@ import { useResizeDetector } from 'react-resize-detector'; import { type ElementDragSource, CORE_DND_TYPE, -} from '../../../stores/shared/DnDUtil'; +} from '../../../stores/shared/DnDUtil.js'; import { type DropTargetMonitor, useDrop } from 'react-dnd'; import type { DSL_LegendStudioPlugin_Extension, PureGrammarTextSuggestion, -} from '../../../stores/LegendStudioPlugin'; +} from '../../../stores/LegendStudioPlugin.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { guaranteeNonNullable, hasWhiteSpace, @@ -67,8 +67,8 @@ import { PURE_ELEMENT_NAME, PURE_PARSER, } from '@finos/legend-graph'; -import type { EditorStore } from '../../../stores/EditorStore'; -import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../stores/LegendStudioDocumentation'; +import type { EditorStore } from '../../../stores/EditorStore.js'; +import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../../stores/LegendStudioDocumentation.js'; import { BLANK_CLASS_SNIPPET, CLASS_WITH_CONSTRAINT_SNIPPET, @@ -97,8 +97,8 @@ import { MAPPING_WITH_M2M_CLASS_MAPPING_SNIPPET, MAPPING_WITH_ENUMERATION_MAPPING_SNIPPET, MAPPING_WITH_RELATIONAL_CLASS_MAPPING_SNIPPET, -} from '../../../stores/LegendStudioCodeSnippets'; -import type { DSLData_LegendStudioPlugin_Extension } from '../../../stores/DSLData_LegendStudioPlugin_Extension'; +} from '../../../stores/LegendStudioCodeSnippets.js'; +import type { DSLData_LegendStudioPlugin_Extension } from '../../../stores/DSLData_LegendStudioPlugin_Extension.js'; const getSectionParserNameFromLineText = ( lineText: string, diff --git a/packages/legend-studio/src/components/editor/edit-panel/ModelLoader.tsx b/packages/legend-studio/src/components/editor/edit-panel/ModelLoader.tsx index b4ec6f00b66..82a48c72e54 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/ModelLoader.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/ModelLoader.tsx @@ -18,7 +18,7 @@ import { observer } from 'mobx-react-lite'; import { ModelLoaderState, MODEL_UPDATER_INPUT_TYPE, -} from '../../../stores/editor-state/ModelLoaderState'; +} from '../../../stores/editor-state/ModelLoaderState.js'; import { prettyCONSTName } from '@finos/legend-shared'; import { DropdownMenu, @@ -30,15 +30,15 @@ import { EmptySquareIcon, } from '@finos/legend-art'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { ActionAlertType, ActionAlertActionType, useApplicationStore, EDITOR_LANGUAGE, } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor'; -import type { ModelLoaderExtensionConfiguration } from '../../../stores/LegendStudioPlugin'; +import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor.js'; +import type { ModelLoaderExtensionConfiguration } from '../../../stores/LegendStudioPlugin.js'; export const ModelLoader = observer(() => { const editorStore = useEditorStore(); diff --git a/packages/legend-studio/src/components/editor/edit-panel/RuntimeEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/RuntimeEditor.tsx index 7cacb2563ee..a070786c1a4 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/RuntimeEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/RuntimeEditor.tsx @@ -23,8 +23,8 @@ import { IdentifiedConnectionsEditorTabState, IdentifiedConnectionsPerClassEditorTabState, IdentifiedConnectionsPerStoreEditorTabState, -} from '../../../stores/editor-state/element-editor-state/RuntimeEditorState'; -import type { EditorStore } from '../../../stores/EditorStore'; +} from '../../../stores/editor-state/element-editor-state/RuntimeEditorState.js'; +import type { EditorStore } from '../../../stores/EditorStore.js'; import { clsx, Dialog, @@ -54,26 +54,26 @@ import { CogIcon, CaretRightIcon, } from '@finos/legend-art'; -import { getElementIcon } from '../../shared/ElementIconUtils'; -import type { RuntimeExplorerTreeNodeData } from '../../../stores/shared/TreeUtil'; -import { ConnectionEditor } from './connection-editor/ConnectionEditor'; +import { getElementIcon } from '../../shared/ElementIconUtils.js'; +import type { RuntimeExplorerTreeNodeData } from '../../../stores/shared/TreeUtil.js'; +import { ConnectionEditor } from './connection-editor/ConnectionEditor.js'; import { type UMLEditorElementDropTarget, CORE_DND_TYPE, ElementDragSource, -} from '../../../stores/shared/DnDUtil'; +} from '../../../stores/shared/DnDUtil.js'; import { useDrop } from 'react-dnd'; import { assertErrorThrown, guaranteeType, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { ConnectionEditorState } from '../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; +import type { ConnectionEditorState } from '../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; import { buildElementOption, type PackageableElementOption, -} from '../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../EditorStoreProvider'; +} from '../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { type PackageableElementReference, Connection, @@ -95,11 +95,11 @@ import { generateIdentifiedConnectionId, } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; -import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../stores/DSLMapping_LegendStudioPlugin_Extension'; +import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../stores/DSLMapping_LegendStudioPlugin_Extension.js'; import { runtime_addIdentifiedConnection, runtime_deleteIdentifiedConnection, -} from '../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; const getConnectionTooltipText = ( connection: Connection, diff --git a/packages/legend-studio/src/components/editor/edit-panel/UnsupportedElementEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/UnsupportedElementEditor.tsx index 4340d1cc1d2..0688bc7e85d 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/UnsupportedElementEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/UnsupportedElementEditor.tsx @@ -16,9 +16,9 @@ import { observer } from 'mobx-react-lite'; import { BlankPanelContent, LockIcon } from '@finos/legend-art'; -import { UnsupportedElementEditorState } from '../../../stores/editor-state/UnsupportedElementEditorState'; +import { UnsupportedElementEditorState } from '../../../stores/editor-state/UnsupportedElementEditorState.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; export const UnsupportedEditorPanel = observer( diff --git a/packages/legend-studio/src/components/editor/edit-panel/__tests__/EditPanel.test.tsx b/packages/legend-studio/src/components/editor/edit-panel/__tests__/EditPanel.test.tsx index f7c7bc13ab4..4d19a3fe437 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/__tests__/EditPanel.test.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/__tests__/EditPanel.test.tsx @@ -30,8 +30,8 @@ import { TEST__openElementFromExplorerTree, TEST__provideMockedEditorStore, TEST__setUpEditorWithDefaultSDLCData, -} from '../../../EditorComponentTestUtils'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; +} from '../../../EditorComponentTestUtils.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; let renderResult: RenderResult; diff --git a/packages/legend-studio/src/components/editor/edit-panel/__tests__/ProjectConfigurationEditor.test.tsx b/packages/legend-studio/src/components/editor/edit-panel/__tests__/ProjectConfigurationEditor.test.tsx index d778c9a7a15..937b57c03e5 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/__tests__/ProjectConfigurationEditor.test.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/__tests__/ProjectConfigurationEditor.test.tsx @@ -26,9 +26,9 @@ import { integrationTest } from '@finos/legend-shared'; import { TEST__provideMockedEditorStore, TEST__setUpEditorWithDefaultSDLCData, -} from '../../../EditorComponentTestUtils'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import type { EditorStore } from '../../../../stores/EditorStore'; +} from '../../../EditorComponentTestUtils.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import type { EditorStore } from '../../../../stores/EditorStore.js'; import type { ProjectDependency } from '@finos/legend-server-sdlc'; let renderResult: RenderResult; diff --git a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx index 3237db0ca03..2706adb4497 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/ConnectionEditor.tsx @@ -15,24 +15,24 @@ */ import { observer } from 'mobx-react-lite'; -import { FlatDataConnectionEditor } from './FlatDataConnectionEditor'; -import { RelationalDatabaseConnectionEditor } from './RelationalDatabaseConnectionEditor'; +import { FlatDataConnectionEditor } from './FlatDataConnectionEditor.js'; +import { RelationalDatabaseConnectionEditor } from './RelationalDatabaseConnectionEditor.js'; import { type ConnectionEditorState, RelationalDatabaseConnectionValueState, JsonModelConnectionValueState, FlatDataConnectionValueState, PackageableConnectionEditorState, -} from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; -import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor'; +} from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; +import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor.js'; import type { Class } from '@finos/legend-graph'; import { CustomSelectorInput, LockIcon } from '@finos/legend-art'; -import { useEditorStore } from '../../EditorStoreProvider'; -import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioPlugin_Extension'; +import { useEditorStore } from '../../EditorStoreProvider.js'; +import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioPlugin_Extension.js'; import { modelConnection_setClass, modelConnection_setUrl, -} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; const ModelConnectionEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx index 8b03a9614f8..c5b1434a16e 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx @@ -42,7 +42,7 @@ import { ColumnDatabaseBuilderTreeNodeData, SchemaDatabaseBuilderTreeNodeData, TableDatabaseBuilderTreeNodeData, -} from '../../../../stores/editor-state/element-editor-state/connection/DatabaseBuilderState'; +} from '../../../../stores/editor-state/element-editor-state/connection/DatabaseBuilderState.js'; import { capitalize } from '@finos/legend-shared'; import { EDITOR_LANGUAGE, @@ -51,9 +51,9 @@ import { import { generateColumnTypeLabel, renderColumnTypeIcon, -} from '../../../../stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper'; +} from '../../../../stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper.js'; import { flowResult } from 'mobx'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; const getNodeIcon = (node: DatabaseBuilderTreeNodeData): React.ReactNode => { if (node instanceof SchemaDatabaseBuilderTreeNodeData) { diff --git a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.tsx index c4c7336a57b..c865801e1a2 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/FlatDataConnectionEditor.tsx @@ -15,8 +15,8 @@ */ import { observer } from 'mobx-react-lite'; -import type { FlatDataConnectionValueState } from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; -import { flatDataConnection_setUrl } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper'; +import type { FlatDataConnectionValueState } from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; +import { flatDataConnection_setUrl } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper.js'; export const FlatDataConnectionEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx index 54400cdbf16..f9151353dbc 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx @@ -20,7 +20,7 @@ import { CORE_AUTHENTICATION_STRATEGY_TYPE, CORE_DATASOURCE_SPEC_TYPE, RELATIONAL_DATABASE_TAB_TYPE, -} from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; +} from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; import { useState } from 'react'; import { ResizablePanelGroup, @@ -58,14 +58,14 @@ import { runInAction } from 'mobx'; import { buildElementOption, type PackageableElementOption, -} from '../../../../stores/shared/PackageableElementOptionUtil'; -import type { LegendStudioPlugin } from '../../../../stores/LegendStudioPlugin'; -import type { StoreRelational_LegendStudioPlugin_Extension } from '../../../../stores/StoreRelational_LegendStudioPlugin_Extension'; -import { DatabaseBuilder } from './DatabaseBuilder'; -import { useEditorStore } from '../../EditorStoreProvider'; +} from '../../../../stores/shared/PackageableElementOptionUtil.js'; +import type { LegendStudioPlugin } from '../../../../stores/LegendStudioPlugin.js'; +import type { StoreRelational_LegendStudioPlugin_Extension } from '../../../../stores/StoreRelational_LegendStudioPlugin_Extension.js'; +import { DatabaseBuilder } from './DatabaseBuilder.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { EDITOR_LANGUAGE } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import { connection_setStore } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import { connection_setStore } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; import { apiTokenAuthenticationStrategy_setApiToken, bigQueryDatasourceSpecification_setDefaultDataset, @@ -114,7 +114,7 @@ import { usernamePasswordAuthenticationStrategy_setUserNameVaultReference, gcpWorkloadIdentityFederationAuthenticationStrategy_setServiceAccountEmail, gcpWorkloadIdentityFederationAuthenticationStrategy_setAdditionalGcpScopes, -} from '../../../../stores/graphModifier/StoreRelational_GraphModifierHelper'; +} from '../../../../stores/graphModifier/StoreRelational_GraphModifierHelper.js'; /** * NOTE: this is a WIP we did to quickly assemble a modular UI for relational database connection editor diff --git a/packages/legend-studio/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx index e359498aa70..6ef1f14dd6d 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx @@ -15,13 +15,13 @@ */ import { observer } from 'mobx-react-lite'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { DATA_TAB_TYPE, type EmbeddedDataEditorState, ExternalFormatDataState, PackageableDataEditorState, -} from '../../../../stores/editor-state/element-editor-state/data/DataEditorState'; +} from '../../../../stores/editor-state/element-editor-state/data/DataEditorState.js'; import { CaretDownIcon, clsx, @@ -47,24 +47,24 @@ import { annotatedElement_addTaggedValue, annotatedElement_deleteStereotype, annotatedElement_deleteTaggedValue, -} from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; import { useDrop } from 'react-dnd'; import { CORE_DND_TYPE, type UMLEditorElementDropTarget, type ElementDragSource, -} from '../../../../stores/shared/DnDUtil'; -import { TaggedValueEditor } from '../uml-editor/TaggedValueEditor'; +} from '../../../../stores/shared/DnDUtil.js'; +import { TaggedValueEditor } from '../uml-editor/TaggedValueEditor.js'; import { useCallback, useEffect, useRef } from 'react'; -import { StereotypeSelector } from '../uml-editor/StereotypeSelector'; -import { UnsupportedEditorPanel } from '../UnsupportedElementEditor'; +import { StereotypeSelector } from '../uml-editor/StereotypeSelector.js'; +import { UnsupportedEditorPanel } from '../UnsupportedElementEditor.js'; import { externalFormatData_setContentType, externalFormatData_setData, -} from '../../../../stores/graphModifier/DSLData_GraphModifierHelper'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import type { DSLData_LegendStudioPlugin_Extension } from '../../../../stores/DSLData_LegendStudioPlugin_Extension'; -import { getEditorLanguageFromFormat } from '../../../../stores/editor-state/FileGenerationViewerState'; +} from '../../../../stores/graphModifier/DSLData_GraphModifierHelper.js'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import type { DSLData_LegendStudioPlugin_Extension } from '../../../../stores/DSLData_LegendStudioPlugin_Extension.js'; +import { getEditorLanguageFromFormat } from '../../../../stores/editor-state/FileGenerationViewerState.js'; export const ExternalFormatDataEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx index e1b8b86bc46..bdaff94ca77 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx @@ -34,7 +34,7 @@ import { type MergeConflict, type EntityChangeConflictEditorState, ENTITY_CHANGE_CONFLICT_EDITOR_VIEW_MODE, -} from '../../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; +} from '../../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; import { IllegalStateError, shallowStringify, @@ -58,8 +58,8 @@ import { ArrowDownIcon, ArrowUpIcon, } from '@finos/legend-art'; -import { TextDiffView } from '../../../shared/DiffView'; -import { getPrettyLabelForRevision } from '../../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState'; +import { TextDiffView } from '../../../shared/DiffView.js'; +import { getPrettyLabelForRevision } from '../../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; import { flowResult } from 'mobx'; import type { EntityChangeConflict } from '@finos/legend-server-sdlc'; diff --git a/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx b/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx index bb991e53cde..d288f5d5943 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx @@ -19,13 +19,13 @@ import { observer } from 'mobx-react-lite'; import { type EntityDiffViewState, DIFF_VIEW_MODE, -} from '../../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { TextDiffView, JsonDiffView } from '../../../shared/DiffView'; +} from '../../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { TextDiffView, JsonDiffView } from '../../../shared/DiffView.js'; import { clsx, GoToFileIcon, CompareIcon } from '@finos/legend-art'; -import { getPrettyLabelForRevision } from '../../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState'; +import { getPrettyLabelForRevision } from '../../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; import { flowResult } from 'mobx'; import { type EntityDiff, EntityChangeType } from '@finos/legend-server-sdlc'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { useApplicationStore, EDITOR_LANGUAGE, diff --git a/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx index b3c841c6fd2..9dc6dd5a8dc 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementGenerationEditor.tsx @@ -21,13 +21,13 @@ import { resolvePackagePathAndElementName, Package, } from '@finos/legend-graph'; -import type { ElementFileGenerationState } from '../../../../stores/editor-state/element-editor-state/ElementFileGenerationState'; -import type { ElementEditorState } from '../../../../stores/editor-state/element-editor-state/ElementEditorState'; +import type { ElementFileGenerationState } from '../../../../stores/editor-state/element-editor-state/ElementFileGenerationState.js'; +import type { ElementEditorState } from '../../../../stores/editor-state/element-editor-state/ElementEditorState.js'; import { guaranteeType } from '@finos/legend-shared'; import { GenerationResultViewer, FileGenerationConfigurationEditor, -} from '../../../editor/edit-panel/element-generation-editor/FileGenerationEditor'; +} from '../../../editor/edit-panel/element-generation-editor/FileGenerationEditor.js'; import { flowResult } from 'mobx'; import { Dialog, @@ -37,7 +37,7 @@ import { ResizablePanelSplitterLine, ArrowCircleLeftIcon, } from '@finos/legend-art'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; const NewFileGenerationModal = observer( diff --git a/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx b/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx index 3b5f4db6093..9d27c3c1a83 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx @@ -16,14 +16,14 @@ import { useEffect } from 'react'; import { observer } from 'mobx-react-lite'; -import type { ElementEditorState } from '../../../../stores/editor-state/element-editor-state/ElementEditorState'; -import { ELEMENT_NATIVE_VIEW_MODE } from '../../../../stores/EditorConfig'; +import type { ElementEditorState } from '../../../../stores/editor-state/element-editor-state/ElementEditorState.js'; +import { ELEMENT_NATIVE_VIEW_MODE } from '../../../../stores/EditorConfig.js'; import { flowResult } from 'mobx'; import { useApplicationStore, EDITOR_LANGUAGE, } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; export const ElementNativeView = observer( (props: { currentElementState: ElementEditorState }) => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx index b0a44943c3a..fae17fdf353 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/element-generation-editor/FileGenerationEditor.tsx @@ -17,13 +17,13 @@ import { useState, useMemo, useCallback, Fragment } from 'react'; import { observer } from 'mobx-react-lite'; import { flowResult, runInAction } from 'mobx'; -import { getElementIcon } from '../../../shared/ElementIconUtils'; +import { getElementIcon } from '../../../shared/ElementIconUtils.js'; import { useDrop } from 'react-dnd'; import { getTextContent, getEditorLanguageFromFormat, -} from '../../../../stores/editor-state/FileGenerationViewerState'; -import { FileGenerationEditorState } from '../../../../stores/editor-state/element-editor-state/FileGenerationEditorState'; +} from '../../../../stores/editor-state/FileGenerationViewerState.js'; +import { FileGenerationEditorState } from '../../../../stores/editor-state/element-editor-state/FileGenerationEditorState.js'; import { type DebouncedFunc, UnsupportedOperationError, @@ -59,17 +59,17 @@ import { import { type FileGenerationSourceDropTarget, CORE_DND_TYPE, -} from '../../../../stores/shared/DnDUtil'; -import type { FileGenerationState } from '../../../../stores/editor-state/FileGenerationState'; -import type { ElementFileGenerationState } from '../../../../stores/editor-state/element-editor-state/ElementFileGenerationState'; +} from '../../../../stores/shared/DnDUtil.js'; +import type { FileGenerationState } from '../../../../stores/editor-state/FileGenerationState.js'; +import type { ElementFileGenerationState } from '../../../../stores/editor-state/element-editor-state/ElementFileGenerationState.js'; import { type GenerationTreeNodeData, GenerationDirectory, GenerationFile, getFileGenerationChildNodes, -} from '../../../../stores/shared/FileGenerationTreeUtil'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { useEditorStore } from '../../EditorStoreProvider'; +} from '../../../../stores/shared/FileGenerationTreeUtil.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type GenerationProperty, type PackageableElement, @@ -81,14 +81,14 @@ import { getNullableFileGenerationConfig, } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import type { DSLGenerationSpecification_LegendStudioPlugin_Extension } from '../../../../stores/DSLGenerationSpecification_LegendStudioPlugin_Extension'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import type { DSLGenerationSpecification_LegendStudioPlugin_Extension } from '../../../../stores/DSLGenerationSpecification_LegendStudioPlugin_Extension.js'; import { fileGeneration_addScopeElement, fileGeneration_changeScopeElement, fileGeneration_deleteScopeElement, fileGeneration_setGenerationOutputPath, -} from '../../../../stores/graphModifier/DSLGeneration_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLGeneration_GraphModifierHelper.js'; export const FileGenerationTreeNodeContainer: React.FC< TreeNodeContainerProps< diff --git a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx index 0b2555d0b56..fb19a0f8d97 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/BindingElementEditor.tsx @@ -34,7 +34,7 @@ import { import { BINDING_TAB_TYPE, BindingEditorState, -} from '../../../../stores/editor-state/element-editor-state/external-format/BindingEditorState'; +} from '../../../../stores/editor-state/element-editor-state/external-format/BindingEditorState.js'; import { PackageableElementExplicitReference, SchemaSet, @@ -43,13 +43,13 @@ import { } from '@finos/legend-graph'; import { useCallback, useRef } from 'react'; import { useDrop } from 'react-dnd'; -import { useEditorStore } from '../../EditorStoreProvider'; -import { getElementIcon } from '../../../shared/ElementIconUtils'; +import { useEditorStore } from '../../EditorStoreProvider.js'; +import { getElementIcon } from '../../../shared/ElementIconUtils.js'; import { CORE_DND_TYPE, type ElementDragSource, type UMLEditorElementDropTarget, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { externalFormat_Binding_setContentType, externalFormat_Binding_setSchemaId, @@ -58,7 +58,7 @@ import { externalFormat_modelUnit_addPackageableElementIncludes, externalFormat_modelUnit_deletePackageableElementExcludes, externalFormat_modelUnit_deletePackageableElementIncludes, -} from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper.js'; const BindingScopeEntryEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.tsx index bb1b16c0982..4d6a05a1bb3 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/ExternalFormatConnectionEditor.tsx @@ -21,10 +21,10 @@ import { type Binding, } from '@finos/legend-graph'; import { computed, makeObservable } from 'mobx'; -import { ConnectionValueState } from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; -import type { EditorStore } from '../../../../stores/EditorStore'; -import { NewConnectionValueDriver } from '../../../../stores/NewElementState'; -import { externalFormat_urlStream_setUrl } from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper'; +import { ConnectionValueState } from '../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; +import type { EditorStore } from '../../../../stores/EditorStore.js'; +import { NewConnectionValueDriver } from '../../../../stores/NewElementState.js'; +import { externalFormat_urlStream_setUrl } from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper.js'; export class ExternalFormatConnectionValueState extends ConnectionValueState { override connection: ExternalFormatConnection; diff --git a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.tsx b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.tsx index 611235a4bc5..a170c5208c9 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/NewSchemaSetDriver.tsx @@ -19,11 +19,11 @@ import { SchemaSet } from '@finos/legend-graph'; import { guaranteeNonNullable } from '@finos/legend-shared'; import { makeObservable, observable, action } from 'mobx'; import { observer } from 'mobx-react-lite'; -import { useEditorStore } from '../../EditorStoreProvider'; -import type { EditorStore } from '../../../../stores/EditorStore'; -import { externalFormat_schemaSet_setFormat } from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper'; -import { NewElementDriver } from '../../../../stores/NewElementState'; -import type { ExternalFormatTypeOption } from '../../../../stores/editor-state/ExternalFormatState'; +import { useEditorStore } from '../../EditorStoreProvider.js'; +import type { EditorStore } from '../../../../stores/EditorStore.js'; +import { externalFormat_schemaSet_setFormat } from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper.js'; +import { NewElementDriver } from '../../../../stores/NewElementState.js'; +import type { ExternalFormatTypeOption } from '../../../../stores/editor-state/ExternalFormatState.js'; export class NewSchemaSetDriver extends NewElementDriver { formatOption?: ExternalFormatTypeOption | undefined; diff --git a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx index f547eb628fc..774f961ea06 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/external-format-editor/SchemaSetElementEditor.tsx @@ -42,24 +42,24 @@ import { useMemo } from 'react'; import { SchemaSetEditorState, SCHEMA_SET_TAB_TYPE, -} from '../../../../stores/editor-state/element-editor-state/external-format/SchemaSetEditorState'; +} from '../../../../stores/editor-state/element-editor-state/external-format/SchemaSetEditorState.js'; import { EDITOR_LANGUAGE } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import { getEditorLanguageFromFormat } from '../../../../stores/editor-state/FileGenerationViewerState'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import { getEditorLanguageFromFormat } from '../../../../stores/editor-state/FileGenerationViewerState.js'; import { debounce, guaranteeNonNullable, prettyCONSTName, } from '@finos/legend-shared'; -import { GenerationPropertyEditor } from '../element-generation-editor/FileGenerationEditor'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { GenerationPropertyEditor } from '../element-generation-editor/FileGenerationEditor.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { externalFormat_schemaSet_addSchema, externalFormat_schemaSet_deleteSchema, externalFormat_schema_setContent, externalFormat_schema_setId, externalFormat_schema_setLocation, -} from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLExternalFormat_GraphModifierHelper.js'; const SchemaLoader = observer( (props: { schemaSetEditorState: SchemaSetEditorState }) => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx index 61c612f7f57..c4e894d5a29 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/ClassMappingEditor.tsx @@ -15,8 +15,8 @@ */ import { observer } from 'mobx-react-lite'; -import { InstanceSetImplementationEditor } from './InstanceSetImplementationEditor'; -import { OperationSetImplementationEditor } from './OperationSetImplementationEditor'; +import { InstanceSetImplementationEditor } from './InstanceSetImplementationEditor.js'; +import { OperationSetImplementationEditor } from './OperationSetImplementationEditor.js'; import { clsx, CustomSelectorInput, @@ -24,9 +24,9 @@ import { EmptySquareIcon, CheckSquareIcon, } from '@finos/legend-art'; -import { getElementTypeIcon } from '../../../shared/ElementIconUtils'; -import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { getElementTypeIcon } from '../../../shared/ElementIconUtils.js'; +import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type SetImplementation, type PureInstanceSetImplementation, @@ -42,8 +42,8 @@ import { operationMapping_setOperation, operationMapping_setParameters, setImpl_setRoot, -} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; -import { SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelUtil'; +} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; +import { SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelUtil.js'; export const OperatorSelector = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx index 809e022b439..b64ff0dcb76 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/EnumerationMappingEditor.tsx @@ -31,8 +31,8 @@ import { TimesIcon, PlusIcon, } from '@finos/legend-art'; -import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import { TypeTree } from '../../../shared/TypeTree'; +import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import { TypeTree } from '../../../shared/TypeTree.js'; import { useDrop } from 'react-dnd'; import { type TransformDropTarget, @@ -40,18 +40,18 @@ import { type MappingElementSourceDropTarget, CORE_DND_TYPE, TypeDragSource, -} from '../../../../stores/shared/DnDUtil'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; +} from '../../../../stores/shared/DnDUtil.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; import { noop } from '@finos/legend-shared'; import { MappingElementDecorator, MappingElementDecorationCleaner, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js'; import { buildElementOption, type PackageableElementOption, -} from '../../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../../EditorStoreProvider'; +} from '../../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { PRIMITIVE_TYPE, Type, @@ -68,7 +68,7 @@ import { enumValueMapping_addSourceValue, enumValueMapping_deleteSourceValue, enumValueMapping_updateSourceValue, -} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; const EnumerationMappingSourceSelectorModal = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx index 6eeb3b2d722..b429b5ed5b1 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataPropertyMappingEditor.tsx @@ -20,22 +20,22 @@ import { type FlatDataPropertyMappingTransformDropTarget, CORE_DND_TYPE, FlatDataColumnDragSource, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { type MappingElement, MappingEditorState, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import type { FlatDataPropertyMappingState, FlatDataInstanceSetImplementationState, -} from '../../../../stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js'; import { clsx, CustomSelectorInput, ArrowCircleRightIcon, } from '@finos/legend-art'; import { type ConnectDropTarget, useDrop } from 'react-dnd'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { guaranteeType } from '@finos/legend-shared'; import { Enumeration, @@ -44,12 +44,12 @@ import { getEnumerationMappingsByEnumeration, getRawGenericType, } from '@finos/legend-graph'; -import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor'; -import { flatDataPropertyMapping_setTransformer } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper'; +import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js'; +import { flatDataPropertyMapping_setTransformer } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper.js'; import { CLASS_PROPERTY_TYPE, getClassPropertyType, -} from '../../../../stores/shared/ModelUtil'; +} from '../../../../stores/shared/ModelUtil.js'; const SimplePropertyMappingEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx index 470ea4e9006..ee6d9ee8fed 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/FlatDataRecordTypeTree.tsx @@ -26,8 +26,8 @@ import { import { CORE_DND_TYPE, FlatDataColumnDragSource, -} from '../../../../stores/shared/DnDUtil'; -import type { FlatDataRecordTypeTreeNodeData } from '../../../../stores/shared/TreeUtil'; +} from '../../../../stores/shared/DnDUtil.js'; +import type { FlatDataRecordTypeTreeNodeData } from '../../../../stores/shared/TreeUtil.js'; import { addUniqueEntry } from '@finos/legend-shared'; import { DEFAULT_SOURCE_PARAMETER_NAME, diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx index f185412e970..5ad902b5e4c 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationEditor.tsx @@ -30,38 +30,38 @@ import { CORE_DND_TYPE, type ElementDragSource, type MappingElementSourceDropTarget, -} from '../../../../stores/shared/DnDUtil'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; +} from '../../../../stores/shared/DnDUtil.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; import { InstanceSetImplementationState, MappingElementState, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState.js'; import { type PureInstanceSetImplementationFilterState, PureInstanceSetImplementationState, -} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js'; import { guaranteeNonNullable, noop } from '@finos/legend-shared'; import { type MappingElementSource, getMappingElementSource, MappingEditorState, getEmbeddedSetImplementations, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import { TypeTree } from '../../../shared/TypeTree'; -import { FlatDataRecordTypeTree } from './FlatDataRecordTypeTree'; -import { PropertyMappingsEditor } from './PropertyMappingsEditor'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import { TypeTree } from '../../../shared/TypeTree.js'; +import { FlatDataRecordTypeTree } from './FlatDataRecordTypeTree.js'; +import { PropertyMappingsEditor } from './PropertyMappingsEditor.js'; import { useDrop } from 'react-dnd'; -import { FlatDataInstanceSetImplementationState } from '../../../../stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState'; -import { MappingElementDecorationCleaner } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator'; -import { UnsupportedInstanceSetImplementationState } from '../../../../stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState'; -import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor'; -import { TableOrViewSourceTree } from './relational/TableOrViewSourceTree'; +import { FlatDataInstanceSetImplementationState } from '../../../../stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js'; +import { MappingElementDecorationCleaner } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js'; +import { UnsupportedInstanceSetImplementationState } from '../../../../stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.js'; +import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor.js'; +import { TableOrViewSourceTree } from './relational/TableOrViewSourceTree.js'; import { getSourceElementLabel, InstanceSetImplementationSourceSelectorModal, -} from './InstanceSetImplementationSourceSelectorModal'; +} from './InstanceSetImplementationSourceSelectorModal.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { ActionAlertActionType, useApplicationStore, @@ -84,8 +84,8 @@ import { getAllRecordTypes, getAllClassProperties, } from '@finos/legend-graph'; -import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor'; -import type { EditorStore } from '../../../../stores/EditorStore'; +import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js'; +import type { EditorStore } from '../../../../stores/EditorStore.js'; export const InstanceSetImplementationSourceExplorer = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx index 6b31ad6e13d..df64a7feb4b 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx @@ -26,7 +26,7 @@ import { getMappingElementSource, type MappingEditorState, type MappingElementSource, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import { type InstanceSetImplementation, type View, @@ -41,8 +41,8 @@ import { } from '@finos/legend-graph'; import { UnsupportedOperationError } from '@finos/legend-shared'; import { flowResult } from 'mobx'; -import { buildElementOption } from '../../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { buildElementOption } from '../../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; /* @MARKER: NEW CLASS MAPPING TYPE SUPPORT --- consider adding class mapping type handler here whenever support for a new one is added to the app */ diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx index 22b90f39c99..9c2c705ef8b 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx @@ -33,8 +33,8 @@ import { PURE_EnumerationIcon, PURE_AssociationIcon, } from '@finos/legend-art'; -import { ClassMappingEditor } from './ClassMappingEditor'; -import { EnumerationMappingEditor } from './EnumerationMappingEditor'; +import { ClassMappingEditor } from './ClassMappingEditor.js'; +import { EnumerationMappingEditor } from './EnumerationMappingEditor.js'; import { useResizeDetector } from 'react-resize-detector'; import { type MappingEditorTabState, @@ -44,17 +44,17 @@ import { getMappingElementType, MAPPING_ELEMENT_TYPE, getMappingElementLabel, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import { MappingElementState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState'; -import { MappingExplorer } from './MappingExplorer'; -import { MappingTestEditor } from './MappingTestEditor'; -import { MappingTestState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState'; -import { MappingTestsExplorer } from './MappingTestsExplorer'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { MappingExecutionState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionState'; -import { MappingExecutionBuilder } from './MappingExecutionBuilder'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import { MappingElementState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState.js'; +import { MappingExplorer } from './MappingExplorer.js'; +import { MappingTestEditor } from './MappingTestEditor.js'; +import { MappingTestState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState.js'; +import { MappingTestsExplorer } from './MappingTestsExplorer.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { MappingExecutionState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionState.js'; +import { MappingExecutionBuilder } from './MappingExecutionBuilder.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { Class, Enumeration, diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx index 284261fe225..3fe1bfa2b24 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx @@ -44,13 +44,13 @@ import { getMappingElementSource, getMappingElementTarget, getMappingElementLabel, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import { useDrop } from 'react-dnd'; -import { NewServiceModal } from '../service-editor/NewServiceModal'; +import { NewServiceModal } from '../service-editor/NewServiceModal.js'; import { type MappingElementDragSource, CORE_DND_TYPE, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { guaranteeType, uniq } from '@finos/legend-shared'; import { type MappingExecutionState, @@ -58,15 +58,15 @@ import { MappingExecutionObjectInputDataState, MappingExecutionFlatDataInputDataState, MappingExecutionRelationalInputDataState, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingExecutionState.js'; import { EDITOR_LANGUAGE, ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application'; -import { ExecutionPlanViewer } from './execution-plan-viewer/ExecutionPlanViewer'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { ExecutionPlanViewer } from './execution-plan-viewer/ExecutionPlanViewer.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { Class, SetImplementation, @@ -76,14 +76,14 @@ import { stub_RawLambda, isStubbed_RawLambda, } from '@finos/legend-graph'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioPlugin_Extension'; -import { objectInputData_setData } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; -import { flatData_setData } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioPlugin_Extension.js'; +import { objectInputData_setData } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; +import { flatData_setData } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper.js'; import { relationalInputData_setData, relationalInputData_setInputType, -} from '../../../../stores/graphModifier/StoreRelational_GraphModifierHelper'; +} from '../../../../stores/graphModifier/StoreRelational_GraphModifierHelper.js'; interface ClassMappingSelectOption { label: string; diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx index d3fa155432e..8588f9d3fab 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx @@ -21,7 +21,7 @@ import { type ElementDragSource, CORE_DND_TYPE, MappingElementDragSource, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { type TreeNodeContainerProps, clsx, @@ -37,7 +37,7 @@ import { ChevronDownIcon, FilterIcon, } from '@finos/legend-art'; -import { MappingElementState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState'; +import { MappingElementState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState.js'; import { useDrop, useDrag } from 'react-dnd'; import { toSentenceCase } from '@finos/legend-shared'; import { @@ -48,13 +48,13 @@ import { getMappingElementType, MappingEditorState, getMappingElementLabel, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { getElementIcon } from '../../../shared/ElementIconUtils'; -import { NewMappingElementModal } from '../../../editor/edit-panel/mapping-editor/NewMappingElementModal'; -import { MappingElementDecorator } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { getElementIcon } from '../../../shared/ElementIconUtils.js'; +import { NewMappingElementModal } from '../../../editor/edit-panel/mapping-editor/NewMappingElementModal.js'; +import { MappingElementDecorator } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type PackageableElement, SetImplementation, @@ -67,8 +67,8 @@ import { useApplicationStore } from '@finos/legend-application'; import { PureInstanceSetImplementationFilterState, PureInstanceSetImplementationState, -} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState'; -import { pureInstanceSetImpl_setMappingFilter } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js'; +import { pureInstanceSetImpl_setMappingFilter } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; export const MappingExplorerContextMenu = observer( forwardRef< diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx index ffea7c4bf65..329ff4c822c 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx @@ -24,8 +24,8 @@ import { MappingTestFlatDataInputDataState, MappingTestExpectedOutputAssertionState, MappingTestRelationalInputDataState, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState'; -import { JsonDiffView } from '../../../shared/DiffView'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState.js'; +import { JsonDiffView } from '../../../shared/DiffView.js'; import { clsx, PanelLoadingIndicator, @@ -48,7 +48,7 @@ import { useDrop } from 'react-dnd'; import { type MappingElementDragSource, CORE_DND_TYPE, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { IllegalStateError, guaranteeType, @@ -63,15 +63,15 @@ import { import { ClassMappingSelectorModal, getRelationalInputTestDataEditorLanguage, -} from './MappingExecutionBuilder'; +} from './MappingExecutionBuilder.js'; import { flowResult } from 'mobx'; -import { MappingTestStatusIndicator } from './MappingTestsExplorer'; -import { ExecutionPlanViewer } from './execution-plan-viewer/ExecutionPlanViewer'; +import { MappingTestStatusIndicator } from './MappingTestsExplorer.js'; +import { ExecutionPlanViewer } from './execution-plan-viewer/ExecutionPlanViewer.js'; import { getMappingElementSource, getMappingElementTarget, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import { useEditorStore } from '../../EditorStoreProvider'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { Class, SetImplementation, @@ -81,13 +81,13 @@ import { isStubbed_RawLambda, DEPRECATED__validate_MappingTestAssert, } from '@finos/legend-graph'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioPlugin_Extension'; -import { flatData_setData } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../../stores/DSLMapping_LegendStudioPlugin_Extension.js'; +import { flatData_setData } from '../../../../stores/graphModifier/StoreFlatData_GraphModifierHelper.js'; import { relationalInputData_setData, relationalInputData_setInputType, -} from '../../../../stores/graphModifier/StoreRelational_GraphModifierHelper'; +} from '../../../../stores/graphModifier/StoreRelational_GraphModifierHelper.js'; const MappingTestQueryEditor = observer( (props: { testState: MappingTestState; isReadOnly: boolean }) => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx index 3d1076b8f26..d416bcab9c8 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx @@ -21,8 +21,8 @@ import { type MappingTestState, MAPPING_TEST_EDITOR_TAB_TYPE, TEST_RESULT, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState'; -import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState.js'; +import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import { clsx, ContextMenu, @@ -41,11 +41,11 @@ import { import { type MappingElementDragSource, CORE_DND_TYPE, -} from '../../../../stores/shared/DnDUtil'; -import { ClassMappingSelectorModal } from './MappingExecutionBuilder'; +} from '../../../../stores/shared/DnDUtil.js'; +import { ClassMappingSelectorModal } from './MappingExecutionBuilder.js'; import { flowResult } from 'mobx'; import { Randomizer } from '@finos/legend-shared'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; import { SetImplementation } from '@finos/legend-graph'; diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx index 33261217b2f..1bd2d65c47f 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/NewMappingElementModal.tsx @@ -29,13 +29,13 @@ import { createEnumerationMapping, getAllMappingElements, MappingEditorState, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import { guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../../EditorStoreProvider'; +import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type PackageableElement, PRIMITIVE_TYPE, @@ -44,7 +44,7 @@ import { Enumeration, Association, } from '@finos/legend-graph'; -import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelUtil'; +import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../../stores/shared/ModelUtil.js'; interface ClassMappingSubTypeOption { label: string; diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx index 2b4798d0fb4..90e11ec490e 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/OperationSetImplementationEditor.tsx @@ -16,7 +16,7 @@ import { useEffect, useCallback } from 'react'; import { observer } from 'mobx-react-lite'; -import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +import { MappingEditorState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import { clsx, CustomSelectorInput, @@ -29,13 +29,13 @@ import { CORE_DND_TYPE, type OperationSetImplementationDropTarget, type MappingElementDragSource, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { useDrop } from 'react-dnd'; import { noop } from '@finos/legend-shared'; import { MappingElementDecorator, MappingElementDecorationCleaner, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementDecorator.js'; import { Mapping, OperationSetImplementation, @@ -50,12 +50,12 @@ import { getClassMappingsByClass, getAllChildSetImplementations, } from '@finos/legend-graph'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { operationMapping_addParameter, operationMapping_changeParameter, operationMapping_deleteParameter, -} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; interface SetImplementationOption { value: SetImplementation; diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx index bf88c1e06d8..413c0342a25 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PropertyMappingsEditor.tsx @@ -15,31 +15,31 @@ */ import { observer } from 'mobx-react-lite'; -import { MultiplicityBadge } from '../../../shared/MultiplicityBadge'; -import { PurePropertyMappingEditor } from './PurePropertyMappingEditor'; -import { getElementIcon } from '../../../shared/ElementIconUtils'; +import { MultiplicityBadge } from '../../../shared/MultiplicityBadge.js'; +import { PurePropertyMappingEditor } from './PurePropertyMappingEditor.js'; +import { getElementIcon } from '../../../shared/ElementIconUtils.js'; import { type MappingElement, MappingEditorState, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import type { InstanceSetImplementationState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import type { InstanceSetImplementationState } from '../../../../stores/editor-state/element-editor-state/mapping/MappingElementState.js'; import { PurePropertyMappingState, PureInstanceSetImplementationState, -} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js'; import { clsx, ArrowCircleRightIcon } from '@finos/legend-art'; import { guaranteeType } from '@finos/legend-shared'; import { type FlatDataPropertyMappingState, FlatDataInstanceSetImplementationState, -} from '../../../../stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState'; -import { FlatDataPropertyMappingEditor } from './FlatDataPropertyMappingEditor'; -import { RelationalPropertyMappingEditor } from './relational/RelationalPropertyMappingEditor'; +} from '../../../../stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js'; +import { FlatDataPropertyMappingEditor } from './FlatDataPropertyMappingEditor.js'; +import { RelationalPropertyMappingEditor } from './relational/RelationalPropertyMappingEditor.js'; import type { RelationalPropertyMappingState, RootRelationalInstanceSetImplementationState, -} from '../../../../stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState'; -import { useEditorStore } from '../../EditorStoreProvider'; +} from '../../../../stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type Property, type Type, @@ -55,12 +55,12 @@ import { useApplicationStore } from '@finos/legend-application'; import { setImpl_nominateRoot, setImpl_setRoot, -} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; import { CLASS_PROPERTY_TYPE, getClassPropertyType, SET_IMPLEMENTATION_TYPE, -} from '../../../../stores/shared/ModelUtil'; +} from '../../../../stores/shared/ModelUtil.js'; export const getExpectedReturnType = ( targetSetImplementation: SetImplementation | undefined, diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx index 52fba8f82f7..a4fe3c405dd 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/PurePropertyMappingEditor.tsx @@ -20,22 +20,22 @@ import { type TransformDropTarget, CORE_DND_TYPE, TypeDragSource, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { type MappingElement, MappingEditorState, -} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import type { PurePropertyMappingState, PureInstanceSetImplementationState, -} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState'; +} from '../../../../stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js'; import { clsx, CustomSelectorInput, ArrowCircleRightIcon, } from '@finos/legend-art'; import { type ConnectDropTarget, useDrop } from 'react-dnd'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { Enumeration, EnumerationMapping, @@ -43,13 +43,13 @@ import { getEnumerationMappingsByEnumeration, getRawGenericType, } from '@finos/legend-graph'; -import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor'; -import { purePropertyMapping_setTransformer } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper'; -import { getExpectedReturnType } from './PropertyMappingsEditor'; +import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js'; +import { purePropertyMapping_setTransformer } from '../../../../stores/graphModifier/DSLMapping_GraphModifierHelper.js'; +import { getExpectedReturnType } from './PropertyMappingsEditor.js'; import { CLASS_PROPERTY_TYPE, getClassPropertyType, -} from '../../../../stores/shared/ModelUtil'; +} from '../../../../stores/shared/ModelUtil.js'; const SimplePropertyMappingEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/__tests__/EnumerationMappingEditor.test.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/__tests__/EnumerationMappingEditor.test.tsx index 7d5b5100b55..54a7faa3d81 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/__tests__/EnumerationMappingEditor.test.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/__tests__/EnumerationMappingEditor.test.tsx @@ -29,10 +29,10 @@ import { TEST__openElementFromExplorerTree, TEST__provideMockedEditorStore, TEST__setUpEditorWithDefaultSDLCData, -} from '../../../../EditorComponentTestUtils'; -import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID'; -import type { EditorStore } from '../../../../../stores/EditorStore'; -import { MappingEditorState } from '../../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../EditorComponentTestUtils.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID.js'; +import type { EditorStore } from '../../../../../stores/EditorStore.js'; +import { MappingEditorState } from '../../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; let renderResult: RenderResult; let mockedEditorStore: EditorStore; diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionNodesViewer.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionNodesViewer.tsx index 78b66dcd57a..277f4e8ca0b 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionNodesViewer.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionNodesViewer.tsx @@ -15,15 +15,15 @@ */ import { observer } from 'mobx-react-lite'; -import { SQLPlanViewer } from './SQLExecutionPlanViewer'; +import { SQLPlanViewer } from './SQLExecutionPlanViewer.js'; import { type ExecutionPlanState, EXECUTION_PLAN_VIEW_MODE, -} from '../../../../../stores/ExecutionPlanState'; +} from '../../../../../stores/ExecutionPlanState.js'; import { ExecutionNodeTreeNodeData, ExecutionPlanViewTreeNodeData, -} from './ExecutionPlanViewer'; +} from './ExecutionPlanViewer.js'; import { type ResultType, type DataType, @@ -55,7 +55,7 @@ import { } from '@finos/legend-art'; import { prettyCONSTName } from '@finos/legend-shared'; import { EDITOR_LANGUAGE } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../../../shared/StudioTextInputEditor'; +import { StudioTextInputEditor } from '../../../../shared/StudioTextInputEditor.js'; const generateDataTypeLabel = (type: unknown | undefined): string => { if (type === undefined) { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanTree.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanTree.tsx index 84fa01f0ecf..7ccf33bc9c1 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanTree.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanTree.tsx @@ -29,7 +29,7 @@ import { filterByType, isNonNullable, } from '@finos/legend-shared'; -import type { ExecutionPlanState } from '../../../../../stores/ExecutionPlanState'; +import type { ExecutionPlanState } from '../../../../../stores/ExecutionPlanState.js'; import { type ExecutionPlan, ExecutionNode, diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanViewer.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanViewer.tsx index f42dba4c36a..fc9ff92f8da 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanViewer.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanViewer.tsx @@ -34,9 +34,9 @@ import { filterByType, isNonNullable, } from '@finos/legend-shared'; -import type { ExecutionPlanState } from '../../../../../stores/ExecutionPlanState'; +import type { ExecutionPlanState } from '../../../../../stores/ExecutionPlanState.js'; import { observer } from 'mobx-react-lite'; -import { ExecutionNodesViewer } from './ExecutionNodesViewer'; +import { ExecutionNodesViewer } from './ExecutionNodesViewer.js'; import { EDITOR_LANGUAGE, TAB_SIZE } from '@finos/legend-application'; import { type ExecutionPlan, @@ -45,7 +45,7 @@ import { RelationalTDSInstantiationExecutionNode, type RawExecutionPlan, } from '@finos/legend-graph'; -import { StudioTextInputEditor } from '../../../../shared/StudioTextInputEditor'; +import { StudioTextInputEditor } from '../../../../shared/StudioTextInputEditor.js'; export class ExecutionPlanViewTreeNodeData implements TreeNodeData { id: string; diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/SQLExecutionPlanViewer.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/SQLExecutionPlanViewer.tsx index 2e45ce2b9a2..372ab334b42 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/SQLExecutionPlanViewer.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/execution-plan-viewer/SQLExecutionPlanViewer.tsx @@ -19,12 +19,12 @@ import { EDITOR_LANGUAGE } from '@finos/legend-application'; import { type ExecutionPlanState, SQL_DISPLAY_TABS, -} from '../../../../../stores/ExecutionPlanState'; +} from '../../../../../stores/ExecutionPlanState.js'; import { prettyCONSTName } from '@finos/legend-shared'; import { clsx } from '@finos/legend-art'; -import { RelationalDatabaseConnectionEditor } from '../../connection-editor/RelationalDatabaseConnectionEditor'; +import { RelationalDatabaseConnectionEditor } from '../../connection-editor/RelationalDatabaseConnectionEditor.js'; import { format } from 'sql-formatter'; -import { RelationalDatabaseConnectionValueState } from '../../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState'; +import { RelationalDatabaseConnectionValueState } from '../../../../../stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; import { type SQLResultColumn, type RelationalDataType, @@ -48,7 +48,7 @@ import { BigInt, RelationalDatabaseConnection, } from '@finos/legend-graph'; -import { StudioTextInputEditor } from '../../../../shared/StudioTextInputEditor'; +import { StudioTextInputEditor } from '../../../../shared/StudioTextInputEditor.js'; const generateDataTypeLabel = ( type: RelationalDataType | undefined, diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx index 9e88c38ec3d..3290ec4f630 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/RelationalPropertyMappingEditor.tsx @@ -20,11 +20,11 @@ import { EmbeddedRelationalInstanceSetImplementationState, type RelationalPropertyMappingState, type RootRelationalInstanceSetImplementationState, -} from '../../../../../stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState'; +} from '../../../../../stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js'; import { type MappingElement, MappingEditorState, -} from '../../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState'; +} from '../../../../../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; import { clsx, CustomSelectorInput, @@ -35,8 +35,8 @@ import { guaranteeType } from '@finos/legend-shared'; import { TableOrViewTreeNodeDragSource, TABLE_ELEMENT_DND_TYPE, -} from './TableOrViewSourceTree'; -import { useEditorStore } from '../../../EditorStoreProvider'; +} from './TableOrViewSourceTree.js'; +import { useEditorStore } from '../../../EditorStoreProvider.js'; import { Enumeration, EnumerationMapping, @@ -44,13 +44,13 @@ import { getEnumerationMappingsByEnumeration, getRawGenericType, } from '@finos/legend-graph'; -import { StudioLambdaEditor } from '../../../../shared/StudioLambdaEditor'; -import { relationalPropertyMapping_setTransformer } from '../../../../../stores/graphModifier/StoreRelational_GraphModifierHelper'; -import { getExpectedReturnType } from '../PropertyMappingsEditor'; +import { StudioLambdaEditor } from '../../../../shared/StudioLambdaEditor.js'; +import { relationalPropertyMapping_setTransformer } from '../../../../../stores/graphModifier/StoreRelational_GraphModifierHelper.js'; +import { getExpectedReturnType } from '../PropertyMappingsEditor.js'; import { CLASS_PROPERTY_TYPE, getClassPropertyType, -} from '../../../../../stores/shared/ModelUtil'; +} from '../../../../../stores/shared/ModelUtil.js'; const SimplePropertyMappingEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx index 00f11c7327b..3a3331348c6 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/relational/TableOrViewSourceTree.tsx @@ -35,7 +35,7 @@ import { import { generateColumnTypeLabel, renderColumnTypeIcon, -} from '../../../../../stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper'; +} from '../../../../../stores/editor-state/element-editor-state/mapping/relational/DatabaseEditorHelper.js'; import { type Type, type Table, diff --git a/packages/legend-studio/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx index bdd3c8b66b9..08818a1cafc 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx @@ -25,7 +25,7 @@ import { observer } from 'mobx-react-lite'; import { ProjectConfigurationEditorState, CONFIGURATION_EDITOR_TAB, -} from '../../../../stores/editor-state/ProjectConfigurationEditorState'; +} from '../../../../stores/editor-state/ProjectConfigurationEditorState.js'; import { type SelectComponent, compareLabelFn, @@ -42,13 +42,13 @@ import { ProjectDependency, type ProjectConfiguration, } from '@finos/legend-server-sdlc'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application'; -import { LEGEND_STUDIO_APP_EVENT } from '../../../../stores/LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../../../../stores/LegendStudioAppEvent.js'; import { type ProjectData, compareSemVerVersions, diff --git a/packages/legend-studio/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx b/packages/legend-studio/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx index 04a8aeaabfb..d1cecc6d44b 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/service-editor/NewServiceModal.tsx @@ -18,7 +18,7 @@ import { useState, useRef } from 'react'; import { observer } from 'mobx-react-lite'; import { guaranteeType } from '@finos/legend-shared'; import { Dialog } from '@finos/legend-art'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; import { type Mapping, diff --git a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx index b6a3a75e8e9..7e43bd49c12 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx @@ -20,7 +20,7 @@ import { MINIMUM_SERVICE_OWNERS, ServiceEditorState, SERVICE_TAB, -} from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState'; +} from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState.js'; import { clsx, PencilIcon, @@ -33,10 +33,10 @@ import { ErrorIcon, } from '@finos/legend-art'; import { prettyCONSTName } from '@finos/legend-shared'; -import { ServiceExecutionEditor } from './ServiceExecutionEditor'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { ServiceRegistrationEditor } from './ServiceRegistrationEditor'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { ServiceExecutionEditor } from './ServiceExecutionEditor.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { ServiceRegistrationEditor } from './ServiceRegistrationEditor.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { service_addOwner, service_deleteOwner, @@ -45,7 +45,7 @@ import { service_setDocumentation, service_setPattern, service_updateOwner, -} from '../../../../stores/graphModifier/DSLService_GraphModifierHelper'; +} from '../../../../stores/graphModifier/DSLService_GraphModifierHelper.js'; import { validate_ServicePattern } from '@finos/legend-graph'; const ServiceGeneralEditor = observer(() => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx index 5f35c30409d..6b6daba5c28 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx @@ -16,24 +16,24 @@ import { useEffect, useCallback } from 'react'; import { observer } from 'mobx-react-lite'; -import { ServiceEditorState } from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState'; +import { ServiceEditorState } from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState.js'; import { SERVICE_EXECUTION_TAB, ServicePureExecutionState, -} from '../../../../stores/editor-state/element-editor-state/service/ServiceExecutionState'; +} from '../../../../stores/editor-state/element-editor-state/service/ServiceExecutionState.js'; import { prettyCONSTName, UnsupportedOperationError, } from '@finos/legend-shared'; -import { LegacySingleExecutionTestState } from '../../../../stores/editor-state/element-editor-state/service/LegacyServiceTestState'; -import { EmbeddedRuntimeEditor } from '../../../editor/edit-panel/RuntimeEditor'; +import { LegacySingleExecutionTestState } from '../../../../stores/editor-state/element-editor-state/service/LegacyServiceTestState.js'; +import { EmbeddedRuntimeEditor } from '../../../editor/edit-panel/RuntimeEditor.js'; import { useDrop } from 'react-dnd'; import { CORE_DND_TYPE, type ElementDragSource, type UMLEditorElementDropTarget, -} from '../../../../stores/shared/DnDUtil'; -import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor'; +} from '../../../../stores/shared/DnDUtil.js'; +import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor.js'; import { clsx, BlankPanelContent, @@ -50,11 +50,11 @@ import { LongArrowRightIcon, ExclamationTriangleIcon, } from '@finos/legend-art'; -import { ServiceExecutionQueryEditor } from '../../../editor/edit-panel/service-editor/ServiceExecutionQueryEditor'; -import { ServiceTestEditor } from '../../../editor/edit-panel/service-editor/ServiceTestEditor'; -import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil'; +import { ServiceExecutionQueryEditor } from '../../../editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js'; +import { ServiceTestEditor } from '../../../editor/edit-panel/service-editor/ServiceTestEditor.js'; +import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type KeyedExecutionParameter, type Runtime, @@ -70,8 +70,8 @@ import { useApplicationStore } from '@finos/legend-application'; import { pureSingleExecution_setMapping, pureSingleExecution_setRuntime, -} from '../../../../stores/graphModifier/DSLService_GraphModifierHelper'; -import { ServiceTestSuiteState } from '../../../../stores/editor-state/element-editor-state/service/ServiceTestSuiteState'; +} from '../../../../stores/graphModifier/DSLService_GraphModifierHelper.js'; +import { ServiceTestSuiteState } from '../../../../stores/editor-state/element-editor-state/service/ServiceTestSuiteState.js'; const PureSingleExecutionConfigurationEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx index 7f8edf34e9e..52ceaefad37 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx @@ -19,7 +19,7 @@ import { observer } from 'mobx-react-lite'; import type { ServicePureExecutionQueryState, ServicePureExecutionState, -} from '../../../../stores/editor-state/element-editor-state/service/ServiceExecutionState'; +} from '../../../../stores/editor-state/element-editor-state/service/ServiceExecutionState.js'; import { Dialog, type SelectComponent, @@ -36,15 +36,15 @@ import { } from '@finos/legend-art'; import { debounce } from '@finos/legend-shared'; import { flowResult } from 'mobx'; -import { ExecutionPlanViewer } from '../mapping-editor/execution-plan-viewer/ExecutionPlanViewer'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { ExecutionPlanViewer } from '../mapping-editor/execution-plan-viewer/ExecutionPlanViewer.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { EDITOR_LANGUAGE, useApplicationStore, } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; import type { LightQuery } from '@finos/legend-graph'; -import type { DSLService_LegendStudioPlugin_Extension } from '../../../../stores/DSLService_LegendStudioPlugin_Extension'; +import type { DSLService_LegendStudioPlugin_Extension } from '../../../../stores/DSLService_LegendStudioPlugin_Extension.js'; const ServiceExecutionResultViewer = observer( (props: { executionState: ServicePureExecutionState }) => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx index 62a86bdecac..7d6070b90ae 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceRegistrationEditor.tsx @@ -15,7 +15,7 @@ */ import { observer } from 'mobx-react-lite'; -import { ServiceEditorState } from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState'; +import { ServiceEditorState } from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState.js'; import { clsx, PanelLoadingIndicator, @@ -24,11 +24,11 @@ import { SquareIcon, } from '@finos/legend-art'; import { prettyCONSTName } from '@finos/legend-shared'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; import { ServiceExecutionMode } from '@finos/legend-graph'; import { flowResult } from 'mobx'; import { Version } from '@finos/legend-server-sdlc'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; export const ServiceRegistrationEditor = observer(() => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceTestEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceTestEditor.tsx index 1672b70c7b9..1d391b4face 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceTestEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/service-editor/ServiceTestEditor.tsx @@ -16,7 +16,7 @@ import { useState, useEffect, forwardRef } from 'react'; import { observer } from 'mobx-react-lite'; -import type { ServiceExecutionState } from '../../../../stores/editor-state/element-editor-state/service/ServiceExecutionState'; +import type { ServiceExecutionState } from '../../../../stores/editor-state/element-editor-state/service/ServiceExecutionState.js'; import { isValidJSONString, prettyCONSTName, @@ -52,19 +52,19 @@ import { import { type TestContainerState, LegacySingleExecutionTestState, -} from '../../../../stores/editor-state/element-editor-state/service/LegacyServiceTestState'; -import { TEST_RESULT } from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState'; -import { JsonDiffView } from '../../../shared/DiffView'; -import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor'; -import { ServiceEditorState } from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState'; +} from '../../../../stores/editor-state/element-editor-state/service/LegacyServiceTestState.js'; +import { TEST_RESULT } from '../../../../stores/editor-state/element-editor-state/mapping/MappingTestState.js'; +import { JsonDiffView } from '../../../shared/DiffView.js'; +import { UnsupportedEditorPanel } from '../../../editor/edit-panel/UnsupportedElementEditor.js'; +import { ServiceEditorState } from '../../../../stores/editor-state/element-editor-state/service/ServiceEditorState.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { EDITOR_LANGUAGE, useApplicationStore, } from '@finos/legend-application'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import { singleExecTest_setData } from '../../../../stores/graphModifier/DSLService_GraphModifierHelper'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import { singleExecTest_setData } from '../../../../stores/graphModifier/DSLService_GraphModifierHelper.js'; import type { DEPRECATED__TestContainer } from '@finos/legend-graph'; const TestContainerContextMenu = observer( diff --git a/packages/legend-studio/src/components/editor/edit-panel/service-editor/__tests__/ServiceRegistrationTest.test.tsx b/packages/legend-studio/src/components/editor/edit-panel/service-editor/__tests__/ServiceRegistrationTest.test.tsx index 4dc9e17e21f..c67d0723911 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/service-editor/__tests__/ServiceRegistrationTest.test.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/service-editor/__tests__/ServiceRegistrationTest.test.tsx @@ -37,21 +37,21 @@ import { TEST__openElementFromExplorerTree, TEST__provideMockedEditorStore, TEST__setUpEditor, -} from '../../../../EditorComponentTestUtils'; -import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID'; -import type { EditorStore } from '../../../../../stores/EditorStore'; -import { ServiceEditorState } from '../../../../../stores/editor-state/element-editor-state/service/ServiceEditorState'; +} from '../../../../EditorComponentTestUtils.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID.js'; +import type { EditorStore } from '../../../../../stores/EditorStore.js'; +import { ServiceEditorState } from '../../../../../stores/editor-state/element-editor-state/service/ServiceEditorState.js'; import { TEST__provideMockedApplicationStore } from '@finos/legend-application'; -import { LATEST_PROJECT_REVISION } from '../../../../../stores/editor-state/element-editor-state/service/ServiceRegistrationState'; +import { LATEST_PROJECT_REVISION } from '../../../../../stores/editor-state/element-editor-state/service/ServiceRegistrationState.js'; import { flowResult } from 'mobx'; import type { Project, Version, Workspace } from '@finos/legend-server-sdlc'; import { ServiceExecutionMode, ServiceRegistrationResult, } from '@finos/legend-graph'; -import { TEST__getTestStudioConfig } from '../../../../../stores/EditorStoreTestUtils'; -import { LegendStudioPluginManager } from '../../../../../application/LegendStudioPluginManager'; -import { service_deleteOwner } from '../../../../../stores/graphModifier/DSLService_GraphModifierHelper'; +import { TEST__getTestStudioConfig } from '../../../../../stores/EditorStoreTestUtils.js'; +import { LegendStudioPluginManager } from '../../../../../application/LegendStudioPluginManager.js'; +import { service_deleteOwner } from '../../../../../stores/graphModifier/DSLService_GraphModifierHelper.js'; let renderResult: RenderResult; diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx index 23c89c2ded5..af6ed96a904 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx @@ -19,12 +19,12 @@ import { observer } from 'mobx-react-lite'; import { UMLEditorState, UML_EDITOR_TAB, -} from '../../../../stores/editor-state/element-editor-state/UMLEditorState'; +} from '../../../../stores/editor-state/element-editor-state/UMLEditorState.js'; import { CORE_DND_TYPE, type UMLEditorElementDropTarget, type ElementDragSource, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { useDrop } from 'react-dnd'; import { clsx, @@ -42,14 +42,14 @@ import { ArrowCircleRightIcon, LongArrowRightIcon, } from '@finos/legend-art'; -import { getElementIcon } from '../../../shared/ElementIconUtils'; +import { getElementIcon } from '../../../shared/ElementIconUtils.js'; import { prettyCONSTName, guaranteeType } from '@finos/legend-shared'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { StereotypeSelector } from './StereotypeSelector'; -import { TaggedValueEditor } from './TaggedValueEditor'; -import { PropertyEditor } from './PropertyEditor'; -import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { StereotypeSelector } from './StereotypeSelector.js'; +import { TaggedValueEditor } from './TaggedValueEditor.js'; +import { PropertyEditor } from './PropertyEditor.js'; +import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type Association, type Property, @@ -78,11 +78,11 @@ import { annotatedElement_addStereotype, annotatedElement_deleteTaggedValue, association_changePropertyType, -} from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; import { CLASS_PROPERTY_TYPE, getClassPropertyType, -} from '../../../../stores/shared/ModelUtil'; +} from '../../../../stores/shared/ModelUtil.js'; const AssociationPropertyBasicEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx index 7aeb90b2cdf..f65fd913812 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ClassEditor.tsx @@ -22,7 +22,7 @@ import { CORE_DND_TYPE, type ElementDragSource, type UMLEditorElementDropTarget, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { clsx, CustomSelectorInput, @@ -42,15 +42,15 @@ import { FireIcon, StickArrowCircleRightIcon, } from '@finos/legend-art'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { PropertyEditor } from './PropertyEditor'; -import { StereotypeSelector } from './StereotypeSelector'; -import { TaggedValueEditor } from './TaggedValueEditor'; -import { UML_EDITOR_TAB } from '../../../../stores/editor-state/element-editor-state/UMLEditorState'; -import { ClassEditorState } from '../../../../stores/editor-state/element-editor-state/ClassEditorState'; -import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { PropertyEditor } from './PropertyEditor.js'; +import { StereotypeSelector } from './StereotypeSelector.js'; +import { TaggedValueEditor } from './TaggedValueEditor.js'; +import { UML_EDITOR_TAB } from '../../../../stores/editor-state/element-editor-state/UMLEditorState.js'; +import { ClassEditorState } from '../../../../stores/editor-state/element-editor-state/ClassEditorState.js'; +import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil.js'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type StereotypeReference, type GenericTypeReference, @@ -82,14 +82,14 @@ import { getAllClassConstraints, getAllClassDerivedProperties, } from '@finos/legend-graph'; -import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor'; +import { StudioLambdaEditor } from '../../../shared/StudioLambdaEditor.js'; import { ApplicationNavigationContextData, useApplicationNavigationContext, useApplicationStore, } from '@finos/legend-application'; -import { getElementIcon } from '../../../shared/ElementIconUtils'; -import type { ClassPreviewRenderer } from '../../../../stores/LegendStudioPlugin'; +import { getElementIcon } from '../../../shared/ElementIconUtils.js'; +import type { ClassPreviewRenderer } from '../../../../stores/LegendStudioPlugin.js'; import { class_addProperty, class_deleteDerivedProperty, @@ -110,12 +110,12 @@ import { property_setGenericType, property_setMultiplicity, setGenericTypeReferenceValue, -} from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; import { CLASS_PROPERTY_TYPE, getClassPropertyType, -} from '../../../../stores/shared/ModelUtil'; -import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../../../stores/LegendStudioApplicationNavigationContext'; +} from '../../../../stores/shared/ModelUtil.js'; +import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../../../stores/LegendStudioApplicationNavigationContext.js'; const PropertyBasicEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx index ec8e4650709..91307338297 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/EnumerationEditor.tsx @@ -19,13 +19,13 @@ import { observer } from 'mobx-react-lite'; import { UMLEditorState, UML_EDITOR_TAB, -} from '../../../../stores/editor-state/element-editor-state/UMLEditorState'; +} from '../../../../stores/editor-state/element-editor-state/UMLEditorState.js'; import { useDrop } from 'react-dnd'; import { CORE_DND_TYPE, type ElementDragSource, type UMLEditorElementDropTarget, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { prettyCONSTName } from '@finos/legend-shared'; import { BlankPanelContent, @@ -43,10 +43,10 @@ import { FireIcon, StickArrowCircleRightIcon, } from '@finos/legend-art'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { StereotypeSelector } from './StereotypeSelector'; -import { TaggedValueEditor } from './TaggedValueEditor'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { StereotypeSelector } from './StereotypeSelector.js'; +import { TaggedValueEditor } from './TaggedValueEditor.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type Enumeration, type StereotypeReference, @@ -68,7 +68,7 @@ import { annotatedElement_deleteTaggedValue, enum_deleteValue, enum_addValue, -} from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; const EnumBasicEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx index 8b2d29c295d..fc45f19a82d 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/ProfileEditor.tsx @@ -18,7 +18,7 @@ import { prettyCONSTName } from '@finos/legend-shared'; import { UMLEditorState, UML_EDITOR_TAB, -} from '../../../../stores/editor-state/element-editor-state/UMLEditorState'; +} from '../../../../stores/editor-state/element-editor-state/UMLEditorState.js'; import { observer } from 'mobx-react-lite'; import { clsx, @@ -27,8 +27,8 @@ import { TimesIcon, LockIcon, } from '@finos/legend-art'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type Profile, type Tag, @@ -42,7 +42,7 @@ import { profile_deleteTag, profile_deleteStereotype, tagStereotype_setValue, -} from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; const TagBasicEditor = observer( (props: { tag: Tag; deleteValue: () => void; isReadOnly: boolean }) => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx index 62b90a8ee43..94330187eed 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/PropertyEditor.tsx @@ -21,13 +21,13 @@ import { CORE_DND_TYPE, type ElementDragSource, type UMLEditorElementDropTarget, -} from '../../../../stores/shared/DnDUtil'; +} from '../../../../stores/shared/DnDUtil.js'; import { clsx, LockIcon, PlusIcon, TimesIcon } from '@finos/legend-art'; -import { StereotypeSelector } from './StereotypeSelector'; -import { TaggedValueEditor } from './TaggedValueEditor'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; +import { StereotypeSelector } from './StereotypeSelector.js'; +import { TaggedValueEditor } from './TaggedValueEditor.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; import { prettyCONSTName } from '@finos/legend-shared'; -import { UML_EDITOR_TAB } from '../../../../stores/editor-state/element-editor-state/UMLEditorState'; +import { UML_EDITOR_TAB } from '../../../../stores/editor-state/element-editor-state/UMLEditorState.js'; import { type AbstractProperty, type StereotypeReference, @@ -44,7 +44,7 @@ import { annotatedElement_addTaggedValue, annotatedElement_addStereotype, annotatedElement_deleteStereotype, -} from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; export const PropertyEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx index 7f1f5328dfb..a0467f476e5 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/StereotypeSelector.tsx @@ -22,15 +22,15 @@ import { TimesIcon, ArrowCircleRightIcon, } from '@finos/legend-art'; -import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../../EditorStoreProvider'; +import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type Profile, type StereotypeReference, type Stereotype, isStubbed_PackageableElement, } from '@finos/legend-graph'; -import { stereotypeReference_setValue } from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +import { stereotypeReference_setValue } from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; interface StereotypeOption { label: string; diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx index 33935f7ba78..277fa9d7115 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/TaggedValueEditor.tsx @@ -25,8 +25,8 @@ import { ArrowCircleRightIcon, LongArrowAltUpIcon, } from '@finos/legend-art'; -import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil'; -import { useEditorStore } from '../../EditorStoreProvider'; +import type { PackageableElementOption } from '../../../../stores/shared/PackageableElementOptionUtil.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { type TaggedValue, type Tag, @@ -36,7 +36,7 @@ import { import { taggedValue_setValue, taggedValue_setTag, -} from '../../../../stores/graphModifier/DomainGraphModifierHelper'; +} from '../../../../stores/graphModifier/DomainGraphModifierHelper.js'; interface TagOption { label: string; diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/UMLEditor.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/UMLEditor.tsx index c2866c16843..414211ef772 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/UMLEditor.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/UMLEditor.tsx @@ -15,12 +15,12 @@ */ import { observer } from 'mobx-react-lite'; -import { UMLEditorState } from '../../../../stores/editor-state/element-editor-state/UMLEditorState'; -import { ClassEditor } from './ClassEditor'; -import { EnumerationEditor } from './EnumerationEditor'; -import { AssociationEditor } from './AssociationEditor'; -import { ProfileEditor } from './ProfileEditor'; -import { useEditorStore } from '../../EditorStoreProvider'; +import { UMLEditorState } from '../../../../stores/editor-state/element-editor-state/UMLEditorState.js'; +import { ClassEditor } from './ClassEditor.js'; +import { EnumerationEditor } from './EnumerationEditor.js'; +import { AssociationEditor } from './AssociationEditor.js'; +import { ProfileEditor } from './ProfileEditor.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; import { Class, Enumeration, Association, Profile } from '@finos/legend-graph'; export const UMLEditor = observer(() => { diff --git a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/__tests__/UMLEditor.test.tsx b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/__tests__/UMLEditor.test.tsx index 610376e64c3..d2a518bd685 100644 --- a/packages/legend-studio/src/components/editor/edit-panel/uml-editor/__tests__/UMLEditor.test.tsx +++ b/packages/legend-studio/src/components/editor/edit-panel/uml-editor/__tests__/UMLEditor.test.tsx @@ -36,8 +36,8 @@ import { TEST__openElementFromExplorerTree, TEST__provideMockedEditorStore, TEST__setUpEditorWithDefaultSDLCData, -} from '../../../../EditorComponentTestUtils'; -import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID'; +} from '../../../../EditorComponentTestUtils.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID.js'; let renderResult: RenderResult; diff --git a/packages/legend-studio/src/components/editor/side-bar/CreateNewElementModal.tsx b/packages/legend-studio/src/components/editor/side-bar/CreateNewElementModal.tsx index f3e2f9bbd78..ec020e68a45 100644 --- a/packages/legend-studio/src/components/editor/side-bar/CreateNewElementModal.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/CreateNewElementModal.tsx @@ -15,7 +15,7 @@ */ import { useRef } from 'react'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; import { observer } from 'mobx-react-lite'; import { NewPackageableRuntimeDriver, @@ -26,25 +26,25 @@ import { CONNECTION_TYPE, NewDataElementDriver, EmbeddedDataTypeOptions, -} from '../../../stores/NewElementState'; +} from '../../../stores/NewElementState.js'; import { Dialog, compareLabelFn, CustomSelectorInput } from '@finos/legend-art'; -import type { EditorStore } from '../../../stores/EditorStore'; +import type { EditorStore } from '../../../stores/EditorStore.js'; import { prettyCONSTName } from '@finos/legend-shared'; -import type { PackageableElementOption } from '../../../stores/shared/PackageableElementOptionUtil'; -import type { DSL_LegendStudioPlugin_Extension } from '../../../stores/LegendStudioPlugin'; -import { useEditorStore } from '../EditorStoreProvider'; +import type { PackageableElementOption } from '../../../stores/shared/PackageableElementOptionUtil.js'; +import type { DSL_LegendStudioPlugin_Extension } from '../../../stores/LegendStudioPlugin.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { type Mapping, type Store, type Class, ELEMENT_PATH_DELIMITER, } from '@finos/legend-graph'; -import type { FileGenerationTypeOption } from '../../../stores/editor-state/GraphGenerationState'; +import type { FileGenerationTypeOption } from '../../../stores/editor-state/GraphGenerationState.js'; import { flowResult } from 'mobx'; import { useApplicationStore } from '@finos/legend-application'; -import type { EmbeddedDataTypeOption } from '../../../stores/editor-state/element-editor-state/data/DataEditorState'; -import type { DSLData_LegendStudioPlugin_Extension } from '../../../stores/DSLData_LegendStudioPlugin_Extension'; -import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelUtil'; +import type { EmbeddedDataTypeOption } from '../../../stores/editor-state/element-editor-state/data/DataEditorState.js'; +import type { DSLData_LegendStudioPlugin_Extension } from '../../../stores/DSLData_LegendStudioPlugin_Extension.js'; +import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelUtil.js'; export const getElementTypeLabel = ( editorStore: EditorStore, diff --git a/packages/legend-studio/src/components/editor/side-bar/Explorer.tsx b/packages/legend-studio/src/components/editor/side-bar/Explorer.tsx index cd35104e0a0..4a010d78684 100644 --- a/packages/legend-studio/src/components/editor/side-bar/Explorer.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/Explorer.tsx @@ -45,26 +45,26 @@ import { import { getElementIcon, getElementTypeIcon, -} from '../../shared/ElementIconUtils'; +} from '../../shared/ElementIconUtils.js'; import { getElementTypeLabel, CreateNewElementModal, -} from './CreateNewElementModal'; +} from './CreateNewElementModal.js'; import { useDrag } from 'react-dnd'; -import { ElementDragSource } from '../../../stores/shared/DnDUtil'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; -import { ACTIVITY_MODE } from '../../../stores/EditorConfig'; -import { getTreeChildNodes } from '../../../stores/shared/PackageTreeUtil'; -import type { PackageTreeNodeData } from '../../../stores/shared/TreeUtil'; +import { ElementDragSource } from '../../../stores/shared/DnDUtil.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; +import { ACTIVITY_MODE } from '../../../stores/EditorConfig.js'; +import { getTreeChildNodes } from '../../../stores/shared/PackageTreeUtil.js'; +import type { PackageTreeNodeData } from '../../../stores/shared/TreeUtil.js'; import { type GenerationTreeNodeData, getFileGenerationChildNodes, -} from '../../../stores/shared/FileGenerationTreeUtil'; -import { FileGenerationTree } from '../../editor/edit-panel/element-generation-editor/FileGenerationEditor'; -import { generateViewEntityRoute } from '../../../stores/LegendStudioRouter'; +} from '../../../stores/shared/FileGenerationTreeUtil.js'; +import { FileGenerationTree } from '../../editor/edit-panel/element-generation-editor/FileGenerationEditor.js'; +import { generateViewEntityRoute } from '../../../stores/LegendStudioRouter.js'; import { toTitleCase } from '@finos/legend-shared'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { ELEMENT_PATH_DELIMITER, ROOT_PACKAGE_NAME, @@ -74,8 +74,8 @@ import { getElementRootPackage, } from '@finos/legend-graph'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../../application/LegendStudioConfig'; -import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelUtil'; +import type { LegendStudioConfig } from '../../../application/LegendStudioConfig.js'; +import { PACKAGEABLE_ELEMENT_TYPE } from '../../../stores/shared/ModelUtil.js'; const isGeneratedPackageTreeNode = (node: PackageTreeNodeData): boolean => getElementRootPackage(node.packageableElement).name === diff --git a/packages/legend-studio/src/components/editor/side-bar/LocalChanges.tsx b/packages/legend-studio/src/components/editor/side-bar/LocalChanges.tsx index 834c98c8aef..5fe28361c71 100644 --- a/packages/legend-studio/src/components/editor/side-bar/LocalChanges.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/LocalChanges.tsx @@ -31,21 +31,21 @@ import { ResizablePanelSplitterLine, CloudUploadIcon, } from '@finos/legend-art'; -import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { EntityDiffSideBarItem } from '../../editor/edit-panel/diff-editor/EntityDiffView'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; +import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { EntityDiffSideBarItem } from '../../editor/edit-panel/diff-editor/EntityDiffView.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; import { flowResult } from 'mobx'; import type { EntityChange, EntityChangeConflict, EntityDiff, } from '@finos/legend-server-sdlc'; -import { entityDiffSorter } from '../../../stores/EditorSDLCState'; -import { useEditorStore } from '../EditorStoreProvider'; +import { entityDiffSorter } from '../../../stores/EditorSDLCState.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; import { useEffect } from 'react'; -import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import { EntityChangeConflictSideBarItem } from '../edit-panel/diff-editor/EntityChangeConflictEditor'; +import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import { EntityChangeConflictSideBarItem } from '../edit-panel/diff-editor/EntityChangeConflictEditor.js'; const PatchLoader = observer(() => { const editorStore = useEditorStore(); diff --git a/packages/legend-studio/src/components/editor/side-bar/ProjectOverview.tsx b/packages/legend-studio/src/components/editor/side-bar/ProjectOverview.tsx index 947160b6c56..7c7f6105f0a 100644 --- a/packages/legend-studio/src/components/editor/side-bar/ProjectOverview.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/ProjectOverview.tsx @@ -16,7 +16,7 @@ import { forwardRef, useEffect, useState } from 'react'; import { observer } from 'mobx-react-lite'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; import { Link } from 'react-router-dom'; import { clsx, @@ -33,13 +33,13 @@ import { ExternalLinkIcon, Dialog, } from '@finos/legend-art'; -import { PROJECT_OVERVIEW_ACTIVITY_MODE } from '../../../stores/sidebar-state/ProjectOverviewState'; +import { PROJECT_OVERVIEW_ACTIVITY_MODE } from '../../../stores/sidebar-state/ProjectOverviewState.js'; import { generateEditorRoute, generateViewProjectRoute, generateViewVersionRoute, generateReviewRoute, -} from '../../../stores/LegendStudioRouter'; +} from '../../../stores/LegendStudioRouter.js'; import { flowResult } from 'mobx'; import { type Workspace, @@ -48,9 +48,9 @@ import { WorkspaceType, areWorkspacesEquivalent, } from '@finos/legend-server-sdlc'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../../application/LegendStudioConfig.js'; const ShareProjectModal = observer( (props: { open: boolean; closeModal: () => void }) => { diff --git a/packages/legend-studio/src/components/editor/side-bar/SideBar.tsx b/packages/legend-studio/src/components/editor/side-bar/SideBar.tsx index 7f7427fac12..afad62b6205 100644 --- a/packages/legend-studio/src/components/editor/side-bar/SideBar.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/SideBar.tsx @@ -15,16 +15,16 @@ */ import { observer } from 'mobx-react-lite'; -import { ACTIVITY_MODE } from '../../../stores/EditorConfig'; -import { Explorer } from './Explorer'; -import { LocalChanges } from './LocalChanges'; -import { WorkspaceReview } from './WorkspaceReview'; -import { WorkspaceUpdater } from './WorkspaceUpdater'; -import { WorkspaceUpdateConflictResolver } from './WorkspaceUpdateConflictResolver'; -import { ProjectOverview } from './ProjectOverview'; -import { WorkflowManager } from './WorkflowManager'; -import { useEditorStore } from '../EditorStoreProvider'; -import { GlobalTestRunner } from './testable/GlobalTestRunner'; +import { ACTIVITY_MODE } from '../../../stores/EditorConfig.js'; +import { Explorer } from './Explorer.js'; +import { LocalChanges } from './LocalChanges.js'; +import { WorkspaceReview } from './WorkspaceReview.js'; +import { WorkspaceUpdater } from './WorkspaceUpdater.js'; +import { WorkspaceUpdateConflictResolver } from './WorkspaceUpdateConflictResolver.js'; +import { ProjectOverview } from './ProjectOverview.js'; +import { WorkflowManager } from './WorkflowManager.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; +import { GlobalTestRunner } from './testable/GlobalTestRunner.js'; /** * Wrapper component around different implementations of sidebar, such as to view domain, to manage SDLC, etc. diff --git a/packages/legend-studio/src/components/editor/side-bar/WorkflowManager.tsx b/packages/legend-studio/src/components/editor/side-bar/WorkflowManager.tsx index 744c20d64d9..0a3406f2e6f 100644 --- a/packages/legend-studio/src/components/editor/side-bar/WorkflowManager.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/WorkflowManager.tsx @@ -37,7 +37,7 @@ import { BanIcon, } from '@finos/legend-art'; import { formatDistanceToNow } from 'date-fns'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; import { flowResult } from 'mobx'; import { WorkflowJobStatus, WorkflowStatus } from '@finos/legend-server-sdlc'; import { @@ -51,13 +51,13 @@ import { type WorkflowState, WorkflowJobTreeNodeData, WorkflowTreeNodeData, -} from '../../../stores/sidebar-state/WorkflowManagerState'; +} from '../../../stores/sidebar-state/WorkflowManagerState.js'; import { guaranteeNonNullable, guaranteeType, isNonNullable, } from '@finos/legend-shared'; -import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor'; +import { StudioTextInputEditor } from '../../shared/StudioTextInputEditor.js'; const getWorkflowStatusIcon = ( workflowStatus: WorkflowStatus, diff --git a/packages/legend-studio/src/components/editor/side-bar/WorkspaceReview.tsx b/packages/legend-studio/src/components/editor/side-bar/WorkspaceReview.tsx index d004e7e3b22..9cb9c3f5028 100644 --- a/packages/legend-studio/src/components/editor/side-bar/WorkspaceReview.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/WorkspaceReview.tsx @@ -17,8 +17,8 @@ import { useRef, useEffect } from 'react'; import { observer } from 'mobx-react-lite'; import { Link } from 'react-router-dom'; -import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { EntityDiffSideBarItem } from '../../editor/edit-panel/diff-editor/EntityDiffView'; +import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { EntityDiffSideBarItem } from '../../editor/edit-panel/diff-editor/EntityDiffView.js'; import { clsx, PanelLoadingIndicator, @@ -29,20 +29,20 @@ import { PlusIcon, ExternalLinkSquareIcon, } from '@finos/legend-art'; -import { ACTIVITY_MODE } from '../../../stores/EditorConfig'; +import { ACTIVITY_MODE } from '../../../stores/EditorConfig.js'; import { formatDistanceToNow } from 'date-fns'; -import { generateReviewRoute } from '../../../stores/LegendStudioRouter'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; +import { generateReviewRoute } from '../../../stores/LegendStudioRouter.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; import { flowResult } from 'mobx'; import type { EntityDiff } from '@finos/legend-server-sdlc'; -import { entityDiffSorter } from '../../../stores/EditorSDLCState'; -import { useEditorStore } from '../EditorStoreProvider'; +import { entityDiffSorter } from '../../../stores/EditorSDLCState.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { ActionAlertType, ActionAlertActionType, useApplicationStore, } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../../application/LegendStudioConfig.js'; export const WorkspaceReviewDiffs = observer(() => { const editorStore = useEditorStore(); diff --git a/packages/legend-studio/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx b/packages/legend-studio/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx index a9d4e60db5b..d48b15bc711 100644 --- a/packages/legend-studio/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx @@ -15,7 +15,7 @@ */ import { observer } from 'mobx-react-lite'; -import { useEditorStore } from '../EditorStoreProvider'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { noop } from '@finos/legend-shared'; import { clsx, @@ -34,15 +34,15 @@ import type { import { EntityChangeConflictEditor, EntityChangeConflictSideBarItem, -} from '../edit-panel/diff-editor/EntityChangeConflictEditor'; -import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import type { EntityDiffEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState'; +} from '../edit-panel/diff-editor/EntityChangeConflictEditor.js'; +import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import type { EntityDiffEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; import { EntityDiffSideBarItem, EntityDiffView, -} from '../edit-panel/diff-editor/EntityDiffView'; -import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { entityDiffSorter } from '../../../stores/EditorSDLCState'; +} from '../edit-panel/diff-editor/EntityDiffView.js'; +import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { entityDiffSorter } from '../../../stores/EditorSDLCState.js'; import { flowResult } from 'mobx'; import { useApplicationStore } from '@finos/legend-application'; diff --git a/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdateConflictResolver.tsx b/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdateConflictResolver.tsx index 5313969fd6a..7a1532a4b27 100644 --- a/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdateConflictResolver.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdateConflictResolver.tsx @@ -15,8 +15,8 @@ */ import { observer } from 'mobx-react-lite'; -import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { EntityDiffSideBarItem } from '../edit-panel/diff-editor/EntityDiffView'; +import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { EntityDiffSideBarItem } from '../edit-panel/diff-editor/EntityDiffView.js'; import { PanelLoadingIndicator, CloudDownloadIcon, @@ -25,16 +25,16 @@ import { InfoCircleIcon, BanIcon, } from '@finos/legend-art'; -import { EntityChangeConflictSideBarItem } from '../edit-panel/diff-editor/EntityChangeConflictEditor'; -import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; +import { EntityChangeConflictSideBarItem } from '../edit-panel/diff-editor/EntityChangeConflictEditor.js'; +import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; import { flowResult } from 'mobx'; import type { EntityChangeConflict, EntityDiff, } from '@finos/legend-server-sdlc'; -import { entityDiffSorter } from '../../../stores/EditorSDLCState'; -import { useEditorStore } from '../EditorStoreProvider'; +import { entityDiffSorter } from '../../../stores/EditorSDLCState.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; export const WorkspaceUpdateConflictResolver = observer(() => { diff --git a/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdater.tsx b/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdater.tsx index da288767286..02abb4a76cc 100644 --- a/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdater.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/WorkspaceUpdater.tsx @@ -16,8 +16,8 @@ import { useEffect } from 'react'; import { observer } from 'mobx-react-lite'; -import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { EntityDiffSideBarItem } from '../../editor/edit-panel/diff-editor/EntityDiffView'; +import { EntityDiffViewState } from '../../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { EntityDiffSideBarItem } from '../../editor/edit-panel/diff-editor/EntityDiffView.js'; import { clsx, PanelLoadingIndicator, @@ -30,23 +30,23 @@ import { InfoCircleIcon, } from '@finos/legend-art'; import { Link } from 'react-router-dom'; -import { EntityChangeConflictSideBarItem } from '../../editor/edit-panel/diff-editor/EntityChangeConflictEditor'; -import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import { generateReviewRoute } from '../../../stores/LegendStudioRouter'; -import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID'; +import { EntityChangeConflictSideBarItem } from '../../editor/edit-panel/diff-editor/EntityChangeConflictEditor.js'; +import { EntityChangeConflictEditorState } from '../../../stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import { generateReviewRoute } from '../../../stores/LegendStudioRouter.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../LegendStudioTestID.js'; import { flowResult } from 'mobx'; import type { EntityChangeConflict, EntityDiff, } from '@finos/legend-server-sdlc'; -import { entityDiffSorter } from '../../../stores/EditorSDLCState'; -import { useEditorStore } from '../EditorStoreProvider'; +import { entityDiffSorter } from '../../../stores/EditorSDLCState.js'; +import { useEditorStore } from '../EditorStoreProvider.js'; import { ActionAlertType, ActionAlertActionType, useApplicationStore, } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../../application/LegendStudioConfig.js'; export const WorkspaceUpdater = observer(() => { const editorStore = useEditorStore(); diff --git a/packages/legend-studio/src/components/editor/side-bar/__tests__/CreateNewElement.test.tsx b/packages/legend-studio/src/components/editor/side-bar/__tests__/CreateNewElement.test.tsx index d1111af84af..2eeb7b36e14 100644 --- a/packages/legend-studio/src/components/editor/side-bar/__tests__/CreateNewElement.test.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/__tests__/CreateNewElement.test.tsx @@ -26,10 +26,10 @@ import { integrationTest, toTitleCase } from '@finos/legend-shared'; import { TEST__provideMockedEditorStore, TEST__setUpEditorWithDefaultSDLCData, -} from '../../../EditorComponentTestUtils'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import type { EditorStore } from '../../../../stores/EditorStore'; -import { PACKAGEABLE_ELEMENT_TYPE } from '../../../../stores/shared/ModelUtil'; +} from '../../../EditorComponentTestUtils.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import type { EditorStore } from '../../../../stores/EditorStore.js'; +import { PACKAGEABLE_ELEMENT_TYPE } from '../../../../stores/shared/ModelUtil.js'; const addRootPackage = (packagePath: string, result: RenderResult): void => { fireEvent.click(result.getByTitle('New Element...', { exact: false })); diff --git a/packages/legend-studio/src/components/editor/side-bar/__tests__/Explorer.test.tsx b/packages/legend-studio/src/components/editor/side-bar/__tests__/Explorer.test.tsx index e898e6bf5d2..f8fb9160aaf 100644 --- a/packages/legend-studio/src/components/editor/side-bar/__tests__/Explorer.test.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/__tests__/Explorer.test.tsx @@ -22,8 +22,8 @@ import { TEST__openAndAssertPathWithElement, TEST__provideMockedEditorStore, TEST__setUpEditorWithDefaultSDLCData, -} from '../../../EditorComponentTestUtils'; -import type { EditorStore } from '../../../../stores/EditorStore'; +} from '../../../EditorComponentTestUtils.js'; +import type { EditorStore } from '../../../../stores/EditorStore.js'; const packageRootChildren = ['ui']; diff --git a/packages/legend-studio/src/components/editor/side-bar/testable/GlobalTestRunner.tsx b/packages/legend-studio/src/components/editor/side-bar/testable/GlobalTestRunner.tsx index ab34542fe97..20e728615ba 100644 --- a/packages/legend-studio/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/testable/GlobalTestRunner.tsx @@ -55,11 +55,11 @@ import { getNodeTestableResult, getAtomicTest_TestResult, getAssertionStatus, -} from '../../../../stores/sidebar-state/testable/GlobalTestRunnerState'; -import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID'; -import { TextDiffView } from '../../../shared/DiffView'; -import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor'; -import { useEditorStore } from '../../EditorStoreProvider'; +} from '../../../../stores/sidebar-state/testable/GlobalTestRunnerState.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../LegendStudioTestID.js'; +import { TextDiffView } from '../../../shared/DiffView.js'; +import { StudioTextInputEditor } from '../../../shared/StudioTextInputEditor.js'; +import { useEditorStore } from '../../EditorStoreProvider.js'; const getTestableResultIcon = ( testableResult: TESTABLE_RESULT, diff --git a/packages/legend-studio/src/components/editor/side-bar/testable/__tests__/GlobalTestRunner.test.tsx b/packages/legend-studio/src/components/editor/side-bar/testable/__tests__/GlobalTestRunner.test.tsx index e54ccaaf5f4..0ca4be67b04 100644 --- a/packages/legend-studio/src/components/editor/side-bar/testable/__tests__/GlobalTestRunner.test.tsx +++ b/packages/legend-studio/src/components/editor/side-bar/testable/__tests__/GlobalTestRunner.test.tsx @@ -21,13 +21,13 @@ import { getByText, fireEvent, } from '@testing-library/react'; -import type { EditorStore } from '../../../../../stores/EditorStore'; +import type { EditorStore } from '../../../../../stores/EditorStore.js'; import { TEST__provideMockedEditorStore, TEST__setUpEditorWithDefaultSDLCData, -} from '../../../../EditorComponentTestUtils'; -import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID'; -import { TEST_DATA__RelationalServiceTestable } from './TEST_DATA__TestableData'; +} from '../../../../EditorComponentTestUtils.js'; +import { LEGEND_STUDIO_TEST_ID } from '../../../../LegendStudioTestID.js'; +import { TEST_DATA__RelationalServiceTestable } from './TEST_DATA__TestableData.js'; let renderResult: RenderResult; let mockedEditorStore: EditorStore; diff --git a/packages/legend-studio/src/components/review/Review.tsx b/packages/legend-studio/src/components/review/Review.tsx index b51417dfd00..6ff4f2b8180 100644 --- a/packages/legend-studio/src/components/review/Review.tsx +++ b/packages/legend-studio/src/components/review/Review.tsx @@ -16,11 +16,11 @@ import { useEffect } from 'react'; import { observer } from 'mobx-react-lite'; -import { ReviewStoreProvider, useReviewStore } from './ReviewStoreProvider'; +import { ReviewStoreProvider, useReviewStore } from './ReviewStoreProvider.js'; import { useParams } from 'react-router'; -import { ReviewSideBar } from './ReviewSideBar'; -import { ReviewPanel } from './ReviewPanel'; -import { ACTIVITY_MODE } from '../../stores/EditorConfig'; +import { ReviewSideBar } from './ReviewSideBar.js'; +import { ReviewPanel } from './ReviewPanel.js'; +import { ACTIVITY_MODE } from '../../stores/EditorConfig.js'; import { Link } from 'react-router-dom'; import { type ResizablePanelHandlerProps, @@ -40,12 +40,12 @@ import { type ReviewPathParams, generateViewProjectRoute, generateEditorRoute, -} from '../../stores/LegendStudioRouter'; +} from '../../stores/LegendStudioRouter.js'; import { flowResult } from 'mobx'; import { EditorStoreProvider, useEditorStore, -} from '../editor/EditorStoreProvider'; +} from '../editor/EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; const ReviewStatusBar = observer(() => { diff --git a/packages/legend-studio/src/components/review/ReviewPanel.tsx b/packages/legend-studio/src/components/review/ReviewPanel.tsx index ad45a14e7e9..14ae34e0917 100644 --- a/packages/legend-studio/src/components/review/ReviewPanel.tsx +++ b/packages/legend-studio/src/components/review/ReviewPanel.tsx @@ -20,10 +20,10 @@ import { filterByType } from '@finos/legend-shared'; import { EntityDiffViewState, DIFF_VIEW_MODE, -} from '../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { EntityDiffView } from '../editor/edit-panel/diff-editor/EntityDiffView'; -import type { EditorState } from '../../stores/editor-state/EditorState'; -import { useEditorStore } from '../editor/EditorStoreProvider'; +} from '../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { EntityDiffView } from '../editor/edit-panel/diff-editor/EntityDiffView.js'; +import type { EditorState } from '../../stores/editor-state/EditorState.js'; +import { useEditorStore } from '../editor/EditorStoreProvider.js'; import { forwardRef } from 'react'; export const ReviewPanelSplashScreen: React.FC = () => ( diff --git a/packages/legend-studio/src/components/review/ReviewSideBar.tsx b/packages/legend-studio/src/components/review/ReviewSideBar.tsx index 8dee20617c8..7b0bfb77c15 100644 --- a/packages/legend-studio/src/components/review/ReviewSideBar.tsx +++ b/packages/legend-studio/src/components/review/ReviewSideBar.tsx @@ -15,7 +15,7 @@ */ import { observer } from 'mobx-react-lite'; -import { EntityDiffSideBarItem } from '../editor/edit-panel/diff-editor/EntityDiffView'; +import { EntityDiffSideBarItem } from '../editor/edit-panel/diff-editor/EntityDiffView.js'; import { clsx, PanelLoadingIndicator, @@ -26,13 +26,13 @@ import { InfoCircleIcon, } from '@finos/legend-art'; import { formatDistanceToNow } from 'date-fns'; -import { EntityDiffViewState } from '../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID'; +import { EntityDiffViewState } from '../../stores/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js'; import { flowResult } from 'mobx'; import { type EntityDiff, ReviewState } from '@finos/legend-server-sdlc'; -import { entityDiffSorter } from '../../stores/EditorSDLCState'; -import { useReviewStore } from './ReviewStoreProvider'; -import { useEditorStore } from '../editor/EditorStoreProvider'; +import { entityDiffSorter } from '../../stores/EditorSDLCState.js'; +import { useReviewStore } from './ReviewStoreProvider.js'; +import { useEditorStore } from '../editor/EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; export const ReviewSideBar = observer(() => { diff --git a/packages/legend-studio/src/components/review/ReviewStoreProvider.tsx b/packages/legend-studio/src/components/review/ReviewStoreProvider.tsx index af7be556cd2..0f406fb419f 100644 --- a/packages/legend-studio/src/components/review/ReviewStoreProvider.tsx +++ b/packages/legend-studio/src/components/review/ReviewStoreProvider.tsx @@ -16,10 +16,10 @@ import { createContext, useContext } from 'react'; import { useLocalObservable } from 'mobx-react-lite'; -import { ReviewStore } from '../../stores/ReviewStore'; -import { EDITOR_MODE } from '../../stores/EditorConfig'; +import { ReviewStore } from '../../stores/ReviewStore.js'; +import { EDITOR_MODE } from '../../stores/EditorConfig.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { useEditorStore } from '../editor/EditorStoreProvider'; +import { useEditorStore } from '../editor/EditorStoreProvider.js'; const ReviewStoreContext = createContext(undefined); diff --git a/packages/legend-studio/src/components/setup/ProjectCreateModal.tsx b/packages/legend-studio/src/components/setup/ProjectCreateModal.tsx index 00310283a54..19f858341aa 100644 --- a/packages/legend-studio/src/components/setup/ProjectCreateModal.tsx +++ b/packages/legend-studio/src/components/setup/ProjectCreateModal.tsx @@ -24,8 +24,8 @@ import { PencilIcon, MarkdownTextViewer, } from '@finos/legend-art'; -import { useSetupStore } from './SetupStoreProvider'; -import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID'; +import { useSetupStore } from './SetupStoreProvider.js'; +import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js'; import { isNumber } from '@finos/legend-shared'; import { flowResult } from 'mobx'; import { @@ -33,9 +33,9 @@ import { DocumentationLink, useConditionedApplicationNavigationContext, } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; -import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation'; -import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../stores/LegendStudioApplicationNavigationContext'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; +import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js'; +import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../stores/LegendStudioApplicationNavigationContext.js'; enum CREATE_PROJECT_MODAL_TAB { CREATE = 'CREATE', diff --git a/packages/legend-studio/src/components/setup/ProjectSelector.tsx b/packages/legend-studio/src/components/setup/ProjectSelector.tsx index 44e3e1a83cd..9bc824b61fa 100644 --- a/packages/legend-studio/src/components/setup/ProjectSelector.tsx +++ b/packages/legend-studio/src/components/setup/ProjectSelector.tsx @@ -16,7 +16,7 @@ import { forwardRef, useEffect } from 'react'; import { observer } from 'mobx-react-lite'; -import type { ProjectOption } from '../../stores/SetupStore'; +import type { ProjectOption } from '../../stores/SetupStore.js'; import { type SelectComponent, compareLabelFn, @@ -28,11 +28,11 @@ import { import { generateSetupRoute, generateViewProjectRoute, -} from '../../stores/LegendStudioRouter'; +} from '../../stores/LegendStudioRouter.js'; import { flowResult } from 'mobx'; -import { useSetupStore } from './SetupStoreProvider'; +import { useSetupStore } from './SetupStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; export const ProjectSelector = observer( forwardRef< diff --git a/packages/legend-studio/src/components/setup/Setup.tsx b/packages/legend-studio/src/components/setup/Setup.tsx index 76f26d7f81a..e21d96ddc55 100644 --- a/packages/legend-studio/src/components/setup/Setup.tsx +++ b/packages/legend-studio/src/components/setup/Setup.tsx @@ -15,8 +15,8 @@ */ import { useState, useEffect, useRef } from 'react'; -import { ProjectSelector } from './ProjectSelector'; -import { WorkspaceSelector } from './WorkspaceSelector'; +import { ProjectSelector } from './ProjectSelector.js'; +import { WorkspaceSelector } from './WorkspaceSelector.js'; import { observer } from 'mobx-react-lite'; import { type SelectComponent, @@ -30,14 +30,14 @@ import { MarkdownTextViewer, AssistantIcon, } from '@finos/legend-art'; -import type { ProjectOption } from '../../stores/SetupStore'; -import { SetupStoreProvider, useSetupStore } from './SetupStoreProvider'; +import type { ProjectOption } from '../../stores/SetupStore.js'; +import { SetupStoreProvider, useSetupStore } from './SetupStoreProvider.js'; import { useParams } from 'react-router'; -import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID'; +import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js'; import { type SetupPathParams, generateEditorRoute, -} from '../../stores/LegendStudioRouter'; +} from '../../stores/LegendStudioRouter.js'; import { flowResult } from 'mobx'; import { WorkspaceType } from '@finos/legend-server-sdlc'; import { @@ -45,11 +45,11 @@ import { DocumentationLink, useApplicationNavigationContext, } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; -import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation'; -import { CreateProjectModal } from './ProjectCreateModal'; -import { ActivityBarMenu } from '../editor/ActivityBar'; -import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../stores/LegendStudioApplicationNavigationContext'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; +import { LEGEND_STUDIO_DOCUMENTATION_KEY } from '../../stores/LegendStudioDocumentation.js'; +import { CreateProjectModal } from './ProjectCreateModal.js'; +import { ActivityBarMenu } from '../editor/ActivityBar.js'; +import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from '../../stores/LegendStudioApplicationNavigationContext.js'; const CreateWorkspaceModal = observer(() => { const setupStore = useSetupStore(); diff --git a/packages/legend-studio/src/components/setup/SetupStoreProvider.tsx b/packages/legend-studio/src/components/setup/SetupStoreProvider.tsx index f6f3e6269bb..dc063a1758e 100644 --- a/packages/legend-studio/src/components/setup/SetupStoreProvider.tsx +++ b/packages/legend-studio/src/components/setup/SetupStoreProvider.tsx @@ -16,11 +16,11 @@ import { createContext, useContext } from 'react'; import { useLocalObservable } from 'mobx-react-lite'; -import { SetupStore } from '../../stores/SetupStore'; +import { SetupStore } from '../../stores/SetupStore.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; import { useApplicationStore } from '@finos/legend-application'; import { useSDLCServerClient } from '@finos/legend-server-sdlc'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; const SetupStoreContext = createContext(undefined); diff --git a/packages/legend-studio/src/components/setup/WorkspaceSelector.tsx b/packages/legend-studio/src/components/setup/WorkspaceSelector.tsx index d53ba9212cf..3c406fda3a7 100644 --- a/packages/legend-studio/src/components/setup/WorkspaceSelector.tsx +++ b/packages/legend-studio/src/components/setup/WorkspaceSelector.tsx @@ -16,7 +16,7 @@ import { forwardRef, useEffect } from 'react'; import { observer } from 'mobx-react-lite'; -import type { WorkspaceOption } from '../../stores/SetupStore'; +import type { WorkspaceOption } from '../../stores/SetupStore.js'; import { WorkspaceType } from '@finos/legend-server-sdlc'; import { type SelectComponent, @@ -27,10 +27,10 @@ import { UsersIcon, GitBranchIcon, } from '@finos/legend-art'; -import { generateSetupRoute } from '../../stores/LegendStudioRouter'; -import { useSetupStore } from './SetupStoreProvider'; +import { generateSetupRoute } from '../../stores/LegendStudioRouter.js'; +import { useSetupStore } from './SetupStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; const formatOptionLabel = (option: WorkspaceOption): React.ReactNode => (
diff --git a/packages/legend-studio/src/components/setup/__tests__/Setup.test.tsx b/packages/legend-studio/src/components/setup/__tests__/Setup.test.tsx index 629583529bf..369526699d3 100644 --- a/packages/legend-studio/src/components/setup/__tests__/Setup.test.tsx +++ b/packages/legend-studio/src/components/setup/__tests__/Setup.test.tsx @@ -16,13 +16,13 @@ import { test, jest, expect, beforeEach } from '@jest/globals'; import { waitFor } from '@testing-library/dom'; -import { Setup } from '../../setup/Setup'; +import { Setup } from '../../setup/Setup.js'; import { integrationTest, MOBX__disableSpyOrMock, MOBX__enableSpyOrMock, } from '@finos/legend-shared'; -import { TEST_DATA__DefaultSDLCInfo } from '../../EditorComponentTestUtils'; +import { TEST_DATA__DefaultSDLCInfo } from '../../EditorComponentTestUtils.js'; import { MemoryRouter } from 'react-router-dom'; import { render } from '@testing-library/react'; import { @@ -34,8 +34,8 @@ import { TEST__ApplicationStoreProvider, TEST__provideMockedWebApplicationNavigator, } from '@finos/legend-application'; -import { TEST__getTestStudioConfig } from '../../../stores/EditorStoreTestUtils'; -import { LegendStudioPluginManager } from '../../../application/LegendStudioPluginManager'; +import { TEST__getTestStudioConfig } from '../../../stores/EditorStoreTestUtils.js'; +import { LegendStudioPluginManager } from '../../../application/LegendStudioPluginManager.js'; let sdlcServerClient: SDLCServerClient; diff --git a/packages/legend-studio/src/components/shared/DiffView.tsx b/packages/legend-studio/src/components/shared/DiffView.tsx index 871ef4e99f6..b9edde6394b 100644 --- a/packages/legend-studio/src/components/shared/DiffView.tsx +++ b/packages/legend-studio/src/components/shared/DiffView.tsx @@ -36,7 +36,7 @@ import { tryToFormatLosslessJSONString, } from '@finos/legend-shared'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../editor/EditorStoreProvider'; +import { useEditorStore } from '../editor/EditorStoreProvider.js'; export const TextDiffView = observer( (props: { diff --git a/packages/legend-studio/src/components/shared/ElementIconUtils.tsx b/packages/legend-studio/src/components/shared/ElementIconUtils.tsx index caed4ca240c..0030c6b4eac 100644 --- a/packages/legend-studio/src/components/shared/ElementIconUtils.tsx +++ b/packages/legend-studio/src/components/shared/ElementIconUtils.tsx @@ -15,8 +15,8 @@ */ import { returnUndefOnError } from '@finos/legend-shared'; -import type { EditorStore } from '../../stores/EditorStore'; -import type { DSL_LegendStudioPlugin_Extension } from '../../stores/LegendStudioPlugin'; +import type { EditorStore } from '../../stores/EditorStore.js'; +import type { DSL_LegendStudioPlugin_Extension } from '../../stores/LegendStudioPlugin.js'; import { type PackageableElement, type Type, @@ -47,7 +47,7 @@ import { PURE_PackageIcon, PURE_DataIcon, } from '@finos/legend-art'; -import { PACKAGEABLE_ELEMENT_TYPE } from '../../stores/shared/ModelUtil'; +import { PACKAGEABLE_ELEMENT_TYPE } from '../../stores/shared/ModelUtil.js'; export const getClassPropertyIcon = (type: Type): React.ReactNode => { if (type instanceof PrimitiveType) { diff --git a/packages/legend-studio/src/components/shared/StudioLambdaEditor.tsx b/packages/legend-studio/src/components/shared/StudioLambdaEditor.tsx index e686b23ec6c..420007e76b5 100644 --- a/packages/legend-studio/src/components/shared/StudioLambdaEditor.tsx +++ b/packages/legend-studio/src/components/shared/StudioLambdaEditor.tsx @@ -25,7 +25,7 @@ import { } from '@finos/legend-application'; import { flowResult } from 'mobx'; import type { Type } from '@finos/legend-graph'; -import { useEditorStore } from '../editor/EditorStoreProvider'; +import { useEditorStore } from '../editor/EditorStoreProvider.js'; export const StudioLambdaEditor = observer( (props: { diff --git a/packages/legend-studio/src/components/shared/StudioTextInputEditor.tsx b/packages/legend-studio/src/components/shared/StudioTextInputEditor.tsx index 4b11e6cd266..df9bbe12f0d 100644 --- a/packages/legend-studio/src/components/shared/StudioTextInputEditor.tsx +++ b/packages/legend-studio/src/components/shared/StudioTextInputEditor.tsx @@ -27,7 +27,7 @@ import { useApplicationStore, } from '@finos/legend-application'; import { flowResult } from 'mobx'; -import { useEditorStore } from '../editor/EditorStoreProvider'; +import { useEditorStore } from '../editor/EditorStoreProvider.js'; export const StudioTextInputEditor: React.FC<{ inputValue: string; diff --git a/packages/legend-studio/src/components/shared/TypeTree.tsx b/packages/legend-studio/src/components/shared/TypeTree.tsx index a7f5bc77791..efb953f7ee0 100644 --- a/packages/legend-studio/src/components/shared/TypeTree.tsx +++ b/packages/legend-studio/src/components/shared/TypeTree.tsx @@ -32,9 +32,9 @@ import { ChevronRightIcon, } from '@finos/legend-art'; import { useDrag } from 'react-dnd'; -import { TypeDragSource, CORE_DND_TYPE } from '../../stores/shared/DnDUtil'; -import { getClassPropertyIcon } from './ElementIconUtils'; -import type { TypeTreeNodeData } from '../../stores/shared/TreeUtil'; +import { TypeDragSource, CORE_DND_TYPE } from '../../stores/shared/DnDUtil.js'; +import { getClassPropertyIcon } from './ElementIconUtils.js'; +import type { TypeTreeNodeData } from '../../stores/shared/TreeUtil.js'; import { type Type, type Enum, @@ -50,7 +50,7 @@ import { import { CLASS_PROPERTY_TYPE, getClassPropertyType, -} from '../../stores/shared/ModelUtil'; +} from '../../stores/shared/ModelUtil.js'; const getEnumTypeTreeNodeData = ( _enum: Enum, diff --git a/packages/legend-studio/src/components/viewer/Viewer.tsx b/packages/legend-studio/src/components/viewer/Viewer.tsx index b66877de2cc..e4e9bcc793f 100644 --- a/packages/legend-studio/src/components/viewer/Viewer.tsx +++ b/packages/legend-studio/src/components/viewer/Viewer.tsx @@ -19,15 +19,15 @@ import { observer } from 'mobx-react-lite'; import { DndProvider } from 'react-dnd'; import { HTML5Backend } from 'react-dnd-html5-backend'; import { useResizeDetector } from 'react-resize-detector'; -import { EditPanel } from '../editor/edit-panel/EditPanel'; -import { GrammarTextEditor } from '../editor/edit-panel/GrammarTextEditor'; +import { EditPanel } from '../editor/edit-panel/EditPanel.js'; +import { GrammarTextEditor } from '../editor/edit-panel/GrammarTextEditor.js'; import { useParams, Link } from 'react-router-dom'; -import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID'; +import { LEGEND_STUDIO_TEST_ID } from '../LegendStudioTestID.js'; import { ACTIVITY_MODE, LEGEND_STUDIO_HOTKEY, LEGEND_STUDIO_HOTKEY_MAP, -} from '../../stores/EditorConfig'; +} from '../../stores/EditorConfig.js'; import { type ResizablePanelHandlerProps, clsx, @@ -44,23 +44,26 @@ import { } from '@finos/legend-art'; import { isNonNullable } from '@finos/legend-shared'; import { GlobalHotKeys } from 'react-hotkeys'; -import { useViewerStore, ViewerStoreProvider } from './ViewerStoreProvider'; +import { useViewerStore, ViewerStoreProvider } from './ViewerStoreProvider.js'; import { type ViewerPathParams, generateSetupRoute, -} from '../../stores/LegendStudioRouter'; -import { ProjectSearchCommand } from '../editor/command-center/ProjectSearchCommand'; +} from '../../stores/LegendStudioRouter.js'; +import { ProjectSearchCommand } from '../editor/command-center/ProjectSearchCommand.js'; import { flowResult } from 'mobx'; import { EditorStoreProvider, useEditorStore, -} from '../editor/EditorStoreProvider'; +} from '../editor/EditorStoreProvider.js'; import { useApplicationStore } from '@finos/legend-application'; -import type { LegendStudioConfig } from '../../application/LegendStudioConfig'; -import { ActivityBarMenu, type ActivityDisplay } from '../editor/ActivityBar'; -import { Explorer } from '../editor/side-bar/Explorer'; -import { ProjectOverview } from '../editor/side-bar/ProjectOverview'; -import { WorkflowManager } from '../editor/side-bar/WorkflowManager'; +import type { LegendStudioConfig } from '../../application/LegendStudioConfig.js'; +import { + ActivityBarMenu, + type ActivityDisplay, +} from '../editor/ActivityBar.js'; +import { Explorer } from '../editor/side-bar/Explorer.js'; +import { ProjectOverview } from '../editor/side-bar/ProjectOverview.js'; +import { WorkflowManager } from '../editor/side-bar/WorkflowManager.js'; const ViewerStatusBar = observer(() => { const params = useParams(); diff --git a/packages/legend-studio/src/components/viewer/ViewerStoreProvider.tsx b/packages/legend-studio/src/components/viewer/ViewerStoreProvider.tsx index 131f6ffb586..cd7e56c5ac7 100644 --- a/packages/legend-studio/src/components/viewer/ViewerStoreProvider.tsx +++ b/packages/legend-studio/src/components/viewer/ViewerStoreProvider.tsx @@ -16,11 +16,11 @@ import { useContext, createContext } from 'react'; import { useLocalObservable } from 'mobx-react-lite'; -import { ViewerStore } from '../../stores/ViewerStore'; -import { EDITOR_MODE } from '../../stores/EditorConfig'; +import { ViewerStore } from '../../stores/ViewerStore.js'; +import { EDITOR_MODE } from '../../stores/EditorConfig.js'; import { guaranteeNonNullable } from '@finos/legend-shared'; -import { useEditorStore } from '../editor/EditorStoreProvider'; -import { ViewerEditorMode } from '../../stores/viewer/ViewerEditorMode'; +import { useEditorStore } from '../editor/EditorStoreProvider.js'; +import { ViewerEditorMode } from '../../stores/viewer/ViewerEditorMode.js'; const ViewerStoreContext = createContext(undefined); diff --git a/packages/legend-studio/src/index.ts b/packages/legend-studio/src/index.ts index c41602e194b..59799c215a5 100644 --- a/packages/legend-studio/src/index.ts +++ b/packages/legend-studio/src/index.ts @@ -15,46 +15,46 @@ */ // application -export * from './components/LegendStudioStoreProvider'; -export * from './application/LegendStudio'; -export * from './application/LegendStudioConfig'; -export * from './application/LegendStudioPluginManager'; -export * from './stores/shared/PackageableElementOptionUtil'; -export * from './stores/LegendStudioAppEvent'; +export * from './components/LegendStudioStoreProvider.js'; +export * from './application/LegendStudio.js'; +export * from './application/LegendStudioConfig.js'; +export * from './application/LegendStudioPluginManager.js'; +export * from './stores/shared/PackageableElementOptionUtil.js'; +export * from './stores/LegendStudioAppEvent.js'; // stores -export * from './stores/LegendStudioPlugin'; -export * from './stores/EditorStore'; -export * from './stores/EditorConfig'; -export { ClassEditorState } from './stores/editor-state/element-editor-state/ClassEditorState'; -export { ElementEditorState } from './stores/editor-state/element-editor-state/ElementEditorState'; -export { UnsupportedElementEditorState } from './stores/editor-state/UnsupportedElementEditorState'; +export * from './stores/LegendStudioPlugin.js'; +export * from './stores/EditorStore.js'; +export * from './stores/EditorConfig.js'; +export { ClassEditorState } from './stores/editor-state/element-editor-state/ClassEditorState.js'; +export { ElementEditorState } from './stores/editor-state/element-editor-state/ElementEditorState.js'; +export { UnsupportedElementEditorState } from './stores/editor-state/UnsupportedElementEditorState.js'; export { NewElementState, NewElementDriver, NewConnectionValueDriver, -} from './stores/NewElementState'; +} from './stores/NewElementState.js'; export { CORE_DND_TYPE, ElementDragSource, TypeDragSource, type UMLEditorElementDropTarget, type TransformDropTarget, -} from './stores/shared/DnDUtil'; -export { ExplorerTreeRootPackageLabel } from './stores/ExplorerTreeState'; -export * from './stores/graphModifier/GraphModifierHelper'; -export * from './stores/graphModifier/DomainGraphModifierHelper'; -export * from './stores/DSLMapping_LegendStudioPlugin_Extension'; -export * from './stores/DSLService_LegendStudioPlugin_Extension'; -export * from './stores/DSLData_LegendStudioPlugin_Extension'; -export * from './stores/graphModifier/DSLGeneration_GraphModifierHelper'; -export * from './stores/graphModifier/DSLService_GraphModifierHelper'; +} from './stores/shared/DnDUtil.js'; +export { ExplorerTreeRootPackageLabel } from './stores/ExplorerTreeState.js'; +export * from './stores/graphModifier/GraphModifierHelper.js'; +export * from './stores/graphModifier/DomainGraphModifierHelper.js'; +export * from './stores/DSLMapping_LegendStudioPlugin_Extension.js'; +export * from './stores/DSLService_LegendStudioPlugin_Extension.js'; +export * from './stores/DSLData_LegendStudioPlugin_Extension.js'; +export * from './stores/graphModifier/DSLGeneration_GraphModifierHelper.js'; +export * from './stores/graphModifier/DSLService_GraphModifierHelper.js'; // components -export * from './components/editor/EditorStoreProvider'; -export { ClassFormEditor } from './components/editor/edit-panel/uml-editor/ClassEditor'; -export { TypeTree } from './components/shared/TypeTree'; -export { StudioTextInputEditor } from './components/shared/StudioTextInputEditor'; +export * from './components/editor/EditorStoreProvider.js'; +export { ClassFormEditor } from './components/editor/edit-panel/uml-editor/ClassEditor.js'; +export { TypeTree } from './components/shared/TypeTree.js'; +export { StudioTextInputEditor } from './components/shared/StudioTextInputEditor.js'; // test export { @@ -62,25 +62,25 @@ export { TEST__setUpEditor, TEST__setUpEditorWithDefaultSDLCData, TEST__openElementFromExplorerTree, -} from './components/EditorComponentTestUtils'; -export * from './components/LegendStudioTestID'; -export * from './stores/EditorStoreTestUtils'; +} from './components/EditorComponentTestUtils.js'; +export * from './components/LegendStudioTestID.js'; +export * from './stores/EditorStoreTestUtils.js'; -export { MappingExecutionState } from './stores/editor-state/element-editor-state/mapping/MappingExecutionState'; -export { MappingTestState } from './stores/editor-state/element-editor-state/mapping/MappingTestState'; -export { ConnectionValueState } from './stores/editor-state/element-editor-state/connection/ConnectionEditorState'; -export * from './stores/editor-state/element-editor-state/mapping/MappingEditorState'; -export { MappingElementState } from './stores/editor-state/element-editor-state/mapping/MappingElementState'; -export { UnsupportedInstanceSetImplementationState } from './stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState'; -export { getElementIcon } from './components/shared/ElementIconUtils'; +export { MappingExecutionState } from './stores/editor-state/element-editor-state/mapping/MappingExecutionState.js'; +export { MappingTestState } from './stores/editor-state/element-editor-state/mapping/MappingTestState.js'; +export { ConnectionValueState } from './stores/editor-state/element-editor-state/connection/ConnectionEditorState.js'; +export * from './stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +export { MappingElementState } from './stores/editor-state/element-editor-state/mapping/MappingElementState.js'; +export { UnsupportedInstanceSetImplementationState } from './stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.js'; +export { getElementIcon } from './components/shared/ElementIconUtils.js'; // TO BE REMOVED: this is currently needed for project dependency dashboard export { SetupStoreProvider, useSetupStore, -} from './components/setup/SetupStoreProvider'; -export { SetupStore } from './stores/SetupStore'; -export { ProjectSelector } from './components/setup/ProjectSelector'; +} from './components/setup/SetupStoreProvider.js'; +export { SetupStore } from './stores/SetupStore.js'; +export { ProjectSelector } from './components/setup/ProjectSelector.js'; // --------------------------------------------- TO BE MODULARIZED -------------------------------------------------- @@ -88,23 +88,23 @@ export { ConnectionEditor_StringEditor, ConnectionEditor_BooleanEditor, ConnectionEditor_ArrayEditor, -} from './components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor'; -export * from './stores/DSLGenerationSpecification_LegendStudioPlugin_Extension'; +} from './components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js'; +export * from './stores/DSLGenerationSpecification_LegendStudioPlugin_Extension.js'; -export * from './stores/StoreRelational_LegendStudioPlugin_Extension'; +export * from './stores/StoreRelational_LegendStudioPlugin_Extension.js'; -export { ServicePureExecutionState } from './stores/editor-state/element-editor-state/service/ServiceExecutionState'; -export { NewServiceModal } from './components/editor/edit-panel/service-editor/NewServiceModal'; -export { GenerationFile } from './stores/shared/FileGenerationTreeUtil'; -export { FileGenerationState } from './stores/editor-state/FileGenerationState'; -export { DSLExternalFormat_LegendStudioPlugin } from './components/DSLExternalFormat_LegendStudioPlugin'; +export { ServicePureExecutionState } from './stores/editor-state/element-editor-state/service/ServiceExecutionState.js'; +export { NewServiceModal } from './components/editor/edit-panel/service-editor/NewServiceModal.js'; +export { GenerationFile } from './stores/shared/FileGenerationTreeUtil.js'; +export { FileGenerationState } from './stores/editor-state/FileGenerationState.js'; +export { DSLExternalFormat_LegendStudioPlugin } from './components/DSLExternalFormat_LegendStudioPlugin.js'; export { EmbeddedDataState, type EmbeddedDataTypeOption, ExternalFormatDataState, -} from './stores/editor-state/element-editor-state/data/DataEditorState'; +} from './stores/editor-state/element-editor-state/data/DataEditorState.js'; export { externalFormatData_setData, externalFormatData_setContentType, -} from './stores/graphModifier/DSLData_GraphModifierHelper'; -export { ExternalFormatDataEditor } from './components/editor/edit-panel/data-editor/DataElementEditor'; +} from './stores/graphModifier/DSLData_GraphModifierHelper.js'; +export { ExternalFormatDataEditor } from './components/editor/edit-panel/data-editor/DataElementEditor.js'; diff --git a/packages/legend-studio/src/stores/AbstractConflictResolutionState.ts b/packages/legend-studio/src/stores/AbstractConflictResolutionState.ts index 143bf428b08..bff0ea91df9 100644 --- a/packages/legend-studio/src/stores/AbstractConflictResolutionState.ts +++ b/packages/legend-studio/src/stores/AbstractConflictResolutionState.ts @@ -19,9 +19,9 @@ import type { EntityChangeConflictResolution, } from '@finos/legend-server-sdlc'; import type { GeneratorFn } from '@finos/legend-shared'; -import type { EntityChangeConflictEditorState } from './editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import type { EditorSDLCState } from './EditorSDLCState'; -import type { EditorStore } from './EditorStore'; +import type { EntityChangeConflictEditorState } from './editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import type { EditorSDLCState } from './EditorSDLCState.js'; +import type { EditorStore } from './EditorStore.js'; export abstract class AbstractConflictResolutionState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/ChangeDetectionState.ts b/packages/legend-studio/src/stores/ChangeDetectionState.ts index 057a096ea23..7d6e8c8b068 100644 --- a/packages/legend-studio/src/stores/ChangeDetectionState.ts +++ b/packages/legend-studio/src/stores/ChangeDetectionState.ts @@ -24,7 +24,7 @@ import { makeObservable, isComputedProp, } from 'mobx'; -import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent'; +import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent.js'; import { type GeneratorFn, LogEvent, @@ -36,8 +36,8 @@ import { promisify, ActionState, } from '@finos/legend-shared'; -import type { EditorStore } from './EditorStore'; -import type { EditorGraphState } from './EditorGraphState'; +import type { EditorStore } from './EditorStore.js'; +import type { EditorGraphState } from './EditorGraphState.js'; import type { Entity } from '@finos/legend-model-storage'; import { type EntityChangeConflictResolution, diff --git a/packages/legend-studio/src/stores/DSLData_LegendStudioPlugin_Extension.ts b/packages/legend-studio/src/stores/DSLData_LegendStudioPlugin_Extension.ts index 79eb2d08ba6..aadbc55f4e4 100644 --- a/packages/legend-studio/src/stores/DSLData_LegendStudioPlugin_Extension.ts +++ b/packages/legend-studio/src/stores/DSLData_LegendStudioPlugin_Extension.ts @@ -18,12 +18,12 @@ import type { EmbeddedData } from '@finos/legend-graph'; import type { EmbeddedDataState, EmbeddedDataTypeOption, -} from './editor-state/element-editor-state/data/DataEditorState'; -import type { EditorStore } from './EditorStore'; +} from './editor-state/element-editor-state/data/DataEditorState.js'; +import type { EditorStore } from './EditorStore.js'; import type { DSL_LegendStudioPlugin_Extension, ElementEmbeddedContentSnippetSuggestion, -} from './LegendStudioPlugin'; +} from './LegendStudioPlugin.js'; export type EmbeddedDataEditorStateBuilder = ( editorStore: EditorStore, diff --git a/packages/legend-studio/src/stores/DSLGenerationSpecification_LegendStudioPlugin_Extension.ts b/packages/legend-studio/src/stores/DSLGenerationSpecification_LegendStudioPlugin_Extension.ts index 332cf2006df..0c3ee5880d2 100644 --- a/packages/legend-studio/src/stores/DSLGenerationSpecification_LegendStudioPlugin_Extension.ts +++ b/packages/legend-studio/src/stores/DSLGenerationSpecification_LegendStudioPlugin_Extension.ts @@ -15,8 +15,8 @@ */ import type { PackageableElement } from '@finos/legend-graph'; -import type { FileGenerationState } from './editor-state/FileGenerationState'; -import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin'; +import type { FileGenerationState } from './editor-state/FileGenerationState.js'; +import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin.js'; export type FileGenerationResultViewerActionConfiguration = { key: string; diff --git a/packages/legend-studio/src/stores/DSLMapping_LegendStudioPlugin_Extension.ts b/packages/legend-studio/src/stores/DSLMapping_LegendStudioPlugin_Extension.ts index 1113ab51ae4..287fb5e74e5 100644 --- a/packages/legend-studio/src/stores/DSLMapping_LegendStudioPlugin_Extension.ts +++ b/packages/legend-studio/src/stores/DSLMapping_LegendStudioPlugin_Extension.ts @@ -14,18 +14,18 @@ * limitations under the License. */ -import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin'; -import type { ConnectionValueState } from './editor-state/element-editor-state/connection/ConnectionEditorState'; -import type { EditorStore } from './EditorStore'; +import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin.js'; +import type { ConnectionValueState } from './editor-state/element-editor-state/connection/ConnectionEditorState.js'; +import type { EditorStore } from './EditorStore.js'; import type { Store, Connection, SetImplementation } from '@finos/legend-graph'; -import type { MappingTestState } from './editor-state/element-editor-state/mapping/MappingTestState'; -import type { MappingExecutionState } from './editor-state/element-editor-state/mapping/MappingExecutionState'; -import type { NewConnectionValueDriver } from './NewElementState'; +import type { MappingTestState } from './editor-state/element-editor-state/mapping/MappingTestState.js'; +import type { MappingExecutionState } from './editor-state/element-editor-state/mapping/MappingExecutionState.js'; +import type { NewConnectionValueDriver } from './NewElementState.js'; import type { MappingElement, MappingElementSource, -} from '../stores/editor-state/element-editor-state/mapping/MappingEditorState'; -import type { MappingElementState } from '../stores/editor-state/element-editor-state/mapping/MappingElementState'; +} from '../stores/editor-state/element-editor-state/mapping/MappingEditorState.js'; +import type { MappingElementState } from '../stores/editor-state/element-editor-state/mapping/MappingElementState.js'; export type SetImplementationDecorator = ( setImplementation: SetImplementation, diff --git a/packages/legend-studio/src/stores/DSLService_LegendStudioPlugin_Extension.ts b/packages/legend-studio/src/stores/DSLService_LegendStudioPlugin_Extension.ts index 2332ddf391d..54ad70dc31e 100644 --- a/packages/legend-studio/src/stores/DSLService_LegendStudioPlugin_Extension.ts +++ b/packages/legend-studio/src/stores/DSLService_LegendStudioPlugin_Extension.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin'; +import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin.js'; import type { Connection, Runtime } from '@finos/legend-graph'; -import type { ServicePureExecutionState } from '../stores/editor-state/element-editor-state/service/ServiceExecutionState'; +import type { ServicePureExecutionState } from '../stores/editor-state/element-editor-state/service/ServiceExecutionState.js'; export type ServiceQueryEditorActionConfiguration = { key: string; diff --git a/packages/legend-studio/src/stores/EditorGraphState.ts b/packages/legend-studio/src/stores/EditorGraphState.ts index 285c6d79759..5a229d776ea 100644 --- a/packages/legend-studio/src/stores/EditorGraphState.ts +++ b/packages/legend-studio/src/stores/EditorGraphState.ts @@ -15,8 +15,8 @@ */ import { action, computed, flowResult, makeAutoObservable } from 'mobx'; -import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent'; -import { GRAPH_EDITOR_MODE, AUX_PANEL_MODE } from './EditorConfig'; +import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent.js'; +import { GRAPH_EDITOR_MODE, AUX_PANEL_MODE } from './EditorConfig.js'; import { type GeneratorFn, type PlainObject, @@ -32,11 +32,11 @@ import { filterByType, ActionState, } from '@finos/legend-shared'; -import type { EditorStore } from './EditorStore'; -import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState'; -import { GraphGenerationState } from './editor-state/GraphGenerationState'; -import { MODEL_UPDATER_INPUT_TYPE } from './editor-state/ModelLoaderState'; -import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin'; +import type { EditorStore } from './EditorStore.js'; +import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState.js'; +import { GraphGenerationState } from './editor-state/GraphGenerationState.js'; +import { MODEL_UPDATER_INPUT_TYPE } from './editor-state/ModelLoaderState.js'; +import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin.js'; import type { Entity } from '@finos/legend-model-storage'; import { type EntityChange, @@ -95,14 +95,14 @@ import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application'; -import { CONFIGURATION_EDITOR_TAB } from './editor-state/ProjectConfigurationEditorState'; -import type { DSLMapping_LegendStudioPlugin_Extension } from './DSLMapping_LegendStudioPlugin_Extension'; -import { graph_dispose } from './graphModifier/GraphModifierHelper'; +import { CONFIGURATION_EDITOR_TAB } from './editor-state/ProjectConfigurationEditorState.js'; +import type { DSLMapping_LegendStudioPlugin_Extension } from './DSLMapping_LegendStudioPlugin_Extension.js'; +import { graph_dispose } from './graphModifier/GraphModifierHelper.js'; import { PACKAGEABLE_ELEMENT_TYPE, SET_IMPLEMENTATION_TYPE, -} from './shared/ModelUtil'; -import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState'; +} from './shared/ModelUtil.js'; +import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState.js'; export enum GraphBuilderStatus { SUCCEEDED = 'SUCCEEDED', diff --git a/packages/legend-studio/src/stores/EditorSDLCState.ts b/packages/legend-studio/src/stores/EditorSDLCState.ts index 046a2e309c0..d71934612d8 100644 --- a/packages/legend-studio/src/stores/EditorSDLCState.ts +++ b/packages/legend-studio/src/stores/EditorSDLCState.ts @@ -15,7 +15,7 @@ */ import { action, flowResult, makeAutoObservable } from 'mobx'; -import type { EditorStore } from './EditorStore'; +import type { EditorStore } from './EditorStore.js'; import { type PlainObject, type GeneratorFn, @@ -26,8 +26,8 @@ import { guaranteeNonNullable, assertTrue, } from '@finos/legend-shared'; -import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent'; -import { EDITOR_MODE, ACTIVITY_MODE } from './EditorConfig'; +import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent.js'; +import { EDITOR_MODE, ACTIVITY_MODE } from './EditorConfig.js'; import { type Entity, extractEntityNameFromPath, @@ -43,7 +43,7 @@ import { Workspace, WorkspaceAccessType, } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js'; export const entityDiffSorter = (a: EntityDiff, b: EntityDiff): number => extractEntityNameFromPath(a.newPath ?? a.oldPath ?? '').localeCompare( diff --git a/packages/legend-studio/src/stores/EditorStore.ts b/packages/legend-studio/src/stores/EditorStore.ts index 7f944dc8f6a..1f874c7e0c3 100644 --- a/packages/legend-studio/src/stores/EditorStore.ts +++ b/packages/legend-studio/src/stores/EditorStore.ts @@ -15,8 +15,8 @@ */ import { action, flowResult, makeAutoObservable } from 'mobx'; -import { ClassEditorState } from './editor-state/element-editor-state/ClassEditorState'; -import { ExplorerTreeState } from './ExplorerTreeState'; +import { ClassEditorState } from './editor-state/element-editor-state/ClassEditorState.js'; +import { ExplorerTreeState } from './ExplorerTreeState.js'; import { ACTIVITY_MODE, AUX_PANEL_MODE, @@ -24,22 +24,22 @@ import { EDITOR_MODE, LEGEND_STUDIO_HOTKEY, LEGEND_STUDIO_HOTKEY_MAP, -} from './EditorConfig'; -import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState'; -import { MappingEditorState } from './editor-state/element-editor-state/mapping/MappingEditorState'; +} from './EditorConfig.js'; +import { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState.js'; +import { MappingEditorState } from './editor-state/element-editor-state/mapping/MappingEditorState.js'; import { type GraphBuilderResult, EditorGraphState, GraphBuilderStatus, -} from './EditorGraphState'; -import { ChangeDetectionState } from './ChangeDetectionState'; -import { NewElementState } from './NewElementState'; -import { WorkspaceUpdaterState } from './sidebar-state/WorkspaceUpdaterState'; -import { ProjectOverviewState } from './sidebar-state/ProjectOverviewState'; -import { WorkspaceReviewState } from './sidebar-state/WorkspaceReviewState'; -import { LocalChangesState } from './sidebar-state/LocalChangesState'; -import { WorkspaceWorkflowManagerState } from './sidebar-state/WorkflowManagerState'; -import { GrammarTextEditorState } from './editor-state/GrammarTextEditorState'; +} from './EditorGraphState.js'; +import { ChangeDetectionState } from './ChangeDetectionState.js'; +import { NewElementState } from './NewElementState.js'; +import { WorkspaceUpdaterState } from './sidebar-state/WorkspaceUpdaterState.js'; +import { ProjectOverviewState } from './sidebar-state/ProjectOverviewState.js'; +import { WorkspaceReviewState } from './sidebar-state/WorkspaceReviewState.js'; +import { LocalChangesState } from './sidebar-state/LocalChangesState.js'; +import { WorkspaceWorkflowManagerState } from './sidebar-state/WorkflowManagerState.js'; +import { GrammarTextEditorState } from './editor-state/GrammarTextEditorState.js'; import { type Clazz, type GeneratorFn, @@ -56,31 +56,31 @@ import { ActionState, filterByType, } from '@finos/legend-shared'; -import { UMLEditorState } from './editor-state/element-editor-state/UMLEditorState'; -import { ServiceEditorState } from './editor-state/element-editor-state/service/ServiceEditorState'; -import { EditorSDLCState } from './EditorSDLCState'; -import { ModelLoaderState } from './editor-state/ModelLoaderState'; -import type { EditorState } from './editor-state/EditorState'; -import { EntityDiffViewState } from './editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { FunctionEditorState } from './editor-state/element-editor-state/FunctionEditorState'; -import { ProjectConfigurationEditorState } from './editor-state/ProjectConfigurationEditorState'; -import { PackageableRuntimeEditorState } from './editor-state/element-editor-state/RuntimeEditorState'; -import { PackageableConnectionEditorState } from './editor-state/element-editor-state/connection/ConnectionEditorState'; -import { PackageableDataEditorState } from './editor-state/element-editor-state/data/DataEditorState'; -import { FileGenerationEditorState } from './editor-state/element-editor-state/FileGenerationEditorState'; -import { EntityDiffEditorState } from './editor-state/entity-diff-editor-state/EntityDiffEditorState'; -import { EntityChangeConflictEditorState } from './editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent'; -import { GenerationSpecificationEditorState } from './editor-state/GenerationSpecificationEditorState'; -import { UnsupportedElementEditorState } from './editor-state/UnsupportedElementEditorState'; -import { FileGenerationViewerState } from './editor-state/FileGenerationViewerState'; -import type { GenerationFile } from './shared/FileGenerationTreeUtil'; -import type { ElementFileGenerationState } from './editor-state/element-editor-state/ElementFileGenerationState'; -import { DevToolState } from './aux-panel-state/DevToolState'; +import { UMLEditorState } from './editor-state/element-editor-state/UMLEditorState.js'; +import { ServiceEditorState } from './editor-state/element-editor-state/service/ServiceEditorState.js'; +import { EditorSDLCState } from './EditorSDLCState.js'; +import { ModelLoaderState } from './editor-state/ModelLoaderState.js'; +import type { EditorState } from './editor-state/EditorState.js'; +import { EntityDiffViewState } from './editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { FunctionEditorState } from './editor-state/element-editor-state/FunctionEditorState.js'; +import { ProjectConfigurationEditorState } from './editor-state/ProjectConfigurationEditorState.js'; +import { PackageableRuntimeEditorState } from './editor-state/element-editor-state/RuntimeEditorState.js'; +import { PackageableConnectionEditorState } from './editor-state/element-editor-state/connection/ConnectionEditorState.js'; +import { PackageableDataEditorState } from './editor-state/element-editor-state/data/DataEditorState.js'; +import { FileGenerationEditorState } from './editor-state/element-editor-state/FileGenerationEditorState.js'; +import { EntityDiffEditorState } from './editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; +import { EntityChangeConflictEditorState } from './editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent.js'; +import { GenerationSpecificationEditorState } from './editor-state/GenerationSpecificationEditorState.js'; +import { UnsupportedElementEditorState } from './editor-state/UnsupportedElementEditorState.js'; +import { FileGenerationViewerState } from './editor-state/FileGenerationViewerState.js'; +import type { GenerationFile } from './shared/FileGenerationTreeUtil.js'; +import type { ElementFileGenerationState } from './editor-state/element-editor-state/ElementFileGenerationState.js'; +import { DevToolState } from './aux-panel-state/DevToolState.js'; import { generateSetupRoute, generateViewProjectRoute, -} from './LegendStudioRouter'; +} from './LegendStudioRouter.js'; import { HotkeyConfiguration, NonBlockingDialogState, @@ -89,8 +89,8 @@ import { import { type PackageableElementOption, buildElementOption, -} from './shared/PackageableElementOptionUtil'; -import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin'; +} from './shared/PackageableElementOptionUtil.js'; +import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin.js'; import type { Entity } from '@finos/legend-model-storage'; import { ProjectConfiguration, @@ -123,7 +123,7 @@ import { DataElement, } from '@finos/legend-graph'; import type { DepotServerClient } from '@finos/legend-server-depot'; -import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager'; +import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js'; import { type ActionAlertInfo, type ApplicationStore, @@ -133,19 +133,19 @@ import { APPLICATION_EVENT, TAB_SIZE, } from '@finos/legend-application'; -import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent'; -import type { LegendStudioConfig } from '../application/LegendStudioConfig'; -import type { EditorMode } from './editor/EditorMode'; -import { StandardEditorMode } from './editor/StandardEditorMode'; -import { WorkspaceUpdateConflictResolutionState } from './sidebar-state/WorkspaceUpdateConflictResolutionState'; +import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js'; +import type { LegendStudioConfig } from '../application/LegendStudioConfig.js'; +import type { EditorMode } from './editor/EditorMode.js'; +import { StandardEditorMode } from './editor/StandardEditorMode.js'; +import { WorkspaceUpdateConflictResolutionState } from './sidebar-state/WorkspaceUpdateConflictResolutionState.js'; import { graph_addElement, graph_deleteElement, graph_deleteOwnElement, graph_renameElement, -} from './graphModifier/GraphModifierHelper'; -import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelUtil'; -import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState'; +} from './graphModifier/GraphModifierHelper.js'; +import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelUtil.js'; +import { GlobalTestRunnerState } from './sidebar-state/testable/GlobalTestRunnerState.js'; export abstract class EditorExtensionState { /** diff --git a/packages/legend-studio/src/stores/EditorStoreTestUtils.ts b/packages/legend-studio/src/stores/EditorStoreTestUtils.ts index 0b1e046039f..fc49326b8c4 100644 --- a/packages/legend-studio/src/stores/EditorStoreTestUtils.ts +++ b/packages/legend-studio/src/stores/EditorStoreTestUtils.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { EditorStore } from './EditorStore'; -import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager'; +import { EditorStore } from './EditorStore.js'; +import { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js'; import { TEST__getTestGraphManagerState } from '@finos/legend-graph'; import { TEST__getTestSDLCServerClient } from '@finos/legend-server-sdlc'; import { TEST__getTestDepotServerClient } from '@finos/legend-server-depot'; @@ -23,7 +23,7 @@ import { TEST_DATA__applicationVersion, TEST__getTestApplicationStore, } from '@finos/legend-application'; -import { LegendStudioConfig } from '../application/LegendStudioConfig'; +import { LegendStudioConfig } from '../application/LegendStudioConfig.js'; export const TEST_DATA__studioConfig = { appName: 'test-studio-app', diff --git a/packages/legend-studio/src/stores/ExecutionPlanState.ts b/packages/legend-studio/src/stores/ExecutionPlanState.ts index 40094471a8a..1fc01c06a83 100644 --- a/packages/legend-studio/src/stores/ExecutionPlanState.ts +++ b/packages/legend-studio/src/stores/ExecutionPlanState.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import type { EditorStore } from './EditorStore'; +import type { EditorStore } from './EditorStore.js'; import { observable, action, makeObservable } from 'mobx'; import type { ExecutionNodeTreeNodeData, ExecutionPlanViewTreeNodeData, -} from '../components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanTree'; +} from '../components/editor/edit-panel/mapping-editor/execution-plan-viewer/ExecutionPlanTree.js'; import { type RawExecutionPlan, ExecutionPlan, diff --git a/packages/legend-studio/src/stores/ExplorerTreeState.ts b/packages/legend-studio/src/stores/ExplorerTreeState.ts index 1df504ac399..c560da75e44 100644 --- a/packages/legend-studio/src/stores/ExplorerTreeState.ts +++ b/packages/legend-studio/src/stores/ExplorerTreeState.ts @@ -15,7 +15,7 @@ */ import { action, observable, makeObservable } from 'mobx'; -import type { EditorStore } from './EditorStore'; +import type { EditorStore } from './EditorStore.js'; import { LogEvent, IllegalStateError, @@ -30,14 +30,14 @@ import { openNodeById, openNodes, populatePackageTreeNodeChildren, -} from './shared/PackageTreeUtil'; -import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent'; -import type { PackageTreeNodeData } from './shared/TreeUtil'; +} from './shared/PackageTreeUtil.js'; +import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js'; +import type { PackageTreeNodeData } from './shared/TreeUtil.js'; import type { TreeData } from '@finos/legend-art'; import { type GenerationTreeNodeData, getGenerationTreeData, -} from './shared/FileGenerationTreeUtil'; +} from './shared/FileGenerationTreeUtil.js'; import { type PackageableElement, ROOT_PACKAGE_NAME, diff --git a/packages/legend-studio/src/stores/LegendStudioDocumentation.ts b/packages/legend-studio/src/stores/LegendStudioDocumentation.ts index 9b67323d5e1..cb59a1701c2 100644 --- a/packages/legend-studio/src/stores/LegendStudioDocumentation.ts +++ b/packages/legend-studio/src/stores/LegendStudioDocumentation.ts @@ -18,7 +18,7 @@ import type { LegendApplicationContextualDocumentationEntryConfig, LegendApplicationDocumentationEntryConfig, } from '@finos/legend-application'; -import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from './LegendStudioApplicationNavigationContext'; +import { LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT } from './LegendStudioApplicationNavigationContext.js'; export enum LEGEND_STUDIO_DOCUMENTATION_KEY { NOT_FOUND_HELP = 'application.not-found-help', diff --git a/packages/legend-studio/src/stores/LegendStudioPlugin.ts b/packages/legend-studio/src/stores/LegendStudioPlugin.ts index 088705d1958..dace67872ea 100644 --- a/packages/legend-studio/src/stores/LegendStudioPlugin.ts +++ b/packages/legend-studio/src/stores/LegendStudioPlugin.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager'; -import type { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState'; -import type { EditorExtensionState, EditorStore } from './EditorStore'; -import type { NewElementDriver, NewElementState } from './NewElementState'; +import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js'; +import type { ElementEditorState } from './editor-state/element-editor-state/ElementEditorState.js'; +import type { EditorExtensionState, EditorStore } from './EditorStore.js'; +import type { NewElementDriver, NewElementState } from './NewElementState.js'; import type { Class, PackageableElement, @@ -28,7 +28,7 @@ import { type LegendApplicationDocumentationEntry, LegendApplicationPlugin, } from '@finos/legend-application'; -import type { TestableMetadata } from './sidebar-state/testable/GlobalTestRunnerState'; +import type { TestableMetadata } from './sidebar-state/testable/GlobalTestRunnerState.js'; export type ApplicationSetup = ( pluginManager: LegendStudioPluginManager, diff --git a/packages/legend-studio/src/stores/LegendStudioStore.ts b/packages/legend-studio/src/stores/LegendStudioStore.ts index d18b9957445..82e94c76c17 100644 --- a/packages/legend-studio/src/stores/LegendStudioStore.ts +++ b/packages/legend-studio/src/stores/LegendStudioStore.ts @@ -38,10 +38,10 @@ import { observable, } from 'mobx'; import { User, SDLCServerClient } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js'; import type { DepotServerClient } from '@finos/legend-server-depot'; -import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager'; -import type { LegendStudioConfig } from '../application/LegendStudioConfig'; +import type { LegendStudioPluginManager } from '../application/LegendStudioPluginManager.js'; +import type { LegendStudioConfig } from '../application/LegendStudioConfig.js'; const UNKNOWN_USER_ID = '(unknown)'; diff --git a/packages/legend-studio/src/stores/NewElementState.ts b/packages/legend-studio/src/stores/NewElementState.ts index c1fee52f66f..c899e54ee7c 100644 --- a/packages/legend-studio/src/stores/NewElementState.ts +++ b/packages/legend-studio/src/stores/NewElementState.ts @@ -22,7 +22,7 @@ import { makeAutoObservable, flowResult, } from 'mobx'; -import type { EditorStore } from './EditorStore'; +import type { EditorStore } from './EditorStore.js'; import { type Clazz, type GeneratorFn, @@ -32,12 +32,12 @@ import { guaranteeNonNullable, guaranteeNonEmptyString, } from '@finos/legend-shared'; -import { decorateRuntimeWithNewMapping } from './editor-state/element-editor-state/RuntimeEditorState'; -import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin'; +import { decorateRuntimeWithNewMapping } from './editor-state/element-editor-state/RuntimeEditorState.js'; +import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin.js'; import { type FileGenerationTypeOption, DEFAULT_GENERATION_SPECIFICATION_NAME, -} from './editor-state/GraphGenerationState'; +} from './editor-state/GraphGenerationState.js'; import { type PackageableElement, type Runtime, @@ -80,30 +80,30 @@ import { stub_RawLambda, stub_Database, } from '@finos/legend-graph'; -import type { DSLMapping_LegendStudioPlugin_Extension } from './DSLMapping_LegendStudioPlugin_Extension'; +import type { DSLMapping_LegendStudioPlugin_Extension } from './DSLMapping_LegendStudioPlugin_Extension.js'; import { packageableConnection_setConnectionValue, runtime_addMapping, -} from './graphModifier/DSLMapping_GraphModifierHelper'; +} from './graphModifier/DSLMapping_GraphModifierHelper.js'; import { fileGeneration_setScopeElements, fileGeneration_setType, generationSpecification_addGenerationElement, -} from './graphModifier/DSLGeneration_GraphModifierHelper'; +} from './graphModifier/DSLGeneration_GraphModifierHelper.js'; import { service_initNewService, service_setExecution, service_setLegacyTest, -} from './graphModifier/DSLService_GraphModifierHelper'; -import type { EmbeddedDataTypeOption } from './editor-state/element-editor-state/data/DataEditorState'; +} from './graphModifier/DSLService_GraphModifierHelper.js'; +import type { EmbeddedDataTypeOption } from './editor-state/element-editor-state/data/DataEditorState.js'; import { externalFormatData_setData, externalFormatData_setContentType, dataElement_setEmbeddedData, modelStoreData_setInstance, -} from './graphModifier/DSLData_GraphModifierHelper'; -import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelUtil'; -import type { DSLData_LegendStudioPlugin_Extension } from './DSLData_LegendStudioPlugin_Extension'; +} from './graphModifier/DSLData_GraphModifierHelper.js'; +import { PACKAGEABLE_ELEMENT_TYPE } from './shared/ModelUtil.js'; +import type { DSLData_LegendStudioPlugin_Extension } from './DSLData_LegendStudioPlugin_Extension.js'; export const resolvePackageAndElementName = ( _package: Package, diff --git a/packages/legend-studio/src/stores/ReviewStore.ts b/packages/legend-studio/src/stores/ReviewStore.ts index 2d9b5c401d2..698fb5be17f 100644 --- a/packages/legend-studio/src/stores/ReviewStore.ts +++ b/packages/legend-studio/src/stores/ReviewStore.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent'; +import { CHANGE_DETECTION_EVENT } from './ChangeDetectionEvent.js'; import { type GeneratorFn, type PlainObject, @@ -23,11 +23,11 @@ import { guaranteeNonNullable, } from '@finos/legend-shared'; import { makeAutoObservable, action, flowResult } from 'mobx'; -import type { EditorStore } from './EditorStore'; -import { ACTIVITY_MODE } from './EditorConfig'; +import type { EditorStore } from './EditorStore.js'; +import { ACTIVITY_MODE } from './EditorConfig.js'; import type { Entity } from '@finos/legend-model-storage'; import { Project, Review } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js'; import { TAB_SIZE } from '@finos/legend-application'; export class ReviewStore { diff --git a/packages/legend-studio/src/stores/SetupStore.ts b/packages/legend-studio/src/stores/SetupStore.ts index 171bdf5ad30..b1d3158789e 100644 --- a/packages/legend-studio/src/stores/SetupStore.ts +++ b/packages/legend-studio/src/stores/SetupStore.ts @@ -15,7 +15,7 @@ */ import { observable, action, makeAutoObservable, flowResult } from 'mobx'; -import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js'; import type { ApplicationStore } from '@finos/legend-application'; import { type GeneratorFn, @@ -24,7 +24,7 @@ import { LogEvent, ActionState, } from '@finos/legend-shared'; -import { generateSetupRoute } from './LegendStudioRouter'; +import { generateSetupRoute } from './LegendStudioRouter.js'; import { type SDLCServerClient, WorkspaceType, @@ -34,7 +34,7 @@ import { Workspace, WorkspaceAccessType, } from '@finos/legend-server-sdlc'; -import type { LegendStudioConfig } from '../application/LegendStudioConfig'; +import type { LegendStudioConfig } from '../application/LegendStudioConfig.js'; interface ImportProjectSuccessReport { projectId: string; diff --git a/packages/legend-studio/src/stores/StoreRelational_LegendStudioPlugin_Extension.ts b/packages/legend-studio/src/stores/StoreRelational_LegendStudioPlugin_Extension.ts index 1d4cbe6ef3d..29f9ee965bb 100644 --- a/packages/legend-studio/src/stores/StoreRelational_LegendStudioPlugin_Extension.ts +++ b/packages/legend-studio/src/stores/StoreRelational_LegendStudioPlugin_Extension.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin'; +import type { DSL_LegendStudioPlugin_Extension } from './LegendStudioPlugin.js'; import type { DatasourceSpecification, AuthenticationStrategy, diff --git a/packages/legend-studio/src/stores/ViewerStore.ts b/packages/legend-studio/src/stores/ViewerStore.ts index 8270a9c040f..23a2bbfe921 100644 --- a/packages/legend-studio/src/stores/ViewerStore.ts +++ b/packages/legend-studio/src/stores/ViewerStore.ts @@ -15,7 +15,7 @@ */ import { action, flowResult, makeAutoObservable, observable } from 'mobx'; -import type { EditorStore } from './EditorStore'; +import type { EditorStore } from './EditorStore.js'; import { type GeneratorFn, type PlainObject, @@ -31,7 +31,7 @@ import { generateViewVersionRoute, generateViewRevisionRoute, generateViewProjectRoute, -} from './LegendStudioRouter'; +} from './LegendStudioRouter.js'; import type { Entity } from '@finos/legend-model-storage'; import { ProjectConfiguration, @@ -40,7 +40,7 @@ import { Version, Workspace, } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from './LegendStudioAppEvent.js'; import { TAB_SIZE } from '@finos/legend-application'; import { type ProjectGAVCoordinates, @@ -54,7 +54,7 @@ import { type WorkflowManagerState, ProjectVersionWorkflowManagerState, ProjectWorkflowManagerState, -} from './sidebar-state/WorkflowManagerState'; +} from './sidebar-state/WorkflowManagerState.js'; import { type GraphBuilderReport, GraphManagerTelemetry, diff --git a/packages/legend-studio/src/stores/__tests__/ChangeDetection.test.ts b/packages/legend-studio/src/stores/__tests__/ChangeDetection.test.ts index 4172e6d4659..cb8d95415b7 100644 --- a/packages/legend-studio/src/stores/__tests__/ChangeDetection.test.ts +++ b/packages/legend-studio/src/stores/__tests__/ChangeDetection.test.ts @@ -16,15 +16,15 @@ import { test, expect } from '@jest/globals'; import { unitTest } from '@finos/legend-shared'; -import { TEST__getTestEditorStore } from '../EditorStoreTestUtils'; +import { TEST__getTestEditorStore } from '../EditorStoreTestUtils.js'; import { flowResult } from 'mobx'; import { type EntityDiff, EntityChangeType } from '@finos/legend-server-sdlc'; import { Class, getClassProperty } from '@finos/legend-graph'; -import { property_setName } from '../graphModifier/DomainGraphModifierHelper'; +import { property_setName } from '../graphModifier/DomainGraphModifierHelper.js'; import { graph_addElement, graph_deleteElement, -} from '../graphModifier/GraphModifierHelper'; +} from '../graphModifier/GraphModifierHelper.js'; const entities = [ { diff --git a/packages/legend-studio/src/stores/__tests__/ProjectDependencyManager.test.ts b/packages/legend-studio/src/stores/__tests__/ProjectDependencyManager.test.ts index 6dbe0828ca0..1be852e05ab 100644 --- a/packages/legend-studio/src/stores/__tests__/ProjectDependencyManager.test.ts +++ b/packages/legend-studio/src/stores/__tests__/ProjectDependencyManager.test.ts @@ -21,7 +21,7 @@ import { unitTest, guaranteeNonNullable, } from '@finos/legend-shared'; -import { TEST__getTestEditorStore } from '../EditorStoreTestUtils'; +import { TEST__getTestEditorStore } from '../EditorStoreTestUtils.js'; import { flowResult } from 'mobx'; import type { Entity } from '@finos/legend-model-storage'; import { ProjectConfiguration } from '@finos/legend-server-sdlc'; diff --git a/packages/legend-studio/src/stores/aux-panel-state/DevToolState.ts b/packages/legend-studio/src/stores/aux-panel-state/DevToolState.ts index cf56f62a780..1fbf77835e8 100644 --- a/packages/legend-studio/src/stores/aux-panel-state/DevToolState.ts +++ b/packages/legend-studio/src/stores/aux-panel-state/DevToolState.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; +import type { EditorStore } from '../EditorStore.js'; // TODO: We might potentially make this persisting data to local storage // as such the logic in this state might get a little more complicated, so we just leave it like this for now diff --git a/packages/legend-studio/src/stores/editor-state/EditorState.ts b/packages/legend-studio/src/stores/editor-state/EditorState.ts index cccff9c414a..8a318ae037e 100644 --- a/packages/legend-studio/src/stores/editor-state/EditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/EditorState.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; +import type { EditorStore } from '../EditorStore.js'; import { uuid } from '@finos/legend-shared'; export abstract class EditorState { diff --git a/packages/legend-studio/src/stores/editor-state/ExternalFormatState.ts b/packages/legend-studio/src/stores/editor-state/ExternalFormatState.ts index 7819f5b3516..52a2a1773c9 100644 --- a/packages/legend-studio/src/stores/editor-state/ExternalFormatState.ts +++ b/packages/legend-studio/src/stores/editor-state/ExternalFormatState.ts @@ -23,8 +23,8 @@ import { ActionState, } from '@finos/legend-shared'; import { flow, action, makeObservable, observable } from 'mobx'; -import type { EditorStore } from '../EditorStore'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; +import type { EditorStore } from '../EditorStore.js'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; export type ExternalFormatTypeOption = { value: string; diff --git a/packages/legend-studio/src/stores/editor-state/FileGenerationState.ts b/packages/legend-studio/src/stores/editor-state/FileGenerationState.ts index 4cbbee1848c..d7095bbea48 100644 --- a/packages/legend-studio/src/stores/editor-state/FileGenerationState.ts +++ b/packages/legend-studio/src/stores/editor-state/FileGenerationState.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; +import type { EditorStore } from '../EditorStore.js'; import { observable, action, makeAutoObservable } from 'mobx'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; import type { TreeData } from '@finos/legend-art'; import { type GenerationTreeNodeData, @@ -29,7 +29,7 @@ import { populateDirectoryTreeNodeChildren, buildGenerationDirectory, reprocessOpenNodes, -} from '../shared/FileGenerationTreeUtil'; +} from '../shared/FileGenerationTreeUtil.js'; import { type GeneratorFn, assertErrorThrown, @@ -54,7 +54,7 @@ import { fileGeneration_addConfigurationProperty, fileGeneration_addScopeElement, fileGeneration_deleteScopeElement, -} from '../graphModifier/DSLGeneration_GraphModifierHelper'; +} from '../graphModifier/DSLGeneration_GraphModifierHelper.js'; export class FileGenerationState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/editor-state/FileGenerationViewerState.ts b/packages/legend-studio/src/stores/editor-state/FileGenerationViewerState.ts index b7ec970213b..e92a01119d6 100644 --- a/packages/legend-studio/src/stores/editor-state/FileGenerationViewerState.ts +++ b/packages/legend-studio/src/stores/editor-state/FileGenerationViewerState.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; -import { EditorState } from './EditorState'; +import type { EditorStore } from '../EditorStore.js'; +import { EditorState } from './EditorState.js'; import { observable, makeObservable, computed } from 'mobx'; -import type { GenerationFile } from '../shared/FileGenerationTreeUtil'; +import type { GenerationFile } from '../shared/FileGenerationTreeUtil.js'; import { EDITOR_LANGUAGE, TAB_SIZE } from '@finos/legend-application'; import { returnUndefOnError } from '@finos/legend-shared'; diff --git a/packages/legend-studio/src/stores/editor-state/GenerationSpecificationEditorState.ts b/packages/legend-studio/src/stores/editor-state/GenerationSpecificationEditorState.ts index 1e0fe896e28..9abbd90376e 100644 --- a/packages/legend-studio/src/stores/editor-state/GenerationSpecificationEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/GenerationSpecificationEditorState.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { ElementEditorState } from './element-editor-state/ElementEditorState'; +import { ElementEditorState } from './element-editor-state/ElementEditorState.js'; import { guaranteeType, uuid, @@ -29,7 +29,7 @@ import { makeAutoObservable, action, } from 'mobx'; -import type { EditorStore } from '../EditorStore'; +import type { EditorStore } from '../EditorStore.js'; import { GenerationSpecification, type GenerationTreeNode, @@ -38,7 +38,7 @@ import { import { generationSpecification_addNode, generationSpecification_deleteGenerationNode, -} from '../graphModifier/DSLGeneration_GraphModifierHelper'; +} from '../graphModifier/DSLGeneration_GraphModifierHelper.js'; export interface GenerationSpecNodeDragSource { nodeState: GenerationTreeNodeState; diff --git a/packages/legend-studio/src/stores/editor-state/GrammarTextEditorState.ts b/packages/legend-studio/src/stores/editor-state/GrammarTextEditorState.ts index 99801876930..16f9b782525 100644 --- a/packages/legend-studio/src/stores/editor-state/GrammarTextEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/GrammarTextEditorState.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; +import type { EditorStore } from '../EditorStore.js'; import { action, makeAutoObservable } from 'mobx'; import { UnsupportedOperationError } from '@finos/legend-shared'; import { diff --git a/packages/legend-studio/src/stores/editor-state/GraphGenerationState.ts b/packages/legend-studio/src/stores/editor-state/GraphGenerationState.ts index 72966f21e78..937c1bc3dca 100644 --- a/packages/legend-studio/src/stores/editor-state/GraphGenerationState.ts +++ b/packages/legend-studio/src/stores/editor-state/GraphGenerationState.ts @@ -30,7 +30,7 @@ import { guaranteeNonNullable, isNonNullable, } from '@finos/legend-shared'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; import { type GenerationTreeNodeData, type GenerationOutputResult, @@ -42,14 +42,14 @@ import { populateDirectoryTreeNodeChildren, buildGenerationDirectory, reprocessOpenNodes, -} from '../shared/FileGenerationTreeUtil'; +} from '../shared/FileGenerationTreeUtil.js'; import type { TreeData } from '@finos/legend-art'; -import type { EditorStore } from '../EditorStore'; -import { ExplorerTreeRootPackageLabel } from '../ExplorerTreeState'; -import { FileGenerationViewerState } from './FileGenerationViewerState'; -import type { EditorState } from './EditorState'; -import { ElementEditorState } from './element-editor-state/ElementEditorState'; -import { ElementFileGenerationState } from './element-editor-state/ElementFileGenerationState'; +import type { EditorStore } from '../EditorStore.js'; +import { ExplorerTreeRootPackageLabel } from '../ExplorerTreeState.js'; +import { FileGenerationViewerState } from './FileGenerationViewerState.js'; +import type { EditorState } from './EditorState.js'; +import { ElementEditorState } from './element-editor-state/ElementEditorState.js'; +import { ElementFileGenerationState } from './element-editor-state/ElementFileGenerationState.js'; import type { Entity } from '@finos/legend-model-storage'; import { type GenerationConfigurationDescription, @@ -61,12 +61,12 @@ import { GenerationSpecification, ELEMENT_PATH_DELIMITER, } from '@finos/legend-graph'; -import type { DSLGenerationSpecification_LegendStudioPlugin_Extension } from '../DSLGenerationSpecification_LegendStudioPlugin_Extension'; -import { ExternalFormatState } from './ExternalFormatState'; +import type { DSLGenerationSpecification_LegendStudioPlugin_Extension } from '../DSLGenerationSpecification_LegendStudioPlugin_Extension.js'; +import { ExternalFormatState } from './ExternalFormatState.js'; import { generationSpecification_addFileGeneration, generationSpecification_addGenerationElement, -} from '../graphModifier/DSLGeneration_GraphModifierHelper'; +} from '../graphModifier/DSLGeneration_GraphModifierHelper.js'; export const DEFAULT_GENERATION_SPECIFICATION_NAME = 'MyGenerationSpecification'; diff --git a/packages/legend-studio/src/stores/editor-state/ModelLoaderState.ts b/packages/legend-studio/src/stores/editor-state/ModelLoaderState.ts index 9fac05d4ceb..75a88e72c10 100644 --- a/packages/legend-studio/src/stores/editor-state/ModelLoaderState.ts +++ b/packages/legend-studio/src/stores/editor-state/ModelLoaderState.ts @@ -15,7 +15,7 @@ */ import { observable, action, flow, makeObservable } from 'mobx'; -import { EditorState } from './EditorState'; +import { EditorState } from './EditorState.js'; import { type GeneratorFn, assertErrorThrown, @@ -23,8 +23,8 @@ import { UnsupportedOperationError, isNonNullable, } from '@finos/legend-shared'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; -import type { EditorStore } from '../EditorStore'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; +import type { EditorStore } from '../EditorStore.js'; import type { Entity } from '@finos/legend-model-storage'; import { type ImportConfigurationDescription, @@ -34,7 +34,7 @@ import { TAB_SIZE } from '@finos/legend-application'; import type { ModelLoaderExtensionConfiguration, LegendStudioPlugin, -} from '../LegendStudioPlugin'; +} from '../LegendStudioPlugin.js'; export enum MODEL_UPDATER_INPUT_TYPE { ENTITIES = 'ENTITIES', diff --git a/packages/legend-studio/src/stores/editor-state/ProjectConfigurationEditorState.ts b/packages/legend-studio/src/stores/editor-state/ProjectConfigurationEditorState.ts index 092cf57a7a8..92fd0b6557d 100644 --- a/packages/legend-studio/src/stores/editor-state/ProjectConfigurationEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/ProjectConfigurationEditorState.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; -import { EditorState } from '../editor-state/EditorState'; +import type { EditorStore } from '../EditorStore.js'; +import { EditorState } from '../editor-state/EditorState.js'; import { action, computed, @@ -31,13 +31,13 @@ import { assertErrorThrown, guaranteeNonNullable, } from '@finos/legend-shared'; -import type { EditorSDLCState } from '../EditorSDLCState'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; import { type ProjectConfiguration, ProjectStructureVersion, UpdateProjectConfigurationCommand, } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; import { ProjectData } from '@finos/legend-server-depot'; export enum CONFIGURATION_EDITOR_TAB { diff --git a/packages/legend-studio/src/stores/editor-state/UnsupportedElementEditorState.ts b/packages/legend-studio/src/stores/editor-state/UnsupportedElementEditorState.ts index a1239bd748c..effdb3b2a14 100644 --- a/packages/legend-studio/src/stores/editor-state/UnsupportedElementEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/UnsupportedElementEditorState.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { ElementEditorState } from './element-editor-state/ElementEditorState'; -import type { EditorStore } from '../EditorStore'; +import { ElementEditorState } from './element-editor-state/ElementEditorState.js'; +import type { EditorStore } from '../EditorStore.js'; import type { PackageableElement } from '@finos/legend-graph'; export class UnsupportedElementEditorState extends ElementEditorState { diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassEditorState.ts index ceb6f9e99df..4b7702cd502 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassEditorState.ts @@ -15,7 +15,7 @@ */ import { computed, observable, makeObservable, override, action } from 'mobx'; -import { UMLEditorState, UML_EDITOR_TAB } from './UMLEditorState'; +import { UMLEditorState, UML_EDITOR_TAB } from './UMLEditorState.js'; import { LogEvent, guaranteeType, @@ -25,8 +25,8 @@ import { ClassState, CONSTRAINT_SOURCE_ID_LABEL, DERIVED_PROPERTY_SOURCE_ID_LABEL, -} from './ClassState'; -import type { EditorStore } from '../../EditorStore'; +} from './ClassState.js'; +import type { EditorStore } from '../../EditorStore.js'; import { type CompilationError, type PackageableElement, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassState.ts index 61c320c2ff8..4f3f713b4b8 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/ClassState.ts @@ -21,7 +21,7 @@ import { LogEvent, guaranteeNonNullable, } from '@finos/legend-shared'; -import type { EditorStore } from '../../EditorStore'; +import type { EditorStore } from '../../EditorStore.js'; import { type Class, type Constraint, @@ -41,7 +41,7 @@ import { constraint_setFunctionDefinition, derivedProperty_setBody, derivedProperty_setParameters, -} from '../../graphModifier/DomainGraphModifierHelper'; +} from '../../graphModifier/DomainGraphModifierHelper.js'; export const CONSTRAINT_SOURCE_ID_LABEL = 'constraint'; export const DERIVED_PROPERTY_SOURCE_ID_LABEL = 'derivedProperty'; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementEditorState.ts index 14c3ea752f5..5d4a996fd6c 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementEditorState.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { EditorStore } from '../../EditorStore'; +import type { EditorStore } from '../../EditorStore.js'; import { observable, action, flow, computed, makeObservable } from 'mobx'; -import { ELEMENT_NATIVE_VIEW_MODE } from '../../EditorConfig'; -import { EditorState } from '../../editor-state/EditorState'; +import { ELEMENT_NATIVE_VIEW_MODE } from '../../EditorConfig.js'; +import { EditorState } from '../../editor-state/EditorState.js'; import { type GeneratorFn, LogEvent, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts index e45ce4e68d7..6ee6732fcf8 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/ElementFileGenerationState.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { EditorStore } from '../../EditorStore'; -import { FileGenerationState } from '../../editor-state/FileGenerationState'; +import type { EditorStore } from '../../EditorStore.js'; +import { FileGenerationState } from '../../editor-state/FileGenerationState.js'; import { action, flow, flowResult, makeAutoObservable } from 'mobx'; -import { ElementEditorState } from './ElementEditorState'; +import { ElementEditorState } from './ElementEditorState.js'; import { type GeneratorFn, AssertionError, uuid } from '@finos/legend-shared'; import { FileGenerationSpecification, @@ -26,7 +26,7 @@ import { import { createObservableFileGeneration, fileGeneration_setType, -} from '../../graphModifier/DSLGeneration_GraphModifierHelper'; +} from '../../graphModifier/DSLGeneration_GraphModifierHelper.js'; export class ElementFileGenerationState { readonly uuid = uuid(); diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/FileGenerationEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/FileGenerationEditorState.ts index 5df74bfcc9b..83fe06a6ea2 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/FileGenerationEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/FileGenerationEditorState.ts @@ -15,10 +15,10 @@ */ import { computed, action, observable, makeObservable, flowResult } from 'mobx'; -import { ElementEditorState } from './ElementEditorState'; +import { ElementEditorState } from './ElementEditorState.js'; import { assertType, guaranteeType } from '@finos/legend-shared'; -import type { EditorStore } from '../../EditorStore'; -import { FileGenerationState } from '../../editor-state/FileGenerationState'; +import type { EditorStore } from '../../EditorStore.js'; +import { FileGenerationState } from '../../editor-state/FileGenerationState.js'; import { type PackageableElement, FileGenerationSpecification, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/FunctionEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/FunctionEditorState.ts index 0fc1c004cf9..1878015dbdb 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/FunctionEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/FunctionEditorState.ts @@ -15,7 +15,7 @@ */ import { computed, observable, action, makeObservable } from 'mobx'; -import type { EditorStore } from '../../EditorStore'; +import type { EditorStore } from '../../EditorStore.js'; import { type GeneratorFn, assertErrorThrown, @@ -23,7 +23,7 @@ import { guaranteeType, assertType, } from '@finos/legend-shared'; -import { ElementEditorState } from './ElementEditorState'; +import { ElementEditorState } from './ElementEditorState.js'; import { type CompilationError, type PackageableElement, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts index 615e7425860..cdc2bb0c596 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/RuntimeEditorState.ts @@ -15,7 +15,7 @@ */ import { computed, action, observable, makeObservable } from 'mobx'; -import type { EditorStore } from '../../EditorStore'; +import type { EditorStore } from '../../EditorStore.js'; import { guaranteeType, uuid, @@ -26,11 +26,11 @@ import { assertErrorThrown, filterByType, } from '@finos/legend-shared'; -import { ElementEditorState } from './ElementEditorState'; -import type { RuntimeExplorerTreeNodeData } from '../../shared/TreeUtil'; +import { ElementEditorState } from './ElementEditorState.js'; +import type { RuntimeExplorerTreeNodeData } from '../../shared/TreeUtil.js'; import type { TreeData } from '@finos/legend-art'; -import { ConnectionEditorState } from './connection/ConnectionEditorState'; -import { getMappingElementSource } from './mapping/MappingEditorState'; +import { ConnectionEditorState } from './connection/ConnectionEditorState.js'; +import { getMappingElementSource } from './mapping/MappingEditorState.js'; import { type PackageableElement, type Mapping, @@ -66,15 +66,15 @@ import { getAllIdentifiedConnections, generateIdentifiedConnectionId, } from '@finos/legend-graph'; -import type { DSLMapping_LegendStudioPlugin_Extension } from '../../DSLMapping_LegendStudioPlugin_Extension'; -import { packageableElementReference_setValue } from '../../graphModifier/DomainGraphModifierHelper'; +import type { DSLMapping_LegendStudioPlugin_Extension } from '../../DSLMapping_LegendStudioPlugin_Extension.js'; +import { packageableElementReference_setValue } from '../../graphModifier/DomainGraphModifierHelper.js'; import { runtime_addIdentifiedConnection, runtime_addMapping, runtime_addUniqueStoreConnectionsForStore, runtime_deleteIdentifiedConnection, runtime_deleteMapping, -} from '../../graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../graphModifier/DSLMapping_GraphModifierHelper.js'; /* @MARKER: NEW CLASS MAPPING TYPE SUPPORT --- consider adding class mapping type handler here whenever support for a new one is added to the app */ export const getClassMappingStore = ( diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/UMLEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/UMLEditorState.ts index 43a0cbd1bea..44dbec326ff 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/UMLEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/UMLEditorState.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { EditorStore } from '../../EditorStore'; +import type { EditorStore } from '../../EditorStore.js'; import { observable, action, makeObservable } from 'mobx'; import { UnsupportedOperationError } from '@finos/legend-shared'; -import { ElementEditorState } from './ElementEditorState'; +import { ElementEditorState } from './ElementEditorState.js'; import { type PackageableElement, Class, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts index a8fc28e58a2..d56cf605acf 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/ConnectionEditorState.ts @@ -15,15 +15,15 @@ */ import { computed, observable, action, makeObservable } from 'mobx'; -import type { EditorStore } from '../../../EditorStore'; +import type { EditorStore } from '../../../EditorStore.js'; import { guaranteeType, uuid, UnsupportedOperationError, } from '@finos/legend-shared'; -import { ElementEditorState } from './../ElementEditorState'; -import type { StoreRelational_LegendStudioPlugin_Extension } from '../../../StoreRelational_LegendStudioPlugin_Extension'; -import { DatabaseBuilderState } from './DatabaseBuilderState'; +import { ElementEditorState } from './../ElementEditorState.js'; +import type { StoreRelational_LegendStudioPlugin_Extension } from '../../../StoreRelational_LegendStudioPlugin_Extension.js'; +import { DatabaseBuilderState } from './DatabaseBuilderState.js'; import { type PackageableElement, type Connection, @@ -52,11 +52,11 @@ import { createValidationError, isStubbed_PackageableElement, } from '@finos/legend-graph'; -import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../DSLMapping_LegendStudioPlugin_Extension'; +import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../DSLMapping_LegendStudioPlugin_Extension.js'; import { relationDbConnection_setNewAuthenticationStrategy, relationDbConnection_setDatasourceSpecification, -} from '../../../graphModifier/StoreRelational_GraphModifierHelper'; +} from '../../../graphModifier/StoreRelational_GraphModifierHelper.js'; export abstract class ConnectionValueState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts index aac783f26ac..63b40d8ff68 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/connection/DatabaseBuilderState.ts @@ -30,8 +30,8 @@ import { ActionState, } from '@finos/legend-shared'; import { observable, action, makeObservable, flow, flowResult } from 'mobx'; -import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent'; -import type { EditorStore } from '../../../EditorStore'; +import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent.js'; +import type { EditorStore } from '../../../EditorStore.js'; import { type RelationalDatabaseConnection, type Schema, @@ -49,7 +49,7 @@ import { getNullableSchema, getNullableTable, } from '@finos/legend-graph'; -import { connection_setStore } from '../../../graphModifier/DSLMapping_GraphModifierHelper'; +import { connection_setStore } from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; export abstract class DatabaseBuilderTreeNodeData implements TreeNodeData { isOpen?: boolean | undefined; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/data/DataEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/data/DataEditorState.ts index 41084e64105..a4d9ca5b54b 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/data/DataEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/data/DataEditorState.ts @@ -23,9 +23,9 @@ import { } from '@finos/legend-graph'; import { guaranteeType, uuid } from '@finos/legend-shared'; import { action, computed, makeObservable, observable } from 'mobx'; -import type { DSLData_LegendStudioPlugin_Extension } from '../../../DSLData_LegendStudioPlugin_Extension'; -import type { EditorStore } from '../../../EditorStore'; -import { ElementEditorState } from '../ElementEditorState'; +import type { DSLData_LegendStudioPlugin_Extension } from '../../../DSLData_LegendStudioPlugin_Extension.js'; +import type { EditorStore } from '../../../EditorStore.js'; +import { ElementEditorState } from '../ElementEditorState.js'; export enum DATA_TAB_TYPE { GENERAL = 'GENERAL', diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/BindingEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/BindingEditorState.ts index ae4907ae3eb..c4747edabbd 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/BindingEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/BindingEditorState.ts @@ -17,8 +17,8 @@ import { computed, action, makeObservable, observable } from 'mobx'; import { guaranteeType } from '@finos/legend-shared'; import { Binding, type PackageableElement } from '@finos/legend-graph'; -import { ElementEditorState } from '../ElementEditorState'; -import type { EditorStore } from '../../../EditorStore'; +import { ElementEditorState } from '../ElementEditorState.js'; +import type { EditorStore } from '../../../EditorStore.js'; export enum BINDING_TAB_TYPE { GENERAL = 'GENERAL', diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/SchemaSetEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/SchemaSetEditorState.ts index 5db30a64e46..8fcc7e52453 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/SchemaSetEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/external-format/SchemaSetEditorState.ts @@ -46,10 +46,10 @@ import { } from '@finos/legend-graph'; import type { Entity } from '@finos/legend-model-storage'; import { type EntityChange, EntityChangeType } from '@finos/legend-server-sdlc'; -import type { EditorStore } from '../../../EditorStore'; -import { ElementEditorState } from '../ElementEditorState'; -import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent'; -import { configurationProperty_setValue } from '../../../graphModifier/DSLGeneration_GraphModifierHelper'; +import type { EditorStore } from '../../../EditorStore.js'; +import { ElementEditorState } from '../ElementEditorState.js'; +import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent.js'; +import { configurationProperty_setValue } from '../../../graphModifier/DSLGeneration_GraphModifierHelper.js'; export enum SCHEMA_SET_TAB_TYPE { GENERAL = 'GENERAL', diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts index b9e30c79dec..b660820b033 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts @@ -18,7 +18,7 @@ import { observable, action, computed, makeObservable } from 'mobx'; import { InstanceSetImplementationState, PropertyMappingState, -} from './MappingElementState'; +} from './MappingElementState.js'; import { type GeneratorFn, assertErrorThrown, @@ -27,8 +27,8 @@ import { guaranteeType, IllegalStateError, } from '@finos/legend-shared'; -import type { EditorStore } from '../../../EditorStore'; -import { MappingElementDecorator } from './MappingElementDecorator'; +import type { EditorStore } from '../../../EditorStore.js'; +import { MappingElementDecorator } from './MappingElementDecorator.js'; import { type SourceInformation, type CompilationError, @@ -50,7 +50,7 @@ import { stub_RawLambda, isStubbed_RawLambda, } from '@finos/legend-graph'; -import { MAPPING_ELEMENT_SOURCE_ID_LABEL } from './MappingEditorState'; +import { MAPPING_ELEMENT_SOURCE_ID_LABEL } from './MappingEditorState.js'; export class FlatDataPropertyMappingState extends PropertyMappingState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts index fcefc671b53..7a4609ab3dc 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingEditorState.ts @@ -22,19 +22,19 @@ import { makeObservable, flowResult, } from 'mobx'; -import type { EditorStore } from '../../../EditorStore'; +import type { EditorStore } from '../../../EditorStore.js'; import { InstanceSetImplementationState, MappingElementState, -} from './MappingElementState'; -import { PureInstanceSetImplementationState } from './PureInstanceSetImplementationState'; -import { ElementEditorState } from '../../../editor-state/element-editor-state/ElementEditorState'; +} from './MappingElementState.js'; +import { PureInstanceSetImplementationState } from './PureInstanceSetImplementationState.js'; +import { ElementEditorState } from '../../../editor-state/element-editor-state/ElementEditorState.js'; import { MAPPING_TEST_EDITOR_TAB_TYPE, MappingTestState, TEST_RESULT, -} from './MappingTestState'; -import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil'; +} from './MappingTestState.js'; +import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil.js'; import { type GeneratorFn, assertErrorThrown, @@ -51,17 +51,17 @@ import { addUniqueEntry, filterByType, } from '@finos/legend-shared'; -import { MappingExecutionState } from './MappingExecutionState'; +import { MappingExecutionState } from './MappingExecutionState.js'; import { FlatDataInstanceSetImplementationState, RootFlatDataInstanceSetImplementationState, -} from './FlatDataInstanceSetImplementationState'; +} from './FlatDataInstanceSetImplementationState.js'; import type { TreeNodeData, TreeData } from '@finos/legend-art'; -import { UnsupportedInstanceSetImplementationState } from './UnsupportedInstanceSetImplementationState'; +import { UnsupportedInstanceSetImplementationState } from './UnsupportedInstanceSetImplementationState.js'; import { RelationalInstanceSetImplementationState, RootRelationalInstanceSetImplementationState, -} from './relational/RelationalInstanceSetImplementationState'; +} from './relational/RelationalInstanceSetImplementationState.js'; import { type CompilationError, type PackageableElement, @@ -110,9 +110,9 @@ import { LambdaEditorState } from '@finos/legend-application'; import type { DSLMapping_LegendStudioPlugin_Extension, MappingElementLabel, -} from '../../../DSLMapping_LegendStudioPlugin_Extension'; -import type { LegendStudioPlugin } from '../../../LegendStudioPlugin'; -import { flatData_setSourceRootRecordType } from '../../../graphModifier/StoreFlatData_GraphModifierHelper'; +} from '../../../DSLMapping_LegendStudioPlugin_Extension.js'; +import type { LegendStudioPlugin } from '../../../LegendStudioPlugin.js'; +import { flatData_setSourceRootRecordType } from '../../../graphModifier/StoreFlatData_GraphModifierHelper.js'; import { pureInstanceSetImpl_setSrcClass, mapping_addClassMapping, @@ -124,8 +124,8 @@ import { mapping_deleteTest, setImpl_updateRootOnCreate, setImpl_updateRootOnDelete, -} from '../../../graphModifier/DSLMapping_GraphModifierHelper'; -import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../shared/ModelUtil'; +} from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; +import { BASIC_SET_IMPLEMENTATION_TYPE } from '../../../shared/ModelUtil.js'; export interface MappingExplorerTreeNodeData extends TreeNodeData { mappingElement: MappingElement; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts index 8de118e56a4..3a58fed13e4 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementDecorator.ts @@ -62,8 +62,8 @@ import { getAllClassProperties, getRawGenericType, } from '@finos/legend-graph'; -import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../DSLMapping_LegendStudioPlugin_Extension'; -import type { EditorStore } from '../../../EditorStore'; +import type { DSLMapping_LegendStudioPlugin_Extension } from '../../../DSLMapping_LegendStudioPlugin_Extension.js'; +import type { EditorStore } from '../../../EditorStore.js'; import { enumMapping_setEnumValueMappings, enumValueMapping_addSourceValue, @@ -72,8 +72,8 @@ import { operationMapping_setParameters, pureInstanceSetImpl_setPropertyMappings, purePropertyMapping_setTransformer, -} from '../../../graphModifier/DSLMapping_GraphModifierHelper'; -import { rootRelationalSetImp_setPropertyMappings } from '../../../graphModifier/StoreRelational_GraphModifierHelper'; +} from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; +import { rootRelationalSetImp_setPropertyMappings } from '../../../graphModifier/StoreRelational_GraphModifierHelper.js'; /** * Iterate through all properties (including supertypes' properties) of the set implementation diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts index 81c2b150a52..4ae4c8a1276 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingElementState.ts @@ -16,8 +16,8 @@ import { observable, computed, makeObservable, action, flow } from 'mobx'; import { type GeneratorFn, uuid } from '@finos/legend-shared'; -import type { EditorStore } from '../../../EditorStore'; -import type { MappingElement } from './MappingEditorState'; +import type { EditorStore } from '../../../EditorStore.js'; +import type { MappingElement } from './MappingEditorState.js'; import type { PropertyMapping, InstanceSetImplementation, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts index 236f2cc1d55..472c000c69e 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingExecutionState.ts @@ -20,8 +20,8 @@ import { getMappingElementSource, getMappingElementTarget, generateMappingTestName, -} from './MappingEditorState'; -import type { EditorStore } from '../../../EditorStore'; +} from './MappingEditorState.js'; +import type { EditorStore } from '../../../EditorStore.js'; import { observable, action, @@ -48,8 +48,8 @@ import { guaranteeType, ContentType, } from '@finos/legend-shared'; -import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil'; -import { ExecutionPlanState } from '../../../ExecutionPlanState'; +import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil.js'; +import { ExecutionPlanState } from '../../../ExecutionPlanState.js'; import { type Runtime, type InputData, @@ -104,17 +104,17 @@ import { objectInputData_setData, runtime_addIdentifiedConnection, runtime_addMapping, -} from '../../../graphModifier/DSLMapping_GraphModifierHelper'; -import { flatData_setData } from '../../../graphModifier/StoreFlatData_GraphModifierHelper'; +} from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; +import { flatData_setData } from '../../../graphModifier/StoreFlatData_GraphModifierHelper.js'; import { service_initNewService, service_setExecution, -} from '../../../graphModifier/DSLService_GraphModifierHelper'; +} from '../../../graphModifier/DSLService_GraphModifierHelper.js'; import { localH2DatasourceSpecification_setTestDataSetupCsv, localH2DatasourceSpecification_setTestDataSetupSqls, relationalInputData_setData, -} from '../../../graphModifier/StoreRelational_GraphModifierHelper'; +} from '../../../graphModifier/StoreRelational_GraphModifierHelper.js'; export class MappingExecutionQueryState extends LambdaEditorState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts index b8a2e3a0d64..47b40fc944b 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/MappingTestState.ts @@ -17,7 +17,7 @@ import type { MappingEditorState, MappingElementSource, -} from './MappingEditorState'; +} from './MappingEditorState.js'; import { type GeneratorFn, LogEvent, @@ -38,7 +38,7 @@ import { tryToMinifyJSONString, ContentType, } from '@finos/legend-shared'; -import type { EditorStore } from '../../../EditorStore'; +import type { EditorStore } from '../../../EditorStore.js'; import { observable, flow, @@ -47,8 +47,8 @@ import { makeAutoObservable, flowResult, } from 'mobx'; -import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil'; -import { ExecutionPlanState } from '../../../ExecutionPlanState'; +import { createMockDataForMappingElementSource } from '../../../shared/MockDataUtil.js'; +import { ExecutionPlanState } from '../../../ExecutionPlanState.js'; import { type MappingTest, type RawLambda, @@ -87,7 +87,7 @@ import { DEPRECATED__validate_MappingTest, } from '@finos/legend-graph'; import { LambdaEditorState, TAB_SIZE } from '@finos/legend-application'; -import { flatData_setData } from '../../../graphModifier/StoreFlatData_GraphModifierHelper'; +import { flatData_setData } from '../../../graphModifier/StoreFlatData_GraphModifierHelper.js'; import { expectedOutputMappingTestAssert_setExpectedOutput, mappingTest_setAssert, @@ -95,12 +95,12 @@ import { objectInputData_setData, runtime_addIdentifiedConnection, runtime_addMapping, -} from '../../../graphModifier/DSLMapping_GraphModifierHelper'; +} from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; import { localH2DatasourceSpecification_setTestDataSetupCsv, localH2DatasourceSpecification_setTestDataSetupSqls, relationalInputData_setData, -} from '../../../graphModifier/StoreRelational_GraphModifierHelper'; +} from '../../../graphModifier/StoreRelational_GraphModifierHelper.js'; export enum TEST_RESULT { NONE = 'NONE', // test has not run yet diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts index 1a04c9d2a0d..d7504dc135c 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts @@ -18,16 +18,16 @@ import { observable, action, computed, makeObservable, flow } from 'mobx'; import { InstanceSetImplementationState, PropertyMappingState, -} from './MappingElementState'; -import type { EditorStore } from '../../../EditorStore'; -import { MappingElementDecorator } from './MappingElementDecorator'; +} from './MappingElementState.js'; +import type { EditorStore } from '../../../EditorStore.js'; +import { MappingElementDecorator } from './MappingElementDecorator.js'; import { type GeneratorFn, assertErrorThrown, LogEvent, isNonNullable, } from '@finos/legend-shared'; -import { MAPPING_ELEMENT_SOURCE_ID_LABEL } from './MappingEditorState'; +import { MAPPING_ELEMENT_SOURCE_ID_LABEL } from './MappingEditorState.js'; import { type PurePropertyMapping, type PureInstanceSetImplementation, @@ -40,7 +40,7 @@ import { isStubbed_RawLambda, } from '@finos/legend-graph'; import { LambdaEditorState } from '@finos/legend-application'; -import { pureInstanceSetImpl_setMappingFilter } from '../../../graphModifier/DSLMapping_GraphModifierHelper'; +import { pureInstanceSetImpl_setMappingFilter } from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; export const FILTER_SOURCE_ID_LABEL = 'filter'; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.ts index f1644d4c80b..209ca95e8b9 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/UnsupportedInstanceSetImplementationState.ts @@ -15,7 +15,7 @@ */ import type { GeneratorFn } from '@finos/legend-shared'; -import { InstanceSetImplementationState } from './MappingElementState'; +import { InstanceSetImplementationState } from './MappingElementState.js'; export class UnsupportedInstanceSetImplementationState extends InstanceSetImplementationState { decorate(): void { diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts index 9aa73d14c21..3b6b1d654b0 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts @@ -18,7 +18,7 @@ import { observable, action, computed, makeObservable } from 'mobx'; import { InstanceSetImplementationState, PropertyMappingState, -} from '../MappingElementState'; +} from '../MappingElementState.js'; import { type GeneratorFn, assertErrorThrown, @@ -27,9 +27,9 @@ import { isNonNullable, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { EditorStore } from '../../../../EditorStore'; -import { MappingElementDecorator } from '../MappingElementDecorator'; -import { MAPPING_ELEMENT_SOURCE_ID_LABEL } from '../MappingEditorState'; +import type { EditorStore } from '../../../../EditorStore.js'; +import { MappingElementDecorator } from '../MappingElementDecorator.js'; +import { MAPPING_ELEMENT_SOURCE_ID_LABEL } from '../MappingEditorState.js'; import { type PropertyMapping, type RelationalInstanceSetImplementation, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/LegacyServiceTestState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/LegacyServiceTestState.ts index 514a64a6dea..c8c104266b3 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/LegacyServiceTestState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/LegacyServiceTestState.ts @@ -15,9 +15,9 @@ */ import { observable, action, flow, computed, makeObservable } from 'mobx'; -import type { ServiceEditorState } from './ServiceEditorState'; -import { TEST_RESULT } from '../mapping/MappingTestState'; -import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent'; +import type { ServiceEditorState } from './ServiceEditorState.js'; +import { TEST_RESULT } from '../mapping/MappingTestState.js'; +import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent.js'; import { type GeneratorFn, assertErrorThrown, @@ -34,7 +34,7 @@ import { isNonNullable, guaranteeNonNullable, } from '@finos/legend-shared'; -import type { EditorStore } from '../../../EditorStore'; +import type { EditorStore } from '../../../EditorStore.js'; import { type DEPRECATED__ServiceTestResult, type DEPRECATED__KeyedSingleExecutionTest, @@ -66,17 +66,17 @@ import { generateIdentifiedConnectionId, } from '@finos/legend-graph'; import { TAB_SIZE } from '@finos/legend-application'; -import type { DSLService_LegendStudioPlugin_Extension } from '../../../DSLService_LegendStudioPlugin_Extension'; -import { runtime_addIdentifiedConnection } from '../../../graphModifier/DSLMapping_GraphModifierHelper'; +import type { DSLService_LegendStudioPlugin_Extension } from '../../../DSLService_LegendStudioPlugin_Extension.js'; +import { runtime_addIdentifiedConnection } from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; import { singleExecTest_addAssert, singleExecTest_deleteAssert, singleExecTest_setData, -} from '../../../graphModifier/DSLService_GraphModifierHelper'; +} from '../../../graphModifier/DSLService_GraphModifierHelper.js'; import { createMockEnumerationProperty, createMockPrimitiveProperty, -} from '../../../shared/MockDataUtil'; +} from '../../../shared/MockDataUtil.js'; interface ServiceTestExecutionResult { expected: string; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceEditorState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceEditorState.ts index f5e9679004a..088216ee4fa 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceEditorState.ts @@ -16,13 +16,13 @@ import { observable, computed, action, makeObservable } from 'mobx'; import { guaranteeType, UnsupportedOperationError } from '@finos/legend-shared'; -import type { EditorStore } from '../../../EditorStore'; +import type { EditorStore } from '../../../EditorStore.js'; import { type ServiceExecutionState, ServicePureExecutionState, -} from './ServiceExecutionState'; -import { ServiceRegistrationState } from '../../../editor-state/element-editor-state/service/ServiceRegistrationState'; -import { ElementEditorState } from '../../../editor-state/element-editor-state/ElementEditorState'; +} from './ServiceExecutionState.js'; +import { ServiceRegistrationState } from '../../../editor-state/element-editor-state/service/ServiceRegistrationState.js'; +import { ElementEditorState } from '../../../editor-state/element-editor-state/ElementEditorState.js'; import { type PackageableElement, Service, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts index c7dc2090666..255b2f28d2f 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceExecutionState.ts @@ -25,15 +25,15 @@ import { UnsupportedOperationError, guaranteeType, } from '@finos/legend-shared'; -import { LegacySingleExecutionTestState } from './LegacyServiceTestState'; -import type { EditorStore } from '../../../EditorStore'; -import type { ServiceEditorState } from './ServiceEditorState'; +import { LegacySingleExecutionTestState } from './LegacyServiceTestState.js'; +import type { EditorStore } from '../../../EditorStore.js'; +import type { ServiceEditorState } from './ServiceEditorState.js'; import { decorateRuntimeWithNewMapping, RuntimeEditorState, -} from '../../../editor-state/element-editor-state/RuntimeEditorState'; +} from '../../../editor-state/element-editor-state/RuntimeEditorState.js'; import { LambdaEditorState, TAB_SIZE } from '@finos/legend-application'; -import { ExecutionPlanState } from '../../../ExecutionPlanState'; +import { ExecutionPlanState } from '../../../ExecutionPlanState.js'; import { type ServiceExecution, type KeyedExecutionParameter, @@ -59,13 +59,13 @@ import { } from '@finos/legend-graph'; import type { Entity } from '@finos/legend-model-storage'; import { parseGACoordinates } from '@finos/legend-server-depot'; -import { runtime_addMapping } from '../../../graphModifier/DSLMapping_GraphModifierHelper'; +import { runtime_addMapping } from '../../../graphModifier/DSLMapping_GraphModifierHelper.js'; import { pureExecution_setFunction, pureSingleExecution_setRuntime, singleExecTest_setData, -} from '../../../graphModifier/DSLService_GraphModifierHelper'; -import { ServiceTestSuiteState } from './ServiceTestSuiteState'; +} from '../../../graphModifier/DSLService_GraphModifierHelper.js'; +import { ServiceTestSuiteState } from './ServiceTestSuiteState.js'; export enum SERVICE_EXECUTION_TAB { EXECUTION_CONTEXT = 'EXECUTION_CONTEXT', diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts index 9c372796353..a2c448eaa44 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceRegistrationState.ts @@ -18,8 +18,8 @@ import { action, computed, makeAutoObservable } from 'mobx'; import { type ServiceEditorState, MINIMUM_SERVICE_OWNERS, -} from '../../../editor-state/element-editor-state/service/ServiceEditorState'; -import type { EditorStore } from '../../../EditorStore'; +} from '../../../editor-state/element-editor-state/service/ServiceEditorState.js'; +import type { EditorStore } from '../../../EditorStore.js'; import { type GeneratorFn, assertErrorThrown, @@ -32,13 +32,13 @@ import { getNullableFirstElement, assertTrue, } from '@finos/legend-shared'; -import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../../../LegendStudioAppEvent.js'; import { Version } from '@finos/legend-server-sdlc'; import { type ServiceRegistrationResult, ServiceExecutionMode, } from '@finos/legend-graph'; -import { ServiceRegistrationEnvInfo } from '../../../../application/LegendStudioConfig'; +import { ServiceRegistrationEnvInfo } from '../../../../application/LegendStudioConfig.js'; import { ActionAlertActionType, ActionAlertType, diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestRunnerState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestRunnerState.ts index 8d85b1807d3..80d2b89e1c0 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestRunnerState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestRunnerState.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { EditorStore } from '../../../EditorStore'; -import type { ServiceEditorState } from './ServiceEditorState'; +import type { EditorStore } from '../../../EditorStore.js'; +import type { ServiceEditorState } from './ServiceEditorState.js'; export class ServiceTestRunnerState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestSuiteState.ts b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestSuiteState.ts index c0d3074baee..e0b3ef9f848 100644 --- a/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestSuiteState.ts +++ b/packages/legend-studio/src/stores/editor-state/element-editor-state/service/ServiceTestSuiteState.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { EditorStore } from '../../../EditorStore'; -import type { ServiceEditorState } from './ServiceEditorState'; +import type { EditorStore } from '../../../EditorStore.js'; +import type { ServiceEditorState } from './ServiceEditorState.js'; export class ServiceTestSuiteState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts b/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts index 2ea90868d9f..27d8511a631 100644 --- a/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.ts @@ -22,11 +22,11 @@ import { makeObservable, flowResult, } from 'mobx'; -import type { EditorStore } from '../../EditorStore'; +import type { EditorStore } from '../../EditorStore.js'; import { type SPECIAL_REVISION_ALIAS, EntityDiffEditorState, -} from './EntityDiffEditorState'; +} from './EntityDiffEditorState.js'; import { type GeneratorFn, assertErrorThrown, @@ -39,7 +39,7 @@ import { } from '@finos/legend-model-storage'; import { EntityChangeConflictResolution } from '@finos/legend-server-sdlc'; import { ParserError } from '@finos/legend-graph'; -import type { AbstractConflictResolutionState } from '../../AbstractConflictResolutionState'; +import type { AbstractConflictResolutionState } from '../../AbstractConflictResolutionState.js'; const START_HEADER_MARKER = '<<<<<<<'; const COMMON_BASE_MARKER = '|||||||'; diff --git a/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.ts b/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.ts index ead0c316821..7b2a77c79f4 100644 --- a/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.ts +++ b/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffEditorState.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { EditorState } from '../../editor-state/EditorState'; +import { EditorState } from '../../editor-state/EditorState.js'; export enum SPECIAL_REVISION_ALIAS { LOCAL = 'LOCAL_REVISION', diff --git a/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts b/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts index a4cc2a67cf6..9c5abdda32e 100644 --- a/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts +++ b/packages/legend-studio/src/stores/editor-state/entity-diff-editor-state/EntityDiffViewState.ts @@ -23,16 +23,16 @@ import { guaranteeNonNullable, hashObject, } from '@finos/legend-shared'; -import type { EditorStore } from '../../EditorStore'; +import type { EditorStore } from '../../EditorStore.js'; import { type SPECIAL_REVISION_ALIAS, EntityDiffEditorState, -} from './EntityDiffEditorState'; +} from './EntityDiffEditorState.js'; import { type Entity, extractEntityNameFromPath, } from '@finos/legend-model-storage'; -import { LEGEND_STUDIO_APP_EVENT } from '../../LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../../LegendStudioAppEvent.js'; import type { PackageableElement } from '@finos/legend-graph'; /** diff --git a/packages/legend-studio/src/stores/editor/StandardEditorMode.ts b/packages/legend-studio/src/stores/editor/StandardEditorMode.ts index 4e647b44daf..dc041284b07 100644 --- a/packages/legend-studio/src/stores/editor/StandardEditorMode.ts +++ b/packages/legend-studio/src/stores/editor/StandardEditorMode.ts @@ -14,9 +14,9 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; -import { generateViewEntityRoute } from '../LegendStudioRouter'; -import { EditorMode } from './EditorMode'; +import type { EditorStore } from '../EditorStore.js'; +import { generateViewEntityRoute } from '../LegendStudioRouter.js'; +import { EditorMode } from './EditorMode.js'; export class StandardEditorMode extends EditorMode { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/shared/DnDUtil.ts b/packages/legend-studio/src/stores/shared/DnDUtil.ts index a6713138b4f..6e09f124553 100644 --- a/packages/legend-studio/src/stores/shared/DnDUtil.ts +++ b/packages/legend-studio/src/stores/shared/DnDUtil.ts @@ -14,12 +14,12 @@ * limitations under the License. */ -import type { MappingElement } from '../editor-state/element-editor-state/mapping/MappingEditorState'; +import type { MappingElement } from '../editor-state/element-editor-state/mapping/MappingEditorState.js'; import type { FlatDataRecordTypeTreeNodeData, TypeTreeNodeData, PackageTreeNodeData, -} from '../shared/TreeUtil'; +} from '../shared/TreeUtil.js'; export enum CORE_DND_TYPE { NONE = 'NONE', diff --git a/packages/legend-studio/src/stores/shared/MockDataUtil.ts b/packages/legend-studio/src/stores/shared/MockDataUtil.ts index 05223b15756..86a120e62ea 100644 --- a/packages/legend-studio/src/stores/shared/MockDataUtil.ts +++ b/packages/legend-studio/src/stores/shared/MockDataUtil.ts @@ -21,8 +21,8 @@ import { Randomizer, UnsupportedOperationError, } from '@finos/legend-shared'; -import type { EditorStore } from '../EditorStore'; -import type { MappingElementSource } from '../editor-state/element-editor-state/mapping/MappingEditorState'; +import type { EditorStore } from '../EditorStore.js'; +import type { MappingElementSource } from '../editor-state/element-editor-state/mapping/MappingEditorState.js'; import { type PrimitiveType, type Enumeration, @@ -31,7 +31,7 @@ import { getAllClassProperties, } from '@finos/legend-graph'; import { DATE_FORMAT, DATE_TIME_FORMAT } from '@finos/legend-application'; -import { CLASS_PROPERTY_TYPE, getClassPropertyType } from './ModelUtil'; +import { CLASS_PROPERTY_TYPE, getClassPropertyType } from './ModelUtil.js'; export const createMockPrimitiveProperty = ( primitiveType: PrimitiveType, diff --git a/packages/legend-studio/src/stores/shared/PackageTreeUtil.ts b/packages/legend-studio/src/stores/shared/PackageTreeUtil.ts index 78926e3dd2e..724443d7bcb 100644 --- a/packages/legend-studio/src/stores/shared/PackageTreeUtil.ts +++ b/packages/legend-studio/src/stores/shared/PackageTreeUtil.ts @@ -15,11 +15,11 @@ */ import { isNonNullable, addUniqueEntry } from '@finos/legend-shared'; -import type { PackageTreeNodeData } from './TreeUtil'; +import type { PackageTreeNodeData } from './TreeUtil.js'; import type { TreeNodeData, TreeData } from '@finos/legend-art'; -import type { EditorStore } from '../EditorStore'; -import { CORE_DND_TYPE } from './DnDUtil'; -import type { DSL_LegendStudioPlugin_Extension } from '../LegendStudioPlugin'; +import type { EditorStore } from '../EditorStore.js'; +import { CORE_DND_TYPE } from './DnDUtil.js'; +import type { DSL_LegendStudioPlugin_Extension } from '../LegendStudioPlugin.js'; import { type PackageableElement, ROOT_PACKAGE_NAME, diff --git a/packages/legend-studio/src/stores/shared/TreeUtil.ts b/packages/legend-studio/src/stores/shared/TreeUtil.ts index e4f3e9c14dd..c37213a5eb0 100644 --- a/packages/legend-studio/src/stores/shared/TreeUtil.ts +++ b/packages/legend-studio/src/stores/shared/TreeUtil.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import type { CORE_DND_TYPE } from '../shared/DnDUtil'; +import type { CORE_DND_TYPE } from '../shared/DnDUtil.js'; import type { TreeNodeData } from '@finos/legend-art'; import type { Type, diff --git a/packages/legend-studio/src/stores/shared/__tests__/MockDataUtil.test.ts b/packages/legend-studio/src/stores/shared/__tests__/MockDataUtil.test.ts index 73786e2a94c..98e2e8479e5 100644 --- a/packages/legend-studio/src/stores/shared/__tests__/MockDataUtil.test.ts +++ b/packages/legend-studio/src/stores/shared/__tests__/MockDataUtil.test.ts @@ -16,9 +16,9 @@ import { test, expect, beforeAll } from '@jest/globals'; import TEST_DATA__completeGraphEntities from './TEST_DATA__MockDataGeneration.json'; -import { classHasCycle, createMockClassInstance } from '../MockDataUtil'; +import { classHasCycle, createMockClassInstance } from '../MockDataUtil.js'; import { type TEMPORARRY__JestMatcher, unitTest } from '@finos/legend-shared'; -import { TEST__getTestEditorStore } from '../../EditorStoreTestUtils'; +import { TEST__getTestEditorStore } from '../../EditorStoreTestUtils.js'; import type { Entity } from '@finos/legend-model-storage'; import { TEST__buildGraphWithEntities } from '@finos/legend-graph'; diff --git a/packages/legend-studio/src/stores/sidebar-state/LocalChangesState.ts b/packages/legend-studio/src/stores/sidebar-state/LocalChangesState.ts index fb2186fdfef..ce7ca31d5ec 100644 --- a/packages/legend-studio/src/stores/sidebar-state/LocalChangesState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/LocalChangesState.ts @@ -16,9 +16,9 @@ import { action, makeAutoObservable, flowResult, flow } from 'mobx'; import format from 'date-fns/format'; -import type { EditorStore } from '../EditorStore'; -import type { EditorSDLCState } from '../EditorSDLCState'; -import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent'; +import type { EditorStore } from '../EditorStore.js'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; +import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js'; import { type GeneratorFn, type PlainObject, @@ -40,8 +40,8 @@ import { ActionAlertType, ActionAlertActionType, } from '@finos/legend-application'; -import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState'; +import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; import type { Entity } from '@finos/legend-model-storage'; import { type EntityChangeConflict, @@ -49,10 +49,10 @@ import { EntityChange, Revision, } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; -import { WorkspaceSyncState } from './WorkspaceSyncState'; -import { ACTIVITY_MODE } from '../EditorConfig'; -import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; +import { WorkspaceSyncState } from './WorkspaceSyncState.js'; +import { ACTIVITY_MODE } from '../EditorConfig.js'; +import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; class PatchLoaderState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/sidebar-state/ProjectOverviewState.ts b/packages/legend-studio/src/stores/sidebar-state/ProjectOverviewState.ts index 28aa88efe9a..41ba4f4fa61 100644 --- a/packages/legend-studio/src/stores/sidebar-state/ProjectOverviewState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/ProjectOverviewState.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; -import type { EditorSDLCState } from '../EditorSDLCState'; +import type { EditorStore } from '../EditorStore.js'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; import { action, flowResult, makeAutoObservable } from 'mobx'; import { type GeneratorFn, @@ -24,7 +24,7 @@ import { LogEvent, getNullableFirstElement, } from '@finos/legend-shared'; -import { generateSetupRoute } from '../LegendStudioRouter'; +import { generateSetupRoute } from '../LegendStudioRouter.js'; import { type NewVersionType, CreateVersionCommand, @@ -36,7 +36,7 @@ import { Review, areWorkspacesEquivalent, } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; export enum PROJECT_OVERVIEW_ACTIVITY_MODE { RELEASE = 'RELEASE', diff --git a/packages/legend-studio/src/stores/sidebar-state/WorkflowManagerState.ts b/packages/legend-studio/src/stores/sidebar-state/WorkflowManagerState.ts index ab8fcf06358..f43ead350c9 100644 --- a/packages/legend-studio/src/stores/sidebar-state/WorkflowManagerState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/WorkflowManagerState.ts @@ -23,9 +23,9 @@ import { makeObservable, flow, } from 'mobx'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; -import type { EditorStore } from '../EditorStore'; -import type { EditorSDLCState } from '../EditorSDLCState'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; +import type { EditorStore } from '../EditorStore.js'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; import { type GeneratorFn, type PlainObject, diff --git a/packages/legend-studio/src/stores/sidebar-state/WorkspaceReviewState.ts b/packages/legend-studio/src/stores/sidebar-state/WorkspaceReviewState.ts index db13dc5494d..33e55eba9fd 100644 --- a/packages/legend-studio/src/stores/sidebar-state/WorkspaceReviewState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/WorkspaceReviewState.ts @@ -15,10 +15,10 @@ */ import { action, makeAutoObservable, flowResult } from 'mobx'; -import type { EditorStore } from '../EditorStore'; -import type { EditorSDLCState } from '../EditorSDLCState'; -import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; +import type { EditorStore } from '../EditorStore.js'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; +import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; import { type GeneratorFn, type PlainObject, @@ -27,9 +27,9 @@ import { assertNonNullable, guaranteeNonNullable, } from '@finos/legend-shared'; -import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState'; -import { generateSetupRoute } from '../LegendStudioRouter'; +import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; +import { generateSetupRoute } from '../LegendStudioRouter.js'; import type { Entity } from '@finos/legend-model-storage'; import { type Revision, diff --git a/packages/legend-studio/src/stores/sidebar-state/WorkspaceSyncState.ts b/packages/legend-studio/src/stores/sidebar-state/WorkspaceSyncState.ts index 6b0fd8e56cb..509d1e11fac 100644 --- a/packages/legend-studio/src/stores/sidebar-state/WorkspaceSyncState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/WorkspaceSyncState.ts @@ -22,8 +22,8 @@ import { makeObservable, observable, } from 'mobx'; -import type { EditorStore } from '../EditorStore'; -import type { EditorSDLCState } from '../EditorSDLCState'; +import type { EditorStore } from '../EditorStore.js'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; import type { Entity } from '@finos/legend-model-storage'; import { type GeneratorFn, @@ -37,13 +37,13 @@ import { deleteEntry, ActionState, } from '@finos/legend-shared'; -import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent'; -import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; +import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js'; +import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; import { type EntityDiffEditorState, SPECIAL_REVISION_ALIAS, -} from '../editor-state/entity-diff-editor-state/EntityDiffEditorState'; -import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState'; +} from '../editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; +import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState.js'; import { type EntityChangeConflict, type EntityChangeConflictResolution, @@ -57,7 +57,7 @@ import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application'; -import { AbstractConflictResolutionState } from '../AbstractConflictResolutionState'; +import { AbstractConflictResolutionState } from '../AbstractConflictResolutionState.js'; class WorkspaceSyncConflictResolutionState extends AbstractConflictResolutionState { showModal = false; diff --git a/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts b/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts index d8d36801f1e..b9b28ed7066 100644 --- a/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdateConflictResolutionState.ts @@ -15,10 +15,10 @@ */ import { action, flowResult, makeObservable, observable, flow } from 'mobx'; -import type { EditorStore } from '../EditorStore'; -import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; -import type { EditorSDLCState } from '../EditorSDLCState'; +import type { EditorStore } from '../EditorStore.js'; +import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; import { type GeneratorFn, type PlainObject, @@ -32,10 +32,10 @@ import { hashObject, deleteEntry, } from '@finos/legend-shared'; -import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState'; -import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; -import { ACTIVITY_MODE } from '../EditorConfig'; +import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; +import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; +import { ACTIVITY_MODE } from '../EditorConfig.js'; import type { Entity } from '@finos/legend-model-storage'; import { type EntityChangeConflict, @@ -46,8 +46,8 @@ import { Revision, RevisionAlias, } from '@finos/legend-server-sdlc'; -import type { GraphBuilderResult } from '../EditorGraphState'; -import { AbstractConflictResolutionState } from '../AbstractConflictResolutionState'; +import type { GraphBuilderResult } from '../EditorGraphState.js'; +import { AbstractConflictResolutionState } from '../AbstractConflictResolutionState.js'; export class WorkspaceUpdateConflictResolutionState extends AbstractConflictResolutionState { isInitializingConflictResolution = false; diff --git a/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdaterState.ts b/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdaterState.ts index bf515c5bb29..ddadacb5939 100644 --- a/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdaterState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/WorkspaceUpdaterState.ts @@ -14,10 +14,10 @@ * limitations under the License. */ -import type { EditorStore } from '../EditorStore'; -import type { EditorSDLCState } from '../EditorSDLCState'; +import type { EditorStore } from '../EditorStore.js'; +import type { EditorSDLCState } from '../EditorSDLCState.js'; import { action, makeAutoObservable, flowResult } from 'mobx'; -import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent'; +import { CHANGE_DETECTION_EVENT } from '../ChangeDetectionEvent.js'; import { type GeneratorFn, type PlainObject, @@ -28,9 +28,9 @@ import { NetworkClientError, HttpStatus, } from '@finos/legend-shared'; -import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState'; -import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState'; -import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState'; +import { EntityDiffViewState } from '../editor-state/entity-diff-editor-state/EntityDiffViewState.js'; +import { SPECIAL_REVISION_ALIAS } from '../editor-state/entity-diff-editor-state/EntityDiffEditorState.js'; +import { EntityChangeConflictEditorState } from '../editor-state/entity-diff-editor-state/EntityChangeConflictEditorState.js'; import type { Entity } from '@finos/legend-model-storage'; import { type EntityChangeConflict, @@ -42,7 +42,7 @@ import { Revision, RevisionAlias, } from '@finos/legend-server-sdlc'; -import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent'; +import { LEGEND_STUDIO_APP_EVENT } from '../LegendStudioAppEvent.js'; export class WorkspaceUpdaterState { editorStore: EditorStore; diff --git a/packages/legend-studio/src/stores/sidebar-state/__tests__/LocalChangeState.test.ts b/packages/legend-studio/src/stores/sidebar-state/__tests__/LocalChangeState.test.ts index 78eabba1955..fef7100f037 100644 --- a/packages/legend-studio/src/stores/sidebar-state/__tests__/LocalChangeState.test.ts +++ b/packages/legend-studio/src/stores/sidebar-state/__tests__/LocalChangeState.test.ts @@ -18,7 +18,7 @@ import { test, expect } from '@jest/globals'; import { applyEntityChanges, EntityChange } from '@finos/legend-server-sdlc'; import { type TEMPORARRY__JestMatcher, unitTest } from '@finos/legend-shared'; import { flowResult } from 'mobx'; -import { TEST__getTestEditorStore } from '../../EditorStoreTestUtils'; +import { TEST__getTestEditorStore } from '../../EditorStoreTestUtils.js'; const entities = [ { diff --git a/packages/legend-studio/src/stores/sidebar-state/testable/GlobalTestRunnerState.ts b/packages/legend-studio/src/stores/sidebar-state/testable/GlobalTestRunnerState.ts index a23024bf4ce..d0086090008 100644 --- a/packages/legend-studio/src/stores/sidebar-state/testable/GlobalTestRunnerState.ts +++ b/packages/legend-studio/src/stores/sidebar-state/testable/GlobalTestRunnerState.ts @@ -45,13 +45,13 @@ import { filterByType, } from '@finos/legend-shared'; import { action, flow, makeObservable, observable } from 'mobx'; -import { getElementTypeIcon } from '../../../components/shared/ElementIconUtils'; -import type { EditorSDLCState } from '../../EditorSDLCState'; -import type { EditorStore } from '../../EditorStore'; +import { getElementTypeIcon } from '../../../components/shared/ElementIconUtils.js'; +import type { EditorSDLCState } from '../../EditorSDLCState.js'; +import type { EditorStore } from '../../EditorStore.js'; import type { LegendStudioPlugin, TestableMetadataGetter, -} from '../../LegendStudioPlugin'; +} from '../../LegendStudioPlugin.js'; // Testable Metadata export interface TestableMetadata { diff --git a/packages/legend-studio/src/stores/viewer/ViewerEditorMode.ts b/packages/legend-studio/src/stores/viewer/ViewerEditorMode.ts index 6c45f2cb61b..894b8eae481 100644 --- a/packages/legend-studio/src/stores/viewer/ViewerEditorMode.ts +++ b/packages/legend-studio/src/stores/viewer/ViewerEditorMode.ts @@ -19,9 +19,9 @@ import { generateViewProjectByGAVRoute, generateViewRevisionRoute, generateViewVersionRoute, -} from '../LegendStudioRouter'; -import { EditorMode } from '../editor/EditorMode'; -import type { ViewerStore } from '../ViewerStore'; +} from '../LegendStudioRouter.js'; +import { EditorMode } from '../editor/EditorMode.js'; +import type { ViewerStore } from '../ViewerStore.js'; export class ViewerEditorMode extends EditorMode { viewerStore: ViewerStore; diff --git a/packages/legend-taxonomy-deployment/src/index.tsx b/packages/legend-taxonomy-deployment/src/index.tsx index 3dc07e322e7..e48d83a40e6 100644 --- a/packages/legend-taxonomy-deployment/src/index.tsx +++ b/packages/legend-taxonomy-deployment/src/index.tsx @@ -15,7 +15,7 @@ */ import { LegendTaxonomyWebApplication } from '@finos/legend-taxonomy-app'; -import config from '../taxonomy.config'; +import config from '../taxonomy.config.js'; import './index.scss'; LegendTaxonomyWebApplication.run(config.baseUrl); diff --git a/packages/legend-taxonomy/src/application/LegendTaxonomy.tsx b/packages/legend-taxonomy/src/application/LegendTaxonomy.tsx index 1ed6c38851e..39fd755e6c3 100644 --- a/packages/legend-taxonomy/src/application/LegendTaxonomy.tsx +++ b/packages/legend-taxonomy/src/application/LegendTaxonomy.tsx @@ -25,14 +25,14 @@ import { } from '@finos/legend-application'; import { configure as configureReactHotkeys } from 'react-hotkeys'; import { BrowserRouter } from 'react-router-dom'; -import { LegendTaxonomyApplication } from '../components/LegendTaxonomyApplication'; -import { LegendTaxonomyPluginManager } from './LegendTaxonomyPluginManager'; +import { LegendTaxonomyApplication } from '../components/LegendTaxonomyApplication.js'; +import { LegendTaxonomyPluginManager } from './LegendTaxonomyPluginManager.js'; import { getRootElement } from '@finos/legend-art'; import { CorePureGraphManagerPlugin } from '@finos/legend-graph'; import { type LegendTaxonomyConfigurationData, LegendTaxonomyConfig, -} from './LegendTaxonomyConfig'; +} from './LegendTaxonomyConfig.js'; export const setupLegendQueryUILibrary = async (): Promise => { configureReactHotkeys({ diff --git a/packages/legend-taxonomy/src/components/LegendTaxonomyApplication.tsx b/packages/legend-taxonomy/src/components/LegendTaxonomyApplication.tsx index 103e2f92716..91ad2429585 100644 --- a/packages/legend-taxonomy/src/components/LegendTaxonomyApplication.tsx +++ b/packages/legend-taxonomy/src/components/LegendTaxonomyApplication.tsx @@ -19,18 +19,18 @@ import { observer } from 'mobx-react-lite'; import { generateExploreTaxonomyTreeRoute, LEGEND_TAXONOMY_ROUTE_PATTERN, -} from '../stores/LegendTaxonomyRouter'; -import type { LegendTaxonomyPluginManager } from '../application/LegendTaxonomyPluginManager'; +} from '../stores/LegendTaxonomyRouter.js'; +import type { LegendTaxonomyPluginManager } from '../application/LegendTaxonomyPluginManager.js'; import { DepotServerClientProvider } from '@finos/legend-server-depot'; -import { LegendTaxonomyStoreProvider } from './LegendTaxonomyStoreProvider'; +import { LegendTaxonomyStoreProvider } from './LegendTaxonomyStoreProvider.js'; import { GraphManagerStateProvider } from '@finos/legend-graph'; import { LegendApplicationComponentFrameworkProvider, useApplicationStore, } from '@finos/legend-application'; -import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig'; -import { TaxonomyViewer } from './TaxonomyViewer'; -import { StandaloneDataSpaceViewer } from './StandaloneDataSpaceViewer'; +import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig.js'; +import { TaxonomyViewer } from './TaxonomyViewer.js'; +import { StandaloneDataSpaceViewer } from './StandaloneDataSpaceViewer.js'; export const LegendTaxonomyApplicationRoot = observer(() => { const applicationStore = useApplicationStore(); diff --git a/packages/legend-taxonomy/src/components/LegendTaxonomyStoreProvider.tsx b/packages/legend-taxonomy/src/components/LegendTaxonomyStoreProvider.tsx index 35a6c29b463..9302d9f8566 100644 --- a/packages/legend-taxonomy/src/components/LegendTaxonomyStoreProvider.tsx +++ b/packages/legend-taxonomy/src/components/LegendTaxonomyStoreProvider.tsx @@ -20,10 +20,10 @@ import { useApplicationStore } from '@finos/legend-application'; import { guaranteeNonNullable } from '@finos/legend-shared'; import { useDepotServerClient } from '@finos/legend-server-depot'; import { useGraphManagerState } from '@finos/legend-graph'; -import { LegendTaxonomyStore } from '../stores/LegendTaxonomyStore'; -import type { LegendTaxonomyPluginManager } from '../application/LegendTaxonomyPluginManager'; -import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig'; -import { TaxonomyServerClient } from '../stores/TaxonomyServerClient'; +import { LegendTaxonomyStore } from '../stores/LegendTaxonomyStore.js'; +import type { LegendTaxonomyPluginManager } from '../application/LegendTaxonomyPluginManager.js'; +import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig.js'; +import { TaxonomyServerClient } from '../stores/TaxonomyServerClient.js'; const LegendTaxonomyStoreContext = createContext< LegendTaxonomyStore | undefined diff --git a/packages/legend-taxonomy/src/components/StandaloneDataSpaceViewer.tsx b/packages/legend-taxonomy/src/components/StandaloneDataSpaceViewer.tsx index 6cb81040c4b..fdb66894760 100644 --- a/packages/legend-taxonomy/src/components/StandaloneDataSpaceViewer.tsx +++ b/packages/legend-taxonomy/src/components/StandaloneDataSpaceViewer.tsx @@ -18,8 +18,8 @@ import { useEffect } from 'react'; import { useApplicationStore } from '@finos/legend-application'; import { observer } from 'mobx-react-lite'; import { useParams } from 'react-router-dom'; -import type { LegendTaxonomyStandaloneDataSpaceViewerParams } from '../stores/LegendTaxonomyRouter'; -import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider'; +import type { LegendTaxonomyStandaloneDataSpaceViewerParams } from '../stores/LegendTaxonomyRouter.js'; +import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider.js'; import { flowResult } from 'mobx'; import { ArrowRightIcon, diff --git a/packages/legend-taxonomy/src/components/TaxonomyNodeViewer.tsx b/packages/legend-taxonomy/src/components/TaxonomyNodeViewer.tsx index 3ff4541f051..a006157bb25 100644 --- a/packages/legend-taxonomy/src/components/TaxonomyNodeViewer.tsx +++ b/packages/legend-taxonomy/src/components/TaxonomyNodeViewer.tsx @@ -36,18 +36,18 @@ import { generateGAVCoordinates } from '@finos/legend-server-depot'; import type { RawDataSpace, TaxonomyNodeViewerState, -} from '../stores/LegendTaxonomyStore'; +} from '../stores/LegendTaxonomyStore.js'; import { generateStandaloneDataSpaceViewerRoute, generateExploreTaxonomyTreeNodeDataSpaceRoute, -} from '../stores/LegendTaxonomyRouter'; -import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig'; +} from '../stores/LegendTaxonomyRouter.js'; +import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig.js'; import { DataSpaceViewer, type DataSpaceViewerState, } from '@finos/legend-extension-dsl-data-space'; import { ELEMENT_PATH_DELIMITER } from '@finos/legend-graph'; -import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider'; +import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider.js'; const TaxonomyNodeDataSpaceItem = observer( (props: { diff --git a/packages/legend-taxonomy/src/components/TaxonomyTree.tsx b/packages/legend-taxonomy/src/components/TaxonomyTree.tsx index 0affaa1b4c3..ef580f52e42 100644 --- a/packages/legend-taxonomy/src/components/TaxonomyTree.tsx +++ b/packages/legend-taxonomy/src/components/TaxonomyTree.tsx @@ -19,7 +19,7 @@ import { observer } from 'mobx-react-lite'; import { type TaxonomyTreeNodeData, TaxonomyNodeViewerState, -} from '../stores/LegendTaxonomyStore'; +} from '../stores/LegendTaxonomyStore.js'; import { type TreeData, type TreeNodeContainerProps, @@ -33,11 +33,11 @@ import { clsx, TreeView, } from '@finos/legend-art'; -import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider'; +import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider.js'; import { isNonNullable } from '@finos/legend-shared'; import { useApplicationStore } from '@finos/legend-application'; -import { generateExploreTaxonomyTreeNodeRoute } from '../stores/LegendTaxonomyRouter'; -import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig'; +import { generateExploreTaxonomyTreeNodeRoute } from '../stores/LegendTaxonomyRouter.js'; +import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig.js'; const TaxonomyTreeNodeContainer = observer( ( diff --git a/packages/legend-taxonomy/src/components/TaxonomyViewer.tsx b/packages/legend-taxonomy/src/components/TaxonomyViewer.tsx index 8f48ce99cb0..cbd0036275f 100644 --- a/packages/legend-taxonomy/src/components/TaxonomyViewer.tsx +++ b/packages/legend-taxonomy/src/components/TaxonomyViewer.tsx @@ -23,8 +23,8 @@ import { type LegendTaxonomyPathParams, generateExploreTaxonomyTreeRoute, LEGEND_TAXONOMY_PARAM_TOKEN, -} from '../stores/LegendTaxonomyRouter'; -import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider'; +} from '../stores/LegendTaxonomyRouter.js'; +import { useLegendTaxonomyStore } from './LegendTaxonomyStoreProvider.js'; import { flowResult } from 'mobx'; import { type ResizablePanelHandlerProps, @@ -52,14 +52,14 @@ import { FileTrayIcon, MenuIcon, } from '@finos/legend-art'; -import { TaxonomyTree } from './TaxonomyTree'; -import { TaxonomyNodeViewer } from './TaxonomyNodeViewer'; +import { TaxonomyTree } from './TaxonomyTree.js'; +import { TaxonomyNodeViewer } from './TaxonomyNodeViewer.js'; import type { LegendTaxonomyConfig, TaxonomyTreeOption, -} from '../application/LegendTaxonomyConfig'; +} from '../application/LegendTaxonomyConfig.js'; import { useResizeDetector } from 'react-resize-detector'; -import type { TaxonomyNodeViewerState } from '../stores/LegendTaxonomyStore'; +import type { TaxonomyNodeViewerState } from '../stores/LegendTaxonomyStore.js'; const TaxonomyViewerActivityBar = observer(() => (
diff --git a/packages/legend-taxonomy/src/index.ts b/packages/legend-taxonomy/src/index.ts index ec70c09f9e2..dc8550e1cab 100644 --- a/packages/legend-taxonomy/src/index.ts +++ b/packages/legend-taxonomy/src/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './application/LegendTaxonomy'; +export * from './application/LegendTaxonomy.js'; diff --git a/packages/legend-taxonomy/src/stores/LegendTaxonomyStore.ts b/packages/legend-taxonomy/src/stores/LegendTaxonomyStore.ts index 6c0dc22b425..cce371455c9 100644 --- a/packages/legend-taxonomy/src/stores/LegendTaxonomyStore.ts +++ b/packages/legend-taxonomy/src/stores/LegendTaxonomyStore.ts @@ -65,18 +65,18 @@ import { flowResult, computed, } from 'mobx'; -import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig'; -import type { LegendTaxonomyPluginManager } from '../application/LegendTaxonomyPluginManager'; -import { LEGEND_TAXONOMY_APP_EVENT } from './LegendTaxonomyAppEvent'; +import type { LegendTaxonomyConfig } from '../application/LegendTaxonomyConfig.js'; +import type { LegendTaxonomyPluginManager } from '../application/LegendTaxonomyPluginManager.js'; +import { LEGEND_TAXONOMY_APP_EVENT } from './LegendTaxonomyAppEvent.js'; import { generateExploreTaxonomyTreeRoute, type LegendTaxonomyPathParams, type LegendTaxonomyStandaloneDataSpaceViewerParams, -} from './LegendTaxonomyRouter'; +} from './LegendTaxonomyRouter.js'; import { type TaxonomyServerClient, TaxonomyNodeData, -} from './TaxonomyServerClient'; +} from './TaxonomyServerClient.js'; const DATA_SPACE_ID_DELIMITER = '@'; const TAXONOMY_NODE_PATH_DELIMITER = '::'; diff --git a/packages/legend-tracer-extension-zipkin/src/index.ts b/packages/legend-tracer-extension-zipkin/src/index.ts index 01336685335..acae18cd506 100644 --- a/packages/legend-tracer-extension-zipkin/src/index.ts +++ b/packages/legend-tracer-extension-zipkin/src/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './ZipkinTracerPlugin'; +export * from './ZipkinTracerPlugin.js'; diff --git a/scripts/test/jest.config.base.js b/scripts/test/jest.config.base.js index f653f21d103..5ae8b3cf58e 100644 --- a/scripts/test/jest.config.base.js +++ b/scripts/test/jest.config.base.js @@ -50,6 +50,8 @@ export const baseJestConfig = { '@finos/legend-dev-utils/jest/setupJestExpectExtension', ], moduleNameMapper: { + 'fuse.js': 'fuse.js', + 'hash.js': 'hash.js', ...baseConfig.moduleNameMapper, // TODO: problem with ESM - remove this and `lodash` dependency when `lodash` // natively support ESM and hence, work well with `jest-resolve`