@burdenoff/microfe-integrations 2026.510.111
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/README.md +35 -0
- 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 +20716 -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-operations.js +561 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +53434 -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/index.js +8 -0
- package/dist/integrations/IntegrationsAdminRoot.d.ts +19 -0
- package/dist/integrations/IntegrationsAdminRoot.d.ts.map +1 -0
- package/dist/integrations/IntegrationsAdminRoot.js +50 -0
- package/dist/integrations/IntegrationsAdminRoot.js.map +1 -0
- package/dist/integrations/IntegrationsAdminRoutes.d.ts +8 -0
- package/dist/integrations/IntegrationsAdminRoutes.d.ts.map +1 -0
- package/dist/integrations/IntegrationsAdminRoutes.js +110 -0
- package/dist/integrations/IntegrationsAdminRoutes.js.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 +78 -0
- package/dist/integrations/IntegrationsRoot.js.map +1 -0
- package/dist/integrations/IntegrationsRoutes.d.ts +17 -0
- package/dist/integrations/IntegrationsRoutes.d.ts.map +1 -0
- package/dist/integrations/IntegrationsUserRoutes.d.ts +8 -0
- package/dist/integrations/IntegrationsUserRoutes.d.ts.map +1 -0
- package/dist/integrations/IntegrationsUserRoutes.js +116 -0
- package/dist/integrations/IntegrationsUserRoutes.js.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/AddConnectionDialog.js +655 -0
- package/dist/integrations/components/AddConnectionDialog.js.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/ConfirmDialog.js +55 -0
- package/dist/integrations/components/ConfirmDialog.js.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/ConnectionCard.js +101 -0
- package/dist/integrations/components/ConnectionCard.js.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/ConnectionStatusBadge.js +12 -0
- package/dist/integrations/components/ConnectionStatusBadge.js.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/CredentialStorageSelector.js +159 -0
- package/dist/integrations/components/CredentialStorageSelector.js.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/ProviderCard.js +161 -0
- package/dist/integrations/components/ProviderCard.js.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/components/ProviderIcon.js +92 -0
- package/dist/integrations/components/ProviderIcon.js.map +1 -0
- package/dist/integrations/components/ui.d.ts +6 -0
- package/dist/integrations/components/ui.d.ts.map +1 -0
- package/dist/integrations/constants/enums.d.ts +70 -0
- package/dist/integrations/constants/enums.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/featureFlags.js +11 -0
- package/dist/integrations/constants/featureFlags.js.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/constants/permissions.js +20 -0
- package/dist/integrations/constants/permissions.js.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/events/useIntegrationsEventBus.js +23 -0
- package/dist/integrations/events/useIntegrationsEventBus.js.map +1 -0
- package/dist/integrations/hooks/useConnections.d.ts +84 -0
- package/dist/integrations/hooks/useConnections.d.ts.map +1 -0
- package/dist/integrations/hooks/useConnections.js +162 -0
- package/dist/integrations/hooks/useConnections.js.map +1 -0
- package/dist/integrations/hooks/useCredentialVaults.d.ts +15 -0
- package/dist/integrations/hooks/useCredentialVaults.d.ts.map +1 -0
- package/dist/integrations/hooks/useCredentialVaults.js +77 -0
- package/dist/integrations/hooks/useCredentialVaults.js.map +1 -0
- package/dist/integrations/hooks/useLogs.d.ts +27 -0
- package/dist/integrations/hooks/useLogs.d.ts.map +1 -0
- package/dist/integrations/hooks/useLogs.js +32 -0
- package/dist/integrations/hooks/useLogs.js.map +1 -0
- package/dist/integrations/hooks/useProviders.d.ts +97 -0
- package/dist/integrations/hooks/useProviders.d.ts.map +1 -0
- package/dist/integrations/hooks/useProviders.js +102 -0
- package/dist/integrations/hooks/useProviders.js.map +1 -0
- package/dist/integrations/index.d.ts +33 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +6 -0
- package/dist/integrations/pages/AddConnectionWizard.d.ts +14 -0
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -0
- package/dist/integrations/pages/AddConnectionWizard.js +635 -0
- package/dist/integrations/pages/AddConnectionWizard.js.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/ConnectionDetail.js +469 -0
- package/dist/integrations/pages/ConnectionDetail.js.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/ConnectionLogs.js +394 -0
- package/dist/integrations/pages/ConnectionLogs.js.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/ConnectionsList.js +258 -0
- package/dist/integrations/pages/ConnectionsList.js.map +1 -0
- package/dist/integrations/pages/IntegrationsAdminLandingPage.d.ts +11 -0
- package/dist/integrations/pages/IntegrationsAdminLandingPage.d.ts.map +1 -0
- package/dist/integrations/pages/IntegrationsLandingPage.d.ts +9 -0
- package/dist/integrations/pages/IntegrationsLandingPage.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/IntegrationsOverview.js +432 -0
- package/dist/integrations/pages/IntegrationsOverview.js.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/IntegrationsSettings.js +222 -0
- package/dist/integrations/pages/IntegrationsSettings.js.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/IntegrationsUserLandingPage.js +56 -0
- package/dist/integrations/pages/IntegrationsUserLandingPage.js.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/ProviderCatalog.js +337 -0
- package/dist/integrations/pages/ProviderCatalog.js.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/ProviderDetail.js +386 -0
- package/dist/integrations/pages/ProviderDetail.js.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/pages/ProviderEditorPage.js +412 -0
- package/dist/integrations/pages/ProviderEditorPage.js.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/providers/IntegrationsProvider.js +121 -0
- package/dist/integrations/providers/IntegrationsProvider.js.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/store/integrationsStore.js +43 -0
- package/dist/integrations/store/integrationsStore.js.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/appearance.js +64 -0
- package/dist/integrations/utils/appearance.js.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/cn.js +10 -0
- package/dist/integrations/utils/cn.js.map +1 -0
- package/dist/integrations/utils/constants.d.ts +194 -0
- package/dist/integrations/utils/constants.d.ts.map +1 -0
- package/dist/integrations/utils/constants.js +200 -0
- package/dist/integrations/utils/constants.js.map +1 -0
- package/dist/integrations/utils/i18n.d.ts +6 -0
- package/dist/integrations/utils/i18n.d.ts.map +1 -0
- package/dist/integrations/utils/integrationsHelpers.d.ts +39 -0
- package/dist/integrations/utils/integrationsHelpers.d.ts.map +1 -0
- package/dist/integrations/utils/integrationsHelpers.js +82 -0
- package/dist/integrations/utils/integrationsHelpers.js.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/mappers.js +151 -0
- package/dist/integrations/utils/mappers.js.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/navigation.js +13 -0
- package/dist/integrations/utils/navigation.js.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/oauthPopup.js +62 -0
- package/dist/integrations/utils/oauthPopup.js.map +1 -0
- package/dist/integrations/utils/paths.d.ts +5 -0
- package/dist/integrations/utils/paths.d.ts.map +1 -0
- package/dist/integrations/utils/paths.js +6 -0
- package/dist/integrations/utils/paths.js.map +1 -0
- package/dist/node_modules/@iconify/react/dist/iconify.js +1005 -0
- package/dist/node_modules/@iconify/react/dist/iconify.js.map +1 -0
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +107 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IntegrationProvider, IntegrationsDisplayMode, ConnectionFilter, ProviderFilter } from '../types';
|
|
2
|
+
|
|
3
|
+
interface IntegrationsState {
|
|
4
|
+
viewMode: IntegrationsDisplayMode;
|
|
5
|
+
selectedProvider: IntegrationProvider | null;
|
|
6
|
+
connectionFilter: ConnectionFilter;
|
|
7
|
+
providerFilter: ProviderFilter;
|
|
8
|
+
addConnectionDialogOpen: boolean;
|
|
9
|
+
addConnectionProviderId: string | null;
|
|
10
|
+
setViewMode: (mode: IntegrationsDisplayMode) => void;
|
|
11
|
+
setSelectedProvider: (provider: IntegrationProvider | null) => void;
|
|
12
|
+
updateConnectionFilter: (filter: Partial<ConnectionFilter>) => void;
|
|
13
|
+
resetConnectionFilter: () => void;
|
|
14
|
+
updateProviderFilter: (filter: Partial<ProviderFilter>) => void;
|
|
15
|
+
resetProviderFilter: () => void;
|
|
16
|
+
openAddConnectionDialog: (providerId?: string | null) => void;
|
|
17
|
+
closeAddConnectionDialog: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const useIntegrationsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<IntegrationsState>>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=integrationsStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrationsStore.d.ts","sourceRoot":"","sources":["../../../src/integrations/store/integrationsStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACf,MAAM,UAAU,CAAC;AAElB,UAAU,iBAAiB;IAEzB,QAAQ,EAAE,uBAAuB,CAAC;IAClC,gBAAgB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAG7C,gBAAgB,EAAE,gBAAgB,CAAC;IAGnC,cAAc,EAAE,cAAc,CAAC;IAG/B,uBAAuB,EAAE,OAAO,CAAC;IACjC,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvC,WAAW,EAAE,CAAC,IAAI,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACrD,mBAAmB,EAAE,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,KAAK,IAAI,CAAC;IACpE,sBAAsB,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACpE,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAChE,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9D,wBAAwB,EAAE,MAAM,IAAI,CAAC;CACtC;AAeD,eAAO,MAAM,oBAAoB,gFA0B9B,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { create as e } from "zustand";
|
|
2
|
+
//#region src/integrations/store/integrationsStore.ts
|
|
3
|
+
var t = {
|
|
4
|
+
search: "",
|
|
5
|
+
status: "all",
|
|
6
|
+
providerId: null,
|
|
7
|
+
category: "all"
|
|
8
|
+
}, n = {
|
|
9
|
+
search: "",
|
|
10
|
+
category: "all",
|
|
11
|
+
pluginStatus: "all"
|
|
12
|
+
}, r = e((e) => ({
|
|
13
|
+
viewMode: "grid",
|
|
14
|
+
selectedProvider: null,
|
|
15
|
+
connectionFilter: t,
|
|
16
|
+
providerFilter: n,
|
|
17
|
+
addConnectionDialogOpen: !1,
|
|
18
|
+
addConnectionProviderId: null,
|
|
19
|
+
setViewMode: (t) => e({ viewMode: t }),
|
|
20
|
+
setSelectedProvider: (t) => e({ selectedProvider: t }),
|
|
21
|
+
updateConnectionFilter: (t) => e((e) => ({ connectionFilter: {
|
|
22
|
+
...e.connectionFilter,
|
|
23
|
+
...t
|
|
24
|
+
} })),
|
|
25
|
+
resetConnectionFilter: () => e({ connectionFilter: t }),
|
|
26
|
+
updateProviderFilter: (t) => e((e) => ({ providerFilter: {
|
|
27
|
+
...e.providerFilter,
|
|
28
|
+
...t
|
|
29
|
+
} })),
|
|
30
|
+
resetProviderFilter: () => e({ providerFilter: n }),
|
|
31
|
+
openAddConnectionDialog: (t) => e({
|
|
32
|
+
addConnectionDialogOpen: !0,
|
|
33
|
+
addConnectionProviderId: t ?? null
|
|
34
|
+
}),
|
|
35
|
+
closeAddConnectionDialog: () => e({
|
|
36
|
+
addConnectionDialogOpen: !1,
|
|
37
|
+
addConnectionProviderId: null
|
|
38
|
+
})
|
|
39
|
+
}));
|
|
40
|
+
//#endregion
|
|
41
|
+
export { r as useIntegrationsStore };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=integrationsStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrationsStore.js","names":[],"sources":["../../../src/integrations/store/integrationsStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type {\n IntegrationProvider,\n IntegrationsDisplayMode,\n ConnectionFilter,\n ProviderFilter,\n} from '../types';\n\ninterface IntegrationsState {\n // View state\n viewMode: IntegrationsDisplayMode;\n selectedProvider: IntegrationProvider | null;\n\n // Connection filters\n connectionFilter: ConnectionFilter;\n\n // Provider filters\n providerFilter: ProviderFilter;\n\n // Add Connection Dialog state\n addConnectionDialogOpen: boolean;\n addConnectionProviderId: string | null;\n\n // Actions\n setViewMode: (mode: IntegrationsDisplayMode) => void;\n setSelectedProvider: (provider: IntegrationProvider | null) => void;\n updateConnectionFilter: (filter: Partial<ConnectionFilter>) => void;\n resetConnectionFilter: () => void;\n updateProviderFilter: (filter: Partial<ProviderFilter>) => void;\n resetProviderFilter: () => void;\n openAddConnectionDialog: (providerId?: string | null) => void;\n closeAddConnectionDialog: () => void;\n}\n\nconst defaultConnectionFilter: ConnectionFilter = {\n search: '',\n status: 'all',\n providerId: null,\n category: 'all',\n};\n\nconst defaultProviderFilter: ProviderFilter = {\n search: '',\n category: 'all',\n pluginStatus: 'all',\n};\n\nexport const useIntegrationsStore = create<IntegrationsState>((set) => ({\n // Initial state\n viewMode: 'grid',\n selectedProvider: null,\n connectionFilter: defaultConnectionFilter,\n providerFilter: defaultProviderFilter,\n addConnectionDialogOpen: false,\n addConnectionProviderId: null,\n\n // Actions\n setViewMode: (mode) => set({ viewMode: mode }),\n setSelectedProvider: (provider) => set({ selectedProvider: provider }),\n updateConnectionFilter: (filter) =>\n set((state) => ({\n connectionFilter: { ...state.connectionFilter, ...filter },\n })),\n resetConnectionFilter: () => set({ connectionFilter: defaultConnectionFilter }),\n updateProviderFilter: (filter) =>\n set((state) => ({\n providerFilter: { ...state.providerFilter, ...filter },\n })),\n resetProviderFilter: () => set({ providerFilter: defaultProviderFilter }),\n openAddConnectionDialog: (providerId) =>\n set({ addConnectionDialogOpen: true, addConnectionProviderId: providerId ?? null }),\n closeAddConnectionDialog: () =>\n set({ addConnectionDialogOpen: false, addConnectionProviderId: null }),\n}));\n"],"mappings":";;AAkCA,IAAM,IAA4C;CAChD,QAAQ;CACR,QAAQ;CACR,YAAY;CACZ,UAAU;CACX,EAEK,IAAwC;CAC5C,QAAQ;CACR,UAAU;CACV,cAAc;CACf,EAEY,IAAuB,GAA2B,OAAS;CAEtE,UAAU;CACV,kBAAkB;CAClB,kBAAkB;CAClB,gBAAgB;CAChB,yBAAyB;CACzB,yBAAyB;CAGzB,cAAc,MAAS,EAAI,EAAE,UAAU,GAAM,CAAC;CAC9C,sBAAsB,MAAa,EAAI,EAAE,kBAAkB,GAAU,CAAC;CACtE,yBAAyB,MACvB,GAAK,OAAW,EACd,kBAAkB;EAAE,GAAG,EAAM;EAAkB,GAAG;EAAQ,EAC3D,EAAE;CACL,6BAA6B,EAAI,EAAE,kBAAkB,GAAyB,CAAC;CAC/E,uBAAuB,MACrB,GAAK,OAAW,EACd,gBAAgB;EAAE,GAAG,EAAM;EAAgB,GAAG;EAAQ,EACvD,EAAE;CACL,2BAA2B,EAAI,EAAE,gBAAgB,GAAuB,CAAC;CACzE,0BAA0B,MACxB,EAAI;EAAE,yBAAyB;EAAM,yBAAyB,KAAc;EAAM,CAAC;CACrF,gCACE,EAAI;EAAE,yBAAyB;EAAO,yBAAyB;EAAM,CAAC;CACzE,EAAE"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation item for shell integration
|
|
3
|
+
*/
|
|
4
|
+
export interface NavItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
path: string;
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
badge?: number;
|
|
10
|
+
order?: number;
|
|
11
|
+
group?: string;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
/** Nested children items for dropdown menus */
|
|
14
|
+
children?: NavItem[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Footer item for shell integration
|
|
18
|
+
*/
|
|
19
|
+
export interface FooterItem {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
type: 'status' | 'action';
|
|
23
|
+
order?: number;
|
|
24
|
+
section: 'left' | 'center' | 'right';
|
|
25
|
+
}
|
|
26
|
+
/** Base microfrontend root props */
|
|
27
|
+
export type MicrofrontendRootProps = Record<string, unknown>;
|
|
28
|
+
/**
|
|
29
|
+
* Props for the IntegrationsRoot component
|
|
30
|
+
*/
|
|
31
|
+
export interface IntegrationsRootProps extends MicrofrontendRootProps {
|
|
32
|
+
/** Base path for the integrations microfrontend */
|
|
33
|
+
basePath?: string;
|
|
34
|
+
/** Workspace ID for scoping operations */
|
|
35
|
+
workspaceId?: string;
|
|
36
|
+
/** API Gateway URL for GraphQL requests */
|
|
37
|
+
apiGatewayUrl?: string;
|
|
38
|
+
/** Authentication token for API requests (platform identity JWT) */
|
|
39
|
+
authToken?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Workspace token for workspace-scoped API requests (workspace access JWT).
|
|
42
|
+
* The gateway requires both authToken (Authorization) and workspaceToken
|
|
43
|
+
* (X-Workspace-Authorization) for workspace operations.
|
|
44
|
+
*/
|
|
45
|
+
workspaceToken?: string;
|
|
46
|
+
/** Navigation function provided by the shell */
|
|
47
|
+
navigate?: (path: string) => void;
|
|
48
|
+
/** Optional callback to obtain a fresh workspace token on demand */
|
|
49
|
+
getWorkspaceToken?: () => Promise<string | null>;
|
|
50
|
+
/** Current user information */
|
|
51
|
+
currentUser?: {
|
|
52
|
+
id: string;
|
|
53
|
+
email: string;
|
|
54
|
+
firstName?: string;
|
|
55
|
+
lastName?: string;
|
|
56
|
+
};
|
|
57
|
+
/** Optional function to register navigation items with the shell */
|
|
58
|
+
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
59
|
+
/** Optional function to register footer items with the shell */
|
|
60
|
+
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
61
|
+
/** Optional callback when a connection is selected */
|
|
62
|
+
onConnectionSelect?: (connection: IntegrationConnection) => void;
|
|
63
|
+
/** Optional callback when a provider is selected */
|
|
64
|
+
onProviderSelect?: (provider: IntegrationProvider) => void;
|
|
65
|
+
/** True when rendered by admin-app rather than an end-user product shell */
|
|
66
|
+
adminMode?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/** Provider category classification */
|
|
69
|
+
export type ProviderCategory = 'communication' | 'project_management' | 'cloud_storage' | 'crm' | 'analytics' | 'developer_tools' | 'marketing' | 'finance' | 'hr' | 'support' | 'social' | 'ai' | 'email' | 'calendar' | 'productivity' | 'other';
|
|
70
|
+
/** Authentication type supported by a provider */
|
|
71
|
+
export type AuthType = 'oauth2' | 'api_key' | 'basic_auth' | 'bearer_token';
|
|
72
|
+
/** Connection status */
|
|
73
|
+
export type ConnectionStatus = 'active' | 'inactive' | 'error' | 'expired' | 'pending_auth' | 'revoked';
|
|
74
|
+
/** Plugin installation status */
|
|
75
|
+
export type PluginStatus = 'available' | 'installed' | 'update_available' | 'deprecated';
|
|
76
|
+
/** Log severity level */
|
|
77
|
+
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
78
|
+
/** Log action type */
|
|
79
|
+
export type LogAction = 'connection_created' | 'connection_updated' | 'connection_deleted' | 'connection_tested' | 'token_refreshed' | 'token_revoked' | 'oauth_initiated' | 'oauth_completed' | 'oauth_failed' | 'api_request' | 'api_error' | 'plugin_installed' | 'plugin_updated' | 'plugin_uninstalled' | 'provider_enabled' | 'provider_disabled';
|
|
80
|
+
/**
|
|
81
|
+
* Integration provider — an installable plugin representing a third-party service
|
|
82
|
+
*/
|
|
83
|
+
export interface IntegrationProvider {
|
|
84
|
+
id: string;
|
|
85
|
+
key: string;
|
|
86
|
+
name: string;
|
|
87
|
+
description: string;
|
|
88
|
+
category: ProviderCategory;
|
|
89
|
+
authType: AuthType;
|
|
90
|
+
icon: string;
|
|
91
|
+
color: string;
|
|
92
|
+
website: string;
|
|
93
|
+
docsUrl: string;
|
|
94
|
+
oauthConfig?: Record<string, unknown> | null;
|
|
95
|
+
defaultScopes?: string[];
|
|
96
|
+
availableScopes?: Record<string, unknown> | null;
|
|
97
|
+
baseUrl?: string;
|
|
98
|
+
apiVersion?: string;
|
|
99
|
+
rateLimitConfig?: Record<string, unknown> | null;
|
|
100
|
+
pluginStatus: PluginStatus;
|
|
101
|
+
pluginVersion: string;
|
|
102
|
+
pluginAuthor: string;
|
|
103
|
+
pluginRepository?: string;
|
|
104
|
+
isBuiltIn: boolean;
|
|
105
|
+
isEnabled: boolean;
|
|
106
|
+
displayOrder: number;
|
|
107
|
+
supportedFeatures: string[];
|
|
108
|
+
configSchema?: Record<string, unknown> | null;
|
|
109
|
+
connectionCount: number;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Integration connection — a configured link to an external service via a provider
|
|
115
|
+
*/
|
|
116
|
+
export interface IntegrationConnection {
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
description: string;
|
|
120
|
+
provider: IntegrationProvider;
|
|
121
|
+
status: ConnectionStatus;
|
|
122
|
+
lastHealthCheck: string | null;
|
|
123
|
+
lastUsedAt: string | null;
|
|
124
|
+
errorMessage: string | null;
|
|
125
|
+
externalAccountId: string | null;
|
|
126
|
+
externalAccountEmail: string | null;
|
|
127
|
+
externalAccountName: string | null;
|
|
128
|
+
grantedScopes: string[];
|
|
129
|
+
config: Record<string, unknown>;
|
|
130
|
+
metadata: Record<string, unknown>;
|
|
131
|
+
vaultId?: string | null;
|
|
132
|
+
credentialSecretId?: string | null;
|
|
133
|
+
credentialSecretName?: string | null;
|
|
134
|
+
createdBy: string;
|
|
135
|
+
createdAt: string;
|
|
136
|
+
updatedAt: string;
|
|
137
|
+
tagAssignments?: IntegrationConnectionTagAssignment[];
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Tag assignment for a connection via wspace-tags-svc
|
|
141
|
+
*/
|
|
142
|
+
export interface IntegrationConnectionTagAssignment {
|
|
143
|
+
id: string;
|
|
144
|
+
tagId: string;
|
|
145
|
+
tag?: {
|
|
146
|
+
id: string;
|
|
147
|
+
} | null;
|
|
148
|
+
entityType: string;
|
|
149
|
+
entityId: string;
|
|
150
|
+
source: string;
|
|
151
|
+
assignedBy?: string | null;
|
|
152
|
+
assignedAt?: string | null;
|
|
153
|
+
}
|
|
154
|
+
export interface VaultSummary {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
description?: string | null;
|
|
158
|
+
status: string;
|
|
159
|
+
secretCount: number;
|
|
160
|
+
}
|
|
161
|
+
export interface VaultSecretSummary {
|
|
162
|
+
id: string;
|
|
163
|
+
vaultId: string;
|
|
164
|
+
name: string;
|
|
165
|
+
key: string;
|
|
166
|
+
description?: string | null;
|
|
167
|
+
type: string;
|
|
168
|
+
status: string;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Integration activity log entry
|
|
172
|
+
*/
|
|
173
|
+
export interface IntegrationLog {
|
|
174
|
+
id: string;
|
|
175
|
+
connectionId: string | null;
|
|
176
|
+
action: LogAction;
|
|
177
|
+
level: LogLevel;
|
|
178
|
+
message: string;
|
|
179
|
+
requestUrl: string | null;
|
|
180
|
+
requestMethod: string | null;
|
|
181
|
+
responseStatus: number | null;
|
|
182
|
+
metadata: Record<string, unknown>;
|
|
183
|
+
createdAt: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Result of initiating an OAuth flow
|
|
187
|
+
*/
|
|
188
|
+
export interface OAuthInitiationResult {
|
|
189
|
+
redirectUrl: string;
|
|
190
|
+
state: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Result of testing a connection's health
|
|
194
|
+
*/
|
|
195
|
+
export interface ConnectionTestResult {
|
|
196
|
+
success: boolean;
|
|
197
|
+
message: string;
|
|
198
|
+
latencyMs: number;
|
|
199
|
+
}
|
|
200
|
+
/** Available views in the integrations module */
|
|
201
|
+
export type IntegrationsView = 'overview' | 'providers' | 'connections' | 'logs' | 'settings';
|
|
202
|
+
/** Display mode for card grids */
|
|
203
|
+
export type IntegrationsDisplayMode = 'grid' | 'list';
|
|
204
|
+
/** Filter criteria for connections */
|
|
205
|
+
export interface ConnectionFilter {
|
|
206
|
+
search: string;
|
|
207
|
+
status: ConnectionStatus | 'all';
|
|
208
|
+
providerId: string | null;
|
|
209
|
+
category: ProviderCategory | 'all';
|
|
210
|
+
}
|
|
211
|
+
/** Filter criteria for providers */
|
|
212
|
+
export interface ProviderFilter {
|
|
213
|
+
search: string;
|
|
214
|
+
category: ProviderCategory | 'all';
|
|
215
|
+
pluginStatus: PluginStatus | 'all';
|
|
216
|
+
}
|
|
217
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OA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AAK,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,gBAAgB,GAAG,KAAK,CAAC;CACpC;AAED,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,gBAAgB,GAAG,KAAK,CAAC;IACnC,YAAY,EAAE,YAAY,GAAG,KAAK,CAAC;CACpC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IntegrationProvider } from '../types';
|
|
2
|
+
|
|
3
|
+
type AccentTone = 'primary' | 'success' | 'warning' | 'info' | 'neutral';
|
|
4
|
+
interface AccentClasses {
|
|
5
|
+
icon: string;
|
|
6
|
+
surface: string;
|
|
7
|
+
softSurface: string;
|
|
8
|
+
text: string;
|
|
9
|
+
button: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function getAccentClasses(tone: AccentTone): AccentClasses;
|
|
12
|
+
export declare function getProviderAccent(provider: Pick<IntegrationProvider, 'category'>): AccentTone;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=appearance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../src/integrations/utils/appearance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAEzE,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AA2CD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,aAAa,CAEhE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,GAAG,UAAU,CAwB7F"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//#region src/integrations/utils/appearance.ts
|
|
2
|
+
var e = {
|
|
3
|
+
primary: {
|
|
4
|
+
icon: "text-primary",
|
|
5
|
+
surface: "bg-primary/10",
|
|
6
|
+
softSurface: "bg-primary/8",
|
|
7
|
+
text: "text-primary",
|
|
8
|
+
button: "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
9
|
+
},
|
|
10
|
+
success: {
|
|
11
|
+
icon: "text-status-success-text",
|
|
12
|
+
surface: "bg-status-success-bg-subtle",
|
|
13
|
+
softSurface: "bg-status-success-bg-subtle",
|
|
14
|
+
text: "text-status-success-text",
|
|
15
|
+
button: "bg-status-success-bg-subtle text-status-success-text border border-border-default hover:bg-status-success-bg-subtle/80"
|
|
16
|
+
},
|
|
17
|
+
warning: {
|
|
18
|
+
icon: "text-status-warning-text",
|
|
19
|
+
surface: "bg-status-warning-bg-subtle",
|
|
20
|
+
softSurface: "bg-status-warning-bg-subtle",
|
|
21
|
+
text: "text-status-warning-text",
|
|
22
|
+
button: "bg-status-warning-bg-subtle text-status-warning-text border border-border-default hover:bg-status-warning-bg-subtle/80"
|
|
23
|
+
},
|
|
24
|
+
info: {
|
|
25
|
+
icon: "text-status-info-text",
|
|
26
|
+
surface: "bg-status-info-bg-subtle",
|
|
27
|
+
softSurface: "bg-status-info-bg-subtle",
|
|
28
|
+
text: "text-status-info-text",
|
|
29
|
+
button: "bg-status-info-bg-subtle text-status-info-text border border-border-default hover:bg-status-info-bg-subtle/80"
|
|
30
|
+
},
|
|
31
|
+
neutral: {
|
|
32
|
+
icon: "text-foreground",
|
|
33
|
+
surface: "bg-muted",
|
|
34
|
+
softSurface: "bg-muted/60",
|
|
35
|
+
text: "text-foreground",
|
|
36
|
+
button: "bg-secondary text-secondary-foreground hover:bg-secondary/90"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
function t(t) {
|
|
40
|
+
return e[t];
|
|
41
|
+
}
|
|
42
|
+
function n(e) {
|
|
43
|
+
switch (e.category) {
|
|
44
|
+
case "communication":
|
|
45
|
+
case "social":
|
|
46
|
+
case "support": return "info";
|
|
47
|
+
case "cloud_storage":
|
|
48
|
+
case "developer_tools":
|
|
49
|
+
case "analytics": return "primary";
|
|
50
|
+
case "crm":
|
|
51
|
+
case "hr": return "success";
|
|
52
|
+
case "finance":
|
|
53
|
+
case "calendar":
|
|
54
|
+
case "productivity": return "warning";
|
|
55
|
+
case "ai":
|
|
56
|
+
case "email":
|
|
57
|
+
case "marketing": return "neutral";
|
|
58
|
+
default: return "primary";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { t as getAccentClasses, n as getProviderAccent };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=appearance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appearance.js","names":[],"sources":["../../../src/integrations/utils/appearance.ts"],"sourcesContent":["import type { IntegrationProvider } from '../types';\n\ntype AccentTone = 'primary' | 'success' | 'warning' | 'info' | 'neutral';\n\ninterface AccentClasses {\n icon: string;\n surface: string;\n softSurface: string;\n text: string;\n button: string;\n}\n\nconst ACCENT_CLASS_MAP: Record<AccentTone, AccentClasses> = {\n primary: {\n icon: 'text-primary',\n surface: 'bg-primary/10',\n softSurface: 'bg-primary/8',\n text: 'text-primary',\n button: 'bg-primary text-primary-foreground hover:bg-primary/90',\n },\n success: {\n icon: 'text-status-success-text',\n surface: 'bg-status-success-bg-subtle',\n softSurface: 'bg-status-success-bg-subtle',\n text: 'text-status-success-text',\n button:\n 'bg-status-success-bg-subtle text-status-success-text border border-border-default hover:bg-status-success-bg-subtle/80',\n },\n warning: {\n icon: 'text-status-warning-text',\n surface: 'bg-status-warning-bg-subtle',\n softSurface: 'bg-status-warning-bg-subtle',\n text: 'text-status-warning-text',\n button:\n 'bg-status-warning-bg-subtle text-status-warning-text border border-border-default hover:bg-status-warning-bg-subtle/80',\n },\n info: {\n icon: 'text-status-info-text',\n surface: 'bg-status-info-bg-subtle',\n softSurface: 'bg-status-info-bg-subtle',\n text: 'text-status-info-text',\n button:\n 'bg-status-info-bg-subtle text-status-info-text border border-border-default hover:bg-status-info-bg-subtle/80',\n },\n neutral: {\n icon: 'text-foreground',\n surface: 'bg-muted',\n softSurface: 'bg-muted/60',\n text: 'text-foreground',\n button: 'bg-secondary text-secondary-foreground hover:bg-secondary/90',\n },\n};\n\nexport function getAccentClasses(tone: AccentTone): AccentClasses {\n return ACCENT_CLASS_MAP[tone];\n}\n\nexport function getProviderAccent(provider: Pick<IntegrationProvider, 'category'>): AccentTone {\n switch (provider.category) {\n case 'communication':\n case 'social':\n case 'support':\n return 'info';\n case 'cloud_storage':\n case 'developer_tools':\n case 'analytics':\n return 'primary';\n case 'crm':\n case 'hr':\n return 'success';\n case 'finance':\n case 'calendar':\n case 'productivity':\n return 'warning';\n case 'ai':\n case 'email':\n case 'marketing':\n return 'neutral';\n default:\n return 'primary';\n }\n}\n"],"mappings":";AAYA,IAAM,IAAsD;CAC1D,SAAS;EACP,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,QAAQ;EACT;CACD,SAAS;EACP,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,QACE;EACH;CACD,SAAS;EACP,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,QACE;EACH;CACD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,QACE;EACH;CACD,SAAS;EACP,MAAM;EACN,SAAS;EACT,aAAa;EACb,MAAM;EACN,QAAQ;EACT;CACF;AAED,SAAgB,EAAiB,GAAiC;AAChE,QAAO,EAAiB;;AAG1B,SAAgB,EAAkB,GAA6D;AAC7F,SAAQ,EAAS,UAAjB;EACE,KAAK;EACL,KAAK;EACL,KAAK,UACH,QAAO;EACT,KAAK;EACL,KAAK;EACL,KAAK,YACH,QAAO;EACT,KAAK;EACL,KAAK,KACH,QAAO;EACT,KAAK;EACL,KAAK;EACL,KAAK,eACH,QAAO;EACT,KAAK;EACL,KAAK;EACL,KAAK,YACH,QAAO;EACT,QACE,QAAO"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Utility function to merge Tailwind CSS classes
|
|
5
|
+
* Combines clsx for conditional classes and tailwind-merge for deduplication
|
|
6
|
+
*/
|
|
7
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
8
|
+
//# sourceMappingURL=cn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../src/integrations/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;GAGG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../../node_modules/clsx/dist/clsx.js";
|
|
2
|
+
import { twMerge as t } from "../../node_modules/tailwind-merge/dist/bundle-mjs.js";
|
|
3
|
+
//#region src/integrations/utils/cn.ts
|
|
4
|
+
function n(...n) {
|
|
5
|
+
return t(e(n));
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as cn };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=cn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.js","names":[],"sources":["../../../src/integrations/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Utility function to merge Tailwind CSS classes\n * Combines clsx for conditional classes and tailwind-merge for deduplication\n */\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAOA,SAAgB,EAAG,GAAG,GAAsB;AAC1C,QAAO,EAAQ,EAAK,EAAO,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provider category options
|
|
3
|
+
*/
|
|
4
|
+
export declare const PROVIDER_CATEGORIES: readonly [{
|
|
5
|
+
readonly value: "communication";
|
|
6
|
+
readonly label: "Communication";
|
|
7
|
+
}, {
|
|
8
|
+
readonly value: "project_management";
|
|
9
|
+
readonly label: "Project Management";
|
|
10
|
+
}, {
|
|
11
|
+
readonly value: "cloud_storage";
|
|
12
|
+
readonly label: "Cloud Storage";
|
|
13
|
+
}, {
|
|
14
|
+
readonly value: "crm";
|
|
15
|
+
readonly label: "CRM";
|
|
16
|
+
}, {
|
|
17
|
+
readonly value: "analytics";
|
|
18
|
+
readonly label: "Analytics";
|
|
19
|
+
}, {
|
|
20
|
+
readonly value: "developer_tools";
|
|
21
|
+
readonly label: "Developer Tools";
|
|
22
|
+
}, {
|
|
23
|
+
readonly value: "marketing";
|
|
24
|
+
readonly label: "Marketing";
|
|
25
|
+
}, {
|
|
26
|
+
readonly value: "finance";
|
|
27
|
+
readonly label: "Finance";
|
|
28
|
+
}, {
|
|
29
|
+
readonly value: "hr";
|
|
30
|
+
readonly label: "Human Resources";
|
|
31
|
+
}, {
|
|
32
|
+
readonly value: "support";
|
|
33
|
+
readonly label: "Support";
|
|
34
|
+
}, {
|
|
35
|
+
readonly value: "social";
|
|
36
|
+
readonly label: "Social";
|
|
37
|
+
}, {
|
|
38
|
+
readonly value: "ai";
|
|
39
|
+
readonly label: "AI & ML";
|
|
40
|
+
}, {
|
|
41
|
+
readonly value: "other";
|
|
42
|
+
readonly label: "Other";
|
|
43
|
+
}];
|
|
44
|
+
/**
|
|
45
|
+
* Authentication type options
|
|
46
|
+
*/
|
|
47
|
+
export declare const AUTH_TYPE_OPTIONS: readonly [{
|
|
48
|
+
readonly value: "oauth2";
|
|
49
|
+
readonly label: "OAuth 2.0";
|
|
50
|
+
}, {
|
|
51
|
+
readonly value: "api_key";
|
|
52
|
+
readonly label: "API Key";
|
|
53
|
+
}, {
|
|
54
|
+
readonly value: "basic_auth";
|
|
55
|
+
readonly label: "Basic Auth";
|
|
56
|
+
}, {
|
|
57
|
+
readonly value: "bearer_token";
|
|
58
|
+
readonly label: "Bearer Token";
|
|
59
|
+
}];
|
|
60
|
+
/**
|
|
61
|
+
* Connection status options
|
|
62
|
+
*/
|
|
63
|
+
export declare const CONNECTION_STATUS_OPTIONS: readonly [{
|
|
64
|
+
readonly value: "active";
|
|
65
|
+
readonly label: "Active";
|
|
66
|
+
}, {
|
|
67
|
+
readonly value: "inactive";
|
|
68
|
+
readonly label: "Inactive";
|
|
69
|
+
}, {
|
|
70
|
+
readonly value: "error";
|
|
71
|
+
readonly label: "Error";
|
|
72
|
+
}, {
|
|
73
|
+
readonly value: "expired";
|
|
74
|
+
readonly label: "Expired";
|
|
75
|
+
}, {
|
|
76
|
+
readonly value: "pending_auth";
|
|
77
|
+
readonly label: "Pending Auth";
|
|
78
|
+
}, {
|
|
79
|
+
readonly value: "revoked";
|
|
80
|
+
readonly label: "Revoked";
|
|
81
|
+
}];
|
|
82
|
+
/**
|
|
83
|
+
* Plugin status options
|
|
84
|
+
*/
|
|
85
|
+
export declare const PLUGIN_STATUS_OPTIONS: readonly [{
|
|
86
|
+
readonly value: "available";
|
|
87
|
+
readonly label: "Available";
|
|
88
|
+
}, {
|
|
89
|
+
readonly value: "installed";
|
|
90
|
+
readonly label: "Installed";
|
|
91
|
+
}, {
|
|
92
|
+
readonly value: "update_available";
|
|
93
|
+
readonly label: "Update Available";
|
|
94
|
+
}, {
|
|
95
|
+
readonly value: "deprecated";
|
|
96
|
+
readonly label: "Deprecated";
|
|
97
|
+
}];
|
|
98
|
+
/**
|
|
99
|
+
* Log level options
|
|
100
|
+
*/
|
|
101
|
+
export declare const LOG_LEVEL_OPTIONS: readonly [{
|
|
102
|
+
readonly value: "debug";
|
|
103
|
+
readonly label: "Debug";
|
|
104
|
+
}, {
|
|
105
|
+
readonly value: "info";
|
|
106
|
+
readonly label: "Info";
|
|
107
|
+
}, {
|
|
108
|
+
readonly value: "warn";
|
|
109
|
+
readonly label: "Warning";
|
|
110
|
+
}, {
|
|
111
|
+
readonly value: "error";
|
|
112
|
+
readonly label: "Error";
|
|
113
|
+
}];
|
|
114
|
+
/**
|
|
115
|
+
* Log action options
|
|
116
|
+
*/
|
|
117
|
+
export declare const LOG_ACTION_OPTIONS: readonly [{
|
|
118
|
+
readonly value: "connection_created";
|
|
119
|
+
readonly label: "Connection Created";
|
|
120
|
+
}, {
|
|
121
|
+
readonly value: "connection_updated";
|
|
122
|
+
readonly label: "Connection Updated";
|
|
123
|
+
}, {
|
|
124
|
+
readonly value: "connection_deleted";
|
|
125
|
+
readonly label: "Connection Deleted";
|
|
126
|
+
}, {
|
|
127
|
+
readonly value: "connection_tested";
|
|
128
|
+
readonly label: "Connection Tested";
|
|
129
|
+
}, {
|
|
130
|
+
readonly value: "token_refreshed";
|
|
131
|
+
readonly label: "Token Refreshed";
|
|
132
|
+
}, {
|
|
133
|
+
readonly value: "token_revoked";
|
|
134
|
+
readonly label: "Token Revoked";
|
|
135
|
+
}, {
|
|
136
|
+
readonly value: "oauth_initiated";
|
|
137
|
+
readonly label: "OAuth Initiated";
|
|
138
|
+
}, {
|
|
139
|
+
readonly value: "oauth_completed";
|
|
140
|
+
readonly label: "OAuth Completed";
|
|
141
|
+
}, {
|
|
142
|
+
readonly value: "oauth_failed";
|
|
143
|
+
readonly label: "OAuth Failed";
|
|
144
|
+
}, {
|
|
145
|
+
readonly value: "api_request";
|
|
146
|
+
readonly label: "API Request";
|
|
147
|
+
}, {
|
|
148
|
+
readonly value: "api_error";
|
|
149
|
+
readonly label: "API Error";
|
|
150
|
+
}, {
|
|
151
|
+
readonly value: "plugin_installed";
|
|
152
|
+
readonly label: "Plugin Installed";
|
|
153
|
+
}, {
|
|
154
|
+
readonly value: "plugin_updated";
|
|
155
|
+
readonly label: "Plugin Updated";
|
|
156
|
+
}, {
|
|
157
|
+
readonly value: "plugin_uninstalled";
|
|
158
|
+
readonly label: "Plugin Uninstalled";
|
|
159
|
+
}, {
|
|
160
|
+
readonly value: "provider_enabled";
|
|
161
|
+
readonly label: "Provider Enabled";
|
|
162
|
+
}, {
|
|
163
|
+
readonly value: "provider_disabled";
|
|
164
|
+
readonly label: "Provider Disabled";
|
|
165
|
+
}];
|
|
166
|
+
/**
|
|
167
|
+
* Debounce delay for search (ms)
|
|
168
|
+
*/
|
|
169
|
+
export declare const SEARCH_DEBOUNCE_DELAY = 300;
|
|
170
|
+
/**
|
|
171
|
+
* Cache TTL for connection queries (ms)
|
|
172
|
+
*/
|
|
173
|
+
export declare const CONNECTION_CACHE_TTL: number;
|
|
174
|
+
/**
|
|
175
|
+
* Cache TTL for provider queries (ms)
|
|
176
|
+
*/
|
|
177
|
+
export declare const PROVIDER_CACHE_TTL: number;
|
|
178
|
+
/**
|
|
179
|
+
* Default page size for paginated lists
|
|
180
|
+
*/
|
|
181
|
+
export declare const DEFAULT_PAGE_SIZE = 20;
|
|
182
|
+
/**
|
|
183
|
+
* Max connection name length
|
|
184
|
+
*/
|
|
185
|
+
export declare const MAX_CONNECTION_NAME_LENGTH = 100;
|
|
186
|
+
/**
|
|
187
|
+
* Max connection description length
|
|
188
|
+
*/
|
|
189
|
+
export declare const MAX_CONNECTION_DESCRIPTION_LENGTH = 500;
|
|
190
|
+
/**
|
|
191
|
+
* Provider icon mapping — maps well-known provider keys to lucide icon names
|
|
192
|
+
*/
|
|
193
|
+
export declare const PROVIDER_ICONS: Record<string, string>;
|
|
194
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/integrations/utils/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAKpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAO5B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAKxB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAKpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAgB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAiB,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,iCAAiC,MAAM,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8BjD,CAAC"}
|