@viardex/viardex-libs 1.0.4 → 1.0.5

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 (91) hide show
  1. package/README.md +179 -0
  2. package/dist/argon/argon.module.d.ts +2 -0
  3. package/dist/{notification/notification.module.js → argon/argon.module.js} +9 -8
  4. package/dist/argon/argon.service.d.ts +6 -0
  5. package/dist/argon/argon.service.js +74 -0
  6. package/dist/argon/index.d.ts +2 -0
  7. package/dist/{notification → argon}/index.js +2 -4
  8. package/dist/auth/auth.constants.d.ts +4 -0
  9. package/dist/auth/auth.constants.js +7 -0
  10. package/dist/auth/auth.interfaces.d.ts +19 -0
  11. package/dist/auth/auth.module.d.ts +2 -0
  12. package/dist/auth/auth.module.js +30 -0
  13. package/dist/auth/auth.service.d.ts +13 -0
  14. package/dist/auth/auth.service.js +99 -0
  15. package/dist/auth/decorators/auth-token-types.decorator.d.ts +2 -0
  16. package/dist/auth/decorators/auth-token-types.decorator.js +7 -0
  17. package/dist/auth/decorators/current-auth.decorator.d.ts +1 -0
  18. package/dist/auth/decorators/current-auth.decorator.js +10 -0
  19. package/dist/auth/decorators/index.d.ts +5 -0
  20. package/dist/auth/decorators/index.js +21 -0
  21. package/dist/auth/decorators/permissions.decorator.d.ts +1 -0
  22. package/dist/auth/decorators/permissions.decorator.js +7 -0
  23. package/dist/auth/decorators/public.decorator.d.ts +1 -0
  24. package/dist/auth/decorators/public.decorator.js +7 -0
  25. package/dist/auth/decorators/roles.decorator.d.ts +1 -0
  26. package/dist/auth/decorators/roles.decorator.js +7 -0
  27. package/dist/auth/guards/auth.guard.d.ts +10 -0
  28. package/dist/auth/guards/auth.guard.js +58 -0
  29. package/dist/auth/guards/index.d.ts +3 -0
  30. package/dist/auth/guards/index.js +19 -0
  31. package/dist/auth/guards/permissions.guard.d.ts +7 -0
  32. package/dist/auth/guards/permissions.guard.js +47 -0
  33. package/dist/auth/guards/roles.guard.d.ts +7 -0
  34. package/dist/auth/guards/roles.guard.js +48 -0
  35. package/dist/auth/index.d.ts +6 -0
  36. package/dist/auth/index.js +22 -0
  37. package/dist/cache/cache.constants.d.ts +1 -0
  38. package/dist/cache/cache.constants.js +4 -0
  39. package/dist/cache/cache.module.js +5 -1
  40. package/dist/cache/cache.service.d.ts +5 -0
  41. package/dist/cache/cache.service.js +28 -1
  42. package/dist/cache/index.d.ts +1 -0
  43. package/dist/cache/index.js +1 -0
  44. package/dist/common/config/nats.config.d.ts +7 -8
  45. package/dist/common/config/nats.config.js +25 -4
  46. package/dist/common/constants/queues.constants.d.ts +7 -15
  47. package/dist/common/constants/queues.constants.js +8 -16
  48. package/dist/common/enums/index.d.ts +0 -2
  49. package/dist/common/enums/index.js +0 -2
  50. package/dist/health/health.controller.d.ts +19 -0
  51. package/dist/health/health.controller.js +88 -0
  52. package/dist/health/health.module.d.ts +2 -0
  53. package/dist/health/health.module.js +21 -0
  54. package/dist/health/index.d.ts +2 -0
  55. package/dist/health/index.js +18 -0
  56. package/dist/index.d.ts +5 -1
  57. package/dist/index.js +5 -1
  58. package/dist/logger/index.d.ts +2 -0
  59. package/dist/logger/index.js +18 -0
  60. package/dist/logger/logger.module.d.ts +2 -0
  61. package/dist/logger/logger.module.js +58 -0
  62. package/dist/logger/logging.interceptor.d.ts +8 -0
  63. package/dist/logger/logging.interceptor.js +62 -0
  64. package/dist/rpc/index.d.ts +0 -36
  65. package/dist/rpc/index.js +3 -73
  66. package/dist/storage/index.d.ts +5 -0
  67. package/dist/storage/index.js +21 -0
  68. package/dist/storage/r2.service.d.ts +20 -0
  69. package/dist/storage/r2.service.js +208 -0
  70. package/dist/storage/s3.service.d.ts +20 -0
  71. package/dist/storage/s3.service.js +204 -0
  72. package/dist/storage/storage.interface.d.ts +29 -0
  73. package/dist/storage/storage.interface.js +2 -0
  74. package/dist/storage/storage.module.d.ts +2 -0
  75. package/dist/storage/storage.module.js +24 -0
  76. package/dist/storage/storage.service.d.ts +22 -0
  77. package/dist/storage/storage.service.js +54 -0
  78. package/package.json +80 -27
  79. package/dist/common/enums/support-action.enum.d.ts +0 -7
  80. package/dist/common/enums/support-action.enum.js +0 -11
  81. package/dist/common/enums/ticket.enum.d.ts +0 -19
  82. package/dist/common/enums/ticket.enum.js +0 -25
  83. package/dist/notification/index.d.ts +0 -4
  84. package/dist/notification/notification.client.d.ts +0 -76
  85. package/dist/notification/notification.client.js +0 -325
  86. package/dist/notification/notification.enum.d.ts +0 -54
  87. package/dist/notification/notification.enum.js +0 -73
  88. package/dist/notification/notification.interface.d.ts +0 -285
  89. package/dist/notification/notification.module.d.ts +0 -2
  90. package/dist/tsconfig.tsbuildinfo +0 -1
  91. /package/dist/{notification/notification.interface.js → auth/auth.interfaces.js} +0 -0
