easywork-common-lib 1.0.288 → 1.0.290
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/functions/cripto.d.ts +1 -0
- package/dist/common/functions/cripto.js +9 -0
- package/dist/common/functions/cripto.js.map +1 -0
- package/dist/common/functions/index.d.ts +1 -0
- package/dist/{entities/easyapp → common/functions}/index.js +1 -1
- package/dist/common/functions/index.js.map +1 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/entities/sales/receipt.entity.d.ts +2 -0
- package/dist/entities/sales/receipt.entity.js +12 -0
- package/dist/entities/sales/receipt.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/easyapp/index.d.ts +0 -1
- package/dist/entities/easyapp/index.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -36
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -36
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
- package/dist/modules/notifier/notifier.module.d.ts +0 -4
- package/dist/modules/notifier/notifier.module.js +0 -49
- package/dist/modules/notifier/notifier.module.js.map +0 -1
- package/dist/modules/notifier/notifier.service.d.ts +0 -19
- package/dist/modules/notifier/notifier.service.js +0 -231
- package/dist/modules/notifier/notifier.service.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generateId(length_?: number): Promise<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateId = void 0;
|
|
4
|
+
const nanoid_1 = require("nanoid");
|
|
5
|
+
async function generateId(length_ = 21) {
|
|
6
|
+
return (0, nanoid_1.nanoid)(length_);
|
|
7
|
+
}
|
|
8
|
+
exports.generateId = generateId;
|
|
9
|
+
//# sourceMappingURL=cripto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cripto.js","sourceRoot":"","sources":["../../../src/common/functions/cripto.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEzB,KAAK,UAAU,UAAU,CAAC,UAAkB,EAAE;IACjD,OAAO,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC;AAC3B,CAAC;AAFD,gCAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./cripto";
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./cripto"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/functions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
package/dist/common/index.d.ts
CHANGED
package/dist/common/index.js
CHANGED
|
@@ -21,4 +21,5 @@ __exportStar(require("./dtos"), exports);
|
|
|
21
21
|
__exportStar(require("./enums"), exports);
|
|
22
22
|
__exportStar(require("./helpers"), exports);
|
|
23
23
|
__exportStar(require("./interceptors"), exports);
|
|
24
|
+
__exportStar(require("./functions"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
package/dist/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,8CAA4B"}
|
|
@@ -6,6 +6,7 @@ import { User } from "../user.entity";
|
|
|
6
6
|
import { Poliza } from "./poliza.entity";
|
|
7
7
|
export declare class Receipt extends BaseEntity {
|
|
8
8
|
status: ReceiptStatus;
|
|
9
|
+
title: string;
|
|
9
10
|
methodPayment: ReceiptMethodPayment;
|
|
10
11
|
currency: Currency;
|
|
11
12
|
methodCollection: PolizaFormaCobro;
|
|
@@ -16,4 +17,5 @@ export declare class Receipt extends BaseEntity {
|
|
|
16
17
|
description: string;
|
|
17
18
|
responsible?: User;
|
|
18
19
|
poliza: Poliza;
|
|
20
|
+
metadata: Record<string, any>;
|
|
19
21
|
}
|
|
@@ -20,6 +20,7 @@ const user_entity_1 = require("../user.entity");
|
|
|
20
20
|
const poliza_entity_1 = require("./poliza.entity");
|
|
21
21
|
let Receipt = class Receipt extends database_1.BaseEntity {
|
|
22
22
|
status;
|
|
23
|
+
title;
|
|
23
24
|
methodPayment;
|
|
24
25
|
currency;
|
|
25
26
|
methodCollection;
|
|
@@ -30,6 +31,7 @@ let Receipt = class Receipt extends database_1.BaseEntity {
|
|
|
30
31
|
description;
|
|
31
32
|
responsible;
|
|
32
33
|
poliza;
|
|
34
|
+
metadata;
|
|
33
35
|
};
|
|
34
36
|
exports.Receipt = Receipt;
|
|
35
37
|
__decorate([
|
|
@@ -41,6 +43,11 @@ __decorate([
|
|
|
41
43
|
}),
|
|
42
44
|
__metadata("design:type", String)
|
|
43
45
|
], Receipt.prototype, "status", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Title' }),
|
|
48
|
+
(0, typeorm_1.Column)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Receipt.prototype, "title", void 0);
|
|
44
51
|
__decorate([
|
|
45
52
|
(0, swagger_1.ApiProperty)({ enum: common_1.ReceiptMethodPayment, description: 'Method of payment' }),
|
|
46
53
|
(0, typeorm_1.Column)({
|
|
@@ -114,6 +121,11 @@ __decorate([
|
|
|
114
121
|
}),
|
|
115
122
|
__metadata("design:type", poliza_entity_1.Poliza)
|
|
116
123
|
], Receipt.prototype, "poliza", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Metadata', required: false }),
|
|
126
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
127
|
+
__metadata("design:type", Object)
|
|
128
|
+
], Receipt.prototype, "metadata", void 0);
|
|
117
129
|
exports.Receipt = Receipt = __decorate([
|
|
118
130
|
(0, typeorm_1.Entity)()
|
|
119
131
|
], Receipt);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receipt.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/receipt.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,oDAAmD;AACnD,qCAAoD;AACpD,yCAAmE;AACnE,0CAAsE;AACtE,wDAA8C;AAC9C,gDAAsC;AACtC,mDAAyC;AAGlC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qBAAU;IAOnC,MAAM,CAAgB;
|
|
1
|
+
{"version":3,"file":"receipt.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/receipt.entity.ts"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