@flusys/nestjs-notification 7.1.0 → 8.0.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 (103) hide show
  1. package/adapters/index.d.ts +1 -1
  2. package/adapters/notification.adapter.d.ts +2 -2
  3. package/config/index.d.ts +3 -3
  4. package/controllers/index.d.ts +1 -1
  5. package/controllers/notification.controller.d.ts +4 -4
  6. package/docs/index.d.ts +1 -1
  7. package/docs/notification-swagger.config.d.ts +2 -2
  8. package/dtos/index.d.ts +1 -1
  9. package/entities/index.d.ts +5 -5
  10. package/entities/notification-with-company.entity.d.ts +1 -1
  11. package/fesm/244.js +816 -0
  12. package/fesm/446.js +939 -0
  13. package/fesm/adapters/index.js +79 -1
  14. package/fesm/config/index.js +84 -3
  15. package/fesm/controllers/index.js +13 -1
  16. package/fesm/docs/index.js +112 -1
  17. package/fesm/dtos/index.js +311 -1
  18. package/fesm/entities/index.js +211 -8
  19. package/fesm/gateways/index.js +286 -1
  20. package/fesm/index.js +467 -10
  21. package/fesm/interfaces/index.js +16 -2
  22. package/fesm/modules/index.js +269 -1
  23. package/fesm/runtime.js +85 -0
  24. package/fesm/services/index.js +357 -4
  25. package/gateways/index.d.ts +1 -1
  26. package/gateways/notification.gateway.d.ts +2 -2
  27. package/index.d.ts +10 -10
  28. package/interfaces/index.d.ts +2 -2
  29. package/interfaces/notification-module.interface.d.ts +3 -3
  30. package/interfaces/notification.interface.d.ts +1 -1
  31. package/modules/index.d.ts +1 -1
  32. package/modules/notification.module.d.ts +2 -2
  33. package/package.json +33 -44
  34. package/services/index.d.ts +4 -4
  35. package/services/notification-config.service.d.ts +3 -3
  36. package/services/notification-datasource.provider.d.ts +3 -3
  37. package/services/notification-helper.service.d.ts +5 -5
  38. package/services/notification.service.d.ts +8 -8
  39. package/cjs/adapters/index.js +0 -18
  40. package/cjs/adapters/notification.adapter.js +0 -62
  41. package/cjs/adapters/notification.adapter.spec.js +0 -73
  42. package/cjs/config/event-actions.js +0 -33
  43. package/cjs/config/index.js +0 -20
  44. package/cjs/config/message-keys.js +0 -19
  45. package/cjs/config/notification.constants.js +0 -11
  46. package/cjs/controllers/index.js +0 -18
  47. package/cjs/controllers/notification.controller.js +0 -299
  48. package/cjs/controllers/notification.controller.spec.js +0 -214
  49. package/cjs/docs/index.js +0 -18
  50. package/cjs/docs/notification-swagger.config.js +0 -97
  51. package/cjs/docs/notification-swagger.config.spec.js +0 -68
  52. package/cjs/dtos/index.js +0 -18
  53. package/cjs/dtos/notification.dto.js +0 -295
  54. package/cjs/entities/index.js +0 -48
  55. package/cjs/entities/index.spec.js +0 -13
  56. package/cjs/entities/notification-with-company.entity.js +0 -57
  57. package/cjs/entities/notification.entity.js +0 -112
  58. package/cjs/gateways/index.js +0 -18
  59. package/cjs/gateways/notification.gateway.js +0 -172
  60. package/cjs/gateways/notification.gateway.spec.js +0 -359
  61. package/cjs/index.js +0 -28
  62. package/cjs/interfaces/index.js +0 -19
  63. package/cjs/interfaces/notification-module.interface.js +0 -4
  64. package/cjs/interfaces/notification.interface.js +0 -4
  65. package/cjs/modules/index.js +0 -18
  66. package/cjs/modules/notification.module.js +0 -139
  67. package/cjs/modules/notification.module.spec.js +0 -152
  68. package/cjs/services/index.js +0 -21
  69. package/cjs/services/notification-config.service.js +0 -69
  70. package/cjs/services/notification-config.service.spec.js +0 -113
  71. package/cjs/services/notification-datasource.provider.js +0 -133
  72. package/cjs/services/notification-datasource.provider.spec.js +0 -136
  73. package/cjs/services/notification-helper.service.js +0 -197
  74. package/cjs/services/notification-helper.service.spec.js +0 -392
  75. package/cjs/services/notification.service.js +0 -281
  76. package/cjs/services/notification.service.spec.js +0 -560
  77. package/fesm/adapters/notification.adapter.js +0 -52
  78. package/fesm/adapters/notification.adapter.spec.js +0 -69
  79. package/fesm/config/event-actions.js +0 -12
  80. package/fesm/config/message-keys.js +0 -9
  81. package/fesm/config/notification.constants.js +0 -1
  82. package/fesm/controllers/notification.controller.js +0 -289
  83. package/fesm/controllers/notification.controller.spec.js +0 -210
  84. package/fesm/docs/notification-swagger.config.js +0 -87
  85. package/fesm/docs/notification-swagger.config.spec.js +0 -64
  86. package/fesm/dtos/notification.dto.js +0 -262
  87. package/fesm/entities/index.spec.js +0 -9
  88. package/fesm/entities/notification-with-company.entity.js +0 -47
  89. package/fesm/entities/notification.entity.js +0 -102
  90. package/fesm/gateways/notification.gateway.js +0 -162
  91. package/fesm/gateways/notification.gateway.spec.js +0 -355
  92. package/fesm/interfaces/notification-module.interface.js +0 -1
  93. package/fesm/interfaces/notification.interface.js +0 -1
  94. package/fesm/modules/notification.module.js +0 -129
  95. package/fesm/modules/notification.module.spec.js +0 -148
  96. package/fesm/services/notification-config.service.js +0 -59
  97. package/fesm/services/notification-config.service.spec.js +0 -109
  98. package/fesm/services/notification-datasource.provider.js +0 -82
  99. package/fesm/services/notification-datasource.provider.spec.js +0 -132
  100. package/fesm/services/notification-helper.service.js +0 -187
  101. package/fesm/services/notification-helper.service.spec.js +0 -388
  102. package/fesm/services/notification.service.js +0 -271
  103. package/fesm/services/notification.service.spec.js +0 -556
