easywork-common-lib 1.0.182 → 1.0.184

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.
@@ -1 +1,2 @@
1
1
  export * from "./notification.entity";
2
+ export * from "./push-token.entity";
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./notification.entity"), exports);
18
+ __exportStar(require("./push-token.entity"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,sDAAoC"}
@@ -2,5 +2,6 @@ import { User } from "../user.entity";
2
2
  import { BaseEntitySimple } from "../../common";
3
3
  export declare class PushToken extends BaseEntitySimple {
4
4
  token: string;
5
+ device: string;
5
6
  user?: User;
6
7
  }
@@ -15,6 +15,7 @@ const common_1 = require("../../common");
15
15
  const typeorm_1 = require("typeorm");
16
16
  let PushToken = class PushToken extends common_1.BaseEntitySimple {
17
17
  token;
18
+ device;
18
19
  user;
19
20
  };
20
21
  exports.PushToken = PushToken;
@@ -22,6 +23,10 @@ __decorate([
22
23
  (0, typeorm_1.Column)({ type: "text" }),
23
24
  __metadata("design:type", String)
24
25
  ], PushToken.prototype, "token", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ type: "text", unique: true }),
28
+ __metadata("design:type", String)
29
+ ], PushToken.prototype, "device", void 0);
25
30
  __decorate([
26
31
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
27
32
  onDelete: "SET NULL",
@@ -1 +1 @@
1
- {"version":3,"file":"push-token.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/push-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,yCAAgD;AAChD,qCAAoD;AAG7C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,yBAAgB;IAE3C,KAAK,CAAS;IAQd,IAAI,CAAQ;CACf,CAAA;AAXY,8BAAS;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACX;AAQd;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACK,kBAAI;uCAAC;oBAVH,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAWrB"}
1
+ {"version":3,"file":"push-token.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/push-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,yCAAgD;AAChD,qCAAoD;AAG7C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,yBAAgB;IAE3C,KAAK,CAAS;IAGd,MAAM,CAAS;IAQf,IAAI,CAAQ;CACf,CAAA;AAdY,8BAAS;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wCACX;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC;;yCACvB;AAQf;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACK,kBAAI;uCAAC;oBAbH,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CAcrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.182",
3
+ "version": "1.0.184",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {