easywork-common-lib 1.0.412 → 1.0.413

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,8 +1,22 @@
1
+ import "google/protobuf/struct.proto";
2
+
1
3
  // drive/proto/drive.proto
2
4
  syntax = "proto3";
3
5
 
4
6
  package drive;
5
7
 
8
+ message FolderObject {
9
+ string name = 1; // Nombre de la carpeta
10
+ google.protobuf.Struct metadata = 2; // Metadata como objeto dinámico
11
+ }
12
+
13
+ message FolderData {
14
+ oneof folder {
15
+ string name = 1; // Si solo es un nombre simple
16
+ FolderObject folderObject = 2; // Si es un objeto complejo con metadata
17
+ }
18
+ }
19
+
6
20
  message OwnerEntity {
7
21
  string ownerId = 1;
8
22
  string entityType = 2;
@@ -14,11 +28,12 @@ message CreateFolderRequest {
14
28
  string name = 1;
15
29
  string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
16
30
  repeated OwnerEntity ownersData = 3;
31
+ google.protobuf.Struct metadata = 2; // Metadata como objeto dinámico
17
32
  }
18
33
 
19
34
  // Create Bulk Folder
20
35
  message CreateFolderBulkRequest {
21
- repeated string foldersName = 1;
36
+ repeated FolderData folders = 1;
22
37
  string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
23
38
  repeated OwnerEntity ownersData = 3;
24
39
  }
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "easywork-common-lib",
3
- "version": "1.0.412",
4
- "description": "Librería común de Easywork",
5
- "main": "dist/index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
9
- },
10
- "keywords": [
11
- "nodejs"
12
- ],
13
- "author": "Rosmer Campos",
14
- "license": "MIT",
15
- "bugs": {
16
- "url": "https://github.com/criptopreto/easywork-common-lib/issues"
17
- },
18
- "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
19
- "dependencies": {
20
- "@golevelup/nestjs-rabbitmq": "^5.3.0",
21
- "@nestjs/common": "^10.3.8",
22
- "@nestjs/swagger": "^7.4.0",
23
- "@nestjs/typeorm": "^10.0.2",
24
- "class-transformer": "^0.5.1",
25
- "class-validator": "^0.14.1",
26
- "nanoid": "3",
27
- "rxjs": "^7.8.1",
28
- "sharp": "^0.33.5",
29
- "typeorm": "^0.3.20"
30
- },
31
- "devDependencies": {
32
- "@rubiin/tsconfig": "^1.1.2",
33
- "@types/node": "^20.12.12",
34
- "cpx-fixed": "^1.6.0",
35
- "ts-loader": "^9.5.1",
36
- "typescript": "^5.4.5"
37
- },
38
- "scripts": {
39
- "build": "tsc && cpx-fixed src/**/*.proto dist/",
40
- "bump": "./scripts/bump.sh"
41
- }
42
- }
1
+ {
2
+ "name": "easywork-common-lib",
3
+ "version": "1.0.413",
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
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
13
+ },
14
+ "keywords": [
15
+ "nodejs"
16
+ ],
17
+ "author": "Rosmer Campos",
18
+ "license": "MIT",
19
+ "bugs": {
20
+ "url": "https://github.com/criptopreto/easywork-common-lib/issues"
21
+ },
22
+ "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
23
+ "dependencies": {
24
+ "@golevelup/nestjs-rabbitmq": "^5.3.0",
25
+ "@nestjs/common": "^10.3.8",
26
+ "@nestjs/swagger": "^7.4.0",
27
+ "@nestjs/typeorm": "^10.0.2",
28
+ "class-transformer": "^0.5.1",
29
+ "class-validator": "^0.14.1",
30
+ "nanoid": "3",
31
+ "rxjs": "^7.8.1",
32
+ "sharp": "^0.33.5",
33
+ "typeorm": "^0.3.20"
34
+ },
35
+ "devDependencies": {
36
+ "@rubiin/tsconfig": "^1.1.2",
37
+ "@types/node": "^20.12.12",
38
+ "cpx-fixed": "^1.6.0",
39
+ "ts-loader": "^9.5.1",
40
+ "typescript": "^5.4.5"
41
+ }
42
+ }
package/scripts/bump.sh CHANGED
@@ -1,6 +1,6 @@
1
1
  git add .
2
2
  git commit -m "bump version"
3
- pnpm version patch
4
- pnpm build
5
- pnpm publish
3
+ yarn version patch
4
+ yarn build
5
+ yarn publish
6
6
  git push
