easywork-common-lib 1.0.212 → 1.0.214
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/common/database/base.entity.js +3 -0
- package/dist/common/database/base.entity.js.map +1 -1
- package/dist/entities/drive/attached_object.entity.d.ts +14 -0
- package/dist/entities/drive/attached_object.entity.js +90 -0
- package/dist/entities/drive/attached_object.entity.js.map +1 -0
- 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 +1 -0
- package/dist/entities/drive/index.js +1 -0
- 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/sales/contact-comment.entity.d.ts +7 -0
- package/dist/entities/sales/contact-comment.entity.js +46 -0
- package/dist/entities/sales/contact-comment.entity.js.map +1 -0
- package/dist/entities/sales/lead-comment.entity.d.ts +7 -0
- package/dist/entities/sales/lead-comment.entity.js +46 -0
- package/dist/entities/sales/lead-comment.entity.js.map +1 -0
- package/dist/entities/sales/poliza-comment.entity.d.ts +7 -0
- package/dist/entities/sales/poliza-comment.entity.js +46 -0
- package/dist/entities/sales/poliza-comment.entity.js.map +1 -0
- 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/.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
|
}
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.BaseEntityWithUser = exports.BaseEntitySimple = exports.BaseEntity = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
13
14
|
const user_entity_1 = require("../../entities/user.entity");
|
|
14
15
|
const typeorm_1 = require("typeorm");
|
|
15
16
|
let BaseEntity = class BaseEntity extends typeorm_1.BaseEntity {
|
|
@@ -110,6 +111,7 @@ __decorate([
|
|
|
110
111
|
__metadata("design:type", Date)
|
|
111
112
|
], BaseEntityWithUser.prototype, "deletedAt", void 0);
|
|
112
113
|
__decorate([
|
|
114
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
|
|
113
115
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
114
116
|
onDelete: "SET NULL",
|
|
115
117
|
onUpdate: "CASCADE",
|
|
@@ -119,6 +121,7 @@ __decorate([
|
|
|
119
121
|
__metadata("design:type", user_entity_1.User)
|
|
120
122
|
], BaseEntityWithUser.prototype, "createdBy", void 0);
|
|
121
123
|
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
|
|
122
125
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
123
126
|
onDelete: "SET NULL",
|
|
124
127
|
onUpdate: "CASCADE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.entity.js","sourceRoot":"","sources":["../../../src/common/database/base.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4DAAkD;AAClD,qCAUiB;AAGV,IAAe,UAAU,GAAzB,MAAe,UAAW,SAAQ,oBAAU;IAEjD,EAAE,CAAU;IAGZ,QAAQ,CAAW;IAGnB,SAAS,CAAW;IAGpB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAlBqB,gCAAU;AAE9B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AA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AGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDACP;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACP;AAGpB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,kBAAI;qDAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;sDAAC;6BAnCE,kBAAkB;IADvC,IAAA,gBAAM,GAAE;GACa,kBAAkB,CAoCvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseEntityWithUser } from "../../common/database";
|
|
2
|
+
import { EntityFile } from "../helpers/entity_file.entity";
|
|
3
|
+
export declare class AttachedObject extends BaseEntityWithUser {
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
size: number;
|
|
7
|
+
mimeType: string;
|
|
8
|
+
s3Key: string;
|
|
9
|
+
isDefault: boolean;
|
|
10
|
+
module: string;
|
|
11
|
+
entityType: string;
|
|
12
|
+
entityId: string;
|
|
13
|
+
owners?: EntityFile[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.AttachedObject = void 0;
|
|
13
|
+
const database_1 = require("../../common/database");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const entity_file_entity_1 = require("../helpers/entity_file.entity");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
let AttachedObject = class AttachedObject extends database_1.BaseEntityWithUser {
|
|
19
|
+
name;
|
|
20
|
+
url;
|
|
21
|
+
size;
|
|
22
|
+
mimeType;
|
|
23
|
+
s3Key;
|
|
24
|
+
isDefault;
|
|
25
|
+
module;
|
|
26
|
+
entityType;
|
|
27
|
+
entityId;
|
|
28
|
+
owners;
|
|
29
|
+
};
|
|
30
|
+
exports.AttachedObject = AttachedObject;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'File name', minLength: 1 }),
|
|
33
|
+
(0, class_validator_1.MinLength)(1),
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AttachedObject.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'URL of the file', required: false }),
|
|
39
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], AttachedObject.prototype, "url", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ type: 'bigint', description: 'Size of the file in bytes', required: false }),
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: true, type: "bigint" }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], AttachedObject.prototype, "size", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'MIME type of the file', required: false }),
|
|
49
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AttachedObject.prototype, "mimeType", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'S3 key of the file', required: false }),
|
|
54
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], AttachedObject.prototype, "s3Key", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default file?', default: false }),
|
|
59
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], AttachedObject.prototype, "isDefault", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'the module containing the entity', required: false }),
|
|
64
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], AttachedObject.prototype, "module", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'entity type', required: false }),
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AttachedObject.prototype, "entityType", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'entity identifier with attachment', required: false }),
|
|
74
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], AttachedObject.prototype, "entityId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)({ type: () => [entity_file_entity_1.EntityFile], description: 'Entities that own the file' }),
|
|
79
|
+
(0, typeorm_1.OneToMany)(() => entity_file_entity_1.EntityFile, (entityFile) => entityFile.file, {
|
|
80
|
+
onDelete: "CASCADE",
|
|
81
|
+
onUpdate: "CASCADE",
|
|
82
|
+
eager: true,
|
|
83
|
+
}),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], AttachedObject.prototype, "owners", void 0);
|
|
86
|
+
exports.AttachedObject = AttachedObject = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)(),
|
|
88
|
+
(0, typeorm_1.Index)(["name", "module", "entityType", "entityId"], { unique: true })
|
|
89
|
+
], AttachedObject);
|
|
90
|
+
//# sourceMappingURL=attached_object.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attached_object.entity.js","sourceRoot":"","sources":["../../../src/entities/drive/attached_object.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,qDAA4C;AAC5C,qCAA2D;AAC3D,sEAA2D;AAC3D,6CAA8C;AAIvC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,6BAAkB;IAIpD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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseEntityWithUser } 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 BaseEntityWithUser {
|
|
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.BaseEntityWithUser {
|
|
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,oDAA2D;AAC3D,qDAA4C;AAC5C,qCAA+D;AAC/D,mDAAyC;AACzC,sEAA2D;AAC3D,6CAA8C;AAGvC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,6BAAkB;IAI1C,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,CAA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2BAA2B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACxF,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACR;AAQnB;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,+BAAU,CAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACpF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAU,EAAE,CAAC,UAAU,EAAE,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 { BaseEntityWithUser } 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 BaseEntityWithUser {
|
|
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.BaseEntityWithUser {
|
|
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","s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,mBAAS,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;QAClD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;;uCACiB;AAQnB;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,mCAAY,CAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IACxF,IAAA,mBAAS,EAAC,GAAG,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,4 +16,5 @@ 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);
|
|
19
20
|
//# 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;AAC/B,2DAAwC"}
|
|
@@ -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', format: 'uuid' }),
|
|
42
|
+
(0, typeorm_1.Column)("uuid"),
|
|
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,E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,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IAC5E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE;QAChD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACa,sBAAM;4CAAC;uBA1BX,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CA2BxB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ContactComment = void 0;
|
|
13
|
+
const common_1 = require("../../common");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const contact_entity_1 = require("./contact.entity");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
let ContactComment = class ContactComment extends common_1.BaseEntityWithUser {
|
|
19
|
+
comment;
|
|
20
|
+
pinned;
|
|
21
|
+
contact;
|
|
22
|
+
};
|
|
23
|
+
exports.ContactComment = ContactComment;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
|
|
26
|
+
(0, class_validator_1.MinLength)(1),
|
|
27
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ContactComment.prototype, "comment", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
|
|
32
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], ContactComment.prototype, "pinned", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: () => contact_entity_1.Contact, description: 'Contact associated with the comment' }),
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, {
|
|
38
|
+
onDelete: "CASCADE",
|
|
39
|
+
onUpdate: "CASCADE",
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", contact_entity_1.Contact)
|
|
42
|
+
], ContactComment.prototype, "contact", void 0);
|
|
43
|
+
exports.ContactComment = ContactComment = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)()
|
|
45
|
+
], ContactComment);
|
|
46
|
+
//# sourceMappingURL=contact-comment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAkD;AAClD,qDAA4C;AAC5C,qCAAoD;AACpD,qDAA2C;AAC3C,6CAA8C;AAGvC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,2BAAkB;IAIlD,OAAO,CAAS;IAIhB,MAAM,CAAU;IAOhB,OAAO,CAAU;CACpB,CAAA;AAhBY,wCAAc;AAIvB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+CACT;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACX;AAOhB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,wBAAO,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACxF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACO,wBAAO;+CAAC;yBAfR,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAgB1B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.LeadComment = void 0;
|
|
13
|
+
const common_1 = require("../../common");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const lead_entity_1 = require("./lead.entity");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
let LeadComment = class LeadComment extends common_1.BaseEntityWithUser {
|
|
19
|
+
comment;
|
|
20
|
+
pinned;
|
|
21
|
+
lead;
|
|
22
|
+
};
|
|
23
|
+
exports.LeadComment = LeadComment;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
|
|
26
|
+
(0, class_validator_1.MinLength)(1),
|
|
27
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], LeadComment.prototype, "comment", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
|
|
32
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], LeadComment.prototype, "pinned", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: () => lead_entity_1.Lead, description: 'Lead associated with the comment' }),
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => lead_entity_1.Lead, {
|
|
38
|
+
onDelete: "CASCADE",
|
|
39
|
+
onUpdate: "CASCADE",
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", lead_entity_1.Lead)
|
|
42
|
+
], LeadComment.prototype, "lead", void 0);
|
|
43
|
+
exports.LeadComment = LeadComment = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)()
|
|
45
|
+
], LeadComment);
|
|
46
|
+
//# sourceMappingURL=lead-comment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lead-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAkD;AAClD,qDAA4C;AAC5C,qCAAoD;AACpD,+CAAqC;AACrC,6CAA8C;AAGvC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,2BAAkB;IAI/C,OAAO,CAAS;IAIhB,MAAM,CAAU;IAOhB,IAAI,CAAO;CACd,CAAA;AAhBY,kCAAW;AAIpB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4CACT;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACX;AAOhB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACI,kBAAI;yCAAC;sBAfF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAgBvB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.PolizaComment = void 0;
|
|
13
|
+
const common_1 = require("../../common");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const poliza_entity_1 = require("./poliza.entity");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
let PolizaComment = class PolizaComment extends common_1.BaseEntityWithUser {
|
|
19
|
+
comment;
|
|
20
|
+
pinned;
|
|
21
|
+
poliza;
|
|
22
|
+
};
|
|
23
|
+
exports.PolizaComment = PolizaComment;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Comment text', minLength: 1 }),
|
|
26
|
+
(0, class_validator_1.MinLength)(1),
|
|
27
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PolizaComment.prototype, "comment", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Pinned comment', default: false }),
|
|
32
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], PolizaComment.prototype, "pinned", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Poliza associated with the comment' }),
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
|
|
38
|
+
onDelete: "CASCADE",
|
|
39
|
+
onUpdate: "CASCADE",
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
42
|
+
], PolizaComment.prototype, "poliza", void 0);
|
|
43
|
+
exports.PolizaComment = PolizaComment = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)()
|
|
45
|
+
], PolizaComment);
|
|
46
|
+
//# sourceMappingURL=poliza-comment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poliza-comment.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/poliza-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAkD;AAClD,qDAA4C;AAC5C,qCAAoD;AACpD,mDAAyC;AACzC,6CAA8C;AAGvC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAkB;IAIjD,OAAO,CAAS;IAIhB,MAAM,CAAU;IAOhB,MAAM,CAAS;CAClB,CAAA;AAhBY,sCAAa;AAItB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACxE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CACT;AAIhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACX;AAOhB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,oCAAoC,EAAE,CAAC;IACtF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACtB,CAAC;8BACM,sBAAM;6CAAC;wBAfN,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAgBzB"}
|
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.214",
|
|
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
|
+
}
|