@valentine-efagene/qshelter-common 1.0.0 → 1.0.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/OpenApiHelper.d.ts +9 -0
- package/dist/OpenApiHelper.js +118 -0
- package/dist/OpenApiHelper.js.map +1 -0
- package/dist/decorator/index.d.ts +2 -0
- package/dist/decorator/index.js +19 -0
- package/dist/decorator/index.js.map +1 -0
- package/dist/decorator/permission.decorator.d.ts +2 -0
- package/dist/decorator/permission.decorator.js +6 -0
- package/dist/decorator/permission.decorator.js.map +1 -0
- package/dist/decorator/tenant.decorator.d.ts +2 -0
- package/dist/decorator/tenant.decorator.js +13 -0
- package/dist/decorator/tenant.decorator.js.map +1 -0
- package/dist/entities/common.entity.js +1 -1
- package/dist/entities/common.entity.js.map +1 -1
- package/dist/entities/common.pure.entity.js +3 -2
- package/dist/entities/common.pure.entity.js.map +1 -1
- package/dist/entities/mortgage.entity.js +13 -13
- package/dist/entities/mortgage.entity.js.map +1 -1
- package/dist/entities/property.entity.d.ts +1 -2
- package/dist/entities/property.entity.js +6 -12
- package/dist/entities/property.entity.js.map +1 -1
- package/dist/entities/tenant.entity.d.ts +1 -1
- package/dist/entities/tenant.entity.js +3 -3
- package/dist/entities/tenant.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +1 -1
- package/dist/entities/user.entity.js +7 -7
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/entities/wallet.entity.js +9 -9
- package/dist/entities/wallet.entity.js.map +1 -1
- package/dist/guard/index.d.ts +2 -0
- package/dist/guard/index.js +19 -0
- package/dist/guard/index.js.map +1 -0
- package/dist/guard/permission.guard.d.ts +10 -0
- package/dist/guard/permission.guard.js +47 -0
- package/dist/guard/permission.guard.js.map +1 -0
- package/dist/guard/swagger-auth.guard.d.ts +1 -0
- package/dist/guard/swagger-auth.guard.js +9 -0
- package/dist/guard/swagger-auth.guard.js.map +1 -0
- package/dist/helpers/ArrayHelper.d.ts +2 -0
- package/dist/helpers/ArrayHelper.js +6 -0
- package/dist/helpers/ArrayHelper.js.map +1 -0
- package/dist/helpers/ConstantHelper.d.ts +36 -0
- package/{helpers/ConstantHelper.ts → dist/helpers/ConstantHelper.js} +36 -47
- package/dist/helpers/ConstantHelper.js.map +1 -0
- package/dist/helpers/CustomNamingStrategy.d.ts +7 -0
- package/dist/helpers/CustomNamingStrategy.js +22 -0
- package/dist/helpers/CustomNamingStrategy.js.map +1 -0
- package/dist/helpers/DateHelper.d.ts +3 -0
- package/dist/helpers/DateHelper.js +20 -0
- package/dist/helpers/DateHelper.js.map +1 -0
- package/dist/helpers/EmailHelper.d.ts +4 -0
- package/dist/helpers/EmailHelper.js +65 -0
- package/dist/helpers/EmailHelper.js.map +1 -0
- package/dist/helpers/FileSystemHelper.d.ts +15 -0
- package/dist/helpers/FileSystemHelper.js +112 -0
- package/dist/helpers/FileSystemHelper.js.map +1 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/index.js +22 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/middleware/AccessLoggerMiddleware.d.ts +6 -0
- package/dist/middleware/AccessLoggerMiddleware.js +64 -0
- package/dist/middleware/AccessLoggerMiddleware.js.map +1 -0
- package/dist/middleware/AuthenticationMiddleware.d.ts +5 -0
- package/dist/middleware/AuthenticationMiddleware.js +19 -0
- package/dist/middleware/AuthenticationMiddleware.js.map +1 -0
- package/dist/middleware/TenantMiddleware.d.ts +14 -0
- package/dist/middleware/TenantMiddleware.js +49 -0
- package/dist/middleware/TenantMiddleware.js.map +1 -0
- package/dist/middleware/index.d.ts +3 -0
- package/dist/middleware/index.js +20 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common.type.d.ts +15 -0
- package/dist/types/common.type.js +18 -1
- package/dist/types/common.type.js.map +1 -1
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.js +25 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/mortgage-fsm.type.d.ts +180 -0
- package/dist/types/mortgage-fsm.type.js +130 -0
- package/dist/types/mortgage-fsm.type.js.map +1 -0
- package/dist/types/permission.enums.d.ts +42 -0
- package/dist/types/permission.enums.js +47 -0
- package/dist/types/permission.enums.js.map +1 -0
- package/dist/types/permission.type.d.ts +42 -0
- package/dist/types/permission.type.js +47 -0
- package/dist/types/permission.type.js.map +1 -0
- package/{types/policy.types.ts → dist/types/policy.type.d.ts} +0 -3
- package/dist/types/policy.type.js +3 -0
- package/dist/types/policy.type.js.map +1 -0
- package/dist/types/tenant.type.d.ts +13 -0
- package/dist/types/tenant.type.js +19 -0
- package/dist/types/tenant.type.js.map +1 -0
- package/dist/types/user.type.d.ts +10 -0
- package/dist/types/user.type.js +16 -0
- package/dist/types/user.type.js.map +1 -0
- package/package.json +52 -4
- package/OpenApiHelper.ts +0 -121
- package/decorator/permission.decorator.ts +0 -4
- package/decorator/tenant.decorator.ts +0 -16
- package/entities/BaseEntity.ts +0 -34
- package/entities/TenantAwareEntity.ts +0 -34
- package/entities/TenantAwareRepository.ts +0 -100
- package/entities/amenity.entity.ts +0 -10
- package/entities/common.entity.ts +0 -46
- package/entities/common.pure.entity.ts +0 -36
- package/entities/index.ts +0 -27
- package/entities/mortgage-document.entity.ts +0 -37
- package/entities/mortgage-downpayment-installment.entity.ts +0 -40
- package/entities/mortgage-downpayment-payment.entity.ts +0 -61
- package/entities/mortgage-downpayment.entity.ts +0 -43
- package/entities/mortgage-step.entity.ts +0 -33
- package/entities/mortgage-type.entity.ts +0 -31
- package/entities/mortgage.entity.ts +0 -89
- package/entities/password_reset_tokens.entity.ts +0 -25
- package/entities/permission.entity.ts +0 -12
- package/entities/property-document.entity.ts +0 -21
- package/entities/property-media.entity.ts +0 -23
- package/entities/property.entity.ts +0 -147
- package/entities/refresh_token.entity.ts +0 -16
- package/entities/role.entity.ts +0 -20
- package/entities/settings.entity.ts +0 -56
- package/entities/social.entity.ts +0 -27
- package/entities/tenant.entity.ts +0 -65
- package/entities/transaction.entity.ts +0 -56
- package/entities/user.entity.ts +0 -89
- package/entities/user_suspensions.entity.ts +0 -24
- package/entities/wallet.entity.ts +0 -54
- package/guard/permission.guard.ts +0 -42
- package/guard/swagger-auth.guard.ts +0 -9
- package/helpers/ArrayHelper.ts +0 -1
- package/helpers/CustomNamingStrategy.ts +0 -27
- package/helpers/DateHelper.ts +0 -21
- package/helpers/EmailHelper.ts +0 -38
- package/helpers/FileSystemHelper.ts +0 -101
- package/index.ts +0 -9
- package/middleware/TenantMiddleware.ts +0 -52
- package/pagination/index.ts +0 -2
- package/pagination/pagination.helper.ts +0 -57
- package/pagination/pagination.types.ts +0 -21
- package/standard-response.ts +0 -16
- package/tsconfig.json +0 -33
- package/types/common.type.ts +0 -32
- package/types/mortgage-fsm.types.ts +0 -279
- package/types/property.type.ts +0 -10
- package/types/social.enums.ts +0 -17
- package/types/tenant.enums.ts +0 -14
- package/types/transaction.type.ts +0 -9
- package/types/user.enums.ts +0 -11
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ApiHeaderOptions, ApiResponseOptions } from '@nestjs/swagger';
|
|
2
|
+
export default class OpenApiHelper {
|
|
3
|
+
static userIdHeader: ApiHeaderOptions;
|
|
4
|
+
static responseDoc: ApiResponseOptions;
|
|
5
|
+
static paginatedResponseDoc: ApiResponseOptions;
|
|
6
|
+
static arrayResponseDoc: ApiResponseOptions;
|
|
7
|
+
static nullResponseDoc: ApiResponseOptions;
|
|
8
|
+
static errorResponseDoc: ApiResponseOptions;
|
|
9
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class OpenApiHelper {
|
|
4
|
+
}
|
|
5
|
+
OpenApiHelper.userIdHeader = {
|
|
6
|
+
name: 'user_id',
|
|
7
|
+
description: "Requesting user's ID",
|
|
8
|
+
required: true,
|
|
9
|
+
example: '1',
|
|
10
|
+
};
|
|
11
|
+
OpenApiHelper.responseDoc = {
|
|
12
|
+
status: 200,
|
|
13
|
+
description: 'Successful response',
|
|
14
|
+
schema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
statusCode: { type: 'number' },
|
|
18
|
+
message: { type: 'string' },
|
|
19
|
+
data: { type: 'object' },
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
OpenApiHelper.paginatedResponseDoc = {
|
|
24
|
+
status: 200,
|
|
25
|
+
description: 'Successful response',
|
|
26
|
+
schema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
statusCode: { type: 'number' },
|
|
30
|
+
message: { type: 'string' },
|
|
31
|
+
data: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
data: { type: 'array', items: { type: 'object' } },
|
|
35
|
+
meta: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
itemsPerPage: { type: 'number' },
|
|
39
|
+
totalItems: { type: 'number' },
|
|
40
|
+
currentPage: { type: 'number' },
|
|
41
|
+
totalPages: { type: 'number' },
|
|
42
|
+
sortBy: { type: 'array' },
|
|
43
|
+
search: { type: 'string' },
|
|
44
|
+
filter: {
|
|
45
|
+
type: 'object',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
link: {
|
|
50
|
+
type: 'object',
|
|
51
|
+
properties: {
|
|
52
|
+
first: { type: 'string' },
|
|
53
|
+
previous: { type: 'string' },
|
|
54
|
+
current: { type: 'string' },
|
|
55
|
+
next: { type: 'string' },
|
|
56
|
+
last: { type: 'string' },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
OpenApiHelper.arrayResponseDoc = {
|
|
65
|
+
status: 200,
|
|
66
|
+
description: 'Successful response',
|
|
67
|
+
schema: {
|
|
68
|
+
type: 'object',
|
|
69
|
+
properties: {
|
|
70
|
+
statusCode: { type: 'number' },
|
|
71
|
+
message: { type: 'string' },
|
|
72
|
+
data: {
|
|
73
|
+
type: 'array',
|
|
74
|
+
items: { type: 'object' },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
OpenApiHelper.nullResponseDoc = {
|
|
80
|
+
status: 200,
|
|
81
|
+
description: 'Successful response',
|
|
82
|
+
schema: {
|
|
83
|
+
oneOf: [
|
|
84
|
+
{
|
|
85
|
+
type: 'object',
|
|
86
|
+
properties: {
|
|
87
|
+
statusCode: { type: 'number' },
|
|
88
|
+
message: { type: 'string' },
|
|
89
|
+
data: {
|
|
90
|
+
type: 'string',
|
|
91
|
+
nullable: true,
|
|
92
|
+
description: 'Nothing is returned',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
OpenApiHelper.errorResponseDoc = {
|
|
100
|
+
status: 200,
|
|
101
|
+
description: 'Successful response',
|
|
102
|
+
schema: {
|
|
103
|
+
oneOf: [
|
|
104
|
+
{
|
|
105
|
+
type: 'object',
|
|
106
|
+
properties: {
|
|
107
|
+
statusCode: { type: 'number' },
|
|
108
|
+
message: { type: 'string' },
|
|
109
|
+
error: {
|
|
110
|
+
type: 'object',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
exports.default = OpenApiHelper;
|
|
118
|
+
//# sourceMappingURL=OpenApiHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenApiHelper.js","sourceRoot":"","sources":["../OpenApiHelper.ts"],"names":[],"mappings":";;AAEA,MAAqB,aAAa;;AAClB,0BAAY,GAAq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E,QAAQ;gBACd,UAAU,EAAE;oBACV,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC9B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACf;iBACF;aACF;SACF;KACF;CACF,CAAC;kBArHiB,aAAa"}
|
|
@@ -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.decorator"), exports);
|
|
18
|
+
__exportStar(require("./tenant.decorator"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../decorator/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,qDAAmC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequirePermission = void 0;
|
|
4
|
+
const core_1 = require("@nestjs/core");
|
|
5
|
+
exports.RequirePermission = core_1.Reflector.createDecorator();
|
|
6
|
+
//# sourceMappingURL=permission.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.decorator.js","sourceRoot":"","sources":["../../decorator/permission.decorator.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AAG5B,QAAA,iBAAiB,GAAG,gBAAS,CAAC,eAAe,EAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrentTenantId = exports.CurrentTenant = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
exports.CurrentTenant = (0, common_1.createParamDecorator)((data, ctx) => {
|
|
6
|
+
const request = ctx.switchToHttp().getRequest();
|
|
7
|
+
return request.tenant;
|
|
8
|
+
});
|
|
9
|
+
exports.CurrentTenantId = (0, common_1.createParamDecorator)((data, ctx) => {
|
|
10
|
+
const request = ctx.switchToHttp().getRequest();
|
|
11
|
+
return request.tenantId;
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=tenant.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.decorator.js","sourceRoot":"","sources":["../../decorator/tenant.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAAwE;AAG3D,QAAA,aAAa,GAAG,IAAA,6BAAoB,EAC7C,CAAC,IAAa,EAAE,GAAqB,EAAsB,EAAE;IACzD,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAChD,OAAO,OAAO,CAAC,MAAM,CAAC;AAC1B,CAAC,CACJ,CAAC;AAEW,QAAA,eAAe,GAAG,IAAA,6BAAoB,EAC/C,CAAC,IAAa,EAAE,GAAqB,EAAsB,EAAE;IACzD,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAChD,OAAO,OAAO,CAAC,QAAQ,CAAC;AAC5B,CAAC,CACJ,CAAC"}
|
|
@@ -23,7 +23,7 @@ __decorate([
|
|
|
23
23
|
__metadata("design:type", user_entity_1.User)
|
|
24
24
|
], AbstractBaseReviewableEntity.prototype, "reviewer", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'reviewed_at', type: 'timestamp', nullable: true }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], AbstractBaseReviewableEntity.prototype, "reviewedAt", void 0);
|
|
29
29
|
class AbstractBaseDocumentEntity extends AbstractBaseReviewableEntity {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAqC;AACrC,qCAIiB;AACjB,sDAAsD;AACtD,6DAAiE;AAEjE,MAAsB,4BAA6B,SAAQ,8CAAyB;CAOnF;AAPD,oEAOC;AAJC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,kBAAI;8DAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"common.entity.js","sourceRoot":"","sources":["../../entities/common.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAqC;AACrC,qCAIiB;AACjB,sDAAsD;AACtD,6DAAiE;AAEjE,MAAsB,4BAA6B,SAAQ,8CAAyB;CAOnF;AAPD,oEAOC;AAJC;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,kBAAI;8DAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEAChD;AAGrB,MAAsB,0BAA2B,SAAQ,4BAA4B;CAsBpF;AAtBD,gEAsBC;AAhBC;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAc;QACpB,OAAO,EAAE,4BAAc,CAAC,OAAO;KAChC,CAAC;;0DACqB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uDAC9B;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;;wDACrC;AAGd,MAAsB,uBAAwB,SAAQ,0BAA0B;CAG/E;AAHD,0DAGC"}
|
|
@@ -20,11 +20,12 @@ __decorate([
|
|
|
20
20
|
__metadata("design:type", Number)
|
|
21
21
|
], AbstractBaseEntity.prototype, "id", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
23
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }),
|
|
24
24
|
__metadata("design:type", Date)
|
|
25
25
|
], AbstractBaseEntity.prototype, "createdAt", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.UpdateDateColumn)({
|
|
28
|
+
name: 'updated_at',
|
|
28
29
|
type: 'timestamp',
|
|
29
30
|
default: () => 'CURRENT_TIMESTAMP',
|
|
30
31
|
onUpdate: 'CURRENT_TIMESTAMP',
|
|
@@ -32,7 +33,7 @@ __decorate([
|
|
|
32
33
|
__metadata("design:type", Date)
|
|
33
34
|
], AbstractBaseEntity.prototype, "updatedAt", void 0);
|
|
34
35
|
__decorate([
|
|
35
|
-
(0, typeorm_1.DeleteDateColumn)({ nullable: true, default: null }),
|
|
36
|
+
(0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', nullable: true, default: null }),
|
|
36
37
|
__metadata("design:type", Date)
|
|
37
38
|
], AbstractBaseEntity.prototype, "deletedAt", void 0);
|
|
38
39
|
class AbstractTenantAwareEntity extends AbstractBaseEntity {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.pure.entity.js","sourceRoot":"","sources":["../../entities/common.pure.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA6I;AAC7I,mDAAyC;AAGzC,MAAsB,kBAAkB;
|
|
1
|
+
{"version":3,"file":"common.pure.entity.js","sourceRoot":"","sources":["../../entities/common.pure.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA6I;AAC7I,mDAAyC;AAGzC,MAAsB,kBAAkB;CAiBvC;AAjBD,gDAiBC;AAfG;IADC,IAAA,gCAAsB,GAAE;;8CACd;AAGX;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC;8BACrF,IAAI;qDAAC;AAQhB;IANC,IAAA,0BAAgB,EAAC;QACd,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB;QAClC,QAAQ,EAAE,mBAAmB;KAChC,CAAC;8BACS,IAAI;qDAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8BAC7D,IAAI;qDAAC;AAOpB,MAAsB,yBAA0B,SAAQ,kBAAkB;CAQzE;AARD,8DAQC;AALG;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,sBAAM;yDAAC;AAIf;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAK,GAAE;;2DACS"}
|
|
@@ -21,7 +21,7 @@ const mortgage_document_entity_1 = __importDefault(require("./mortgage-document.
|
|
|
21
21
|
const mortgage_step_entity_1 = __importDefault(require("./mortgage-step.entity"));
|
|
22
22
|
const mortgage_type_entity_1 = require("./mortgage-type.entity");
|
|
23
23
|
const mortgage_downpayment_entity_1 = require("./mortgage-downpayment.entity");
|
|
24
|
-
const
|
|
24
|
+
const mortgage_fsm_type_1 = require("../types/mortgage-fsm.type");
|
|
25
25
|
var MortgageStatus;
|
|
26
26
|
(function (MortgageStatus) {
|
|
27
27
|
MortgageStatus["DRAFT"] = "DRAFT";
|
|
@@ -39,7 +39,7 @@ __decorate([
|
|
|
39
39
|
__metadata("design:type", property_entity_1.Property)
|
|
40
40
|
], Mortgage.prototype, "property", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'property_id', nullable: true }),
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
44
|
], Mortgage.prototype, "propertyId", void 0);
|
|
45
45
|
__decorate([
|
|
@@ -48,7 +48,7 @@ __decorate([
|
|
|
48
48
|
__metadata("design:type", user_entity_1.User)
|
|
49
49
|
], Mortgage.prototype, "borrower", void 0);
|
|
50
50
|
__decorate([
|
|
51
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'borrower_id', nullable: true }),
|
|
52
52
|
__metadata("design:type", Number)
|
|
53
53
|
], Mortgage.prototype, "borrowerId", void 0);
|
|
54
54
|
__decorate([
|
|
@@ -56,19 +56,19 @@ __decorate([
|
|
|
56
56
|
__metadata("design:type", Number)
|
|
57
57
|
], Mortgage.prototype, "principal", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
59
|
+
(0, typeorm_1.Column)({ name: 'down_payment', type: 'double precision', nullable: true }),
|
|
60
60
|
__metadata("design:type", Number)
|
|
61
61
|
], Mortgage.prototype, "downPayment", void 0);
|
|
62
62
|
__decorate([
|
|
63
|
-
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
63
|
+
(0, typeorm_1.Column)({ name: 'term_months', type: 'int', nullable: true }),
|
|
64
64
|
__metadata("design:type", Number)
|
|
65
65
|
], Mortgage.prototype, "termMonths", void 0);
|
|
66
66
|
__decorate([
|
|
67
|
-
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
67
|
+
(0, typeorm_1.Column)({ name: 'interest_rate', type: 'double precision', nullable: true }),
|
|
68
68
|
__metadata("design:type", Number)
|
|
69
69
|
], Mortgage.prototype, "interestRate", void 0);
|
|
70
70
|
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
71
|
+
(0, typeorm_1.Column)({ name: 'monthly_payment', type: 'double precision', nullable: true }),
|
|
72
72
|
__metadata("design:type", Number)
|
|
73
73
|
], Mortgage.prototype, "monthlyPayment", void 0);
|
|
74
74
|
__decorate([
|
|
@@ -76,11 +76,11 @@ __decorate([
|
|
|
76
76
|
__metadata("design:type", String)
|
|
77
77
|
], Mortgage.prototype, "status", void 0);
|
|
78
78
|
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)({ type: 'varchar', default:
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: mortgage_fsm_type_1.MortgageState.DRAFT }),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], Mortgage.prototype, "state", void 0);
|
|
82
82
|
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
83
|
+
(0, typeorm_1.Column)({ name: 'state_metadata', type: 'text', nullable: true }),
|
|
84
84
|
__metadata("design:type", String)
|
|
85
85
|
], Mortgage.prototype, "stateMetadata", void 0);
|
|
86
86
|
__decorate([
|
|
@@ -97,11 +97,11 @@ __decorate([
|
|
|
97
97
|
__metadata("design:type", mortgage_type_entity_1.MortgageType)
|
|
98
98
|
], Mortgage.prototype, "mortgageType", void 0);
|
|
99
99
|
__decorate([
|
|
100
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
100
|
+
(0, typeorm_1.Column)({ name: 'mortgage_type_id', nullable: true }),
|
|
101
101
|
__metadata("design:type", Number)
|
|
102
102
|
], Mortgage.prototype, "mortgageTypeId", void 0);
|
|
103
103
|
__decorate([
|
|
104
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
104
|
+
(0, typeorm_1.Column)({ name: 'last_reminder_sent_at', type: 'timestamp', nullable: true }),
|
|
105
105
|
__metadata("design:type", Date)
|
|
106
106
|
], Mortgage.prototype, "lastReminderSentAt", void 0);
|
|
107
107
|
__decorate([
|
|
@@ -110,11 +110,11 @@ __decorate([
|
|
|
110
110
|
__metadata("design:type", mortgage_downpayment_entity_1.MortgageDownpaymentPlan)
|
|
111
111
|
], Mortgage.prototype, "downpaymentPlan", void 0);
|
|
112
112
|
__decorate([
|
|
113
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
113
|
+
(0, typeorm_1.Column)({ name: 'downpayment_plan_id', nullable: true }),
|
|
114
114
|
__metadata("design:type", Number)
|
|
115
115
|
], Mortgage.prototype, "downpaymentPlanId", void 0);
|
|
116
116
|
__decorate([
|
|
117
|
-
(0, typeorm_1.Column)({ type: 'double precision', nullable: true }),
|
|
117
|
+
(0, typeorm_1.Column)({ name: 'down_payment_paid', type: 'double precision', nullable: true }),
|
|
118
118
|
__metadata("design:type", Number)
|
|
119
119
|
], Mortgage.prototype, "downPaymentPaid", void 0);
|
|
120
120
|
exports.Mortgage = Mortgage = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mortgage.entity.js","sourceRoot":"","sources":["../../entities/mortgage.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAqF;AACrF,mDAA+D;AAC/D,uDAA6C;AAC7C,+CAAqC;AACrC,0FAA0D;AAC1D,kFAAkD;AAClD,iEAAsD;AACtD,+EAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"mortgage.entity.js","sourceRoot":"","sources":["../../entities/mortgage.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qCAAqF;AACrF,mDAA+D;AAC/D,uDAA6C;AAC7C,+CAAqC;AACrC,0FAA0D;AAC1D,kFAAkD;AAClD,iEAAsD;AACtD,+EAAwE;AACxE,kEAA2D;AAG3D,IAAY,cAMX;AAND,WAAY,cAAc;IACtB,iCAAe,CAAA;IACf,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;IACjB,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;AAC3B,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAGM,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4CAA4B;CAkEzD,CAAA;AAlEY,4BAAQ;AAGjB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC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E,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC9B;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACxD;mBAjEf,QAAQ;IADpB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;GAChB,QAAQ,CAkEpB;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Amenity } from './amenity.entity';
|
|
|
5
5
|
import { AbstractBaseReviewableEntity } from './common.entity';
|
|
6
6
|
import { Mortgage } from './mortgage.entity';
|
|
7
7
|
import { PropertyStatus } from '../types/property.type';
|
|
8
|
-
import { Currency
|
|
8
|
+
import { Currency } from 'types';
|
|
9
9
|
export declare class Property extends AbstractBaseReviewableEntity {
|
|
10
10
|
user: User;
|
|
11
11
|
userId: number;
|
|
@@ -16,7 +16,6 @@ export declare class Property extends AbstractBaseReviewableEntity {
|
|
|
16
16
|
displayImage: PropertyMedia;
|
|
17
17
|
displayImageId: number;
|
|
18
18
|
title: string;
|
|
19
|
-
category: PropertyCategory;
|
|
20
19
|
propertyType: string;
|
|
21
20
|
country: string;
|
|
22
21
|
currency: Currency;
|
|
@@ -18,7 +18,7 @@ const amenity_entity_1 = require("./amenity.entity");
|
|
|
18
18
|
const common_entity_1 = require("./common.entity");
|
|
19
19
|
const mortgage_entity_1 = require("./mortgage.entity");
|
|
20
20
|
const property_type_1 = require("../types/property.type");
|
|
21
|
-
const
|
|
21
|
+
const types_1 = require("types");
|
|
22
22
|
let Property = class Property extends common_entity_1.AbstractBaseReviewableEntity {
|
|
23
23
|
};
|
|
24
24
|
exports.Property = Property;
|
|
@@ -31,7 +31,7 @@ __decorate([
|
|
|
31
31
|
__metadata("design:type", user_entity_1.User)
|
|
32
32
|
], Property.prototype, "user", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'user_id', nullable: true }),
|
|
35
35
|
__metadata("design:type", Number)
|
|
36
36
|
], Property.prototype, "userId", void 0);
|
|
37
37
|
__decorate([
|
|
@@ -61,6 +61,7 @@ __decorate([
|
|
|
61
61
|
], Property.prototype, "displayImage", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, typeorm_1.Column)({
|
|
64
|
+
name: 'display_image_id',
|
|
64
65
|
nullable: true
|
|
65
66
|
}),
|
|
66
67
|
__metadata("design:type", Number)
|
|
@@ -71,14 +72,7 @@ __decorate([
|
|
|
71
72
|
], Property.prototype, "title", void 0);
|
|
72
73
|
__decorate([
|
|
73
74
|
(0, typeorm_1.Column)({
|
|
74
|
-
|
|
75
|
-
type: 'enum',
|
|
76
|
-
enum: social_enums_1.PropertyCategory,
|
|
77
|
-
}),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], Property.prototype, "category", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, typeorm_1.Column)({
|
|
75
|
+
name: 'property_type',
|
|
82
76
|
nullable: true,
|
|
83
77
|
type: 'enum',
|
|
84
78
|
enum: property_type_1.PropertyType
|
|
@@ -93,7 +87,7 @@ __decorate([
|
|
|
93
87
|
(0, typeorm_1.Column)({
|
|
94
88
|
nullable: true,
|
|
95
89
|
type: 'enum',
|
|
96
|
-
enum:
|
|
90
|
+
enum: types_1.Currency,
|
|
97
91
|
}),
|
|
98
92
|
__metadata("design:type", String)
|
|
99
93
|
], Property.prototype, "currency", void 0);
|
|
@@ -106,7 +100,7 @@ __decorate([
|
|
|
106
100
|
__metadata("design:type", String)
|
|
107
101
|
], Property.prototype, "district", void 0);
|
|
108
102
|
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
103
|
+
(0, typeorm_1.Column)({ name: 'zip_code', nullable: true }),
|
|
110
104
|
__metadata("design:type", String)
|
|
111
105
|
], Property.prototype, "zipCode", void 0);
|
|
112
106
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.entity.js","sourceRoot":"","sources":["../../entities/property.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4G;AAC5G,yEAA8D;AAC9D,mEAAwD;AACxD,+CAAqC;AACrC,qDAA2C;AAC3C,mDAA+D;AAC/D,uDAA6C;AAC7C,0DAAsE;AACtE,
|
|
1
|
+
{"version":3,"file":"property.entity.js","sourceRoot":"","sources":["../../entities/property.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4G;AAC5G,yEAA8D;AAC9D,mEAAwD;AACxD,+CAAqC;AACrC,qDAA2C;AAC3C,mDAA+D;AAC/D,uDAA6C;AAC7C,0DAAsE;AACtE,iCAAiC;AAG1B,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4CAA4B;CAkIzD,CAAA;AAlIY,4BAAQ;AAOnB;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QAErB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;sCAAC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC7B;AAMf;IAJC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,2CAAgB,EACtB,CAAC,gBAAgB,EAAE,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAChD;;2CAC6B;AAI9B;IAFC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,mBAAS,GAAE;;2CACQ;AAOpB;IALC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,qCAAa,EACnB,CAAC,gBAAgB,EAAE,EAAE,CAAC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
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseEntity_1 = require("./BaseEntity");
|
|
15
|
-
const
|
|
15
|
+
const tenant_type_1 = require("../types/tenant.type");
|
|
16
16
|
let Tenant = class Tenant extends BaseEntity_1.BaseEntity {
|
|
17
17
|
};
|
|
18
18
|
exports.Tenant = Tenant;
|
|
@@ -30,11 +30,11 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], Tenant.prototype, "domain", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ type: 'varchar', default:
|
|
33
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: tenant_type_1.TenantStatus.ACTIVE }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], Tenant.prototype, "status", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ type: 'varchar', default:
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'varchar', default: tenant_type_1.TenantPlan.FREE }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], Tenant.prototype, "plan", void 0);
|
|
40
40
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.entity.js","sourceRoot":"","sources":["../../entities/tenant.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwD;AACxD,6CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"tenant.entity.js","sourceRoot":"","sources":["../../entities/tenant.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwD;AACxD,6CAA0C;AAC1C,sDAAgE;AAKzD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,uBAAU;CAuDrC,CAAA;AAvDY,wBAAM;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;oCACX;AAIb;IAFC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,MAA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;4CACnB;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACnB;iBAtDZ,MAAM;IAHlB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,gBAAM,EAAC,CAAC,WAAW,CAAC,CAAC;IACrB,IAAA,gBAAM,EAAC,CAAC,QAAQ,CAAC,CAAC;GACN,MAAM,CAuDlB;AAED,kBAAe,MAAM,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TenantAwareBaseEntity } from './BaseEntity';
|
|
2
|
-
import { UserStatus } from '../types/user.
|
|
2
|
+
import { UserStatus } from '../types/user.type';
|
|
3
3
|
import { Role } from './role.entity';
|
|
4
4
|
import { RefreshToken } from './refresh_token.entity';
|
|
5
5
|
import { Property } from './property.entity';
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.User = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const BaseEntity_1 = require("./BaseEntity");
|
|
15
|
-
const
|
|
15
|
+
const user_type_1 = require("../types/user.type");
|
|
16
16
|
const role_entity_1 = require("./role.entity");
|
|
17
17
|
const refresh_token_entity_1 = require("./refresh_token.entity");
|
|
18
18
|
const property_entity_1 = require("./property.entity");
|
|
@@ -22,11 +22,11 @@ let User = class User extends BaseEntity_1.TenantAwareBaseEntity {
|
|
|
22
22
|
};
|
|
23
23
|
exports.User = User;
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
(0, typeorm_1.Column)({ name: 'first_name', nullable: true }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], User.prototype, "firstName", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
29
|
+
(0, typeorm_1.Column)({ name: 'last_name', nullable: true }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], User.prototype, "lastName", void 0);
|
|
32
32
|
__decorate([
|
|
@@ -84,17 +84,17 @@ __decorate([
|
|
|
84
84
|
__decorate([
|
|
85
85
|
(0, typeorm_1.Column)({
|
|
86
86
|
type: 'enum',
|
|
87
|
-
enum:
|
|
88
|
-
default:
|
|
87
|
+
enum: user_type_1.UserStatus,
|
|
88
|
+
default: user_type_1.UserStatus.PENDING
|
|
89
89
|
}),
|
|
90
90
|
__metadata("design:type", String)
|
|
91
91
|
], User.prototype, "status", void 0);
|
|
92
92
|
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
93
|
+
(0, typeorm_1.Column)({ name: 'is_email_verified', default: false }),
|
|
94
94
|
__metadata("design:type", Boolean)
|
|
95
95
|
], User.prototype, "isEmailVerified", void 0);
|
|
96
96
|
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
97
|
+
(0, typeorm_1.Column)({ name: 'email_verification_token', nullable: true }),
|
|
98
98
|
__metadata("design:type", String)
|
|
99
99
|
], User.prototype, "emailVerificationToken", void 0);
|
|
100
100
|
exports.User = User = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,6CAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,6CAAqD;AACrD,kDAAgD;AAChD,+CAAqC;AACrC,iEAAsD;AACtD,uDAA6C;AAC7C,6DAAmD;AACnD,mDAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kCAAqB;CA8E9C,CAAA;AA9EY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAA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,EAAE,IAAI,EAAE,CAChB;;qCACiB;AAQlB;IANC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,gCAAW,EACjB,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,IAAI,EAClB,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB;;0CAC2B;AAO5B;IALC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,0BAAQ,EACd,CAAC,QAAQ,EAAE,EAAE,CACX,QAAQ,CAAC,IAAI,CAChB;;wCACsB;AAOvB;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,sBAAU;QAChB,OAAO,EAAE,sBAAU,CAAC,OAAO;KAC5B,CAAC;;oCACgB;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CAC5B;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,0BAA0B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;eA7E1B,IAAI;IADhB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;GACb,IAAI,CA8EhB"}
|
|
@@ -13,7 +13,7 @@ exports.Wallet = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const transaction_entity_1 = require("./transaction.entity");
|
|
15
15
|
const user_entity_1 = require("./user.entity");
|
|
16
|
-
const
|
|
16
|
+
const types_1 = require("types");
|
|
17
17
|
let Wallet = class Wallet {
|
|
18
18
|
};
|
|
19
19
|
exports.Wallet = Wallet;
|
|
@@ -27,30 +27,30 @@ __decorate([
|
|
|
27
27
|
__metadata("design:type", user_entity_1.User)
|
|
28
28
|
], Wallet.prototype, "user", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)(),
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'user_id' }),
|
|
31
31
|
__metadata("design:type", Number)
|
|
32
32
|
], Wallet.prototype, "userId", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, typeorm_1.Column)({
|
|
35
35
|
type: 'enum',
|
|
36
|
-
enum:
|
|
36
|
+
enum: types_1.Currency
|
|
37
37
|
}),
|
|
38
38
|
__metadata("design:type", Number)
|
|
39
39
|
], Wallet.prototype, "currency", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)({}),
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'customer_id' }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], Wallet.prototype, "customerId", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({}),
|
|
45
|
+
(0, typeorm_1.Column)({ name: 'bank_name' }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], Wallet.prototype, "bankName", void 0);
|
|
48
48
|
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({}),
|
|
49
|
+
(0, typeorm_1.Column)({ name: 'account_number' }),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], Wallet.prototype, "accountNumber", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({}),
|
|
53
|
+
(0, typeorm_1.Column)({ name: 'account_name' }),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], Wallet.prototype, "accountName", void 0);
|
|
56
56
|
__decorate([
|
|
@@ -62,11 +62,11 @@ __decorate([
|
|
|
62
62
|
__metadata("design:type", Boolean)
|
|
63
63
|
], Wallet.prototype, "enabled", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
65
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
66
66
|
__metadata("design:type", Date)
|
|
67
67
|
], Wallet.prototype, "createdAt", void 0);
|
|
68
68
|
__decorate([
|
|
69
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
69
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
70
70
|
__metadata("design:type", Date)
|
|
71
71
|
], Wallet.prototype, "updatedAt", void 0);
|
|
72
72
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.entity.js","sourceRoot":"","sources":["../../entities/wallet.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuI;AACvI,6DAAmD;AACnD,+CAAqC;AACrC,
|
|
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;;2CAC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