@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.
- package/adapters/index.d.ts +1 -1
- package/adapters/notification.adapter.d.ts +2 -2
- package/config/index.d.ts +3 -3
- package/controllers/index.d.ts +1 -1
- package/controllers/notification.controller.d.ts +4 -4
- package/docs/index.d.ts +1 -1
- package/docs/notification-swagger.config.d.ts +2 -2
- package/dtos/index.d.ts +1 -1
- package/entities/index.d.ts +5 -5
- package/entities/notification-with-company.entity.d.ts +1 -1
- package/fesm/244.js +816 -0
- package/fesm/446.js +939 -0
- package/fesm/adapters/index.js +79 -1
- package/fesm/config/index.js +84 -3
- package/fesm/controllers/index.js +13 -1
- package/fesm/docs/index.js +112 -1
- package/fesm/dtos/index.js +311 -1
- package/fesm/entities/index.js +211 -8
- package/fesm/gateways/index.js +286 -1
- package/fesm/index.js +467 -10
- package/fesm/interfaces/index.js +16 -2
- package/fesm/modules/index.js +269 -1
- package/fesm/runtime.js +85 -0
- package/fesm/services/index.js +357 -4
- package/gateways/index.d.ts +1 -1
- package/gateways/notification.gateway.d.ts +2 -2
- package/index.d.ts +10 -10
- package/interfaces/index.d.ts +2 -2
- package/interfaces/notification-module.interface.d.ts +3 -3
- package/interfaces/notification.interface.d.ts +1 -1
- package/modules/index.d.ts +1 -1
- package/modules/notification.module.d.ts +2 -2
- package/package.json +33 -44
- package/services/index.d.ts +4 -4
- package/services/notification-config.service.d.ts +3 -3
- package/services/notification-datasource.provider.d.ts +3 -3
- package/services/notification-helper.service.d.ts +5 -5
- package/services/notification.service.d.ts +8 -8
- package/cjs/adapters/index.js +0 -18
- package/cjs/adapters/notification.adapter.js +0 -62
- package/cjs/adapters/notification.adapter.spec.js +0 -73
- package/cjs/config/event-actions.js +0 -33
- package/cjs/config/index.js +0 -20
- package/cjs/config/message-keys.js +0 -19
- package/cjs/config/notification.constants.js +0 -11
- package/cjs/controllers/index.js +0 -18
- package/cjs/controllers/notification.controller.js +0 -299
- package/cjs/controllers/notification.controller.spec.js +0 -214
- package/cjs/docs/index.js +0 -18
- package/cjs/docs/notification-swagger.config.js +0 -97
- package/cjs/docs/notification-swagger.config.spec.js +0 -68
- package/cjs/dtos/index.js +0 -18
- package/cjs/dtos/notification.dto.js +0 -295
- package/cjs/entities/index.js +0 -48
- package/cjs/entities/index.spec.js +0 -13
- package/cjs/entities/notification-with-company.entity.js +0 -57
- package/cjs/entities/notification.entity.js +0 -112
- package/cjs/gateways/index.js +0 -18
- package/cjs/gateways/notification.gateway.js +0 -172
- package/cjs/gateways/notification.gateway.spec.js +0 -359
- package/cjs/index.js +0 -28
- package/cjs/interfaces/index.js +0 -19
- package/cjs/interfaces/notification-module.interface.js +0 -4
- package/cjs/interfaces/notification.interface.js +0 -4
- package/cjs/modules/index.js +0 -18
- package/cjs/modules/notification.module.js +0 -139
- package/cjs/modules/notification.module.spec.js +0 -152
- package/cjs/services/index.js +0 -21
- package/cjs/services/notification-config.service.js +0 -69
- package/cjs/services/notification-config.service.spec.js +0 -113
- package/cjs/services/notification-datasource.provider.js +0 -133
- package/cjs/services/notification-datasource.provider.spec.js +0 -136
- package/cjs/services/notification-helper.service.js +0 -197
- package/cjs/services/notification-helper.service.spec.js +0 -392
- package/cjs/services/notification.service.js +0 -281
- package/cjs/services/notification.service.spec.js +0 -560
- package/fesm/adapters/notification.adapter.js +0 -52
- package/fesm/adapters/notification.adapter.spec.js +0 -69
- package/fesm/config/event-actions.js +0 -12
- package/fesm/config/message-keys.js +0 -9
- package/fesm/config/notification.constants.js +0 -1
- package/fesm/controllers/notification.controller.js +0 -289
- package/fesm/controllers/notification.controller.spec.js +0 -210
- package/fesm/docs/notification-swagger.config.js +0 -87
- package/fesm/docs/notification-swagger.config.spec.js +0 -64
- package/fesm/dtos/notification.dto.js +0 -262
- package/fesm/entities/index.spec.js +0 -9
- package/fesm/entities/notification-with-company.entity.js +0 -47
- package/fesm/entities/notification.entity.js +0 -102
- package/fesm/gateways/notification.gateway.js +0 -162
- package/fesm/gateways/notification.gateway.spec.js +0 -355
- package/fesm/interfaces/notification-module.interface.js +0 -1
- package/fesm/interfaces/notification.interface.js +0 -1
- package/fesm/modules/notification.module.js +0 -129
- package/fesm/modules/notification.module.spec.js +0 -148
- package/fesm/services/notification-config.service.js +0 -59
- package/fesm/services/notification-config.service.spec.js +0 -109
- package/fesm/services/notification-datasource.provider.js +0 -82
- package/fesm/services/notification-datasource.provider.spec.js +0 -132
- package/fesm/services/notification-helper.service.js +0 -187
- package/fesm/services/notification-helper.service.spec.js +0 -388
- package/fesm/services/notification.service.js +0 -271
- package/fesm/services/notification.service.spec.js +0 -556
package/adapters/index.d.ts
CHANGED
|
@@ -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';
|
package/controllers/index.d.ts
CHANGED
|
@@ -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';
|
package/entities/index.d.ts
CHANGED
|
@@ -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';
|