easywork-common-lib 1.0.462 → 1.0.464

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,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import type { Readable } from 'node:stream';
4
2
  import type { Buffer } from 'node:buffer';
5
3
  export interface IFile {
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateId = void 0;
3
+ exports.generateId = generateId;
4
4
  const nanoid_1 = require("nanoid");
5
5
  async function generateId(length_ = 21) {
6
6
  return (0, nanoid_1.nanoid)(length_);
7
7
  }
8
- exports.generateId = generateId;
9
8
  //# sourceMappingURL=cripto.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"cripto.js","sourceRoot":"","sources":["../../../src/common/functions/cripto.ts"],"names":[],"mappings":";;AAEA,gCAEC;AAJD,mCAAgC;AAEzB,KAAK,UAAU,UAAU,CAAC,UAAkB,EAAE;IACjD,OAAO,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC;AAC3B,CAAC"}
@@ -1,3 +1,2 @@
1
- /// <reference types="node" />
2
1
  import { Observable } from "rxjs";
3
2
  export declare function resizeImage(buffer: Buffer, width?: number): Observable<Buffer>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.resizeImage = void 0;
6
+ exports.resizeImage = resizeImage;
7
7
  const rxjs_1 = require("rxjs");
8
8
  const sharp_1 = __importDefault(require("sharp"));
9
9
  function resizeImage(buffer, width = 200) {
@@ -11,5 +11,4 @@ function resizeImage(buffer, width = 200) {
11
11
  .resize({ width })
12
12
  .toBuffer());
13
13
  }
14
- exports.resizeImage = resizeImage;
15
14
  //# sourceMappingURL=image.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/common/functions/image.ts"],"names":[],"mappings":";;;;;AAGA,kCAMC;AATD,+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"}
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
2
  const rubiin = require("@antfu/eslint-config").default;
4
3
  module.exports = rubiin({
5
4
  stylistic: {
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":";;AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":";AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { AmqpConnection } from "@golevelup/nestjs-rabbitmq";
2
- import { Event } from "../../entities";
2
+ import type { calendar_v3 } from "googleapis";
3
3
  export declare class EasyEventService {
4
4
  private readonly amqpConnection;
5
5
  private readonly exchangeName;
6
6
  private readonly routingKey;
7
7
  constructor(amqpConnection: AmqpConnection, exchangeName: string, routingKey: string);
8
- createEvent(event: Event): Promise<void>;
8
+ createEvent(event: calendar_v3.Schema$Event): Promise<void>;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.service.js","sourceRoot":"","sources":["../../../src/modules/queue/event.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAG5D,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,kBAAkB,CAAC,CAAC;AAGvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAER;IACyB;IACQ;IAHpD,YACmB,cAA8B,EACL,YAAoB,EACZ,UAAkB;QAFnD,mBAAc,GAAd,cAAc,CAAgB;QACL,iBAAY,GAAZ,YAAY,CAAQ;QACZ,eAAU,GAAV,UAAU,CAAQ;IACnE,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,KAAY;QAC5B,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAC3C,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC/B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,EACf,KAAK,CACN,CAAC;IACJ,CAAC;CACF,CAAA;AAfY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;IACvB,WAAA,IAAA,eAAM,EAAC,uBAAuB,CAAC,CAAA;qCAFC,gCAAc;GAFtC,gBAAgB,CAe5B"}
1
+ {"version":3,"file":"event.service.js","sourceRoot":"","sources":["../../../src/modules/queue/event.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAG5D,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,kBAAkB,CAAC,CAAC;AAGvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAER;IACyB;IACQ;IAHpD,YACmB,cAA8B,EACL,YAAoB,EACZ,UAAkB;QAFnD,mBAAc,GAAd,cAAc,CAAgB;QACL,iBAAY,GAAZ,YAAY,CAAQ;QACZ,eAAU,GAAV,UAAU,CAAQ;IACnE,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,KAA+B;QAC/C,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAC3C,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAC/B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,UAAU,EACf,KAAK,CACN,CAAC;IACJ,CAAC;CACF,CAAA;AAfY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;IACvB,WAAA,IAAA,eAAM,EAAC,uBAAuB,CAAC,CAAA;qCAFC,gCAAc;GAFtC,gBAAgB,CAe5B"}
package/package.json CHANGED
@@ -1,44 +1,45 @@
1
- {
2
- "name": "easywork-common-lib",
3
- "version": "1.0.462",
4
- "description": "Librería común de Easywork",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "build": "tsc && cpx-fixed src/**/*.proto dist/",
8
- "bump": "./scripts/bump.sh",
9
- "bump-win": "cross-env ./scripts/bump.sh"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
14
- },
15
- "keywords": [
16
- "nodejs"
17
- ],
18
- "author": "Rosmer Campos",
19
- "license": "MIT",
20
- "bugs": {
21
- "url": "https://github.com/criptopreto/easywork-common-lib/issues"
22
- },
23
- "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
24
- "dependencies": {
25
- "@golevelup/nestjs-rabbitmq": "^5.3.0",
26
- "@nestjs/common": "^10.3.8",
27
- "@nestjs/swagger": "^7.4.0",
28
- "@nestjs/typeorm": "^10.0.2",
29
- "class-transformer": "^0.5.1",
30
- "class-validator": "^0.14.1",
31
- "nanoid": "3",
32
- "rxjs": "^7.8.1",
33
- "sharp": "^0.33.5",
34
- "typeorm": "^0.3.20"
35
- },
36
- "devDependencies": {
37
- "@rubiin/tsconfig": "^1.1.2",
38
- "@types/node": "^20.12.12",
39
- "cpx-fixed": "^1.6.0",
40
- "ts-loader": "^9.5.1",
41
- "typescript": "^5.4.5"
42
- },
43
- "packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
44
- }
1
+ {
2
+ "name": "easywork-common-lib",
3
+ "version": "1.0.464",
4
+ "description": "Librería común de Easywork",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "build": "tsc && cpx-fixed src/**/*.proto dist/",
8
+ "bump": "./scripts/bump.sh",
9
+ "bump-win": "cross-env ./scripts/bump.sh"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
14
+ },
15
+ "keywords": [
16
+ "nodejs"
17
+ ],
18
+ "author": "Rosmer Campos",
19
+ "license": "MIT",
20
+ "bugs": {
21
+ "url": "https://github.com/criptopreto/easywork-common-lib/issues"
22
+ },
23
+ "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
24
+ "dependencies": {
25
+ "@golevelup/nestjs-rabbitmq": "^5.3.0",
26
+ "@nestjs/common": "^10.3.8",
27
+ "@nestjs/swagger": "^7.4.0",
28
+ "@nestjs/typeorm": "^10.0.2",
29
+ "class-transformer": "^0.5.1",
30
+ "class-validator": "^0.14.1",
31
+ "googleapis": "^144.0.0",
32
+ "nanoid": "3",
33
+ "rxjs": "^7.8.1",
34
+ "sharp": "^0.33.5",
35
+ "typeorm": "^0.3.20"
36
+ },
37
+ "devDependencies": {
38
+ "@rubiin/tsconfig": "^1.1.2",
39
+ "@types/node": "^20.12.12",
40
+ "cpx-fixed": "^1.6.0",
41
+ "ts-loader": "^9.5.1",
42
+ "typescript": "^5.4.5"
43
+ },
44
+ "packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
45
+ }