easywork-common-lib 1.0.211 → 1.0.212
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/.vscode/settings.json +12 -12
- package/dist/entities/drive/file.entity.d.ts +2 -2
- package/dist/entities/drive/file.entity.js +1 -1
- package/dist/entities/drive/file.entity.js.map +1 -1
- package/dist/entities/drive/folder.entity.d.ts +2 -2
- package/dist/entities/drive/folder.entity.js +1 -1
- package/dist/entities/drive/folder.entity.js.map +1 -1
- package/dist/entities/drive/index.d.ts +0 -1
- package/dist/entities/drive/index.js +0 -1
- package/dist/entities/drive/index.js.map +1 -1
- package/dist/entities/helpers/entity_folder.entity.js +2 -2
- package/dist/entities/helpers/entity_folder.entity.js.map +1 -1
- package/dist/entities/oauth.entity.d.ts +2 -0
- package/dist/entities/oauth.entity.js +6 -0
- package/dist/entities/oauth.entity.js.map +1 -1
- package/dist/entities/thirdparty/email.entity.d.ts +2 -0
- package/dist/entities/thirdparty/email.entity.js +7 -1
- package/dist/entities/thirdparty/email.entity.js.map +1 -1
- package/package.json +38 -38
- 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/drive/attached_object.entity.d.ts +0 -14
- package/dist/entities/drive/attached_object.entity.js +0 -90
- package/dist/entities/drive/attached_object.entity.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
|
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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseEntity } from "../../common/database";
|
|
2
2
|
import { Folder } from "./folder.entity";
|
|
3
3
|
import { EntityFile } from "../helpers/entity_file.entity";
|
|
4
|
-
export declare class File extends
|
|
4
|
+
export declare class File extends BaseEntity {
|
|
5
5
|
name: string;
|
|
6
6
|
folder: Folder;
|
|
7
7
|
url: string;
|
|
@@ -16,7 +16,7 @@ const typeorm_1 = require("typeorm");
|
|
|
16
16
|
const folder_entity_1 = require("./folder.entity");
|
|
17
17
|
const entity_file_entity_1 = require("../helpers/entity_file.entity");
|
|
18
18
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
-
let File = class File extends database_1.
|
|
19
|
+
let File = class File extends database_1.BaseEntity {
|
|
20
20
|
name;
|
|
21
21
|
folder;
|
|
22
22
|
url;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,qCAA+D;AAC/D,mDAAyC;AACzC,sEAA2D;AAC3D,6CAA8C;AAGvC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAIlC,IAAI,CAAS;IAQb,MAAM,CAAS;IAIf,GAAG,CAAS;IAIZ,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,KAAK,CAAS;IAId,SAAS,CAAU;IAQnB,MAAM,CAAgB;CACvB,CAAA;AAzCY,oBAAI;AAIf;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC5E,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,GAAE;;kCACI;AAQb;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;IACnF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;QACjD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,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AAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE;QAC5D,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;;oCACoB;eAxCX,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAyChB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseEntity } from "../../common/database";
|
|
2
2
|
import { File } from "./file.entity";
|
|
3
3
|
import { EntityFolder } from "../helpers/entity_folder.entity";
|
|
4
|
-
export declare class Folder extends
|
|
4
|
+
export declare class Folder extends BaseEntity {
|
|
5
5
|
name: string;
|
|
6
6
|
parent: Folder;
|
|
7
7
|
files?: File[];
|
|
@@ -16,7 +16,7 @@ const typeorm_1 = require("typeorm");
|
|
|
16
16
|
const file_entity_1 = require("./file.entity");
|
|
17
17
|
const entity_folder_entity_1 = require("../helpers/entity_folder.entity");
|
|
18
18
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
-
let Folder = class Folder extends database_1.
|
|
19
|
+
let Folder = class Folder extends database_1.BaseEntity {
|
|
20
20
|
name;
|
|
21
21
|
parent;
|
|
22
22
|
files;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"folder.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qDAA4C;AAC5C,qCAAsE;AACtE,+CAAqC;AACrC,0EAA+D;AAC/D,6CAA8C;AAIvC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qBAAU;IAIpC,IAAI,CAAS;IAOb,MAAM,CAAS;IAOf,KAAK,CAAU;IAOf,OAAO,CAAY;IAQnB,MAAM,CAAkB;CACzB,CAAA;AAlCY,w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,EAAE,CAAC,mCAAY,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE;QACpE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;;sCACsB;iBAjCb,MAAM;IAFlB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC/B,MAAM,CAkClB"}
|
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./file.entity"), exports);
|
|
18
18
|
__exportStar(require("./folder.entity"), exports);
|
|
19
|
-
__exportStar(require("./attached_object.entity"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/drive/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,kDAA+B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/drive/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,kDAA+B"}
|
|
@@ -38,8 +38,8 @@ __decorate([
|
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], EntityFolder.prototype, "entityType", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated folder'
|
|
42
|
-
(0, typeorm_1.Column)(
|
|
41
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated folder' }),
|
|
42
|
+
(0, typeorm_1.Column)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], EntityFolder.prototype, "folderId", void 0);
|
|
45
45
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity_folder.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/entity_folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,0DAAgD;AAChD,6CAA8C;AAGvC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,oBAAU;IAG1C,EAAE,CAAS;IAIX,QAAQ,CAAS;IAIjB,UAAU,CAAS;IAInB,QAAQ,CAAS;IAIjB,QAAQ,CAAS;IAOV,MAAM,CAAS;CACvB,CAAA;AA3BY,oCAAY;AAGvB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACvF,IAAA,gCAAsB,EAAC,MAAM,CAAC;;wCACpB;AAIX;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACzF,IAAA,gBAAM,EAAC,MAAM,CAAC;;8CACE;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IAC3E,IAAA,gBAAM,GAAE;;gDACU;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,
|
|
1
|
+
{"version":3,"file":"entity_folder.entity.js","sourceRoot":"","sources":["../../../src/entities/helpers/entity_folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,0DAAgD;AAChD,6CAA8C;AAGvC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,oBAAU;IAG1C,EAAE,CAAS;IAIX,QAAQ,CAAS;IAIjB,UAAU,CAAS;IAInB,QAAQ,CAAS;IAIjB,QAAQ,CAAS;IAOV,MAAM,C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
2
|
+
import { EmailThirdparty } from "./thirdparty/email.entity";
|
|
2
3
|
export declare class Oauth extends BaseEntity {
|
|
3
4
|
service: number;
|
|
4
5
|
refresh_token: string;
|
|
@@ -11,4 +12,5 @@ export declare class Oauth extends BaseEntity {
|
|
|
11
12
|
email: string;
|
|
12
13
|
picture: string;
|
|
13
14
|
id_token: string;
|
|
15
|
+
emails: EmailThirdparty[];
|
|
14
16
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Oauth = void 0;
|
|
13
13
|
const database_1 = require("../common/database");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
|
+
const email_entity_1 = require("./thirdparty/email.entity");
|
|
15
16
|
let Oauth = class Oauth extends database_1.BaseEntity {
|
|
16
17
|
service;
|
|
17
18
|
refresh_token;
|
|
@@ -24,6 +25,7 @@ let Oauth = class Oauth extends database_1.BaseEntity {
|
|
|
24
25
|
email;
|
|
25
26
|
picture;
|
|
26
27
|
id_token;
|
|
28
|
+
emails;
|
|
27
29
|
};
|
|
28
30
|
exports.Oauth = Oauth;
|
|
29
31
|
__decorate([
|
|
@@ -70,6 +72,10 @@ __decorate([
|
|
|
70
72
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
73
|
__metadata("design:type", String)
|
|
72
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);
|
|
73
79
|
exports.Oauth = Oauth = __decorate([
|
|
74
80
|
(0, typeorm_1.Entity)(),
|
|
75
81
|
(0, typeorm_1.Index)(["email"], { unique: true })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../src/entities/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iD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,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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from "../../common/database";
|
|
2
2
|
import { UserEmailRelation } from "./user-email-relation.entity";
|
|
3
3
|
import { ServiceThirdparty } from "./service.entity";
|
|
4
|
+
import { Oauth } from "../oauth.entity";
|
|
4
5
|
export declare class EmailThirdparty extends BaseEntity {
|
|
5
6
|
googleId: string;
|
|
6
7
|
subject: string;
|
|
@@ -11,4 +12,5 @@ export declare class EmailThirdparty extends BaseEntity {
|
|
|
11
12
|
folder: string;
|
|
12
13
|
service: ServiceThirdparty;
|
|
13
14
|
userRelations: UserEmailRelation[];
|
|
15
|
+
oAuth: Oauth;
|
|
14
16
|
}
|
|
@@ -11,9 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EmailThirdparty = void 0;
|
|
13
13
|
const database_1 = require("../../common/database");
|
|
14
|
-
const user_email_relation_entity_1 = require("./user-email-relation.entity");
|
|
15
14
|
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_email_relation_entity_1 = require("./user-email-relation.entity");
|
|
16
16
|
const service_entity_1 = require("./service.entity");
|
|
17
|
+
const oauth_entity_1 = require("../oauth.entity");
|
|
17
18
|
let EmailThirdparty = class EmailThirdparty extends database_1.BaseEntity {
|
|
18
19
|
googleId;
|
|
19
20
|
subject;
|
|
@@ -24,6 +25,7 @@ let EmailThirdparty = class EmailThirdparty extends database_1.BaseEntity {
|
|
|
24
25
|
folder;
|
|
25
26
|
service;
|
|
26
27
|
userRelations;
|
|
28
|
+
oAuth;
|
|
27
29
|
};
|
|
28
30
|
exports.EmailThirdparty = EmailThirdparty;
|
|
29
31
|
__decorate([
|
|
@@ -62,6 +64,10 @@ __decorate([
|
|
|
62
64
|
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.email),
|
|
63
65
|
__metadata("design:type", Array)
|
|
64
66
|
], EmailThirdparty.prototype, "userRelations", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.id),
|
|
69
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
70
|
+
], EmailThirdparty.prototype, "oAuth", void 0);
|
|
65
71
|
exports.EmailThirdparty = EmailThirdparty = __decorate([
|
|
66
72
|
(0, typeorm_1.Entity)()
|
|
67
73
|
], EmailThirdparty);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"email.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAA+D;AAC/D,6EAAiE;AACjE,qDAAqD;AACrD,kDAAwC;AAGjC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,qBAAU;IAE7C,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,IAAI,CAAS;IAGb,IAAI,CAAO;IAGX,EAAE,CAAW;IAGb,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,OAAO,CAAoB;IAG3B,aAAa,CAAsB;IAGnC,KAAK,CAAQ;CACd,CAAA;AA9BY,0CAAe;AAE1B;IADC,IAAA,gBAAM,GAAE;;iDACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;gDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,gBAAM,GAAE;8BACH,IAAI;6CAAC;AAGX;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;2CACnB;AAGb;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACjB;AAGf;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;8BACvD,kCAAiB;gDAAC;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;;sDAC9B;AAGnC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;8BACrC,oBAAK;8CAAC;0BA7BF,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CA8B3B"}
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
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",
|
|
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
|
-
"@nestjs/common": "^10.3.8",
|
|
25
|
-
"@nestjs/swagger": "^7.4.0",
|
|
26
|
-
"@nestjs/typeorm": "^10.0.2",
|
|
27
|
-
"class-transformer": "^0.5.1",
|
|
28
|
-
"class-validator": "^0.14.1",
|
|
29
|
-
"rxjs": "^7.8.1",
|
|
30
|
-
"typeorm": "^0.3.20"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@rubiin/tsconfig": "^1.1.2",
|
|
34
|
-
"@types/node": "^20.12.12",
|
|
35
|
-
"ts-loader": "^9.5.1",
|
|
36
|
-
"typescript": "^5.4.5"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "easywork-common-lib",
|
|
3
|
+
"version": "1.0.212",
|
|
4
|
+
"description": "Librería común de Easywork",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
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
|
+
"@nestjs/common": "^10.3.8",
|
|
25
|
+
"@nestjs/swagger": "^7.4.0",
|
|
26
|
+
"@nestjs/typeorm": "^10.0.2",
|
|
27
|
+
"class-transformer": "^0.5.1",
|
|
28
|
+
"class-validator": "^0.14.1",
|
|
29
|
+
"rxjs": "^7.8.1",
|
|
30
|
+
"typeorm": "^0.3.20"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@rubiin/tsconfig": "^1.1.2",
|
|
34
|
+
"@types/node": "^20.12.12",
|
|
35
|
+
"ts-loader": "^9.5.1",
|
|
36
|
+
"typescript": "^5.4.5"
|
|
37
|
+
}
|
|
38
|
+
}
|
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
|
+
}
|