@colveor/core 1.4.1 → 1.5.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.
- package/CHANGELOG.md +18 -0
- package/README.md +3 -2
- package/dist/common/guards/index.d.ts +2 -0
- package/dist/common/guards/index.d.ts.map +1 -1
- package/dist/common/guards/index.js +2 -0
- package/dist/common/guards/index.js.map +1 -1
- package/dist/common/guards/ratings-ip-rate-limit.guard.d.ts +16 -0
- package/dist/common/guards/ratings-ip-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/ratings-ip-rate-limit.guard.js +95 -0
- package/dist/common/guards/ratings-ip-rate-limit.guard.js.map +1 -0
- package/dist/common/guards/ratings-user-rate-limit.guard.d.ts +16 -0
- package/dist/common/guards/ratings-user-rate-limit.guard.d.ts.map +1 -0
- package/dist/common/guards/ratings-user-rate-limit.guard.js +86 -0
- package/dist/common/guards/ratings-user-rate-limit.guard.js.map +1 -0
- package/dist/config/firebase.module.d.ts +6 -7
- package/dist/config/firebase.module.d.ts.map +1 -1
- package/dist/config/firebase.module.js +7 -20
- package/dist/config/firebase.module.js.map +1 -1
- package/dist/core.module.d.ts +1 -1
- package/dist/core.module.d.ts.map +1 -1
- package/dist/core.module.js +2 -0
- package/dist/core.module.js.map +1 -1
- package/dist/database/migrations/1784284557962-user-ratings.d.ts +7 -0
- package/dist/database/migrations/1784284557962-user-ratings.d.ts.map +1 -0
- package/dist/database/migrations/1784284557962-user-ratings.js +71 -0
- package/dist/database/migrations/1784284557962-user-ratings.js.map +1 -0
- package/dist/database/migrations/1784284557965-device-token-fcm-unique.d.ts +7 -0
- package/dist/database/migrations/1784284557965-device-token-fcm-unique.d.ts.map +1 -0
- package/dist/database/migrations/1784284557965-device-token-fcm-unique.js +42 -0
- package/dist/database/migrations/1784284557965-device-token-fcm-unique.js.map +1 -0
- package/dist/database/seeds/roles.seed.d.ts.map +1 -1
- package/dist/database/seeds/roles.seed.js +2 -0
- package/dist/database/seeds/roles.seed.js.map +1 -1
- package/dist/database/seeds/settings.seed.d.ts +1 -0
- package/dist/database/seeds/settings.seed.d.ts.map +1 -1
- package/dist/database/seeds/settings.seed.js +174 -11
- package/dist/database/seeds/settings.seed.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/modules/admin/controllers/admin.controller.js +3 -2
- package/dist/modules/admin/controllers/admin.controller.js.map +1 -1
- package/dist/modules/audit/constants/audit-actions.d.ts +3 -0
- package/dist/modules/audit/constants/audit-actions.d.ts.map +1 -1
- package/dist/modules/audit/constants/audit-actions.js +4 -0
- package/dist/modules/audit/constants/audit-actions.js.map +1 -1
- package/dist/modules/auth/services/account.service.d.ts.map +1 -1
- package/dist/modules/auth/services/account.service.js +0 -1
- package/dist/modules/auth/services/account.service.js.map +1 -1
- package/dist/modules/delivery/notification-delivery.service.d.ts +1 -0
- package/dist/modules/delivery/notification-delivery.service.d.ts.map +1 -1
- package/dist/modules/delivery/notification-delivery.service.js +3 -0
- package/dist/modules/delivery/notification-delivery.service.js.map +1 -1
- package/dist/modules/delivery/processors/delivery-job.runner.d.ts.map +1 -1
- package/dist/modules/delivery/processors/delivery-job.runner.js +3 -1
- package/dist/modules/delivery/processors/delivery-job.runner.js.map +1 -1
- package/dist/modules/delivery/types/payload-snapshot.d.ts +1 -0
- package/dist/modules/delivery/types/payload-snapshot.d.ts.map +1 -1
- package/dist/modules/delivery/utils/payload-snapshot.util.d.ts.map +1 -1
- package/dist/modules/delivery/utils/payload-snapshot.util.js +3 -1
- package/dist/modules/delivery/utils/payload-snapshot.util.js.map +1 -1
- package/dist/modules/jobs/queues/jobs.queue.d.ts +2 -1
- package/dist/modules/jobs/queues/jobs.queue.d.ts.map +1 -1
- package/dist/modules/jobs/queues/jobs.queue.js +5 -3
- package/dist/modules/jobs/queues/jobs.queue.js.map +1 -1
- package/dist/modules/jobs/sms/providers/sendchamp.provider.d.ts +12 -0
- package/dist/modules/jobs/sms/providers/sendchamp.provider.d.ts.map +1 -0
- package/dist/modules/jobs/sms/providers/sendchamp.provider.js +88 -0
- package/dist/modules/jobs/sms/providers/sendchamp.provider.js.map +1 -0
- package/dist/modules/jobs/sms/sms-provider.interface.d.ts +1 -1
- package/dist/modules/jobs/sms/sms-provider.interface.js +1 -1
- package/dist/modules/jobs/sms/sms-proxy.service.d.ts +3 -1
- package/dist/modules/jobs/sms/sms-proxy.service.d.ts.map +1 -1
- package/dist/modules/jobs/sms/sms-proxy.service.js +6 -2
- package/dist/modules/jobs/sms/sms-proxy.service.js.map +1 -1
- package/dist/modules/jobs/sms/sms.module.d.ts.map +1 -1
- package/dist/modules/jobs/sms/sms.module.js +2 -0
- package/dist/modules/jobs/sms/sms.module.js.map +1 -1
- package/dist/modules/notifications/controllers/notifications.controller.d.ts.map +1 -1
- package/dist/modules/notifications/controllers/notifications.controller.js +5 -2
- package/dist/modules/notifications/controllers/notifications.controller.js.map +1 -1
- package/dist/modules/notifications/dto/device.dto.d.ts.map +1 -1
- package/dist/modules/notifications/dto/device.dto.js +3 -0
- package/dist/modules/notifications/dto/device.dto.js.map +1 -1
- package/dist/modules/notifications/dto/fcm.dto.d.ts +2 -2
- package/dist/modules/notifications/dto/fcm.dto.d.ts.map +1 -1
- package/dist/modules/notifications/dto/fcm.dto.js +36 -0
- package/dist/modules/notifications/dto/fcm.dto.js.map +1 -1
- package/dist/modules/notifications/dto/index.d.ts +0 -1
- package/dist/modules/notifications/dto/index.d.ts.map +1 -1
- package/dist/modules/notifications/dto/index.js +0 -1
- package/dist/modules/notifications/dto/index.js.map +1 -1
- package/dist/modules/notifications/entities/device-token.entity.d.ts.map +1 -1
- package/dist/modules/notifications/entities/device-token.entity.js +2 -3
- package/dist/modules/notifications/entities/device-token.entity.js.map +1 -1
- package/dist/modules/notifications/firebase.module.d.ts +5 -2
- package/dist/modules/notifications/firebase.module.d.ts.map +1 -1
- package/dist/modules/notifications/firebase.module.js +9 -4
- package/dist/modules/notifications/firebase.module.js.map +1 -1
- package/dist/modules/notifications/services/fcm.errors.d.ts +9 -0
- package/dist/modules/notifications/services/fcm.errors.d.ts.map +1 -0
- package/dist/modules/notifications/services/fcm.errors.js +20 -0
- package/dist/modules/notifications/services/fcm.errors.js.map +1 -0
- package/dist/modules/notifications/services/fcm.service.d.ts +12 -3
- package/dist/modules/notifications/services/fcm.service.d.ts.map +1 -1
- package/dist/modules/notifications/services/fcm.service.js +94 -51
- package/dist/modules/notifications/services/fcm.service.js.map +1 -1
- package/dist/modules/notifications/services/index.d.ts +1 -0
- package/dist/modules/notifications/services/index.d.ts.map +1 -1
- package/dist/modules/notifications/services/index.js +1 -0
- package/dist/modules/notifications/services/index.js.map +1 -1
- package/dist/modules/notifications/services/notifications.service.d.ts.map +1 -1
- package/dist/modules/notifications/services/notifications.service.js +1 -0
- package/dist/modules/notifications/services/notifications.service.js.map +1 -1
- package/dist/modules/ratings/controllers/ratings.controller.d.ts +17 -0
- package/dist/modules/ratings/controllers/ratings.controller.d.ts.map +1 -0
- package/dist/modules/ratings/controllers/ratings.controller.js +187 -0
- package/dist/modules/ratings/controllers/ratings.controller.js.map +1 -0
- package/dist/modules/ratings/dto/rating.dto.d.ts +39 -0
- package/dist/modules/ratings/dto/rating.dto.d.ts.map +1 -0
- package/dist/modules/ratings/dto/rating.dto.js +186 -0
- package/dist/modules/ratings/dto/rating.dto.js.map +1 -0
- package/dist/modules/ratings/entities/user-rating-stats.entity.d.ts +14 -0
- package/dist/modules/ratings/entities/user-rating-stats.entity.d.ts.map +1 -0
- package/dist/modules/ratings/entities/user-rating-stats.entity.js +72 -0
- package/dist/modules/ratings/entities/user-rating-stats.entity.js.map +1 -0
- package/dist/modules/ratings/entities/user-rating.entity.d.ts +11 -0
- package/dist/modules/ratings/entities/user-rating.entity.d.ts.map +1 -0
- package/dist/modules/ratings/entities/user-rating.entity.js +56 -0
- package/dist/modules/ratings/entities/user-rating.entity.js.map +1 -0
- package/dist/modules/ratings/events/rating.events.d.ts +17 -0
- package/dist/modules/ratings/events/rating.events.d.ts.map +1 -0
- package/dist/modules/ratings/events/rating.events.js +13 -0
- package/dist/modules/ratings/events/rating.events.js.map +1 -0
- package/dist/modules/ratings/index.d.ts +10 -0
- package/dist/modules/ratings/index.d.ts.map +1 -0
- package/dist/modules/ratings/index.js +29 -0
- package/dist/modules/ratings/index.js.map +1 -0
- package/dist/modules/ratings/listeners/ratings-account-deleted.listener.d.ts +10 -0
- package/dist/modules/ratings/listeners/ratings-account-deleted.listener.d.ts.map +1 -0
- package/dist/modules/ratings/listeners/ratings-account-deleted.listener.js +50 -0
- package/dist/modules/ratings/listeners/ratings-account-deleted.listener.js.map +1 -0
- package/dist/modules/ratings/ratings.manifest.d.ts +8 -0
- package/dist/modules/ratings/ratings.manifest.d.ts.map +1 -0
- package/dist/modules/ratings/ratings.manifest.js +31 -0
- package/dist/modules/ratings/ratings.manifest.js.map +1 -0
- package/dist/modules/ratings/ratings.module.d.ts +3 -0
- package/dist/modules/ratings/ratings.module.d.ts.map +1 -0
- package/dist/modules/ratings/ratings.module.js +39 -0
- package/dist/modules/ratings/ratings.module.js.map +1 -0
- package/dist/modules/ratings/services/ratings-retention.service.d.ts +17 -0
- package/dist/modules/ratings/services/ratings-retention.service.d.ts.map +1 -0
- package/dist/modules/ratings/services/ratings-retention.service.js +96 -0
- package/dist/modules/ratings/services/ratings-retention.service.js.map +1 -0
- package/dist/modules/ratings/services/ratings.service.d.ts +53 -0
- package/dist/modules/ratings/services/ratings.service.d.ts.map +1 -0
- package/dist/modules/ratings/services/ratings.service.js +546 -0
- package/dist/modules/ratings/services/ratings.service.js.map +1 -0
- package/dist/modules/ratings/utils/rating-cursor.util.d.ts +6 -0
- package/dist/modules/ratings/utils/rating-cursor.util.d.ts.map +1 -0
- package/dist/modules/ratings/utils/rating-cursor.util.js +29 -0
- package/dist/modules/ratings/utils/rating-cursor.util.js.map +1 -0
- package/dist/modules/settings/constants/settings.defaults.d.ts +18 -1
- package/dist/modules/settings/constants/settings.defaults.d.ts.map +1 -1
- package/dist/modules/settings/constants/settings.defaults.js +21 -3
- package/dist/modules/settings/constants/settings.defaults.js.map +1 -1
- package/dist/modules/settings/constants/settings.keys.d.ts +33 -3
- package/dist/modules/settings/constants/settings.keys.d.ts.map +1 -1
- package/dist/modules/settings/constants/settings.keys.js +34 -3
- package/dist/modules/settings/constants/settings.keys.js.map +1 -1
- package/dist/modules/settings/controllers/settings.controller.d.ts.map +1 -1
- package/dist/modules/settings/controllers/settings.controller.js +30 -4
- package/dist/modules/settings/controllers/settings.controller.js.map +1 -1
- package/dist/modules/settings/services/settings.service.d.ts +2 -0
- package/dist/modules/settings/services/settings.service.d.ts.map +1 -1
- package/dist/modules/settings/services/settings.service.js +17 -0
- package/dist/modules/settings/services/settings.service.js.map +1 -1
- package/dist/modules/settings/utils/settings-secret.util.d.ts.map +1 -1
- package/dist/modules/settings/utils/settings-secret.util.js +4 -1
- package/dist/modules/settings/utils/settings-secret.util.js.map +1 -1
- package/dist/modules/users/services/users.service.d.ts +8 -1
- package/dist/modules/users/services/users.service.d.ts.map +1 -1
- package/dist/modules/users/services/users.service.js +49 -2
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/package.json +1 -1
- package/dist/modules/notifications/dto/user-device-token.dto.d.ts +0 -9
- package/dist/modules/notifications/dto/user-device-token.dto.d.ts.map +0 -1
- package/dist/modules/notifications/dto/user-device-token.dto.js +0 -3
- package/dist/modules/notifications/dto/user-device-token.dto.js.map +0 -1
|
@@ -15,6 +15,7 @@ const structured_logger_service_1 = require("../../observability/logging/structu
|
|
|
15
15
|
const settings_keys_1 = require("../../settings/constants/settings.keys");
|
|
16
16
|
const settings_service_1 = require("../../settings/services/settings.service");
|
|
17
17
|
const infobip_provider_1 = require("./providers/infobip.provider");
|
|
18
|
+
const sendchamp_provider_1 = require("./providers/sendchamp.provider");
|
|
18
19
|
const smart_sms_provider_1 = require("./providers/smart-sms.provider");
|
|
19
20
|
const termii_provider_1 = require("./providers/termii.provider");
|
|
20
21
|
const twilio_provider_1 = require("./providers/twilio.provider");
|
|
@@ -29,18 +30,20 @@ let SmsProxyService = class SmsProxyService extends sms_provider_interface_1.ISm
|
|
|
29
30
|
termii;
|
|
30
31
|
infobip;
|
|
31
32
|
smartsms;
|
|
33
|
+
sendchamp;
|
|
32
34
|
settings;
|
|
33
35
|
logger;
|
|
34
36
|
providerMap;
|
|
35
|
-
constructor(twilio, termii, infobip, smartsms, settings, logger) {
|
|
37
|
+
constructor(twilio, termii, infobip, smartsms, sendchamp, settings, logger) {
|
|
36
38
|
super();
|
|
37
39
|
this.twilio = twilio;
|
|
38
40
|
this.termii = termii;
|
|
39
41
|
this.infobip = infobip;
|
|
40
42
|
this.smartsms = smartsms;
|
|
43
|
+
this.sendchamp = sendchamp;
|
|
41
44
|
this.settings = settings;
|
|
42
45
|
this.logger = logger;
|
|
43
|
-
this.providerMap = { twilio, termii, infobip, smartsms };
|
|
46
|
+
this.providerMap = { twilio, termii, infobip, smartsms, sendchamp };
|
|
44
47
|
}
|
|
45
48
|
onModuleInit() {
|
|
46
49
|
const name = this.settings.get(settings_keys_1.SETTING_KEYS.SMS_ACTIVE_PROVIDER);
|
|
@@ -84,6 +87,7 @@ exports.SmsProxyService = SmsProxyService = __decorate([
|
|
|
84
87
|
termii_provider_1.TermiiProvider,
|
|
85
88
|
infobip_provider_1.InfobipProvider,
|
|
86
89
|
smart_sms_provider_1.SmartSmsProvider,
|
|
90
|
+
sendchamp_provider_1.SendchampProvider,
|
|
87
91
|
settings_service_1.SettingsService,
|
|
88
92
|
structured_logger_service_1.StructuredLoggerService])
|
|
89
93
|
], SmsProxyService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms-proxy.service.js","sourceRoot":"","sources":["../../../../src/modules/jobs/sms/sms-proxy.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAuF;AAEvF,qGAAgG;AAChG,0EAAsE;AACtE,+EAA2E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b,kCAAe;QACd,qCAAgB;QACf,sCAAiB;QAClB,kCAAe;QACjB,mDAAuB;GAVrC,eAAe,CAoD3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms.module.d.ts","sourceRoot":"","sources":["../../../../src/modules/jobs/sms/sms.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sms.module.d.ts","sourceRoot":"","sources":["../../../../src/modules/jobs/sms/sms.module.ts"],"names":[],"mappings":"AAUA,qBAYa,SAAS;CAAG"}
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.SmsModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const infobip_provider_1 = require("./providers/infobip.provider");
|
|
12
|
+
const sendchamp_provider_1 = require("./providers/sendchamp.provider");
|
|
12
13
|
const smart_sms_provider_1 = require("./providers/smart-sms.provider");
|
|
13
14
|
const termii_provider_1 = require("./providers/termii.provider");
|
|
14
15
|
const twilio_provider_1 = require("./providers/twilio.provider");
|
|
@@ -24,6 +25,7 @@ exports.SmsModule = SmsModule = __decorate([
|
|
|
24
25
|
termii_provider_1.TermiiProvider,
|
|
25
26
|
infobip_provider_1.InfobipProvider,
|
|
26
27
|
smart_sms_provider_1.SmartSmsProvider,
|
|
28
|
+
sendchamp_provider_1.SendchampProvider,
|
|
27
29
|
sms_proxy_service_1.SmsProxyService,
|
|
28
30
|
{ provide: sms_provider_interface_1.ISmsProvider, useExisting: sms_proxy_service_1.SmsProxyService },
|
|
29
31
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms.module.js","sourceRoot":"","sources":["../../../../src/modules/jobs/sms/sms.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,mEAA+D;AAC/D,uEAAkE;AAClE,iEAA6D;AAC7D,iEAA6D;AAC7D,qEAAwD;AACxD,2DAAsD;
|
|
1
|
+
{"version":3,"file":"sms.module.js","sourceRoot":"","sources":["../../../../src/modules/jobs/sms/sms.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,mEAA+D;AAC/D,uEAAmE;AACnE,uEAAkE;AAClE,iEAA6D;AAC7D,iEAA6D;AAC7D,qEAAwD;AACxD,2DAAsD;AAc/C,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAZrB,IAAA,eAAM,EAAC;QACP,SAAS,EAAE;YACV,gCAAc;YACd,gCAAc;YACd,kCAAe;YACf,qCAAgB;YAChB,sCAAiB;YACjB,mCAAe;YACf,EAAE,OAAO,EAAE,qCAAY,EAAE,WAAW,EAAE,mCAAe,EAAE;SACvD;QACD,OAAO,EAAE,CAAC,qCAAY,CAAC;KACvB,CAAC;GACW,SAAS,CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/controllers/notifications.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notifications.controller.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/controllers/notifications.controller.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAElF,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,qBAEa,uBAAuB;IAElC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAFL,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,YAAY;IAGrC;;OAEG;IAIG,cAAc,CAAgB,IAAI,EAAE,WAAW,EAAU,GAAG,EAAE,iBAAiB;;;;IA0BrF;;OAEG;IAKG,YAAY,CAAgB,IAAI,EAAE,WAAW,EAAU,GAAG,EAAE,eAAe;;;IAYjF;;OAEG;IAGG,UAAU,CAAgB,IAAI,EAAE,WAAW;;;;;;;IAejD;;OAEG;IAGG,gBAAgB,CAAgB,IAAI,EAAE,WAAW,EAAW,KAAK,EAAE,oBAAoB;IAI7F;;OAEG;IAGG,cAAc,CAAgB,IAAI,EAAE,WAAW;;;IAKrD;;OAEG;IAIG,UAAU,CAAgB,IAAI,EAAE,WAAW,EAAe,EAAE,EAAE,MAAM;;;IAK1E;;OAEG;IAIG,aAAa,CAAgB,IAAI,EAAE,WAAW;;;;IAKpD;;OAEG;IAIG,kBAAkB,CAAgB,IAAI,EAAE,WAAW,EAAe,EAAE,EAAE,MAAM;;;CAIlF"}
|
|
@@ -14,6 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.NotificationsController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
|
+
const throttler_1 = require("@nestjs/throttler");
|
|
17
18
|
const decorators_1 = require("../../../common/decorators");
|
|
18
19
|
const auth_guard_1 = require("../../../common/guards/auth.guard");
|
|
19
20
|
const permissions_guard_1 = require("../../../common/guards/permissions.guard");
|
|
@@ -62,8 +63,8 @@ let NotificationsController = class NotificationsController {
|
|
|
62
63
|
action: audit_actions_1.AUDIT_ACTIONS.DEVICE_REMOVED,
|
|
63
64
|
actorType: 'USER',
|
|
64
65
|
actorId: user.id,
|
|
65
|
-
resourceType: '
|
|
66
|
-
resourceId:
|
|
66
|
+
resourceType: 'device_token',
|
|
67
|
+
resourceId: dto.fcmToken,
|
|
67
68
|
});
|
|
68
69
|
return { message: 'Device removed successfully' };
|
|
69
70
|
}
|
|
@@ -121,6 +122,7 @@ let NotificationsController = class NotificationsController {
|
|
|
121
122
|
exports.NotificationsController = NotificationsController;
|
|
122
123
|
__decorate([
|
|
123
124
|
(0, common_1.Post)('devices'),
|
|
125
|
+
(0, throttler_1.Throttle)({ default: { limit: 30, ttl: 60_000 } }),
|
|
124
126
|
(0, decorators_1.RequirePermission)(notifications_manifest_1.NOTIFICATIONS_PERMISSIONS.REGISTER_DEVICE),
|
|
125
127
|
__param(0, (0, decorators_1.CurrentUser)()),
|
|
126
128
|
__param(1, (0, common_1.Body)()),
|
|
@@ -130,6 +132,7 @@ __decorate([
|
|
|
130
132
|
], NotificationsController.prototype, "registerDevice", null);
|
|
131
133
|
__decorate([
|
|
132
134
|
(0, common_1.Delete)('devices'),
|
|
135
|
+
(0, throttler_1.Throttle)({ default: { limit: 30, ttl: 60_000 } }),
|
|
133
136
|
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
134
137
|
(0, decorators_1.RequirePermission)(notifications_manifest_1.NOTIFICATIONS_PERMISSIONS.REMOVE_DEVICE),
|
|
135
138
|
__param(0, (0, decorators_1.CurrentUser)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.controller.js","sourceRoot":"","sources":["../../../../src/modules/notifications/controllers/notifications.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;
|
|
1
|
+
{"version":3,"file":"notifications.controller.js","sourceRoot":"","sources":["../../../../src/modules/notifications/controllers/notifications.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAYwB;AACxB,iDAA6C;AAE7C,2DAA4E;AAC5E,kEAAiE;AACjE,gFAA4E;AAE5E,uEAAoE;AACpE,sEAAkE;AAClE,gCAAkF;AAClF,sEAAsE;AACtE,yDAAqD;AACrD,6EAAyE;AAIlE,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAEjB;IACA;IACA;IAHlB,YACkB,UAAsB,EACtB,oBAA0C,EAC1C,K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.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,qBAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"device.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/device.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,qBAAa,iBAAiB;IAG7B,QAAQ,EAAG,MAAM,CAAC;IAGlB,UAAU,EAAG,UAAU,CAAC;IAKxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,eAAe;IAG3B,QAAQ,EAAG,MAAM,CAAC;CAClB"}
|
|
@@ -20,6 +20,7 @@ class RegisterDeviceDto {
|
|
|
20
20
|
exports.RegisterDeviceDto = RegisterDeviceDto;
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.MaxLength)(4096),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], RegisterDeviceDto.prototype, "fcmToken", void 0);
|
|
25
26
|
__decorate([
|
|
@@ -29,6 +30,7 @@ __decorate([
|
|
|
29
30
|
__decorate([
|
|
30
31
|
(0, class_validator_1.IsString)(),
|
|
31
32
|
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.MaxLength)(256),
|
|
32
34
|
__metadata("design:type", String)
|
|
33
35
|
], RegisterDeviceDto.prototype, "deviceName", void 0);
|
|
34
36
|
class RemoveDeviceDto {
|
|
@@ -37,6 +39,7 @@ class RemoveDeviceDto {
|
|
|
37
39
|
exports.RemoveDeviceDto = RemoveDeviceDto;
|
|
38
40
|
__decorate([
|
|
39
41
|
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.MaxLength)(4096),
|
|
40
43
|
__metadata("design:type", String)
|
|
41
44
|
], RemoveDeviceDto.prototype, "fcmToken", void 0);
|
|
42
45
|
//# sourceMappingURL=device.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.dto.js","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/device.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"device.dto.js","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/device.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,yEAA6D;AAE7D,MAAa,iBAAiB;IAG7B,QAAQ,CAAU;IAGlB,UAAU,CAAc;IAKxB,UAAU,CAAU;CACpB;AAZD,8CAYC;AATA;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,IAAI,CAAC;;mDACE;AAGlB;IADC,IAAA,wBAAM,EAAC,gCAAU,CAAC;;qDACK;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;qDACK;AAGrB,MAAa,eAAe;IAG3B,QAAQ,CAAU;CAClB;AAJD,0CAIC;AADA;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,IAAI,CAAC;;iDACE"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NotificationChannel } from './event-types.dto';
|
|
2
2
|
export interface FcmNotificationData {
|
|
3
3
|
title: string;
|
|
4
4
|
body: string;
|
|
5
5
|
data?: Record<string, string>;
|
|
6
6
|
imageUrl?: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export declare class SendNotificationDto {
|
|
9
9
|
userId: string;
|
|
10
10
|
eventType: string;
|
|
11
11
|
payload: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/fcm.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fcm.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/fcm.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,WAAW,mBAAmB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,mBAAmB;IAE/B,MAAM,EAAG,MAAM,CAAC;IAGhB,SAAS,EAAG,MAAM,CAAC;IAGnB,OAAO,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIlC,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
|
@@ -1,3 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SendNotificationDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const event_types_dto_1 = require("./event-types.dto");
|
|
15
|
+
class SendNotificationDto {
|
|
16
|
+
userId;
|
|
17
|
+
eventType;
|
|
18
|
+
payload;
|
|
19
|
+
channel;
|
|
20
|
+
}
|
|
21
|
+
exports.SendNotificationDto = SendNotificationDto;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsUUID)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SendNotificationDto.prototype, "userId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SendNotificationDto.prototype, "eventType", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsObject)(),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], SendNotificationDto.prototype, "payload", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsEnum)(event_types_dto_1.NotificationChannel),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SendNotificationDto.prototype, "channel", void 0);
|
|
3
39
|
//# sourceMappingURL=fcm.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm.dto.js","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/fcm.dto.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"fcm.dto.js","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/fcm.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AAEjF,uDAAwD;AASxD,MAAa,mBAAmB;IAE/B,MAAM,CAAU;IAGhB,SAAS,CAAU;IAGnB,OAAO,CAA2B;IAIlC,OAAO,CAAuB;CAC9B;AAbD,kDAaC;AAXA;IADC,IAAA,wBAAM,GAAE;;mDACO;AAGhB;IADC,IAAA,0BAAQ,GAAE;;sDACQ;AAGnB;IADC,IAAA,0BAAQ,GAAE;;oDACuB;AAIlC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;oDACE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,0BAA0B,CAAC"}
|
|
@@ -18,5 +18,4 @@ __exportStar(require("./device.dto"), exports);
|
|
|
18
18
|
__exportStar(require("./event-types.dto"), exports);
|
|
19
19
|
__exportStar(require("./fcm.dto"), exports);
|
|
20
20
|
__exportStar(require("./notification-query.dto"), exports);
|
|
21
|
-
__exportStar(require("./user-device-token.dto"), exports);
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4CAA0B;AAC1B,2DAAyC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/notifications/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4CAA0B;AAC1B,2DAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-token.entity.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/entities/device-token.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAExD,oBAAY,UAAU;IACrB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,GAAG,QAAQ;CACX;AAED,
|
|
1
|
+
{"version":3,"file":"device-token.entity.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/entities/device-token.entity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAExD,oBAAY,UAAU;IACrB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,GAAG,QAAQ;CACX;AAED,qBAGa,WAAY,SAAQ,UAAU;IAE1C,MAAM,EAAG,MAAM,CAAC;IAIhB,IAAI,EAAG,IAAI,CAAC;IAGZ,QAAQ,EAAG,MAAM,CAAC;IAOlB,UAAU,EAAG,UAAU,CAAC;IAGxB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAG,OAAO,CAAC;IAGnB,UAAU,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -64,8 +64,7 @@ __decorate([
|
|
|
64
64
|
], DeviceToken.prototype, "lastUsedAt", void 0);
|
|
65
65
|
exports.DeviceToken = DeviceToken = __decorate([
|
|
66
66
|
(0, typeorm_1.Entity)('device_tokens'),
|
|
67
|
-
(0, typeorm_1.Index)(['
|
|
68
|
-
(0, typeorm_1.Index)(['userId', 'isActive'])
|
|
69
|
-
(0, typeorm_1.Index)(['fcmToken'])
|
|
67
|
+
(0, typeorm_1.Index)(['fcmToken'], { unique: true }),
|
|
68
|
+
(0, typeorm_1.Index)(['userId', 'isActive'])
|
|
70
69
|
], DeviceToken);
|
|
71
70
|
//# sourceMappingURL=device-token.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-token.entity.js","sourceRoot":"","sources":["../../../../src/modules/notifications/entities/device-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AAEvE,kEAA8D;AAC9D,kEAAwD;AAExD,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,yBAAW,CAAA;IACX,iCAAmB,CAAA;IACnB,yBAAW,CAAA;AACZ,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;
|
|
1
|
+
{"version":3,"file":"device-token.entity.js","sourceRoot":"","sources":["../../../../src/modules/notifications/entities/device-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuE;AAEvE,kEAA8D;AAC9D,kEAAwD;AAExD,IAAY,UAIX;AAJD,WAAY,UAAU;IACrB,yBAAW,CAAA;IACX,iCAAmB,CAAA;IACnB,yBAAW,CAAA;AACZ,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAKM,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAE1C,MAAM,CAAU;IAIhB,IAAI,CAAQ;IAGZ,QAAQ,CAAU;IAOlB,UAAU,CAAc;IAGxB,UAAU,CAAU;IAGpB,QAAQ,CAAW;IAGnB,UAAU,CAAQ;CAClB,CAAA;AA1BY,kCAAW;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;2CACZ;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,kBAAI;yCAAC;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;6CACZ;AAOlB;IALC,IAAA,gBAAM,EAAC;QACP,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,UAAU;KAChB,CAAC;;+CACsB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC5B;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6CAC1B;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACzD,IAAI;+CAAC;sBAzBN,WAAW;IAHvB,IAAA,gBAAM,EAAC,eAAe,CAAC;IACvB,IAAA,eAAK,EAAC,CAAC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACrC,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;GACjB,WAAW,CA0BvB"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { DynamicModule } from '@nestjs/common';
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* FCM credentials + device-token push delivery (HTTP v1 via google-auth-library).
|
|
3
4
|
* Intentionally has no dependency on AuthModule so it can be imported
|
|
4
|
-
* by both NotificationsModule and
|
|
5
|
+
* by both NotificationsModule and DeliveryModule without creating a cycle.
|
|
5
6
|
*/
|
|
6
7
|
export declare class FirebaseModule {
|
|
8
|
+
/** @deprecated Prefer importing FirebaseModule directly; kept for package BC. */
|
|
9
|
+
static forRoot(): DynamicModule;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=firebase.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.module.d.ts","sourceRoot":"","sources":["../../../src/modules/notifications/firebase.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firebase.module.d.ts","sourceRoot":"","sources":["../../../src/modules/notifications/firebase.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAOvD;;;;GAIG;AACH,qBAKa,cAAc;IAC1B,iFAAiF;IACjF,MAAM,CAAC,OAAO,IAAI,aAAa;CAG/B"}
|
|
@@ -5,6 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var FirebaseModule_1;
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.FirebaseModule = void 0;
|
|
10
11
|
const common_1 = require("@nestjs/common");
|
|
@@ -13,14 +14,18 @@ const device_token_entity_1 = require("./entities/device-token.entity");
|
|
|
13
14
|
const fcm_service_1 = require("./services/fcm.service");
|
|
14
15
|
const firebase_service_1 = require("./services/firebase.service");
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* FCM credentials + device-token push delivery (HTTP v1 via google-auth-library).
|
|
17
18
|
* Intentionally has no dependency on AuthModule so it can be imported
|
|
18
|
-
* by both NotificationsModule and
|
|
19
|
+
* by both NotificationsModule and DeliveryModule without creating a cycle.
|
|
19
20
|
*/
|
|
20
|
-
let FirebaseModule = class FirebaseModule {
|
|
21
|
+
let FirebaseModule = FirebaseModule_1 = class FirebaseModule {
|
|
22
|
+
/** @deprecated Prefer importing FirebaseModule directly; kept for package BC. */
|
|
23
|
+
static forRoot() {
|
|
24
|
+
return { module: FirebaseModule_1 };
|
|
25
|
+
}
|
|
21
26
|
};
|
|
22
27
|
exports.FirebaseModule = FirebaseModule;
|
|
23
|
-
exports.FirebaseModule = FirebaseModule = __decorate([
|
|
28
|
+
exports.FirebaseModule = FirebaseModule = FirebaseModule_1 = __decorate([
|
|
24
29
|
(0, common_1.Module)({
|
|
25
30
|
imports: [typeorm_1.TypeOrmModule.forFeature([device_token_entity_1.DeviceToken])],
|
|
26
31
|
providers: [firebase_service_1.FirebaseService, fcm_service_1.FcmService],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase.module.js","sourceRoot":"","sources":["../../../src/modules/notifications/firebase.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"firebase.module.js","sourceRoot":"","sources":["../../../src/modules/notifications/firebase.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,6CAAgD;AAEhD,wEAA6D;AAC7D,wDAAoD;AACpD,kEAA8D;AAE9D;;;;GAIG;AAMI,IAAM,cAAc,sBAApB,MAAM,cAAc;IAC1B,iFAAiF;IACjF,MAAM,CAAC,OAAO;QACb,OAAO,EAAE,MAAM,EAAE,gBAAc,EAAE,CAAC;IACnC,CAAC;CACD,CAAA;AALY,wCAAc;yBAAd,cAAc;IAL1B,IAAA,eAAM,EAAC;QACP,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,iCAAW,CAAC,CAAC,CAAC;QAClD,SAAS,EAAE,CAAC,kCAAe,EAAE,wBAAU,CAAC;QACxC,OAAO,EAAE,CAAC,kCAAe,EAAE,wBAAU,CAAC;KACtC,CAAC;GACW,cAAc,CAK1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** FCM credentials missing — retryable after ops configures settings. */
|
|
2
|
+
export declare class FcmNotConfiguredError extends Error {
|
|
3
|
+
constructor(message?: string);
|
|
4
|
+
}
|
|
5
|
+
/** Transient FCM/network failure — Bull should retry. */
|
|
6
|
+
export declare class FcmTransientSendError extends Error {
|
|
7
|
+
constructor(message?: string);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=fcm.errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fcm.errors.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/services/fcm.errors.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,qBAAa,qBAAsB,SAAQ,KAAK;gBACnC,OAAO,SAA4C;CAI/D;AAED,yDAAyD;AACzD,qBAAa,qBAAsB,SAAQ,KAAK;gBACnC,OAAO,SAAgC;CAInD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FcmTransientSendError = exports.FcmNotConfiguredError = void 0;
|
|
4
|
+
/** FCM credentials missing — retryable after ops configures settings. */
|
|
5
|
+
class FcmNotConfiguredError extends Error {
|
|
6
|
+
constructor(message = 'Firebase/FCM credentials not configured') {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = 'FcmNotConfiguredError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.FcmNotConfiguredError = FcmNotConfiguredError;
|
|
12
|
+
/** Transient FCM/network failure — Bull should retry. */
|
|
13
|
+
class FcmTransientSendError extends Error {
|
|
14
|
+
constructor(message = 'FCM send failed (transient)') {
|
|
15
|
+
super(message);
|
|
16
|
+
this.name = 'FcmTransientSendError';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.FcmTransientSendError = FcmTransientSendError;
|
|
20
|
+
//# sourceMappingURL=fcm.errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fcm.errors.js","sourceRoot":"","sources":["../../../../src/modules/notifications/services/fcm.errors.ts"],"names":[],"mappings":";;;AAAA,yEAAyE;AACzE,MAAa,qBAAsB,SAAQ,KAAK;IAC/C,YAAY,OAAO,GAAG,yCAAyC;QAC9D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACrC,CAAC;CACD;AALD,sDAKC;AAED,yDAAyD;AACzD,MAAa,qBAAsB,SAAQ,KAAK;IAC/C,YAAY,OAAO,GAAG,6BAA6B;QAClD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACrC,CAAC;CACD;AALD,sDAKC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Repository } from 'typeorm';
|
|
1
|
+
import { DataSource, Repository } from 'typeorm';
|
|
2
2
|
import { ErrorReporterService } from '../../observability/errors/error-reporter.service';
|
|
3
3
|
import { StructuredLoggerService } from '../../observability/logging/structured-logger.service';
|
|
4
4
|
import { MetricsService } from '../../observability/metrics/metrics.service';
|
|
@@ -6,23 +6,32 @@ import { SettingsService } from '../../settings/services/settings.service';
|
|
|
6
6
|
import { FcmNotificationData } from '../dto';
|
|
7
7
|
import { DeviceToken, DeviceType } from '../entities/device-token.entity';
|
|
8
8
|
import { FirebaseService } from './firebase.service';
|
|
9
|
+
type DeviceSendOutcome = 'success' | 'unregistered' | 'transient' | 'rejected';
|
|
9
10
|
export declare class FcmService {
|
|
10
11
|
private readonly firebaseService;
|
|
11
12
|
private readonly deviceTokenRepository;
|
|
12
13
|
private readonly settings;
|
|
13
14
|
private readonly logger;
|
|
15
|
+
private readonly dataSource;
|
|
14
16
|
private readonly metrics?;
|
|
15
17
|
private readonly errorReporter?;
|
|
16
|
-
constructor(firebaseService: FirebaseService, deviceTokenRepository: Repository<DeviceToken>, settings: SettingsService, logger: StructuredLoggerService, metrics?: MetricsService | undefined, errorReporter?: ErrorReporterService | undefined);
|
|
18
|
+
constructor(firebaseService: FirebaseService, deviceTokenRepository: Repository<DeviceToken>, settings: SettingsService, logger: StructuredLoggerService, dataSource: DataSource, metrics?: MetricsService | undefined, errorReporter?: ErrorReporterService | undefined);
|
|
17
19
|
registerDeviceToken(userId: string, fcmToken: string, deviceType: DeviceType, deviceName?: string): Promise<DeviceToken>;
|
|
18
20
|
/** Deactivates oldest active tokens beyond the per-user cap. */
|
|
19
21
|
private enforceActiveTokenCap;
|
|
20
22
|
removeDeviceTokenForUser(userId: string, fcmToken: string): Promise<void>;
|
|
21
23
|
private deactivateDeviceToken;
|
|
22
24
|
getUserDeviceTokens(userId: string): Promise<DeviceToken[]>;
|
|
23
|
-
sendToDevice(fcmToken: string, notification: FcmNotificationData): Promise<
|
|
25
|
+
sendToDevice(fcmToken: string, notification: FcmNotificationData, accessToken?: string): Promise<DeviceSendOutcome>;
|
|
26
|
+
/**
|
|
27
|
+
* Fan-out push to a user's active devices.
|
|
28
|
+
* @returns number of devices successfully reached
|
|
29
|
+
* @throws FcmNotConfiguredError when credentials are missing (retry after ops fix)
|
|
30
|
+
* @throws FcmTransientSendError when every attempt failed transiently (Bull retry)
|
|
31
|
+
*/
|
|
24
32
|
sendToUser(userId: string, notification: FcmNotificationData): Promise<number>;
|
|
25
33
|
private extractFcmErrorCode;
|
|
26
34
|
private recordFcmOutcome;
|
|
27
35
|
}
|
|
36
|
+
export {};
|
|
28
37
|
//# sourceMappingURL=fcm.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fcm.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/services/fcm.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAM,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"fcm.service.d.ts","sourceRoot":"","sources":["../../../../src/modules/notifications/services/fcm.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAM,UAAU,EAAE,MAAM,SAAS,CAAC;AAGrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAYrD,KAAK,iBAAiB,GAAG,SAAS,GAAG,cAAc,GAAG,WAAW,GAAG,UAAU,CAAC;AAE/E,qBACa,UAAU;IAErB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAEhC,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