easywork-common-lib 1.0.293 → 1.0.294
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/image.d.ts +3 -0
- package/dist/common/functions/image.js +15 -0
- package/dist/common/functions/image.js.map +1 -0
- package/dist/common/functions/index.d.ts +2 -0
- package/dist/common/functions/index.js +19 -0
- 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/index.d.ts +1 -0
- package/dist/entities/sales/index.js +1 -0
- package/dist/entities/sales/index.js.map +1 -1
- package/dist/entities/thirdparty/email-config.d.ts +1 -0
- package/dist/entities/thirdparty/email-config.js +3 -0
- package/dist/entities/thirdparty/email-config.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.resizeImage = void 0;
|
|
7
|
+
const rxjs_1 = require("rxjs");
|
|
8
|
+
const sharp_1 = __importDefault(require("sharp"));
|
|
9
|
+
function resizeImage(buffer, width = 200) {
|
|
10
|
+
return (0, rxjs_1.from)((0, sharp_1.default)(buffer)
|
|
11
|
+
.resize({ width })
|
|
12
|
+
.toBuffer());
|
|
13
|
+
}
|
|
14
|
+
exports.resizeImage = resizeImage;
|
|
15
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/common/functions/image.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAwC;AACxC,kDAA0B;AAE1B,SAAgB,WAAW,CAAC,MAAc,EAAE,QAAgB,GAAG;IAC3D,OAAO,IAAA,WAAI,EACP,IAAA,eAAK,EAAC,MAAM,CAAC;SACR,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;SACjB,QAAQ,EAAE,CAClB,CAAA;AACL,CAAC;AAND,kCAMC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cripto"), exports);
|
|
18
|
+
__exportStar(require("./image"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/functions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
|
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"}
|
|
@@ -25,4 +25,5 @@ __exportStar(require("./contact-comment.entity"), exports);
|
|
|
25
25
|
__exportStar(require("./agente-intermediario.entity"), exports);
|
|
26
26
|
__exportStar(require("./beneficiarios/person.entity"), exports);
|
|
27
27
|
__exportStar(require("./beneficiarios/vehicle.entity"), exports);
|
|
28
|
+
__exportStar(require("./receipt.entity"), exports);
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/sales/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,0CAAwB;AACxB,mDAAiC;AACjC,4DAA0C;AAC1C,gDAA8B;AAC9B,kDAAgC;AAChC,2DAAyC;AACzC,gEAA8C;AAC9C,gEAA8C;AAC9C,iEAA+C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/sales/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,0CAAwB;AACxB,mDAAiC;AACjC,4DAA0C;AAC1C,gDAA8B;AAC9B,kDAAgC;AAChC,2DAAyC;AACzC,gEAA8C;AAC9C,gEAA8C;AAC9C,iEAA+C;AAC/C,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-config.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email-config.ts"],"names":[],"mappings":""}
|