easywork-common-lib 1.0.810 → 1.0.813
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/dist/entities/index.d.ts +9 -10
- package/dist/entities/index.js +9 -10
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/third-party/email-config.entity.d.ts +14 -0
- package/dist/entities/third-party/email-config.entity.js +76 -0
- package/dist/entities/third-party/email-config.entity.js.map +1 -0
- package/dist/entities/third-party/email.entity.d.ts +17 -0
- package/dist/entities/third-party/email.entity.js +79 -0
- package/dist/entities/third-party/email.entity.js.map +1 -0
- package/dist/entities/third-party/google-webhooks-config.entity.d.ts +14 -0
- package/dist/entities/third-party/google-webhooks-config.entity.js +72 -0
- package/dist/entities/third-party/google-webhooks-config.entity.js.map +1 -0
- package/dist/entities/third-party/oauth-v2.entity.d.ts +22 -0
- package/dist/entities/third-party/oauth-v2.entity.js +75 -0
- package/dist/entities/third-party/oauth-v2.entity.js.map +1 -0
- package/dist/entities/third-party/oauth.entity.d.ts +21 -0
- package/dist/entities/third-party/oauth.entity.js +100 -0
- package/dist/entities/third-party/oauth.entity.js.map +1 -0
- package/dist/entities/third-party/service.entity.d.ts +8 -0
- package/dist/entities/third-party/service.entity.js +38 -0
- package/dist/entities/third-party/service.entity.js.map +1 -0
- package/dist/entities/third-party/user-email-relation.entity.d.ts +7 -0
- package/dist/entities/third-party/user-email-relation.entity.js +35 -0
- package/dist/entities/third-party/user-email-relation.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.d.ts +13 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.js +48 -0
- package/dist/entities/tools/calendar/calendar-event-invitations.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.d.ts +20 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js +118 -0
- package/dist/entities/tools/calendar/calendar-general-config.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-list.entity.d.ts +36 -0
- package/dist/entities/tools/calendar/calendar-list.entity.js +109 -0
- package/dist/entities/tools/calendar/calendar-list.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.d.ts +13 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.js +46 -0
- package/dist/entities/tools/calendar/calendar-user-access.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +1 -1
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +1 -1
- package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -1
- package/dist/entities/tools/calendar/index.d.ts +4 -0
- package/dist/entities/tools/calendar/index.js +4 -0
- package/dist/entities/tools/calendar/index.js.map +1 -1
- package/dist/entities/user.entity.d.ts +1 -1
- package/dist/entities/user.entity.js +1 -1
- package/dist/entities/user.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './app_config/app-config.entity';
|
|
2
|
-
export * from './capacitation';
|
|
3
2
|
export * from './currency.entity';
|
|
4
3
|
export * from './drive';
|
|
5
4
|
export * from './easyapp/filter-view.entity';
|
|
@@ -23,14 +22,14 @@ export * from './role.entity';
|
|
|
23
22
|
export * from './sales';
|
|
24
23
|
export * from './tag.entity';
|
|
25
24
|
export * from './tools';
|
|
26
|
-
export * from './tools/calendar/event-list-calendars.entity';
|
|
27
25
|
export * from './user-invitations.entity';
|
|
28
26
|
export * from './user.entity';
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './
|
|
27
|
+
export * from './capacitation';
|
|
28
|
+
export * from './tools/calendar';
|
|
29
|
+
export * from './third-party/email-config.entity';
|
|
30
|
+
export * from './third-party/email.entity';
|
|
31
|
+
export * from './third-party/google-webhooks-config.entity';
|
|
32
|
+
export * from './third-party/oauth-v2.entity';
|
|
33
|
+
export * from './third-party/oauth.entity';
|
|
34
|
+
export * from './third-party/service.entity';
|
|
35
|
+
export * from './third-party/user-email-relation.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./app_config/app-config.entity"), exports);
|
|
18
|
-
__exportStar(require("./capacitation"), exports);
|
|
19
18
|
__exportStar(require("./currency.entity"), exports);
|
|
20
19
|
__exportStar(require("./drive"), exports);
|
|
21
20
|
__exportStar(require("./easyapp/filter-view.entity"), exports);
|
|
@@ -39,15 +38,15 @@ __exportStar(require("./role.entity"), exports);
|
|
|
39
38
|
__exportStar(require("./sales"), exports);
|
|
40
39
|
__exportStar(require("./tag.entity"), exports);
|
|
41
40
|
__exportStar(require("./tools"), exports);
|
|
42
|
-
__exportStar(require("./tools/calendar/event-list-calendars.entity"), exports);
|
|
43
41
|
__exportStar(require("./user-invitations.entity"), exports);
|
|
44
42
|
__exportStar(require("./user.entity"), exports);
|
|
45
|
-
__exportStar(require("./
|
|
46
|
-
__exportStar(require("./
|
|
47
|
-
__exportStar(require("./
|
|
48
|
-
__exportStar(require("./
|
|
49
|
-
__exportStar(require("./
|
|
50
|
-
__exportStar(require("./
|
|
51
|
-
__exportStar(require("./
|
|
52
|
-
__exportStar(require("./
|
|
43
|
+
__exportStar(require("./capacitation"), exports);
|
|
44
|
+
__exportStar(require("./tools/calendar"), exports);
|
|
45
|
+
__exportStar(require("./third-party/email-config.entity"), exports);
|
|
46
|
+
__exportStar(require("./third-party/email.entity"), exports);
|
|
47
|
+
__exportStar(require("./third-party/google-webhooks-config.entity"), exports);
|
|
48
|
+
__exportStar(require("./third-party/oauth-v2.entity"), exports);
|
|
49
|
+
__exportStar(require("./third-party/oauth.entity"), exports);
|
|
50
|
+
__exportStar(require("./third-party/service.entity"), exports);
|
|
51
|
+
__exportStar(require("./third-party/user-email-relation.entity"), exports);
|
|
53
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,4CAA0B;AAC1B,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,0CAAwB;AACxB,4DAA0C;AAC1C,gDAA8B;AAG9B,iDAA+B;AAG/B,mDAAiC;AAGjC,oEAAkD;AAClD,6DAA2C;AAC3C,8EAA4D;AAC5D,gEAA8C;AAC9C,6DAA2C;AAC3C,+DAA6C;AAC7C,2EAAyD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
export declare class EmailConfigThirdparty extends EntityBase {
|
|
3
|
+
countExtractMessagesDays: number;
|
|
4
|
+
mailboxName: string;
|
|
5
|
+
senderName: string;
|
|
6
|
+
countProcessMessagesDays: number;
|
|
7
|
+
routeExistingClientEmailsToCrmManagers: boolean;
|
|
8
|
+
createIncomingMessages: string;
|
|
9
|
+
createForOutgoingMessages: string;
|
|
10
|
+
createUsingAttachedVCard: boolean;
|
|
11
|
+
contactLeadDistribution: object[];
|
|
12
|
+
mailboxAccess: object[];
|
|
13
|
+
email: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.EmailConfigThirdparty = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let EmailConfigThirdparty = class EmailConfigThirdparty extends base_entity_1.EntityBase {
|
|
16
|
+
countExtractMessagesDays;
|
|
17
|
+
mailboxName;
|
|
18
|
+
senderName;
|
|
19
|
+
countProcessMessagesDays;
|
|
20
|
+
routeExistingClientEmailsToCrmManagers;
|
|
21
|
+
createIncomingMessages;
|
|
22
|
+
createForOutgoingMessages;
|
|
23
|
+
createUsingAttachedVCard;
|
|
24
|
+
contactLeadDistribution;
|
|
25
|
+
mailboxAccess;
|
|
26
|
+
email;
|
|
27
|
+
};
|
|
28
|
+
exports.EmailConfigThirdparty = EmailConfigThirdparty;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], EmailConfigThirdparty.prototype, "countExtractMessagesDays", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EmailConfigThirdparty.prototype, "mailboxName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], EmailConfigThirdparty.prototype, "senderName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], EmailConfigThirdparty.prototype, "countProcessMessagesDays", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], EmailConfigThirdparty.prototype, "routeExistingClientEmailsToCrmManagers", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], EmailConfigThirdparty.prototype, "createIncomingMessages", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], EmailConfigThirdparty.prototype, "createForOutgoingMessages", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: true }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], EmailConfigThirdparty.prototype, "createUsingAttachedVCard", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], EmailConfigThirdparty.prototype, "contactLeadDistribution", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], EmailConfigThirdparty.prototype, "mailboxAccess", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], EmailConfigThirdparty.prototype, "email", void 0);
|
|
73
|
+
exports.EmailConfigThirdparty = EmailConfigThirdparty = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)()
|
|
75
|
+
], EmailConfigThirdparty);
|
|
76
|
+
//# sourceMappingURL=email-config.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-config.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/email-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAyC;AAGlC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAU;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,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACX;AAGjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACrC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACtC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACX;AAGjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qFACI;AAGhD;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEAC1B;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACvB;AAGlC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACV;AAGlC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACd;AAGlC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACxB;AAGxB;IADC,IAAA,gBAAM,GAAE;;oDACK;gCAhCH,qBAAqB;IADjC,IAAA,gBAAM,GAAE;GACI,qBAAqB,CAiCjC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { UserEmailRelation } from "./user-email-relation.entity";
|
|
3
|
+
import { ServiceThirdparty } from "./service.entity";
|
|
4
|
+
import { Oauth } from "./oauth.entity";
|
|
5
|
+
export declare class EmailThirdparty extends EntityBase {
|
|
6
|
+
googleId: string;
|
|
7
|
+
subject: string;
|
|
8
|
+
from: string;
|
|
9
|
+
date: Date;
|
|
10
|
+
to: string[];
|
|
11
|
+
body: string;
|
|
12
|
+
folder: string[];
|
|
13
|
+
attachment: string[];
|
|
14
|
+
service: ServiceThirdparty;
|
|
15
|
+
userRelations: UserEmailRelation[];
|
|
16
|
+
oAuth: Oauth;
|
|
17
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.EmailThirdparty = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_email_relation_entity_1 = require("./user-email-relation.entity");
|
|
16
|
+
const service_entity_1 = require("./service.entity");
|
|
17
|
+
const oauth_entity_1 = require("./oauth.entity");
|
|
18
|
+
let EmailThirdparty = class EmailThirdparty extends base_entity_1.EntityBase {
|
|
19
|
+
googleId;
|
|
20
|
+
subject;
|
|
21
|
+
from;
|
|
22
|
+
date;
|
|
23
|
+
to;
|
|
24
|
+
body;
|
|
25
|
+
folder;
|
|
26
|
+
attachment;
|
|
27
|
+
service;
|
|
28
|
+
userRelations;
|
|
29
|
+
oAuth;
|
|
30
|
+
};
|
|
31
|
+
exports.EmailThirdparty = EmailThirdparty;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], EmailThirdparty.prototype, "googleId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], EmailThirdparty.prototype, "subject", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], EmailThirdparty.prototype, "from", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)(),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], EmailThirdparty.prototype, "date", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)("text", { array: true }),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], EmailThirdparty.prototype, "to", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], EmailThirdparty.prototype, "body", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)("text", { array: true }),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], EmailThirdparty.prototype, "folder", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], EmailThirdparty.prototype, "attachment", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.emails),
|
|
66
|
+
__metadata("design:type", service_entity_1.ServiceThirdparty)
|
|
67
|
+
], EmailThirdparty.prototype, "service", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.email),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], EmailThirdparty.prototype, "userRelations", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.id),
|
|
74
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
75
|
+
], EmailThirdparty.prototype, "oAuth", void 0);
|
|
76
|
+
exports.EmailThirdparty = EmailThirdparty = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)()
|
|
78
|
+
], EmailThirdparty);
|
|
79
|
+
//# sourceMappingURL=email.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA+D;AAC/D,6EAAiE;AACjE,qDAAqD;AACrD,iDAAuC;AAGhC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAE7C,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,IAAI,CAAS;IAGb,IAAI,CAAO;IAGX,EAAE,CAAW;IAGb,IAAI,CAAS;IAGb,MAAM,CAAW;IAGjB,UAAU,CAAW;IAGrB,OAAO,CAAoB;IAG3B,aAAa,CAAsB;IAGnC,KAAK,CAAQ;CACd,CAAA;AAjCY,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;;+CACf;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC3B;AAGrB;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;0BAhCF,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAiC3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OauthV2 } from './oauth-v2.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
3
|
+
export declare class GoogleWebhooksConfig {
|
|
4
|
+
channelId: string;
|
|
5
|
+
resourceId: string;
|
|
6
|
+
notificationUrl: string;
|
|
7
|
+
expiration: number;
|
|
8
|
+
active: boolean;
|
|
9
|
+
syncToken?: string;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
oauth: OauthV2;
|
|
13
|
+
user: User;
|
|
14
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.GoogleWebhooksConfig = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const oauth_v2_entity_1 = require("./oauth-v2.entity");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
let GoogleWebhooksConfig = class GoogleWebhooksConfig {
|
|
17
|
+
channelId;
|
|
18
|
+
resourceId;
|
|
19
|
+
notificationUrl;
|
|
20
|
+
expiration;
|
|
21
|
+
active;
|
|
22
|
+
syncToken;
|
|
23
|
+
createdAt;
|
|
24
|
+
updatedAt;
|
|
25
|
+
oauth;
|
|
26
|
+
user;
|
|
27
|
+
};
|
|
28
|
+
exports.GoogleWebhooksConfig = GoogleWebhooksConfig;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.PrimaryColumn)('uuid'),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], GoogleWebhooksConfig.prototype, "channelId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GoogleWebhooksConfig.prototype, "resourceId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GoogleWebhooksConfig.prototype, "notificationUrl", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], GoogleWebhooksConfig.prototype, "expiration", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ default: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], GoogleWebhooksConfig.prototype, "active", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], GoogleWebhooksConfig.prototype, "syncToken", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], GoogleWebhooksConfig.prototype, "createdAt", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
59
|
+
__metadata("design:type", Date)
|
|
60
|
+
], GoogleWebhooksConfig.prototype, "updatedAt", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.OneToOne)(() => oauth_v2_entity_1.OauthV2, { nullable: false, onDelete: 'CASCADE' }),
|
|
63
|
+
__metadata("design:type", oauth_v2_entity_1.OauthV2)
|
|
64
|
+
], GoogleWebhooksConfig.prototype, "oauth", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
67
|
+
__metadata("design:type", user_entity_1.User)
|
|
68
|
+
], GoogleWebhooksConfig.prototype, "user", void 0);
|
|
69
|
+
exports.GoogleWebhooksConfig = GoogleWebhooksConfig = __decorate([
|
|
70
|
+
(0, typeorm_1.Entity)()
|
|
71
|
+
], GoogleWebhooksConfig);
|
|
72
|
+
//# sourceMappingURL=google-webhooks-config.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-webhooks-config.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/google-webhooks-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsG;AACtG,uDAA4C;AAC5C,gDAAsC;AAG/B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,SAAS,CAAS;IAGlB,UAAU,CAAS;IAGnB,eAAe,CAAS;IAGxB,UAAU,CAAS;IAGnB,MAAM,CAAU;IAGhB,SAAS,CAAU;IAGnB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,KAAK,CAAU;IAGf,IAAI,CAAO;CACZ,CAAA;AA9BY,oDAAoB;AAE/B;IADC,IAAA,uBAAa,EAAC,MAAM,CAAC;;uDACJ;AAGlB;IADC,IAAA,gBAAM,GAAE;;wDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;6DACe;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;wDACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDACV;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAGnB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,yBAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC3D,yBAAO;mDAAC;AAGf;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzD,kBAAI;kDAAC;+BA7BA,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CA8BhC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
3
|
+
export declare enum OAuthProvider {
|
|
4
|
+
Google = "google",
|
|
5
|
+
Microsoft = "microsoft",
|
|
6
|
+
Apple = "apple"
|
|
7
|
+
}
|
|
8
|
+
export declare enum OAuthServiceType {
|
|
9
|
+
Profile = "profile",
|
|
10
|
+
Calendar = "calendar",
|
|
11
|
+
Mail = "mail"
|
|
12
|
+
}
|
|
13
|
+
export declare class OauthV2 extends BaseEntityOnlyEssential {
|
|
14
|
+
provider: OAuthProvider;
|
|
15
|
+
service: OAuthServiceType;
|
|
16
|
+
refreshToken: string;
|
|
17
|
+
accessToken: string;
|
|
18
|
+
expiresIn: number;
|
|
19
|
+
scope?: string;
|
|
20
|
+
additionalData?: string;
|
|
21
|
+
user: User;
|
|
22
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.OauthV2 = exports.OAuthServiceType = exports.OAuthProvider = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
var OAuthProvider;
|
|
17
|
+
(function (OAuthProvider) {
|
|
18
|
+
OAuthProvider["Google"] = "google";
|
|
19
|
+
OAuthProvider["Microsoft"] = "microsoft";
|
|
20
|
+
OAuthProvider["Apple"] = "apple";
|
|
21
|
+
})(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
|
|
22
|
+
var OAuthServiceType;
|
|
23
|
+
(function (OAuthServiceType) {
|
|
24
|
+
OAuthServiceType["Profile"] = "profile";
|
|
25
|
+
OAuthServiceType["Calendar"] = "calendar";
|
|
26
|
+
OAuthServiceType["Mail"] = "mail";
|
|
27
|
+
})(OAuthServiceType || (exports.OAuthServiceType = OAuthServiceType = {}));
|
|
28
|
+
let OauthV2 = class OauthV2 extends base_entity_1.BaseEntityOnlyEssential {
|
|
29
|
+
provider;
|
|
30
|
+
service;
|
|
31
|
+
refreshToken;
|
|
32
|
+
accessToken;
|
|
33
|
+
expiresIn;
|
|
34
|
+
scope;
|
|
35
|
+
additionalData;
|
|
36
|
+
user;
|
|
37
|
+
};
|
|
38
|
+
exports.OauthV2 = OauthV2;
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: OAuthProvider }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], OauthV2.prototype, "provider", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: OAuthServiceType }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], OauthV2.prototype, "service", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], OauthV2.prototype, "refreshToken", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], OauthV2.prototype, "accessToken", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], OauthV2.prototype, "expiresIn", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], OauthV2.prototype, "scope", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], OauthV2.prototype, "additionalData", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
69
|
+
__metadata("design:type", user_entity_1.User)
|
|
70
|
+
], OauthV2.prototype, "user", void 0);
|
|
71
|
+
exports.OauthV2 = OauthV2 = __decorate([
|
|
72
|
+
(0, typeorm_1.Entity)(),
|
|
73
|
+
(0, typeorm_1.Unique)(['user', 'service', 'provider'])
|
|
74
|
+
], OauthV2);
|
|
75
|
+
//# sourceMappingURL=oauth-v2.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-v2.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/oauth-v2.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAC5D,mEAA4E;AAC5E,gDAAsC;AAEtC,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,gCAAe,CAAA;AACjB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAIM,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qCAAuB;IAElD,QAAQ,CAAgB;IAGxB,OAAO,CAAmB;IAG1B,YAAY,CAAS;IAGrB,WAAW,CAAS;IAGpB,SAAS,CAAS;IAGlB,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,IAAI,CAAO;CACZ,CAAA;AAxBY,0BAAO;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;yCACtB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;wCACvB;AAG1B;IADC,IAAA,gBAAM,GAAE;;6CACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;0CACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC1B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACjB;AAGxB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;qCAAC;kBAvBA,OAAO;IAFnB,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;GAC3B,OAAO,CAwBnB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { EmailThirdparty } from "./email.entity";
|
|
3
|
+
import { ServiceThirdparty } from "./service.entity";
|
|
4
|
+
import { EventListCalendars } from "../tools/calendar/event-list-calendars.entity";
|
|
5
|
+
export declare class Oauth extends EntityBase {
|
|
6
|
+
refresh_token: string;
|
|
7
|
+
access_token: string;
|
|
8
|
+
expires_in: number;
|
|
9
|
+
userId: string;
|
|
10
|
+
usergoogle_id: string;
|
|
11
|
+
family_name: string;
|
|
12
|
+
given_name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
picture: string;
|
|
15
|
+
id_token: string;
|
|
16
|
+
labelId: object[];
|
|
17
|
+
labelIdRules: object;
|
|
18
|
+
emails: EmailThirdparty[];
|
|
19
|
+
service: ServiceThirdparty;
|
|
20
|
+
calendarsList: EventListCalendars;
|
|
21
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.Oauth = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const email_entity_1 = require("./email.entity");
|
|
16
|
+
const service_entity_1 = require("./service.entity");
|
|
17
|
+
const event_list_calendars_entity_1 = require("../tools/calendar/event-list-calendars.entity");
|
|
18
|
+
let Oauth = class Oauth extends base_entity_1.EntityBase {
|
|
19
|
+
refresh_token;
|
|
20
|
+
access_token;
|
|
21
|
+
expires_in;
|
|
22
|
+
userId;
|
|
23
|
+
usergoogle_id;
|
|
24
|
+
family_name;
|
|
25
|
+
given_name;
|
|
26
|
+
email;
|
|
27
|
+
picture;
|
|
28
|
+
id_token;
|
|
29
|
+
labelId;
|
|
30
|
+
labelIdRules;
|
|
31
|
+
emails;
|
|
32
|
+
service;
|
|
33
|
+
calendarsList;
|
|
34
|
+
};
|
|
35
|
+
exports.Oauth = Oauth;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Oauth.prototype, "refresh_token", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Oauth.prototype, "access_token", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)("int"),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], Oauth.prototype, "expires_in", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Oauth.prototype, "userId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Oauth.prototype, "usergoogle_id", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], Oauth.prototype, "family_name", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], Oauth.prototype, "given_name", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Oauth.prototype, "email", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], Oauth.prototype, "picture", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], Oauth.prototype, "id_token", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], Oauth.prototype, "labelId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], Oauth.prototype, "labelIdRules", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.id),
|
|
86
|
+
__metadata("design:type", Array)
|
|
87
|
+
], Oauth.prototype, "emails", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.id),
|
|
90
|
+
__metadata("design:type", service_entity_1.ServiceThirdparty)
|
|
91
|
+
], Oauth.prototype, "service", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.OneToOne)(() => event_list_calendars_entity_1.EventListCalendars, (list) => list.oAuth),
|
|
94
|
+
(0, typeorm_1.JoinColumn)(),
|
|
95
|
+
__metadata("design:type", event_list_calendars_entity_1.EventListCalendars)
|
|
96
|
+
], Oauth.prototype, "calendarsList", void 0);
|
|
97
|
+
exports.Oauth = Oauth = __decorate([
|
|
98
|
+
(0, typeorm_1.Entity)()
|
|
99
|
+
], Oauth);
|
|
100
|
+
//# sourceMappingURL=oauth.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAqF;AACrF,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;IAI3B,aAAa,CAAqB;CACnC,CAAA;AA9CY,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;AAI3B;IAFC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,gDAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;IACxD,IAAA,oBAAU,GAAE;8BACE,gDAAkB;4CAAC;gBA7CvB,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CA8CjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { EmailThirdparty } from "./email.entity";
|
|
3
|
+
import { Oauth } from "./oauth.entity";
|
|
4
|
+
export declare class ServiceThirdparty extends EntityBase {
|
|
5
|
+
name: string;
|
|
6
|
+
emails: EmailThirdparty[];
|
|
7
|
+
oauth: Oauth[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.ServiceThirdparty = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const email_entity_1 = require("./email.entity");
|
|
16
|
+
const oauth_entity_1 = require("./oauth.entity");
|
|
17
|
+
let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.EntityBase {
|
|
18
|
+
name;
|
|
19
|
+
emails;
|
|
20
|
+
oauth;
|
|
21
|
+
};
|
|
22
|
+
exports.ServiceThirdparty = ServiceThirdparty;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ServiceThirdparty.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.service),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], ServiceThirdparty.prototype, "emails", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.OneToMany)(() => oauth_entity_1.Oauth, oauth => oauth.service),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], ServiceThirdparty.prototype, "oauth", void 0);
|
|
35
|
+
exports.ServiceThirdparty = ServiceThirdparty = __decorate([
|
|
36
|
+
(0, typeorm_1.Entity)()
|
|
37
|
+
], ServiceThirdparty);
|
|
38
|
+
//# sourceMappingURL=service.entity.js.map
|