easywork-common-lib 1.0.885 → 1.0.887
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/thirdparty/google-webhooks-config.entity.d.ts +5 -0
- package/dist/entities/thirdparty/google-webhooks-config.entity.js +13 -3
- package/dist/entities/thirdparty/google-webhooks-config.entity.js.map +1 -1
- package/dist/entities/thirdparty/oauth.entity.d.ts +1 -0
- package/dist/entities/thirdparty/oauth.entity.js +1 -0
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Oauth } from './oauth.entity';
|
|
2
2
|
import { User } from '../user.entity';
|
|
3
|
+
export declare enum WebhookServiceType {
|
|
4
|
+
Gmail = "gmail",
|
|
5
|
+
GoogleCalendar = "google-calendar"
|
|
6
|
+
}
|
|
3
7
|
export declare class GoogleWebhooksConfig {
|
|
4
8
|
channelId: string;
|
|
5
9
|
resourceId: string;
|
|
@@ -7,6 +11,7 @@ export declare class GoogleWebhooksConfig {
|
|
|
7
11
|
expiration: number;
|
|
8
12
|
active: boolean;
|
|
9
13
|
syncToken?: string;
|
|
14
|
+
type: WebhookServiceType;
|
|
10
15
|
createdAt?: Date;
|
|
11
16
|
updatedAt?: Date;
|
|
12
17
|
oauth: Oauth;
|
|
@@ -9,10 +9,15 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.GoogleWebhooksConfig = void 0;
|
|
12
|
+
exports.GoogleWebhooksConfig = exports.WebhookServiceType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const oauth_entity_1 = require("./oauth.entity");
|
|
15
15
|
const user_entity_1 = require("../user.entity");
|
|
16
|
+
var WebhookServiceType;
|
|
17
|
+
(function (WebhookServiceType) {
|
|
18
|
+
WebhookServiceType["Gmail"] = "gmail";
|
|
19
|
+
WebhookServiceType["GoogleCalendar"] = "google-calendar";
|
|
20
|
+
})(WebhookServiceType || (exports.WebhookServiceType = WebhookServiceType = {}));
|
|
16
21
|
let GoogleWebhooksConfig = class GoogleWebhooksConfig {
|
|
17
22
|
channelId;
|
|
18
23
|
resourceId;
|
|
@@ -20,6 +25,7 @@ let GoogleWebhooksConfig = class GoogleWebhooksConfig {
|
|
|
20
25
|
expiration;
|
|
21
26
|
active;
|
|
22
27
|
syncToken;
|
|
28
|
+
type;
|
|
23
29
|
createdAt;
|
|
24
30
|
updatedAt;
|
|
25
31
|
oauth;
|
|
@@ -31,11 +37,11 @@ __decorate([
|
|
|
31
37
|
__metadata("design:type", String)
|
|
32
38
|
], GoogleWebhooksConfig.prototype, "channelId", void 0);
|
|
33
39
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)(),
|
|
40
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
35
41
|
__metadata("design:type", String)
|
|
36
42
|
], GoogleWebhooksConfig.prototype, "resourceId", void 0);
|
|
37
43
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)(),
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
39
45
|
__metadata("design:type", String)
|
|
40
46
|
], GoogleWebhooksConfig.prototype, "notificationUrl", void 0);
|
|
41
47
|
__decorate([
|
|
@@ -50,6 +56,10 @@ __decorate([
|
|
|
50
56
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
57
|
__metadata("design:type", String)
|
|
52
58
|
], GoogleWebhooksConfig.prototype, "syncToken", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: WebhookServiceType }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], GoogleWebhooksConfig.prototype, "type", void 0);
|
|
53
63
|
__decorate([
|
|
54
64
|
(0, typeorm_1.CreateDateColumn)(),
|
|
55
65
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-webhooks-config.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/google-webhooks-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;AACvG,iDAAuC;AACvC,gDAAsC;
|
|
1
|
+
{"version":3,"file":"google-webhooks-config.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/google-webhooks-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;AACvG,iDAAuC;AACvC,gDAAsC;AAEtC,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,wDAAkC,CAAA;AACpC,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAGM,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,IAAI,CAAqB;IAGzB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,KAAK,CAAQ;IAGb,IAAI,CAAO;CACZ,CAAA;AAjCY,oDAAoB;AAE/B;IADC,IAAA,uBAAa,EAAC,MAAM,CAAC;;uDACJ;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACH;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,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;kDAC1B;AAGzB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,oBAAK;mDAAC;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;kDAAC;+BAhCA,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CAiChC"}
|
|
@@ -22,6 +22,7 @@ var OAuthProvider;
|
|
|
22
22
|
var OAuthServiceType;
|
|
23
23
|
(function (OAuthServiceType) {
|
|
24
24
|
OAuthServiceType["Profile"] = "profile";
|
|
25
|
+
OAuthServiceType["EmailAddress"] = "email";
|
|
25
26
|
OAuthServiceType["Calendar"] = "calendar";
|
|
26
27
|
OAuthServiceType["Mail"] = "mail";
|
|
27
28
|
})(OAuthServiceType || (exports.OAuthServiceType = OAuthServiceType = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth.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,
|
|
1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