@hiver/connector-admin 4.29.0-adminRevamp-beta.0 → 4.29.0-slackAutomations-beta.0

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 (81) hide show
  1. package/app/connectors/pages/app-detail/StatusMenu.d.ts.map +1 -1
  2. package/app/connectors/pages/app-detail/legacy/EnabledToggle.d.ts.map +1 -1
  3. package/app/connectors/pages/connector-dashboard/index.d.ts.map +1 -1
  4. package/app/connectors/pages/native-integration/index.d.ts.map +1 -1
  5. package/app/connectors/pages/settings/index.d.ts.map +1 -1
  6. package/components/ui/connector-item/index.d.ts +1 -8
  7. package/components/ui/connector-item/index.d.ts.map +1 -1
  8. package/components/ui/connector-item/styles.d.ts +0 -2
  9. package/components/ui/connector-item/styles.d.ts.map +1 -1
  10. package/constants/app-constants.d.ts +0 -6
  11. package/constants/app-constants.d.ts.map +1 -1
  12. package/constants/gainsight.d.ts +0 -1
  13. package/constants/gainsight.d.ts.map +1 -1
  14. package/constants/global-constants.d.ts +0 -1
  15. package/constants/global-constants.d.ts.map +1 -1
  16. package/features/advanced-features/components/confirm-modal/index.d.ts +4 -1
  17. package/features/advanced-features/components/confirm-modal/index.d.ts.map +1 -1
  18. package/features/connector-library/components/custom-connector-card-item/index.d.ts.map +1 -1
  19. package/features/connector-library/components/custom-connector-card-list/index.d.ts +2 -33
  20. package/features/connector-library/components/custom-connector-card-list/index.d.ts.map +1 -1
  21. package/features/connector-library/store/slice.d.ts.map +1 -1
  22. package/features/native-integrations/components/native-connectors-list/index.d.ts.map +1 -1
  23. package/features/slack/api/automationImpact.d.ts +14 -0
  24. package/features/slack/api/automationImpact.d.ts.map +1 -0
  25. package/features/slack/api/index.d.ts +2 -0
  26. package/features/slack/api/index.d.ts.map +1 -1
  27. package/features/slack/components/DisableSlackImpactNames.d.ts +5 -0
  28. package/features/slack/components/DisableSlackImpactNames.d.ts.map +1 -0
  29. package/features/slack/constants/api.d.ts +1 -0
  30. package/features/slack/constants/api.d.ts.map +1 -1
  31. package/features/slack/constants/disableConfirm.d.ts +8 -0
  32. package/features/slack/constants/disableConfirm.d.ts.map +1 -0
  33. package/features/slack/hooks/useConfirmSlackDisable.d.ts +13 -0
  34. package/features/slack/hooks/useConfirmSlackDisable.d.ts.map +1 -0
  35. package/features/template-library/components/library-card-list/index.d.ts +1 -28
  36. package/features/template-library/components/library-card-list/index.d.ts.map +1 -1
  37. package/index.es.js +11613 -11883
  38. package/index.umd.js +356 -421
  39. package/package.json +1 -1
  40. package/store/hooks.d.ts +0 -2
  41. package/store/hooks.d.ts.map +1 -1
  42. package/store/index.d.ts +0 -4
  43. package/store/index.d.ts.map +1 -1
  44. package/style.css +1 -1
  45. package/testing/mocks/handlers.d.ts.map +1 -1
  46. package/testing/setup-store.d.ts +0 -2
  47. package/testing/setup-store.d.ts.map +1 -1
  48. package/types/app.d.ts +0 -6
  49. package/types/app.d.ts.map +1 -1
  50. package/utils/index.d.ts +2 -8
  51. package/utils/index.d.ts.map +1 -1
  52. package/components/ui/apps-search-box/index.d.ts +0 -12
  53. package/components/ui/apps-search-box/index.d.ts.map +0 -1
  54. package/components/ui/apps-search-box/styles.d.ts +0 -8
  55. package/components/ui/apps-search-box/styles.d.ts.map +0 -1
  56. package/features/admin-listing/api/index.d.ts +0 -3
  57. package/features/admin-listing/api/index.d.ts.map +0 -1
  58. package/features/admin-listing/constants/api.d.ts +0 -2
  59. package/features/admin-listing/constants/api.d.ts.map +0 -1
  60. package/features/admin-listing/store/initial-state.d.ts +0 -20
  61. package/features/admin-listing/store/initial-state.d.ts.map +0 -1
  62. package/features/admin-listing/store/selectors.d.ts +0 -12
  63. package/features/admin-listing/store/selectors.d.ts.map +0 -1
  64. package/features/admin-listing/store/slice.d.ts +0 -42
  65. package/features/admin-listing/store/slice.d.ts.map +0 -1
  66. package/features/native-integrations/components/inbox-app-card/index.d.ts +0 -14
  67. package/features/native-integrations/components/inbox-app-card/index.d.ts.map +0 -1
  68. package/features/native-integrations/hooks/useInboxAppNavigation.d.ts +0 -10
  69. package/features/native-integrations/hooks/useInboxAppNavigation.d.ts.map +0 -1
  70. package/testing/mocks/handlers/admin-listing.d.ts +0 -27
  71. package/testing/mocks/handlers/admin-listing.d.ts.map +0 -1
  72. package/types/adminListing.d.ts +0 -45
  73. package/types/adminListing.d.ts.map +0 -1
  74. package/utils/appSearch.d.ts +0 -31
  75. package/utils/appSearch.d.ts.map +0 -1
  76. package/utils/appSubcategories.d.ts +0 -34
  77. package/utils/appSubcategories.d.ts.map +0 -1
  78. package/utils/inboxApps.d.ts +0 -45
  79. package/utils/inboxApps.d.ts.map +0 -1
  80. package/utils/installedConnectors.d.ts +0 -30
  81. package/utils/installedConnectors.d.ts.map +0 -1
