easywork-common-lib 1.0.101 → 1.0.103
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/common/enums/notification.enum.d.ts +11 -0
- package/dist/common/enums/notification.enum.js +13 -1
- package/dist/common/enums/notification.enum.js.map +1 -1
- package/dist/entities/helpers/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/contact_email.entity.js +61 -0
- package/dist/entities/helpers/contact_email.entity.js.map +1 -0
- package/dist/entities/helpers/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/contact_phone.entity.js +61 -0
- package/dist/entities/helpers/contact_phone.entity.js.map +1 -0
- package/dist/entities/helpers/contact_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/contact_sources.entity.js +33 -0
- package/dist/entities/helpers/contact_sources.entity.js.map +1 -0
- package/dist/entities/helpers/contact_types.entity.d.ts +5 -0
- package/dist/entities/helpers/contact_types.entity.js +33 -0
- package/dist/entities/helpers/contact_types.entity.js.map +1 -0
- package/dist/entities/helpers/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/lead_email.entity.js +59 -0
- package/dist/entities/helpers/lead_email.entity.js.map +1 -0
- package/dist/entities/helpers/lead_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/lead_phone.entity.js +59 -0
- package/dist/entities/helpers/lead_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js +30 -0
- package/dist/entities/helpers/sales/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js +35 -0
- package/dist/entities/helpers/sales/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/h_poliza_type.entity.js +30 -0
- package/dist/entities/helpers/sales/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/notifications/index.d.ts +1 -0
- package/dist/entities/notifications/index.js +18 -0
- package/dist/entities/notifications/index.js.map +1 -0
- package/dist/entities/notifications/notification.entity.d.ts +10 -0
- package/dist/entities/notifications/notification.entity.js +60 -0
- package/dist/entities/notifications/notification.entity.js.map +1 -0
- package/dist/entities/oauth.entity.d.ts +1 -1
- package/dist/entities/oauth.entity.js +2 -2
- package/package.json +1 -1
- package/scripts/bump.sh +5 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Notification = void 0;
|
|
13
|
+
const user_entity_1 = require("../user.entity");
|
|
14
|
+
const common_1 = require("../../common");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let Notification = class Notification extends common_1.BaseEntitySimple {
|
|
17
|
+
content;
|
|
18
|
+
title;
|
|
19
|
+
category;
|
|
20
|
+
readAt;
|
|
21
|
+
canceledAt;
|
|
22
|
+
recipientId;
|
|
23
|
+
};
|
|
24
|
+
exports.Notification = Notification;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Notification.prototype, "content", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Notification.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({
|
|
35
|
+
type: "enum",
|
|
36
|
+
enum: common_1.NotificationCategory,
|
|
37
|
+
default: common_1.NotificationCategory.DEFAULT
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Notification.prototype, "category", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], Notification.prototype, "readAt", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "timestamp", nullable: true }),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], Notification.prototype, "canceledAt", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
51
|
+
onDelete: "SET NULL",
|
|
52
|
+
onUpdate: "CASCADE",
|
|
53
|
+
nullable: true,
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", user_entity_1.User)
|
|
56
|
+
], Notification.prototype, "recipientId", void 0);
|
|
57
|
+
exports.Notification = Notification = __decorate([
|
|
58
|
+
(0, typeorm_1.Entity)()
|
|
59
|
+
], Notification);
|
|
60
|
+
//# sourceMappingURL=notification.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/entities/notifications/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAsC;AACtC,yCAAsE;AACtE,qCAAoD;AAG7C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,yBAAgB;IAE9C,OAAO,CAAS;IAGhB,KAAK,CAAS;IAOd,QAAQ,CAAuB;IAG/B,MAAM,CAAO;IAGb,UAAU,CAAO;IAOjB,WAAW,CAAQ;CACtB,CAAA;AA1BY,oCAAY;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6CACT;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;2CACd;AAOd;IALC,IAAA,gBAAM,EAAC;QACJ,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAAoB;QAC1B,OAAO,EAAE,6BAAoB,CAAC,OAAO;KACxC,CAAC;;8CAC6B;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtC,IAAI;4CAAC;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,IAAI;gDAAC;AAOjB;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACY,kBAAI;iDAAC;uBAzBV,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CA0BxB"}
|
|
@@ -16,7 +16,7 @@ let Oauth = class Oauth extends database_1.BaseEntity {
|
|
|
16
16
|
service;
|
|
17
17
|
refresh_token;
|
|
18
18
|
access_token;
|
|
19
|
-
|
|
19
|
+
expires_in;
|
|
20
20
|
userId;
|
|
21
21
|
};
|
|
22
22
|
exports.Oauth = Oauth;
|
|
@@ -35,7 +35,7 @@ __decorate([
|
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, typeorm_1.Column)("int"),
|
|
37
37
|
__metadata("design:type", Number)
|
|
38
|
-
], Oauth.prototype, "
|
|
38
|
+
], Oauth.prototype, "expires_in", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typeorm_1.Column)(),
|
|
41
41
|
__metadata("design:type", String)
|
package/package.json
CHANGED
package/scripts/bump.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
git add .
|
|
2
|
-
git commit -m "bump version"
|
|
3
|
-
git push
|
|
4
|
-
npm version patch
|
|
5
|
-
yarn build
|
|
1
|
+
git add .
|
|
2
|
+
git commit -m "bump version"
|
|
3
|
+
git push
|
|
4
|
+
npm version patch
|
|
5
|
+
yarn build
|
|
6
6
|
npm publish
|