easywork-common-lib 1.0.886 → 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.
@@ -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;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,CAAQ;IAGb,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,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;+BA7BA,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CA8BhC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.886",
3
+ "version": "1.0.887",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {