http-request-manager 18.7.5 → 18.7.6

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "http-request-manager",
3
- "version": "18.7.5",
3
+ "version": "18.7.6",
4
4
  "homepage": "https://wavecoders.ca",
5
5
  "author": "Mike Bonifacio <wavecoders@gmail.com> (http://wavecoders@gmail.com/)",
6
6
  "description": "This is an Angular Module containing Components/Services using Material",
@@ -340,14 +340,14 @@ declare class ChannelMessage implements ChannelMessageInterface {
340
340
 
341
341
  /**
342
342
  * Channel type enum for different communication purposes
343
- * - STATE: Private channels for state synchronization
344
- * - MESSAGE: Messaging/communication channels
345
- * - NOTIFICATION: Notification/broadcast channels
343
+ * - STATE: Private channels for state synchronization (SYS- prefix)
344
+ * - MESSAGE: Public messaging/communication channels (PUB- prefix)
345
+ * - NOTIFICATION: Notification channels with DB persistence (MES- prefix)
346
346
  */
347
347
  declare enum ChannelType {
348
348
  STATE = "SYS",
349
- MESSAGE = "MES",
350
- NOTIFICATION = "PUB"
349
+ MESSAGE = "PUB",
350
+ NOTIFICATION = "MES"
351
351
  }
352
352
  /**
353
353
  * Utility function to create prefixed channel name
@@ -511,7 +511,7 @@ declare class HTTPManagerStateService<T extends {
511
511
  getUsersInChannel(channel: string): void;
512
512
  /**
513
513
  * Create a notification channel on the server
514
- * @param channel - Base channel name (PUB- prefix added automatically)
514
+ * @param channel - Base channel name (MES- prefix added automatically)
515
515
  */
516
516
  createNotificationChannel(channel: string): void;
517
517
  /**
@@ -525,7 +525,7 @@ declare class HTTPManagerStateService<T extends {
525
525
  getTodaysNotificationChannels(): void;
526
526
  /**
527
527
  * Subscribe to a notification channel with optional date filters
528
- * @param channel - Base channel name (PUB- prefix added automatically)
528
+ * @param channel - Base channel name (MES- prefix added automatically)
529
529
  */
530
530
  subscribeToNotificationChannel(channel: string, options?: {
531
531
  startEpoch?: number;
@@ -533,12 +533,12 @@ declare class HTTPManagerStateService<T extends {
533
533
  }, user?: any): void;
534
534
  /**
535
535
  * Unsubscribe from a notification channel
536
- * @param channel - Base channel name (PUB- prefix added automatically)
536
+ * @param channel - Base channel name (MES- prefix added automatically)
537
537
  */
538
538
  unsubscribeFromNotificationChannel(channel: string): void;
539
539
  /**
540
540
  * Send a notification to a channel
541
- * @param channel - Base channel name (PUB- prefix added automatically)
541
+ * @param channel - Base channel name (MES- prefix added automatically)
542
542
  */
543
543
  sendNotification(channel: string, content: any): void;
544
544
  private isEmpty;
@@ -1741,16 +1741,9 @@ declare class NotificationServiceDemo {
1741
1741
  notificationMessages$: rxjs.Observable<any[]>;
1742
1742
  latestNotification$: rxjs.Observable<any>;
1743
1743
  connectionStatus$: rxjs.Observable<boolean>;
1744
- /**
1745
- * Helper to ensure channel has MES- prefix
1746
- */
1747
- private toNotificationChannel;
1748
- /**
1749
- * Helper to strip MES- prefix for display
1750
- */
1751
- private fromNotificationChannel;
1752
1744
  /**
1753
1745
  * Create a notification channel
1746
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
1754
1747
  */
1755
1748
  createNotificationChannel(channel: string): void;
1756
1749
  /**
@@ -1764,7 +1757,8 @@ declare class NotificationServiceDemo {
1764
1757
  getTodaysNotificationChannels(): void;
1765
1758
  /**
1766
1759
  * Subscribe to a notification channel with optional date filter
1767
- * @param channel Channel name (MES- prefix will be added if not present)
1760
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
1761
+ * @param channel Base channel name (without MES- prefix)
1768
1762
  * @param options { startEpoch?, endEpoch? }
1769
1763
  * @param user User info for subscription
1770
1764
  */
@@ -1774,10 +1768,12 @@ declare class NotificationServiceDemo {
1774
1768
  }, user?: any): void;
1775
1769
  /**
1776
1770
  * Unsubscribe from a notification channel
1771
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
1777
1772
  */
1778
1773
  unsubscribeFromNotificationChannel(channel: string): void;
1779
1774
  /**
1780
1775
  * Send a notification to a channel
1776
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
1781
1777
  */
1782
1778
  sendNotification(channel: string, content: any, user?: any): void;
1783
1779
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationServiceDemo, never>;
@@ -1916,10 +1912,6 @@ declare class WsMessagingComponent implements OnInit, OnDestroy {
1916
1912
  toastService: ToastMessageDisplayService;
1917
1913
  channels$: Observable<string[]>;
1918
1914
  subscribedChannels$: Observable<string[]>;
1919
- /**
1920
- * Helper to ensure channel has PUB- prefix for outgoing communication
1921
- */
1922
- private toPublicChannel;
1923
1915
  user$: Observable<WSUser | null>;
1924
1916
  data$: Observable<any>;
1925
1917
  connectionStatus$: Observable<boolean>;
@@ -1940,17 +1932,17 @@ declare class WsMessagingComponent implements OnInit, OnDestroy {
1940
1932
  ngOnDestroy(): void;
1941
1933
  /**
1942
1934
  * Create a new public channel without auto-subscribing
1943
- * Public channels use PUB- prefix, system channels use SYS- prefix
1935
+ * NOTE: PUB- prefix is added by messageService.createChannel
1944
1936
  */
1945
1937
  onCreateChannel(): void;
1946
1938
  /**
1947
1939
  * Subscribe to a channel to receive messages
1948
- * Auto-adds PUB- prefix for outgoing communication
1940
+ * NOTE: PUB- prefix is added by messageService.subscribeToChannel
1949
1941
  */
1950
1942
  onSubscribeToChannel(channel: string): void;
1951
1943
  /**
1952
1944
  * Unsubscribe from a channel
1953
- * Auto-adds PUB- prefix for outgoing communication
1945
+ * NOTE: PUB- prefix is added by messageService.unsubscribeFromChannel
1954
1946
  */
1955
1947
  onUnsubscribeFromChannel(channel: string): void;
1956
1948
  /**
Binary file