@asumano/worklip-typeorm-db 1.1.47 → 1.1.48

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.
@@ -8,6 +8,8 @@ export declare class UsageAlert {
8
8
  action_type: number;
9
9
  subscription_addon_template: SubscriptionAddonTemplate;
10
10
  notification_email: string | null;
11
+ last_triggered_at: Date | null;
12
+ max_autopurchases: number | null;
11
13
  status: number;
12
14
  created: Date;
13
15
  updated: Date | null;
@@ -70,6 +70,24 @@ __decorate([
70
70
  }),
71
71
  __metadata("design:type", Object)
72
72
  ], UsageAlert.prototype, "notification_email", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({
75
+ type: "datetime",
76
+ nullable: true,
77
+ default: null,
78
+ comment: "Última vez que se disparó la alerta (anti-repetición). Se fija al cruzar el umbral y se limpia (NULL = armada) cuando el uso baja del umbral.",
79
+ }),
80
+ __metadata("design:type", Object)
81
+ ], UsageAlert.prototype, "last_triggered_at", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)({
84
+ type: "int",
85
+ nullable: true,
86
+ default: null,
87
+ comment: "Tope de compras automáticas por ciclo de facturación para esta alerta. NULL = sin límite.",
88
+ }),
89
+ __metadata("design:type", Object)
90
+ ], UsageAlert.prototype, "max_autopurchases", void 0);
73
91
  __decorate([
74
92
  (0, typeorm_1.Column)({
75
93
  default: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asumano/worklip-typeorm-db",
3
- "version": "1.1.47",
3
+ "version": "1.1.48",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },