clhq-postgres-module 1.1.0-alpha.116 → 1.1.0-alpha.118
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/entities/credit-transaction.entity.d.ts +1 -1
- package/dist/entities/credit-transaction.entity.js +4 -4
- package/dist/entities/referral-event.entity.js +1 -1
- package/dist/postgres.module.js +1 -0
- package/dist/repositories/referral-event.repository.js +2 -3
- package/dist/repositories/repository.module.js +2 -0
- package/package.json +1 -1
|
@@ -10,10 +10,10 @@ export declare class CreditTransaction {
|
|
|
10
10
|
source?: string;
|
|
11
11
|
referenceId?: string;
|
|
12
12
|
expiresAt?: Date;
|
|
13
|
+
status: string;
|
|
13
14
|
operationType?: string;
|
|
14
15
|
operationId?: string;
|
|
15
16
|
reservationId?: string;
|
|
16
|
-
status: string;
|
|
17
17
|
metadata: Record<string, any>;
|
|
18
18
|
createdAt: Date;
|
|
19
19
|
updatedAt: Date;
|
|
@@ -56,6 +56,10 @@ __decorate([
|
|
|
56
56
|
(0, typeorm_1.Column)({ name: 'expires_at', type: 'timestamp', nullable: true }),
|
|
57
57
|
__metadata("design:type", Date)
|
|
58
58
|
], CreditTransaction.prototype, "expiresAt", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ length: 20, default: 'completed' }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreditTransaction.prototype, "status", void 0);
|
|
59
63
|
__decorate([
|
|
60
64
|
(0, typeorm_1.Column)({ name: 'operation_type', length: 50, nullable: true }),
|
|
61
65
|
__metadata("design:type", String)
|
|
@@ -68,10 +72,6 @@ __decorate([
|
|
|
68
72
|
(0, typeorm_1.Column)({ name: 'reservation_id', type: 'uuid', nullable: true }),
|
|
69
73
|
__metadata("design:type", String)
|
|
70
74
|
], CreditTransaction.prototype, "reservationId", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ length: 20, default: 'completed' }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], CreditTransaction.prototype, "status", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, typeorm_1.Column)({ type: 'jsonb', default: {} }),
|
|
77
77
|
__metadata("design:type", Object)
|
|
@@ -137,7 +137,7 @@ __decorate([
|
|
|
137
137
|
__metadata("design:type", String)
|
|
138
138
|
], ReferralEvent.prototype, "ipAddress", void 0);
|
|
139
139
|
__decorate([
|
|
140
|
-
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
140
|
+
(0, typeorm_1.Column)({ name: 'user_agent', type: 'text', nullable: true }),
|
|
141
141
|
__metadata("design:type", String)
|
|
142
142
|
], ReferralEvent.prototype, "userAgent", void 0);
|
|
143
143
|
__decorate([
|
package/dist/postgres.module.js
CHANGED
|
@@ -26,9 +26,8 @@ let ReferralEventRepository = class ReferralEventRepository extends base_reposit
|
|
|
26
26
|
async findByReferrerId(referrerId, options) {
|
|
27
27
|
const query = this.repository
|
|
28
28
|
.createQueryBuilder('re')
|
|
29
|
-
.where('re.
|
|
30
|
-
.
|
|
31
|
-
.orderBy('re.signup_at', 'DESC');
|
|
29
|
+
.where('re.referrerId = :referrerId', { referrerId })
|
|
30
|
+
.orderBy('re.signupAt', 'DESC');
|
|
32
31
|
if (options?.status) {
|
|
33
32
|
query.andWhere('re.status = :status', { status: options.status });
|
|
34
33
|
}
|
|
@@ -42,6 +42,7 @@ const repositories = [
|
|
|
42
42
|
_1.UserContextRepository,
|
|
43
43
|
_1.AiEmbeddingRepository,
|
|
44
44
|
_1.MetadataActivityLogRepository,
|
|
45
|
+
_1.RemotionRenderRepository,
|
|
45
46
|
];
|
|
46
47
|
const entities = [
|
|
47
48
|
entities_1.User,
|
|
@@ -74,6 +75,7 @@ const entities = [
|
|
|
74
75
|
entities_1.UserContext,
|
|
75
76
|
entities_1.AiEmbedding,
|
|
76
77
|
entities_1.MetadataActivityLog,
|
|
78
|
+
entities_1.RemotionRender,
|
|
77
79
|
];
|
|
78
80
|
let RepositoryModule = class RepositoryModule {
|
|
79
81
|
};
|