easywork-common-lib 1.0.464 → 1.0.467

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 @@
1
- {"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA2D;AAC3D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAGnC,IAAI,CAAS;IAGb,KAAK,CAAS;CACf,CAAA;AAPY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACZ;AAGb;IADC,IAAA,gBAAM,GAAE;;oCACK;gBANH,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAOjB"}
1
+ {"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAGnC,IAAI,CAAS;IAGb,KAAK,CAAS;CACf,CAAA;AAPY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACZ;AAGb;IADC,IAAA,gBAAM,GAAE;;oCACK;gBANH,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAOjB"}
@@ -1,7 +1,7 @@
1
1
  import { EntityBase } from "../../common/database/base.entity";
2
2
  import { EmailThirdparty } from "./email.entity";
3
+ import { ServiceThirdparty } from "./service.entity";
3
4
  export declare class Oauth extends EntityBase {
4
- service: number;
5
5
  refresh_token: string;
6
6
  access_token: string;
7
7
  expires_in: number;
@@ -15,4 +15,5 @@ export declare class Oauth extends EntityBase {
15
15
  labelId: object[];
16
16
  labelIdRules: object;
17
17
  emails: EmailThirdparty[];
18
+ service: ServiceThirdparty;
18
19
  }
@@ -13,8 +13,8 @@ exports.Oauth = void 0;
13
13
  const base_entity_1 = require("../../common/database/base.entity");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const email_entity_1 = require("./email.entity");
16
+ const service_entity_1 = require("./service.entity");
16
17
  let Oauth = class Oauth extends base_entity_1.EntityBase {
17
- service;
18
18
  refresh_token;
19
19
  access_token;
20
20
  expires_in;
@@ -28,12 +28,9 @@ let Oauth = class Oauth extends base_entity_1.EntityBase {
28
28
  labelId;
29
29
  labelIdRules;
30
30
  emails;
31
+ service;
31
32
  };
32
33
  exports.Oauth = Oauth;
33
- __decorate([
34
- (0, typeorm_1.Column)("int"),
35
- __metadata("design:type", Number)
36
- ], Oauth.prototype, "service", void 0);
37
34
  __decorate([
38
35
  (0, typeorm_1.Column)(),
39
36
  __metadata("design:type", String)
@@ -86,6 +83,10 @@ __decorate([
86
83
  (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.id),
87
84
  __metadata("design:type", Array)
88
85
  ], Oauth.prototype, "emails", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.id),
88
+ __metadata("design:type", service_entity_1.ServiceThirdparty)
89
+ ], Oauth.prototype, "service", void 0);
89
90
  exports.Oauth = Oauth = __decorate([
90
91
  (0, typeorm_1.Entity)(),
91
92
  (0, typeorm_1.Index)(["email"], { unique: true })
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA2D;AAC3D,iDAAgD;AAIzC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAEnC,OAAO,CAAS;IAGhB,aAAa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CACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACrB;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;;qCAC1B;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;8BACnD,kCAAiB;sCAAC;gBAzChB,KAAK;IAFjB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACtB,KAAK,CA0CjB"}
@@ -1,6 +1,8 @@
1
1
  import { EntityBase } from "../../common/database/base.entity";
2
2
  import { EmailThirdparty } from "./email.entity";
3
+ import { Oauth } from "./oauth.entity";
3
4
  export declare class ServiceThirdparty extends EntityBase {
4
5
  name: string;
5
6
  emails: EmailThirdparty[];
7
+ oauth: Oauth[];
6
8
  }
@@ -13,9 +13,11 @@ exports.ServiceThirdparty = void 0;
13
13
  const base_entity_1 = require("../../common/database/base.entity");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const email_entity_1 = require("./email.entity");
16
+ const oauth_entity_1 = require("./oauth.entity");
16
17
  let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.EntityBase {
17
18
  name;
18
19
  emails;
20
+ oauth;
19
21
  };
20
22
  exports.ServiceThirdparty = ServiceThirdparty;
21
23
  __decorate([
@@ -26,6 +28,10 @@ __decorate([
26
28
  (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.service),
27
29
  __metadata("design:type", Array)
28
30
  ], ServiceThirdparty.prototype, "emails", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.OneToMany)(() => oauth_entity_1.Oauth, oauth => oauth.service),
33
+ __metadata("design:type", Array)
34
+ ], ServiceThirdparty.prototype, "oauth", void 0);
29
35
  exports.ServiceThirdparty = ServiceThirdparty = __decorate([
30
36
  (0, typeorm_1.Entity)()
31
37
  ], ServiceThirdparty);
@@ -1 +1 @@
1
- {"version":3,"file":"service.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/service.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAoD;AACpD,iDAAgD;AAGzC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAE/C,IAAI,CAAS;IAGb,MAAM,CAAoB;CAC3B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;iDAC/B;4BALf,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAM7B"}
1
+ {"version":3,"file":"service.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/service.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAoD;AACpD,iDAAgD;AAChD,iDAAsC;AAG/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAE/C,IAAI,CAAS;IAGb,MAAM,CAAoB;IAG1B,KAAK,CAAU;CAChB,CAAA;AATY,8CAAiB;AAE5B;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;iDAC/B;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;gDAChC;4BARJ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAS7B"}
package/package.json CHANGED
@@ -1,45 +1,45 @@
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
- }
1
+ {
2
+ "name": "easywork-common-lib",
3
+ "version": "1.0.467",
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
+ }