@finos/legend-extension-dsl-service 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/lib/components/studio/DSL_Service_LegendStudioApplicationPlugin.d.ts +22 -0
  4. package/lib/components/studio/DSL_Service_LegendStudioApplicationPlugin.d.ts.map +1 -0
  5. package/lib/components/studio/DSL_Service_LegendStudioApplicationPlugin.js +59 -0
  6. package/lib/components/studio/DSL_Service_LegendStudioApplicationPlugin.js.map +1 -0
  7. package/lib/components/studio/ServiceQueryEditor.d.ts +25 -0
  8. package/lib/components/studio/ServiceQueryEditor.d.ts.map +1 -0
  9. package/lib/components/studio/ServiceQueryEditor.js +190 -0
  10. package/lib/components/studio/ServiceQueryEditor.js.map +1 -0
  11. package/lib/components/studio/ServiceQueryEditorReviewAction.d.ts +19 -0
  12. package/lib/components/studio/ServiceQueryEditorReviewAction.d.ts.map +1 -0
  13. package/lib/components/studio/ServiceQueryEditorReviewAction.js +71 -0
  14. package/lib/components/studio/ServiceQueryEditorReviewAction.js.map +1 -0
  15. package/lib/components/studio/ServiceQueryEditorStoreProvider.d.ts +31 -0
  16. package/lib/components/studio/ServiceQueryEditorStoreProvider.d.ts.map +1 -0
  17. package/lib/components/studio/ServiceQueryEditorStoreProvider.js +40 -0
  18. package/lib/components/studio/ServiceQueryEditorStoreProvider.js.map +1 -0
  19. package/lib/components/studio/ServiceQueryEditorWorkspaceStatus.d.ts +19 -0
  20. package/lib/components/studio/ServiceQueryEditorWorkspaceStatus.d.ts.map +1 -0
  21. package/lib/components/studio/ServiceQueryEditorWorkspaceStatus.js +69 -0
  22. package/lib/components/studio/ServiceQueryEditorWorkspaceStatus.js.map +1 -0
  23. package/lib/components/studio/UpdateProjectServiceQuerySetup.d.ts +18 -0
  24. package/lib/components/studio/UpdateProjectServiceQuerySetup.d.ts.map +1 -0
  25. package/lib/components/studio/UpdateProjectServiceQuerySetup.js +182 -0
  26. package/lib/components/studio/UpdateProjectServiceQuerySetup.js.map +1 -0
  27. package/lib/components/studio/UpdateServiceQuerySetup.d.ts +18 -0
  28. package/lib/components/studio/UpdateServiceQuerySetup.d.ts.map +1 -0
  29. package/lib/components/studio/UpdateServiceQuerySetup.js +172 -0
  30. package/lib/components/studio/UpdateServiceQuerySetup.js.map +1 -0
  31. package/lib/index.css +17 -0
  32. package/lib/index.css.map +1 -0
  33. package/lib/index.d.ts +17 -0
  34. package/lib/index.d.ts.map +1 -0
  35. package/lib/index.js +17 -0
  36. package/lib/index.js.map +1 -0
  37. package/lib/package.json +84 -0
  38. package/lib/stores/studio/DSL_Service_LegendStudioRouter.d.ts +53 -0
  39. package/lib/stores/studio/DSL_Service_LegendStudioRouter.d.ts.map +1 -0
  40. package/lib/stores/studio/DSL_Service_LegendStudioRouter.js +62 -0
  41. package/lib/stores/studio/DSL_Service_LegendStudioRouter.js.map +1 -0
  42. package/lib/stores/studio/ServiceQueryEditorStore.d.ts +64 -0
  43. package/lib/stores/studio/ServiceQueryEditorStore.d.ts.map +1 -0
  44. package/lib/stores/studio/ServiceQueryEditorStore.js +260 -0
  45. package/lib/stores/studio/ServiceQueryEditorStore.js.map +1 -0
  46. package/lib/stores/studio/UpdateProjectServiceQuerySetupStore.d.ts +46 -0
  47. package/lib/stores/studio/UpdateProjectServiceQuerySetupStore.d.ts.map +1 -0
  48. package/lib/stores/studio/UpdateProjectServiceQuerySetupStore.js +184 -0
  49. package/lib/stores/studio/UpdateProjectServiceQuerySetupStore.js.map +1 -0
  50. package/lib/stores/studio/UpdateServiceQuerySetupStore.d.ts +48 -0
  51. package/lib/stores/studio/UpdateServiceQuerySetupStore.d.ts.map +1 -0
  52. package/lib/stores/studio/UpdateServiceQuerySetupStore.js +184 -0
  53. package/lib/stores/studio/UpdateServiceQuerySetupStore.js.map +1 -0
  54. package/package.json +84 -0
  55. package/src/components/studio/DSL_Service_LegendStudioApplicationPlugin.tsx +71 -0
  56. package/src/components/studio/ServiceQueryEditor.tsx +551 -0
  57. package/src/components/studio/ServiceQueryEditorReviewAction.tsx +172 -0
  58. package/src/components/studio/ServiceQueryEditorStoreProvider.tsx +89 -0
  59. package/src/components/studio/ServiceQueryEditorWorkspaceStatus.tsx +121 -0
  60. package/src/components/studio/UpdateProjectServiceQuerySetup.tsx +479 -0
  61. package/src/components/studio/UpdateServiceQuerySetup.tsx +476 -0
  62. package/src/index.ts +17 -0
  63. package/src/stores/studio/DSL_Service_LegendStudioRouter.ts +159 -0
  64. package/src/stores/studio/ServiceQueryEditorStore.ts +487 -0
  65. package/src/stores/studio/UpdateProjectServiceQuerySetupStore.ts +281 -0
  66. package/src/stores/studio/UpdateServiceQuerySetupStore.ts +314 -0
  67. package/tsconfig.json +58 -0
  68. package/tsconfig.package.json +38 -0
