intelica-library-components 1.1.44 → 1.1.45

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/index.d.ts CHANGED
@@ -2501,7 +2501,15 @@ declare function GetCookieAttributes(environment: string): CookieAttributes;
2501
2501
 
2502
2502
  declare const IntelicaTheme: _primeuix_themes_types.Preset<_primeuix_themes_aura_base.AuraBaseDesignTokens>;
2503
2503
 
2504
- type JobStatusCode = "idle" | "pending" | "running" | "completed" | "failed" | "cancelled";
2504
+ type JobStatusCode = "pending" | "running" | "completed" | "failed" | "cancelled";
2505
+ type Origin = "default" | "testing" | "security" | "alerts" | "filesharing";
2506
+ type NotificationTypeCode = "NTF" | "PRG" | "BRD" | "TEM" | "OPT";
2507
+ type PriorityCode = "low" | "normal" | "high" | "critical";
2508
+ type RecipientTypeCode = "user" | "contact" | "phone" | "device" | "topic";
2509
+ type ChannelCode = "email" | "sms" | "push" | "whatsapp" | "inapp";
2510
+ type DestinationType = "URL" | "NAV" | "GET" | "PUT" | "POST" | "PATCH" | "DELETE";
2511
+ type Method = "PUT" | "POST" | "PATCH" | "DELETE";
2512
+
2505
2513
  interface JobState {
2506
2514
  jobId?: string;
2507
2515
  status: JobStatusCode;
@@ -2513,19 +2521,19 @@ interface JobState {
2513
2521
 
2514
2522
  interface NotificationDraft {
2515
2523
  originReference: string;
2516
- notificationTypeCode: string;
2524
+ notificationTypeCode: NotificationTypeCode;
2517
2525
  destination?: string | null;
2518
2526
  destinationLabel?: string | null;
2519
2527
  bucketName?: string;
2520
2528
  templateName?: string;
2521
2529
  templateData?: string;
2522
- priorityCode: string;
2530
+ priorityCode: PriorityCode;
2523
2531
  title?: string;
2524
2532
  body?: string;
2525
2533
  metaData?: string;
2526
2534
  recipients: Array<{
2527
- recipientTypeCode: string;
2528
- channelCode?: string;
2535
+ recipientTypeCode: RecipientTypeCode;
2536
+ channelCode?: ChannelCode;
2529
2537
  userId?: string | null;
2530
2538
  clientId?: string | null;
2531
2539
  groupId?: string | null;
@@ -2539,16 +2547,23 @@ interface NotificationDraft {
2539
2547
  code: string;
2540
2548
  label: string;
2541
2549
  metaData?: string;
2542
- destinationType: string;
2550
+ destinationType: DestinationType;
2543
2551
  destination: string;
2544
2552
  destinationData?: string;
2545
2553
  markAsRead?: boolean | false;
2546
2554
  markAsHidden?: boolean | false;
2547
2555
  }>;
2556
+ attachments?: Array<{
2557
+ method: Method;
2558
+ url: string;
2559
+ bodyJson?: string | null;
2560
+ fileName?: string | null;
2561
+ contentType?: string | null;
2562
+ }>;
2548
2563
  callbacks?: Array<{
2549
2564
  code: string;
2550
2565
  url: string;
2551
- method: string;
2566
+ method: Method;
2552
2567
  payload?: any;
2553
2568
  triggerOnSent: boolean;
2554
2569
  triggerOnFailed: boolean;
@@ -2713,26 +2728,26 @@ interface CallbackExecutionResult {
2713
2728
 
2714
2729
  interface CreateNotificationJobRequest {
2715
2730
  featureCode: string;
2716
- origin: string;
2731
+ origin: Origin;
2717
2732
  totalCount: number;
2718
2733
  totalNotificationsCount: number;
2719
2734
  notifications?: CreateNotificationsForJobRequest[] | null;
2720
2735
  }
2721
2736
  interface CreateNotificationsForJobRequest {
2722
2737
  originReference: string;
2723
- notificationTypeCode: string;
2738
+ notificationTypeCode: NotificationTypeCode;
2724
2739
  destination?: string | null;
2725
2740
  destinationLabel?: string | null;
2726
2741
  bucketName?: string;
2727
2742
  templateName?: string;
2728
2743
  templateData?: string;
2729
- priorityCode: string;
2744
+ priorityCode: PriorityCode;
2730
2745
  title?: string;
2731
2746
  body?: string;
2732
2747
  metaData?: string;
2733
2748
  recipients: Array<{
2734
- recipientTypeCode: string;
2735
- channelCode?: string;
2749
+ recipientTypeCode: RecipientTypeCode;
2750
+ channelCode?: ChannelCode;
2736
2751
  userId?: string | null;
2737
2752
  clientId?: string | null;
2738
2753
  groupId?: string | null;
@@ -2746,16 +2761,23 @@ interface CreateNotificationsForJobRequest {
2746
2761
  code: string;
2747
2762
  label: string;
2748
2763
  metaData?: string;
2749
- destinationType: string;
2764
+ destinationType: DestinationType;
2750
2765
  destination: string;
2751
2766
  destinationData?: string;
2752
2767
  markAsRead?: boolean | false;
2753
2768
  markAsHidden?: boolean | false;
2754
2769
  }>;
2770
+ attachments?: Array<{
2771
+ method: Method;
2772
+ url: string;
2773
+ bodyJson?: string | null;
2774
+ fileName?: string | null;
2775
+ contentType?: string | null;
2776
+ }>;
2755
2777
  callbacks?: Array<{
2756
2778
  code: string;
2757
2779
  url: string;
2758
- method: string;
2780
+ method: Method;
2759
2781
  payload?: any;
2760
2782
  triggerOnSent: boolean;
2761
2783
  triggerOnFailed: boolean;
@@ -2929,8 +2951,8 @@ declare class NotificationOrchestratorService {
2929
2951
  private jobService;
2930
2952
  private notificationService;
2931
2953
  private signalR;
2932
- private featureCode?;
2933
2954
  private origin?;
2955
+ private featureCode?;
2934
2956
  private currentJobId?;
2935
2957
  private subscribedJobId?;
2936
2958
  private readonly jobStateSubject;
@@ -2957,14 +2979,14 @@ declare class NotificationOrchestratorService {
2957
2979
  watchJobProgress(jobId: string): Promise<Observable<RecipientProgressNotification>>;
2958
2980
  unwatchJobProgress(jobId: string): Promise<void>;
2959
2981
  jobProgress$(jobId: string): Observable<RecipientProgressNotification>;
2960
- rehydrateScope(featureCode: string, origin: string): Promise<void>;
2982
+ rehydrateScope(featureCode: string, origin: Origin): Promise<void>;
2961
2983
  getCurrentJobId(): string | undefined;
2962
2984
  getJobStateSnapshot(): JobState;
2963
- ensureActiveOrCreateJobNotifications(totalCount: number, totalNotificationsCount: number, notificationDraft: NotificationDraft[]): Promise<{
2985
+ ensureActiveOrCreateJobNotifications(notificationDraft: NotificationDraft[]): Promise<{
2964
2986
  jobId: string;
2965
2987
  mode: "active" | "created";
2966
2988
  }>;
2967
- ensureCreateJobNotifications(origin: string, featureCode: string, notificationDraft: NotificationDraft[]): Promise<void>;
2989
+ ensureCreateJobNotifications(origin: Origin, featureCode: string, notificationDraft: NotificationDraft[]): Promise<void>;
2968
2990
  markAsRead(recipientId: string): Promise<NotificationRecipientSummaryResponse>;
2969
2991
  markAsHidden(recipientId: string): Promise<NotificationRecipientSummaryResponse>;
2970
2992
  getNotificacionsByUser(userId: string): Promise<UserNotificationInboxItem[]>;
@@ -2980,4 +3002,4 @@ declare class NotificationOrchestratorService {
2980
3002
  }
2981
3003
 
2982
3004
  export { ALERT_DEFAULTS, ALERT_ICON_PATHS, ALERT_TYPE_CONFIG, ActionDirective, ActionsMenuComponent, AddFavoritesComponent, AlertButtonMode, AlertService, AlertType, ButtonSplitComponent, CheckboxFilterDirective, Color, ColumnComponent, ColumnGroupComponent, CompareByField, ConfigService, CookieAttributesGeneral, DATEPICKER_BUTTON_TYPES, DataDirective, DateFilterDirective, DateModeOptions, DatepickerComponent, DynamicInputValidation, EchartComponent, EchartService, ElementService, EmailInputValidation, ErrorInterceptor, ErrorNewInterceptor, FeatureFlagService, FilterChipsComponent, FiltersComponent, FormatAmountPipe, GetCookieAttributes, GlobalFeatureFlagService, GlobalTermService, HtmlToExcelService, InitializeConfigService, InputValidation, IntelicaAlertComponent, IntelicaCellCheckboxDirective, IntelicaSessionService, IntelicaTheme, ItemSplitDirective, LanguageService, MatrixColumnComponent, MatrixColumnGroupComponent, MatrixTableComponent, ModalDialogComponent, MultiSelectComponent, NotificationJobService, NotificationOrchestratorService, NotificationService, NotificationSignalRService, OrderConstants, PageInformation, PageRootChildGuard, PaginatorComponent, Patterns, PopoverComponent, ProfileService, RecordPerPageComponent, RefreshTokenInterceptor, ResponseHeadersInterceptor, RouteGuard, RouteNewGuard, RowResumenComponent, RowResumenTreeComponent, SearchComponent, SelectDetailFilterDirective, SelectFilterDirective, SharedService, SkeletonChartComponent, SkeletonComponent, SkeletonService, SkeletonTableComponent, SortingComponent, SpinnerComponent, SpinnerService, SweetAlertService, TableComponent, TableFetchComponent, TableSortOrder, TemplateDirective, TemplateMenuComponent, TermGuard, TermPipe, TermService, TextAreaFilterDirective, TextFilterDirective, TextRangeFilterDirective, TreeColumnComponent, TreeColumnGroupComponent, TreeTableComponent, TruncatePipe, decryptData, encryptData, getColor };
2983
- export type { AlertButtonConfig, AlertConfig, AlertResult, AlertStyleConfig, AlertTypeConfig, CallbackExecutionResult, CascadeFilterModel, ColorName, CookieAttributes, CreateNotificationJobRequest, CreateNotificationsForJobRequest, CustomButtonType, DateMode, ExportExcelCommand, FilterModel, ICell, IExcelColumnName, IExcelHeaderGroup, IFilter, ItlSessionEnvelope, ItlSessionScope, JobState, JobStatusCode, NotificationByJobItemResponse, NotificationDraft, NotificationJobProgressResponse, NotificationJobResponse, NotificationRecipientSummaryResponse, NotificationResponse, PopoverInformationModel, PropertiesModel, QueryParametersModel, RecipientDispatchError, RecipientNotification, RecipientNotificationAction, RecipientProgressNotification, RecipientProgressNotificationAction, SearchFieldModel, SearchInputModel, SortFieldModel, UserNotificationAction, UserNotificationInboxItem };
3005
+ export type { AlertButtonConfig, AlertConfig, AlertResult, AlertStyleConfig, AlertTypeConfig, CallbackExecutionResult, CascadeFilterModel, ColorName, CookieAttributes, CreateNotificationJobRequest, CreateNotificationsForJobRequest, CustomButtonType, DateMode, ExportExcelCommand, FilterModel, ICell, IExcelColumnName, IExcelHeaderGroup, IFilter, ItlSessionEnvelope, ItlSessionScope, JobState, NotificationByJobItemResponse, NotificationDraft, NotificationJobProgressResponse, NotificationJobResponse, NotificationRecipientSummaryResponse, NotificationResponse, PopoverInformationModel, PropertiesModel, QueryParametersModel, RecipientDispatchError, RecipientNotification, RecipientNotificationAction, RecipientProgressNotification, RecipientProgressNotificationAction, SearchFieldModel, SearchInputModel, SortFieldModel, UserNotificationAction, UserNotificationInboxItem };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelica-library-components",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",