@burdenoff/microfe-integrations 2026.626.2 → 2026.715.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.
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +23527 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +1645 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +57851 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/integrations/IntegrationsAdminRoot.d.ts +19 -0
- package/dist/integrations/IntegrationsAdminRoot.d.ts.map +1 -0
- package/dist/integrations/IntegrationsAdminRoutes.d.ts +8 -0
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +1 -0
- package/dist/integrations/IntegrationsRoot.d.ts +33 -0
- package/dist/integrations/IntegrationsRoot.d.ts.map +1 -0
- package/dist/integrations/IntegrationsRoot.js +1 -1
- package/dist/integrations/IntegrationsRoot.js.map +1 -1
- package/dist/integrations/IntegrationsUserRoutes.d.ts +8 -0
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +1 -0
- package/dist/integrations/components/AddConnectionDialog.d.ts +22 -0
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -0
- package/dist/integrations/components/ConfirmDialog.d.ts +17 -0
- package/dist/integrations/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/integrations/components/ConnectionCard.d.ts +14 -0
- package/dist/integrations/components/ConnectionCard.d.ts.map +1 -0
- package/dist/integrations/components/ConnectionStatusBadge.d.ts +14 -0
- package/dist/integrations/components/ConnectionStatusBadge.d.ts.map +1 -0
- package/dist/integrations/components/CredentialStorageSelector.d.ts +16 -0
- package/dist/integrations/components/CredentialStorageSelector.d.ts.map +1 -0
- package/dist/integrations/components/ProviderCard.d.ts +16 -0
- package/dist/integrations/components/ProviderCard.d.ts.map +1 -0
- package/dist/integrations/components/ProviderIcon.d.ts +19 -0
- package/dist/integrations/components/ProviderIcon.d.ts.map +1 -0
- package/dist/integrations/constants/featureFlags.d.ts +7 -0
- package/dist/integrations/constants/featureFlags.d.ts.map +1 -0
- package/dist/integrations/constants/permissions.d.ts +22 -0
- package/dist/integrations/constants/permissions.d.ts.map +1 -0
- package/dist/integrations/events/integrations-events.d.ts +36 -0
- package/dist/integrations/events/integrations-events.d.ts.map +1 -0
- package/dist/integrations/events/useIntegrationsEventBus.d.ts +11 -0
- package/dist/integrations/events/useIntegrationsEventBus.d.ts.map +1 -0
- package/dist/integrations/hooks/useConnections.d.ts +95 -0
- package/dist/integrations/hooks/useConnections.d.ts.map +1 -0
- package/dist/integrations/hooks/useCredentialVaults.d.ts +21 -0
- package/dist/integrations/hooks/useCredentialVaults.d.ts.map +1 -0
- package/dist/integrations/hooks/useLogs.d.ts +22 -0
- package/dist/integrations/hooks/useLogs.d.ts.map +1 -0
- package/dist/integrations/hooks/useProviders.d.ts +99 -0
- package/dist/integrations/hooks/useProviders.d.ts.map +1 -0
- package/dist/integrations/index.d.ts +33 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/pages/AddConnectionWizard.d.ts +14 -0
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectionDetail.d.ts +5 -0
- package/dist/integrations/pages/ConnectionDetail.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectionLogs.d.ts +5 -0
- package/dist/integrations/pages/ConnectionLogs.d.ts.map +1 -0
- package/dist/integrations/pages/ConnectionsList.d.ts +5 -0
- package/dist/integrations/pages/ConnectionsList.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsOverview.d.ts +5 -0
- package/dist/integrations/pages/IntegrationsOverview.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsSettings.d.ts +5 -0
- package/dist/integrations/pages/IntegrationsSettings.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts +11 -0
- package/dist/integrations/pages/IntegrationsUserLandingPage.d.ts.map +1 -0
- package/dist/integrations/pages/ProviderCatalog.d.ts +9 -0
- package/dist/integrations/pages/ProviderCatalog.d.ts.map +1 -0
- package/dist/integrations/pages/ProviderDetail.d.ts +5 -0
- package/dist/integrations/pages/ProviderDetail.d.ts.map +1 -0
- package/dist/integrations/pages/ProviderEditorPage.d.ts +2 -0
- package/dist/integrations/pages/ProviderEditorPage.d.ts.map +1 -0
- package/dist/integrations/providers/IntegrationsProvider.d.ts +13 -0
- package/dist/integrations/providers/IntegrationsProvider.d.ts.map +1 -0
- package/dist/integrations/store/integrationsStore.d.ts +21 -0
- package/dist/integrations/store/integrationsStore.d.ts.map +1 -0
- package/dist/integrations/types/index.d.ts +217 -0
- package/dist/integrations/types/index.d.ts.map +1 -0
- package/dist/integrations/utils/appearance.d.ts +14 -0
- package/dist/integrations/utils/appearance.d.ts.map +1 -0
- package/dist/integrations/utils/cn.d.ts +8 -0
- package/dist/integrations/utils/cn.d.ts.map +1 -0
- package/dist/integrations/utils/constants.d.ts +190 -0
- package/dist/integrations/utils/constants.d.ts.map +1 -0
- package/dist/integrations/utils/integrationsHelpers.d.ts +31 -0
- package/dist/integrations/utils/integrationsHelpers.d.ts.map +1 -0
- package/dist/integrations/utils/mappers.d.ts +15 -0
- package/dist/integrations/utils/mappers.d.ts.map +1 -0
- package/dist/integrations/utils/navigation.d.ts +18 -0
- package/dist/integrations/utils/navigation.d.ts.map +1 -0
- package/dist/integrations/utils/oauthPopup.d.ts +16 -0
- package/dist/integrations/utils/oauthPopup.d.ts.map +1 -0
- package/dist/integrations/utils/paths.d.ts +5 -0
- package/dist/integrations/utils/paths.d.ts.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationsRootProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Admin root component for the Integrations microfrontend.
|
|
6
|
+
*
|
|
7
|
+
* This is the admin entry point that admin-app imports and renders.
|
|
8
|
+
* It sets up providers and renders admin-only routing (settings,
|
|
9
|
+
* future admin features).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { IntegrationsAdminRoot } from '@burdenoff/micro-fe/integrations';
|
|
14
|
+
*
|
|
15
|
+
* <IntegrationsAdminRoot basePath="/integrations" {...adminProps} />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const IntegrationsAdminRoot: FC<IntegrationsRootProps>;
|
|
19
|
+
//# sourceMappingURL=IntegrationsAdminRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CA6D3D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin-facing routes for the Integrations microfrontend.
|
|
3
|
+
*
|
|
4
|
+
* Includes: Settings (module configuration).
|
|
5
|
+
* Excludes user features: Overview, Providers, Connections, Activity Logs.
|
|
6
|
+
*/
|
|
7
|
+
export declare function IntegrationsAdminRoutes(): import("react").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=IntegrationsAdminRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsAdminRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsAdminRoutes.tsx"],"names":[],"mappings":"AAuFA;;;;;GAKG;AACH,wBAAgB,uBAAuB,uCAkCtC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationsRootProps } from './types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Root component for the Integrations microfrontend.
|
|
6
|
+
*
|
|
7
|
+
* This is the main entry point that host applications import and render.
|
|
8
|
+
* It sets up the necessary providers and renders the internal routing.
|
|
9
|
+
* Automatically registers navigation items with the shell if registration functions are provided.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';
|
|
14
|
+
*
|
|
15
|
+
* function App() {
|
|
16
|
+
* const props: IntegrationsRootProps = {
|
|
17
|
+
* basePath: '/integrations',
|
|
18
|
+
* navigate: (path) => router.push(path),
|
|
19
|
+
* currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },
|
|
20
|
+
* workspaceId: 'ws-123',
|
|
21
|
+
* apiGatewayUrl: 'https://api.example.com',
|
|
22
|
+
* authToken: 'token',
|
|
23
|
+
* onConnectionSelect: (conn) => console.log('Connection selected:', conn),
|
|
24
|
+
* onProviderSelect: (provider) => console.log('Provider selected:', provider),
|
|
25
|
+
* registerNavItems: (items) => { return () => {}; },
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* return <IntegrationsRoot {...props} />;
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const IntegrationsRoot: FC<IntegrationsRootProps>;
|
|
33
|
+
//# sourceMappingURL=IntegrationsRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsRoot.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAW,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0FtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsUserRoutes } from './IntegrationsUserRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Root component for the Integrations microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';\n *\n * function App() {\n * const props: IntegrationsRootProps = {\n * basePath: '/integrations',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * onConnectionSelect: (conn) => console.log('Connection selected:', conn),\n * onProviderSelect: (provider) => console.log('Provider selected:', provider),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <IntegrationsRoot {...props} />;\n * }\n * ```\n */\nexport const IntegrationsRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: 'Integrations',\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: 'Overview',\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: 'Connections',\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-logs',\n label: 'Activity Logs',\n path: joinPath(basePath, 'logs'),\n icon: <FileText size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(integrationsNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: 'Integrations Ready',\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"
|
|
1
|
+
{"version":3,"file":"IntegrationsRoot.js","names":[],"sources":["../../src/integrations/IntegrationsRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useEffect } from 'react';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { Plug, LayoutDashboard, Store, Link2, FileText } from 'lucide-react';\nimport { IntegrationsProvider } from './providers/IntegrationsProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport type { NavItem, IntegrationsRootProps } from './types';\nimport { IntegrationsUserRoutes } from './IntegrationsUserRoutes';\nimport { joinPath } from './utils/paths';\n\n/**\n * Root component for the Integrations microfrontend.\n *\n * This is the main entry point that host applications import and render.\n * It sets up the necessary providers and renders the internal routing.\n * Automatically registers navigation items with the shell if registration functions are provided.\n *\n * @example\n * ```tsx\n * import { IntegrationsRoot, type IntegrationsRootProps } from '@burdenoff/micro-fe/integrations';\n *\n * function App() {\n * const props: IntegrationsRootProps = {\n * basePath: '/integrations',\n * navigate: (path) => router.push(path),\n * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },\n * workspaceId: 'ws-123',\n * apiGatewayUrl: 'https://api.example.com',\n * authToken: 'token',\n * onConnectionSelect: (conn) => console.log('Connection selected:', conn),\n * onProviderSelect: (provider) => console.log('Provider selected:', provider),\n * registerNavItems: (items) => { return () => {}; },\n * };\n *\n * return <IntegrationsRoot {...props} />;\n * }\n * ```\n */\nexport const IntegrationsRoot: FC<IntegrationsRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n\n // Register navigation items with the shell\n useEffect(() => {\n if (!registerNavItems) return;\n\n const integrationsNavItem: NavItem = {\n id: 'integrations',\n label: 'Integrations',\n path: basePath,\n icon: <Plug size={20} />,\n order: 10,\n group: 'integrations',\n children: [\n {\n id: 'integrations-overview',\n label: 'Overview',\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 10,\n },\n {\n id: 'integrations-providers',\n label: 'Providers',\n path: joinPath(basePath, 'providers'),\n icon: <Store size={16} />,\n order: 20,\n },\n {\n id: 'integrations-connections',\n label: 'Connections',\n path: joinPath(basePath, 'connections'),\n icon: <Link2 size={16} />,\n order: 30,\n },\n {\n id: 'integrations-logs',\n label: 'Activity Logs',\n path: joinPath(basePath, 'logs'),\n icon: <FileText size={16} />,\n order: 40,\n },\n ],\n };\n\n // Register and get cleanup function\n const cleanup = registerNavItems(integrationsNavItem);\n\n // Return cleanup function to unregister on unmount\n return cleanup;\n }, [registerNavItems, basePath]);\n\n // Register footer items\n useEffect(() => {\n if (!registerFooterItems) return;\n\n const footerItems = [\n {\n id: 'integrations-status',\n label: 'Integrations Ready',\n type: 'status' as const,\n order: 10,\n section: 'left' as const,\n },\n ];\n\n const cleanup = registerFooterItems(footerItems);\n return cleanup;\n }, [registerFooterItems]);\n\n return (\n <FeatureFlagProvider\n workspaceId={props.workspaceId ?? null}\n gateway=\"global\"\n defaultEnabled={false}\n >\n <ErrorBoundary\n fallback={\n <div className=\"p-6 text-center text-text-secondary\">\n Something went wrong loading this module. Please refresh the page.\n </div>\n }\n >\n <IntegrationsProvider {...props}>\n <IntegrationsUserRoutes />\n </IntegrationsProvider>\n </ErrorBoundary>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;AAsCA,IAAa,KAA+C,MAAU;CACpE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ;AAsElE,QAnEA,QAAgB;AACT,QA6CL,QAHgB,EAxCqB;GACnC,IAAI;GACJ,OAAO;GACP,MAAM;GACN,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;GACxB,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO;KACP,MAAM;KACN,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;KACnC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,cAAc;KACvC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO;KACP,MAAM,EAAS,GAAU,OAAO;KAChC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;KAC5B,OAAO;KACR;IACF;GACF,CAGoD;IAIpD,CAAC,GAAkB,EAAS,CAAC,EAGhC,QAAgB;AACT,QAaL,QADgB,EAVI,CAClB;GACE,IAAI;GACJ,OAAO;GACP,MAAM;GACN,OAAO;GACP,SAAS;GACV,CACF,CAE+C;IAE/C,CAAC,EAAoB,CAAC,EAGvB,kBAAC,GAAD;EACE,aAAa,EAAM,eAAe;EAClC,SAAQ;EACR,gBAAgB;YAEhB,kBAAC,GAAD;GACE,UACE,kBAAC,OAAD;IAAK,WAAU;cAAsC;IAE/C,CAAA;aAGR,kBAAC,GAAD;IAAsB,GAAI;cACxB,kBAAC,GAAD,EAA0B,CAAA;IACL,CAAA;GACT,CAAA;EACI,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User-facing routes for the Integrations microfrontend.
|
|
3
|
+
*
|
|
4
|
+
* Includes: Overview, Providers, Connections, Activity Logs.
|
|
5
|
+
* Excludes admin features: Settings.
|
|
6
|
+
*/
|
|
7
|
+
export declare function IntegrationsUserRoutes(): import("react").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=IntegrationsUserRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationsUserRoutes.d.ts","sourceRoot":"","sources":["../../src/integrations/IntegrationsUserRoutes.tsx"],"names":[],"mappings":"AAgGA;;;;;GAKG;AACH,wBAAgB,sBAAsB,uCA2CrC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AddConnectionDialog -- n8n-style popup for creating new connections.
|
|
3
|
+
*
|
|
4
|
+
* Replaces the full-page AddConnectionWizard with an inline modal dialog.
|
|
5
|
+
* Uses the same hooks and GraphQL operations that already exist in
|
|
6
|
+
* microfe-integrations (useCreateConnection, useInitiateOAuth, etc.).
|
|
7
|
+
*
|
|
8
|
+
* Opens from any page via Zustand store state, so there is no navigation
|
|
9
|
+
* to /connections/add — the dialog overlays the current page.
|
|
10
|
+
*/
|
|
11
|
+
export interface AddConnectionDialogProps {
|
|
12
|
+
/** Whether the dialog is open */
|
|
13
|
+
open: boolean;
|
|
14
|
+
/** Callback to close the dialog */
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
/** Pre-selected provider ID (skips provider picker step) */
|
|
17
|
+
preselectedProviderId?: string | null;
|
|
18
|
+
/** Callback when a connection is successfully created */
|
|
19
|
+
onConnectionCreated?: (connectionId: string) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function AddConnectionDialog({ open, onClose, preselectedProviderId, onConnectionCreated, }: AddConnectionDialogProps): import("react").JSX.Element | null;
|
|
22
|
+
//# sourceMappingURL=AddConnectionDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddConnectionDialog.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/AddConnectionDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA6CH,MAAM,WAAW,wBAAwB;IACvC,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,mCAAmC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,4DAA4D;IAC5D,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACtD;AAQD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,OAAO,EACP,qBAAqB,EACrB,mBAAmB,GACpB,EAAE,wBAAwB,sCAs5B1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ConfirmDialogProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
confirmLabel: string;
|
|
8
|
+
cancelLabel: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
destructive?: boolean;
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
onConfirm: () => void;
|
|
13
|
+
onCancel: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function ConfirmDialog({ open, title, description, confirmLabel, cancelLabel, loading, destructive, icon, onConfirm, onCancel, }: ConfirmDialogProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,UAAU,kBAAkB;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,YAAY,EACZ,WAAW,EACX,OAAe,EACf,WAAmB,EACnB,IAAI,EACJ,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,+BA4CpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationConnection } from '../types';
|
|
3
|
+
|
|
4
|
+
interface ConnectionCardProps {
|
|
5
|
+
connection: IntegrationConnection;
|
|
6
|
+
displayMode?: 'grid' | 'list';
|
|
7
|
+
onClick?: (connection: IntegrationConnection) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Card showing connection info (provider icon, connection name, account email, status badge, last used).
|
|
11
|
+
*/
|
|
12
|
+
export declare const ConnectionCard: FC<ConnectionCardProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ConnectionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectionCard.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ConnectionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAItD,UAAU,mBAAmB;IAC3B,UAAU,EAAE,qBAAqB,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAwGlD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ConnectionStatus } from '../types';
|
|
3
|
+
|
|
4
|
+
interface ConnectionStatusBadgeProps {
|
|
5
|
+
status: ConnectionStatus;
|
|
6
|
+
size?: 'sm' | 'md';
|
|
7
|
+
showDot?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Badge showing colored status (ACTIVE=green, ERROR=red, EXPIRED=yellow, etc).
|
|
11
|
+
*/
|
|
12
|
+
export declare const ConnectionStatusBadge: FC<ConnectionStatusBadgeProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ConnectionStatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConnectionStatusBadge.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ConnectionStatusBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,0BAA0B;IAClC,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CA0BhE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface CredentialStorageState {
|
|
4
|
+
mode: 'managed' | 'existing';
|
|
5
|
+
vaultId: string;
|
|
6
|
+
secretId: string;
|
|
7
|
+
managedSecretName: string;
|
|
8
|
+
}
|
|
9
|
+
interface CredentialStorageSelectorProps {
|
|
10
|
+
value: CredentialStorageState;
|
|
11
|
+
onChange: Dispatch<SetStateAction<CredentialStorageState>>;
|
|
12
|
+
providerAuthType?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export declare function CredentialStorageSelector({ value, onChange, providerAuthType, }: CredentialStorageSelectorProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=CredentialStorageSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialStorageSelector.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/CredentialStorageSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAMlE,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,SAAS,GAAG,UAAU,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,8BAA8B;IACtC,KAAK,EAAE,sBAAsB,CAAC;IAC9B,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAC3D,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,yBAAyB,CAAC,EACxC,KAAK,EACL,QAAQ,EACR,gBAAgB,GACjB,EAAE,8BAA8B,+BAuKhC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationProvider } from '../types';
|
|
3
|
+
|
|
4
|
+
interface ProviderCardProps {
|
|
5
|
+
provider: IntegrationProvider;
|
|
6
|
+
displayMode?: 'grid' | 'list';
|
|
7
|
+
onConnect?: (provider: IntegrationProvider) => void;
|
|
8
|
+
onClick?: (provider: IntegrationProvider) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Card component showing provider info (icon, name, category, auth type, connection count).
|
|
12
|
+
* Has a "Connect" button.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ProviderCard: FC<ProviderCardProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=ProviderCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProviderCard.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ProviderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAGpD,UAAU,iBAAiB;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACpD,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACnD;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAuN9C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IntegrationProvider } from '../types';
|
|
3
|
+
|
|
4
|
+
interface ProviderIconProps {
|
|
5
|
+
provider: IntegrationProvider;
|
|
6
|
+
size?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders provider icon using @iconify/react — same icons as fluidgrids-fe-sdk.
|
|
11
|
+
*
|
|
12
|
+
* Priority:
|
|
13
|
+
* 1. If icon looks like a URL → render <img>
|
|
14
|
+
* 2. Match icon/key against PROVIDER_ICONS → render Iconify brand icon
|
|
15
|
+
* 3. Fallback → category-based Iconify icon
|
|
16
|
+
*/
|
|
17
|
+
export declare const ProviderIcon: FC<ProviderIconProps>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=ProviderIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProviderIcon.d.ts","sourceRoot":"","sources":["../../../src/integrations/components/ProviderIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,mBAAmB,EAAoB,MAAM,UAAU,CAAC;AAGtE,UAAU,iBAAiB;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAqED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiD9C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const INTEGRATION_FEATURE_FLAGS: {
|
|
2
|
+
readonly CSV_EXPORT: "integrations.csv-export";
|
|
3
|
+
readonly OAUTH_REFRESH: "integrations.oauth-refresh";
|
|
4
|
+
readonly TAG_MANAGEMENT: "integrations.tag-management";
|
|
5
|
+
readonly MANAGED_CREDENTIALS: "integrations.managed-credentials";
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=featureFlags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../../src/integrations/constants/featureFlags.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;CAK5B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations Permission Constants
|
|
3
|
+
*
|
|
4
|
+
* Usage: hasPermission(INTEGRATION_PERMISSIONS.CONNECTION_CREATE)
|
|
5
|
+
*/
|
|
6
|
+
export declare const INTEGRATION_PERMISSIONS: {
|
|
7
|
+
readonly INTEGRATION_READ: "integration:read";
|
|
8
|
+
readonly INTEGRATION_CREATE: "integration:create";
|
|
9
|
+
readonly INTEGRATION_WRITE: "integration:write";
|
|
10
|
+
readonly INTEGRATION_DELETE: "integration:delete";
|
|
11
|
+
readonly CONNECTION_READ: "integration-connection:read";
|
|
12
|
+
readonly CONNECTION_CREATE: "integration-connection:create";
|
|
13
|
+
readonly CONNECTION_UPDATE: "integration-connection:update";
|
|
14
|
+
readonly CONNECTION_DELETE: "integration-connection:delete";
|
|
15
|
+
readonly PROVIDER_READ: "integration-provider:read";
|
|
16
|
+
readonly PROVIDER_CREATE: "integration-provider:create";
|
|
17
|
+
readonly PROVIDER_UPDATE: "integration-provider:update";
|
|
18
|
+
readonly PROVIDER_DELETE: "integration-provider:delete";
|
|
19
|
+
readonly LOG_READ: "integration-log:read";
|
|
20
|
+
};
|
|
21
|
+
export type IntegrationPermission = (typeof INTEGRATION_PERMISSIONS)[keyof typeof INTEGRATION_PERMISSIONS];
|
|
22
|
+
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/integrations/constants/permissions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;CAuB1B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration domain events emitted by the MFE.
|
|
3
|
+
* Components can import this type to type-safely subscribe to integration events.
|
|
4
|
+
*/
|
|
5
|
+
export interface IntegrationsEventMap {
|
|
6
|
+
'integrations:connection-created': {
|
|
7
|
+
connectionId: string;
|
|
8
|
+
providerKey: string;
|
|
9
|
+
};
|
|
10
|
+
'integrations:connection-updated': {
|
|
11
|
+
connectionId: string;
|
|
12
|
+
};
|
|
13
|
+
'integrations:connection-deleted': {
|
|
14
|
+
connectionId: string;
|
|
15
|
+
};
|
|
16
|
+
'integrations:oauth-started': {
|
|
17
|
+
connectionId: string;
|
|
18
|
+
providerKey: string;
|
|
19
|
+
};
|
|
20
|
+
'integrations:oauth-completed': {
|
|
21
|
+
connectionId: string;
|
|
22
|
+
providerKey: string;
|
|
23
|
+
};
|
|
24
|
+
'integrations:oauth-failed': {
|
|
25
|
+
connectionId: string;
|
|
26
|
+
providerKey: string;
|
|
27
|
+
error?: string;
|
|
28
|
+
};
|
|
29
|
+
'integrations:token-refreshed': {
|
|
30
|
+
connectionId: string;
|
|
31
|
+
};
|
|
32
|
+
'integrations:token-revoked': {
|
|
33
|
+
connectionId: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=integrations-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations-events.d.ts","sourceRoot":"","sources":["../../../src/integrations/events/integrations-events.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,iCAAiC,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IACjF,iCAAiC,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,iCAAiC,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5D,4BAA4B,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5E,8BAA8B,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,2BAA2B,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3F,8BAA8B,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;IACzD,4BAA4B,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IntegrationsEventMap } from './integrations-events';
|
|
2
|
+
|
|
3
|
+
type EventKey = keyof IntegrationsEventMap;
|
|
4
|
+
interface EventState {
|
|
5
|
+
subscribers: Partial<Record<EventKey, Set<(payload: IntegrationsEventMap[EventKey]) => void>>>;
|
|
6
|
+
emit<K extends EventKey>(event: K, payload: IntegrationsEventMap[K]): void;
|
|
7
|
+
on<K extends EventKey>(event: K, handler: (payload: IntegrationsEventMap[K]) => void): () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useIntegrationsEventBus: import('zustand').UseBoundStore<import('zustand').StoreApi<EventState>>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=useIntegrationsEventBus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIntegrationsEventBus.d.ts","sourceRoot":"","sources":["../../../src/integrations/events/useIntegrationsEventBus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE,KAAK,QAAQ,GAAG,MAAM,oBAAoB,CAAC;AAE3C,UAAU,UAAU;IAClB,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,oBAAoB,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/F,IAAI,CAAC,CAAC,SAAS,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAC3E,EAAE,CAAC,CAAC,SAAS,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CACnG;AAED,eAAO,MAAM,uBAAuB,yEA4BjC,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { IntegrationConnection, ConnectionStatus, OAuthInitiationResult, ConnectionTestResult } from '../types';
|
|
2
|
+
|
|
3
|
+
interface ConnectionFilterOptions {
|
|
4
|
+
status?: ConnectionStatus;
|
|
5
|
+
providerId?: string;
|
|
6
|
+
search?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function useConnections(filter?: ConnectionFilterOptions): {
|
|
9
|
+
connections: IntegrationConnection[];
|
|
10
|
+
total: any;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
13
|
+
refetch: (variables?: any) => Promise<{
|
|
14
|
+
data: any;
|
|
15
|
+
error?: import('@apollo/client').ErrorLike;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
export declare function useConnection(id: string): {
|
|
19
|
+
connection: IntegrationConnection | null;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
22
|
+
refetch: (variables?: any) => Promise<{
|
|
23
|
+
data: any;
|
|
24
|
+
error?: import('@apollo/client').ErrorLike;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
export declare function useConnectionsByProvider(providerId: string): {
|
|
28
|
+
connections: IntegrationConnection[];
|
|
29
|
+
total: any;
|
|
30
|
+
loading: boolean;
|
|
31
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
32
|
+
refetch: (variables?: any) => Promise<{
|
|
33
|
+
data: any;
|
|
34
|
+
error?: import('@apollo/client').ErrorLike;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
export declare function useCreateConnection(): {
|
|
38
|
+
createConnection: (input: {
|
|
39
|
+
name: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
providerId: string;
|
|
42
|
+
vaultId?: string;
|
|
43
|
+
credentialSecretId?: string;
|
|
44
|
+
managedSecretName?: string;
|
|
45
|
+
config?: Record<string, unknown>;
|
|
46
|
+
}) => Promise<string | undefined>;
|
|
47
|
+
loading: boolean;
|
|
48
|
+
};
|
|
49
|
+
export declare function useDeleteConnection(): {
|
|
50
|
+
deleteConnection: (id: string, deleteVaultSecret?: boolean) => Promise<void>;
|
|
51
|
+
loading: boolean;
|
|
52
|
+
};
|
|
53
|
+
export declare function useInitiateOAuth(): {
|
|
54
|
+
initiateOAuth: (connectionId: string, redirectUri: string, providerKey: string, scopes?: string[]) => Promise<OAuthInitiationResult | null>;
|
|
55
|
+
loading: boolean;
|
|
56
|
+
};
|
|
57
|
+
export declare function useAuthenticateWithApiKey(): {
|
|
58
|
+
authenticateWithApiKey: (connectionId: string, apiKey: string) => Promise<any>;
|
|
59
|
+
loading: boolean;
|
|
60
|
+
};
|
|
61
|
+
export declare function useAuthenticateWithBasicAuth(): {
|
|
62
|
+
authenticateWithBasicAuth: (connectionId: string, username: string, password: string) => Promise<any>;
|
|
63
|
+
loading: boolean;
|
|
64
|
+
};
|
|
65
|
+
export declare function useAuthenticateWithBearerToken(): {
|
|
66
|
+
authenticateWithBearerToken: (connectionId: string, token: string) => Promise<any>;
|
|
67
|
+
loading: boolean;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Connect a first-party SERVICE_ACCOUNT provider (e.g. Burdenoff). No user
|
|
71
|
+
* credentials are collected — the platform mints an app-as-user token per
|
|
72
|
+
* execution. Calling this records the user's consent (delegation) for the
|
|
73
|
+
* reserved app and activates the connection.
|
|
74
|
+
*/
|
|
75
|
+
export declare function useAuthenticateWithServiceAccount(): {
|
|
76
|
+
authenticateWithServiceAccount: (connectionId: string, scopes?: string[]) => Promise<{
|
|
77
|
+
id: string;
|
|
78
|
+
status: ConnectionStatus;
|
|
79
|
+
} | undefined>;
|
|
80
|
+
loading: boolean;
|
|
81
|
+
};
|
|
82
|
+
export declare function useRefreshToken(): {
|
|
83
|
+
refreshToken: (connectionId: string) => Promise<any>;
|
|
84
|
+
loading: boolean;
|
|
85
|
+
};
|
|
86
|
+
export declare function useRevokeConnection(): {
|
|
87
|
+
revokeConnection: (connectionId: string) => Promise<any>;
|
|
88
|
+
loading: boolean;
|
|
89
|
+
};
|
|
90
|
+
export declare function useTestConnection(): {
|
|
91
|
+
testConnection: (connectionId: string) => Promise<ConnectionTestResult | null>;
|
|
92
|
+
loading: boolean;
|
|
93
|
+
};
|
|
94
|
+
export {};
|
|
95
|
+
//# sourceMappingURL=useConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useConnections.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useConnections.ts"],"names":[],"mappings":"AAAA;;GAEG;AAsBH,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAIlB,UAAU,uBAAuB;IAC/B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,uBAAuB;;;;;;;;;EAa9D;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM;;;;;;;;EAavC;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM;;;;;;;;;EAmB1D;AAID,wBAAgB,mBAAmB;8BAOjB;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC;;EAeJ;AAED,wBAAgB,mBAAmB;2BAOpB,MAAM;;EAQpB;AAED,wBAAgB,gBAAgB;kCAMZ,MAAM,eACP,MAAM,eACN,MAAM,WACV,MAAM,EAAE,KAChB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC;;EAgB3C;AAED,wBAAgB,yBAAyB;2CAMhB,MAAM,UAAU,MAAM;;EAQ9C;AAED,wBAAgB,4BAA4B;8CAMnB,MAAM,YAAY,MAAM,YAAY,MAAM;;EAQlE;AAED,wBAAgB,8BAA8B;gDAMrB,MAAM,SAAS,MAAM;;EAQ7C;AAkBD;;;;;GAKG;AACH,wBAAgB,iCAAiC;mDASxB,MAAM,WAAW,MAAM,EAAE;YAPN,MAAM;gBAAU,gBAAgB;;;EAe3E;AAED,wBAAgB,eAAe;iCAON,MAAM;;EAW9B;AAED,wBAAgB,mBAAmB;qCAOV,MAAM;;EAW9B;AAED,wBAAgB,iBAAiB;mCAIR,MAAM,KAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;;EAQrE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare function useCredentialVaults(): {
|
|
2
|
+
vaults: any;
|
|
3
|
+
total: number;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
6
|
+
refetch: (variables?: any) => Promise<{
|
|
7
|
+
data: any;
|
|
8
|
+
error?: import('@apollo/client').ErrorLike;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
export declare function useVaultSecrets(vaultId: string | null, authType?: string | null): {
|
|
12
|
+
secrets: any;
|
|
13
|
+
total: number;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
16
|
+
refetch: (variables?: any) => Promise<{
|
|
17
|
+
data: any;
|
|
18
|
+
error?: import('@apollo/client').ErrorLike;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=useCredentialVaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCredentialVaults.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useCredentialVaults.ts"],"names":[],"mappings":"AA+BA,wBAAgB,mBAAmB;;;;;;;;;EAwBlC;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;;;;;;;;;EA2C/E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IntegrationLog, LogLevel, LogAction } from '../types';
|
|
2
|
+
|
|
3
|
+
interface LogFilterOptions {
|
|
4
|
+
level?: LogLevel;
|
|
5
|
+
action?: LogAction;
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
skip?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function useIntegrationLogs(filter?: LogFilterOptions): {
|
|
11
|
+
logs: IntegrationLog[];
|
|
12
|
+
total: any;
|
|
13
|
+
hasMore: any;
|
|
14
|
+
loading: boolean;
|
|
15
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
16
|
+
refetch: (variables?: any) => Promise<{
|
|
17
|
+
data: any;
|
|
18
|
+
error?: import('@apollo/client').ErrorLike;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useLogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLogs.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useLogs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAKpE,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,gBAAgB;;;;;;;;;;EAgC3D"}
|