@novu/js 3.15.0 → 3.16.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.
@@ -1,7 +1,7 @@
1
1
  export * from 'json-logic-js';
2
- import { S as SeverityLevelEnum, T as TagsFilter, N as Notification, a as NotificationFilter } from './novu-event-emitter-D9AphR7g.js';
3
- export { B as BaseDeleteSubscriptionArgs, b as BaseUpdateSubscriptionArgs, C as ChannelPreference, c as ChannelType, d as Context, e as CreateSubscriptionArgs, D as DaySchedule, f as DefaultSchedule, g as DeleteSubscriptionArgs, E as EventHandler, h as Events, F as FiltersCountResponse, G as GetSubscriptionArgs, I as InboxNotification, i as InstanceDeleteSubscriptionArgs, j as InstanceUpdateSubscriptionArgs, L as ListNotificationsResponse, k as ListSubscriptionsArgs, l as NotificationStatus, m as NovuError, n as NovuOptions, o as NovuSocketOptions, P as Preference, p as PreferenceFilter, q as PreferenceLevel, r as PreferencesResponse, s as Schedule, t as SocketEventNames, u as SocketTypeOption, v as StandardNovuOptions, w as Subscriber, x as SubscriptionPreference, y as TagsFilterAndForm, z as TagsFilterOrGroup, A as TimeRange, H as TopicSubscription, U as UnreadCount, J as UpdateSubscriptionArgs, K as UpdateSubscriptionPreferenceArgs, W as WebSocketEvent, M as WeeklySchedule, O as WorkflowCriticalityEnum, Q as WorkflowFilter, R as WorkflowGroupFilter, V as WorkflowIdentifierOrId } from './novu-event-emitter-D9AphR7g.js';
4
- export { N as Novu } from './novu-CI_mzxvm.js';
2
+ import { S as SeverityLevelEnum, T as TagsFilter, N as Notification, a as NotificationFilter } from './inbox-service-CEMMLHsX.js';
3
+ export { B as BaseDeleteSubscriptionArgs, b as BaseUpdateSubscriptionArgs, C as ChannelConnectionResponse, c as ChannelEndpointResponse, d as ChannelPreference, e as ChannelType, f as Context, g as CreateChannelConnectionArgs, h as CreateChannelEndpointArgs, i as CreateSubscriptionArgs, D as DaySchedule, j as DefaultSchedule, k as DeleteChannelConnectionArgs, l as DeleteChannelEndpointArgs, m as DeleteSubscriptionArgs, E as EventHandler, n as Events, F as FiltersCountResponse, G as GenerateChatOAuthUrlArgs, o as GetChannelConnectionArgs, p as GetChannelEndpointArgs, q as GetSubscriptionArgs, I as InboxNotification, r as InstanceDeleteSubscriptionArgs, s as InstanceUpdateSubscriptionArgs, L as ListChannelConnectionsArgs, t as ListChannelEndpointsArgs, u as ListNotificationsResponse, v as ListSubscriptionsArgs, w as NotificationStatus, x as NovuError, y as NovuOptions, z as NovuSocketOptions, P as Preference, A as PreferenceFilter, H as PreferenceLevel, J as PreferencesResponse, K as Schedule, M as SocketEventNames, O as SocketTypeOption, Q as StandardNovuOptions, R as Subscriber, U as SubscriptionPreference, V as TagsFilterAndForm, W as TagsFilterOrGroup, X as TimeRange, Y as TopicSubscription, Z as UnreadCount, _ as UpdateSubscriptionArgs, $ as UpdateSubscriptionPreferenceArgs, a0 as WebSocketEvent, a1 as WeeklySchedule, a2 as WorkflowCriticalityEnum, a3 as WorkflowFilter, a4 as WorkflowGroupFilter, a5 as WorkflowIdentifierOrId } from './inbox-service-CEMMLHsX.js';
4
+ export { N as Novu } from './novu-ChPiHuXt.js';
5
5
 
