easywork-common-lib 1.0.883 → 1.0.885
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/oauth.entity.d.ts +1 -1
- package/dist/entities/thirdparty/oauth.entity.js +1 -1
- package/dist/entities/thirdparty/oauth.entity.js.map +1 -1
- package/dist/entities/tools/calendar/calendar-external-item.entity.d.ts +38 -0
- package/dist/entities/tools/calendar/calendar-external-item.entity.js +115 -0
- package/dist/entities/tools/calendar/calendar-external-item.entity.js.map +1 -0
- package/dist/grpc/drive/drive.proto +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/helpers/user/access_history.entity.d.ts +0 -9
- package/dist/entities/helpers/user/access_history.entity.js +0 -58
- package/dist/entities/helpers/user/access_history.entity.js.map +0 -1
- package/dist/entities/policy/policy-details.entity.d.ts +0 -42
- package/dist/entities/policy/policy-details.entity.js +0 -380
- package/dist/entities/policy/policy-details.entity.js.map +0 -1
- package/dist/entities/thirdparty/email-config.entity.d.ts +0 -14
- package/dist/entities/thirdparty/email-config.entity.js +0 -76
- package/dist/entities/thirdparty/email-config.entity.js.map +0 -1
- package/dist/entities/thirdparty/email.entity.d.ts +0 -17
- package/dist/entities/thirdparty/email.entity.js +0 -79
- package/dist/entities/thirdparty/email.entity.js.map +0 -1
- package/dist/entities/thirdparty/service.entity.d.ts +0 -8
- package/dist/entities/thirdparty/service.entity.js +0 -38
- package/dist/entities/thirdparty/service.entity.js.map +0 -1
- package/dist/entities/thirdparty/user-email-relation.entity.d.ts +0 -7
- package/dist/entities/thirdparty/user-email-relation.entity.js +0 -35
- package/dist/entities/thirdparty/user-email-relation.entity.js.map +0 -1
- package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +0 -6
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +0 -32
- package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +0 -1
|
@@ -38,7 +38,7 @@ let Oauth = class Oauth extends base_entity_1.BaseEntityOnlyEssential {
|
|
|
38
38
|
};
|
|
39
39
|
exports.Oauth = Oauth;
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)(),
|
|
41
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], Oauth.prototype, "email", void 0);
|
|
44
44
|
__decorate([
|
|
@@ -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,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAIM,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qCAAuB;IAEhD,KAAK,
|
|
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,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAIM,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AE,UAAU,CAAC,CAAC;GACpC,KAAK,CA2BjB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
|
+
import { Oauth } from '../../thirdparty/oauth.entity';
|
|
3
|
+
import { User } from '../../user.entity';
|
|
4
|
+
import { CalendarItem } from './calendar-item.entity';
|
|
5
|
+
export declare enum CalendarProvider {
|
|
6
|
+
GOOGLE = "google",
|
|
7
|
+
ICLOUD = "icloud",
|
|
8
|
+
MICROSOFT = "microsoft"
|
|
9
|
+
}
|
|
10
|
+
export declare class CalendarExternalItem extends BaseEntityOnlyEssential {
|
|
11
|
+
calendarId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
isPrimary: boolean;
|
|
15
|
+
timeZone: string;
|
|
16
|
+
accessRole?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
defaultReminders?: {
|
|
20
|
+
method: string;
|
|
21
|
+
minutes: number;
|
|
22
|
+
}[];
|
|
23
|
+
conferenceProperties?: {
|
|
24
|
+
allowedConferenceSolutionTypes: string[];
|
|
25
|
+
};
|
|
26
|
+
notificationSettings?: {
|
|
27
|
+
notifications: {
|
|
28
|
+
type: string;
|
|
29
|
+
method: string;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
ownerName?: string;
|
|
33
|
+
ownerEmail?: string;
|
|
34
|
+
provider: CalendarProvider;
|
|
35
|
+
calendar: CalendarItem;
|
|
36
|
+
oauth: Oauth;
|
|
37
|
+
user: User;
|
|
38
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.CalendarExternalItem = exports.CalendarProvider = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
15
|
+
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
const calendar_item_entity_1 = require("./calendar-item.entity");
|
|
18
|
+
var CalendarProvider;
|
|
19
|
+
(function (CalendarProvider) {
|
|
20
|
+
CalendarProvider["GOOGLE"] = "google";
|
|
21
|
+
CalendarProvider["ICLOUD"] = "icloud";
|
|
22
|
+
CalendarProvider["MICROSOFT"] = "microsoft";
|
|
23
|
+
})(CalendarProvider || (exports.CalendarProvider = CalendarProvider = {}));
|
|
24
|
+
let CalendarExternalItem = class CalendarExternalItem extends base_entity_1.BaseEntityOnlyEssential {
|
|
25
|
+
calendarId;
|
|
26
|
+
name;
|
|
27
|
+
description;
|
|
28
|
+
isPrimary;
|
|
29
|
+
timeZone;
|
|
30
|
+
accessRole;
|
|
31
|
+
color;
|
|
32
|
+
selected;
|
|
33
|
+
defaultReminders;
|
|
34
|
+
conferenceProperties;
|
|
35
|
+
notificationSettings;
|
|
36
|
+
ownerName;
|
|
37
|
+
ownerEmail;
|
|
38
|
+
provider;
|
|
39
|
+
calendar;
|
|
40
|
+
oauth;
|
|
41
|
+
user;
|
|
42
|
+
};
|
|
43
|
+
exports.CalendarExternalItem = CalendarExternalItem;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', unique: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CalendarExternalItem.prototype, "calendarId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CalendarExternalItem.prototype, "name", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CalendarExternalItem.prototype, "description", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], CalendarExternalItem.prototype, "isPrimary", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CalendarExternalItem.prototype, "timeZone", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CalendarExternalItem.prototype, "accessRole", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CalendarExternalItem.prototype, "color", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], CalendarExternalItem.prototype, "selected", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], CalendarExternalItem.prototype, "defaultReminders", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], CalendarExternalItem.prototype, "conferenceProperties", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], CalendarExternalItem.prototype, "notificationSettings", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], CalendarExternalItem.prototype, "ownerName", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], CalendarExternalItem.prototype, "ownerEmail", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CalendarProvider }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], CalendarExternalItem.prototype, "provider", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.ManyToOne)(() => calendar_item_entity_1.CalendarItem, { nullable: false, onDelete: 'CASCADE' }),
|
|
102
|
+
__metadata("design:type", calendar_item_entity_1.CalendarItem)
|
|
103
|
+
], CalendarExternalItem.prototype, "calendar", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, { nullable: false, onDelete: 'CASCADE' }),
|
|
106
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
107
|
+
], CalendarExternalItem.prototype, "oauth", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
110
|
+
__metadata("design:type", user_entity_1.User)
|
|
111
|
+
], CalendarExternalItem.prototype, "user", void 0);
|
|
112
|
+
exports.CalendarExternalItem = CalendarExternalItem = __decorate([
|
|
113
|
+
(0, typeorm_1.Entity)()
|
|
114
|
+
], CalendarExternalItem);
|
|
115
|
+
//# sourceMappingURL=calendar-external-item.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-external-item.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-external-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,sEAA+E;AAC/E,gEAAsD;AACtD,mDAAyC;AACzC,iEAAsD;AAEtD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,qCAAuB;IAE/D,UAAU,CAAS;IAGnB,IAAI,CAAS;IAGb,WAAW,CAAU;IAGrB,SAAS,CAAU;IAGnB,QAAQ,CAAS;IAGjB,UAAU,CAAU;IAGpB,KAAK,CAAU;IAGf,QAAQ,CAAU;IAGlB,gBAAgB,CAAyC;IAGzD,oBAAoB,CAAgD;IAGpE,oBAAoB,CAAyD;IAI7E,SAAS,CAAU;IAGnB,UAAU,CAAU;IAGpB,QAAQ,CAAmB;IAG3B,QAAQ,CAAe;IAGvB,KAAK,CAAQ;IAGb,IAAI,CAAO;CACZ,CAAA;AApDY,oDAAoB;AAE/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wDACvB;AAGnB;IADC,IAAA,gBAAM,GAAE;;kDACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uDACR;AAGnB;IADC,IAAA,gBAAM,GAAE;;sDACQ;AAGjB;IADC,IAAA,g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AA,gBAAM,GAAE;GACI,oBAAoB,CAoDhC"}
|
|
@@ -255,7 +255,7 @@ service DriveService {
|
|
|
255
255
|
rpc CreateFolders(CreateFolderBulkRequest) returns (CreateFolderBulkResponse);
|
|
256
256
|
|
|
257
257
|
// Copia un archivo
|
|
258
|
-
rpc CopyFile(CopyFileRequest) returns (CopyFileResponse)
|
|
258
|
+
rpc CopyFile(CopyFileRequest) returns (CopyFileResponse);
|
|
259
259
|
|
|
260
260
|
// Crea un archivo.
|
|
261
261
|
rpc CreateFile(CreateFileRequest) returns (CreateFileResponse);
|