@@ -1,7 +0,0 @@
1
- import { BaseEntity } from "../common/database";
2
- export declare class ImapFolder extends BaseEntity {
3
- imapFolderId: string;
4
- mailboxName: string;
5
- userId: string;
6
- type: string;
7
- }
@@ -1,41 +0,0 @@
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.ImapFolder = void 0;
13
- const database_1 = require("../common/database");
14
- const typeorm_1 = require("typeorm");
15
- let ImapFolder = class ImapFolder extends database_1.BaseEntity {
16
- imapFolderId;
17
- mailboxName;
18
- userId;
19
- type;
20
- };
21
- exports.ImapFolder = ImapFolder;
22
- __decorate([
23
- (0, typeorm_1.Column)(),
24
- __metadata("design:type", String)
25
- ], ImapFolder.prototype, "imapFolderId", void 0);
26
- __decorate([
27
- (0, typeorm_1.Column)(),
28
- __metadata("design:type", String)
29
- ], ImapFolder.prototype, "mailboxName", void 0);
30
- __decorate([
31
- (0, typeorm_1.Column)(),
32
- __metadata("design:type", String)
33
- ], ImapFolder.prototype, "userId", void 0);
34
- __decorate([
35
- (0, typeorm_1.Column)(),
36
- __metadata("design:type", String)
37
- ], ImapFolder.prototype, "type", void 0);
38
- exports.ImapFolder = ImapFolder = __decorate([
39
- (0, typeorm_1.Entity)()
40
- ], ImapFolder);
41
- //# sourceMappingURL=imap-folder.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"imap-folder.entity.js","sourceRoot":"","sources":["../../src/entities/imap-folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAAyC;AAGlC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;IAEtC,YAAY,CAAS;IAGrB,WAAW,CAAS;IAGpB,MAAM,CAAS;IAGf,IAAI,CAAS;CAChB,CAAA;AAZY,gCAAU;AAEnB;IADC,IAAA,gBAAM,GAAE;;gDACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;+CACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;0CACM;AAGf;IADC,IAAA,gBAAM,GAAE;;wCACI;qBAXJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAYtB"}
@@ -1,16 +0,0 @@
1
- import { BaseEntity } from "../common/database";
2
- import { EmailThirdparty } from "./thirdparty/email.entity";
3
- export declare class Oauth extends BaseEntity {
4
- service: number;
5
- refresh_token: string;
6
- access_token: string;
7
- expires_in: number;
8
- userId: string;
9
- usergoogle_id: string;
10
- family_name: string;
11
- given_name: string;
12
- email: string;
13
- picture: string;
14
- id_token: string;
15
- emails: EmailThirdparty[];
16
- }
@@ -1,83 +0,0 @@
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.Oauth = void 0;
13
- const database_1 = require("../common/database");
14
- const typeorm_1 = require("typeorm");
15
- const email_entity_1 = require("./thirdparty/email.entity");
16
- let Oauth = class Oauth extends database_1.BaseEntity {
17
- service;
18
- refresh_token;
19
- access_token;
20
- expires_in;
21
- userId;
22
- usergoogle_id;
23
- family_name;
24
- given_name;
25
- email;
26
- picture;
27
- id_token;
28
- emails;
29
- };
30
- exports.Oauth = Oauth;
31
- __decorate([
32
- (0, typeorm_1.Column)("int"),
33
- __metadata("design:type", Number)
34
- ], Oauth.prototype, "service", void 0);
35
- __decorate([
36
- (0, typeorm_1.Column)(),
37
- __metadata("design:type", String)
38
- ], Oauth.prototype, "refresh_token", void 0);
39
- __decorate([
40
- (0, typeorm_1.Column)(),
41
- __metadata("design:type", String)
42
- ], Oauth.prototype, "access_token", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)("int"),
45
- __metadata("design:type", Number)
46
- ], Oauth.prototype, "expires_in", void 0);
47
- __decorate([
48
- (0, typeorm_1.Column)(),
49
- __metadata("design:type", String)
50
- ], Oauth.prototype, "userId", void 0);
51
- __decorate([
52
- (0, typeorm_1.Column)({ nullable: true }),
53
- __metadata("design:type", String)
54
- ], Oauth.prototype, "usergoogle_id", void 0);
55
- __decorate([
56
- (0, typeorm_1.Column)({ nullable: true }),
57
- __metadata("design:type", String)
58
- ], Oauth.prototype, "family_name", void 0);
59
- __decorate([
60
- (0, typeorm_1.Column)({ nullable: true }),
61
- __metadata("design:type", String)
62
- ], Oauth.prototype, "given_name", void 0);
63
- __decorate([
64
- (0, typeorm_1.Column)({ nullable: true }),
65
- __metadata("design:type", String)
66
- ], Oauth.prototype, "email", void 0);
67
- __decorate([
68
- (0, typeorm_1.Column)({ nullable: true }),
69
- __metadata("design:type", String)
70
- ], Oauth.prototype, "picture", void 0);
71
- __decorate([
72
- (0, typeorm_1.Column)({ nullable: true }),
73
- __metadata("design:type", String)
74
- ], Oauth.prototype, "id_token", void 0);
75
- __decorate([
76
- (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.id),
77
- __metadata("design:type", Array)
78
- ], Oauth.prototype, "emails", void 0);
79
- exports.Oauth = Oauth = __decorate([
80
- (0, typeorm_1.Entity)(),
81
- (0, typeorm_1.Index)(["email"], { unique: true })
82
- ], Oauth);
83
- //# sourceMappingURL=oauth.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../src/entities/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,qCAA2D;AAC3D,4DAA2D;AAIpD,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;IAEnC,OAAO,CAAS;IAGhB,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,MAAM,CAAoB;CAC3B,CAAA;AApCY,sBAAK;AAEhB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;sCACE;AAGhB;IADC,IAAA,gBAAM,GAAE;;4CACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;2CACY;AAGrB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;yCACK;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACL;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACV;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;;qCAC1B;gBAnCf,KAAK;IAFjB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACtB,KAAK,CAoCjB"}