easywork-common-lib 1.0.914 → 1.0.917

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.
Files changed (38) hide show
  1. package/dist/entities/index.d.ts +36 -35
  2. package/dist/entities/index.js +1 -0
  3. package/dist/entities/index.js.map +1 -1
  4. package/dist/entities/thirdparty/google-gmail-watch-record.entity.d.ts +16 -0
  5. package/dist/entities/thirdparty/google-gmail-watch-record.entity.js +132 -0
  6. package/dist/entities/thirdparty/google-gmail-watch-record.entity.js.map +1 -0
  7. package/package.json +1 -1
  8. package/tsconfig.tsbuildinfo +1 -1
  9. package/dist/entities/helpers/user/access_history.entity.d.ts +0 -9
  10. package/dist/entities/helpers/user/access_history.entity.js +0 -58
  11. package/dist/entities/helpers/user/access_history.entity.js.map +0 -1
  12. package/dist/entities/policy/policy-details.entity.d.ts +0 -42
  13. package/dist/entities/policy/policy-details.entity.js +0 -380
  14. package/dist/entities/policy/policy-details.entity.js.map +0 -1
  15. package/dist/entities/sales/receipt-sub-agente.entity.d.ts +0 -5
  16. package/dist/entities/sales/receipt-sub-agente.entity.js +0 -35
  17. package/dist/entities/sales/receipt-sub-agente.entity.js.map +0 -1
  18. package/dist/entities/thirdparty/email-config.entity.d.ts +0 -14
  19. package/dist/entities/thirdparty/email-config.entity.js +0 -76
  20. package/dist/entities/thirdparty/email-config.entity.js.map +0 -1
  21. package/dist/entities/thirdparty/email.entity.d.ts +0 -17
  22. package/dist/entities/thirdparty/email.entity.js +0 -79
  23. package/dist/entities/thirdparty/email.entity.js.map +0 -1
  24. package/dist/entities/thirdparty/service.entity.d.ts +0 -8
  25. package/dist/entities/thirdparty/service.entity.js +0 -38
  26. package/dist/entities/thirdparty/service.entity.js.map +0 -1
  27. package/dist/entities/thirdparty/user-email-relation.entity.d.ts +0 -7
  28. package/dist/entities/thirdparty/user-email-relation.entity.js +0 -35
  29. package/dist/entities/thirdparty/user-email-relation.entity.js.map +0 -1
  30. package/dist/entities/tools/calendar/calendar-list.entity.d.ts +0 -36
  31. package/dist/entities/tools/calendar/calendar-list.entity.js +0 -109
  32. package/dist/entities/tools/calendar/calendar-list.entity.js.map +0 -1
  33. package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +0 -6
  34. package/dist/entities/tools/calendar/event-list-calendars.entity.js +0 -32
  35. package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +0 -1
  36. package/dist/entities/tools/mail/mailbox-signatures.entity.d.ts +0 -6
  37. package/dist/entities/tools/mail/mailbox-signatures.entity.js +0 -34
  38. package/dist/entities/tools/mail/mailbox-signatures.entity.js.map +0 -1
