@lukiteam/churos-be-general 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/constants/param-key.d.ts +4 -0
- package/dist/constants/param-key.js +8 -0
- package/dist/constants/param-key.js.map +1 -0
- package/dist/constants/rabbitmq.d.ts +9 -0
- package/dist/constants/rabbitmq.js +14 -0
- package/dist/constants/rabbitmq.js.map +1 -0
- package/dist/constants/redis-key.d.ts +12 -0
- package/dist/constants/redis-key.js +16 -0
- package/dist/constants/redis-key.js.map +1 -0
- package/dist/i18n/admin.paths.d.ts +1 -0
- package/dist/i18n/admin.paths.js +6 -0
- package/dist/i18n/admin.paths.js.map +1 -0
- package/dist/i18n/mobile.paths.d.ts +1 -0
- package/dist/i18n/mobile.paths.js +6 -0
- package/dist/i18n/mobile.paths.js.map +1 -0
- package/dist/i18n/notification.paths.d.ts +1 -0
- package/dist/i18n/notification.paths.js +6 -0
- package/dist/i18n/notification.paths.js.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +114 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/admin/ar/common.json +60 -0
- package/dist/locales/admin/en/common.json +60 -0
- package/dist/locales/admin/es/common.json +60 -0
- package/dist/locales/admin/fr/common.json +60 -0
- package/dist/locales/admin/pt/common.json +60 -0
- package/dist/locales/admin/ru/common.json +60 -0
- package/dist/locales/admin/tr/common.json +60 -0
- package/dist/locales/mobile/ar/common.json +100 -0
- package/dist/locales/mobile/en/common.json +99 -0
- package/dist/locales/mobile/es/common.json +100 -0
- package/dist/locales/mobile/fr/common.json +100 -0
- package/dist/locales/mobile/pt/common.json +100 -0
- package/dist/locales/mobile/ru/common.json +100 -0
- package/dist/locales/mobile/tr/common.json +100 -0
- package/dist/locales/notification/ar/common.json +52 -0
- package/dist/locales/notification/en/common.json +52 -0
- package/dist/locales/notification/es/common.json +52 -0
- package/dist/locales/notification/fr/common.json +52 -0
- package/dist/locales/notification/pt/common.json +52 -0
- package/dist/locales/notification/ru/common.json +52 -0
- package/dist/locales/notification/tr/common.json +52 -0
- package/dist/models/dto/firebase-object.dto.d.ts +10 -0
- package/dist/models/dto/firebase-object.dto.js +10 -0
- package/dist/models/dto/firebase-object.dto.js.map +1 -0
- package/dist/models/dto/notification-data.dto.d.ts +5 -0
- package/dist/models/dto/notification-data.dto.js +3 -0
- package/dist/models/dto/notification-data.dto.js.map +1 -0
- package/dist/models/dto/notification-object.dto.d.ts +36 -0
- package/dist/models/dto/notification-object.dto.js +41 -0
- package/dist/models/dto/notification-object.dto.js.map +1 -0
- package/dist/models/dto/notification-revoke.dto.d.ts +13 -0
- package/dist/models/dto/notification-revoke.dto.js +7 -0
- package/dist/models/dto/notification-revoke.dto.js.map +1 -0
- package/dist/models/enum/index.d.ts +200 -0
- package/dist/models/enum/index.js +252 -0
- package/dist/models/enum/index.js.map +1 -0
- package/dist/mongo/index.d.ts +86 -0
- package/dist/mongo/index.js +86 -0
- package/dist/mongo/index.js.map +1 -0
- package/dist/mongo/interfaces/repository.interface.d.ts +11 -0
- package/dist/mongo/interfaces/repository.interface.js +3 -0
- package/dist/mongo/interfaces/repository.interface.js.map +1 -0
- package/dist/mongo/repositories/base.repository.d.ts +71 -0
- package/dist/mongo/repositories/base.repository.js +247 -0
- package/dist/mongo/repositories/base.repository.js.map +1 -0
- package/dist/mongo/repositories/repository.factory.d.ts +5 -0
- package/dist/mongo/repositories/repository.factory.js +25 -0
- package/dist/mongo/repositories/repository.factory.js.map +1 -0
- package/dist/mongo/schema/admin/forbidden-word-record.entity.d.ts +35 -0
- package/dist/mongo/schema/admin/forbidden-word-record.entity.js +46 -0
- package/dist/mongo/schema/admin/forbidden-word-record.entity.js.map +1 -0
- package/dist/mongo/schema/admin/member-config.entity.d.ts +42 -0
- package/dist/mongo/schema/admin/member-config.entity.js +77 -0
- package/dist/mongo/schema/admin/member-config.entity.js.map +1 -0
- package/dist/mongo/schema/admin/member-roles.entity.d.ts +33 -0
- package/dist/mongo/schema/admin/member-roles.entity.js +38 -0
- package/dist/mongo/schema/admin/member-roles.entity.js.map +1 -0
- package/dist/mongo/schema/admin/member.entity.d.ts +48 -0
- package/dist/mongo/schema/admin/member.entity.js +105 -0
- package/dist/mongo/schema/admin/member.entity.js.map +1 -0
- package/dist/mongo/schema/admin/rights.entity.d.ts +33 -0
- package/dist/mongo/schema/admin/rights.entity.js +37 -0
- package/dist/mongo/schema/admin/rights.entity.js.map +1 -0
- package/dist/mongo/schema/admin/roles-rights.entity.d.ts +33 -0
- package/dist/mongo/schema/admin/roles-rights.entity.js +38 -0
- package/dist/mongo/schema/admin/roles-rights.entity.js.map +1 -0
- package/dist/mongo/schema/admin/roles.entity.d.ts +32 -0
- package/dist/mongo/schema/admin/roles.entity.js +33 -0
- package/dist/mongo/schema/admin/roles.entity.js.map +1 -0
- package/dist/mongo/schema/mobile/forbidden-word.entity.d.ts +33 -0
- package/dist/mongo/schema/mobile/forbidden-word.entity.js +40 -0
- package/dist/mongo/schema/mobile/forbidden-word.entity.js.map +1 -0
- package/dist/mongo/schema/mobile/member-cache.entity.d.ts +57 -0
- package/dist/mongo/schema/mobile/member-cache.entity.js +137 -0
- package/dist/mongo/schema/mobile/member-cache.entity.js.map +1 -0
- package/dist/mongo/schema/mobile/member-config.entity.d.ts +49 -0
- package/dist/mongo/schema/mobile/member-config.entity.js +105 -0
- package/dist/mongo/schema/mobile/member-config.entity.js.map +1 -0
- package/dist/mongo/schema/mobile/member-view.entity.d.ts +36 -0
- package/dist/mongo/schema/mobile/member-view.entity.js +56 -0
- package/dist/mongo/schema/mobile/member-view.entity.js.map +1 -0
- package/dist/mongo/schema/mobile/spend-log.entity.d.ts +35 -0
- package/dist/mongo/schema/mobile/spend-log.entity.js +45 -0
- package/dist/mongo/schema/mobile/spend-log.entity.js.map +1 -0
- package/dist/mongo/schema/mobile/view-data.entity.d.ts +36 -0
- package/dist/mongo/schema/mobile/view-data.entity.js +50 -0
- package/dist/mongo/schema/mobile/view-data.entity.js.map +1 -0
- package/dist/mongo/schema/notification/contents.entity.d.ts +32 -0
- package/dist/mongo/schema/notification/contents.entity.js +36 -0
- package/dist/mongo/schema/notification/contents.entity.js.map +1 -0
- package/dist/mongo/schema/notification/defined-texts.entity.d.ts +33 -0
- package/dist/mongo/schema/notification/defined-texts.entity.js +37 -0
- package/dist/mongo/schema/notification/defined-texts.entity.js.map +1 -0
- package/dist/mongo/schema/notification/filter.dto.d.ts +6 -0
- package/dist/mongo/schema/notification/filter.dto.js +7 -0
- package/dist/mongo/schema/notification/filter.dto.js.map +1 -0
- package/dist/mongo/schema/notification/member-notification.entity.d.ts +55 -0
- package/dist/mongo/schema/notification/member-notification.entity.js +91 -0
- package/dist/mongo/schema/notification/member-notification.entity.js.map +1 -0
- package/dist/mongo/schema/notification/notification.entity.d.ts +44 -0
- package/dist/mongo/schema/notification/notification.entity.js +73 -0
- package/dist/mongo/schema/notification/notification.entity.js.map +1 -0
- package/dist/mongo/schema/system-log.entity.d.ts +37 -0
- package/dist/mongo/schema/system-log.entity.js +53 -0
- package/dist/mongo/schema/system-log.entity.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.d.ts +7 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.js +3 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.d.ts +2 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.js +29 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.d.ts +19 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.js +104 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.js.map +1 -0
- package/dist/postgresql/entity/blocked-phone.entity.d.ts +9 -0
- package/dist/postgresql/entity/blocked-phone.entity.js +44 -0
- package/dist/postgresql/entity/blocked-phone.entity.js.map +1 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.d.ts +14 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.js +64 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.js.map +1 -0
- package/dist/postgresql/entity/member-blocked.entity.d.ts +11 -0
- package/dist/postgresql/entity/member-blocked.entity.js +58 -0
- package/dist/postgresql/entity/member-blocked.entity.js.map +1 -0
- package/dist/postgresql/entity/member-config.entity.d.ts +16 -0
- package/dist/postgresql/entity/member-config.entity.js +79 -0
- package/dist/postgresql/entity/member-config.entity.js.map +1 -0
- package/dist/postgresql/entity/member-connections.entity.d.ts +7 -0
- package/dist/postgresql/entity/member-connections.entity.js +39 -0
- package/dist/postgresql/entity/member-connections.entity.js.map +1 -0
- package/dist/postgresql/entity/member-liked.entity.d.ts +9 -0
- package/dist/postgresql/entity/member-liked.entity.js +50 -0
- package/dist/postgresql/entity/member-liked.entity.js.map +1 -0
- package/dist/postgresql/entity/member-subscription.entity.d.ts +12 -0
- package/dist/postgresql/entity/member-subscription.entity.js +64 -0
- package/dist/postgresql/entity/member-subscription.entity.js.map +1 -0
- package/dist/postgresql/entity/member-verification.entity.d.ts +8 -0
- package/dist/postgresql/entity/member-verification.entity.js +42 -0
- package/dist/postgresql/entity/member-verification.entity.js.map +1 -0
- package/dist/postgresql/entity/member.entity.d.ts +36 -0
- package/dist/postgresql/entity/member.entity.js +161 -0
- package/dist/postgresql/entity/member.entity.js.map +1 -0
- package/dist/postgresql/entity/message.entity.d.ts +13 -0
- package/dist/postgresql/entity/message.entity.js +73 -0
- package/dist/postgresql/entity/message.entity.js.map +1 -0
- package/dist/postgresql/entity/mission.entity.d.ts +12 -0
- package/dist/postgresql/entity/mission.entity.js +60 -0
- package/dist/postgresql/entity/mission.entity.js.map +1 -0
- package/dist/postgresql/entity/notification.entity.d.ts +8 -0
- package/dist/postgresql/entity/notification.entity.js +42 -0
- package/dist/postgresql/entity/notification.entity.js.map +1 -0
- package/dist/postgresql/entity/payment.entity.d.ts +14 -0
- package/dist/postgresql/entity/payment.entity.js +96 -0
- package/dist/postgresql/entity/payment.entity.js.map +1 -0
- package/dist/postgresql/entity/product-purchase.entity.d.ts +12 -0
- package/dist/postgresql/entity/product-purchase.entity.js +54 -0
- package/dist/postgresql/entity/product-purchase.entity.js.map +1 -0
- package/dist/postgresql/entity/purchase.entity.d.ts +15 -0
- package/dist/postgresql/entity/purchase.entity.js +73 -0
- package/dist/postgresql/entity/purchase.entity.js.map +1 -0
- package/dist/postgresql/entity/swipe-countries.entity.d.ts +8 -0
- package/dist/postgresql/entity/swipe-countries.entity.js +36 -0
- package/dist/postgresql/entity/swipe-countries.entity.js.map +1 -0
- package/dist/postgresql/entity/system-logs.entity.d.ts +12 -0
- package/dist/postgresql/entity/system-logs.entity.js +74 -0
- package/dist/postgresql/entity/system-logs.entity.js.map +1 -0
- package/dist/postgresql/entity/system-settings.entity.d.ts +8 -0
- package/dist/postgresql/entity/system-settings.entity.js +38 -0
- package/dist/postgresql/entity/system-settings.entity.js.map +1 -0
- package/dist/postgresql/entity/wallet-detail.entity.d.ts +10 -0
- package/dist/postgresql/entity/wallet-detail.entity.js +50 -0
- package/dist/postgresql/entity/wallet-detail.entity.js.map +1 -0
- package/dist/postgresql/entity/wallet.entity.d.ts +11 -0
- package/dist/postgresql/entity/wallet.entity.js +56 -0
- package/dist/postgresql/entity/wallet.entity.js.map +1 -0
- package/dist/postgresql/index.d.ts +19 -0
- package/dist/postgresql/index.js +36 -0
- package/dist/postgresql/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let Payment = class Payment extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
sequelize_typescript_1.PrimaryKey,
|
|
18
|
+
sequelize_typescript_1.AutoIncrement,
|
|
19
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], Payment.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, sequelize_typescript_1.Column)({
|
|
24
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
25
|
+
allowNull: true,
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Payment.prototype, "order_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, sequelize_typescript_1.Column)({
|
|
31
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
32
|
+
allowNull: false,
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], Payment.prototype, "amount_tl", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({
|
|
38
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], Payment.prototype, "amount_kurus", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.Column)({
|
|
45
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(index_1.EnumPaymentType)),
|
|
46
|
+
allowNull: true,
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Payment.prototype, "type", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, sequelize_typescript_1.Column)({
|
|
52
|
+
type: sequelize_typescript_1.DataType.TEXT,
|
|
53
|
+
allowNull: true,
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Payment.prototype, "signature", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, sequelize_typescript_1.Column)({
|
|
59
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(index_1.EnumStatus)),
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: index_1.EnumStatus.P,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Payment.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
sequelize_typescript_1.Index,
|
|
67
|
+
(0, sequelize_typescript_1.Column)({
|
|
68
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
69
|
+
allowNull: false,
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Payment.prototype, "member_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, sequelize_typescript_1.Column)({
|
|
75
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
76
|
+
allowNull: false,
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], Payment.prototype, "product_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
sequelize_typescript_1.Index,
|
|
82
|
+
(0, sequelize_typescript_1.Column)({
|
|
83
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
84
|
+
allowNull: false,
|
|
85
|
+
}),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Payment.prototype, "payment_id", void 0);
|
|
88
|
+
Payment = __decorate([
|
|
89
|
+
(0, sequelize_typescript_1.Table)({
|
|
90
|
+
tableName: 'Payment',
|
|
91
|
+
timestamps: true,
|
|
92
|
+
underscored: true,
|
|
93
|
+
})
|
|
94
|
+
], Payment);
|
|
95
|
+
exports.default = Payment;
|
|
96
|
+
//# sourceMappingURL=payment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/payment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAQ8B;AAC9B,mDAAsE;AAOvD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAc;CA8DlD,CAAA;AA7DG;IAAC,iCAAU;IACV,oCAAa;IACb,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;mCACd;AAEX;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC;;yCACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACnB,CAAC;;0CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACnB,CAAC;;6CACmB;AAErB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAe,CAAC,CAAC;QACtD,SAAS,EAAE,IAAI;KAClB,CAAC;;qCACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,IAAI;KAClB,CAAC;;0CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAU,CAAC,CAAC;QACjD,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,kBAAU,CAAC,CAAC;KAC7B,CAAC;;uCACiB;AAEnB;IAAC,4BAAK;IACL,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACnB,CAAC;;0CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;2CACiB;AAEnB;IAAC,4BAAK;IACL,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;2CACiB;AA7DF,OAAO;IAL3B,IAAA,4BAAK,EAAC;QACH,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,IAAI;KACpB,CAAC;GACmB,OAAO,CA8D3B;kBA9DoB,OAAO"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { EnumProductPurchaseStatus } from '../../models/enum/index';
|
|
3
|
+
declare class ProductPurchase extends Model {
|
|
4
|
+
name: string;
|
|
5
|
+
profit: number;
|
|
6
|
+
raw_amount: number;
|
|
7
|
+
amount: number;
|
|
8
|
+
type: string;
|
|
9
|
+
status: EnumProductPurchaseStatus;
|
|
10
|
+
payment_platform: string;
|
|
11
|
+
}
|
|
12
|
+
export default ProductPurchase;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let ProductPurchase = class ProductPurchase extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], ProductPurchase.prototype, "name", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.NUMBER),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProductPurchase.prototype, "profit", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.DOUBLE),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ProductPurchase.prototype, "raw_amount", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.DOUBLE),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ProductPurchase.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ProductPurchase.prototype, "type", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.product_purchase }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ProductPurchase.prototype, "status", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ProductPurchase.prototype, "payment_platform", void 0);
|
|
44
|
+
ProductPurchase = __decorate([
|
|
45
|
+
(0, sequelize_typescript_1.Table)({
|
|
46
|
+
timestamps: true,
|
|
47
|
+
freezeTableName: true,
|
|
48
|
+
tableName: 'ProductPurchase',
|
|
49
|
+
createdAt: 'created_at',
|
|
50
|
+
updatedAt: 'updated_at',
|
|
51
|
+
})
|
|
52
|
+
], ProductPurchase);
|
|
53
|
+
exports.default = ProductPurchase;
|
|
54
|
+
//# sourceMappingURL=product-purchase.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-purchase.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/product-purchase.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAA2E;AAS3E,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAK;CAsBlC,CAAA;AApBG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;6CACX;AAEb;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;+CACT;AAEf;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;mDACJ;AAEpB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;+CACR;AAEhB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;6CACV;AAEd;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,gBAAgB,EAAE,CAAC;;+CACN;AAEnC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;yDACE;AArBxB,eAAe;IAPpB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,iBAAiB;QAC5B,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;KAC1B,CAAC;GACI,eAAe,CAsBpB;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import Member from "./member.entity";
|
|
3
|
+
import { EnumPurchaseStatus } from '../../models/enum/index';
|
|
4
|
+
declare class Purchase extends Model {
|
|
5
|
+
transaction_id: string;
|
|
6
|
+
member_id: number;
|
|
7
|
+
transaction_date: string;
|
|
8
|
+
product_id: string;
|
|
9
|
+
payment_platform?: string;
|
|
10
|
+
receipt?: string;
|
|
11
|
+
purchase_status: EnumPurchaseStatus;
|
|
12
|
+
purchase_error?: string;
|
|
13
|
+
member?: Member;
|
|
14
|
+
}
|
|
15
|
+
export default Purchase;
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
16
|
+
const member_entity_1 = __importDefault(require("./member.entity"));
|
|
17
|
+
const index_1 = require("../../models/enum/index");
|
|
18
|
+
let Purchase = class Purchase extends sequelize_typescript_1.Model {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Purchase.prototype, "transaction_id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], Purchase.prototype, "member_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Purchase.prototype, "transaction_date", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Purchase.prototype, "product_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Purchase.prototype, "payment_platform", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING(15000)),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Purchase.prototype, "receipt", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, sequelize_typescript_1.Column)({
|
|
46
|
+
type: index_1.enums.purchase_status,
|
|
47
|
+
defaultValue: 'P'
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Purchase.prototype, "purchase_status", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Purchase.prototype, "purchase_error", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.BelongsTo)(() => member_entity_1.default, { foreignKey: 'member_id', as: 'member' }),
|
|
57
|
+
__metadata("design:type", member_entity_1.default)
|
|
58
|
+
], Purchase.prototype, "member", void 0);
|
|
59
|
+
Purchase = __decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Table)({
|
|
61
|
+
timestamps: true,
|
|
62
|
+
freezeTableName: true,
|
|
63
|
+
underscored: true,
|
|
64
|
+
tableName: 'Purchase',
|
|
65
|
+
indexes: [
|
|
66
|
+
{ fields: ['id'], unique: true, name: 'indexes_purchase_001' },
|
|
67
|
+
{ fields: ['member_id'], unique: true, name: 'indexes_purchase_002' },
|
|
68
|
+
{ fields: ['transaction_id'], unique: true, name: 'indexes_purchase_003' }
|
|
69
|
+
]
|
|
70
|
+
})
|
|
71
|
+
], Purchase);
|
|
72
|
+
exports.default = Purchase;
|
|
73
|
+
//# sourceMappingURL=purchase.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/purchase.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiF;AACjF,oEAAqC;AACrC,mDAAoE;AAYpE,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAK;CA+B3B,CAAA;AA7BC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;gDACA;AAExB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;2CACN;AAEnB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;kDACE;AAE1B;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;4CACJ;AAEpB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;kDACE;AAE1B;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;yCACd;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,aAAK,CAAC,eAAe;QAC3B,YAAY,EAAE,GAAG;KAClB,CAAC;;iDACmC;AAErC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;gDACA;AAExB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uBAAM,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;8BAC1D,uBAAM;wCAAC;AA9BZ,QAAQ;IAXb,IAAA,4BAAK,EAAC;QACL,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE;YACP,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAC9D,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;YACrE,EAAE,MAAM,EAAE,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;SAC3E;KACF,CAAC;GACI,QAAQ,CA+Bb;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let SwipeCountries = class SwipeCountries extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], SwipeCountries.prototype, "code", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.NUMBER, defaultValue: 0 }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwipeCountries.prototype, "sort", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.status, defaultValue: index_1.EnumStatus.A }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwipeCountries.prototype, "status", void 0);
|
|
28
|
+
SwipeCountries = __decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Table)({
|
|
30
|
+
timestamps: true,
|
|
31
|
+
freezeTableName: true,
|
|
32
|
+
tableName: 'SwipeCountries',
|
|
33
|
+
})
|
|
34
|
+
], SwipeCountries);
|
|
35
|
+
exports.default = SwipeCountries;
|
|
36
|
+
//# sourceMappingURL=swipe-countries.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swipe-countries.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/swipe-countries.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAA4D;AAO5D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAUjC,CAAA;AARG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;4CACX;AAEb;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;4CACtC;AAEb;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,MAAM,EAAE,YAAY,EAAE,kBAAU,CAAC,CAAC,EAAE,CAAC;;8CACxC;AATjB,cAAc;IALnB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,gBAAgB;KAC9B,CAAC;GACI,cAAc,CAUnB;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { EnumSystemLevel } from '../../models/enum/index';
|
|
3
|
+
declare class SystemLogs extends Model {
|
|
4
|
+
level: EnumSystemLevel;
|
|
5
|
+
process_name: string;
|
|
6
|
+
operation: string;
|
|
7
|
+
message: string;
|
|
8
|
+
context: string;
|
|
9
|
+
error_stack: string;
|
|
10
|
+
member_id: number;
|
|
11
|
+
}
|
|
12
|
+
export default SystemLogs;
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let SystemLogs = class SystemLogs extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)({
|
|
18
|
+
type: index_1.enums.sys_level,
|
|
19
|
+
defaultValue: "INFO",
|
|
20
|
+
allowNull: false,
|
|
21
|
+
}),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SystemLogs.prototype, "level", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
|
26
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
27
|
+
allowNull: false
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], SystemLogs.prototype, "process_name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Column)({
|
|
33
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SystemLogs.prototype, "operation", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({
|
|
40
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
41
|
+
allowNull: true,
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SystemLogs.prototype, "message", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, sequelize_typescript_1.Column)({
|
|
47
|
+
type: sequelize_typescript_1.DataType.STRING(1000),
|
|
48
|
+
allowNull: true,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], SystemLogs.prototype, "context", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, sequelize_typescript_1.Column)({
|
|
54
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
55
|
+
allowNull: true,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], SystemLogs.prototype, "error_stack", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Column)({
|
|
61
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
62
|
+
allowNull: true,
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], SystemLogs.prototype, "member_id", void 0);
|
|
66
|
+
SystemLogs = __decorate([
|
|
67
|
+
(0, sequelize_typescript_1.Table)({
|
|
68
|
+
timestamps: true,
|
|
69
|
+
freezeTableName: true,
|
|
70
|
+
tableName: 'SystemLogs',
|
|
71
|
+
})
|
|
72
|
+
], SystemLogs);
|
|
73
|
+
exports.default = SystemLogs;
|
|
74
|
+
//# sourceMappingURL=system-logs.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-logs.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/system-logs.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuE;AACvE,mDAAiE;AAOjE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAK;CA6C7B,CAAA;AA3CG;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,aAAK,CAAC,SAAS;QACrB,YAAY,EAAE,MAAM;QACpB,SAAS,EAAE,KAAK;KACnB,CAAC;;yCACqB;AAEvB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;gDACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;6CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC;;2CACc;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;QAC3B,SAAS,EAAE,IAAI;KAElB,CAAC;;2CACc;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC;;+CACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,IAAI;KAClB,CAAC;;6CACgB;AA5ChB,UAAU;IALf,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,YAAY;KAC1B,CAAC;GACI,UAAU,CA6Cf;AAED,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let SystemSettings = class SystemSettings extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], SystemSettings.prototype, "parameter_key", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SystemSettings.prototype, "paramater_value", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
|
26
|
+
type: index_1.enums.status
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SystemSettings.prototype, "status", void 0);
|
|
30
|
+
SystemSettings = __decorate([
|
|
31
|
+
(0, sequelize_typescript_1.Table)({
|
|
32
|
+
timestamps: true,
|
|
33
|
+
freezeTableName: true,
|
|
34
|
+
tableName: 'SystemSettings',
|
|
35
|
+
})
|
|
36
|
+
], SystemSettings);
|
|
37
|
+
exports.default = SystemSettings;
|
|
38
|
+
//# sourceMappingURL=system-settings.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-settings.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/system-settings.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAA4D;AAO5D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAYjC,CAAA;AAVG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;qDACD;AAEvB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;uDACC;AAEzB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,aAAK,CAAC,MAAM;KACrB,CAAC;;8CACkB;AAXlB,cAAc;IALnB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,gBAAgB;KAC9B,CAAC;GACI,cAAc,CAYnB;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { EnumTransactionType, EnumWalletType } from '../../models/enum/index';
|
|
3
|
+
declare class WalletDetail extends Model {
|
|
4
|
+
wallet_id?: number;
|
|
5
|
+
wallet_type?: EnumWalletType;
|
|
6
|
+
transaction_type?: EnumTransactionType;
|
|
7
|
+
transaction_value?: string;
|
|
8
|
+
coins?: number;
|
|
9
|
+
}
|
|
10
|
+
export default WalletDetail;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let WalletDetail = class WalletDetail extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], WalletDetail.prototype, "wallet_id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.wallet_type }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], WalletDetail.prototype, "wallet_type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.transaction_type }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], WalletDetail.prototype, "transaction_type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING(10000)),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WalletDetail.prototype, "transaction_value", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.FLOAT),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], WalletDetail.prototype, "coins", void 0);
|
|
36
|
+
WalletDetail = __decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Table)({
|
|
38
|
+
timestamps: true,
|
|
39
|
+
freezeTableName: true,
|
|
40
|
+
underscored: true,
|
|
41
|
+
tableName: 'WalletDetail',
|
|
42
|
+
indexes: [
|
|
43
|
+
{ fields: ['id'], unique: true, name: 'indexes_walletdetail_001' },
|
|
44
|
+
{ fields: ['wallet_id'], unique: true, name: 'indexes_walletdetail_002' },
|
|
45
|
+
{ fields: ['created_at'], unique: true, name: 'indexes_walletdetail_003' }
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
], WalletDetail);
|
|
49
|
+
exports.default = WalletDetail;
|
|
50
|
+
//# sourceMappingURL=wallet-detail.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-detail.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/wallet-detail.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAAqF;AAarF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CAe/B,CAAA;AAdG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;+CACN;AAEnB;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,WAAW,EAAE,CAAC;;iDACP;AAE7B;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,gBAAgB,EAAE,CAAC;;sDACF;AAEvC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACJ;AAE3B;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,KAAK,CAAC;;2CACR;AAdb,YAAY;IAXjB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE;YACL,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE;YAClE,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE;YACzE,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE;SAC7E;KACJ,CAAC;GACI,YAAY,CAejB;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { EnumStatus } from '../../models/enum/index';
|
|
3
|
+
declare class Wallet extends Model {
|
|
4
|
+
member_id?: number;
|
|
5
|
+
total_coins?: number;
|
|
6
|
+
used_coins: number;
|
|
7
|
+
remain_coins: number;
|
|
8
|
+
status?: EnumStatus;
|
|
9
|
+
earning_coins: number;
|
|
10
|
+
}
|
|
11
|
+
export default Wallet;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let Wallet = class Wallet extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], Wallet.prototype, "member_id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], Wallet.prototype, "total_coins", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], Wallet.prototype, "used_coins", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], Wallet.prototype, "remain_coins", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)({
|
|
34
|
+
type: index_1.enums.status,
|
|
35
|
+
defaultValue: 'A'
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Wallet.prototype, "status", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.INTEGER, defaultValue: 0, allowNull: false }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], Wallet.prototype, "earning_coins", void 0);
|
|
43
|
+
Wallet = __decorate([
|
|
44
|
+
(0, sequelize_typescript_1.Table)({
|
|
45
|
+
timestamps: true,
|
|
46
|
+
freezeTableName: true,
|
|
47
|
+
underscored: true,
|
|
48
|
+
tableName: 'Wallet',
|
|
49
|
+
indexes: [
|
|
50
|
+
{ fields: ['id'], unique: true, name: 'indexes_wallet_001' },
|
|
51
|
+
{ fields: ['member_id'], unique: true, name: 'indexes_wallet_002' }
|
|
52
|
+
]
|
|
53
|
+
})
|
|
54
|
+
], Wallet);
|
|
55
|
+
exports.default = Wallet;
|
|
56
|
+
//# sourceMappingURL=wallet.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/wallet.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAA4D;AAY5D,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,4BAAK;CAqBzB,CAAA;AApBG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;yCACN;AAEnB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;2CACL;AAEpB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;0CACL;AAEpB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;4CACH;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,aAAK,CAAC,MAAM;QAClB,YAAY,EAAE,GAAG;KACpB,CAAC;;sCACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAC,CAAC;;6CAC9C;AApBrB,MAAM;IAVX,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,QAAQ;QACnB,OAAO,EAAE;YACL,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC5D,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,EAAE;SACtE;KACJ,CAAC;GACI,MAAM,CAqBX;AAED,kBAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import BlockedPhone from "./entity/blocked-phone.entity";
|
|
2
|
+
import FeedbackAndComplaint from "./entity/feedback-and-complaint.entity";
|
|
3
|
+
import MemberBlocked from "./entity/member-blocked.entity";
|
|
4
|
+
import MemberConfig from "./entity/member-config.entity";
|
|
5
|
+
import MemberConnections from "./entity/member-connections.entity";
|
|
6
|
+
import MemberLiked from "./entity/member-liked.entity";
|
|
7
|
+
import Member from "./entity/member.entity";
|
|
8
|
+
import Message from "./entity/message.entity";
|
|
9
|
+
import ProductPurchase from "./entity/product-purchase.entity";
|
|
10
|
+
import Purchase from "./entity/purchase.entity";
|
|
11
|
+
import SystemLogs from "./entity/system-logs.entity";
|
|
12
|
+
import SystemSettings from "./entity/system-settings.entity";
|
|
13
|
+
import MemberSubscription from "./entity/member-subscription.entity";
|
|
14
|
+
export declare const POSTGRES_ENTITIES: (typeof BlockedPhone | typeof FeedbackAndComplaint | typeof MemberBlocked | typeof MemberConfig | typeof MemberConnections | typeof MemberLiked | typeof Member | typeof Message | typeof ProductPurchase | typeof Purchase | typeof SystemLogs | typeof SystemSettings | {
|
|
15
|
+
new (title: string, options?: NotificationOptions): Notification;
|
|
16
|
+
prototype: Notification;
|
|
17
|
+
readonly permission: NotificationPermission;
|
|
18
|
+
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
|
|
19
|
+
} | typeof MemberSubscription)[];
|