easywork-common-lib 1.0.779 → 1.0.781

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.
@@ -0,0 +1,9 @@
1
+ import { EntityBase } from '../common/database/base.entity';
2
+ export declare class GoogleOAuthCredentials extends EntityBase {
3
+ email: string;
4
+ accessToken: string;
5
+ refreshToken: string;
6
+ tokenExpiry: Date;
7
+ clientId: string;
8
+ clientSecret: string;
9
+ }
@@ -0,0 +1,51 @@
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.GoogleOAuthCredentials = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const base_entity_1 = require("../common/database/base.entity");
15
+ let GoogleOAuthCredentials = class GoogleOAuthCredentials extends base_entity_1.EntityBase {
16
+ email;
17
+ accessToken;
18
+ refreshToken;
19
+ tokenExpiry;
20
+ clientId;
21
+ clientSecret;
22
+ };
23
+ exports.GoogleOAuthCredentials = GoogleOAuthCredentials;
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ unique: true }),
26
+ __metadata("design:type", String)
27
+ ], GoogleOAuthCredentials.prototype, "email", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'text' }),
30
+ __metadata("design:type", String)
31
+ ], GoogleOAuthCredentials.prototype, "accessToken", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'text' }),
34
+ __metadata("design:type", String)
35
+ ], GoogleOAuthCredentials.prototype, "refreshToken", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'timestamp' }),
38
+ __metadata("design:type", Date)
39
+ ], GoogleOAuthCredentials.prototype, "tokenExpiry", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'text' }),
42
+ __metadata("design:type", String)
43
+ ], GoogleOAuthCredentials.prototype, "clientId", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'text' }),
46
+ __metadata("design:type", String)
47
+ ], GoogleOAuthCredentials.prototype, "clientSecret", void 0);
48
+ exports.GoogleOAuthCredentials = GoogleOAuthCredentials = __decorate([
49
+ (0, typeorm_1.Entity)()
50
+ ], GoogleOAuthCredentials);
51
+ //# sourceMappingURL=google-oauth-credentials.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-oauth-credentials.entity.js","sourceRoot":"","sources":["../../src/entities/google-oauth-credentials.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,gEAA4D;AAIrD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,wBAAU;IAEpD,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,YAAY,CAAS;IAGrB,WAAW,CAAO;IAGlB,QAAQ,CAAS;IAGjB,YAAY,CAAS;CAStB,CAAA;AA1BY,wDAAsB;AAEjC;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qDACX;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2DACL;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACJ;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACjB,IAAI;2DAAC;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACR;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;4DACJ;iCAjBV,sBAAsB;IADlC,IAAA,gBAAM,GAAE;GACI,sBAAsB,CA0BlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.779",
3
+ "version": "1.0.781",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {