easywork-common-lib 1.0.326 → 1.0.330
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/.gitattributes +2 -2
- package/.github/workflows/npm-publish.yml +33 -33
- package/.vscode/settings.json +12 -12
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +5 -6
- package/dist/entities/helpers/tools/task_crm.entity.js +47 -47
- package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -1
- package/dist/entities/thirdparty/email-config.entity.js +1 -1
- package/dist/entities/thirdparty/email-config.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +73 -73
- package/package.json +42 -42
- package/scripts/bump.sh +5 -5
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +26 -26
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +0 -36
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +0 -1
- package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +0 -36
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +0 -30
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +0 -1
- package/dist/entities/thirdparty/email-config.d.ts +0 -1
- package/dist/entities/thirdparty/email-config.js +0 -3
- package/dist/entities/thirdparty/email-config.js.map +0 -1
- package/dist/modules/notifier/notifier.module.d.ts +0 -4
- package/dist/modules/notifier/notifier.module.js +0 -52
- package/dist/modules/notifier/notifier.module.js.map +0 -1
- package/dist/modules/notifier/notifier.service.d.ts +0 -19
- package/dist/modules/notifier/notifier.service.js +0 -231
- package/dist/modules/notifier/notifier.service.js.map +0 -1
- package/dist/modules/notifier/scheduler.service.d.ts +0 -9
- package/dist/modules/notifier/scheduler.service.js +0 -40
- package/dist/modules/notifier/scheduler.service.js.map +0 -1
- package/dist/modules/queue/subservices/calendar.service.d.ts +0 -2
- package/dist/modules/queue/subservices/calendar.service.js +0 -17
- package/dist/modules/queue/subservices/calendar.service.js.map +0 -1
- package/dist/modules/queue/subservices/contact.service.d.ts +0 -7
- package/dist/modules/queue/subservices/contact.service.js +0 -49
- package/dist/modules/queue/subservices/contact.service.js.map +0 -1
- package/dist/modules/queue/subservices/index.d.ts +0 -3
- package/dist/modules/queue/subservices/index.js +0 -20
- package/dist/modules/queue/subservices/index.js.map +0 -1
- package/dist/modules/queue/subservices/task.service.d.ts +0 -12
- package/dist/modules/queue/subservices/task.service.js +0 -173
- 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}}
|
package/.vscode/settings.json
CHANGED
|
@@ -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
|
}
|
|
@@ -7,10 +7,9 @@ export declare class TaskCRM extends BaseEntity {
|
|
|
7
7
|
type: TaskCRMType;
|
|
8
8
|
taskId: string;
|
|
9
9
|
task: Task;
|
|
10
|
-
|
|
11
|
-
contact
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
lead: Lead;
|
|
10
|
+
referenceId: string;
|
|
11
|
+
contact?: Contact;
|
|
12
|
+
poliza?: Poliza;
|
|
13
|
+
lead?: Lead;
|
|
14
|
+
get crmEntity(): Contact | Poliza | Lead | undefined;
|
|
16
15
|
}
|
|
@@ -21,21 +21,38 @@ let TaskCRM = class TaskCRM extends typeorm_1.BaseEntity {
|
|
|
21
21
|
type;
|
|
22
22
|
taskId;
|
|
23
23
|
task;
|
|
24
|
-
|
|
24
|
+
referenceId;
|
|
25
25
|
contact;
|
|
26
|
-
polizaId;
|
|
27
26
|
poliza;
|
|
28
|
-
leadId;
|
|
29
27
|
lead;
|
|
28
|
+
get crmEntity() {
|
|
29
|
+
switch (this.type) {
|
|
30
|
+
case common_1.TaskCRMType.CONTACT:
|
|
31
|
+
return this.contact;
|
|
32
|
+
case common_1.TaskCRMType.POLIZA:
|
|
33
|
+
return this.poliza;
|
|
34
|
+
case common_1.TaskCRMType.LEAD:
|
|
35
|
+
return this.lead;
|
|
36
|
+
default:
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
30
40
|
};
|
|
31
41
|
exports.TaskCRM = TaskCRM;
|
|
32
42
|
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)({
|
|
43
|
+
(0, swagger_1.ApiProperty)({
|
|
44
|
+
type: String,
|
|
45
|
+
description: "UUID of the task CRM",
|
|
46
|
+
format: "uuid",
|
|
47
|
+
}),
|
|
34
48
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
35
49
|
__metadata("design:type", String)
|
|
36
50
|
], TaskCRM.prototype, "id", void 0);
|
|
37
51
|
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)({
|
|
52
|
+
(0, swagger_1.ApiProperty)({
|
|
53
|
+
enum: common_1.TaskCRMType,
|
|
54
|
+
description: "Type of the related CRM entity",
|
|
55
|
+
}),
|
|
39
56
|
(0, typeorm_1.Column)({
|
|
40
57
|
type: "enum",
|
|
41
58
|
enum: common_1.TaskCRMType,
|
|
@@ -43,70 +60,53 @@ __decorate([
|
|
|
43
60
|
__metadata("design:type", String)
|
|
44
61
|
], TaskCRM.prototype, "type", void 0);
|
|
45
62
|
__decorate([
|
|
46
|
-
(0, swagger_1.ApiProperty)({
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
type: String,
|
|
65
|
+
description: "ID of the associated task",
|
|
66
|
+
}),
|
|
47
67
|
(0, typeorm_1.Column)(),
|
|
48
68
|
__metadata("design:type", String)
|
|
49
69
|
], TaskCRM.prototype, "taskId", void 0);
|
|
50
70
|
__decorate([
|
|
51
71
|
(0, class_transformer_1.Exclude)(),
|
|
52
|
-
(0,
|
|
53
|
-
(0, typeorm_1.ManyToOne)(() => tools_1.Task, task => task.crm, {
|
|
72
|
+
(0, typeorm_1.ManyToOne)(() => tools_1.Task, (task) => task.crm, {
|
|
54
73
|
onDelete: "CASCADE",
|
|
55
74
|
onUpdate: "CASCADE",
|
|
56
75
|
}),
|
|
76
|
+
(0, typeorm_1.JoinColumn)({ name: "taskId" }),
|
|
57
77
|
__metadata("design:type", tools_1.Task)
|
|
58
78
|
], TaskCRM.prototype, "task", void 0);
|
|
59
79
|
__decorate([
|
|
60
|
-
(0, swagger_1.ApiProperty)({
|
|
61
|
-
|
|
62
|
-
|
|
80
|
+
(0, swagger_1.ApiProperty)({
|
|
81
|
+
type: String,
|
|
82
|
+
description: "ID of the associated CRM entity",
|
|
63
83
|
}),
|
|
84
|
+
(0, typeorm_1.Column)(),
|
|
64
85
|
__metadata("design:type", String)
|
|
65
|
-
], TaskCRM.prototype, "
|
|
86
|
+
], TaskCRM.prototype, "referenceId", void 0);
|
|
66
87
|
__decorate([
|
|
67
|
-
(0,
|
|
68
|
-
(0, typeorm_1.
|
|
69
|
-
onDelete: "CASCADE",
|
|
70
|
-
onUpdate: "CASCADE",
|
|
71
|
-
eager: true,
|
|
72
|
-
nullable: true,
|
|
73
|
-
}),
|
|
88
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Contact, { nullable: true }),
|
|
89
|
+
(0, typeorm_1.JoinColumn)({ name: "referenceId", referencedColumnName: "id" }),
|
|
74
90
|
__metadata("design:type", sales_1.Contact)
|
|
75
91
|
], TaskCRM.prototype, "contact", void 0);
|
|
76
92
|
__decorate([
|
|
77
|
-
(0,
|
|
78
|
-
(0, typeorm_1.
|
|
79
|
-
nullable: true,
|
|
80
|
-
}),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], TaskCRM.prototype, "polizaId", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, swagger_1.ApiProperty)({ type: () => sales_1.Poliza, description: 'Policy entity associated', required: false }),
|
|
85
|
-
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, {
|
|
86
|
-
onDelete: "CASCADE",
|
|
87
|
-
onUpdate: "CASCADE",
|
|
88
|
-
eager: true,
|
|
89
|
-
nullable: true,
|
|
90
|
-
}),
|
|
93
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Poliza, { nullable: true }),
|
|
94
|
+
(0, typeorm_1.JoinColumn)({ name: "referenceId", referencedColumnName: "id" }),
|
|
91
95
|
__metadata("design:type", sales_1.Poliza)
|
|
92
96
|
], TaskCRM.prototype, "poliza", void 0);
|
|
93
97
|
__decorate([
|
|
94
|
-
(0,
|
|
95
|
-
(0, typeorm_1.
|
|
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
|
-
}),
|
|
98
|
+
(0, typeorm_1.ManyToOne)(() => sales_1.Lead, { nullable: true }),
|
|
99
|
+
(0, typeorm_1.JoinColumn)({ name: "referenceId", referencedColumnName: "id" }),
|
|
108
100
|
__metadata("design:type", sales_1.Lead)
|
|
109
101
|
], TaskCRM.prototype, "lead", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, class_transformer_1.Expose)(),
|
|
104
|
+
(0, swagger_1.ApiProperty)({
|
|
105
|
+
description: "Associated CRM entity (Contact, Poliza, or Lead)",
|
|
106
|
+
}),
|
|
107
|
+
__metadata("design:type", Object),
|
|
108
|
+
__metadata("design:paramtypes", [])
|
|
109
|
+
], TaskCRM.prototype, "crmEntity", null);
|
|
110
110
|
exports.TaskCRM = TaskCRM = __decorate([
|
|
111
111
|
(0, typeorm_1.Entity)()
|
|
112
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,
|
|
1
|
+
{"version":3,"file":"task_crm.entity.js","sourceRoot":"","sources":["../../../../src/entities/helpers/tools/task_crm.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,yDAAoD;AACpD,mDAA+C;AAC/C,4CAA8C;AAC9C,mDAAgE;AAChE,6CAA8C;AAGvC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,oBAAU;IAOrC,EAAE,CAAU;IAUZ,IAAI,CAAc;IAOlB,MAAM,CAAS;IAQf,IAAI,CAAO;IAOX,WAAW,CAAS;IAKpB,OAAO,CAAW;IAIlB,MAAM,CAAU;IAIhB,IAAI,CAAQ;IAEZ,IAII,SAAS;QACX,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAClB,KAAK,oBAAW,CAAC,OAAO;gBACtB,OAAO,IAAI,CAAC,OAAO,CAAC;YACtB,KAAK,oBAAW,CAAC,MAAM;gBACrB,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB,KAAK,oBAAW,CAAC,IAAI;gBACnB,OAAO,IAAI,CAAC,IAAI,CAAC;YACnB;gBACE,OAAO,SAAS,CAAC;QACrB,CAAC;IACH,CAAC;CACF,CAAA;AAtEY,0BAAO;AAOlB;IANC,IAAA,qBAAW,EAAC;Q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,EAAE,CAAC;8BACvD,cAAM;uCAAC;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,YAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;8BACzD,YAAI;qCAAC;AAEZ;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kDAAkD;KAChE,CAAC;;;wCAYD;kBArEU,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAsEnB"}
|
|
@@ -67,7 +67,7 @@ __decorate([
|
|
|
67
67
|
__metadata("design:type", Array)
|
|
68
68
|
], EmailConfigThirdparty.prototype, "mailboxAccess", void 0);
|
|
69
69
|
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)(
|
|
70
|
+
(0, typeorm_1.Column)(),
|
|
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,wBAAwB,CAAS;IAGjC,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,wBAAwB,CAAS;IAGjC,sCAAsC,CAAU;IAGhD,sBAAsB,CAAS;IAG/B,yBAAyB,CAAS;IAGlC,wBAAwB,CAAU;IAGlC,uBAAuB,CAAW;IAGlC,aAAa,CAAW;IAGxB,KAAK,CAAS;CACf,CAAA;AAjCY,sDAAqB;AAEhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,E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;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,GAAE;;oDACK;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.
|
|
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.330",
|
|
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
|
)
|
package/tsconfig.build.json
CHANGED
|
@@ -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
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@rubiin/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"removeComments": true,
|
|
7
|
-
"emitDecoratorMetadata": true,
|
|
8
|
-
"experimentalDecorators": true,
|
|
9
|
-
"allowSyntheticDefaultImports": true,
|
|
10
|
-
"target": "ES2022",
|
|
11
|
-
"sourceMap": true,
|
|
12
|
-
"outDir": "./dist",
|
|
13
|
-
"rootDir": "./src",
|
|
14
|
-
"baseUrl": "./src",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"strict": true,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
"strictNullChecks": false,
|
|
19
|
-
"noImplicitAny": false,
|
|
20
|
-
"strictBindCallApply": false,
|
|
21
|
-
"forceConsistentCasingInFileNames": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": false
|
|
23
|
-
},
|
|
24
|
-
"include": ["test/**/*", "src/**/*", "eslint.config.js"],
|
|
25
|
-
"typeRoots": ["./src/common/@types/typings"]
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "@rubiin/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"removeComments": true,
|
|
7
|
+
"emitDecoratorMetadata": true,
|
|
8
|
+
"experimentalDecorators": true,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"target": "ES2022",
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"outDir": "./dist",
|
|
13
|
+
"rootDir": "./src",
|
|
14
|
+
"baseUrl": "./src",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"strict": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"strictNullChecks": false,
|
|
19
|
+
"noImplicitAny": false,
|
|
20
|
+
"strictBindCallApply": false,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": false
|
|
23
|
+
},
|
|
24
|
+
"include": ["test/**/*", "src/**/*", "eslint.config.js"],
|
|
25
|
+
"typeRoots": ["./src/common/@types/typings"]
|
|
26
|
+
}
|