6
6
  /**
7
7
  * Normalizes inbox tag filters to CNF: `string[][]` where each inner array is one OR-group.
package/dist/cjs/index.js CHANGED
@@ -1,72 +1,72 @@
1
1
  'use strict';
2
2
 
3
- var chunkC23LCEUU_js = require('./chunk-C23LCEUU.js');
4
- var chunkYPTYVCVE_js = require('./chunk-YPTYVCVE.js');
3
+ var chunk6I5A5OGE_js = require('./chunk-6I5A5OGE.js');
4
+ var chunkWDGG3OER_js = require('./chunk-WDGG3OER.js');
5
5
  require('./chunk-7B52C2XE.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "Novu", {
10
10
  enumerable: true,
11
- get: function () { return chunkC23LCEUU_js.Novu; }
11
+ get: function () { return chunk6I5A5OGE_js.Novu; }
12
12
  });
13
13
  Object.defineProperty(exports, "SubscriptionPreference", {
14
14
  enumerable: true,
15
- get: function () { return chunkC23LCEUU_js.SubscriptionPreference; }
15
+ get: function () { return chunk6I5A5OGE_js.SubscriptionPreference; }
16
16
  });
17
17
  Object.defineProperty(exports, "TopicSubscription", {
18
18
  enumerable: true,
19
- get: function () { return chunkC23LCEUU_js.TopicSubscription; }
19
+ get: function () { return chunk6I5A5OGE_js.TopicSubscription; }
20
20
  });
21
21
  Object.defineProperty(exports, "areSeveritiesEqual", {
22
22
  enumerable: true,
23
- get: function () { return chunkC23LCEUU_js.areSeveritiesEqual; }
23
+ get: function () { return chunk6I5A5OGE_js.areSeveritiesEqual; }
24
24
  });
25
25
  Object.defineProperty(exports, "areTagsEqual", {
26
26
  enumerable: true,
27
- get: function () { return chunkC23LCEUU_js.areTagsEqual; }
27
+ get: function () { return chunk6I5A5OGE_js.areTagsEqual; }
28
28
  });
29
29
  Object.defineProperty(exports, "checkNotificationDataFilter", {
30
30
  enumerable: true,
31
- get: function () { return chunkC23LCEUU_js.checkNotificationDataFilter; }
31
+ get: function () { return chunk6I5A5OGE_js.checkNotificationDataFilter; }
32
32
  });
33
33
  Object.defineProperty(exports, "checkNotificationMatchesFilter", {
34
34
  enumerable: true,
35
- get: function () { return chunkC23LCEUU_js.checkNotificationMatchesFilter; }
35
+ get: function () { return chunk6I5A5OGE_js.checkNotificationMatchesFilter; }
36
36
  });
37
37
  Object.defineProperty(exports, "isSameFilter", {
38
38
  enumerable: true,
39
- get: function () { return chunkC23LCEUU_js.isSameFilter; }
39
+ get: function () { return chunk6I5A5OGE_js.isSameFilter; }
40
40
  });
41
41
  Object.defineProperty(exports, "normalizeTagGroups", {
42
42
  enumerable: true,
43
- get: function () { return chunkC23LCEUU_js.normalizeTagGroups; }
43
+ get: function () { return chunk6I5A5OGE_js.normalizeTagGroups; }
44
44
  });
45
45
  Object.defineProperty(exports, "ChannelType", {
46
46
  enumerable: true,
47
- get: function () { return chunkYPTYVCVE_js.ChannelType; }
47
+ get: function () { return chunkWDGG3OER_js.ChannelType; }
48
48
  });
49
49
  Object.defineProperty(exports, "NotificationStatus", {
50
50
  enumerable: true,
51
- get: function () { return chunkYPTYVCVE_js.NotificationStatus; }
51
+ get: function () { return chunkWDGG3OER_js.NotificationStatus; }
52
52
  });
53
53
  Object.defineProperty(exports, "NovuError", {
54
54
  enumerable: true,
55
- get: function () { return chunkYPTYVCVE_js.NovuError; }
55
+ get: function () { return chunkWDGG3OER_js.NovuError; }
56
56
  });
57
57
  Object.defineProperty(exports, "PreferenceLevel", {
58
58
  enumerable: true,
59
- get: function () { return chunkYPTYVCVE_js.PreferenceLevel; }
59
+ get: function () { return chunkWDGG3OER_js.PreferenceLevel; }
60
60
  });
61
61
  Object.defineProperty(exports, "SeverityLevelEnum", {
62
62
  enumerable: true,
63
- get: function () { return chunkYPTYVCVE_js.SeverityLevelEnum; }
63
+ get: function () { return chunkWDGG3OER_js.SeverityLevelEnum; }
64
64
  });
65
65
  Object.defineProperty(exports, "WebSocketEvent", {
66
66
  enumerable: true,
67
- get: function () { return chunkYPTYVCVE_js.WebSocketEvent; }
67
+ get: function () { return chunkWDGG3OER_js.WebSocketEvent; }
68
68
  });
69
69
  Object.defineProperty(exports, "WorkflowCriticalityEnum", {
70
70
  enumerable: true,
71
- get: function () { return chunkYPTYVCVE_js.WorkflowCriticalityEnum; }
71
+ get: function () { return chunkWDGG3OER_js.WorkflowCriticalityEnum; }
72
72
  });
@@ -1,4 +1,4 @@
1
- import { d as Context, w as Subscriber, Y as NovuEventEmitter, X as InboxService, I as InboxNotification, N as Notification } from '../novu-event-emitter-D9AphR7g.js';
1
+ import { f as Context, R as Subscriber, a8 as NovuEventEmitter, a7 as InboxService, I as InboxNotification, N as Notification } from '../inbox-service-CEMMLHsX.js';
2
2
  import 'json-logic-js';
3
3
 
4
4
  /**
@@ -1,27 +1,27 @@
1
1
  'use strict';
2
2
 
3
- var chunkYPTYVCVE_js = require('../chunk-YPTYVCVE.js');
3
+ var chunkWDGG3OER_js = require('../chunk-WDGG3OER.js');
4
4
  require('../chunk-7B52C2XE.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "buildContextKey", {
9
9
  enumerable: true,
10
- get: function () { return chunkYPTYVCVE_js.buildContextKey; }
10
+ get: function () { return chunkWDGG3OER_js.buildContextKey; }
11
11
  });
12
12
  Object.defineProperty(exports, "buildSubscriber", {
13
13
  enumerable: true,
14
- get: function () { return chunkYPTYVCVE_js.buildSubscriber; }
14
+ get: function () { return chunkWDGG3OER_js.buildSubscriber; }
15
15
  });
16
16
  Object.defineProperty(exports, "buildSubscriptionIdentifier", {
17
17
  enumerable: true,
18
- get: function () { return chunkYPTYVCVE_js.buildSubscriptionIdentifier; }
18
+ get: function () { return chunkWDGG3OER_js.buildSubscriptionIdentifier; }
19
19
  });
20
20
  Object.defineProperty(exports, "createNotification", {
21
21
  enumerable: true,
22
- get: function () { return chunkYPTYVCVE_js.createNotification; }
22
+ get: function () { return chunkWDGG3OER_js.createNotification; }
23
23
  });
24
24
  Object.defineProperty(exports, "parseMarkdownIntoTokens", {
25
25
  enumerable: true,
26
- get: function () { return chunkYPTYVCVE_js.parseMarkdownIntoTokens; }
26
+ get: function () { return chunkWDGG3OER_js.parseMarkdownIntoTokens; }
27
27
  });
@@ -1,4 +1,4 @@
1
- import { X as InboxService, Y as NovuEventEmitter, Z as Session, _ as Result, $ as ScheduleCache, s as Schedule, a0 as UpdateScheduleArgs, a1 as PreferencesCache, a2 as ListPreferencesArgs, P as Preference, a3 as BasePreferenceArgs, a4 as InstancePreferenceArgs, a5 as ListNotificationsArgs, L as ListNotificationsResponse, I as InboxNotification, N as Notification, a as NotificationFilter, a6 as FilterCountArgs, a7 as FilterCountResponse, a8 as FiltersCountArgs, F as FiltersCountResponse, a9 as BaseArgs, aa as InstanceArgs, ab as SnoozeArgs, ac as SubscriptionsCache, w as Subscriber, k as ListSubscriptionsArgs, ad as Options, H as TopicSubscription, G as GetSubscriptionArgs, e as CreateSubscriptionArgs, b as BaseUpdateSubscriptionArgs, j as InstanceUpdateSubscriptionArgs, B as BaseDeleteSubscriptionArgs, i as InstanceDeleteSubscriptionArgs, t as SocketEventNames, ae as EventNames, E as EventHandler, h as Events, af as ContextValue, n as NovuOptions, d as Context } from './novu-event-emitter-D9AphR7g.mjs';
1
+ import { a7 as InboxService, a8 as NovuEventEmitter, a9 as Session, aa as Result, ab as ScheduleCache, K as Schedule, ac as UpdateScheduleArgs, ad as PreferencesCache, ae as ListPreferencesArgs, P as Preference, af as BasePreferenceArgs, ag as InstancePreferenceArgs, ah as ListNotificationsArgs, u as ListNotificationsResponse, I as InboxNotification, N as Notification, a as NotificationFilter, ai as FilterCountArgs, aj as FilterCountResponse, ak as FiltersCountArgs, F as FiltersCountResponse, al as BaseArgs, am as InstanceArgs, an as SnoozeArgs, G as GenerateChatOAuthUrlArgs, L as ListChannelConnectionsArgs, C as ChannelConnectionResponse, o as GetChannelConnectionArgs, k as DeleteChannelConnectionArgs, t as ListChannelEndpointsArgs, c as ChannelEndpointResponse, p as GetChannelEndpointArgs, h as CreateChannelEndpointArgs, l as DeleteChannelEndpointArgs, ao as SubscriptionsCache, R as Subscriber, v as ListSubscriptionsArgs, ap as Options, Y as TopicSubscription, q as GetSubscriptionArgs, i as CreateSubscriptionArgs, b as BaseUpdateSubscriptionArgs, s as InstanceUpdateSubscriptionArgs, B as BaseDeleteSubscriptionArgs, r as InstanceDeleteSubscriptionArgs, M as SocketEventNames, aq as EventNames, E as EventHandler, n as Events, ar as ContextValue, y as NovuOptions, f as Context } from './inbox-service-CEMMLHsX.js';
2
2
 
3
3
  declare class BaseModule {
4
4
  #private;
@@ -130,6 +130,30 @@ declare class Notifications extends BaseModule {
130
130
  triggerHelloWorldEvent(): Promise<any>;
131
131
  }
132
132
 
133
+ declare class ChannelConnections extends BaseModule {
134
+ constructor({ inboxServiceInstance, eventEmitterInstance, }: {
135
+ inboxServiceInstance: InboxService;
136
+ eventEmitterInstance: NovuEventEmitter;
137
+ });
138
+ generateOAuthUrl(args: GenerateChatOAuthUrlArgs): Result<{
139
+ url: string;
140
+ }>;
141
+ list(args?: ListChannelConnectionsArgs): Result<ChannelConnectionResponse[]>;
142
+ get(args: GetChannelConnectionArgs): Result<ChannelConnectionResponse | null>;
143
+ delete(args: DeleteChannelConnectionArgs): Result<void>;
144
+ }
145
+
146
+ declare class ChannelEndpoints extends BaseModule {
147
+ constructor({ inboxServiceInstance, eventEmitterInstance, }: {
148
+ inboxServiceInstance: InboxService;
149
+ eventEmitterInstance: NovuEventEmitter;
150
+ });
151
+ list(args?: ListChannelEndpointsArgs): Result<ChannelEndpointResponse[]>;
152
+ get(args: GetChannelEndpointArgs): Result<ChannelEndpointResponse | null>;
153
+ create(args: CreateChannelEndpointArgs): Result<ChannelEndpointResponse>;
154
+ delete(args: DeleteChannelEndpointArgs): Result<void>;
155
+ }
156
+
133
157
  declare class Subscriptions extends BaseModule {
134
158
  #private;
135
159
  readonly cache: SubscriptionsCache;
@@ -160,6 +184,8 @@ declare class Novu implements Pick<NovuEventEmitter, 'on'> {
160
184
  readonly notifications: Notifications;
161
185
  readonly preferences: Preferences;
162
186
  readonly subscriptions: Subscriptions;
187
+ readonly channelConnections: ChannelConnections;
188
+ readonly channelEndpoints: ChannelEndpoints;
163
189
  readonly socket: BaseSocketInterface;
164
190
  on: <Key extends EventNames>(eventName: Key, listener: EventHandler<Events[Key]>) => () => void;
165
191
  /**
@@ -1,7 +1,7 @@
1
- import { G as InboxTheme, Y as SubscriptionTheme } from '../types-DXbz7pFA.js';
2
- import '../novu-event-emitter-D9AphR7g.js';
1
+ import { L as InboxTheme, a3 as SubscriptionTheme } from '../types-CPxEgcM4.js';
2
+ import '../inbox-service-CEMMLHsX.js';
3
3
  import 'json-logic-js';
4
- import '../novu-CI_mzxvm.js';
4
+ import '../novu-ChPiHuXt.js';
5
5
 
6
6
  declare const inboxDarkTheme: InboxTheme;
7
7
  /**
@@ -1,9 +1,12 @@
1
- import { P as Preference, s as Schedule, N as Notification, H as TopicSubscription, x as SubscriptionPreference, n as NovuOptions, a as NotificationFilter, O as WorkflowCriticalityEnum, U as UnreadCount } from './novu-event-emitter-D9AphR7g.js';
2
- import { N as Novu } from './novu-CI_mzxvm.js';
1
+ import { P as Preference, K as Schedule, N as Notification, Y as TopicSubscription, U as SubscriptionPreference, y as NovuOptions, a as NotificationFilter, a2 as WorkflowCriticalityEnum, Z as UnreadCount } from './inbox-service-CEMMLHsX.js';
2
+ import { N as Novu } from './novu-ChPiHuXt.js';
3
3
 
4
4
  declare const commonAppearanceKeys: readonly ["root", "button", "input", "icon", "badge", "popoverContent", "popoverTrigger", "popoverClose", "collapsible", "tooltipContent", "tooltipTrigger"];
5
5
  declare const inboxAppearanceKeys: readonly ["bellIcon", "lockIcon", "bellContainer", "severityHigh__bellContainer", "severityMedium__bellContainer", "severityLow__bellContainer", "bellSeverityGlow", "severityGlowHigh__bellSeverityGlow", "severityGlowMedium__bellSeverityGlow", "severityGlowLow__bellSeverityGlow", "bellDot", "preferences__button", "preferencesContainer", "inboxHeader", "loading", "dropdownContent", "dropdownTrigger", "dropdownItem", "dropdownItemLabel", "dropdownItemLabelContainer", "dropdownItemLeft__icon", "dropdownItemRight__icon", "dropdownItem__icon", "datePicker", "datePickerGrid", "datePickerGridRow", "datePickerGridCell", "datePickerGridCellTrigger", "datePickerTrigger", "datePickerGridHeader", "datePickerControl", "datePickerControlPrevTrigger", "datePickerControlNextTrigger", "datePickerControlPrevTrigger__icon", "datePickerControlNextTrigger__icon", "datePickerCalendar", "datePickerHeaderMonth", "datePickerCalendarDay__button", "timePicker", "timePicker__hourSelect", "timePicker__minuteSelect", "timePicker__periodSelect", "timePicker__separator", "timePickerHour__input", "timePickerMinute__input", "snoozeDatePicker", "snoozeDatePicker__actions", "snoozeDatePickerCancel__button", "snoozeDatePickerApply__button", "snoozeDatePicker__timePickerContainer", "snoozeDatePicker__timePickerLabel", "back__button", "skeletonText", "skeletonAvatar", "skeletonSwitch", "skeletonSwitchThumb", "tabsRoot", "tabsList", "tabsContent", "tabsTrigger", "dots", "inboxContent", "inbox__popoverTrigger", "inbox__popoverContent", "notificationListContainer", "notificationList", "notificationListEmptyNoticeContainer", "notificationListEmptyNoticeOverlay", "notificationListEmptyNoticeIcon", "notificationListEmptyNotice", "notificationList__skeleton", "notificationList__skeletonContent", "notificationList__skeletonItem", "notificationList__skeletonAvatar", "notificationList__skeletonText", "notificationListNewNotificationsNotice__button", "notification", "severityHigh__notification", "severityMedium__notification", "severityLow__notification", "notificationBar", "severityHigh__notificationBar", "severityMedium__notificationBar", "severityLow__notificationBar", "notificationContent", "notificationTextContainer", "notificationDot", "notificationSubject", "notificationSubject__strong", "notificationSubject__em", "notificationBody", "notificationBody__strong", "notificationBody__em", "notificationBodyContainer", "notificationImage", "notificationImageLoadingFallback", "notificationDate", "notificationDateActionsContainer", "notificationDefaultActions", "notificationCustomActions", "notificationPrimaryAction__button", "notificationSecondaryAction__button", "notificationRead__button", "notificationUnread__button", "notificationArchive__button", "notificationUnarchive__button", "notificationSnooze__button", "notificationUnsnooze__button", "notificationRead__icon", "notificationUnread__icon", "notificationArchive__icon", "notificationUnarchive__icon", "notificationSnooze__icon", "notificationUnsnooze__icon", "notificationsTabs__tabsRoot", "notificationsTabs__tabsList", "notificationsTabs__tabsContent", "notificationsTabs__tabsTrigger", "notificationsTabsTriggerLabel", "notificationsTabsTriggerCount", "inboxStatus__title", "inboxStatus__dropdownTrigger", "inboxStatus__dropdownContent", "inboxStatus__dropdownItem", "inboxStatus__dropdownItemLabel", "inboxStatus__dropdownItemLabelContainer", "inboxStatus__dropdownItemLeft__icon", "inboxStatus__dropdownItemRight__icon", "inboxStatus__dropdownItem__icon", "inboxStatus__dropdownItemCheck__icon", "moreActionsContainer", "moreActions__dropdownTrigger", "moreActions__dropdownContent", "moreActions__dropdownItem", "moreActions__dropdownItemLabel", "moreActions__dropdownItemLeft__icon", "moreActions__dots", "moreTabs__button", "moreTabs__icon", "moreTabs__dropdownTrigger", "moreTabs__dropdownContent", "moreTabs__dropdownItem", "moreTabs__dropdownItemLabel", "moreTabs__dropdownItemRight__icon", "workflowContainer", "workflowLabel", "workflowLabelHeader", "workflowLabelHeaderContainer", "workflowLabelIcon", "workflowLabelContainer", "workflowContainerDisabledNotice", "workflowLabelDisabled__icon", "workflowContainerRight__icon", "workflowArrow__icon", "workflowDescription", "preferencesGroupContainer", "preferencesGroupHeader", "preferencesGroupLabelContainer", "preferencesGroupLabelIcon", "preferencesGroupLabel", "preferencesGroupActionsContainer", "preferencesGroupActionsContainerRight__icon", "preferencesGroupBody", "preferencesGroupChannels", "preferencesGroupInfo", "preferencesGroupInfoIcon", "preferencesGroupWorkflows", "channelContainer", "channelIconContainer", "channel__icon", "channelsContainerCollapsible", "channelsContainer", "channelLabel", "channelLabelContainer", "channelName", "channelSwitchContainer", "channelSwitch", "channelSwitchThumb", "preferencesHeader", "preferencesHeader__back__button", "preferencesHeader__back__button__icon", "preferencesHeader__title", "preferencesHeader__icon", "preferencesListEmptyNoticeContainer", "preferencesListEmptyNotice", "preferencesList__skeleton", "preferencesList__skeletonContent", "preferencesList__skeletonItem", "preferencesList__skeletonIcon", "preferencesList__skeletonSwitch", "preferencesList__skeletonSwitchThumb", "preferencesList__skeletonText", "scheduleContainer", "scheduleHeader", "scheduleLabelContainer", "scheduleLabelScheduleIcon", "scheduleLabelInfoIcon", "scheduleLabel", "scheduleActionsContainer", "scheduleActionsContainerRight", "scheduleBody", "scheduleDescription", "scheduleTable", "scheduleTableHeader", "scheduleHeaderColumn", "scheduleTableBody", "scheduleBodyRow", "scheduleBodyColumn", "scheduleInfoContainer", "scheduleInfoIcon", "scheduleInfo", "dayScheduleCopyTitle", "dayScheduleCopyIcon", "dayScheduleCopySelectAll", "dayScheduleCopyDay", "dayScheduleCopyFooterContainer", "dayScheduleCopy__dropdownTrigger", "dayScheduleCopy__dropdownContent", "timeSelect__dropdownTrigger", "timeSelect__time", "timeSelect__dropdownContent", "timeSelect__dropdownItem", "timeSelect__dropdownItemLabel", "timeSelect__dropdownItemLabelContainer", "timeSelect__dropdownItemCheck__icon", "notificationSnooze__dropdownContent", "notificationSnooze__dropdownItem", "notificationSnooze__dropdownItem__icon", "notificationSnoozeCustomTime_popoverContent", "notificationDeliveredAt__badge", "notificationDeliveredAt__icon", "notificationSnoozedUntil__icon", "strong", "em"];
6
6
  declare const subscriptionAppearanceKeys: readonly ["subscriptionContainer", "subscriptionButton__button", "subscriptionButtonContainer", "subscriptionButtonIcon", "subscriptionButtonLabel", "subscription__popoverTriggerContainer", "subscription__popoverTrigger", "subscriptionTriggerIcon", "subscription__popoverContent", "subscriptionPreferencesContainer", "subscriptionPreferencesHeaderContainer", "subscriptionPreferencesHeader", "subscriptionPreferencesInfoIcon", "subscriptionPreferencesContent", "subscriptionPreferencesGroupsContainer", "subscriptionPreferencesFallback", "subscriptionPreferencesFallbackTexts", "subscriptionPreferencesFallbackHeader", "subscriptionPreferencesFallbackDescription", "subscriptionPreferenceRow", "subscriptionPreferenceLabel", "subscriptionPreferenceGroupContainer", "subscriptionPreferenceGroupHeader", "subscriptionPreferenceGroupLabelContainer", "subscriptionPreferenceGroupLabelIcon", "subscriptionPreferenceGroupLabel", "subscriptionPreferenceGroupActionsContainer", "subscriptionPreferenceGroupActionsContainerRight__icon", "subscriptionPreferenceGroupBody", "subscriptionPreferenceGroupWorkflowRow", "subscriptionPreferenceGroupWorkflowLabel"];
7
+ declare const connectChatAppearanceKeys: readonly ["connectChatContainer", "connectChatButton", "connectChatButtonContainer", "connectChatButtonLabel", "connectChatMisconfiguredTooltip"];
8
+ declare const channelConnectButtonAppearanceKeys: readonly ["channelConnectButtonContainer", "channelConnectButton", "channelConnectButtonInner", "channelConnectButtonIcon", "channelConnectButtonLabel", "channelConnectButtonMisconfiguredTooltip"];
9
+ declare const linkSlackUserAppearanceKeys: readonly ["linkSlackUserContainer", "linkSlackUserButton", "linkSlackUserButtonContainer", "linkSlackUserButtonIcon", "linkSlackUserButtonLabel"];
7
10
 
8
11
  declare const defaultInboxLocalization: {
9
12
  readonly 'inbox.filters.dropdownOptions.unread': "Unread only";
@@ -753,6 +756,47 @@ type SubscriptionAppearanceCallback = {
753
756
  type SubscriptionAppearanceCallbackKeys = keyof SubscriptionAppearanceCallback;
754
757
  type SubscriptionAppearanceCallbackFunction<K extends SubscriptionAppearanceCallbackKeys> = SubscriptionAppearanceCallback[K];
755
758
  type SubscriptionAppearanceKey = (typeof subscriptionAppearanceKeys)[number];
759
+ type ConnectChatAppearanceKey = (typeof connectChatAppearanceKeys)[number];
760
+ type SlackLinkUserAppearanceKey = (typeof linkSlackUserAppearanceKeys)[number];
761
+ type ChannelConnectButtonAppearanceKey = (typeof channelConnectButtonAppearanceKeys)[number];
762
+ type SlackLinkUserAppearanceCallback = {
763
+ linkSlackUserContainer: (context: {
764
+ linked: boolean;
765
+ }) => string;
766
+ linkSlackUserButton: (context: {
767
+ linked: boolean;
768
+ }) => string;
769
+ linkSlackUserButtonContainer: (context: {
770
+ linked: boolean;
771
+ }) => string;
772
+ linkSlackUserButtonIcon: (context: {
773
+ linked: boolean;
774
+ }) => string;
775
+ linkSlackUserButtonLabel: (context: {
776
+ linked: boolean;
777
+ }) => string;
778
+ };
779
+ type SlackLinkUserAppearanceCallbackKeys = keyof SlackLinkUserAppearanceCallback;
780
+ type SlackLinkUserAppearanceCallbackFunction<K extends SlackLinkUserAppearanceCallbackKeys> = SlackLinkUserAppearanceCallback[K];
781
+ type ChannelConnectButtonAppearanceCallback = {
782
+ channelConnectButtonContainer: (context: {
783
+ connected: boolean;
784
+ }) => string;
785
+ channelConnectButton: (context: {
786
+ connected: boolean;
787
+ }) => string;
788
+ channelConnectButtonInner: (context: {
789
+ connected: boolean;
790
+ }) => string;
791
+ channelConnectButtonIcon: (context: {
792
+ connected: boolean;
793
+ }) => string;
794
+ channelConnectButtonLabel: (context: {
795
+ connected: boolean;
796
+ }) => string;
797
+ };
798
+ type ChannelConnectButtonAppearanceCallbackKeys = keyof ChannelConnectButtonAppearanceCallback;
799
+ type ChannelConnectButtonAppearanceCallbackFunction<K extends ChannelConnectButtonAppearanceCallbackKeys> = ChannelConnectButtonAppearanceCallback[K];
756
800
  type SubscriptionElements = Partial<{
757
801
  [K in CommonAppearanceKey]: ElementStyles;
758
802
  } & {
@@ -773,9 +817,9 @@ type SubscriptionTheme = {
773
817
  type SubscriptionAppearance = SubscriptionTheme & {
774
818
  baseTheme?: SubscriptionTheme | SubscriptionTheme[];
775
819
  };
776
- type AllAppearanceCallbackKeys = InboxAppearanceCallbackKeys | SubscriptionAppearanceCallbackKeys;
777
- type AllAppearanceCallbackFunction<K extends AllAppearanceCallbackKeys> = K extends InboxAppearanceCallbackKeys ? InboxAppearanceCallbackFunction<K> : K extends SubscriptionAppearanceCallbackKeys ? SubscriptionAppearanceCallbackFunction<K> : never;
778
- type AllAppearanceKey = CommonAppearanceKey | InboxAppearanceKey | SubscriptionAppearanceKey;
820
+ type AllAppearanceCallbackKeys = InboxAppearanceCallbackKeys | SubscriptionAppearanceCallbackKeys | SlackLinkUserAppearanceCallbackKeys | ChannelConnectButtonAppearanceCallbackKeys;
821
+ type AllAppearanceCallbackFunction<K extends AllAppearanceCallbackKeys> = K extends InboxAppearanceCallbackKeys ? InboxAppearanceCallbackFunction<K> : K extends SubscriptionAppearanceCallbackKeys ? SubscriptionAppearanceCallbackFunction<K> : K extends SlackLinkUserAppearanceCallbackKeys ? SlackLinkUserAppearanceCallbackFunction<K> : K extends ChannelConnectButtonAppearanceCallbackKeys ? ChannelConnectButtonAppearanceCallbackFunction<K> : never;
822
+ type AllAppearanceKey = CommonAppearanceKey | InboxAppearanceKey | SubscriptionAppearanceKey | ConnectChatAppearanceKey | SlackLinkUserAppearanceKey | ChannelConnectButtonAppearanceKey;
779
823
  type AllElements = Partial<{
780
824
  [K in CommonAppearanceKey]: ElementStyles;
781
825
  } & {
@@ -783,7 +827,8 @@ type AllElements = Partial<{
783
827
  } & {
784
828
  [K in Extract<AllAppearanceKey, AllAppearanceCallbackKeys>]: ElementStyles | AllAppearanceCallbackFunction<K>;
785
829
  }>;
786
- type AllIconKey = CommonIconKey | InboxIconKey | SubscriptionIconKey;
830
+ type ChannelConnectButtonIconKey = 'channelConnect' | 'channelConnected';
831
+ type AllIconKey = CommonIconKey | InboxIconKey | SubscriptionIconKey | ChannelConnectButtonIconKey;
787
832
  type AllIconOverrides = {
788
833
  [key in AllIconKey]?: IconRenderer;
789
834
  };
@@ -836,4 +881,4 @@ type PreferenceGroups = Array<{
836
881
  filter: PreferenceGroupFilter;
837
882
  }>;
838
883
 
839
- export { type AvatarRenderer as A, type BellRenderer as B, type CustomActionsRenderer as C, type DefaultActionsRenderer as D, type ElementStyles as E, type InboxLocalizationKey as F, type InboxTheme as G, NotificationStatus as H, type IconRenderer as I, type SubscriptionAppearance as J, type SubscriptionAppearanceCallback as K, type SubscriptionAppearanceCallbackFunction as L, type SubscriptionAppearanceCallbackKeys as M, type NotificationClickHandler as N, type SubscriptionAppearanceKey as O, type PreferencesFilter as P, type SubscriptionElements as Q, type RouterPush as R, type SubjectRenderer as S, type Tab as T, type SubscriptionIconKey as U, type SubscriptionIconOverrides as V, type SubscriptionLocalization as W, type SubscriptionLocalizationKey as X, type SubscriptionTheme as Y, type Variables as Z, type NotificationActionClickHandler as a, type NotificationRenderer as b, type BodyRenderer as c, type BaseNovuProviderProps as d, type NovuProviderProps as e, type AllAppearance as f, type AllLocalization as g, type PreferenceGroups as h, type PreferencesSort as i, type AllAppearanceCallbackFunction as j, type AllAppearanceCallbackKeys as k, type AllAppearanceKey as l, type AllElements as m, type AllIconKey as n, type AllIconOverrides as o, type AllLocalizationKey as p, type AllTheme as q, type InboxAppearance as r, type InboxAppearanceCallback as s, type InboxAppearanceCallbackFunction as t, type InboxAppearanceCallbackKeys as u, type InboxAppearanceKey as v, type InboxElements as w, type InboxIconKey as x, type InboxIconOverrides as y, type InboxLocalization as z };
884
+ export { type SubscriptionIconKey as $, type AvatarRenderer as A, type BellRenderer as B, type CustomActionsRenderer as C, type DefaultActionsRenderer as D, type ElementStyles as E, type InboxElements as F, type InboxIconKey as G, type InboxIconOverrides as H, type IconRenderer as I, type InboxLocalization as J, type InboxLocalizationKey as K, type InboxTheme as L, NotificationStatus as M, type NotificationClickHandler as N, type SlackLinkUserAppearanceCallback as O, type PreferencesFilter as P, type SlackLinkUserAppearanceCallbackFunction as Q, type RouterPush as R, type SubjectRenderer as S, type Tab as T, type SlackLinkUserAppearanceCallbackKeys as U, type SubscriptionAppearance as V, type SubscriptionAppearanceCallback as W, type SubscriptionAppearanceCallbackFunction as X, type SubscriptionAppearanceCallbackKeys as Y, type SubscriptionAppearanceKey as Z, type SubscriptionElements as _, type NotificationActionClickHandler as a, type SubscriptionIconOverrides as a0, type SubscriptionLocalization as a1, type SubscriptionLocalizationKey as a2, type SubscriptionTheme as a3, type Variables as a4, type NotificationRenderer as b, type BodyRenderer as c, type BaseNovuProviderProps as d, type NovuProviderProps as e, type AllAppearance as f, type AllLocalization as g, type PreferenceGroups as h, type PreferencesSort as i, type AllAppearanceCallbackFunction as j, type AllAppearanceCallbackKeys as k, type AllAppearanceKey as l, type AllElements as m, type AllIconKey as n, type AllIconOverrides as o, type AllLocalizationKey as p, type AllTheme as q, type ChannelConnectButtonAppearanceCallback as r, type ChannelConnectButtonAppearanceCallbackFunction as s, type ChannelConnectButtonAppearanceCallbackKeys as t, type ChannelConnectButtonIconKey as u, type InboxAppearance as v, type InboxAppearanceCallback as w, type InboxAppearanceCallbackFunction as x, type InboxAppearanceCallbackKeys as y, type InboxAppearanceKey as z };
@@ -1,14 +1,27 @@
1
- import { V as WorkflowIdentifierOrId, H as TopicSubscription, n as NovuOptions } from '../novu-event-emitter-D9AphR7g.js';
2
- export { N as Notification } from '../novu-event-emitter-D9AphR7g.js';
3
- import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, A as AvatarRenderer, S as SubjectRenderer, c as BodyRenderer, D as DefaultActionsRenderer, C as CustomActionsRenderer, d as BaseNovuProviderProps, e as NovuProviderProps, f as AllAppearance, g as AllLocalization, T as Tab, P as PreferencesFilter, h as PreferenceGroups, i as PreferencesSort, R as RouterPush } from '../types-DXbz7pFA.js';
4
- export { j as AllAppearanceCallbackFunction, k as AllAppearanceCallbackKeys, l as AllAppearanceKey, m as AllElements, n as AllIconKey, o as AllIconOverrides, p as AllLocalizationKey, q as AllTheme, E as ElementStyles, I as IconRenderer, r as InboxAppearance, s as InboxAppearanceCallback, t as InboxAppearanceCallbackFunction, u as InboxAppearanceCallbackKeys, v as InboxAppearanceKey, w as InboxElements, x as InboxIconKey, y as InboxIconOverrides, z as InboxLocalization, F as InboxLocalizationKey, G as InboxTheme, H as NotificationStatus, J as SubscriptionAppearance, K as SubscriptionAppearanceCallback, L as SubscriptionAppearanceCallbackFunction, M as SubscriptionAppearanceCallbackKeys, O as SubscriptionAppearanceKey, Q as SubscriptionElements, U as SubscriptionIconKey, V as SubscriptionIconOverrides, W as SubscriptionLocalization, X as SubscriptionLocalizationKey, Y as SubscriptionTheme, Z as Variables } from '../types-DXbz7pFA.js';
1
+ import { f as Context, a6 as ConnectionMode, a5 as WorkflowIdentifierOrId, Y as TopicSubscription, y as NovuOptions } from '../inbox-service-CEMMLHsX.js';
2
+ export { N as Notification } from '../inbox-service-CEMMLHsX.js';
3
+ import { B as BellRenderer, N as NotificationClickHandler, a as NotificationActionClickHandler, b as NotificationRenderer, A as AvatarRenderer, S as SubjectRenderer, c as BodyRenderer, D as DefaultActionsRenderer, C as CustomActionsRenderer, d as BaseNovuProviderProps, e as NovuProviderProps, f as AllAppearance, g as AllLocalization, T as Tab, P as PreferencesFilter, h as PreferenceGroups, i as PreferencesSort, R as RouterPush } from '../types-CPxEgcM4.js';
4
+ export { j as AllAppearanceCallbackFunction, k as AllAppearanceCallbackKeys, l as AllAppearanceKey, m as AllElements, n as AllIconKey, o as AllIconOverrides, p as AllLocalizationKey, q as AllTheme, r as ChannelConnectButtonAppearanceCallback, s as ChannelConnectButtonAppearanceCallbackFunction, t as ChannelConnectButtonAppearanceCallbackKeys, u as ChannelConnectButtonIconKey, E as ElementStyles, I as IconRenderer, v as InboxAppearance, w as InboxAppearanceCallback, x as InboxAppearanceCallbackFunction, y as InboxAppearanceCallbackKeys, z as InboxAppearanceKey, F as InboxElements, G as InboxIconKey, H as InboxIconOverrides, J as InboxLocalization, K as InboxLocalizationKey, L as InboxTheme, M as NotificationStatus, O as SlackLinkUserAppearanceCallback, Q as SlackLinkUserAppearanceCallbackFunction, U as SlackLinkUserAppearanceCallbackKeys, V as SubscriptionAppearance, W as SubscriptionAppearanceCallback, X as SubscriptionAppearanceCallbackFunction, Y as SubscriptionAppearanceCallbackKeys, Z as SubscriptionAppearanceKey, _ as SubscriptionElements, $ as SubscriptionIconKey, a0 as SubscriptionIconOverrides, a1 as SubscriptionLocalization, a2 as SubscriptionLocalizationKey, a3 as SubscriptionTheme, a4 as Variables } from '../types-CPxEgcM4.js';
5
5
  import { Placement, OffsetOptions } from '@floating-ui/dom';
6
6
  import * as solid_js from 'solid-js';
7
7
  import { ComponentProps } from 'solid-js';
8
8
  import { MountableElement } from 'solid-js/web';
9
- import { N as Novu } from '../novu-CI_mzxvm.js';
9
+ import { N as Novu } from '../novu-ChPiHuXt.js';
10
10
  import 'json-logic-js';
11
11
 
12
+ type ConnectChatProps = {
13
+ integrationIdentifier: string;
14
+ connectionIdentifier?: string;
15
+ subscriberId?: string;
16
+ context?: Context;
17
+ scope?: string[];
18
+ connectionMode?: ConnectionMode;
19
+ onConnectSuccess?: (connectionIdentifier: string) => void;
20
+ onConnectError?: (error: unknown) => void;
21
+ onDisconnectSuccess?: () => void;
22
+ onDisconnectError?: (error: unknown) => void;
23
+ };
24
+
12
25
  type NotificationRendererProps = {
13
26
  renderNotification: NotificationRenderer;
14
27
  renderAvatar?: never;
@@ -54,6 +67,36 @@ type InboxContentProps = {
54
67
  hideNav?: boolean;
55
68
  } & (NotificationRendererProps | SubjectBodyRendererProps | NoRendererProps);
56
69
 
70
+ type SlackConnectButtonProps = {
71
+ integrationIdentifier?: string;
72
+ connectionIdentifier?: string;
73
+ subscriberId?: string;
74
+ context?: Context;
75
+ scope?: string[];
76
+ connectionMode?: ConnectionMode;
77
+ onConnectSuccess?: (connectionIdentifier: string) => void;
78
+ onConnectError?: (error: unknown) => void;
79
+ onDisconnectSuccess?: () => void;
80
+ onDisconnectError?: (error: unknown) => void;
81
+ connectLabel?: string;
82
+ connectedLabel?: string;
83
+ };
84
+
85
+ type SlackLinkUserProps = {
86
+ integrationIdentifier?: string;
87
+ connectionIdentifier?: string;
88
+ subscriberId?: string;
89
+ context?: Context;
90
+ onLinkSuccess?: (endpoint: {
91
+ identifier: string;
92
+ }) => void;
93
+ onLinkError?: (error: unknown) => void;
94
+ onUnlinkSuccess?: () => void;
95
+ onUnlinkError?: (error: unknown) => void;
96
+ linkLabel?: string;
97
+ unlinkLabel?: string;
98
+ };
99
+
57
100
  type SubscriptionPreferencesRenderer = (el: HTMLDivElement, subscription?: TopicSubscription, loading?: boolean) => () => void;
58
101
  type WorkflowPreference = {
59
102
  label?: string;
@@ -126,6 +169,9 @@ declare const novuComponents: {
126
169
  Subscription: (props: SubscriptionProps) => solid_js.JSX.Element;
127
170
  SubscriptionButton: (props: SubscriptionButtonWrapperProps) => solid_js.JSX.Element;
128
171
  SubscriptionPreferences: (props: SubscriptionPreferencesWrapperProps) => solid_js.JSX.Element;
172
+ ConnectChat: (props: ConnectChatProps) => solid_js.JSX.Element;
173
+ SlackLinkUser: (props: SlackLinkUserProps) => solid_js.JSX.Element;
174
+ SlackConnectButton: (props: SlackConnectButtonProps) => solid_js.JSX.Element;
129
175
  };
130
176
  type NovuComponentName = keyof typeof novuComponents;
131
177
 
@@ -154,4 +200,4 @@ declare class NovuUI {
154
200
  unmount(): void;
155
201
  }
156
202
 
157
- export { AllAppearance, AllLocalization, type BaseNovuUIOptions, BellRenderer, BodyRenderer, InboxPage, type InboxProps, NotificationActionClickHandler, NotificationClickHandler, NotificationRenderer, NovuProviderProps, NovuUI, type NovuUIOptions, PreferenceGroups, PreferencesFilter, PreferencesSort, RouterPush, SubjectRenderer, type SubscriptionButtonWrapperProps, type SubscriptionPreferencesWrapperProps, type SubscriptionProps, Tab };
203
+ export { AllAppearance, AllLocalization, type BaseNovuUIOptions, BellRenderer, BodyRenderer, type ConnectChatProps, InboxPage, type InboxProps, NotificationActionClickHandler, NotificationClickHandler, NotificationRenderer, NovuProviderProps, NovuUI, type NovuUIOptions, PreferenceGroups, PreferencesFilter, PreferencesSort, RouterPush, type SlackConnectButtonProps, type SlackLinkUserProps, SubjectRenderer, type SubscriptionButtonWrapperProps, type SubscriptionPreferencesWrapperProps, type SubscriptionProps, Tab };