easywork-common-lib 1.0.788 → 1.0.790
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 +1 -0
- package/dist/entities/index.js +1 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/third-party/google-calendar-config.entity.d.ts +3 -1
- package/dist/entities/third-party/google-calendar-config.entity.js +11 -5
- package/dist/entities/third-party/google-calendar-config.entity.js.map +1 -1
- 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/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/entities/index.d.ts
CHANGED
package/dist/entities/index.js
CHANGED
|
@@ -50,4 +50,5 @@ __exportStar(require("./policy"), exports);
|
|
|
50
50
|
__exportStar(require("./google-oauth-credentials.entity"), exports);
|
|
51
51
|
__exportStar(require("./third-party/google-calendar-config.entity"), exports);
|
|
52
52
|
__exportStar(require("./third-party/oauth-v2.entity"), exports);
|
|
53
|
+
__exportStar(require("./third-party/google-webhooks-config.entity"), exports);
|
|
53
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,iDAA+B;AAC/B,+DAA6C;AAC7C,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,oEAAkD;AAClD,2EAAyD;AACzD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B;AAC9B,+EAA6D;AAC7D,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,yDAAuC;AACvC,2CAAyB;AACzB,oEAAkD;AAClD,8EAA4D;AAC5D,gEAA8C"}
|
|
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,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,oEAAkD;AAClD,2EAAyD;AACzD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B;AAC9B,+EAA6D;AAC7D,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,yDAAuC;AACvC,2CAAyB;AACzB,oEAAkD;AAClD,8EAA4D;AAC5D,gEAA8C;AAC9C,8EAA4D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OauthV2 } from './oauth-v2.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
2
3
|
export declare class GoogleCalendarConfig {
|
|
3
4
|
id: string;
|
|
4
|
-
oauth: OauthV2;
|
|
5
5
|
name: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
isPrimary: boolean;
|
|
@@ -25,4 +25,6 @@ export declare class GoogleCalendarConfig {
|
|
|
25
25
|
};
|
|
26
26
|
createdAt?: Date;
|
|
27
27
|
updatedAt?: Date;
|
|
28
|
+
oauth: OauthV2;
|
|
29
|
+
user: User;
|
|
28
30
|
}
|
|
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.GoogleCalendarConfig = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const oauth_v2_entity_1 = require("./oauth-v2.entity");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
15
16
|
let GoogleCalendarConfig = class GoogleCalendarConfig {
|
|
16
17
|
id;
|
|
17
|
-
oauth;
|
|
18
18
|
name;
|
|
19
19
|
description;
|
|
20
20
|
isPrimary;
|
|
@@ -28,16 +28,14 @@ let GoogleCalendarConfig = class GoogleCalendarConfig {
|
|
|
28
28
|
notificationSettings;
|
|
29
29
|
createdAt;
|
|
30
30
|
updatedAt;
|
|
31
|
+
oauth;
|
|
32
|
+
user;
|
|
31
33
|
};
|
|
32
34
|
exports.GoogleCalendarConfig = GoogleCalendarConfig;
|
|
33
35
|
__decorate([
|
|
34
36
|
(0, typeorm_1.PrimaryColumn)(),
|
|
35
37
|
__metadata("design:type", String)
|
|
36
38
|
], GoogleCalendarConfig.prototype, "id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, typeorm_1.ManyToOne)(() => oauth_v2_entity_1.OauthV2, { nullable: false, onDelete: 'CASCADE' }),
|
|
39
|
-
__metadata("design:type", oauth_v2_entity_1.OauthV2)
|
|
40
|
-
], GoogleCalendarConfig.prototype, "oauth", void 0);
|
|
41
39
|
__decorate([
|
|
42
40
|
(0, typeorm_1.Column)(),
|
|
43
41
|
__metadata("design:type", String)
|
|
@@ -90,6 +88,14 @@ __decorate([
|
|
|
90
88
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
91
89
|
__metadata("design:type", Date)
|
|
92
90
|
], GoogleCalendarConfig.prototype, "updatedAt", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.ManyToOne)(() => oauth_v2_entity_1.OauthV2, { nullable: false, onDelete: 'CASCADE' }),
|
|
93
|
+
__metadata("design:type", oauth_v2_entity_1.OauthV2)
|
|
94
|
+
], GoogleCalendarConfig.prototype, "oauth", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
97
|
+
__metadata("design:type", user_entity_1.User)
|
|
98
|
+
], GoogleCalendarConfig.prototype, "user", void 0);
|
|
93
99
|
exports.GoogleCalendarConfig = GoogleCalendarConfig = __decorate([
|
|
94
100
|
(0, typeorm_1.Entity)()
|
|
95
101
|
], GoogleCalendarConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-calendar-config.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/google-calendar-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;AACvG,uDAA4C;
|
|
1
|
+
{"version":3,"file":"google-calendar-config.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/google-calendar-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;AACvG,uDAA4C;AAC5C,gDAAsC;AAG/B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,WAAW,CAAU;IAGrB,SAAS,CAAU;IAGnB,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,eAAe,CAAU;IAGzB,eAAe,CAAU;IAGzB,QAAQ,CAAU;IAGlB,gBAAgB,CAAyC;IAGzD,oBAAoB,CAAgD;IAGpE,oBAAoB,CAAyD;IAG7E,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,KAAK,CAAU;IAGf,IAAI,CAAO;CACZ,CAAA;AAhDY,oDAAoB;AAE/B;IADC,IAAA,uBAAa,GAAE;;gDACL;AAGX;IADC,IAAA,gBAAM,GAAE;;kDACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACN;AAGrB;IADC,I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
|
+
export declare class GoogleWebhooksConfig {
|
|
4
|
+
channelId: string;
|
|
5
|
+
resourceId: string;
|
|
6
|
+
notificationUrl: string;
|
|
7
|
+
expiration: number;
|
|
8
|
+
active: boolean;
|
|
9
|
+
syncToken?: string;
|
|
10
|
+
oauth: OauthV2;
|
|
11
|
+
user: User;
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
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
|
+
oauth;
|
|
24
|
+
user;
|
|
25
|
+
createdAt;
|
|
26
|
+
updatedAt;
|
|
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)({ unique: true }),
|
|
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.OneToOne)(() => oauth_v2_entity_1.OauthV2, { nullable: false, onDelete: 'CASCADE' }),
|
|
55
|
+
__metadata("design:type", oauth_v2_entity_1.OauthV2)
|
|
56
|
+
], GoogleWebhooksConfig.prototype, "oauth", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
59
|
+
__metadata("design:type", user_entity_1.User)
|
|
60
|
+
], GoogleWebhooksConfig.prototype, "user", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], GoogleWebhooksConfig.prototype, "createdAt", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], GoogleWebhooksConfig.prototype, "updatedAt", 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,KAAK,CAAU;IAGf,IAAI,CAAO;IAGX,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AA9BY,oDAAoB;AAE/B;IADC,IAAA,uBAAa,EAAC,MAAM,CAAC;;uDACJ;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wDACN;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,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