@@ -1,35 +1,36 @@
1
- export * from "./app_config/app-config.entity";
2
- export * from "./currency.entity";
3
- export * from "./drive";
4
- export * from "./easyapp/filter-view.entity";
5
- export * from "./email.entity";
6
- export * from "./group.entity";
7
- export * from "./imap-config.entity";
8
- export * from "./login-history.entity";
9
- export * from "./meeting-comment.entity";
10
- export * from "./meeting.entity";
11
- export * from "./menu-permissions.entity";
12
- export * from "./notifications";
13
- export * from "./otp-log.entity";
14
- export * from "./permission.entity";
15
- export * from "./phone.entity";
16
- export * from "./policy";
17
- export * from "./profile.entity";
18
- export * from "./protocol.entity";
19
- export * from "./refresh-token.entity";
20
- export * from "./role.entity";
21
- export * from "./sales";
22
- export * from "./tag.entity";
23
- export * from "./user-invitations.entity";
24
- export * from "./user.entity";
25
- export * from "./capacitation";
26
- export * from "./tools";
27
- export * from "./tools/mail/email-signature.entity";
28
- export * from "./tools/mail/mailbox-user-access.entity";
29
- export * from "./tools/mail/mailbox.entity";
30
- export * from "./tools/mail/mail.entity";
31
- export * from "./thirdparty/google-webhooks-config.entity";
32
- export * from "./thirdparty/oauth.entity";
33
- export * from "./helpers";
34
- export * from "./audit.entity";
35
- export * from "./user-change-log.entity";
1
+ export * from './app_config/app-config.entity';
2
+ export * from './currency.entity';
3
+ export * from './drive';
4
+ export * from './easyapp/filter-view.entity';
5
+ export * from './email.entity';
6
+ export * from './group.entity';
7
+ export * from './imap-config.entity';
8
+ export * from './login-history.entity';
9
+ export * from './meeting-comment.entity';
10
+ export * from './meeting.entity';
11
+ export * from './menu-permissions.entity';
12
+ export * from './notifications';
13
+ export * from './otp-log.entity';
14
+ export * from './permission.entity';
15
+ export * from './phone.entity';
16
+ export * from './policy';
17
+ export * from './profile.entity';
18
+ export * from './protocol.entity';
19
+ export * from './refresh-token.entity';
20
+ export * from './role.entity';
21
+ export * from './sales';
22
+ export * from './tag.entity';
23
+ export * from './user-invitations.entity';
24
+ export * from './user.entity';
25
+ export * from './capacitation';
26
+ export * from './tools';
27
+ export * from './tools/mail/email-signature.entity';
28
+ export * from './tools/mail/mailbox-user-access.entity';
29
+ export * from './tools/mail/mailbox.entity';
30
+ export * from './tools/mail/mail.entity';
31
+ export * from './thirdparty/google-webhooks-config.entity';
32
+ export * from './thirdparty/google-gmail-watch-record.entity';
33
+ export * from './thirdparty/oauth.entity';
34
+ export * from './helpers';
35
+ export * from './audit.entity';
36
+ export * from './user-change-log.entity';
@@ -45,6 +45,7 @@ __exportStar(require("./tools/mail/mailbox-user-access.entity"), exports);
45
45
  __exportStar(require("./tools/mail/mailbox.entity"), exports);
46
46
  __exportStar(require("./tools/mail/mail.entity"), exports);
47
47
  __exportStar(require("./thirdparty/google-webhooks-config.entity"), exports);
48
+ __exportStar(require("./thirdparty/google-gmail-watch-record.entity"), exports);
48
49
  __exportStar(require("./thirdparty/oauth.entity"), exports);
49
50
  __exportStar(require("./helpers"), exports);
50
51
  __exportStar(require("./audit.entity"), exports);
