@flusys/nestjs-notification 7.0.2 → 8.0.0-beta.1

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
package/fesm/index.js CHANGED
@@ -1,20 +1,477 @@
1
+ import { NOTIFICATION_ADAPTER } from "@flusys/nestjs-shared/interfaces";
2
+ export const __rspack_esm_id = 410;
3
+ export const __rspack_esm_ids = [410];
4
+ export const __webpack_modules__ = {
5
+ 295(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
6
+
7
+ // EXPORTS
8
+ __webpack_require__.d(__webpack_exports__, {
9
+ b: () => (/* reexport */ NotificationAdapter)
10
+ });
11
+
12
+ // EXTERNAL MODULE: external "@nestjs/common"
13
+ var common_ = __webpack_require__(157);
14
+ // EXTERNAL MODULE: ./projects/nestjs-notification/src/services/notification-helper.service.ts
15
+ var notification_helper_service = __webpack_require__(487);
16
+ ;// CONCATENATED MODULE: ./projects/nestjs-notification/src/adapters/notification.adapter.ts
17
+ function _ts_decorate(decorators, target, key, desc) {
18
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
20
+ r = Reflect.decorate(decorators, target, key, desc);
21
+ } else {
22
+ for(var i = decorators.length - 1; i >= 0; i--){
23
+ if (d = decorators[i]) {
24
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
25
+ }
26
+ }
27
+ }
28
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
29
+ }
30
+ function _ts_metadata(metadataKey, metadataValue) {
31
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
32
+ return Reflect.metadata(metadataKey, metadataValue);
33
+ }
34
+ }
35
+ function _ts_param(paramIndex, decorator) {
36
+ return function(target, key) {
37
+ decorator(target, key, paramIndex);
38
+ };
39
+ }
40
+
41
+
42
+ class NotificationAdapter {
43
+ notificationHelper;
44
+ constructor(notificationHelper){
45
+ this.notificationHelper = notificationHelper;
46
+ }
47
+ async send(options) {
48
+ await this.notificationHelper.send(options);
49
+ }
50
+ async sendToMany(options) {
51
+ await this.notificationHelper.sendToMany(options);
52
+ }
53
+ isUserOnline(userId) {
54
+ return this.notificationHelper.isUserOnline(userId);
55
+ }
56
+ }
57
+ NotificationAdapter = _ts_decorate([
58
+ (0,common_.Injectable)(),
59
+ _ts_param(0, (0,common_.Inject)(notification_helper_service/* .NotificationHelperService */.T)),
60
+ _ts_metadata("design:type", Function),
61
+ _ts_metadata("design:paramtypes", [
62
+ typeof notification_helper_service/* .NotificationHelperService */.T === "undefined" ? Object : notification_helper_service/* .NotificationHelperService */.T
63
+ ])
64
+ ], NotificationAdapter);
65
+
66
+ ;// CONCATENATED MODULE: ./projects/nestjs-notification/src/adapters/index.ts
67
+
68
+
69
+
70
+ },
71
+ 222(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
72
+ /* import */ var _event_actions_js__rspack_import_0 = __webpack_require__(360);
73
+ /* import */ var _message_keys_js__rspack_import_1 = __webpack_require__(158);
74
+ /* import */ var _notification_constants_js__rspack_import_2 = __webpack_require__(608);
75
+
76
+
77
+
78
+
79
+ __webpack_require__.d(__webpack_exports__, {
80
+ BA: () => (/* reexport safe */ _event_actions_js__rspack_import_0.BA),
81
+ GJ: () => (/* reexport safe */ _notification_constants_js__rspack_import_2.G),
82
+ R: () => (/* reexport safe */ _event_actions_js__rspack_import_0.R),
83
+ Wx: () => (/* reexport safe */ _event_actions_js__rspack_import_0.Wx),
84
+ x7: () => (/* reexport safe */ _message_keys_js__rspack_import_1.x)
85
+ });
86
+
87
+
88
+ },
89
+ 674(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
90
+
91
+ // EXPORTS
92
+ __webpack_require__.d(__webpack_exports__, {
93
+ M: () => (/* reexport */ notificationSwaggerConfig)
94
+ });
95
+
96
+ ;// CONCATENATED MODULE: ./projects/nestjs-notification/src/docs/notification-swagger.config.ts
97
+ /** Schema properties to exclude when company feature is disabled */ const COMPANY_SCHEMA_EXCLUSIONS = [
98
+ {
99
+ schemaName: 'NotificationResponseDto',
100
+ properties: [
101
+ 'companyId'
102
+ ]
103
+ },
104
+ {
105
+ schemaName: 'CreateNotificationDto',
106
+ properties: [
107
+ 'companyId'
108
+ ]
109
+ },
110
+ {
111
+ schemaName: 'SendNotificationDto',
112
+ properties: [
113
+ 'companyId'
114
+ ]
115
+ },
116
+ {
117
+ schemaName: 'SendBulkNotificationDto',
118
+ properties: [
119
+ 'companyId'
120
+ ]
121
+ },
122
+ {
123
+ schemaName: 'UpdateNotificationDto',
124
+ properties: [
125
+ 'companyId'
126
+ ]
127
+ }
128
+ ];
129
+ function notificationSwaggerConfig(bootstrapConfig) {
130
+ const enableCompanyFeature = bootstrapConfig?.enableCompanyFeature ?? true;
131
+ const isMultiTenant = bootstrapConfig?.databaseMode === 'multi-tenant';
132
+ const multiTenantNote = isMultiTenant ? `\n> **Multi-Tenant Mode**: Include \`x-tenant-id\` header to target a specific tenant database.\n` : '';
133
+ return {
134
+ title: 'Notification API',
135
+ description: `
136
+ ## Notification API
137
+ ${multiTenantNote}
138
+ Real-time notification system with WebSocket support.
139
+
140
+ ### Features
141
+ - Push notifications to users
142
+ - Mark notifications as read
143
+ - Unread count tracking
144
+ - Real-time delivery via WebSocket
145
+ - Bulk notification sending
146
+
147
+ ### Endpoints
148
+
149
+ #### User Notifications
150
+ - \`POST /notification/get-all\` - Get user's notifications (paginated, sorted by newest)
151
+ - \`POST /notification/get/:id\` - Get single notification
152
+ - \`POST /notification/mark-read\` - Mark notification as read
153
+ - \`POST /notification/mark-all-read\` - Mark all notifications as read
154
+ - \`POST /notification/unread-count\` - Get unread notification count
155
+
156
+ #### Admin/System
157
+ - \`POST /notification/send\` - Send notification to a user
158
+ - \`POST /notification/send-bulk\` - Send notification to multiple users
159
+
160
+ ### WebSocket Events
161
+
162
+ Connect to WebSocket with JWT authentication:
163
+ \`\`\`
164
+ ws://localhost:2002/notification?token=<jwt>
165
+ \`\`\`
166
+
167
+ **Events:**
168
+ - \`notification:new\` - New notification received
169
+ - \`notification:read\` - Notification marked as read
170
+ - \`notification:read-all\` - All notifications marked as read
171
+
172
+ ### Notification Types
173
+ - \`info\` - General information
174
+ - \`success\` - Success message
175
+ - \`warning\` - Warning message
176
+ - \`error\` - Error message
177
+ `,
178
+ version: '1.0',
179
+ path: 'api/docs/notification',
180
+ bearerAuth: true,
181
+ excludeSchemaProperties: enableCompanyFeature ? undefined : COMPANY_SCHEMA_EXCLUSIONS
182
+ };
183
+ }
184
+
185
+ ;// CONCATENATED MODULE: ./projects/nestjs-notification/src/docs/index.ts
186
+
187
+
188
+
189
+ },
190
+ 263(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
191
+ /* import */ var _adapters_index_js__rspack_import_0 = __webpack_require__(295);
192
+ /* import */ var _config_index_js__rspack_import_1 = __webpack_require__(222);
193
+ /* import */ var _controllers_index_js__rspack_import_2 = __webpack_require__(101);
194
+ /* import */ var _docs_index_js__rspack_import_3 = __webpack_require__(674);
195
+ /* import */ var _dtos_index_js__rspack_import_4 = __webpack_require__(733);
196
+ /* import */ var _entities_index_js__rspack_import_5 = __webpack_require__(240);
197
+ /* import */ var _gateways_index_js__rspack_import_6 = __webpack_require__(31);
198
+ /* import */ var _modules_index_js__rspack_import_7 = __webpack_require__(540);
199
+ /* import */ var _services_index_js__rspack_import_8 = __webpack_require__(816);
1
200
  // Adapters
2
- export * from './adapters';
201
+
3
202
  // Config
4
- export * from './config';
203
+
5
204
  // Controllers
6
- export * from './controllers';
205
+
7
206
  // Docs
8
- export * from './docs';
207
+
9
208
  // DTOs
10
- export * from './dtos';
209
+
11
210
  // Entities
12
- export * from './entities';
211
+
13
212
  // Gateways
14
- export * from './gateways';
213
+
15
214
  // Interfaces
16
- export * from './interfaces';
215
+
17
216
  // Modules
18
- export * from './modules';
217
+
19
218
  // Services
20
- export * from './services';
219
+
220
+
221
+ __webpack_require__.d(__webpack_exports__, {
222
+ BA: () => (/* reexport safe */ _config_index_js__rspack_import_1.BA),
223
+ CF: () => (/* reexport safe */ _modules_index_js__rspack_import_7.C),
224
+ Eg: () => (/* reexport safe */ _entities_index_js__rspack_import_5.Notification),
225
+ GJ: () => (/* reexport safe */ _config_index_js__rspack_import_1.GJ),
226
+ HD: () => (/* reexport safe */ _dtos_index_js__rspack_import_4.HD),
227
+ JE: () => (/* reexport safe */ _services_index_js__rspack_import_8.JE),
228
+ M9: () => (/* reexport safe */ _docs_index_js__rspack_import_3.M),
229
+ MK: () => (/* reexport safe */ _services_index_js__rspack_import_8.MK),
230
+ Ms: () => (/* reexport safe */ _entities_index_js__rspack_import_5.Ms),
231
+ Oc: () => (/* reexport safe */ _dtos_index_js__rspack_import_4.Oc),
232
+ R: () => (/* reexport safe */ _config_index_js__rspack_import_1.R),
233
+ Tf: () => (/* reexport safe */ _services_index_js__rspack_import_8.Tf),
234
+ Wx: () => (/* reexport safe */ _config_index_js__rspack_import_1.Wx),
235
+ X0: () => (/* reexport safe */ _dtos_index_js__rspack_import_4.X0),
236
+ Zs: () => (/* reexport safe */ _dtos_index_js__rspack_import_4.Zs),
237
+ b1: () => (/* reexport safe */ _adapters_index_js__rspack_import_0.b),
238
+ bW: () => (/* reexport safe */ _entities_index_js__rspack_import_5.bW),
239
+ eB: () => (/* reexport safe */ _dtos_index_js__rspack_import_4.eB),
240
+ ev: () => (/* reexport safe */ _controllers_index_js__rspack_import_2.e),
241
+ gl: () => (/* reexport safe */ _gateways_index_js__rspack_import_6.g),
242
+ qC: () => (/* reexport safe */ _entities_index_js__rspack_import_5.qC),
243
+ rh: () => (/* reexport safe */ _entities_index_js__rspack_import_5.NotificationWithCompany),
244
+ s_: () => (/* reexport safe */ _entities_index_js__rspack_import_5.s_),
245
+ vM: () => (/* reexport safe */ _services_index_js__rspack_import_8.vM),
246
+ vi: () => (/* reexport safe */ _dtos_index_js__rspack_import_4.vi),
247
+ x7: () => (/* reexport safe */ _config_index_js__rspack_import_1.x7),
248
+ xo: () => (/* reexport safe */ _dtos_index_js__rspack_import_4.xo)
249
+ });
250
+
251
+
252
+ },
253
+ 540(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
254
+
255
+ // EXPORTS
256
+ __webpack_require__.d(__webpack_exports__, {
257
+ C: () => (/* reexport */ NotificationModule)
258
+ });
259
+
260
+ // EXTERNAL MODULE: external "@flusys/nestjs-shared/modules"
261
+ var modules_ = __webpack_require__(236);
262
+ ;// CONCATENATED MODULE: external "@flusys/nestjs-shared/interfaces"
263
+
264
+ // EXTERNAL MODULE: external "@nestjs/common"
265
+ var common_ = __webpack_require__(157);
266
+ // EXTERNAL MODULE: external "@nestjs/jwt"
267
+ var jwt_ = __webpack_require__(125);
268
+ // EXTERNAL MODULE: ./projects/nestjs-notification/src/config/notification.constants.ts
269
+ var notification_constants = __webpack_require__(608);
270
+ // EXTERNAL MODULE: ./projects/nestjs-notification/src/controllers/index.ts + 4 modules
271
+ var controllers = __webpack_require__(101);
272
+ // EXTERNAL MODULE: ./projects/nestjs-notification/src/adapters/index.ts + 1 modules
273
+ var adapters = __webpack_require__(295);
274
+ // EXTERNAL MODULE: ./projects/nestjs-notification/src/services/index.ts
275
+ var services = __webpack_require__(816);
276
+ // EXTERNAL MODULE: ./projects/nestjs-notification/src/gateways/index.ts + 4 modules
277
+ var gateways = __webpack_require__(31);
278
+ ;// CONCATENATED MODULE: ./projects/nestjs-notification/src/modules/notification.module.ts
279
+ function _ts_decorate(decorators, target, key, desc) {
280
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
281
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") {
282
+ r = Reflect.decorate(decorators, target, key, desc);
283
+ } else {
284
+ for(var i = decorators.length - 1; i >= 0; i--){
285
+ if (d = decorators[i]) {
286
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
287
+ }
288
+ }
289
+ }
290
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
291
+ }
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+ const CONTROLLERS = [
302
+ controllers/* .NotificationController */.e
303
+ ];
304
+ const EXPORTED_SERVICES = [
305
+ services/* .NotificationConfigService */.vM,
306
+ services/* .NotificationDataSourceProvider */.MK,
307
+ services/* .NotificationService */.JE,
308
+ services/* .NotificationHelperService */.Tf
309
+ ];
310
+ const ADAPTER_PROVIDER = {
311
+ provide: NOTIFICATION_ADAPTER,
312
+ useClass: adapters/* .NotificationAdapter */.b
313
+ };
314
+ class NotificationModule {
315
+ static forRoot(options) {
316
+ return {
317
+ module: NotificationModule,
318
+ global: options.global ?? false,
319
+ imports: [
320
+ modules_.CacheModule,
321
+ modules_.UtilsModule
322
+ ],
323
+ controllers: options.includeController !== false ? CONTROLLERS : [],
324
+ providers: [
325
+ ...this.buildProviders(options),
326
+ jwt_.JwtService,
327
+ gateways/* .NotificationGateway */.g,
328
+ adapters/* .NotificationAdapter */.b,
329
+ ADAPTER_PROVIDER
330
+ ],
331
+ exports: [
332
+ ...EXPORTED_SERVICES,
333
+ gateways/* .NotificationGateway */.g,
334
+ NOTIFICATION_ADAPTER
335
+ ]
336
+ };
337
+ }
338
+ static forRootAsync(options) {
339
+ return {
340
+ module: NotificationModule,
341
+ global: options.global ?? false,
342
+ imports: [
343
+ ...options.imports || [],
344
+ modules_.CacheModule,
345
+ modules_.UtilsModule
346
+ ],
347
+ controllers: options.includeController !== false ? CONTROLLERS : [],
348
+ providers: [
349
+ ...this.createAsyncProviders(options),
350
+ ...this.buildProviders(),
351
+ jwt_.JwtService,
352
+ gateways/* .NotificationGateway */.g,
353
+ adapters/* .NotificationAdapter */.b,
354
+ ADAPTER_PROVIDER
355
+ ],
356
+ exports: [
357
+ ...EXPORTED_SERVICES,
358
+ gateways/* .NotificationGateway */.g,
359
+ NOTIFICATION_ADAPTER
360
+ ]
361
+ };
362
+ }
363
+ static buildProviders(options) {
364
+ const providers = [
365
+ ...EXPORTED_SERVICES
366
+ ];
367
+ if (options) {
368
+ providers.unshift({
369
+ provide: notification_constants/* .NOTIFICATION_MODULE_OPTIONS */.G,
370
+ useValue: options
371
+ });
372
+ }
373
+ providers.push((0,modules_.createModuleEventsProvider)('notification', notification_constants/* .NOTIFICATION_MODULE_OPTIONS */.G));
374
+ return providers;
375
+ }
376
+ static createAsyncProviders(options) {
377
+ if (options.useFactory) {
378
+ return [
379
+ {
380
+ provide: notification_constants/* .NOTIFICATION_MODULE_OPTIONS */.G,
381
+ useFactory: async (...args)=>({
382
+ ...options,
383
+ config: await options.useFactory(...args)
384
+ }),
385
+ inject: options.inject || []
386
+ }
387
+ ];
388
+ }
389
+ const factoryClass = options.useClass || options.useExisting;
390
+ if (!factoryClass) return [];
391
+ const providers = [
392
+ {
393
+ provide: notification_constants/* .NOTIFICATION_MODULE_OPTIONS */.G,
394
+ useFactory: async (factory)=>({
395
+ ...options,
396
+ config: await factory.createNotificationOptions()
397
+ }),
398
+ inject: [
399
+ factoryClass
400
+ ]
401
+ }
402
+ ];
403
+ if (options.useClass) {
404
+ providers.push({
405
+ provide: options.useClass,
406
+ useClass: options.useClass
407
+ });
408
+ }
409
+ return providers;
410
+ }
411
+ }
412
+ NotificationModule = _ts_decorate([
413
+ (0,common_.Module)({})
414
+ ], NotificationModule);
415
+
416
+ ;// CONCATENATED MODULE: ./projects/nestjs-notification/src/modules/index.ts
417
+
418
+
419
+
420
+ },
421
+ 816(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
422
+ /* import */ var _notification_config_service_js__rspack_import_0 = __webpack_require__(53);
423
+ /* import */ var _notification_datasource_provider_js__rspack_import_1 = __webpack_require__(335);
424
+ /* import */ var _notification_service_js__rspack_import_2 = __webpack_require__(305);
425
+ /* import */ var _notification_helper_service_js__rspack_import_3 = __webpack_require__(487);
426
+
427
+
428
+
429
+
430
+
431
+ __webpack_require__.d(__webpack_exports__, {
432
+ JE: () => (/* reexport safe */ _notification_service_js__rspack_import_2.J),
433
+ MK: () => (/* reexport safe */ _notification_datasource_provider_js__rspack_import_1.M),
434
+ Tf: () => (/* reexport safe */ _notification_helper_service_js__rspack_import_3.T),
435
+ vM: () => (/* reexport safe */ _notification_config_service_js__rspack_import_0.v)
436
+ });
437
+
438
+
439
+ },
440
+
441
+ };
442
+ import { __webpack_require__ } from './runtime.js';
443
+ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
444
+ import * as __rspack_chunk_1 from './244.js';
445
+ __webpack_require__.C(__rspack_chunk_1);
446
+ import * as __rspack_chunk_2 from './446.js';
447
+ __webpack_require__.C(__rspack_chunk_2);
448
+ import * as __rspack_chunk_3 from './index.js';
449
+ __webpack_require__.C(__rspack_chunk_3);
450
+ var __webpack_exports__ = __webpack_exec__(263);var __webpack_exports__CreateNotificationDto = __webpack_exports__.X0;
451
+ var __webpack_exports__MarkReadDto = __webpack_exports__.xo;
452
+ var __webpack_exports__NOTIFICATION_EVENT_ACTIONS = __webpack_exports__.R;
453
+ var __webpack_exports__NOTIFICATION_EVENT_ENTITIES = __webpack_exports__.BA;
454
+ var __webpack_exports__NOTIFICATION_EVENT_MODULE = __webpack_exports__.Wx;
455
+ var __webpack_exports__NOTIFICATION_MESSAGES = __webpack_exports__.x7;
456
+ var __webpack_exports__NOTIFICATION_MODULE_OPTIONS = __webpack_exports__.GJ;
457
+ var __webpack_exports__Notification = __webpack_exports__.Eg;
458
+ var __webpack_exports__NotificationAdapter = __webpack_exports__.b1;
459
+ var __webpack_exports__NotificationBase = __webpack_exports__.bW;
460
+ var __webpack_exports__NotificationCompanyEntities = __webpack_exports__.s_;
461
+ var __webpack_exports__NotificationConfigService = __webpack_exports__.vM;
462
+ var __webpack_exports__NotificationController = __webpack_exports__.ev;
463
+ var __webpack_exports__NotificationCoreEntities = __webpack_exports__.Ms;
464
+ var __webpack_exports__NotificationDataSourceProvider = __webpack_exports__.MK;
465
+ var __webpack_exports__NotificationGateway = __webpack_exports__.gl;
466
+ var __webpack_exports__NotificationHelperService = __webpack_exports__.Tf;
467
+ var __webpack_exports__NotificationModule = __webpack_exports__.CF;
468
+ var __webpack_exports__NotificationResponseDto = __webpack_exports__.eB;
469
+ var __webpack_exports__NotificationService = __webpack_exports__.JE;
470
+ var __webpack_exports__NotificationWithCompany = __webpack_exports__.rh;
471
+ var __webpack_exports__SendBulkNotificationDto = __webpack_exports__.HD;
472
+ var __webpack_exports__SendNotificationDto = __webpack_exports__.Zs;
473
+ var __webpack_exports__UnreadCountResponseDto = __webpack_exports__.vi;
474
+ var __webpack_exports__UpdateNotificationDto = __webpack_exports__.Oc;
475
+ var __webpack_exports__getNotificationEntitiesByConfig = __webpack_exports__.qC;
476
+ var __webpack_exports__notificationSwaggerConfig = __webpack_exports__.M9;
477
+ export { __webpack_exports__CreateNotificationDto as CreateNotificationDto, __webpack_exports__MarkReadDto as MarkReadDto, __webpack_exports__NOTIFICATION_EVENT_ACTIONS as NOTIFICATION_EVENT_ACTIONS, __webpack_exports__NOTIFICATION_EVENT_ENTITIES as NOTIFICATION_EVENT_ENTITIES, __webpack_exports__NOTIFICATION_EVENT_MODULE as NOTIFICATION_EVENT_MODULE, __webpack_exports__NOTIFICATION_MESSAGES as NOTIFICATION_MESSAGES, __webpack_exports__NOTIFICATION_MODULE_OPTIONS as NOTIFICATION_MODULE_OPTIONS, __webpack_exports__Notification as Notification, __webpack_exports__NotificationAdapter as NotificationAdapter, __webpack_exports__NotificationBase as NotificationBase, __webpack_exports__NotificationCompanyEntities as NotificationCompanyEntities, __webpack_exports__NotificationConfigService as NotificationConfigService, __webpack_exports__NotificationController as NotificationController, __webpack_exports__NotificationCoreEntities as NotificationCoreEntities, __webpack_exports__NotificationDataSourceProvider as NotificationDataSourceProvider, __webpack_exports__NotificationGateway as NotificationGateway, __webpack_exports__NotificationHelperService as NotificationHelperService, __webpack_exports__NotificationModule as NotificationModule, __webpack_exports__NotificationResponseDto as NotificationResponseDto, __webpack_exports__NotificationService as NotificationService, __webpack_exports__NotificationWithCompany as NotificationWithCompany, __webpack_exports__SendBulkNotificationDto as SendBulkNotificationDto, __webpack_exports__SendNotificationDto as SendNotificationDto, __webpack_exports__UnreadCountResponseDto as UnreadCountResponseDto, __webpack_exports__UpdateNotificationDto as UpdateNotificationDto, __webpack_exports__getNotificationEntitiesByConfig as getNotificationEntitiesByConfig, __webpack_exports__notificationSwaggerConfig as notificationSwaggerConfig };
@@ -1,2 +1,16 @@
1
- export * from './notification.interface';
2
- export * from './notification-module.interface';
1
+ export const __rspack_esm_id = 471;
2
+ export const __rspack_esm_ids = [471];
3
+ export const __webpack_modules__ = {
4
+ 280() {
5
+
6
+
7
+
8
+
9
+ },
10
+
11
+ };
12
+ import { __webpack_require__ } from '../runtime.js';
13
+ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
14
+ import * as __rspack_chunk_1 from './index.js';
15
+ __webpack_require__.C(__rspack_chunk_1);
16
+ var __webpack_exports__ = __webpack_exec__(280);