easywork-common-lib 1.0.321 → 1.0.323

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.
Files changed (52) hide show
  1. package/.gitattributes +2 -2
  2. package/.github/workflows/npm-publish.yml +33 -33
  3. package/.vscode/settings.json +12 -12
  4. package/dist/entities/helpers/tools/task_crm.entity.d.ts +5 -3
  5. package/dist/entities/helpers/tools/task_crm.entity.js +35 -16
  6. package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -1
  7. package/dist/entities/thirdparty/email-config.entity.d.ts +6 -6
  8. package/dist/entities/thirdparty/email-config.entity.js +22 -22
  9. package/dist/entities/thirdparty/email-config.entity.js.map +1 -1
  10. package/dist/grpc/drive/drive.proto +73 -73
  11. package/package.json +42 -42
  12. package/scripts/bump.sh +5 -5
  13. package/test.bat +15 -15
  14. package/tsconfig.build.json +4 -4
  15. package/tsconfig.json +26 -26
  16. package/tsconfig.tsbuildinfo +1 -1
  17. package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
  18. package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -36
  19. package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
  20. package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
  21. package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -36
  22. package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
  23. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
  24. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
  25. package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
  26. package/dist/entities/imap-folder.entity.d.ts +0 -7
  27. package/dist/entities/imap-folder.entity.js +0 -41
  28. package/dist/entities/imap-folder.entity.js.map +0 -1
  29. package/dist/entities/oauth.entity.d.ts +0 -16
  30. package/dist/entities/oauth.entity.js +0 -83
  31. package/dist/entities/oauth.entity.js.map +0 -1
  32. package/dist/modules/notifier/notifier.module.d.ts +0 -4
  33. package/dist/modules/notifier/notifier.module.js +0 -52
  34. package/dist/modules/notifier/notifier.module.js.map +0 -1
  35. package/dist/modules/notifier/notifier.service.d.ts +0 -19
  36. package/dist/modules/notifier/notifier.service.js +0 -231
  37. package/dist/modules/notifier/notifier.service.js.map +0 -1
  38. package/dist/modules/notifier/scheduler.service.d.ts +0 -9
  39. package/dist/modules/notifier/scheduler.service.js +0 -40
  40. package/dist/modules/notifier/scheduler.service.js.map +0 -1
  41. package/dist/modules/queue/subservices/calendar.service.d.ts +0 -2
  42. package/dist/modules/queue/subservices/calendar.service.js +0 -17
  43. package/dist/modules/queue/subservices/calendar.service.js.map +0 -1
  44. package/dist/modules/queue/subservices/contact.service.d.ts +0 -7
  45. package/dist/modules/queue/subservices/contact.service.js +0 -49
  46. package/dist/modules/queue/subservices/contact.service.js.map +0 -1
  47. package/dist/modules/queue/subservices/index.d.ts +0 -3
  48. package/dist/modules/queue/subservices/index.js +0 -20
  49. package/dist/modules/queue/subservices/index.js.map +0 -1
  50. package/dist/modules/queue/subservices/task.service.d.ts +0 -12
  51. package/dist/modules/queue/subservices/task.service.js +0 -173
  52. package/dist/modules/queue/subservices/task.service.js.map +0 -1