@@ -1,325 +0,0 @@
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 __param = (this && this.__param) || function (paramIndex, decorator) {
9
- return function (target, key) { decorator(target, key, paramIndex); }
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Notification = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const notification_enum_1 = require("./notification.enum");
15
- const nats_1 = require("../nats");
16
- const class_validator_1 = require("class-validator");
17
- let Notification = class Notification {
18
- natsClient;
19
- constructor(natsClient) {
20
- this.natsClient = natsClient;
21
- }
22
- validatePhoneNumber(phone) {
23
- if (!(0, class_validator_1.isPhoneNumber)(phone)) {
24
- throw new common_1.BadRequestException('Invalid phone number');
25
- }
26
- }
27
- validateEmailAddress(email) {
28
- if (!(0, class_validator_1.isEmail)(email)) {
29
- throw new common_1.BadRequestException('Invalid email address');
30
- }
31
- }
32
- emitEmailNotification(subject, to, data) {
33
- const dataWithYear = {
34
- ...data,
35
- currentYear: data.currentYear ?? new Date().getFullYear(),
36
- };
37
- this.natsClient.emit(subject, {
38
- to,
39
- data: dataWithYear,
40
- });
41
- }
42
- async sendBulkEmail(data) {
43
- this.natsClient.emit(notification_enum_1.NotificationSubject.NOTIFICATION_EMAIL_BULK, data);
44
- }
45
- async sendForgetPinOTPMail(to, data) {
46
- this.validateEmailAddress(to);
47
- this.emitEmailNotification(notification_enum_1.NotificationSubject.FORGET_PIN_OTP_MAIL, to, data);
48
- }
49
- async sendPasswordResetMail(to, data) {
50
- this.validateEmailAddress(to);
51
- this.emitEmailNotification(notification_enum_1.NotificationSubject.PASSWORD_RESET_MAIL, to, data);
52
- }
53
- async sendEmailVerificationMail(to, data) {
54
- this.validateEmailAddress(to);
55
- this.emitEmailNotification(notification_enum_1.NotificationSubject.EMAIL_VERIFICATION_EMAIL, to, data);
56
- }
57
- async sendDeviceVerificationEmail(to, data) {
58
- this.validateEmailAddress(to);
59
- this.emitEmailNotification(notification_enum_1.NotificationSubject.DEVICE_VERIFICATION_MAIL, to, { ...data });
60
- }
61
- /**
62
- * Sends generated OTP via email
63
- * @param to - recipient email address
64
- * @param data - OTP data
65
- */
66
- async sendOTPByMail(to, data) {
67
- this.validateEmailAddress(to);
68
- const dataWithYear = {
69
- ...data,
70
- currentYear: data.currentYear ?? new Date().getFullYear(),
71
- };
72
- this.natsClient.emit(notification_enum_1.NotificationSubject.OTP_MAIL, {
73
- to,
74
- ...dataWithYear,
75
- });
76
- }
77
- /**
78
- * Sends generated OTP via SMS
79
- * @param to - recipient phone number
80
- * @param data - OTP data
81
- */
82
- async sendOTPBySms(to, data) {
83
- this.validatePhoneNumber(to);
84
- this.natsClient.emit(notification_enum_1.NotificationSubject.NOTIFICATION_OTP_TEXT, {
85
- to,
86
- ...data,
87
- });
88
- }
89
- /**
90
- * Sends generated OTP via voice call
91
- * @param to - recipient phone number
92
- * @param data - OTP data
93
- */
94
- async sendOTPByVoice(to, data) {
95
- this.validatePhoneNumber(to);
96
- this.natsClient.emit(notification_enum_1.NotificationSubject.NOTIFICATION_OTP_VOICE, {
97
- to,
98
- ...data,
99
- });
100
- }
101
- // Transaction Notifications
102
- async sendTransactionSuccessMail(to, data) {
103
- this.validateEmailAddress(to);
104
- this.emitEmailNotification(notification_enum_1.NotificationSubject.TRANSACTION_SUCCESS_MAIL, to, data);
105
- }
106
- async sendTransactionSuccessSms(to, data) {
107
- this.validatePhoneNumber(to);
108
- this.natsClient.emit(notification_enum_1.NotificationSubject.TRANSACTION_SUCCESS_SMS, {
109
- to,
110
- data,
111
- });
112
- }
113
- // Account Notifications
114
- async sendAccountSuspendedMail(to, data) {
115
- this.validateEmailAddress(to);
116
- this.emitEmailNotification(notification_enum_1.NotificationSubject.ACCOUNT_SUSPENDED_MAIL, to, data);
117
- }
118
- // Virtual Account Notifications
119
- async sendVirtualAccountCreatedMail(to, data) {
120
- this.validateEmailAddress(to);
121
- this.emitEmailNotification(notification_enum_1.NotificationSubject.VIRTUAL_ACCOUNT_CREATED_MAIL, to, data);
122
- }
123
- async sendVirtualAccountCreditSms(to, data) {
124
- this.validatePhoneNumber(to);
125
- this.natsClient.emit(notification_enum_1.NotificationSubject.VIRTUAL_ACCOUNT_CREDIT_SMS, {
126
- to,
127
- data,
128
- });
129
- }
130
- // Card Notifications
131
- async sendCardCreatedMail(to, data) {
132
- this.validateEmailAddress(to);
133
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CARD_CREATED_MAIL, to, data);
134
- }
135
- async sendCardFrozenMail(to, data) {
136
- this.validateEmailAddress(to);
137
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CARD_FROZEN_MAIL, to, data);
138
- }
139
- async sendCardUnfrozenMail(to, data) {
140
- this.validateEmailAddress(to);
141
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CARD_UNFROZEN_MAIL, to, data);
142
- }
143
- async sendCardTransactionMail(to, data) {
144
- this.validateEmailAddress(to);
145
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CARD_TRANSACTION_MAIL, to, data);
146
- }
147
- async sendCardTransactionSms(to, data) {
148
- this.validatePhoneNumber(to);
149
- this.natsClient.emit(notification_enum_1.NotificationSubject.CARD_TRANSACTION_SMS, {
150
- to,
151
- data,
152
- });
153
- }
154
- async sendCardPinActivatedMail(to, data) {
155
- this.validateEmailAddress(to);
156
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CARD_PIN_ACTIVATED_MAIL, to, data);
157
- }
158
- // Crypto Notifications
159
- async sendCryptoTransactionMail(to, data) {
160
- this.validateEmailAddress(to);
161
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CRYPTO_TRANSACTION_MAIL, to, data);
162
- }
163
- async sendCryptoTransactionSms(to, data) {
164
- this.validatePhoneNumber(to);
165
- this.natsClient.emit(notification_enum_1.NotificationSubject.CRYPTO_TRANSACTION_SMS, {
166
- to,
167
- data,
168
- });
169
- }
170
- async sendCryptoExchangeRateAlertMail(to, data) {
171
- this.validateEmailAddress(to);
172
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CRYPTO_EXCHANGE_RATE_ALERT_MAIL, to, data);
173
- }
174
- // Cashback Notifications
175
- async sendCashbackEarnedMail(to, data) {
176
- this.validateEmailAddress(to);
177
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CASHBACK_EARNED_MAIL, to, data);
178
- }
179
- async sendCashbackEarnedSms(to, data) {
180
- this.validatePhoneNumber(to);
181
- this.natsClient.emit(notification_enum_1.NotificationSubject.CASHBACK_EARNED_SMS, {
182
- to,
183
- data,
184
- });
185
- }
186
- async sendCashbackWithdrawalMail(to, data) {
187
- this.validateEmailAddress(to);
188
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CASHBACK_WITHDRAWAL_MAIL, to, data);
189
- }
190
- // Referral Notifications
191
- async sendReferralBonusEarnedMail(to, data) {
192
- this.validateEmailAddress(to);
193
- this.emitEmailNotification(notification_enum_1.NotificationSubject.REFERRAL_BONUS_EARNED_MAIL, to, data);
194
- }
195
- async sendReferralBonusEarnedSms(to, data) {
196
- this.validatePhoneNumber(to);
197
- this.natsClient.emit(notification_enum_1.NotificationSubject.REFERRAL_BONUS_EARNED_SMS, {
198
- to,
199
- data,
200
- });
201
- }
202
- async sendNewReferralSignupMail(to, data) {
203
- this.validateEmailAddress(to);
204
- this.emitEmailNotification(notification_enum_1.NotificationSubject.NEW_REFERRAL_SIGNUP_MAIL, to, data);
205
- }
206
- // Gift Card Notifications
207
- async sendGiftCardOrderPlacedMail(to, data) {
208
- this.validateEmailAddress(to);
209
- this.emitEmailNotification(notification_enum_1.NotificationSubject.GIFT_CARD_ORDER_PLACED_MAIL, to, data);
210
- }
211
- async sendGiftCardOrderCompletedMail(to, data) {
212
- this.validateEmailAddress(to);
213
- this.emitEmailNotification(notification_enum_1.NotificationSubject.GIFT_CARD_ORDER_COMPLETED_MAIL, to, data);
214
- }
215
- async sendGiftCardOrderFailedMail(to, data) {
216
- this.validateEmailAddress(to);
217
- this.emitEmailNotification(notification_enum_1.NotificationSubject.GIFT_CARD_ORDER_FAILED_MAIL, to, data);
218
- }
219
- // ESIM Notifications
220
- async sendESIMOrderPlacedMail(to, data) {
221
- this.validateEmailAddress(to);
222
- this.emitEmailNotification(notification_enum_1.NotificationSubject.ESIM_ORDER_PLACED_MAIL, to, data);
223
- }
224
- async sendESIMOrderCompletedMail(to, data) {
225
- this.validateEmailAddress(to);
226
- this.emitEmailNotification(notification_enum_1.NotificationSubject.ESIM_ORDER_COMPLETED_MAIL, to, data);
227
- }
228
- async sendESIMOrderFailedMail(to, data) {
229
- this.validateEmailAddress(to);
230
- this.emitEmailNotification(notification_enum_1.NotificationSubject.ESIM_ORDER_FAILED_MAIL, to, data);
231
- }
232
- // KYC Notifications
233
- async sendKYCApplicationSubmittedMail(to, data) {
234
- this.validateEmailAddress(to);
235
- this.emitEmailNotification(notification_enum_1.NotificationSubject.KYC_APPLICATION_SUBMITTED_MAIL, to, data);
236
- }
237
- async sendKYCApplicationApprovedMail(to, data) {
238
- this.validateEmailAddress(to);
239
- this.emitEmailNotification(notification_enum_1.NotificationSubject.KYC_APPLICATION_APPROVED_MAIL, to, data);
240
- }
241
- async sendKYCApplicationRejectedMail(to, data) {
242
- this.validateEmailAddress(to);
243
- this.emitEmailNotification(notification_enum_1.NotificationSubject.KYC_APPLICATION_REJECTED_MAIL, to, data);
244
- }
245
- async sendKYCRequiresMoreInfoMail(to, data) {
246
- this.validateEmailAddress(to);
247
- this.emitEmailNotification(notification_enum_1.NotificationSubject.KYC_REQUIRES_MORE_INFO_MAIL, to, data);
248
- }
249
- // Security Notifications
250
- async sendLoginFromNewDeviceMail(to, data) {
251
- this.validateEmailAddress(to);
252
- this.emitEmailNotification(notification_enum_1.NotificationSubject.LOGIN_FROM_NEW_DEVICE_MAIL, to, data);
253
- }
254
- async sendLoginFromNewDeviceSms(to, data) {
255
- this.validatePhoneNumber(to);
256
- this.natsClient.emit(notification_enum_1.NotificationSubject.LOGIN_FROM_NEW_DEVICE_SMS, {
257
- to,
258
- data,
259
- });
260
- }
261
- async sendPasswordChangedMail(to, data) {
262
- this.validateEmailAddress(to);
263
- this.emitEmailNotification(notification_enum_1.NotificationSubject.PASSWORD_CHANGED_MAIL, to, data);
264
- }
265
- async sendTransactionPinChangedMail(to, data) {
266
- this.validateEmailAddress(to);
267
- this.emitEmailNotification(notification_enum_1.NotificationSubject.TRANSACTION_PIN_CHANGED_MAIL, to, data);
268
- }
269
- async sendSuspiciousActivityAlertMail(to, data) {
270
- this.validateEmailAddress(to);
271
- this.emitEmailNotification(notification_enum_1.NotificationSubject.SUSPICIOUS_ACTIVITY_ALERT_MAIL, to, data);
272
- }
273
- async sendSuspiciousActivityAlertSms(to, data) {
274
- this.validatePhoneNumber(to);
275
- this.natsClient.emit(notification_enum_1.NotificationSubject.SUSPICIOUS_ACTIVITY_ALERT_SMS, {
276
- to,
277
- data,
278
- });
279
- }
280
- async sendAccountLockedMail(to, data) {
281
- this.validateEmailAddress(to);
282
- this.emitEmailNotification(notification_enum_1.NotificationSubject.ACCOUNT_LOCKED_MAIL, to, data);
283
- }
284
- async sendAccountLockedSms(to, data) {
285
- this.validatePhoneNumber(to);
286
- this.natsClient.emit(notification_enum_1.NotificationSubject.ACCOUNT_LOCKED_SMS, {
287
- to,
288
- data,
289
- });
290
- }
291
- // Support/Ticket Notifications
292
- async sendTicketCreatedMail(to, data) {
293
- this.validateEmailAddress(to);
294
- this.emitEmailNotification(notification_enum_1.NotificationSubject.TICKET_CREATED_MAIL, to, data);
295
- }
296
- async sendTicketUpdatedMail(to, data) {
297
- this.validateEmailAddress(to);
298
- this.emitEmailNotification(notification_enum_1.NotificationSubject.TICKET_UPDATED_MAIL, to, data);
299
- }
300
- async sendTicketResolvedMail(to, data) {
301
- this.validateEmailAddress(to);
302
- this.emitEmailNotification(notification_enum_1.NotificationSubject.TICKET_RESOLVED_MAIL, to, data);
303
- }
304
- // Saved Card Notifications
305
- async sendCardSavedMail(to, data) {
306
- this.validateEmailAddress(to);
307
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CARD_SAVED_MAIL, to, data);
308
- }
309
- async sendCardRemovedMail(to, data) {
310
- this.validateEmailAddress(to);
311
- this.emitEmailNotification(notification_enum_1.NotificationSubject.CARD_REMOVED_MAIL, to, data);
312
- }
313
- // Push Notifications
314
- async sendPushNotification(data) {
315
- if (!data.userId) {
316
- throw new common_1.BadRequestException('userId is required for push notifications');
317
- }
318
- this.natsClient.emit(notification_enum_1.NotificationSubject.PUSH_NOTIFICATION, data);
319
- }
320
- };
321
- exports.Notification = Notification;
322
- exports.Notification = Notification = __decorate([
323
- (0, common_1.Injectable)(),
324
- __param(0, (0, common_1.Inject)(nats_1.NATS_CLIENT))
325
- ], Notification);
@@ -1,54 +0,0 @@
1
- export declare enum NotificationSubject {
2
- NOTIFICATION_EMAIL_BULK = "notification.email.bulk",
3
- OTP_MAIL = "notification.mail.otp",
4
- EMAIL_VERIFICATION_EMAIL = "notification.mail.email.verification",
5
- PASSWORD_RESET_MAIL = "notification.mail.passwordreset",
6
- FORGET_PIN_OTP_MAIL = "notification.mail.forgetpin.otp",
7
- DEVICE_VERIFICATION_MAIL = "notification.mail.device.verification",
8
- NOTIFICATION_OTP_TEXT = "notification.text.otp",
9
- NOTIFICATION_OTP_VOICE = "notification.voice.otp",
10
- TRANSACTION_SUCCESS_MAIL = "notification.transaction.success.mail",
11
- TRANSACTION_SUCCESS_SMS = "notification.transaction.success.sms",
12
- ACCOUNT_SUSPENDED_MAIL = "notification.account.suspended.mail",
13
- VIRTUAL_ACCOUNT_CREATED_MAIL = "notification.virtual_account.created.mail",
14
- VIRTUAL_ACCOUNT_CREDIT_SMS = "notification.virtual_account.credit.sms",
15
- CARD_CREATED_MAIL = "notification.card.created.mail",
16
- CARD_FROZEN_MAIL = "notification.card.frozen.mail",
17
- CARD_UNFROZEN_MAIL = "notification.card.unfrozen.mail",
18
- CARD_TRANSACTION_MAIL = "notification.card.transaction.mail",
19
- CARD_TRANSACTION_SMS = "notification.card.transaction.sms",
20
- CARD_PIN_ACTIVATED_MAIL = "notification.card.pin_activated.mail",
21
- CRYPTO_TRANSACTION_MAIL = "notification.crypto.transaction.mail",
22
- CRYPTO_TRANSACTION_SMS = "notification.crypto.transaction.sms",
23
- CRYPTO_EXCHANGE_RATE_ALERT_MAIL = "notification.crypto.exchange_rate.alert.mail",
24
- CASHBACK_EARNED_MAIL = "notification.cashback.earned.mail",
25
- CASHBACK_EARNED_SMS = "notification.cashback.earned.sms",
26
- CASHBACK_WITHDRAWAL_MAIL = "notification.cashback.withdrawal.mail",
27
- REFERRAL_BONUS_EARNED_MAIL = "notification.referral.bonus_earned.mail",
28
- REFERRAL_BONUS_EARNED_SMS = "notification.referral.bonus_earned.sms",
29
- NEW_REFERRAL_SIGNUP_MAIL = "notification.referral.new_signup.mail",
30
- GIFT_CARD_ORDER_PLACED_MAIL = "notification.gift_card.order_placed.mail",
31
- GIFT_CARD_ORDER_COMPLETED_MAIL = "notification.gift_card.order_completed.mail",
32
- GIFT_CARD_ORDER_FAILED_MAIL = "notification.gift_card.order_failed.mail",
33
- ESIM_ORDER_PLACED_MAIL = "notification.esim.order_placed.mail",
34
- ESIM_ORDER_COMPLETED_MAIL = "notification.esim.order_completed.mail",
35
- ESIM_ORDER_FAILED_MAIL = "notification.esim.order_failed.mail",
36
- KYC_APPLICATION_SUBMITTED_MAIL = "notification.kyc.application_submitted.mail",
37
- KYC_APPLICATION_APPROVED_MAIL = "notification.kyc.application_approved.mail",
38
- KYC_APPLICATION_REJECTED_MAIL = "notification.kyc.application_rejected.mail",
39
- KYC_REQUIRES_MORE_INFO_MAIL = "notification.kyc.requires_more_info.mail",
40
- LOGIN_FROM_NEW_DEVICE_MAIL = "notification.security.login_new_device.mail",
41
- LOGIN_FROM_NEW_DEVICE_SMS = "notification.security.login_new_device.sms",
42
- PASSWORD_CHANGED_MAIL = "notification.security.password_changed.mail",
43
- TRANSACTION_PIN_CHANGED_MAIL = "notification.security.transaction_pin_changed.mail",
44
- SUSPICIOUS_ACTIVITY_ALERT_MAIL = "notification.security.suspicious_activity.mail",
45
- SUSPICIOUS_ACTIVITY_ALERT_SMS = "notification.security.suspicious_activity.sms",
46
- ACCOUNT_LOCKED_MAIL = "notification.security.account_locked.mail",
47
- ACCOUNT_LOCKED_SMS = "notification.security.account_locked.sms",
48
- TICKET_CREATED_MAIL = "notification.ticket.created.mail",
49
- TICKET_UPDATED_MAIL = "notification.ticket.updated.mail",
50
- TICKET_RESOLVED_MAIL = "notification.ticket.resolved.mail",
51
- CARD_SAVED_MAIL = "notification.saved_card.saved.mail",
52
- CARD_REMOVED_MAIL = "notification.saved_card.removed.mail",
53
- PUSH_NOTIFICATION = "notification.push"
54
- }
@@ -1,73 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationSubject = void 0;
4
- var NotificationSubject;
5
- (function (NotificationSubject) {
6
- // Existing
7
- NotificationSubject["NOTIFICATION_EMAIL_BULK"] = "notification.email.bulk";
8
- NotificationSubject["OTP_MAIL"] = "notification.mail.otp";
9
- NotificationSubject["EMAIL_VERIFICATION_EMAIL"] = "notification.mail.email.verification";
10
- NotificationSubject["PASSWORD_RESET_MAIL"] = "notification.mail.passwordreset";
11
- NotificationSubject["FORGET_PIN_OTP_MAIL"] = "notification.mail.forgetpin.otp";
12
- NotificationSubject["DEVICE_VERIFICATION_MAIL"] = "notification.mail.device.verification";
13
- NotificationSubject["NOTIFICATION_OTP_TEXT"] = "notification.text.otp";
14
- NotificationSubject["NOTIFICATION_OTP_VOICE"] = "notification.voice.otp";
15
- // Transaction
16
- NotificationSubject["TRANSACTION_SUCCESS_MAIL"] = "notification.transaction.success.mail";
17
- NotificationSubject["TRANSACTION_SUCCESS_SMS"] = "notification.transaction.success.sms";
18
- // Account
19
- NotificationSubject["ACCOUNT_SUSPENDED_MAIL"] = "notification.account.suspended.mail";
20
- // Virtual Account
21
- NotificationSubject["VIRTUAL_ACCOUNT_CREATED_MAIL"] = "notification.virtual_account.created.mail";
22
- NotificationSubject["VIRTUAL_ACCOUNT_CREDIT_SMS"] = "notification.virtual_account.credit.sms";
23
- // Card
24
- NotificationSubject["CARD_CREATED_MAIL"] = "notification.card.created.mail";
25
- NotificationSubject["CARD_FROZEN_MAIL"] = "notification.card.frozen.mail";
26
- NotificationSubject["CARD_UNFROZEN_MAIL"] = "notification.card.unfrozen.mail";
27
- NotificationSubject["CARD_TRANSACTION_MAIL"] = "notification.card.transaction.mail";
28
- NotificationSubject["CARD_TRANSACTION_SMS"] = "notification.card.transaction.sms";
29
- NotificationSubject["CARD_PIN_ACTIVATED_MAIL"] = "notification.card.pin_activated.mail";
30
- // Crypto
31
- NotificationSubject["CRYPTO_TRANSACTION_MAIL"] = "notification.crypto.transaction.mail";
32
- NotificationSubject["CRYPTO_TRANSACTION_SMS"] = "notification.crypto.transaction.sms";
33
- NotificationSubject["CRYPTO_EXCHANGE_RATE_ALERT_MAIL"] = "notification.crypto.exchange_rate.alert.mail";
34
- // Cashback
35
- NotificationSubject["CASHBACK_EARNED_MAIL"] = "notification.cashback.earned.mail";
36
- NotificationSubject["CASHBACK_EARNED_SMS"] = "notification.cashback.earned.sms";
37
- NotificationSubject["CASHBACK_WITHDRAWAL_MAIL"] = "notification.cashback.withdrawal.mail";
38
- // Referral
39
- NotificationSubject["REFERRAL_BONUS_EARNED_MAIL"] = "notification.referral.bonus_earned.mail";
40
- NotificationSubject["REFERRAL_BONUS_EARNED_SMS"] = "notification.referral.bonus_earned.sms";
41
- NotificationSubject["NEW_REFERRAL_SIGNUP_MAIL"] = "notification.referral.new_signup.mail";
42
- // Gift Card
43
- NotificationSubject["GIFT_CARD_ORDER_PLACED_MAIL"] = "notification.gift_card.order_placed.mail";
44
- NotificationSubject["GIFT_CARD_ORDER_COMPLETED_MAIL"] = "notification.gift_card.order_completed.mail";
45
- NotificationSubject["GIFT_CARD_ORDER_FAILED_MAIL"] = "notification.gift_card.order_failed.mail";
46
- // ESIM
47
- NotificationSubject["ESIM_ORDER_PLACED_MAIL"] = "notification.esim.order_placed.mail";
48
- NotificationSubject["ESIM_ORDER_COMPLETED_MAIL"] = "notification.esim.order_completed.mail";
49
- NotificationSubject["ESIM_ORDER_FAILED_MAIL"] = "notification.esim.order_failed.mail";
50
- // KYC
51
- NotificationSubject["KYC_APPLICATION_SUBMITTED_MAIL"] = "notification.kyc.application_submitted.mail";
52
- NotificationSubject["KYC_APPLICATION_APPROVED_MAIL"] = "notification.kyc.application_approved.mail";
53
- NotificationSubject["KYC_APPLICATION_REJECTED_MAIL"] = "notification.kyc.application_rejected.mail";
54
- NotificationSubject["KYC_REQUIRES_MORE_INFO_MAIL"] = "notification.kyc.requires_more_info.mail";
55
- // Security
56
- NotificationSubject["LOGIN_FROM_NEW_DEVICE_MAIL"] = "notification.security.login_new_device.mail";
57
- NotificationSubject["LOGIN_FROM_NEW_DEVICE_SMS"] = "notification.security.login_new_device.sms";
58
- NotificationSubject["PASSWORD_CHANGED_MAIL"] = "notification.security.password_changed.mail";
59
- NotificationSubject["TRANSACTION_PIN_CHANGED_MAIL"] = "notification.security.transaction_pin_changed.mail";
60
- NotificationSubject["SUSPICIOUS_ACTIVITY_ALERT_MAIL"] = "notification.security.suspicious_activity.mail";
61
- NotificationSubject["SUSPICIOUS_ACTIVITY_ALERT_SMS"] = "notification.security.suspicious_activity.sms";
62
- NotificationSubject["ACCOUNT_LOCKED_MAIL"] = "notification.security.account_locked.mail";
63
- NotificationSubject["ACCOUNT_LOCKED_SMS"] = "notification.security.account_locked.sms";
64
- // Support/Ticket
65
- NotificationSubject["TICKET_CREATED_MAIL"] = "notification.ticket.created.mail";
66
- NotificationSubject["TICKET_UPDATED_MAIL"] = "notification.ticket.updated.mail";
67
- NotificationSubject["TICKET_RESOLVED_MAIL"] = "notification.ticket.resolved.mail";
68
- // Saved Card
69
- NotificationSubject["CARD_SAVED_MAIL"] = "notification.saved_card.saved.mail";
70
- NotificationSubject["CARD_REMOVED_MAIL"] = "notification.saved_card.removed.mail";
71
- // Push Notifications
72
- NotificationSubject["PUSH_NOTIFICATION"] = "notification.push";
73
- })(NotificationSubject || (exports.NotificationSubject = NotificationSubject = {}));