easywork-common-lib 1.0.838 → 1.0.840

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 (35) hide show
  1. package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
  2. package/dist/entities/helpers/user/access_history.entity.js +58 -0
  3. package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
  4. package/dist/entities/index.d.ts +0 -5
  5. package/dist/entities/index.js +0 -5
  6. package/dist/entities/index.js.map +1 -1
  7. package/dist/entities/policy/policy-details.entity.d.ts +42 -0
  8. package/dist/entities/policy/policy-details.entity.js +380 -0
  9. package/dist/entities/policy/policy-details.entity.js.map +1 -0
  10. package/dist/entities/role.entity.d.ts +4 -0
  11. package/dist/entities/role.entity.js +45 -1
  12. package/dist/entities/role.entity.js.map +1 -1
  13. package/dist/entities/thirdparty/google-webhooks-config.entity.d.ts +2 -2
  14. package/dist/entities/thirdparty/google-webhooks-config.entity.js +3 -3
  15. package/dist/entities/thirdparty/google-webhooks-config.entity.js.map +1 -1
  16. package/dist/entities/thirdparty/oauth.entity.d.ts +21 -19
  17. package/dist/entities/thirdparty/oauth.entity.js +42 -62
  18. package/dist/entities/thirdparty/oauth.entity.js.map +1 -1
  19. package/dist/entities/tools/calendar/calendar-list.entity.d.ts +2 -2
  20. package/dist/entities/tools/calendar/calendar-list.entity.js +3 -3
  21. package/dist/entities/tools/calendar/calendar-list.entity.js.map +1 -1
  22. package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +2 -2
  23. package/dist/entities/tools/calendar/event-list-calendars.entity.js +2 -2
  24. package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -1
  25. package/dist/entities/tools/mail/mailbox.entity.d.ts +2 -2
  26. package/dist/entities/tools/mail/mailbox.entity.js +3 -3
  27. package/dist/entities/tools/mail/mailbox.entity.js.map +1 -1
  28. package/dist/entities/user.entity.d.ts +5 -7
  29. package/dist/entities/user.entity.js +7 -17
  30. package/dist/entities/user.entity.js.map +1 -1
  31. package/package.json +6 -6
  32. package/tsconfig.tsbuildinfo +1 -1
  33. package/dist/entities/thirdparty/oauth-v2.entity.d.ts +0 -23
  34. package/dist/entities/thirdparty/oauth-v2.entity.js +0 -80
  35. package/dist/entities/thirdparty/oauth-v2.entity.js.map +0 -1
@@ -1,23 +0,0 @@
1
- import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
2
- import { User } from '../user.entity';
3
- export declare enum OAuthProvider {
4
- Google = "google",
5
- Microsoft = "microsoft",
6
- Apple = "apple"
7
- }
8
- export declare enum OAuthServiceType {
9
- Profile = "profile",
10
- Calendar = "calendar",
11
- Mail = "mail"
12
- }
13
- export declare class OauthV2 extends BaseEntityOnlyEssential {
14
- email: string;
15
- provider: OAuthProvider;
16
- service: OAuthServiceType;
17
- refreshToken: string;
18
- accessToken: string;
19
- expiresIn: number;
20
- scope?: string;
21
- additionalData?: string;
22
- user: User;
23
- }
@@ -1,80 +0,0 @@
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.OauthV2 = exports.OAuthServiceType = exports.OAuthProvider = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const base_entity_1 = require("../../common/database/base.entity");
15
- const user_entity_1 = require("../user.entity");
16
- var OAuthProvider;
17
- (function (OAuthProvider) {
18
- OAuthProvider["Google"] = "google";
19
- OAuthProvider["Microsoft"] = "microsoft";
20
- OAuthProvider["Apple"] = "apple";
21
- })(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
22
- var OAuthServiceType;
23
- (function (OAuthServiceType) {
24
- OAuthServiceType["Profile"] = "profile";
25
- OAuthServiceType["Calendar"] = "calendar";
26
- OAuthServiceType["Mail"] = "mail";
27
- })(OAuthServiceType || (exports.OAuthServiceType = OAuthServiceType = {}));
28
- let OauthV2 = class OauthV2 extends base_entity_1.BaseEntityOnlyEssential {
29
- email;
30
- provider;
31
- service;
32
- refreshToken;
33
- accessToken;
34
- expiresIn;
35
- scope;
36
- additionalData;
37
- user;
38
- };
39
- exports.OauthV2 = OauthV2;
40
- __decorate([
41
- (0, typeorm_1.Column)(),
42
- __metadata("design:type", String)
43
- ], OauthV2.prototype, "email", void 0);
44
- __decorate([
45
- (0, typeorm_1.Column)({ type: 'enum', enum: OAuthProvider }),
46
- __metadata("design:type", String)
47
- ], OauthV2.prototype, "provider", void 0);
48
- __decorate([
49
- (0, typeorm_1.Column)({ type: 'enum', enum: OAuthServiceType }),
50
- __metadata("design:type", String)
51
- ], OauthV2.prototype, "service", void 0);
52
- __decorate([
53
- (0, typeorm_1.Column)({ nullable: true }),
54
- __metadata("design:type", String)
55
- ], OauthV2.prototype, "refreshToken", void 0);
56
- __decorate([
57
- (0, typeorm_1.Column)({ nullable: true }),
58
- __metadata("design:type", String)
59
- ], OauthV2.prototype, "accessToken", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
62
- __metadata("design:type", Number)
63
- ], OauthV2.prototype, "expiresIn", void 0);
64
- __decorate([
65
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
66
- __metadata("design:type", String)
67
- ], OauthV2.prototype, "scope", void 0);
68
- __decorate([
69
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
70
- __metadata("design:type", String)
71
- ], OauthV2.prototype, "additionalData", void 0);
72
- __decorate([
73
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
74
- __metadata("design:type", user_entity_1.User)
75
- ], OauthV2.prototype, "user", void 0);
76
- exports.OauthV2 = OauthV2 = __decorate([
77
- (0, typeorm_1.Entity)(),
78
- (0, typeorm_1.Unique)(['user', 'email', 'service', 'provider'])
79
- ], OauthV2);
80
- //# sourceMappingURL=oauth-v2.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth-v2.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth-v2.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,OAAO,GAAb,MAAM,OAAQ,SAAQ,qCAAuB;IAElD,KAAK,CAAS;IAGd,QAAQ,CAAgB;IAGxB,OAAO,CAAmB;IAG1B,YAAY,CAAS;IAGrB,WAAW,CAAS;IAGpB,SAAS,CAAS;IAGlB,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,IAAI,CAAO;CACZ,CAAA;AA3BY,0BAAO;AAElB;IADC,IAAA,gBAAM,GAAE;;sCACK;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;yCACtB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;wCACvB;AAG1B;IADC,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