package/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -1,33 +1,33 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Node.js Package
5
-
6
- on:
7
- release:
8
- types: [created]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v4
15
- - uses: actions/setup-node@v4
16
- with:
17
- node-version: 20
18
- - run: npm ci
19
- - run: npm test
20
-
21
- publish-npm:
22
- needs: build
23
- runs-on: ubuntu-latest
24
- steps:
25
- - uses: actions/checkout@v4
26
- - uses: actions/setup-node@v4
27
- with:
28
- node-version: 20
29
- registry-url: https://registry.npmjs.org/
30
- - run: npm ci
31
- - run: npm publish
32
- env:
33
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20
18
+ - run: npm ci
19
+ - run: npm test
20
+
21
+ publish-npm:
22
+ needs: build
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 20
29
+ registry-url: https://registry.npmjs.org/
30
+ - run: npm ci
31
+ - run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -1,13 +1,13 @@
1
- {
2
- "autoBarrel.language.defaultLanguage": "TypeScript",
3
- "autoBarrel.files.disableRecursiveBarrelling": false,
4
- "autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
5
- "autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
6
- "autoBarrel.files.keepExtensionOnExport": false,
7
- "autoBarrel.files.detectExportsInFiles": false,
8
- "autoBarrel.files.exportDefaultFilename": "filename",
9
- "autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
10
- "autoBarrel.formatting.useSingleQuotes": true,
11
- "autoBarrel.formatting.endOfLine": "lf",
12
- "autoBarrel.formatting.insertFinalNewline": true,
1
+ {
2
+ "autoBarrel.language.defaultLanguage": "TypeScript",
3
+ "autoBarrel.files.disableRecursiveBarrelling": false,
4
+ "autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
5
+ "autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
6
+ "autoBarrel.files.keepExtensionOnExport": false,
7
+ "autoBarrel.files.detectExportsInFiles": false,
8
+ "autoBarrel.files.exportDefaultFilename": "filename",
9
+ "autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
10
+ "autoBarrel.formatting.useSingleQuotes": true,
11
+ "autoBarrel.formatting.endOfLine": "lf",
12
+ "autoBarrel.formatting.insertFinalNewline": true,
13
13
  }
@@ -1,14 +1,16 @@
1
1
  import { BaseEntity } from "typeorm";
2
2
  import { Task } from "../../../entities/tools";
3
3
  import { TaskCRMType } from "../../../common";
4
- import { Contact, Poliza } from "../../../entities/sales";
4
+ import { Contact, Lead, Poliza } from "../../../entities/sales";
5
5
  export declare class TaskCRM extends BaseEntity {
6
6
  id?: string;
7
7
  type: TaskCRMType;
8
8
  taskId: string;
9
- contactId: string;
10
- polizaId: string;
11
9
  task: Task;
10
+ contactId: string;
12
11
  contact: Contact;
12
+ polizaId: string;
13
13
  poliza: Poliza;
14
+ leadId: string;
15
+ lead: Lead;
14
16
  }
@@ -20,11 +20,13 @@ let TaskCRM = class TaskCRM extends typeorm_1.BaseEntity {
20
20
  id;
21
21
  type;
22
22
  taskId;
23
- contactId;
24
- polizaId;
25
23
  task;
24
+ contactId;
26
25
  contact;
26
+ polizaId;
27
27
  poliza;
28
+ leadId;
29
+ lead;
28
30
  };
29
31
  exports.TaskCRM = TaskCRM;
30
32
  __decorate([
@@ -45,20 +47,6 @@ __decorate([
45
47
  (0, typeorm_1.Column)(),
46
48
  __metadata("design:type", String)
47
49
  ], TaskCRM.prototype, "taskId", void 0);
48
- __decorate([
49
- (0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated contact', required: false }),
50
- (0, typeorm_1.Column)({
51
- nullable: true,
52
- }),
53
- __metadata("design:type", String)
54
- ], TaskCRM.prototype, "contactId", void 0);
55
- __decorate([
56
- (0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy', required: false }),
57
- (0, typeorm_1.Column)({
58
- nullable: true,
59
- }),
60
- __metadata("design:type", String)
61
- ], TaskCRM.prototype, "polizaId", void 0);
62
50
  __decorate([
63
51
  (0, class_transformer_1.Exclude)(),
64
52
  (0, swagger_1.ApiProperty)({ type: () => tools_1.Task, description: 'Task entity associated' }),
@@ -68,6 +56,13 @@ __decorate([
68
56
  }),
69
57
  __metadata("design:type", tools_1.Task)
70
58
  ], TaskCRM.prototype, "task", void 0);
59
+ __decorate([
60
+ (0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated contact', required: false }),
61
+ (0, typeorm_1.Column)({
62
+ nullable: true,
63
+ }),
64
+ __metadata("design:type", String)
65
+ ], TaskCRM.prototype, "contactId", void 0);
71
66
  __decorate([
72
67
  (0, swagger_1.ApiProperty)({ type: () => sales_1.Contact, description: 'Contact entity associated', required: false }),
73
68
  (0, typeorm_1.ManyToOne)(() => sales_1.Contact, {
@@ -78,6 +73,13 @@ __decorate([
78
73
  }),
79
74
  __metadata("design:type", sales_1.Contact)
80
75
  ], TaskCRM.prototype, "contact", void 0);
76
+ __decorate([
77
+ (0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy', required: false }),
78
+ (0, typeorm_1.Column)({
79
+ nullable: true,
80
+ }),
81
+ __metadata("design:type", String)
82
+ ], TaskCRM.prototype, "polizaId", void 0);
81
83
  __decorate([
82
84
  (0, swagger_1.ApiProperty)({ type: () => sales_1.Poliza, description: 'Policy entity associated', required: false }),
83
85
  (0, typeorm_1.ManyToOne)(() => sales_1.Poliza, {
@@ -88,6 +90,23 @@ __decorate([
88
90
  }),
89
91
  __metadata("design:type", sales_1.Poliza)
90
92
  ], TaskCRM.prototype, "poliza", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated lead', required: false }),
95
+ (0, typeorm_1.Column)({
96
+ nullable: true,
97
+ }),
98
+ __metadata("design:type", String)
99
+ ], TaskCRM.prototype, "leadId", void 0);
100
+ __decorate([
101
+ (0, swagger_1.ApiProperty)({ type: () => sales_1.Lead, description: 'Lead entity associated', required: false }),
102
+ (0, typeorm_1.ManyToOne)(() => sales_1.Lead, {
103
+ onDelete: "CASCADE",
104
+ onUpdate: "CASCADE",
105
+ eager: true,
106
+ nullable: true,
107
+ }),
108
+ __metadata("design:type", sales_1.Lead)
109
+ ], TaskCRM.prototype, "lead", void 0);
91
110
  exports.TaskCRM = TaskCRM = __decorate([
92
111
  (0, typeorm_1.Entity)()
93
112
  ], TaskCRM);
@@ -1 +1 @@
1
- {"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,mDAA+C;AAC/C,4CAA8C;AAC9C,mDAA0D;AAC1D,6CAA8C;AAGvC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,oBAAU;IAGrC,EAAE,CAAU;IAOZ,IAAI,CAAc;IAIlB,MAAM,CAAS;IAMf,SAAS,CAAS;IAMlB,QAAQ,CAAS;IAQV,IAAI,CAAO;IASX,OAAO,CAAU;IASjB,MAAM,CAAS;CACvB,CAAA;AArDY,0BAAO;AAGlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAClF,IAAA,gCAAsB,EAAC,MAAM,CAAC;;mCACnB;AAOZ;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,oBAAW,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IACvE,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,oBAAW;KAClB,CAAC;;qCACgB;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2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EAAE,IAAI;KACf,CAAC;8BACa,cAAM;uCAAC;AAQtB;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxF,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;uCACa;AASR;IAPN,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,YAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,YAAI,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;8BACW,YAAI;qCAAC;kBAzEP,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA2EnB"}
@@ -1,14 +1,14 @@
1
1
  import { BaseEntity } from "../../common/database";
2
2
  export declare class EmailConfigThirdparty extends BaseEntity {
3
- extractMessagesForWeek: number;
3
+ countExtractMessagesDays: number;
4
4
  mailboxName: string;
5
5
  senderName: string;
6
- externalSmtp: string;
7
- processMessagesForWeek: boolean;
6
+ countProcessMessagesDays: number;
8
7
  routeExistingClientEmailsToCrmManagers: boolean;
9
- createProspectForIncomingMessages: boolean;
10
- createContactForOutgoingMessages: boolean;
11
- createContactsUsingAttachedVCard: boolean;
8
+ createIncomingMessages: string;
9
+ createForOutgoingMessages: string;
10
+ createUsingAttachedVCard: boolean;
12
11
  contactLeadDistribution: string[];
12
+ mailboxAccess: string[];
13
13
  email: string;
14
14
  }
@@ -13,23 +13,23 @@ exports.EmailConfigThirdparty = void 0;
13
13
  const database_1 = require("../../common/database");
14
14
  const typeorm_1 = require("typeorm");
15
15
  let EmailConfigThirdparty = class EmailConfigThirdparty extends database_1.BaseEntity {
16
- extractMessagesForWeek;
16
+ countExtractMessagesDays;
17
17
  mailboxName;
18
18
  senderName;
19
- externalSmtp;
20
- processMessagesForWeek;
19
+ countProcessMessagesDays;
21
20
  routeExistingClientEmailsToCrmManagers;
22
- createProspectForIncomingMessages;
23
- createContactForOutgoingMessages;
24
- createContactsUsingAttachedVCard;
21
+ createIncomingMessages;
22
+ createForOutgoingMessages;
23
+ createUsingAttachedVCard;
25
24
  contactLeadDistribution;
25
+ mailboxAccess;
26
26
  email;
27
27
  };
28
28
  exports.EmailConfigThirdparty = EmailConfigThirdparty;
29
29
  __decorate([
30
30
  (0, typeorm_1.Column)({ type: "integer", nullable: true }),
31
31
  __metadata("design:type", Number)
32
- ], EmailConfigThirdparty.prototype, "extractMessagesForWeek", void 0);
32
+ ], EmailConfigThirdparty.prototype, "countExtractMessagesDays", void 0);
33
33
  __decorate([
34
34
  (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
35
35
  __metadata("design:type", String)
@@ -39,35 +39,35 @@ __decorate([
39
39
  __metadata("design:type", String)
40
40
  ], EmailConfigThirdparty.prototype, "senderName", void 0);
41
41
  __decorate([
42
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
43
- __metadata("design:type", String)
44
- ], EmailConfigThirdparty.prototype, "externalSmtp", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)({ type: "boolean", nullable: true }),
47
- __metadata("design:type", Boolean)
48
- ], EmailConfigThirdparty.prototype, "processMessagesForWeek", void 0);
42
+ (0, typeorm_1.Column)({ type: "integer", nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], EmailConfigThirdparty.prototype, "countProcessMessagesDays", void 0);
49
45
  __decorate([
50
46
  (0, typeorm_1.Column)({ type: "boolean", nullable: true }),
51
47
  __metadata("design:type", Boolean)
52
48
  ], EmailConfigThirdparty.prototype, "routeExistingClientEmailsToCrmManagers", void 0);
53
49
  __decorate([
54
- (0, typeorm_1.Column)({ type: "boolean", nullable: true }),
55
- __metadata("design:type", Boolean)
56
- ], EmailConfigThirdparty.prototype, "createProspectForIncomingMessages", void 0);
50
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], EmailConfigThirdparty.prototype, "createIncomingMessages", void 0);
57
53
  __decorate([
58
- (0, typeorm_1.Column)({ type: "boolean", nullable: true }),
59
- __metadata("design:type", Boolean)
60
- ], EmailConfigThirdparty.prototype, "createContactForOutgoingMessages", void 0);
54
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], EmailConfigThirdparty.prototype, "createForOutgoingMessages", void 0);
61
57
  __decorate([
62
58
  (0, typeorm_1.Column)({ type: "boolean", nullable: true }),
63
59
  __metadata("design:type", Boolean)
64
- ], EmailConfigThirdparty.prototype, "createContactsUsingAttachedVCard", void 0);
60
+ ], EmailConfigThirdparty.prototype, "createUsingAttachedVCard", void 0);
65
61
  __decorate([
66
62
  (0, typeorm_1.Column)("text", { array: true, nullable: true }),
67
63
  __metadata("design:type", Array)
68
64
  ], EmailConfigThirdparty.prototype, "contactLeadDistribution", void 0);
69
65
  __decorate([
70
- (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
66
+ (0, typeorm_1.Column)("text", { array: true, nullable: true }),
67
+ __metadata("design:type", Array)
68
+ ], EmailConfigThirdparty.prototype, "mailboxAccess", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ nullable: true }),
71
71
  __metadata("design:type", String)
72
72
  ], EmailConfigThirdparty.prototype, "email", void 0);
73
73
  exports.EmailConfigThirdparty = EmailConfigThirdparty = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"email-config.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAyC;AAGlC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,qBAAU;IAEnD,sBAAsB,CAAS;IAG/B,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,EAAE,IAAI,EAAE,CAAC;;qFACI;AAGhD;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEAC1B;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACvB;AAGlC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACV;AAGlC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACd;AAGlC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACxB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACb;gCAhCH,qBAAqB;IADjC,IAAA,gBAAM,GAAE;GACI,qBAAqB,CAiCjC"}