@@ -1,45 +0,0 @@
1
- /**
2
- * Contract of custom-integrations `GET /v1/api/connectors/admin-listing`
3
- * (the lean listing behind `ftr-connectors-admin-revamp`).
4
- */
5
- export type AdminListingSection = 'installed' | 'marketplace';
6
- export interface IAppSubcategory {
7
- key: string;
8
- label: string;
9
- }
10
- /** One row of `section=installed`. No cards and no template blobs. */
11
- export interface IAdminInstalledApp {
12
- id: string;
13
- type: string;
14
- name: string;
15
- logo: string | null;
16
- isEnabled: boolean;
17
- isAuthenticated: boolean;
18
- authPending: boolean;
19
- showUpgradeButton: boolean;
20
- isConnectorAvailableInPlan?: boolean;
21
- createdAt?: string;
22
- subcategory: string;
23
- }
24
- /**
25
- * One row of `section=marketplace`: a template the usergroup can still
26
- * connect. Same set as `/template/list` (LD, installed, exclusion and plan
27
- * filtering), projected to what the Apps screen renders.
28
- */
29
- export interface IAdminMarketplaceApp {
30
- /** Template id (also the key of the host's `suggestedAppsMap`). */
31
- id: string;
32
- type: string;
33
- name: string;
34
- logo: string | null;
35
- isTemplateNew: boolean;
36
- isConnectorAvailableInPlan?: boolean | null;
37
- subcategory: string;
38
- }
39
- export interface IAdminListingResponse<TItem> {
40
- items: TItem[];
41
- subcategories: IAppSubcategory[];
42
- /** Inbox app (native integration) id -> subcategory key. */
43
- nativeSubcategories: Record<string, string>;
44
- }
45
- //# sourceMappingURL=adminListing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adminListing.d.ts","sourceRoot":"","sources":["../../src/types/adminListing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,0BAA0B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB,CAAC,KAAK;IAC1C,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,4DAA4D;IAC5D,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7C"}
@@ -1,31 +0,0 @@
1
- import { IAppSubcategory } from '../types/adminListing';
2
- import { ISubcategorisable } from './appSubcategories';
3
- /** The query as it is matched and reported: surrounding whitespace dropped. */
4
- export declare const trimAppSearchQuery: (query: string) => string;
5
- /**
6
- * Returns a predicate for `query`. A blank (empty or whitespace-only) query
7
- * matches every app, so the unfiltered screen is the same code path.
8
- */
9
- export declare const createAppSearchMatcher: (query: string, subcategories: readonly IAppSubcategory[]) => ((item: ISubcategorisable) => boolean);
10
- /** The apps in `items` that match `query`, in input order. A blank query keeps them all. */
11
- export declare const filterAppsBySearch: <TItem extends ISubcategorisable>(items: readonly TItem[], query: string, subcategories: readonly IAppSubcategory[]) => TItem[];
12
- export interface IVisibleApp extends ISubcategorisable {
13
- /** Connector id, template id or `inbox-app:<id>`; an app is counted once per key. */
14
- key: string;
15
- }
16
- export interface IAppSearchSummary {
17
- /** Distinct visible apps across Suggested, Installed and Marketplace. */
18
- result_count: number;
19
- /**
20
- * Distinct subcategory LABELS of those apps (unknown keys count as
21
- * "Others"), ordered like the Marketplace headers: A-Z, "Others" last.
22
- */
23
- matched_subcategories: string[];
24
- }
25
- /**
26
- * Summary of what a search left on screen, for `CONNECTOR_APPS_SEARCHED`.
27
- * Apps are de-duplicated by `key`, so an app that appears in more than one
28
- * section (e.g. Suggested and elsewhere) is counted once.
29
- */
30
- export declare const summariseAppSearchResults: (visibleApps: readonly IVisibleApp[], subcategories: readonly IAppSubcategory[]) => IAppSearchSummary;
31
- //# sourceMappingURL=appSearch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appSearch.d.ts","sourceRoot":"","sources":["../../src/utils/appSearch.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,MAAsB,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,sBAAsB,UAC1B,MAAM,iBACE,SAAS,eAAe,EAAE,KACxC,CAAC,CAAC,IAAI,EAAE,iBAAiB,KAAK,OAAO,CASvC,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,kBAAkB,GAAI,KAAK,SAAS,iBAAiB,SACzD,SAAS,KAAK,EAAE,SAChB,MAAM,iBACE,SAAS,eAAe,EAAE,KACxC,KAAK,EAAgE,CAAC;AAEzE,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,qFAAqF;IACrF,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,gBACvB,SAAS,WAAW,EAAE,iBACpB,SAAS,eAAe,EAAE,KACxC,iBAMF,CAAC"}
@@ -1,34 +0,0 @@
1
- import { IAppSubcategory } from '../types/adminListing';
2
- export declare const OTHERS_SUBCATEGORY_KEY = "others";
3
- export interface ISubcategorisable {
4
- name: string;
5
- /** Subcategory key; unknown or missing keys land in "Others". */
6
- subcategory?: string | null;
7
- }
8
- export interface ISubcategoryGroup<TItem> {
9
- key: string;
10
- label: string;
11
- items: TItem[];
12
- }
13
- /**
14
- * The subcategory an item is shown under: its own key when `labels` knows it,
15
- * otherwise "Others". Grouping and search share this so an app is always
16
- * searchable by the header it actually sits under.
17
- */
18
- export declare const resolveSubcategory: (subcategory: string | null | undefined, labels: ReadonlyMap<string, string>) => {
19
- key: string;
20
- label: string;
21
- };
22
- export declare const buildSubcategoryLabels: (subcategories: readonly IAppSubcategory[]) => Map<string, string>;
23
- /**
24
- * Groups items under their subcategory.
25
- *
26
- * - Groups are sorted alphabetically by label, with "Others" always last.
27
- * - Items are sorted alphabetically by name within each group.
28
- * - A group with no items is dropped, so an empty subcategory never renders.
29
- * - An item whose subcategory is not in `subcategories` goes to "Others".
30
- *
31
- * Inputs are not mutated.
32
- */
33
- export declare const groupBySubcategory: <TItem extends ISubcategorisable>(items: readonly TItem[], subcategories: readonly IAppSubcategory[]) => ISubcategoryGroup<TItem>[];
34
- //# sourceMappingURL=appSubcategories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appSubcategories.d.ts","sourceRoot":"","sources":["../../src/utils/appSubcategories.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAG/C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB,CAAC,KAAK;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,EAAE,CAAC;CAChB;AAID;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,gBAChB,MAAM,GAAG,IAAI,GAAG,SAAS,UAC9B,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,KAClC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAG9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,kBAAmB,SAAS,eAAe,EAAE,KAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CACvC,CAAC;AAE/D;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAAI,KAAK,SAAS,iBAAiB,SACzD,SAAS,KAAK,EAAE,iBACR,SAAS,eAAe,EAAE,KACxC,iBAAiB,CAAC,KAAK,CAAC,EAyB1B,CAAC"}
@@ -1,45 +0,0 @@
1
- import { NativeIntegrations } from '../types/app';
2
- import { IInstalledConnectorSortable } from './installedConnectors';
3
- /** Prefix of an Inbox app's list key, so it never collides with a connector or template id. */
4
- export declare const INBOX_APP_KEY_PREFIX = "inbox-app:";
5
- export declare const getInboxAppKey: (id: string) => string;
6
- export interface IInboxAppListItem {
7
- kind: 'inbox-app';
8
- /** List key (`inbox-app:<id>`), unique next to connector and template ids. */
9
- key: string;
10
- /** Inbox app id, e.g. `slack`. */
11
- id: string;
12
- name: string;
13
- /** Subcategory key from `nativeSubcategories`; `others` when unmapped. */
14
- subcategory: string;
15
- integration: NativeIntegrations;
16
- }
17
- export declare const isInboxAppListItem: (item: unknown) => item is IInboxAppListItem;
18
- export interface ISplitNativeIntegrations {
19
- /** `isActive === true`: listed under Installed. */
20
- installed: IInboxAppListItem[];
21
- /** Everything else (inactive or `isActive` absent): listed under Marketplace. */
22
- marketplace: IInboxAppListItem[];
23
- }
24
- /**
25
- * Splits Inbox apps into Installed (`isActive === true`) and Marketplace (any
26
- * other value, including absent). Each item carries its subcategory from
27
- * `nativeSubcategories[id]`, falling back to `others`.
28
- *
29
- * Visibility is the caller's job (`isNativeIntegrationAvailable`): every app
30
- * passed in comes back out, in input order.
31
- */
32
- export declare const splitNativeIntegrations: (integrations: readonly NativeIntegrations[], nativeSubcategories: Readonly<Record<string, string>>) => ISplitNativeIntegrations;
33
- /**
34
- * Display order for Installed once active Inbox apps join the connectors.
35
- *
36
- * Uses the existing Installed sort. An active Inbox app has no auth, upgrade
37
- * or disabled state of its own, so it sorts as a healthy enabled app: after
38
- * enabled auth-failed and upgrade-available connectors, alphabetically among
39
- * the enabled ones, and ahead of every disabled connector. Connectors keep
40
- * their relative order (same comparator, stable sort).
41
- *
42
- * Returns list keys: connector ids and `inbox-app:<id>` keys.
43
- */
44
- export declare const mergeInboxAppsIntoInstalledOrder: (connectorList: readonly string[], connectors: Readonly<Record<string, IInstalledConnectorSortable>>, inboxApps: readonly IInboxAppListItem[]) => string[];
45
- //# sourceMappingURL=inboxApps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inboxApps.d.ts","sourceRoot":"","sources":["../../src/utils/inboxApps.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE/E,+FAA+F;AAC/F,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,eAAO,MAAM,cAAc,OAAQ,MAAM,WAAmC,CAAC;AAE7E,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,8EAA8E;IAC9E,GAAG,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,kBAAkB,CAAC;CACjC;AAED,eAAO,MAAM,kBAAkB,SAAU,OAAO,KAAG,IAAI,IAAI,iBAC6B,CAAC;AAEzF,MAAM,WAAW,wBAAwB;IACvC,mDAAmD;IACnD,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,iFAAiF;IACjF,WAAW,EAAE,iBAAiB,EAAE,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,iBACpB,SAAS,kBAAkB,EAAE,uBACtB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KACpD,wBAiBF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gCAAgC,kBAC5B,SAAS,MAAM,EAAE,cACpB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC,aACtD,SAAS,iBAAiB,EAAE,KACtC,MAAM,EAYR,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * The Installed apps ordering and alert split, shared by the legacy
3
- * `/connectors/ug` path (connector-library slice) and the lean admin-listing
4
- * path (admin-listing slice) so both render in exactly the same order.
5
- */
6
- export interface IInstalledConnectorSortable {
7
- id: string;
8
- name: string;
9
- isEnabled?: boolean;
10
- isAuthenticated?: boolean;
11
- authPending?: boolean;
12
- showUpgradeButton?: boolean;
13
- }
14
- /** Comparator for the Installed apps grid. Sorts in place when used with `Array.prototype.sort`. */
15
- export declare const compareInstalledConnectors: (a: IInstalledConnectorSortable, b: IInstalledConnectorSortable) => number;
16
- /**
17
- * Ids of the connectors that raise the red "Authentication failed" and the
18
- * "upgrade" dashboard alerts.
19
- *
20
- * `authPending` is a store that has never been authenticated, so its
21
- * `isAuthenticated: false` is not a failure — keep it out of the red
22
- * per-connector dashboard alerts. Do not collapse this back to
23
- * `!connector.isAuthenticated`: a store whose auth actually broke comes back
24
- * with `authPending: false` and must still raise the alert.
25
- */
26
- export declare const getInstalledConnectorAlerts: (connectors: IInstalledConnectorSortable[]) => {
27
- requireUpgradeConnectors: string[];
28
- notAuthenticatedConnectors: string[];
29
- };
30
- //# sourceMappingURL=installedConnectors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"installedConnectors.d.ts","sourceRoot":"","sources":["../../src/utils/installedConnectors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAwCD,oGAAoG;AACpG,eAAO,MAAM,0BAA0B,MAAO,2BAA2B,KAAK,2BAA2B,WASxG,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,eAAgB,2BAA2B,EAAE;;;CAWpF,CAAC"}