@valentine-efagene/qshelter-common 1.0.3 → 1.1.3
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/dist/encryption/encryption.module.d.ts +2 -0
- package/dist/encryption/encryption.module.js +24 -0
- package/dist/encryption/encryption.module.js.map +1 -0
- package/dist/encryption/encryption.service.d.ts +17 -0
- package/dist/encryption/encryption.service.js +95 -0
- package/dist/encryption/encryption.service.js.map +1 -0
- package/dist/entities/amenity.entity.js +1 -0
- package/dist/entities/amenity.entity.js.map +1 -1
- package/dist/entities/common.entity.js +6 -5
- package/dist/entities/common.entity.js.map +1 -1
- package/dist/entities/contract-document.entity.d.ts +39 -0
- package/dist/entities/contract-document.entity.js +115 -0
- package/dist/entities/contract-document.entity.js.map +1 -0
- package/dist/entities/contract.entity.d.ts +62 -0
- package/dist/entities/contract.entity.js +191 -0
- package/dist/entities/contract.entity.js.map +1 -0
- package/dist/entities/device_endpoint.entity.d.ts +10 -0
- package/dist/entities/device_endpoint.entity.js +50 -0
- package/dist/entities/device_endpoint.entity.js.map +1 -0
- package/dist/entities/email_preference.entity.d.ts +6 -0
- package/dist/entities/email_preference.entity.js +45 -0
- package/dist/entities/email_preference.entity.js.map +1 -0
- package/dist/entities/index.d.ts +10 -0
- package/dist/entities/index.js +10 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/mortgage-document.entity.js +6 -6
- package/dist/entities/mortgage-document.entity.js.map +1 -1
- package/dist/entities/mortgage-downpayment-installment.entity.d.ts +2 -2
- package/dist/entities/mortgage-downpayment-installment.entity.js +15 -15
- package/dist/entities/mortgage-downpayment-installment.entity.js.map +1 -1
- package/dist/entities/mortgage-downpayment-payment.entity.js +8 -8
- package/dist/entities/mortgage-downpayment-payment.entity.js.map +1 -1
- package/dist/entities/mortgage-downpayment.entity.js +6 -6
- package/dist/entities/mortgage-downpayment.entity.js.map +1 -1
- package/dist/entities/mortgage-step.entity.js +6 -6
- package/dist/entities/mortgage-step.entity.js.map +1 -1
- package/dist/entities/mortgage-transition-event.entity.d.ts +26 -0
- package/dist/entities/mortgage-transition-event.entity.js +111 -0
- package/dist/entities/mortgage-transition-event.entity.js.map +1 -0
- package/dist/entities/mortgage-transition.entity.d.ts +25 -0
- package/dist/entities/mortgage-transition.entity.js +91 -0
- package/dist/entities/mortgage-transition.entity.js.map +1 -0
- package/dist/entities/mortgage-type.entity.js +6 -6
- package/dist/entities/mortgage-type.entity.js.map +1 -1
- package/dist/entities/password_reset_tokens.entity.js +2 -0
- package/dist/entities/password_reset_tokens.entity.js.map +1 -1
- package/dist/entities/payment-installment.entity.d.ts +39 -0
- package/dist/entities/payment-installment.entity.js +134 -0
- package/dist/entities/payment-installment.entity.js.map +1 -0
- package/dist/entities/payment-plan.entity.d.ts +62 -0
- package/dist/entities/payment-plan.entity.js +174 -0
- package/dist/entities/payment-plan.entity.js.map +1 -0
- package/dist/entities/payment-schedule.entity.d.ts +44 -0
- package/dist/entities/payment-schedule.entity.js +134 -0
- package/dist/entities/payment-schedule.entity.js.map +1 -0
- package/dist/entities/payment.entity.d.ts +55 -0
- package/dist/entities/payment.entity.js +157 -0
- package/dist/entities/payment.entity.js.map +1 -0
- package/dist/entities/permission.entity.js +1 -1
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/property-document.entity.js +1 -1
- package/dist/entities/property-document.entity.js.map +1 -1
- package/dist/entities/property-media.entity.js +1 -0
- package/dist/entities/property-media.entity.js.map +1 -1
- package/dist/entities/property.entity.d.ts +5 -1
- package/dist/entities/property.entity.js +27 -10
- package/dist/entities/property.entity.js.map +1 -1
- package/dist/entities/refresh_token.entity.js +2 -2
- package/dist/entities/refresh_token.entity.js.map +1 -1
- package/dist/entities/role.entity.js +1 -1
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/settings.entity.js +9 -7
- package/dist/entities/settings.entity.js.map +1 -1
- package/dist/entities/social.entity.js +3 -1
- package/dist/entities/social.entity.js.map +1 -1
- package/dist/entities/tenant.entity.js +14 -14
- package/dist/entities/tenant.entity.js.map +1 -1
- package/dist/entities/transaction.entity.js +9 -6
- package/dist/entities/transaction.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/entities/user.entity.js +13 -7
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/user_suspensions.entity.js +2 -0
- package/dist/entities/user_suspensions.entity.js.map +1 -1
- package/dist/entities/wallet.entity.js +2 -2
- package/dist/entities/wallet.entity.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/qr-code/qr-code.dto.d.ts +3 -0
- package/dist/qr-code/qr-code.dto.js +21 -0
- package/dist/qr-code/qr-code.dto.js.map +1 -0
- package/dist/qr-code/qr-code.module.d.ts +2 -0
- package/dist/qr-code/qr-code.module.js +24 -0
- package/dist/qr-code/qr-code.module.js.map +1 -0
- package/dist/qr-code/qr-code.service.d.ts +11 -0
- package/dist/qr-code/qr-code.service.js +99 -0
- package/dist/qr-code/qr-code.service.js.map +1 -0
- package/dist/qr-code/qr-code.type.d.ts +5 -0
- package/dist/qr-code/qr-code.type.js +3 -0
- package/dist/qr-code/qr-code.type.js.map +1 -0
- package/dist/services/notifications/src/common/common.entity.d.ts +6 -0
- package/dist/services/notifications/src/common/common.entity.js +37 -0
- package/dist/services/notifications/src/common/common.entity.js.map +1 -0
- package/dist/shared/common/OpenApiHelper.d.ts +9 -0
- package/dist/shared/common/OpenApiHelper.js +118 -0
- package/dist/shared/common/OpenApiHelper.js.map +1 -0
- package/dist/shared/common/decorator/index.d.ts +2 -0
- package/dist/shared/common/decorator/index.js +19 -0
- package/dist/shared/common/decorator/index.js.map +1 -0
- package/dist/shared/common/decorator/permission.decorator.d.ts +2 -0
- package/dist/shared/common/decorator/permission.decorator.js +6 -0
- package/dist/shared/common/decorator/permission.decorator.js.map +1 -0
- package/dist/shared/common/decorator/tenant.decorator.d.ts +2 -0
- package/dist/shared/common/decorator/tenant.decorator.js +13 -0
- package/dist/shared/common/decorator/tenant.decorator.js.map +1 -0
- package/dist/shared/common/entities/BaseEntity.d.ts +11 -0
- package/dist/shared/common/entities/BaseEntity.js +54 -0
- package/dist/shared/common/entities/BaseEntity.js.map +1 -0
- package/dist/shared/common/entities/TenantAwareEntity.d.ts +10 -0
- package/dist/shared/common/entities/TenantAwareEntity.js +52 -0
- package/dist/shared/common/entities/TenantAwareEntity.js.map +1 -0
- package/dist/shared/common/entities/TenantAwareRepository.d.ts +13 -0
- package/dist/shared/common/entities/TenantAwareRepository.js +65 -0
- package/dist/shared/common/entities/TenantAwareRepository.js.map +1 -0
- package/dist/shared/common/entities/amenity.entity.d.ts +4 -0
- package/dist/shared/common/entities/amenity.entity.js +28 -0
- package/dist/shared/common/entities/amenity.entity.js.map +1 -0
- package/dist/shared/common/entities/common.entity.d.ts +17 -0
- package/dist/shared/common/entities/common.entity.js +64 -0
- package/dist/shared/common/entities/common.entity.js.map +1 -0
- package/dist/shared/common/entities/common.pure.entity.d.ts +11 -0
- package/dist/shared/common/entities/common.pure.entity.js +52 -0
- package/dist/shared/common/entities/common.pure.entity.js.map +1 -0
- package/dist/shared/common/entities/contract-document.entity.d.ts +39 -0
- package/dist/shared/common/entities/contract-document.entity.js +115 -0
- package/dist/shared/common/entities/contract-document.entity.js.map +1 -0
- package/dist/shared/common/entities/contract.entity.d.ts +62 -0
- package/dist/shared/common/entities/contract.entity.js +191 -0
- package/dist/shared/common/entities/contract.entity.js.map +1 -0
- package/dist/shared/common/entities/device_endpoint.entity.d.ts +10 -0
- package/dist/shared/common/entities/device_endpoint.entity.js +50 -0
- package/dist/shared/common/entities/device_endpoint.entity.js.map +1 -0
- package/dist/shared/common/entities/email_preference.entity.d.ts +6 -0
- package/dist/shared/common/entities/email_preference.entity.js +42 -0
- package/dist/shared/common/entities/email_preference.entity.js.map +1 -0
- package/dist/shared/common/entities/index.d.ts +35 -0
- package/dist/shared/common/entities/index.js +52 -0
- package/dist/shared/common/entities/index.js.map +1 -0
- package/dist/shared/common/entities/mortgage-document.entity.d.ts +14 -0
- package/dist/shared/common/entities/mortgage-document.entity.js +58 -0
- package/dist/shared/common/entities/mortgage-document.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.d.ts +19 -0
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.js +63 -0
- package/dist/shared/common/entities/mortgage-downpayment-installment.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.d.ts +28 -0
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.js +84 -0
- package/dist/shared/common/entities/mortgage-downpayment-payment.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-downpayment.entity.d.ts +22 -0
- package/dist/shared/common/entities/mortgage-downpayment.entity.js +66 -0
- package/dist/shared/common/entities/mortgage-downpayment.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-step.entity.d.ts +12 -0
- package/dist/shared/common/entities/mortgage-step.entity.js +52 -0
- package/dist/shared/common/entities/mortgage-step.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-transition-event.entity.d.ts +26 -0
- package/dist/shared/common/entities/mortgage-transition-event.entity.js +111 -0
- package/dist/shared/common/entities/mortgage-transition-event.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-transition.entity.d.ts +25 -0
- package/dist/shared/common/entities/mortgage-transition.entity.js +91 -0
- package/dist/shared/common/entities/mortgage-transition.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage-type.entity.d.ts +10 -0
- package/dist/shared/common/entities/mortgage-type.entity.js +46 -0
- package/dist/shared/common/entities/mortgage-type.entity.js.map +1 -0
- package/dist/shared/common/entities/mortgage.entity.d.ts +37 -0
- package/dist/shared/common/entities/mortgage.entity.js +124 -0
- package/dist/shared/common/entities/mortgage.entity.js.map +1 -0
- package/dist/shared/common/entities/password_reset_tokens.entity.d.ts +7 -0
- package/dist/shared/common/entities/password_reset_tokens.entity.js +45 -0
- package/dist/shared/common/entities/password_reset_tokens.entity.js.map +1 -0
- package/dist/shared/common/entities/payment-installment.entity.d.ts +39 -0
- package/dist/shared/common/entities/payment-installment.entity.js +134 -0
- package/dist/shared/common/entities/payment-installment.entity.js.map +1 -0
- package/dist/shared/common/entities/payment-plan.entity.d.ts +62 -0
- package/dist/shared/common/entities/payment-plan.entity.js +174 -0
- package/dist/shared/common/entities/payment-plan.entity.js.map +1 -0
- package/dist/shared/common/entities/payment-schedule.entity.d.ts +44 -0
- package/dist/shared/common/entities/payment-schedule.entity.js +134 -0
- package/dist/shared/common/entities/payment-schedule.entity.js.map +1 -0
- package/dist/shared/common/entities/payment.entity.d.ts +55 -0
- package/dist/shared/common/entities/payment.entity.js +157 -0
- package/dist/shared/common/entities/payment.entity.js.map +1 -0
- package/dist/shared/common/entities/permission.entity.d.ts +6 -0
- package/dist/shared/common/entities/permission.entity.js +30 -0
- package/dist/shared/common/entities/permission.entity.js.map +1 -0
- package/dist/shared/common/entities/property-document.entity.d.ts +6 -0
- package/dist/shared/common/entities/property-document.entity.js +34 -0
- package/dist/shared/common/entities/property-document.entity.js.map +1 -0
- package/dist/shared/common/entities/property-media.entity.d.ts +6 -0
- package/dist/shared/common/entities/property-media.entity.js +37 -0
- package/dist/shared/common/entities/property-media.entity.js.map +1 -0
- package/dist/shared/common/entities/property.entity.d.ts +39 -0
- package/dist/shared/common/entities/property.entity.js +193 -0
- package/dist/shared/common/entities/property.entity.js.map +1 -0
- package/dist/shared/common/entities/refresh_token.entity.d.ts +7 -0
- package/dist/shared/common/entities/refresh_token.entity.js +35 -0
- package/dist/shared/common/entities/refresh_token.entity.js.map +1 -0
- package/dist/shared/common/entities/role.entity.d.ts +8 -0
- package/dist/shared/common/entities/role.entity.js +39 -0
- package/dist/shared/common/entities/role.entity.js.map +1 -0
- package/dist/shared/common/entities/settings.entity.d.ts +17 -0
- package/dist/shared/common/entities/settings.entity.js +81 -0
- package/dist/shared/common/entities/settings.entity.js.map +1 -0
- package/dist/shared/common/entities/social.entity.d.ts +8 -0
- package/dist/shared/common/entities/social.entity.js +48 -0
- package/dist/shared/common/entities/social.entity.js.map +1 -0
- package/dist/shared/common/entities/tenant.entity.d.ts +29 -0
- package/dist/shared/common/entities/tenant.entity.js +82 -0
- package/dist/shared/common/entities/tenant.entity.js.map +1 -0
- package/dist/shared/common/entities/transaction.entity.d.ts +17 -0
- package/dist/shared/common/entities/transaction.entity.js +87 -0
- package/dist/shared/common/entities/transaction.entity.js.map +1 -0
- package/dist/shared/common/entities/user.entity.d.ts +26 -0
- package/dist/shared/common/entities/user.entity.js +104 -0
- package/dist/shared/common/entities/user.entity.js.map +1 -0
- package/dist/shared/common/entities/user_suspensions.entity.d.ts +7 -0
- package/dist/shared/common/entities/user_suspensions.entity.js +44 -0
- package/dist/shared/common/entities/user_suspensions.entity.js.map +1 -0
- package/dist/shared/common/entities/wallet.entity.d.ts +17 -0
- package/dist/shared/common/entities/wallet.entity.js +79 -0
- package/dist/shared/common/entities/wallet.entity.js.map +1 -0
- package/dist/shared/common/guard/index.d.ts +2 -0
- package/dist/shared/common/guard/index.js +19 -0
- package/dist/shared/common/guard/index.js.map +1 -0
- package/dist/shared/common/guard/permission.guard.d.ts +10 -0
- package/dist/shared/common/guard/permission.guard.js +47 -0
- package/dist/shared/common/guard/permission.guard.js.map +1 -0
- package/dist/shared/common/guard/swagger-auth.guard.d.ts +1 -0
- package/dist/shared/common/guard/swagger-auth.guard.js +9 -0
- package/dist/shared/common/guard/swagger-auth.guard.js.map +1 -0
- package/dist/shared/common/helpers/ArrayHelper.d.ts +2 -0
- package/dist/shared/common/helpers/ArrayHelper.js +6 -0
- package/dist/shared/common/helpers/ArrayHelper.js.map +1 -0
- package/dist/shared/common/helpers/ConstantHelper.d.ts +36 -0
- package/dist/shared/common/helpers/ConstantHelper.js +90 -0
- package/dist/shared/common/helpers/ConstantHelper.js.map +1 -0
- package/dist/shared/common/helpers/CustomNamingStrategy.d.ts +7 -0
- package/dist/shared/common/helpers/CustomNamingStrategy.js +22 -0
- package/dist/shared/common/helpers/CustomNamingStrategy.js.map +1 -0
- package/dist/shared/common/helpers/DateHelper.d.ts +3 -0
- package/dist/shared/common/helpers/DateHelper.js +20 -0
- package/dist/shared/common/helpers/DateHelper.js.map +1 -0
- package/dist/shared/common/helpers/EmailHelper.d.ts +4 -0
- package/dist/shared/common/helpers/EmailHelper.js +65 -0
- package/dist/shared/common/helpers/EmailHelper.js.map +1 -0
- package/dist/shared/common/helpers/FileSystemHelper.d.ts +15 -0
- package/dist/shared/common/helpers/FileSystemHelper.js +112 -0
- package/dist/shared/common/helpers/FileSystemHelper.js.map +1 -0
- package/dist/shared/common/helpers/index.d.ts +5 -0
- package/dist/shared/common/helpers/index.js +22 -0
- package/dist/shared/common/helpers/index.js.map +1 -0
- package/dist/shared/common/index.d.ts +9 -0
- package/dist/shared/common/index.js +26 -0
- package/dist/shared/common/index.js.map +1 -0
- package/dist/shared/common/middleware/AccessLoggerMiddleware.d.ts +6 -0
- package/dist/shared/common/middleware/AccessLoggerMiddleware.js +64 -0
- package/dist/shared/common/middleware/AccessLoggerMiddleware.js.map +1 -0
- package/dist/shared/common/middleware/AuthenticationMiddleware.d.ts +5 -0
- package/dist/shared/common/middleware/AuthenticationMiddleware.js +19 -0
- package/dist/shared/common/middleware/AuthenticationMiddleware.js.map +1 -0
- package/dist/shared/common/middleware/TenantMiddleware.d.ts +14 -0
- package/dist/shared/common/middleware/TenantMiddleware.js +49 -0
- package/dist/shared/common/middleware/TenantMiddleware.js.map +1 -0
- package/dist/shared/common/middleware/index.d.ts +3 -0
- package/dist/shared/common/middleware/index.js +20 -0
- package/dist/shared/common/middleware/index.js.map +1 -0
- package/dist/shared/common/pagination/index.d.ts +2 -0
- package/dist/shared/common/pagination/index.js +19 -0
- package/dist/shared/common/pagination/index.js.map +1 -0
- package/dist/shared/common/pagination/pagination.helper.d.ts +7 -0
- package/dist/shared/common/pagination/pagination.helper.js +40 -0
- package/dist/shared/common/pagination/pagination.helper.js.map +1 -0
- package/dist/shared/common/pagination/pagination.types.d.ts +19 -0
- package/dist/shared/common/pagination/pagination.types.js +3 -0
- package/dist/shared/common/pagination/pagination.types.js.map +1 -0
- package/dist/shared/common/standard-response.d.ts +7 -0
- package/dist/shared/common/standard-response.js +27 -0
- package/dist/shared/common/standard-response.js.map +1 -0
- package/dist/shared/common/types/common.type.d.ts +54 -0
- package/dist/shared/common/types/common.type.js +55 -0
- package/dist/shared/common/types/common.type.js.map +1 -0
- package/dist/shared/common/types/index.d.ts +8 -0
- package/dist/shared/common/types/index.js +25 -0
- package/dist/shared/common/types/index.js.map +1 -0
- package/dist/shared/common/types/mortgage-fsm.type.d.ts +180 -0
- package/dist/shared/common/types/mortgage-fsm.type.js +130 -0
- package/dist/shared/common/types/mortgage-fsm.type.js.map +1 -0
- package/dist/shared/common/types/permission.type.d.ts +42 -0
- package/dist/shared/common/types/permission.type.js +47 -0
- package/dist/shared/common/types/permission.type.js.map +1 -0
- package/dist/shared/common/types/policy.type.d.ts +18 -0
- package/dist/shared/common/types/policy.type.js +3 -0
- package/dist/shared/common/types/policy.type.js.map +1 -0
- package/dist/shared/common/types/property.type.d.ts +9 -0
- package/dist/shared/common/types/property.type.js +15 -0
- package/dist/shared/common/types/property.type.js.map +1 -0
- package/dist/shared/common/types/tenant.type.d.ts +13 -0
- package/dist/shared/common/types/tenant.type.js +19 -0
- package/dist/shared/common/types/tenant.type.js.map +1 -0
- package/dist/shared/common/types/transaction.type.d.ts +8 -0
- package/dist/shared/common/types/transaction.type.js +14 -0
- package/dist/shared/common/types/transaction.type.js.map +1 -0
- package/dist/shared/common/types/user.type.d.ts +10 -0
- package/dist/shared/common/types/user.type.js +16 -0
- package/dist/shared/common/types/user.type.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common.type.d.ts +16 -3
- package/dist/types/common.type.js +13 -1
- package/dist/types/common.type.js.map +1 -1
- package/package.json +13 -11
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Wallet = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const transaction_entity_1 = require("./transaction.entity");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
16
|
+
const types_1 = require("types");
|
|
17
|
+
let Wallet = class Wallet {
|
|
18
|
+
};
|
|
19
|
+
exports.Wallet = Wallet;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], Wallet.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.wallets),
|
|
26
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
27
|
+
__metadata("design:type", user_entity_1.User)
|
|
28
|
+
], Wallet.prototype, "user", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'user_id' }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], Wallet.prototype, "userId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({
|
|
35
|
+
type: 'enum',
|
|
36
|
+
enum: types_1.Currency
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], Wallet.prototype, "currency", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'customer_id' }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Wallet.prototype, "customerId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'bank_name' }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Wallet.prototype, "bankName", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'account_number' }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Wallet.prototype, "accountNumber", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ name: 'account_name' }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Wallet.prototype, "accountName", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 65, scale: 2, nullable: true }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], Wallet.prototype, "balance", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)(),
|
|
62
|
+
__metadata("design:type", Boolean)
|
|
63
|
+
], Wallet.prototype, "enabled", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], Wallet.prototype, "createdAt", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
70
|
+
__metadata("design:type", Date)
|
|
71
|
+
], Wallet.prototype, "updatedAt", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.OneToMany)(() => transaction_entity_1.Transaction, transaction => transaction.wallet),
|
|
74
|
+
__metadata("design:type", Array)
|
|
75
|
+
], Wallet.prototype, "transactions", void 0);
|
|
76
|
+
exports.Wallet = Wallet = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)({ name: 'wallets' })
|
|
78
|
+
], Wallet);
|
|
79
|
+
//# sourceMappingURL=wallet.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet.entity.js","sourceRoot":"","sources":["../../../../entities/wallet.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuI;AACvI,6DAAmD;AACnD,+CAAqC;AACrC,iCAAiC;AAG1B,IAAM,MAAM,GAAZ,MAAM,MAAM;CA2ClB,CAAA;AA3CY,wBAAM;AAEjB;IADC,IAAA,gCAAsB,GAAE;;kCACd;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;IAC7C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;oCAAC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sCACd;AAMd;IAJC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gBAAQ;KACf,CAAC;;wCACc;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;0CACd;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;wCACd;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;6CACd;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;2CACd;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACrD;AAGhB;IADC,IAAA,gBAAM,GAAE;;uCACO;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC9B,IAAI;yCAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC9B,IAAI;yCAAC;AAGhB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;;4CACrC;iBA1ChB,MAAM;IADlB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;GACf,MAAM,CA2ClB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./permission.guard"), exports);
|
|
18
|
+
__exportStar(require("./swagger-auth.guard"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../guard/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
+
import { Reflector } from '@nestjs/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { User } from '../entities/user.entity';
|
|
5
|
+
export declare class PermissionGuard implements CanActivate {
|
|
6
|
+
private reflector;
|
|
7
|
+
constructor(reflector: Reflector);
|
|
8
|
+
canActivate(context: ExecutionContext): boolean | Promise<boolean> | Observable<boolean>;
|
|
9
|
+
matchPermission(permission: string, user: User): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PermissionGuard = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const core_1 = require("@nestjs/core");
|
|
15
|
+
const permission_decorator_1 = require("../decorator/permission.decorator");
|
|
16
|
+
let PermissionGuard = class PermissionGuard {
|
|
17
|
+
constructor(reflector) {
|
|
18
|
+
this.reflector = reflector;
|
|
19
|
+
}
|
|
20
|
+
canActivate(context) {
|
|
21
|
+
const permission = this.reflector.get(permission_decorator_1.RequirePermission, context.getHandler());
|
|
22
|
+
if (!permission) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
const request = context.switchToHttp().getRequest();
|
|
26
|
+
const user = request.user;
|
|
27
|
+
if (!user) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
return this.matchPermission(permission, user);
|
|
31
|
+
}
|
|
32
|
+
matchPermission(permission, user) {
|
|
33
|
+
const roles = user.roles;
|
|
34
|
+
if (!roles || roles.length < 1) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
const permissions = roles.map(role => role.permissions).reduce((acc, curr) => [...acc, ...curr]) ?? [];
|
|
38
|
+
const permissionNames = permissions?.map(permission => permission.name);
|
|
39
|
+
return permissionNames.includes(permission);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports.PermissionGuard = PermissionGuard;
|
|
43
|
+
exports.PermissionGuard = PermissionGuard = __decorate([
|
|
44
|
+
(0, common_1.Injectable)(),
|
|
45
|
+
__metadata("design:paramtypes", [core_1.Reflector])
|
|
46
|
+
], PermissionGuard);
|
|
47
|
+
//# sourceMappingURL=permission.guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.guard.js","sourceRoot":"","sources":["../../../../guard/permission.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA2E;AAC3E,uCAAyC;AACzC,4EAAsE;AAK/D,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAAoB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;IAAI,CAAC;IAE7C,WAAW,CACT,OAAyB;QAEzB,MAAM,UAA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edPropertyDescriptor<Y>) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SwaggerAuth = SwaggerAuth;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
6
|
+
function SwaggerAuth() {
|
|
7
|
+
return (0, common_1.applyDecorators)((0, swagger_1.ApiBearerAuth)());
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=swagger-auth.guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swagger-auth.guard.js","sourceRoot":"","sources":["../../../../guard/swagger-auth.guard.ts"],"names":[],"mappings":";;AAGA,kCAKC;AARD,2CAA4D;AAC5D,6CAAgD;AAEhD,SAAgB,WAAW;IACvB,OAAO,IAAA,wBAAe,EAElB,IAAA,uBAAa,GAAE,CAClB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayHelper.js","sourceRoot":"","sources":["../../../../helpers/ArrayHelper.ts"],"names":[],"mappings":";;AAAA,MAAqB,WAAW;CAAG;AAAnC,8BAAmC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare class ConstantHelper {
|
|
2
|
+
static readonly mailConstants: {
|
|
3
|
+
firstEmail: string;
|
|
4
|
+
secondEmail: string;
|
|
5
|
+
thirdEmail: string;
|
|
6
|
+
supportEmail: string;
|
|
7
|
+
appLink: string;
|
|
8
|
+
appLogo: string;
|
|
9
|
+
firstPhoneNumber: string;
|
|
10
|
+
secondPhoneNumber: string;
|
|
11
|
+
firstPhoneLink: string;
|
|
12
|
+
secondPhoneLink: string;
|
|
13
|
+
supportPhone: string;
|
|
14
|
+
firstOfficeAddress: string;
|
|
15
|
+
secondOfficeAddress: string;
|
|
16
|
+
officeAddress: string;
|
|
17
|
+
facebookLink: string;
|
|
18
|
+
facebookLogo: string;
|
|
19
|
+
twitterLink: string;
|
|
20
|
+
twitterLogo: string;
|
|
21
|
+
instagramLink: string;
|
|
22
|
+
instagramLogo: string;
|
|
23
|
+
youtubeLink: string;
|
|
24
|
+
youtubeLogo: string;
|
|
25
|
+
linkedinLink: string;
|
|
26
|
+
linkedinLogo: string;
|
|
27
|
+
unsubscribeLink: string;
|
|
28
|
+
};
|
|
29
|
+
static get socialLinks(): {
|
|
30
|
+
name: string;
|
|
31
|
+
link: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
}[];
|
|
34
|
+
static readonly exampleTicketTemplate = "\n <!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>Your Ticket</title>\n</head>\n<body style=\"margin: 0; padding: 0; font-family: Arial, sans-serif; background: #f7f7f7;\">\n <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"padding: 2rem 0;\">\n <tr>\n <td align=\"center\">\n <table width=\"400\" cellpadding=\"0\" cellspacing=\"0\" style=\"background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden;\">\n <tr>\n <td style=\"padding: 1.5rem; background: #2c3e50; color: #fff; text-align: center;\">\n <h2 style=\"margin: 0; font-size: 24px;\">Your Event Ticket</h2>\n </td>\n </tr>\n\n <tr>\n <td style=\"padding: 1.5rem;\">\n <p style=\"margin: 0 0 1rem;\">Hello <strong>{{name}}</strong>,</p>\n <p style=\"margin: 0 0 1rem;\">Thanks for registering! Below is your ticket barcode:</p>\n\n <div style=\"text-align: center; margin: 2rem 0;\">\n <img src=\"{{qrCodeUrl}}\" alt=\"Ticket Barcode\" style=\"width: 80%; max-width: 150px;\" />\n </div>\n\n <p style=\"font-size: 0.9rem; color: #7f8c8d; text-align: center;\">\n Please bring this ticket or show it on your phone at the entrance.\n </p>\n </td>\n </tr>\n\n <tr>\n <td style=\"padding: 1rem; background: #ecf0f1; text-align: center;\">\n <small style=\"color: #95a5a6;\">© 2025 MediaCraft. All rights reserved.</small>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n</body>\n</html>\n";
|
|
35
|
+
}
|
|
36
|
+
export { ConstantHelper };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConstantHelper = void 0;
|
|
4
|
+
class ConstantHelper {
|
|
5
|
+
static get socialLinks() {
|
|
6
|
+
const { mailConstants: c } = this;
|
|
7
|
+
return [
|
|
8
|
+
{ name: "Facebook", link: c.facebookLink, icon: c.facebookLogo },
|
|
9
|
+
{ name: "Twitter", link: c.twitterLink, icon: c.twitterLogo },
|
|
10
|
+
{ name: "Instagram", link: c.instagramLink, icon: c.instagramLogo },
|
|
11
|
+
{ name: "YouTube", link: c.youtubeLink, icon: c.youtubeLogo },
|
|
12
|
+
{ name: "LinkedIn", link: c.linkedinLink, icon: c.linkedinLogo },
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ConstantHelper = ConstantHelper;
|
|
17
|
+
ConstantHelper.mailConstants = {
|
|
18
|
+
firstEmail: process.env.FIRST_EMAIL,
|
|
19
|
+
secondEmail: process.env.INFO_EMAIL,
|
|
20
|
+
thirdEmail: process.env.SUPPORT_EMAIL,
|
|
21
|
+
supportEmail: process.env.SUPPORT_EMAIL,
|
|
22
|
+
appLink: process.env.APP_LINK,
|
|
23
|
+
appLogo: process.env.APP_LOGO,
|
|
24
|
+
firstPhoneNumber: process.env.FIRST_PHONE_NUMBER,
|
|
25
|
+
secondPhoneNumber: process.env.SECOND_PHONE_NUMBER,
|
|
26
|
+
firstPhoneLink: process.env.FIRST_PHONE_LINK,
|
|
27
|
+
secondPhoneLink: process.env.SECOND_PHONE_LINK,
|
|
28
|
+
supportPhone: process.env.SUPPORT_PHONE,
|
|
29
|
+
firstOfficeAddress: process.env.FIRST_OFFICE_ADDRESS,
|
|
30
|
+
secondOfficeAddress: process.env.SECOND_OFFICE_ADDRESS,
|
|
31
|
+
officeAddress: process.env.OFFICE_ADDRESS,
|
|
32
|
+
facebookLink: process.env.FACEBOOK_LINK,
|
|
33
|
+
facebookLogo: process.env.FACEBOOK_LOGO,
|
|
34
|
+
twitterLink: process.env.TWITTER_LINK,
|
|
35
|
+
twitterLogo: process.env.TWITTER_LOGO,
|
|
36
|
+
instagramLink: process.env.INSTAGRAM_LINK,
|
|
37
|
+
instagramLogo: process.env.INSTAGRAM_LOGO,
|
|
38
|
+
youtubeLink: process.env.YOUTUBE_LINK,
|
|
39
|
+
youtubeLogo: process.env.YOUTUBE_LOGO,
|
|
40
|
+
linkedinLink: process.env.LINKEDIN_LINK,
|
|
41
|
+
linkedinLogo: process.env.LINKEDIN_LOGO,
|
|
42
|
+
unsubscribeLink: process.env.UNSUBSCRIBE_LINK,
|
|
43
|
+
};
|
|
44
|
+
ConstantHelper.exampleTicketTemplate = `
|
|
45
|
+
<!DOCTYPE html>
|
|
46
|
+
<html lang="en">
|
|
47
|
+
<head>
|
|
48
|
+
<meta charset="UTF-8" />
|
|
49
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
50
|
+
<title>Your Ticket</title>
|
|
51
|
+
</head>
|
|
52
|
+
<body style="margin: 0; padding: 0; font-family: Arial, sans-serif; background: #f7f7f7;">
|
|
53
|
+
<table width="100%" cellpadding="0" cellspacing="0" style="padding: 2rem 0;">
|
|
54
|
+
<tr>
|
|
55
|
+
<td align="center">
|
|
56
|
+
<table width="400" cellpadding="0" cellspacing="0" style="background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden;">
|
|
57
|
+
<tr>
|
|
58
|
+
<td style="padding: 1.5rem; background: #2c3e50; color: #fff; text-align: center;">
|
|
59
|
+
<h2 style="margin: 0; font-size: 24px;">Your Event Ticket</h2>
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
|
|
63
|
+
<tr>
|
|
64
|
+
<td style="padding: 1.5rem;">
|
|
65
|
+
<p style="margin: 0 0 1rem;">Hello <strong>{{name}}</strong>,</p>
|
|
66
|
+
<p style="margin: 0 0 1rem;">Thanks for registering! Below is your ticket barcode:</p>
|
|
67
|
+
|
|
68
|
+
<div style="text-align: center; margin: 2rem 0;">
|
|
69
|
+
<img src="{{qrCodeUrl}}" alt="Ticket Barcode" style="width: 80%; max-width: 150px;" />
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<p style="font-size: 0.9rem; color: #7f8c8d; text-align: center;">
|
|
73
|
+
Please bring this ticket or show it on your phone at the entrance.
|
|
74
|
+
</p>
|
|
75
|
+
</td>
|
|
76
|
+
</tr>
|
|
77
|
+
|
|
78
|
+
<tr>
|
|
79
|
+
<td style="padding: 1rem; background: #ecf0f1; text-align: center;">
|
|
80
|
+
<small style="color: #95a5a6;">© 2025 MediaCraft. All rights reserved.</small>
|
|
81
|
+
</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</table>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
</table>
|
|
87
|
+
</body>
|
|
88
|
+
</html>
|
|
89
|
+
`;
|
|
90
|
+
//# sourceMappingURL=ConstantHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstantHelper.js","sourceRoot":"","sources":["../../../../helpers/ConstantHelper.ts"],"names":[],"mappings":";;;AAAA,MAAM,cAAc;IAwCT,MAAM,KAAK,WAAW;QACzB,MAAM,EAAE,aAAa,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;QAElC,OAAO;YACH,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,YAAY,EAAE;YAChE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,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C,GAAG,CAAC,YAAY;IACrC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;IACrC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;IACzC,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;IACzC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;IACrC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY;IACrC,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;IACvC,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;IAGvC,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;CAChD,CAAC;AAcqB,oCAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ClD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefaultNamingStrategy, NamingStrategyInterface } from 'typeorm';
|
|
2
|
+
export declare class CustomNamingStrategy extends DefaultNamingStrategy implements NamingStrategyInterface {
|
|
3
|
+
tableName(className: string, customName: string): string;
|
|
4
|
+
columnName(propertyName: string, customName: string): string;
|
|
5
|
+
relationName(propertyName: string): string;
|
|
6
|
+
private snakeCase;
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomNamingStrategy = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
class CustomNamingStrategy extends typeorm_1.DefaultNamingStrategy {
|
|
6
|
+
tableName(className, customName) {
|
|
7
|
+
return customName ? customName : this.snakeCase(className);
|
|
8
|
+
}
|
|
9
|
+
columnName(propertyName, customName) {
|
|
10
|
+
return customName ? customName : this.snakeCase(propertyName);
|
|
11
|
+
}
|
|
12
|
+
relationName(propertyName) {
|
|
13
|
+
return this.snakeCase(propertyName);
|
|
14
|
+
}
|
|
15
|
+
snakeCase(name) {
|
|
16
|
+
return name
|
|
17
|
+
.replace(/([A-Z])/g, (match) => `_${match.toLowerCase()}`)
|
|
18
|
+
.replace(/^_/, '');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.CustomNamingStrategy = CustomNamingStrategy;
|
|
22
|
+
//# sourceMappingURL=CustomNamingStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomNamingStrategy.js","sourceRoot":"","sources":["../../../../helpers/CustomNamingStrategy.ts"],"names":[],"mappings":";;;AAAA,qCAAyE;AAEzE,MAAa,oBACX,SAAQ,+BAAqB;IAE7B,SAAS,CAAC,SAAiB,EAAE,UAAkB;QAC7C,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7D,CAAC;IAED,UAAU,CACR,YAAoB,EACpB,UAAkB;QAGlB,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAChE,CAAC;IAED,YAAY,CAAC,YAAoB;QAC/B,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IAEO,SAAS,CAAC,IAAY;QAC5B,OAAO,IAAI;aACR,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;aACzD,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACvB,CAAC;CACF;AAxBD,oDAwBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const common_1 = require("@nestjs/common");
|
|
4
|
+
class DateHelper {
|
|
5
|
+
static formatDateToYYYYMMDD(dateString) {
|
|
6
|
+
try {
|
|
7
|
+
const date = new Date(dateString);
|
|
8
|
+
if (!(date instanceof Date)) {
|
|
9
|
+
throw new common_1.BadRequestException('Invalid date');
|
|
10
|
+
}
|
|
11
|
+
const formattedDate = date.toISOString().split('T')[0];
|
|
12
|
+
return formattedDate;
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
throw new common_1.BadRequestException('Invalid date');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.default = DateHelper;
|
|
20
|
+
//# sourceMappingURL=DateHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateHelper.js","sourceRoot":"","sources":["../../../../helpers/DateHelper.ts"],"names":[],"mappings":";;AAAA,2CAAqD;AAErD,MAAqB,UAAU;IACtB,MAAM,CAAC,oBAAoB,CAAC,UAAkB;QACnD,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC;YAGlC,IAAI,CAAC,CAAC,IAAI,YAAY,IAAI,CAAC,EAAE,CAAC;gBAC5B,MAAM,IAAI,4BAAmB,CAAC,cAAc,CAAC,CAAC;YAChD,CAAC;YAGD,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAEvD,OAAO,aAAa,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,4BAAmB,CAAC,cAAc,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;CACF;AAlBD,6BAkBC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const Handlebars = __importStar(require("handlebars"));
|
|
37
|
+
const FileSystemHelper_1 = require("./FileSystemHelper");
|
|
38
|
+
class EmailHelper {
|
|
39
|
+
static async compileStringTemplate(rawTemplate, variables) {
|
|
40
|
+
try {
|
|
41
|
+
const compiled = Handlebars.compile(rawTemplate);
|
|
42
|
+
const html = compiled(variables);
|
|
43
|
+
return html;
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
throw new Error(`Failed to generate HTML: ${error.message}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
static async compileTemplate(templatePath, variables) {
|
|
50
|
+
try {
|
|
51
|
+
const rawTemplate = FileSystemHelper_1.FileSystemHelper.loadFile(templatePath);
|
|
52
|
+
const compiled = Handlebars.compile(rawTemplate);
|
|
53
|
+
if (templatePath.includes('layout')) {
|
|
54
|
+
console.log({ compiled, variables });
|
|
55
|
+
}
|
|
56
|
+
const html = compiled(variables);
|
|
57
|
+
return html;
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
throw new Error(`Failed to generate HTML: ${error.message}`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.default = EmailHelper;
|
|
65
|
+
//# sourceMappingURL=EmailHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailHelper.js","sourceRoot":"","sources":["../../../../helpers/EmailHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uDAAyC;AACzC,yDAAsD;AAEtD,MAAqB,WAAW;IACrB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,WAAmB,EAAE,SAA8B;QACzF,IAAI,CAAC;YAED,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAEjD,MAAM,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;YAEjC,OAAO,IAAI,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,4BAA4B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,YAAoB,EAAE,SAA8B;QACpF,IAAI,CAAC;YAED,MAAM,WAAW,GAAG,mCAAgB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;YAG5D,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAEjD,IAAI,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAClC,OAAO,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAA;YACxC,CAAC;YAED,MAAM,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;YAEjC,OAAO,IAAI,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,4BAA4B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;CACJ;AAjCD,8BAiCC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class FileSystemHelper {
|
|
2
|
+
private static root;
|
|
3
|
+
static getFilePath(fileName: string): Promise<string>;
|
|
4
|
+
static checkFileExists(fileName: string): Promise<boolean>;
|
|
5
|
+
static loadFileWithFullPath(path: string): string;
|
|
6
|
+
static loadFile(fileName: string): string;
|
|
7
|
+
static splitFilePath(filePath: string): Promise<{
|
|
8
|
+
folderArray: string[];
|
|
9
|
+
folderPath: string;
|
|
10
|
+
fileName: string;
|
|
11
|
+
extension: string;
|
|
12
|
+
}>;
|
|
13
|
+
static loadTemplate(fileName: string): string;
|
|
14
|
+
static listHtmlFilesInTemplates(): string[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.FileSystemHelper = void 0;
|
|
37
|
+
const fs_1 = require("fs");
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
class FileSystemHelper {
|
|
40
|
+
static async getFilePath(fileName) {
|
|
41
|
+
const filePath = path.join(this.root, fileName);
|
|
42
|
+
return filePath;
|
|
43
|
+
}
|
|
44
|
+
static async checkFileExists(fileName) {
|
|
45
|
+
const filePath = path.join(this.root, fileName);
|
|
46
|
+
try {
|
|
47
|
+
await fs_1.promises.access(`${filePath}`, fs_1.constants.F_OK);
|
|
48
|
+
console.log({ filePath, found: true });
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
console.log({ filePath, found: false });
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
static loadFileWithFullPath(path) {
|
|
57
|
+
const fileContent = (0, fs_1.readFileSync)(path, 'utf-8');
|
|
58
|
+
return fileContent;
|
|
59
|
+
}
|
|
60
|
+
static loadFile(fileName) {
|
|
61
|
+
const filePath = path.join(this.root, fileName);
|
|
62
|
+
const fileContent = (0, fs_1.readFileSync)(filePath, 'utf-8');
|
|
63
|
+
return fileContent;
|
|
64
|
+
}
|
|
65
|
+
static async splitFilePath(filePath) {
|
|
66
|
+
let normalizedPath = path.normalize(filePath);
|
|
67
|
+
normalizedPath = normalizedPath.replaceAll('\\', '/');
|
|
68
|
+
const fileName = path.basename(normalizedPath);
|
|
69
|
+
const directoryPath = path.dirname(normalizedPath);
|
|
70
|
+
const extension = path.extname(fileName);
|
|
71
|
+
const folderArray = directoryPath.split('/');
|
|
72
|
+
const folderPath = folderArray.join('/');
|
|
73
|
+
return {
|
|
74
|
+
folderArray,
|
|
75
|
+
folderPath,
|
|
76
|
+
fileName,
|
|
77
|
+
extension
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
static loadTemplate(fileName) {
|
|
81
|
+
const filePath = path.join(this.root, `${fileName}`);
|
|
82
|
+
const fileContent = (0, fs_1.readFileSync)(filePath, 'utf-8');
|
|
83
|
+
return fileContent;
|
|
84
|
+
}
|
|
85
|
+
static listHtmlFilesInTemplates() {
|
|
86
|
+
const htmlFiles = [];
|
|
87
|
+
const getFilesRecursively = (dir) => {
|
|
88
|
+
try {
|
|
89
|
+
const files = (0, fs_1.readdirSync)(dir);
|
|
90
|
+
files.forEach(file => {
|
|
91
|
+
const fullPath = path.join(dir, file);
|
|
92
|
+
const relativePath = path.relative(this.root, fullPath);
|
|
93
|
+
if ((0, fs_1.statSync)(fullPath).isDirectory()) {
|
|
94
|
+
getFilesRecursively(fullPath);
|
|
95
|
+
}
|
|
96
|
+
else if (file.endsWith('.html')) {
|
|
97
|
+
htmlFiles.push(relativePath);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
console.log(error);
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
getFilesRecursively(this.root);
|
|
107
|
+
return htmlFiles;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.FileSystemHelper = FileSystemHelper;
|
|
111
|
+
FileSystemHelper.root = path.join(__dirname, '../../mail/templates/');
|
|
112
|
+
//# sourceMappingURL=FileSystemHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileSystemHelper.js","sourceRoot":"","sources":["../../../../helpers/FileSystemHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA8E;AAC9E,2CAA6B;AAE7B,MAAa,gBAAgB;IAGlB,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,QAAgB;QAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAChD,OAAO,QAAQ,CAAA;IACnB,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,QAAgB;QAChD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAEhD,IAAI,CAAC;YACD,MAAM,aAAQ,CAAC,MAAM,CAAC,GAAG,QAAQ,EAAE,EAAE,cAAS,CAAC,IAAI,CAAC,CAAA;YACpD,OAAO,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;YACtC,OAAO,IAAI,CAAA;QACf,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;YACvC,OAAO,KAAK,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