@asumano/worklip-typeorm-db 1.1.72 → 1.1.73
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.
|
@@ -7,6 +7,15 @@ export declare class BillingUsageSnapshot {
|
|
|
7
7
|
storage_bytes: string;
|
|
8
8
|
whatsapp_messages: number;
|
|
9
9
|
emails_sent: number;
|
|
10
|
+
/**
|
|
11
|
+
* DOC: Segundos de audio COBRADOS (`voice_note_log.billed_seconds`) del mes.
|
|
12
|
+
*
|
|
13
|
+
* En segundos y no en minutos aunque el plan se venda por minutos: el proveedor factura por
|
|
14
|
+
* segundos y con un mínimo por petición, así que guardar minutos obligaría a redondear acá y
|
|
15
|
+
* la foto del consumo dejaría de cuadrar con lo que se pagó. Se divide entre 60 solo al
|
|
16
|
+
* mostrarlo.
|
|
17
|
+
*/
|
|
18
|
+
voice_note_seconds: number;
|
|
10
19
|
users_count: number;
|
|
11
20
|
workshops_count: number;
|
|
12
21
|
created: Date;
|
|
@@ -70,6 +70,14 @@ __decorate([
|
|
|
70
70
|
}),
|
|
71
71
|
__metadata("design:type", Number)
|
|
72
72
|
], BillingUsageSnapshot.prototype, "emails_sent", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({
|
|
75
|
+
type: "int",
|
|
76
|
+
default: 0,
|
|
77
|
+
comment: "Cuántos segundos de audio cobrados (voice_note_log) consumió la empresa para el mes y año.",
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], BillingUsageSnapshot.prototype, "voice_note_seconds", void 0);
|
|
73
81
|
__decorate([
|
|
74
82
|
(0, typeorm_1.Column)({
|
|
75
83
|
type: "int",
|
|
@@ -34,7 +34,7 @@ __decorate([
|
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typeorm_1.Column)({
|
|
36
36
|
type: "int",
|
|
37
|
-
comment: "Tipo de recurso:\r\n1. STORAGE_GB.\r\n2. WHATSAPP_MESSAGES.\r\n3. EMAIL_MESSAGES.\r\n4. USERS.\r\n5. WORKSHOPS.",
|
|
37
|
+
comment: "Tipo de recurso:\r\n1. STORAGE_GB.\r\n2. WHATSAPP_MESSAGES.\r\n3. EMAIL_MESSAGES.\r\n4. USERS.\r\n5. WORKSHOPS.\r\n6. VOICE_NOTE_SECONDS.",
|
|
38
38
|
}),
|
|
39
39
|
__metadata("design:type", Number)
|
|
40
40
|
], UsageAlert.prototype, "resource_type", void 0);
|
|
@@ -46,6 +46,10 @@ __decorate([
|
|
|
46
46
|
(0, typeorm_1.ViewColumn)(),
|
|
47
47
|
__metadata("design:type", Number)
|
|
48
48
|
], SubscriptionPlans.prototype, "included_emails", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ViewColumn)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], SubscriptionPlans.prototype, "included_voice_note_minutes", void 0);
|
|
49
53
|
__decorate([
|
|
50
54
|
(0, typeorm_1.ViewColumn)(),
|
|
51
55
|
__metadata("design:type", Number)
|