@@ -1,74 +1,74 @@
1
- // drive/proto/drive.proto
2
- syntax = "proto3";
3
-
4
- package drive;
5
-
6
- message OwnerEntity {
7
- string ownerId = 1;
8
- string entityType = 2;
9
- string relation = 3;
10
- }
11
-
12
- // Define los mensajes para las operaciones de carpetas
13
- message CreateFolderRequest {
14
- string name = 1;
15
- string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
16
- repeated OwnerEntity ownersData = 3;
17
- }
18
-
19
- // Create Bulk Folder
20
- message CreateFolderBulkRequest {
21
- repeated string foldersName = 1;
22
- string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
23
- repeated OwnerEntity ownersData = 3;
24
- }
25
-
26
- message FolderResponse {
27
- string id = 1;
28
- string name = 2;
29
- string parentId = 3; // Opcional, puede ser nulo si es una carpeta raíz
30
- string createdAt = 4;
31
- }
32
-
33
-
34
- message CreateFolderBulkResponse {
35
- bool success = 1;
36
- }
37
-
38
- message CreateFileRequest {
39
- string name = 1; // Nombre del archivo
40
- string folderId = 2; // UUID del folder, opcional
41
- int64 size = 3; // Tamaño del archivo, opcional
42
- string mimeType = 4; // Tipo MIME del archivo, opcional
43
- string s3Key = 5; // Clave S3, opcional
44
- bool isDefault = 6; // Si es el archivo por defecto, opcional
45
- repeated OwnerEntity ownersData = 7;
46
- bytes filecontent = 8; // Contenido del archivo en bytes
47
- string encoding = 9; // Codificación del archivo
48
- }
49
-
50
- message AttachFileRequest {
51
-
52
- }
53
-
54
- message CreateFilesRequest {
55
- repeated CreateFileRequest files = 1; // Archivos
56
- }
57
-
58
- message CreateFilesResponse {
59
- repeated string filesIds = 1;
60
- }
61
-
62
- message CreateFileResponse {
63
- string message = 1;
64
- bool success = 2;
65
- string url = 3; // URL del archivo almacenado
66
- }
67
-
68
- // Define el servicio que será implementado
69
- service DriveService {
70
- rpc CreateFolder(CreateFolderRequest) returns (FolderResponse);
71
- rpc CreateFile(CreateFileRequest) returns (CreateFileResponse);
72
- rpc CreateFiles(CreateFilesRequest) returns (CreateFilesResponse);
73
- rpc CreateFolders(CreateFolderBulkRequest) returns (CreateFolderBulkResponse);
1
+ // drive/proto/drive.proto
2
+ syntax = "proto3";
3
+
4
+ package drive;
5
+
6
+ message OwnerEntity {
7
+ string ownerId = 1;
8
+ string entityType = 2;
9
+ string relation = 3;
10
+ }
11
+
12
+ // Define los mensajes para las operaciones de carpetas
13
+ message CreateFolderRequest {
14
+ string name = 1;
15
+ string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
16
+ repeated OwnerEntity ownersData = 3;
17
+ }
18
+
19
+ // Create Bulk Folder
20
+ message CreateFolderBulkRequest {
21
+ repeated string foldersName = 1;
22
+ string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
23
+ repeated OwnerEntity ownersData = 3;
24
+ }
25
+
26
+ message FolderResponse {
27
+ string id = 1;
28
+ string name = 2;
29
+ string parentId = 3; // Opcional, puede ser nulo si es una carpeta raíz
30
+ string createdAt = 4;
31
+ }
32
+
33
+
34
+ message CreateFolderBulkResponse {
35
+ bool success = 1;
36
+ }
37
+
38
+ message CreateFileRequest {
39
+ string name = 1; // Nombre del archivo
40
+ string folderId = 2; // UUID del folder, opcional
41
+ int64 size = 3; // Tamaño del archivo, opcional
42
+ string mimeType = 4; // Tipo MIME del archivo, opcional
43
+ string s3Key = 5; // Clave S3, opcional
44
+ bool isDefault = 6; // Si es el archivo por defecto, opcional
45
+ repeated OwnerEntity ownersData = 7;
46
+ bytes filecontent = 8; // Contenido del archivo en bytes
47
+ string encoding = 9; // Codificación del archivo
48
+ }
49
+
50
+ message AttachFileRequest {
51
+
52
+ }
53
+
54
+ message CreateFilesRequest {
55
+ repeated CreateFileRequest files = 1; // Archivos
56
+ }
57
+
58
+ message CreateFilesResponse {
59
+ repeated string filesIds = 1;
60
+ }
61
+
62
+ message CreateFileResponse {
63
+ string message = 1;
64
+ bool success = 2;
65
+ string url = 3; // URL del archivo almacenado
66
+ }
67
+
68
+ // Define el servicio que será implementado
69
+ service DriveService {
70
+ rpc CreateFolder(CreateFolderRequest) returns (FolderResponse);
71
+ rpc CreateFile(CreateFileRequest) returns (CreateFileResponse);
72
+ rpc CreateFiles(CreateFilesRequest) returns (CreateFilesResponse);
73
+ rpc CreateFolders(CreateFolderBulkRequest) returns (CreateFolderBulkResponse);
74
74
  }
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "easywork-common-lib",
3
- "version": "1.0.321",
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
- }
1
+ {
2
+ "name": "easywork-common-lib",
3
+ "version": "1.0.323",
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
- git add .
2
- git commit -m "bump version"
3
- npm version patch
4
- yarn build
5
- npm publish
1
+ git add .
2
+ git commit -m "bump version"
3
+ npm version patch
4
+ yarn build
5
+ npm publish
6
6
  git push
package/test.bat CHANGED
@@ -1,16 +1,16 @@
1
- @echo off
2
- setlocal enabledelayedexpansion
3
-
4
- rem Define the root directory
5
- set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
6
-
7
- rem Iterate through all directories and subdirectories
8
- for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
9
- rem Check if the directory name contains node_modules
10
- echo %%d | findstr /i /c:"\node_modules" >nul
11
- echo %%d | findstr /i /c:"\.git" >nul
12
- if errorlevel 1 (
13
- rem If not, list the directory contents
14
- dir "%%d"
15
- )
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ rem Define the root directory
5
+ set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
6
+
7
+ rem Iterate through all directories and subdirectories
8
+ for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
9
+ rem Check if the directory name contains node_modules
10
+ echo %%d | findstr /i /c:"\node_modules" >nul
11
+ echo %%d | findstr /i /c:"\.git" >nul
12
+ if errorlevel 1 (
13
+ rem If not, list the directory contents
14
+ dir "%%d"
15
+ )
16
16
  )
@@ -1,4 +1,4 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
4
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
4
+ }