easywork-common-lib 1.0.541 → 1.0.545
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/capacitation/index.d.ts +2 -0
- package/dist/entities/capacitation/index.js +5 -1
- package/dist/entities/capacitation/index.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
- package/dist/entities/index.d.ts +27 -26
- package/dist/entities/index.js +1 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/thirdparty/oauth.entity.d.ts +2 -0
- package/dist/entities/thirdparty/oauth.entity.js +6 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -1
- package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +6 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +29 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -0
- package/dist/grpc/drive/drive.proto +225 -225
- package/dist/grpc/drive/leads.proto +114 -114
- package/justfile +8 -8
- package/package.json +45 -45
- package/scripts/bump.sh +6 -6
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +25 -25
- 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
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Capacitation = void 0;
|
|
3
|
+
exports.CapacitationLesson = exports.CapacitationModule = exports.Capacitation = void 0;
|
|
4
4
|
var capacitation_entity_1 = require("./capacitation.entity");
|
|
5
5
|
Object.defineProperty(exports, "Capacitation", { enumerable: true, get: function () { return capacitation_entity_1.Capacitation; } });
|
|
6
|
+
var capacitation_module_entity_1 = require("./capacitation-module.entity");
|
|
7
|
+
Object.defineProperty(exports, "CapacitationModule", { enumerable: true, get: function () { return capacitation_module_entity_1.CapacitationModule; } });
|
|
8
|
+
var capacitation_lesson_entity_copy_1 = require("./capacitation-lesson.entity copy");
|
|
9
|
+
Object.defineProperty(exports, "CapacitationLesson", { enumerable: true, get: function () { return capacitation_lesson_entity_copy_1.CapacitationLesson; } });
|
|
6
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA;AACrB,2EAAkE;AAAzD,gIAAA,kBAAkB,OAAA;AAC3B,qFAAuE;AAA9D,qIAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Poliza } from "../../../sales/poliza.entity";
|
|
3
|
+
import { File } from "../../../drive";
|
|
4
|
+
export declare class PolizaFile extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
polizaId: string;
|
|
7
|
+
fileId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
poliza: Poliza;
|
|
10
|
+
file: File;
|
|
11
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.PolizaFile = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const poliza_entity_1 = require("../../../sales/poliza.entity");
|
|
16
|
+
const drive_1 = require("../../../drive");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
let PolizaFile = class PolizaFile extends typeorm_1.BaseEntity {
|
|
19
|
+
id;
|
|
20
|
+
polizaId;
|
|
21
|
+
fileId;
|
|
22
|
+
relation;
|
|
23
|
+
poliza;
|
|
24
|
+
file;
|
|
25
|
+
};
|
|
26
|
+
exports.PolizaFile = PolizaFile;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the policy file', format: 'uuid' }),
|
|
29
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PolizaFile.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy' }),
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PolizaFile.prototype, "polizaId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated file', format: 'uuid' }),
|
|
39
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], PolizaFile.prototype, "fileId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Relation description or type', required: false }),
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], PolizaFile.prototype, "relation", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Exclude)(),
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Policy entity associated' }),
|
|
50
|
+
(0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, poliza => poliza.files, {
|
|
51
|
+
onDelete: "CASCADE",
|
|
52
|
+
onUpdate: "CASCADE",
|
|
53
|
+
}),
|
|
54
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
55
|
+
], PolizaFile.prototype, "poliza", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ type: () => drive_1.File, description: 'File entity associated' }),
|
|
58
|
+
(0, typeorm_1.ManyToOne)(() => drive_1.File, {
|
|
59
|
+
onDelete: "CASCADE",
|
|
60
|
+
onUpdate: "CASCADE",
|
|
61
|
+
eager: true,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", drive_1.File)
|
|
64
|
+
], PolizaFile.prototype, "file", void 0);
|
|
65
|
+
exports.PolizaFile = PolizaFile = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)()
|
|
67
|
+
], PolizaFile);
|
|
68
|
+
//# sourceMappingURL=poliza_file.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poliza_file.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/poliza_file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,gEAAsD;AACtD,0CAAsC;AACtC,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAGxC,EAAE,CAAU;IAIZ,QAAQ,CAAS;IAIjB,MAAM,CAAS;IAIf,QAAQ,CAAS;IAQV,MAAM,CAAS;IAQf,IAAI,CAAO;CACnB,CAAA;AAhCY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACrF,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;4CACQ;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACvF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACV;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC3F,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACV;AAQV;IANN,IAAA,2BAAO,GAAE;IACT,IAAA,qBAAW,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,KAAK,EAAE;QAC/C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACa,sBAAM;0CAAC;AAQf;IANN,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,YAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,YAAI,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;8BACW,YAAI;wCAAC;qBA/BP,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAgCtB"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
1
|
+
export * from './protocol.entity';
|
|
2
|
+
export * from './otp-log.entity';
|
|
3
|
+
export * from './refresh-token.entity';
|
|
4
|
+
export * from './permission.entity';
|
|
5
|
+
export * from './phone.entity';
|
|
6
|
+
export * from './email.entity';
|
|
7
|
+
export * from './app_config/app-config.entity';
|
|
8
|
+
export * from './imap-config.entity';
|
|
9
|
+
export * from './tag.entity';
|
|
10
|
+
export * from './tools';
|
|
11
|
+
export * from './drive';
|
|
12
|
+
export * from './sales';
|
|
13
|
+
export * from './helpers';
|
|
14
|
+
export * from './notifications';
|
|
15
|
+
export * from './capacitation';
|
|
16
|
+
export * from './easyapp/filter-view.entity';
|
|
17
|
+
export * from './thirdparty/oauth.entity';
|
|
18
|
+
export * from './thirdparty/service.entity';
|
|
19
|
+
export * from './thirdparty/email.entity';
|
|
20
|
+
export * from './thirdparty/email-config.entity';
|
|
21
|
+
export * from './thirdparty/user-email-relation.entity';
|
|
22
|
+
export * from './currency.entity';
|
|
23
|
+
export * from './user.entity';
|
|
24
|
+
export * from './group.entity';
|
|
25
|
+
export * from './menu-permissions.entity';
|
|
26
|
+
export * from './profile.entity';
|
|
27
|
+
export * from './role.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./drive"), exports);
|
|
|
28
28
|
__exportStar(require("./sales"), exports);
|
|
29
29
|
__exportStar(require("./helpers"), exports);
|
|
30
30
|
__exportStar(require("./notifications"), exports);
|
|
31
|
+
__exportStar(require("./capacitation"), exports);
|
|
31
32
|
__exportStar(require("./easyapp/filter-view.entity"), exports);
|
|
32
33
|
__exportStar(require("./thirdparty/oauth.entity"), exports);
|
|
33
34
|
__exportStar(require("./thirdparty/service.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,0EAAwD;AACxD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,iDAA+B;AAC/B,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,0EAAwD;AACxD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EntityBase } from "../../common/database/base.entity";
|
|
2
2
|
import { EmailThirdparty } from "./email.entity";
|
|
3
3
|
import { ServiceThirdparty } from "./service.entity";
|
|
4
|
+
import { EventListCalendars } from "../tools/calendar/event-list-calendars.entity";
|
|
4
5
|
export declare class Oauth extends EntityBase {
|
|
5
6
|
refresh_token: string;
|
|
6
7
|
access_token: string;
|
|
@@ -16,4 +17,5 @@ export declare class Oauth extends EntityBase {
|
|
|
16
17
|
labelIdRules: object;
|
|
17
18
|
emails: EmailThirdparty[];
|
|
18
19
|
service: ServiceThirdparty;
|
|
20
|
+
calendarsList: EventListCalendars;
|
|
19
21
|
}
|
|
@@ -14,6 +14,7 @@ const base_entity_1 = require("../../common/database/base.entity");
|
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const email_entity_1 = require("./email.entity");
|
|
16
16
|
const service_entity_1 = require("./service.entity");
|
|
17
|
+
const event_list_calendars_entity_1 = require("../tools/calendar/event-list-calendars.entity");
|
|
17
18
|
let Oauth = class Oauth extends base_entity_1.EntityBase {
|
|
18
19
|
refresh_token;
|
|
19
20
|
access_token;
|
|
@@ -29,6 +30,7 @@ let Oauth = class Oauth extends base_entity_1.EntityBase {
|
|
|
29
30
|
labelIdRules;
|
|
30
31
|
emails;
|
|
31
32
|
service;
|
|
33
|
+
calendarsList;
|
|
32
34
|
};
|
|
33
35
|
exports.Oauth = Oauth;
|
|
34
36
|
__decorate([
|
|
@@ -87,6 +89,10 @@ __decorate([
|
|
|
87
89
|
(0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.id),
|
|
88
90
|
__metadata("design:type", service_entity_1.ServiceThirdparty)
|
|
89
91
|
], Oauth.prototype, "service", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.OneToOne)(() => event_list_calendars_entity_1.EventListCalendars, (list) => list.id),
|
|
94
|
+
__metadata("design:type", event_list_calendars_entity_1.EventListCalendars)
|
|
95
|
+
], Oauth.prototype, "calendarsList", void 0);
|
|
90
96
|
exports.Oauth = Oauth = __decorate([
|
|
91
97
|
(0, typeorm_1.Entity)()
|
|
92
98
|
], Oauth);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAyE;AACzE,iDAAgD;AAChD,qDAAqD;AACrD,+FAAkF;AAG3E,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAEnC,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,OAAO,CAAW;IAGlB,YAAY,CAAS;IAGrB,MAAM,CAAoB;IAG1B,OAAO,CAAoB;IAG3B,aAAa,CAAqB;CACnC,CAAA;AA7CY,sBAAK;AAEhB;IADC,IAAA,gBAAM,GAAE;;4CACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;2CACY;AAGrB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;yCACK;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACL;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACX;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC9B;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACrB;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;;qCAC1B;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;8BACnD,kCAAiB;sCAAC;AAG3B;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,gDAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;8BACvC,gDAAkB;4CAAC;gBA5CvB,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CA6CjB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.EventListCalendars = void 0;
|
|
13
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
14
|
+
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
class EventListCalendars extends base_entity_1.EntityBase {
|
|
17
|
+
calendars;
|
|
18
|
+
oAuth;
|
|
19
|
+
}
|
|
20
|
+
exports.EventListCalendars = EventListCalendars;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "jsonb" }),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], EventListCalendars.prototype, "calendars", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.OneToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.id),
|
|
27
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
28
|
+
], EventListCalendars.prototype, "oAuth", void 0);
|
|
29
|
+
//# sourceMappingURL=event-list-calendars.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-list-calendars.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/event-list-calendars.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAkE;AAClE,gEAAsD;AACtD,qCAA2C;AAE3C,MAAa,kBAAmB,SAAQ,wBAAU;IAEhD,SAAS,CAAW;IAGpB,KAAK,CAAQ;CACd;AAND,gDAMC;AAJC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;qDACN;AAGpB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;8BACpC,oBAAK;iDAAC"}
|