@@ -1 +1 @@
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,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,4DAA0C;AAC1C,gDAA8B;AAG9B,iDAA+B;AAG/B,0CAAwB;AAGxB,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AAGzC,6EAA2D;AAC3D,4DAA0C;AAG1C,4CAA0B;AAG1B,iDAA+B;AAG/B,2DAAyC"}
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,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,4DAA0C;AAC1C,gDAA8B;AAG9B,iDAA+B;AAG/B,0CAAwB;AAGxB,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AAGzC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAG1C,4CAA0B;AAG1B,iDAA+B;AAG/B,2DAAyC"}
@@ -0,0 +1,16 @@
1
+ import { GoogleWebhooksConfig } from './google-webhooks-config.entity';
2
+ import { Mailbox } from '../tools/mail/mailbox.entity';
3
+ export declare class GoogleGmailWatchRecord {
4
+ id: number;
5
+ emailAddress: string;
6
+ lastProcessedHistoryId: string | null;
7
+ pubsubTopic: string | null;
8
+ pubsubSubscription: string | null;
9
+ watchEnabled: boolean;
10
+ lastNotificationReceivedAt: Date | null;
11
+ lastHistorySyncAt: Date | null;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ mailbox: Mailbox;
15
+ webhook: GoogleWebhooksConfig;
16
+ }
@@ -0,0 +1,132 @@
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.GoogleGmailWatchRecord = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const google_webhooks_config_entity_1 = require("./google-webhooks-config.entity");
16
+ const mailbox_entity_1 = require("../tools/mail/mailbox.entity");
17
+ let GoogleGmailWatchRecord = class GoogleGmailWatchRecord {
18
+ id;
19
+ emailAddress;
20
+ lastProcessedHistoryId;
21
+ pubsubTopic;
22
+ pubsubSubscription;
23
+ watchEnabled;
24
+ lastNotificationReceivedAt;
25
+ lastHistorySyncAt;
26
+ createdAt;
27
+ updatedAt;
28
+ mailbox;
29
+ webhook;
30
+ };
31
+ exports.GoogleGmailWatchRecord = GoogleGmailWatchRecord;
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({
34
+ description: 'Identificador único del registro de vigilancia.',
35
+ example: 'axcxcbsdfdsfa',
36
+ readOnly: true,
37
+ }),
38
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
39
+ __metadata("design:type", Number)
40
+ ], GoogleGmailWatchRecord.prototype, "id", void 0);
41
+ __decorate([
42
+ (0, swagger_1.ApiProperty)({
43
+ description: 'Dirección de correo electrónico de Gmail asociada a este registro de vigilancia.',
44
+ example: 'usuario@gmail.com',
45
+ required: true,
46
+ }),
47
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
48
+ __metadata("design:type", String)
49
+ ], GoogleGmailWatchRecord.prototype, "emailAddress", void 0);
50
+ __decorate([
51
+ (0, swagger_1.ApiProperty)({
52
+ description: 'El último historyId procesado exitosamente para este usuario. Se usa como startHistoryId en las llamadas a la API history.list de Gmail.',
53
+ example: '74518',
54
+ nullable: true,
55
+ }),
56
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], GoogleGmailWatchRecord.prototype, "lastProcessedHistoryId", void 0);
59
+ __decorate([
60
+ (0, swagger_1.ApiProperty)({
61
+ description: 'Nombre del topic de Pub/Sub asociado a esta vigilancia.',
62
+ example: 'projects/my-project/topics/gmail-notifications',
63
+ nullable: true,
64
+ }),
65
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
66
+ __metadata("design:type", String)
67
+ ], GoogleGmailWatchRecord.prototype, "pubsubTopic", void 0);
68
+ __decorate([
69
+ (0, swagger_1.ApiProperty)({
70
+ description: 'Nombre de la suscripción de Pub/Sub asociada a esta vigilancia.',
71
+ example: 'projects/my-project/subscriptions/gmail-subscription',
72
+ nullable: true,
73
+ }),
74
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
75
+ __metadata("design:type", String)
76
+ ], GoogleGmailWatchRecord.prototype, "pubsubSubscription", void 0);
77
+ __decorate([
78
+ (0, swagger_1.ApiProperty)({
79
+ description: 'Indica si la vigilancia de Gmail está activa para este usuario.',
80
+ example: true,
81
+ }),
82
+ (0, typeorm_1.Column)({ type: 'boolean', default: true }),
83
+ __metadata("design:type", Boolean)
84
+ ], GoogleGmailWatchRecord.prototype, "watchEnabled", void 0);
85
+ __decorate([
86
+ (0, swagger_1.ApiProperty)({
87
+ description: 'Fecha y hora de la última notificación de Pub/Sub recibida para este usuario.',
88
+ example: '2023-10-27T10:00:00Z',
89
+ nullable: true,
90
+ }),
91
+ (0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
92
+ __metadata("design:type", Date)
93
+ ], GoogleGmailWatchRecord.prototype, "lastNotificationReceivedAt", void 0);
94
+ __decorate([
95
+ (0, swagger_1.ApiProperty)({
96
+ description: 'Fecha y hora de la última vez que se sincronizó y procesó el historial de Gmail para este usuario.',
97
+ example: '2023-10-27T10:05:00Z',
98
+ nullable: true,
99
+ }),
100
+ (0, typeorm_1.Column)({ type: 'timestamp', nullable: true }),
101
+ __metadata("design:type", Date)
102
+ ], GoogleGmailWatchRecord.prototype, "lastHistorySyncAt", void 0);
103
+ __decorate([
104
+ (0, swagger_1.ApiProperty)({
105
+ description: 'Fecha y hora de creación del registro.',
106
+ example: '2023-10-27T09:00:00Z',
107
+ readOnly: true,
108
+ }),
109
+ (0, typeorm_1.CreateDateColumn)({ type: 'timestamp' }),
110
+ __metadata("design:type", Date)
111
+ ], GoogleGmailWatchRecord.prototype, "createdAt", void 0);
112
+ __decorate([
113
+ (0, swagger_1.ApiProperty)({
114
+ description: 'Fecha y hora de la última actualización del registro.',
115
+ example: '2023-10-27T10:05:00Z',
116
+ readOnly: true,
117
+ }),
118
+ (0, typeorm_1.UpdateDateColumn)({ type: 'timestamp' }),
119
+ __metadata("design:type", Date)
120
+ ], GoogleGmailWatchRecord.prototype, "updatedAt", void 0);
121
+ __decorate([
122
+ (0, typeorm_1.ManyToOne)(() => mailbox_entity_1.Mailbox, { onDelete: 'CASCADE' }),
123
+ __metadata("design:type", mailbox_entity_1.Mailbox)
124
+ ], GoogleGmailWatchRecord.prototype, "mailbox", void 0);
125
+ __decorate([
126
+ (0, typeorm_1.ManyToOne)(() => google_webhooks_config_entity_1.GoogleWebhooksConfig, { onDelete: 'CASCADE' }),
127
+ __metadata("design:type", google_webhooks_config_entity_1.GoogleWebhooksConfig)
128
+ ], GoogleGmailWatchRecord.prototype, "webhook", void 0);
129
+ exports.GoogleGmailWatchRecord = GoogleGmailWatchRecord = __decorate([
130
+ (0, typeorm_1.Entity)()
131
+ ], GoogleGmailWatchRecord);
132
+ //# sourceMappingURL=google-gmail-watch-record.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-gmail-watch-record.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/google-gmail-watch-record.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qCAAgH;AAChH,6CAA8C;AAC9C,mFAAuE;AACvE,iEAAuD;AAQhD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAOjC,EAAE,CAAS;IAQX,YAAY,CAAS;IAQrB,sBAAsB,CAAgB;IAQtC,WAAW,CAAgB;IAQ3B,kBAAkB,CAAgB;IAOlC,YAAY,CAAU;IAQtB,0BAA0B,CAAc;IAQxC,iBAAiB,CAAc;IAQ/B,SAAS,CAAO;IAQhB,SAAS,CAAO;IAIhB,OAAO,CAAU;IAGjB,OAAO,CAAuB;CAC/B,CAAA;AAtFY,wDAAsB;AAOjC;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,iDAAiD;QAC9D,OAAO,EAAE,eAAe;QACxB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,gCAAsB,EAAC,MAAM,CAAC;;kDACpB;AAQX;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kFAAkF;QAC/F,OAAO,EAAE,mBAAmB;QAC5B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;4DACpB;AAQrB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,0IAA0I;QACvJ,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,IAAI;KAC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,IAAI;iEAAQ;AAQ/B;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,sBAAsB;QAC/B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC7B,IAAI;yDAAC;AAQhB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,sBAAsB;QAC/B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC7B,IAAI;yDAAC;AAIhB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzC,wBAAO;uDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oDAAoB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACtD,oDAAoB;uDAAC;iCArFnB,sBAAsB;IADlC,IAAA,gBAAM,GAAE;GACI,sBAAsB,CAsFlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.914",
3
+ "version": "1.0.917",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {