@imaginamossas/farmabien-common 1.0.23 → 1.0.25
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/customer.entity.d.ts +6 -0
- package/dist/entities/customer.entity.js +26 -0
- package/dist/entities/customer.entity.js.map +1 -1
- package/dist/queues/outbox/src/outbox-event.entity.js +5 -5
- package/dist/queues/outbox/src/outbox-event.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -12,10 +12,16 @@ export declare class CustomerEntity {
|
|
|
12
12
|
phoneNumber: string;
|
|
13
13
|
gender: string | null;
|
|
14
14
|
birthdate: Date | null;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
isProfileComplete: boolean;
|
|
17
|
+
acceptsTerms: boolean;
|
|
18
|
+
acceptsMarketing: boolean;
|
|
15
19
|
createdAt: Date;
|
|
16
20
|
updatedAt: Date;
|
|
17
21
|
deletedAt: Date | null;
|
|
18
22
|
addresses: unknown[];
|
|
23
|
+
get customerId(): number;
|
|
24
|
+
get isEmailVerified(): boolean;
|
|
19
25
|
get fullName(): string;
|
|
20
26
|
get fullPhone(): string;
|
|
21
27
|
}
|
|
@@ -25,10 +25,20 @@ let CustomerEntity = class CustomerEntity {
|
|
|
25
25
|
phoneNumber;
|
|
26
26
|
gender;
|
|
27
27
|
birthdate;
|
|
28
|
+
isActive;
|
|
29
|
+
isProfileComplete;
|
|
30
|
+
acceptsTerms;
|
|
31
|
+
acceptsMarketing;
|
|
28
32
|
createdAt;
|
|
29
33
|
updatedAt;
|
|
30
34
|
deletedAt;
|
|
31
35
|
addresses;
|
|
36
|
+
get customerId() {
|
|
37
|
+
return this.id;
|
|
38
|
+
}
|
|
39
|
+
get isEmailVerified() {
|
|
40
|
+
return this.emailVerified;
|
|
41
|
+
}
|
|
32
42
|
get fullName() {
|
|
33
43
|
return `${this.firstName} ${this.lastName}`;
|
|
34
44
|
}
|
|
@@ -89,6 +99,22 @@ __decorate([
|
|
|
89
99
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
90
100
|
__metadata("design:type", Object)
|
|
91
101
|
], CustomerEntity.prototype, "birthdate", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true, name: 'is_active' }),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], CustomerEntity.prototype, "isActive", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, name: 'is_profile_complete' }),
|
|
108
|
+
__metadata("design:type", Boolean)
|
|
109
|
+
], CustomerEntity.prototype, "isProfileComplete", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, name: 'accepts_terms' }),
|
|
112
|
+
__metadata("design:type", Boolean)
|
|
113
|
+
], CustomerEntity.prototype, "acceptsTerms", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: false, name: 'accepts_marketing' }),
|
|
116
|
+
__metadata("design:type", Boolean)
|
|
117
|
+
], CustomerEntity.prototype, "acceptsMarketing", void 0);
|
|
92
118
|
__decorate([
|
|
93
119
|
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamptz' }),
|
|
94
120
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.entity.js","sourceRoot":"","sources":["../../src/entities/customer.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCASiB;AAwBV,IAAM,cAAc,GAApB,MAAM,cAAc;IAMzB,EAAE,CAAS;IAWX,KAAK,CAAS;IAOd,YAAY,CAAS;IAMrB,aAAa,CAAU;IAMvB,eAAe,CAAc;IAU7B,SAAS,CAAS;IAMlB,QAAQ,CAAS;IAOjB,MAAM,CAAS;IAMf,QAAQ,CAAS;IAMjB,gBAAgB,CAAS;IAMzB,W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IAAA,eAAK,EAAC,qBAAqB,EAAE,CAAC,kBAAkB,EAAE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACvE,cAAc,CA0K1B"}
|
|
@@ -35,19 +35,19 @@ __decorate([
|
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], OutboxEvent.prototype, "id", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)(),
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'aggregate_type' }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], OutboxEvent.prototype, "aggregateType", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)(),
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'aggregate_id' }),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], OutboxEvent.prototype, "aggregateId", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)(),
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'event_type' }),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], OutboxEvent.prototype, "eventType", void 0);
|
|
49
49
|
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)(),
|
|
50
|
+
(0, typeorm_1.Column)({ name: 'topic_arn' }),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], OutboxEvent.prototype, "topicArn", void 0);
|
|
53
53
|
__decorate([
|
|
@@ -67,7 +67,7 @@ __decorate([
|
|
|
67
67
|
__metadata("design:type", Number)
|
|
68
68
|
], OutboxEvent.prototype, "attempts", void 0);
|
|
69
69
|
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
|
|
70
|
+
(0, typeorm_1.Column)({ name: 'processed_at', type: 'timestamp', nullable: true }),
|
|
71
71
|
__metadata("design:type", Object)
|
|
72
72
|
], OutboxEvent.prototype, "processedAt", void 0);
|
|
73
73
|
exports.OutboxEvent = OutboxEvent = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbox-event.entity.js","sourceRoot":"","sources":["../../../../src/queues/outbox/src/outbox-event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAiE;AACjE,+DAA2D;AAE3D,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAGM,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAEzC,EAAE,CAAS;IAGX,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAGjB,OAAO,CAAU;IAOjB,MAAM,CAAe;IAGrB,QAAQ,CAAS;IAGjB,WAAW,CAAe;CAC3B,CAAA;AA/BY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uCACpB;AAGX;IADC,IAAA,gBAAM,
|
|
1
|
+
{"version":3,"file":"outbox-event.entity.js","sourceRoot":"","sources":["../../../../src/queues/outbox/src/outbox-event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAiE;AACjE,+DAA2D;AAE3D,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,iCAAiB,CAAA;AACnB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAGM,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,wBAAU;IAEzC,EAAE,CAAS;IAGX,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAGjB,OAAO,CAAU;IAOjB,MAAM,CAAe;IAGrB,QAAQ,CAAS;IAGjB,WAAW,CAAe;CAC3B,CAAA;AA/BY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;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