@@ -0,0 +1,71 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { useApplicationStore } from '@finos/legend-application';
18
+ import { generateReviewRoute } from '@finos/legend-application-studio';
19
+ import { Dialog, ExternalLinkSquareIcon, Panel, PanelLoadingIndicator, ReviewIcon, } from '@finos/legend-art';
20
+ import { flowResult } from 'mobx';
21
+ import { observer } from 'mobx-react-lite';
22
+ import { useRef, useState } from 'react';
23
+ import { useServiceQueryEditorStore } from './ServiceQueryEditorStoreProvider.js';
24
+ const NewReviewModal = observer(() => {
25
+ const editorStore = useServiceQueryEditorStore();
26
+ const applicationStore = useApplicationStore();
27
+ const messageInputRef = useRef(null);
28
+ const [message, setMessage] = useState(`Update query of service '${editorStore.service.path}'`);
29
+ const changeMessage = (event) => setMessage(event.target.value);
30
+ // actions
31
+ const handleEnter = () => messageInputRef.current?.focus();
32
+ const submitReview = () => {
33
+ if (message) {
34
+ flowResult(editorStore.workspaceReviewState.createWorkspaceReview(message))
35
+ .then(() => editorStore.setShowSubmitReviewModal(false))
36
+ .catch(applicationStore.alertUnhandledError);
37
+ }
38
+ };
39
+ const onSubmit = (event) => {
40
+ event.preventDefault();
41
+ submitReview();
42
+ };
43
+ const onClose = () => editorStore.setShowSubmitReviewModal(false);
44
+ return (_jsx(Dialog, { open: editorStore.showSubmitReviewModal, onClose: onClose, TransitionProps: {
45
+ onEnter: handleEnter,
46
+ }, PaperProps: {
47
+ classes: {
48
+ root: 'search-modal__inner-container',
49
+ },
50
+ }, children: _jsxs("form", { onSubmit: onSubmit, className: "modal search-modal modal--dark", children: [_jsx("div", { className: "modal__title", children: "Submit for Review" }), _jsxs(Panel, { children: [_jsx(PanelLoadingIndicator, { isLoading: editorStore.workspaceReviewState.isCreatingWorkspaceReview }), _jsx("div", { className: "panel__content--full", children: _jsxs("div", { className: "input-group", children: [_jsx("input", { ref: messageInputRef, className: "input input--dark input-group__input", value: message, onChange: changeMessage, placeholder: "What is this change about?" }), !message && (_jsx("div", { className: "input-group__error-message", children: "Review message must not be empty" }))] }) })] }), _jsx("div", { className: "search-modal__actions", children: _jsx("button", { className: "btn btn--dark", disabled: !message ||
51
+ editorStore.projectConfigurationEditorState
52
+ .containsSnapshotDependencies ||
53
+ Boolean(editorStore.workspaceReviewState.workspaceReview) ||
54
+ editorStore.workspaceReviewState.isCreatingWorkspaceReview, title: editorStore.projectConfigurationEditorState
55
+ .containsSnapshotDependencies
56
+ ? `Can't submit review: workspace contains unpublished dependencies`
57
+ : undefined, onClick: submitReview, children: "Submit" }) })] }) }));
58
+ });
59
+ export const ServiceQueryEditorReviewAction = observer(() => {
60
+ const editorStore = useServiceQueryEditorStore();
61
+ const applicationStore = useApplicationStore();
62
+ const currentReview = editorStore.workspaceReviewState.workspaceReview;
63
+ const showCreateReviewModal = () => editorStore.setShowSubmitReviewModal(true);
64
+ const visitReview = () => {
65
+ if (currentReview) {
66
+ applicationStore.navigator.openNewWindow(applicationStore.navigator.generateLocation(generateReviewRoute(currentReview.projectId, currentReview.id)));
67
+ }
68
+ };
69
+ return (_jsxs(_Fragment, { children: [currentReview && (_jsxs("button", { className: "service-query-editor__header__action service-query-editor__review", title: `${currentReview.title}\n\nClick to see review`, onClick: visitReview, children: [_jsx("div", { className: "service-query-editor__review__icon", children: _jsx(ReviewIcon, {}) }), _jsx("div", { className: "service-query-editor__review__message", children: currentReview.title }), _jsx("div", { className: "service-query-editor__review__action", children: _jsx(ExternalLinkSquareIcon, {}) })] })), !currentReview && (_jsxs("button", { className: "service-query-editor__header__action service-query-editor__header__action--simple btn--dark", tabIndex: -1, disabled: Boolean(currentReview), title: "Submit for review", onClick: showCreateReviewModal, children: [_jsx(ReviewIcon, {}), editorStore.showSubmitReviewModal && _jsx(NewReviewModal, {})] }))] }));
70
+ });
71
+ //# sourceMappingURL=ServiceQueryEditorReviewAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceQueryEditorReviewAction.js","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorReviewAction.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,KAAK,EACL,qBAAqB,EACrB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBA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CAAC,eAAe,CAAC;IAEvE,MAAM,qBAAqB,GAAG,GAAS,EAAE,CACvC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,GAAS,EAAE;QAC7B,IAAI,aAAa,EAAE;YACjB,gBAAgB,CAAC,SAAS,CAAC,aAAa,CACtC,gBAAgB,CAAC,SAAS,CAAC,gBAAgB,CACzC,mBAAmB,CAAC,aAAa,CAAC,SAAS,EAAE,aAAa,CAAC,EAAE,CAAC,CAC/D,CACF,CAAC;SACH;IACH,CAAC,CAAC;IAEF,OAAO,CACL,8BACG,aAAa,IAAI,CAChB,kBACE,SAAS,EAAC,mEAAmE,EAC7E,KAAK,EAAE,GAAG,aAAa,CAAC,KAAK,yBAAyB,EACtD,OAAO,EAAE,WAAW,aAEpB,cAAK,SAAS,EAAC,oCAAoC,YACjD,KAAC,UAAU,KAAG,GACV,EACN,cAAK,SAAS,EAAC,uCAAuC,YACnD,aAAa,CAAC,KAAK,GAChB,EACN,cAAK,SAAS,EAAC,sCAAsC,YACnD,KAAC,sBAAsB,KAAG,GACtB,IACC,CACV,EACA,CAAC,aAAa,IAAI,CACjB,kBACE,SAAS,EAAC,6FAA6F,EACvG,QAAQ,EAAE,CAAC,CAAC,EACZ,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,EAChC,KAAK,EAAC,mBAAmB,EACzB,OAAO,EAAE,qBAAqB,aAE9B,KAAC,UAAU,KAAG,EACb,WAAW,CAAC,qBAAqB,IAAI,KAAC,cAAc,KAAG,IACjD,CACV,IACA,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import { type ServiceQueryEditorStore } from '../../stores/studio/ServiceQueryEditorStore.js';
18
+ export declare const ServiceQueryEditorStoreContext: import("react").Context<ServiceQueryEditorStore | undefined>;
19
+ export declare const ServiceQueryUpdaterStoreProvider: React.FC<{
20
+ children: React.ReactNode;
21
+ serviceCoordinates: string;
22
+ groupWorkspaceId: string;
23
+ }>;
24
+ export declare const ProjectServiceQueryUpdaterStoreProvider: React.FC<{
25
+ children: React.ReactNode;
26
+ projectId: string;
27
+ groupWorkspaceId: string;
28
+ servicePath: string;
29
+ }>;
30
+ export declare const useServiceQueryEditorStore: () => ServiceQueryEditorStore;
31
+ //# sourceMappingURL=ServiceQueryEditorStoreProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceQueryEditorStoreProvider.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorStoreProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAKH,OAAO,EACL,KAAK,uBAAuB,EAG7B,MAAM,gDAAgD,CAAC;AAKxD,eAAO,MAAM,8BAA8B,8DAE/B,CAAC;AAEb,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAAE,CAAC;IACtD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAmBA,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,KAAK,CAAC,EAAE,CAAC;IAC7D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAoBA,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,uBAI3C,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { createContext, useContext } from 'react';
18
+ import { useLocalObservable } from 'mobx-react-lite';
19
+ import { guaranteeNonNullable } from '@finos/legend-shared';
20
+ import { ServiceQueryUpdaterStore, ProjectServiceQueryUpdaterStore, } from '../../stores/studio/ServiceQueryEditorStore.js';
21
+ import { useDepotServerClient } from '@finos/legend-server-depot';
22
+ import { useSDLCServerClient } from '@finos/legend-server-sdlc';
23
+ import { useLegendStudioApplicationStore } from '@finos/legend-application-studio';
24
+ export const ServiceQueryEditorStoreContext = createContext(undefined);
25
+ export const ServiceQueryUpdaterStoreProvider = ({ children, serviceCoordinates, groupWorkspaceId }) => {
26
+ const applicationStore = useLegendStudioApplicationStore();
27
+ const sdlcServerClient = useSDLCServerClient();
28
+ const depotServerClient = useDepotServerClient();
29
+ const store = useLocalObservable(() => new ServiceQueryUpdaterStore(applicationStore, sdlcServerClient, depotServerClient, serviceCoordinates, groupWorkspaceId));
30
+ return (_jsx(ServiceQueryEditorStoreContext.Provider, { value: store, children: children }));
31
+ };
32
+ export const ProjectServiceQueryUpdaterStoreProvider = ({ children, projectId, groupWorkspaceId, servicePath }) => {
33
+ const applicationStore = useLegendStudioApplicationStore();
34
+ const sdlcServerClient = useSDLCServerClient();
35
+ const depotServerClient = useDepotServerClient();
36
+ const store = useLocalObservable(() => new ProjectServiceQueryUpdaterStore(applicationStore, sdlcServerClient, depotServerClient, projectId, groupWorkspaceId, servicePath));
37
+ return (_jsx(ServiceQueryEditorStoreContext.Provider, { value: store, children: children }));
38
+ };
39
+ export const useServiceQueryEditorStore = () => guaranteeNonNullable(useContext(ServiceQueryEditorStoreContext), `Can't find service query editor store in context`);
40
+ //# sourceMappingURL=ServiceQueryEditorStoreProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceQueryEditorStoreProvider.js","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorStoreProvider.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAEL,wBAAwB,EACxB,+BAA+B,GAChC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,MAAM,CAAC,MAAM,8BAA8B,GAAG,aAAa,CAEzD,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,gCAAgC,GAIxC,CAAC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC1D,MAAM,gBAAgB,GAAG,+BAA+B,EAAE,CAAC;IAC3D,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CACH,IAAI,wBAAwB,CAC1B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,CACjB,CACJ,CAAC;IACF,OAAO,CACL,KAAC,8BAA8B,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAClD,QAAQ,GAC+B,CAC3C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uCAAuC,GAK/C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,WAAW,EAAE,EAAE,EAAE;IAC9D,MAAM,gBAAgB,GAAG,+BAA+B,EAAE,CAAC;IAC3D,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,kBAAkB,CAC9B,GAAG,EAAE,CACH,IAAI,+BAA+B,CACjC,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,WAAW,CACZ,CACJ,CAAC;IACF,OAAO,CACL,KAAC,8BAA8B,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAClD,QAAQ,GAC+B,CAC3C,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAA4B,EAAE,CACtE,oBAAoB,CAClB,UAAU,CAAC,8BAA8B,CAAC,EAC1C,kDAAkD,CACnD,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const ServiceQueryEditorWorkspaceStatus: (() => JSX.Element) & {
17
+ displayName: string;
18
+ };
19
+ //# sourceMappingURL=ServiceQueryEditorWorkspaceStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceQueryEditorWorkspaceStatus.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorWorkspaceStatus.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,eAAO,MAAM,iCAAiC;;CA8F5C,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application';
18
+ import { CloudDownloadIcon, SyncIcon } from '@finos/legend-art';
19
+ import { flowResult } from 'mobx';
20
+ import { observer } from 'mobx-react-lite';
21
+ import { useServiceQueryEditorStore } from './ServiceQueryEditorStoreProvider.js';
22
+ export const ServiceQueryEditorWorkspaceStatus = observer(() => {
23
+ const editorStore = useServiceQueryEditorStore();
24
+ const applicationStore = useApplicationStore();
25
+ const isWorkspaceOutOfSync = editorStore.sdlcState.isWorkspaceOutOfSync;
26
+ const isWorkspaceOutated = editorStore.sdlcState.isWorkspaceOutdated;
27
+ const updateWorkspace = () => {
28
+ editorStore.setActionAlertInfo({
29
+ // TODO?: we might want to factor in change-detection to have more confidence here
30
+ message: `Please backup your work. Proceed to update workspace?`,
31
+ type: ActionAlertType.CAUTION,
32
+ actions: [
33
+ {
34
+ label: 'Proceed',
35
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
36
+ handler: () => {
37
+ flowResult(editorStore.recreateWorkspace()).catch(applicationStore.alertUnhandledError);
38
+ },
39
+ },
40
+ {
41
+ label: 'Abort',
42
+ type: ActionAlertActionType.PROCEED,
43
+ default: true,
44
+ },
45
+ ],
46
+ });
47
+ };
48
+ const syncWorkspace = () => {
49
+ editorStore.setActionAlertInfo({
50
+ // TODO?: we might want to factor in change-detection to have more confidence here
51
+ message: `Please backup your work. Proceed to sync workspace?`,
52
+ type: ActionAlertType.CAUTION,
53
+ actions: [
54
+ {
55
+ label: 'Proceed',
56
+ type: ActionAlertActionType.PROCEED_WITH_CAUTION,
57
+ handler: () => applicationStore.navigator.reload(),
58
+ },
59
+ {
60
+ label: 'Abort',
61
+ type: ActionAlertActionType.PROCEED,
62
+ default: true,
63
+ },
64
+ ],
65
+ });
66
+ };
67
+ return (_jsxs(_Fragment, { children: [isWorkspaceOutOfSync && (_jsxs("button", { className: "service-query-editor__header__action service-query-editor__workspace-status service-query-editor__workspace-status--out-of-sync", title: `Local workspace is out-of-sync. Please backup your work and refresh the application\n\nClick to sync workspace`, tabIndex: -1, onClick: syncWorkspace, children: [_jsx("div", { className: "service-query-editor__workspace-status__icon", children: _jsx(SyncIcon, {}) }), _jsx("div", { className: "service-query-editor__workspace-status__text", children: "OUT-OF-SYNC" })] })), isWorkspaceOutated && !isWorkspaceOutOfSync && (_jsxs("button", { className: "service-query-editor__header__action service-query-editor__workspace-status service-query-editor__workspace-status--outdated", title: "Workspace is outdated. Click to update", tabIndex: -1, onClick: updateWorkspace, children: [_jsx("div", { className: "service-query-editor__workspace-status__icon", children: _jsx(CloudDownloadIcon, {}) }), _jsx("div", { className: "service-query-editor__workspace-status__text", children: "OUTDATED" })] })), !isWorkspaceOutated && !isWorkspaceOutOfSync && (_jsx("button", { className: "service-query-editor__header__action service-query-editor__workspace-status service-query-editor__workspace-status--up-to-date", tabIndex: -1, disabled: true, title: "Workspace is up-to-date", children: _jsx(CloudDownloadIcon, {}) }))] }));
68
+ });
69
+ //# sourceMappingURL=ServiceQueryEditorWorkspaceStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceQueryEditorWorkspaceStatus.js","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorWorkspaceStatus.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,MAAM,CAAC,MAAM,iCAAiC,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC7D,MAAM,WAAW,GAAG,0BAA0B,EAAE,CAAC;IACjD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,oBAAoB,GAAG,WAAW,CAAC,SAAS,CAAC,oBAAoB,CAAC;IACxE,MAAM,kBAAkB,GAAG,WAAW,CAAC,SAAS,CAAC,mBAAmB,CAAC;IAErE,MAAM,eAAe,GAAG,GAAS,EAAE;QACjC,WAAW,CAAC,kBAAkB,CAAC;YAC7B,kFAAkF;YAClF,OAAO,EAAE,uDAAuD;YAChE,IAAI,EAAE,eAAe,CAAC,OAAO;YAC7B,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE,qBAAqB,CAAC,oBAAoB;oBAChD,OAAO,EAAE,GAAG,EAAE;wBACZ,UAAU,CAAC,WAAW,CAA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ACV,EACA,CAAC,kBAAkB,IAAI,CAAC,oBAAoB,IAAI,CAC/C,iBACE,SAAS,EAAC,gIAAgI,EAC1I,QAAQ,EAAE,CAAC,CAAC,EACZ,QAAQ,EAAE,IAAI,EACd,KAAK,EAAC,yBAAyB,YAE/B,KAAC,iBAAiB,KAAG,GACd,CACV,IACA,CACJ,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ export declare const UpdateProjectServiceQuerySetup: import("react").FC<{}>;
18
+ //# sourceMappingURL=UpdateProjectServiceQuerySetup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateProjectServiceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/studio/UpdateProjectServiceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAkNH,eAAO,MAAM,8BAA8B,wBA8PxC,CAAC"}
@@ -0,0 +1,182 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { createContext, useContext, useEffect, useMemo, useState, useRef, } from 'react';
18
+ import { observer, useLocalObservable } from 'mobx-react-lite';
19
+ import { debounce, guaranteeNonNullable, isString } from '@finos/legend-shared';
20
+ import { useSDLCServerClient } from '@finos/legend-server-sdlc';
21
+ import { ActivityBarMenu, buildWorkspaceOption, formatWorkspaceOptionLabel, LEGEND_STUDIO_TEST_ID, useLegendStudioApplicationStore, buildProjectOption, getProjectOptionLabelFormatter, } from '@finos/legend-application-studio';
22
+ import { UpdateProjectServiceQuerySetupStore } from '../../stores/studio/UpdateProjectServiceQuerySetupStore.js';
23
+ import { useParams } from 'react-router';
24
+ import { generateProjectServiceQueryUpdaterRoute, } from '../../stores/studio/DSL_Service_LegendStudioRouter.js';
25
+ import { flowResult } from 'mobx';
26
+ import { compareLabelFn, createFilter, CustomSelectorInput, Dialog, GitBranchIcon, Panel, PanelLoadingIndicator, PlusIcon, PURE_ServiceIcon, RepoIcon, } from '@finos/legend-art';
27
+ import { extractElementNameFromPath } from '@finos/legend-graph';
28
+ const UpdateProjectServiceQuerySetupStoreContext = createContext(undefined);
29
+ const UpdateProjectServiceQuerySetupStoreProvider = ({ children }) => {
30
+ const applicationStore = useLegendStudioApplicationStore();
31
+ const sdlcServerClient = useSDLCServerClient();
32
+ const store = useLocalObservable(() => new UpdateProjectServiceQuerySetupStore(applicationStore, sdlcServerClient));
33
+ return (_jsx(UpdateProjectServiceQuerySetupStoreContext.Provider, { value: store, children: children }));
34
+ };
35
+ const useUpdateProjectServiceQuerySetupStore = () => guaranteeNonNullable(useContext(UpdateProjectServiceQuerySetupStoreContext), `Can't find project service query updater store in context`);
36
+ const withUpdateProjectServiceQuerySetupStore = (WrappedComponent) => function WithUpdateProjectServiceQuerySetupStore() {
37
+ return (_jsx(UpdateProjectServiceQuerySetupStoreProvider, { children: _jsx(WrappedComponent, {}) }));
38
+ };
39
+ const CreateWorkspaceModal = observer((props) => {
40
+ const { selectedProject } = props;
41
+ const setupStore = useUpdateProjectServiceQuerySetupStore();
42
+ const applicationStore = useLegendStudioApplicationStore();
43
+ const workspaceNameInputRef = useRef(null);
44
+ const [workspaceName, setWorkspaceName] = useState('');
45
+ const workspaceAlreadyExists = Boolean(setupStore.groupWorkspaces.find((workspace) => workspace.workspaceId === workspaceName));
46
+ const createWorkspace = () => {
47
+ if (workspaceName && !workspaceAlreadyExists) {
48
+ flowResult(setupStore.createWorkspace(selectedProject.projectId, workspaceName)).catch(applicationStore.alertUnhandledError);
49
+ }
50
+ };
51
+ const changeWorkspaceName = (event) => setWorkspaceName(event.target.value);
52
+ const handleEnter = () => {
53
+ workspaceNameInputRef.current?.focus();
54
+ };
55
+ const onClose = () => {
56
+ setupStore.setShowCreateWorkspaceModal(false);
57
+ };
58
+ const handleSubmit = (event) => {
59
+ event.preventDefault();
60
+ createWorkspace();
61
+ };
62
+ return (_jsx(Dialog, { open: setupStore.showCreateWorkspaceModal, onClose: onClose, TransitionProps: {
63
+ onEnter: handleEnter,
64
+ }, classes: { container: 'search-modal__container' }, PaperProps: { classes: { root: 'search-modal__inner-container' } }, children: _jsxs("form", { onSubmit: handleSubmit, className: "modal modal--dark search-modal", children: [_jsx("div", { className: "modal__title", children: "Create New Workspace" }), _jsxs(Panel, { children: [_jsx(PanelLoadingIndicator, { isLoading: setupStore.createWorkspaceState.isInProgress }), _jsx("div", { className: "panel__content--full", children: _jsxs("div", { className: "input-group", children: [_jsx("input", { className: "input input--dark input-group__input", ref: workspaceNameInputRef, spellCheck: false, disabled: setupStore.createWorkspaceState.isInProgress, placeholder: "MyWorkspace", value: workspaceName, onChange: changeWorkspaceName }), workspaceAlreadyExists && (_jsx("div", { className: "input-group__error-message", children: "Workspace with same name already exists" }))] }) })] }), _jsx("div", { className: "search-modal__actions", children: _jsx("button", { disabled: setupStore.createWorkspaceState.isInProgress ||
65
+ !workspaceName ||
66
+ workspaceAlreadyExists, className: "btn btn--dark", children: "Create" }) })] }) }));
67
+ });
68
+ const buildServiceOption = (entity) => ({
69
+ label: extractElementNameFromPath(entity.path),
70
+ value: {
71
+ name: extractElementNameFromPath(entity.path),
72
+ path: entity.path,
73
+ // NOTE: we don't want to assert the existence of this field even when it
74
+ // is required in the specification of service to avoid throwing error here
75
+ urlPattern: isString(entity.content.pattern)
76
+ ? entity.content.pattern
77
+ : undefined,
78
+ entity,
79
+ },
80
+ });
81
+ const formatServiceOptionLabel = (option) => (_jsxs("div", { className: "query-setup__service-option", title: `${option.label} - ${option.value.urlPattern ?? ''} - ${option.value.path}`, children: [_jsx("div", { className: "query-setup__service-option__label", children: option.label }), _jsx("div", { className: "query-setup__service-option__path", children: option.value.path }), _jsx("div", { className: "query-setup__service-option__pattern", children: option.value.urlPattern ?? 'no pattern' })] }));
82
+ export const UpdateProjectServiceQuerySetup = withUpdateProjectServiceQuerySetupStore(observer(() => {
83
+ const params = useParams();
84
+ const { projectId } = params;
85
+ const setupStore = useUpdateProjectServiceQuerySetupStore();
86
+ const applicationStore = useLegendStudioApplicationStore();
87
+ const [projectSearchText, setProjectSearchText] = useState('');
88
+ // action
89
+ const disableProceedButton = !setupStore.currentProject ||
90
+ !setupStore.currentGroupWorkspace ||
91
+ !setupStore.currentService;
92
+ const handleProceed = () => {
93
+ if (setupStore.currentProject &&
94
+ setupStore.currentGroupWorkspace &&
95
+ setupStore.currentService) {
96
+ applicationStore.navigator.goTo(generateProjectServiceQueryUpdaterRoute(setupStore.currentProject.projectId, setupStore.currentGroupWorkspace.workspaceId, setupStore.currentService.path));
97
+ }
98
+ };
99
+ // projects
100
+ const projectOptions = setupStore.projects.map(buildProjectOption);
101
+ const selectedProjectOption = setupStore.currentProject
102
+ ? buildProjectOption(setupStore.currentProject)
103
+ : null;
104
+ const onProjectOptionChange = (option) => {
105
+ if (option) {
106
+ flowResult(setupStore.changeProject(option.value)).catch(applicationStore.alertUnhandledError);
107
+ }
108
+ else {
109
+ setupStore.resetCurrentProject();
110
+ }
111
+ };
112
+ // project search text
113
+ const debouncedLoadProjects = useMemo(() => debounce((input) => {
114
+ flowResult(setupStore.loadProjects(input)).catch(applicationStore.alertUnhandledError);
115
+ }, 500), [applicationStore, setupStore]);
116
+ const onProjectSearchTextChange = (value) => {
117
+ if (value !== projectSearchText) {
118
+ setProjectSearchText(value);
119
+ debouncedLoadProjects.cancel();
120
+ debouncedLoadProjects(value);
121
+ }
122
+ };
123
+ // workspaces
124
+ const workspaceOptions = setupStore.groupWorkspaces
125
+ .map(buildWorkspaceOption)
126
+ .sort(compareLabelFn);
127
+ const selectedOption = setupStore.currentGroupWorkspace
128
+ ? buildWorkspaceOption(setupStore.currentGroupWorkspace)
129
+ : null;
130
+ const onWorkspaceChange = (option) => {
131
+ if (option) {
132
+ flowResult(setupStore.changeWorkspace(option.value)).catch(applicationStore.alertUnhandledError);
133
+ }
134
+ else {
135
+ setupStore.resetCurrentGroupWorkspace();
136
+ }
137
+ };
138
+ const showCreateWorkspaceModal = () => setupStore.setShowCreateWorkspaceModal(true);
139
+ // services
140
+ const serviceOptions = setupStore.services.map(buildServiceOption);
141
+ const selectedServiceOption = setupStore.currentService
142
+ ? buildServiceOption(setupStore.currentService)
143
+ : null;
144
+ const onServiceOptionChange = (option) => {
145
+ if (option) {
146
+ setupStore.changeService(option.value.entity);
147
+ }
148
+ else {
149
+ setupStore.resetCurrentService();
150
+ }
151
+ };
152
+ const serviceFilterOption = createFilter({
153
+ ignoreCase: true,
154
+ ignoreAccents: false,
155
+ stringify: (option) =>
156
+ // NOTE: account for label, path, and URL pattern
157
+ `${option.label} - ${option.value.urlPattern ?? ''} - ${option.value.path}`,
158
+ });
159
+ useEffect(() => {
160
+ flowResult(setupStore.loadProjects('')).catch(applicationStore.alertUnhandledError);
161
+ }, [setupStore, applicationStore]);
162
+ useEffect(() => {
163
+ setupStore.initialize(projectId);
164
+ }, [setupStore, projectId]);
165
+ return (_jsx("div", { className: "app__page", children: _jsxs("div", { className: "service-query-setup", children: [_jsxs("div", { className: "service-query-setup__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "service-query-setup__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "service-query-setup__content__main", children: [_jsx("div", { className: "service-query-setup__title", children: _jsx("div", { className: "service-query-setup__title__header", children: "Update Project Service Query" }) }), _jsxs("div", { className: "service-query-setup__selector", children: [_jsx("div", { className: "service-query-setup__selector__icon", title: "service", children: _jsx(RepoIcon, { className: "service-query-setup__selector__icon--project" }) }), _jsx(CustomSelectorInput, { className: "service-query-setup__selector__input", options: projectOptions, isLoading: setupStore.loadProjectsState.isInProgress, onInputChange: onProjectSearchTextChange, inputValue: projectSearchText, value: selectedProjectOption, onChange: onProjectOptionChange, placeholder: "Search for project...", darkMode: true, isClearable: true, escapeClearsValue: true, formatOptionLabel: getProjectOptionLabelFormatter(applicationStore) })] }), _jsxs("div", { className: "service-query-setup__selector", children: [_jsx("div", { className: "service-query-setup__selector__icon", title: "workspace", children: _jsx(GitBranchIcon, { className: "service-query-setup__selector__icon--workspace" }) }), _jsx(CustomSelectorInput, { className: "service-query-setup__selector__input", options: workspaceOptions, disabled: !setupStore.currentProject ||
166
+ setupStore.loadWorkspacesState.isInProgress, isLoading: setupStore.loadWorkspacesState.isInProgress, onChange: onWorkspaceChange, formatOptionLabel: formatWorkspaceOptionLabel, value: selectedOption, placeholder: setupStore.loadWorkspacesState.isInProgress
167
+ ? 'Loading workspaces...'
168
+ : !setupStore.currentProject
169
+ ? 'In order to select a workspace, a project must be selected'
170
+ : workspaceOptions.length
171
+ ? 'Choose an existing workspace'
172
+ : setupStore.loadWorkspacesState.hasFailed
173
+ ? `Can't fetch project workspaces. Please try again or select another service`
174
+ : 'You have no workspaces. Please create one to proceed...', isClearable: true, escapeClearsValue: true, darkMode: true }), _jsx("button", { className: "service-query-setup__selector__action btn--dark", onClick: showCreateWorkspaceModal, disabled: !setupStore.currentProject, tabIndex: -1, title: "Create a Workspace", children: _jsx(PlusIcon, {}) })] }), _jsxs("div", { className: "service-query-setup__selector", children: [_jsx("div", { className: "service-query-setup__selector__icon", title: "service", children: _jsx(PURE_ServiceIcon, {}) }), _jsx(CustomSelectorInput, { className: "service-query-setup__selector__input", disabled: !setupStore.currentGroupWorkspace ||
175
+ !serviceOptions.length, options: serviceOptions, value: selectedServiceOption, onChange: onServiceOptionChange, placeholder: !setupStore.currentGroupWorkspace
176
+ ? 'In order to select a service, a workspace must be selected'
177
+ : serviceOptions.length
178
+ ? 'Choose an existing service'
179
+ : 'You have no services to load', darkMode: true, isClearable: true, escapeClearsValue: true, filterOption: serviceFilterOption, formatOptionLabel: formatServiceOptionLabel })] }), setupStore.showCreateWorkspaceModal &&
180
+ setupStore.currentProject && (_jsx(CreateWorkspaceModal, { selectedProject: setupStore.currentProject })), _jsx("div", { className: "service-query-setup__actions", children: _jsx("button", { className: "service-query-setup__next-btn btn--dark", onClick: handleProceed, disabled: disableProceedButton, children: "Edit Service Query" }) })] }) })] }), _jsx("div", { "data-testid": LEGEND_STUDIO_TEST_ID.STATUS_BAR, className: "editor__status-bar" })] }) }));
181
+ }));
182
+ //# sourceMappingURL=UpdateProjectServiceQuerySetup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateProjectServiceQuerySetup.js","sourceRoot":"","sources":["../../../src/components/studio/UpdateProjectServiceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EACV,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,GACP,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAA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C,oBAAoB,YAE1B,KAAC,QAAQ,KAAG,GACL,IACL,EACN,eAAK,SAAS,EAAC,+BAA+B,aAC5C,cACE,SAAS,EAAC,qCAAqC,EAC/C,KAAK,EAAC,SAAS,YAEf,KAAC,gBAAgB,KAAG,GAChB,EACN,KAAC,mBAAmB,IAClB,SAAS,EAAC,sCAAsC,EAChD,QAAQ,EACN,CAAC,UAAU,CAAC,qBAAqB;oDACjC,CAAC,cAAc,CAAC,MAAM,EAExB,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EAAE,qBAAqB,EAC/B,WAAW,EACT,CAAC,UAAU,CAAC,qBAAqB;oDAC/B,CAAC,CAAC,4DAA4D;oDAC9D,CAAC,CAAC,cAAc,CAAC,MAAM;wDACvB,CAAC,CAAC,4BAA4B;wDAC9B,CAAC,CAAC,8BAA8B,EAEpC,QAAQ,EAAE,IAAI,EACd,WAAW,EAAE,IAAI,EACjB,iBAAiB,EAAE,IAAI,EACvB,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,wBAAwB,GAC3C,IACE,EACL,UAAU,CAAC,wBAAwB;wCAClC,UAAU,CAAC,cAAc,IAAI,CAC3B,KAAC,oBAAoB,IACnB,eAAe,EAAE,UAAU,CAAC,cAAc,GAC1C,CACH,EACH,cAAK,SAAS,EAAC,8BAA8B,YAC3C,iBACE,SAAS,EAAC,yCAAyC,EACnD,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,oBAAoB,mCAGvB,GACL,IACF,GACF,IACF,EACN,6BACe,qBAAqB,CAAC,UAAU,EAC7C,SAAS,EAAC,oBAAoB,GAC9B,IACE,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ export declare const UpdateServiceQuerySetup: import("react").FC<{}>;
18
+ //# sourceMappingURL=UpdateServiceQuerySetup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateServiceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/studio/UpdateServiceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAkMH,eAAO,MAAM,uBAAuB,wBA2QnC,CAAC"}