@@ -1 +1 @@
1
- export * from './notification.adapter';
1
+ export * from './notification.adapter.js';
@@ -1,5 +1,5 @@
1
- import { INotificationAdapter, INotificationBulkSendOptions, INotificationSendOptions } from '@flusys/nestjs-shared';
2
- import { NotificationHelperService } from '../services/notification-helper.service';
1
+ import { type INotificationAdapter, type INotificationBulkSendOptions, type INotificationSendOptions } from '@flusys/nestjs-shared';
2
+ import { NotificationHelperService } from '../services/notification-helper.service.js';
3
3
  export declare class NotificationAdapter implements INotificationAdapter {
4
4
  private readonly notificationHelper;
5
5
  constructor(notificationHelper: NotificationHelperService);
package/config/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './event-actions';
2
- export * from './message-keys';
3
- export * from './notification.constants';
1
+ export * from './event-actions.js';
2
+ export * from './message-keys.js';
3
+ export * from './notification.constants.js';
@@ -1 +1 @@
1
- export * from './notification.controller';
1
+ export * from './notification.controller.js';
@@ -1,8 +1,8 @@
1
1
  import { BulkResponseDto, MessageResponseDto, SingleResponseDto } from '@flusys/nestjs-shared/dtos';
2
- import { ILoggedUserInfo } from '@flusys/nestjs-shared/interfaces';
3
- import { CreateNotificationDto, MarkReadDto, NotificationResponseDto, SendBulkNotificationDto, SendNotificationDto, UnreadCountResponseDto, UpdateNotificationDto } from '../dtos';
4
- import { NotificationHelperService } from '../services/notification-helper.service';
5
- import { NotificationService } from '../services/notification.service';
2
+ import { type ILoggedUserInfo } from '@flusys/nestjs-shared/interfaces';
3
+ import { CreateNotificationDto, MarkReadDto, NotificationResponseDto, SendBulkNotificationDto, SendNotificationDto, UnreadCountResponseDto, UpdateNotificationDto } from '../dtos/index.js';
4
+ import { NotificationHelperService } from '../services/notification-helper.service.js';
5
+ import { NotificationService } from '../services/notification.service.js';
6
6
  declare const NotificationController_base: abstract new (service: NotificationService) => {
7
7
  readonly enabledEndpoints: import("@flusys/nestjs-shared").ApiEndpoint[] | "all";
8
8
  service: NotificationService;
package/docs/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './notification-swagger.config';
1
+ export * from './notification-swagger.config.js';
@@ -1,3 +1,3 @@
1
- import { IBootstrapAppConfig } from '@flusys/nestjs-core';
2
- import { IModuleSwaggerOptions } from '@flusys/nestjs-core/docs';
1
+ import { type IBootstrapAppConfig } from '@flusys/nestjs-core';
2
+ import { type IModuleSwaggerOptions } from '@flusys/nestjs-core/docs';
3
3
  export declare function notificationSwaggerConfig(bootstrapConfig?: IBootstrapAppConfig): IModuleSwaggerOptions;
package/dtos/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './notification.dto';
1
+ export * from './notification.dto.js';
@@ -1,8 +1,8 @@
1
- export * from './notification.entity';
2
- export * from './notification-with-company.entity';
3
- import { Notification } from './notification.entity';
4
- import { NotificationWithCompany } from './notification-with-company.entity';
1
+ export * from './notification.entity.js';
2
+ export * from './notification-with-company.entity.js';
3
+ import { Notification } from './notification.entity.js';
4
+ import { NotificationWithCompany } from './notification-with-company.entity.js';
5
5
  export declare const NotificationCoreEntities: (typeof Notification)[];
6
6
  export declare const NotificationCompanyEntities: (typeof NotificationWithCompany)[];
7
7
  export declare function getNotificationEntitiesByConfig(enableCompanyFeature: boolean): any[];
8
- export { Notification as NotificationBase } from './notification.entity';
8
+ export { Notification as NotificationBase } from './notification.entity.js';
@@ -1,4 +1,4 @@
1
- import { Notification } from './notification.entity';
1
+ import { Notification } from './notification.entity.js';
2
2
  export declare class NotificationWithCompany extends Notification {
3
3
  companyId: string | null;
4
4
  }