easywork-common-lib 1.0.1299 → 1.0.1301
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/tools/mail/mail-queue-distribution.d.ts +8 -0
- package/dist/entities/tools/mail/mail-queue-distribution.js +38 -0
- package/dist/entities/tools/mail/mail-queue-distribution.js.map +1 -0
- package/dist/entities/tools/mail/mail-queue-entities-assigned.d.ts +9 -0
- package/dist/entities/tools/mail/mail-queue-entities-assigned.js +39 -0
- package/dist/entities/tools/mail/mail-queue-entities-assigned.js.map +1 -0
- package/dist/entities/tools/mail/mail-queue-status.d.ts +9 -0
- package/dist/entities/tools/mail/mail-queue-status.js +44 -0
- package/dist/entities/tools/mail/mail-queue-status.js.map +1 -0
- package/dist/entities/user-special-role.entity.d.ts +2 -1
- package/dist/entities/user-special-role.entity.js +1 -0
- package/dist/entities/user-special-role.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +339 -339
- package/dist/grpc/drive/leads.proto +114 -114
- package/dist/modules/authorization/services/resource-access-filter.service.js +21 -21
- package/package.json +54 -54
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Mailbox } from './mailbox.entity';
|
|
2
|
+
import { BaseEntityOnlyEssential } from 'common';
|
|
3
|
+
import { User } from 'entities/user.entity';
|
|
4
|
+
export declare class MailQueueDistribution extends BaseEntityOnlyEssential {
|
|
5
|
+
orderInQueue: number;
|
|
6
|
+
mailbox: Mailbox;
|
|
7
|
+
userInvited: User;
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.MailQueueDistribution = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const mailbox_entity_1 = require("./mailbox.entity");
|
|
15
|
+
const common_1 = require("common");
|
|
16
|
+
const user_entity_1 = require("entities/user.entity");
|
|
17
|
+
let MailQueueDistribution = class MailQueueDistribution extends common_1.BaseEntityOnlyEssential {
|
|
18
|
+
orderInQueue;
|
|
19
|
+
mailbox;
|
|
20
|
+
userInvited;
|
|
21
|
+
};
|
|
22
|
+
exports.MailQueueDistribution = MailQueueDistribution;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], MailQueueDistribution.prototype, "orderInQueue", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => mailbox_entity_1.Mailbox, { nullable: true, onDelete: 'SET NULL' }),
|
|
29
|
+
__metadata("design:type", mailbox_entity_1.Mailbox)
|
|
30
|
+
], MailQueueDistribution.prototype, "mailbox", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
33
|
+
__metadata("design:type", user_entity_1.User)
|
|
34
|
+
], MailQueueDistribution.prototype, "userInvited", void 0);
|
|
35
|
+
exports.MailQueueDistribution = MailQueueDistribution = __decorate([
|
|
36
|
+
(0, typeorm_1.Entity)()
|
|
37
|
+
], MailQueueDistribution);
|
|
38
|
+
//# sourceMappingURL=mail-queue-distribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail-queue-distribution.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-queue-distribution.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,qDAA2C;AAC3C,mCAAiD;AACjD,sDAA4C;AAGrC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,gCAAuB;IAEhE,YAAY,CAAS;IAGrB,OAAO,CAAU;IAGjB,WAAW,CAAO;CACnB,CAAA;AATY,sDAAqB;AAEhC;IADC,IAAA,gBAAM,GAAE;;2DACY;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAC1D,wBAAO;sDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACnD,kBAAI;0DAAC;gCARP,qBAAqB;IADjC,IAAA,gBAAM,GAAE;GACI,qBAAqB,CASjC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Mailbox } from './mailbox.entity';
|
|
2
|
+
import { BaseEntityOnlyEssential } from 'common';
|
|
3
|
+
import { User } from 'entities/user.entity';
|
|
4
|
+
import { MailMessageCRMLink } from './mail.entity';
|
|
5
|
+
export declare class MailQueueEntitiesAssigned extends BaseEntityOnlyEssential {
|
|
6
|
+
crm: MailMessageCRMLink;
|
|
7
|
+
mailbox: Mailbox;
|
|
8
|
+
userAssigned: User;
|
|
9
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.MailQueueEntitiesAssigned = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const mailbox_entity_1 = require("./mailbox.entity");
|
|
15
|
+
const common_1 = require("common");
|
|
16
|
+
const user_entity_1 = require("entities/user.entity");
|
|
17
|
+
let MailQueueEntitiesAssigned = class MailQueueEntitiesAssigned extends common_1.BaseEntityOnlyEssential {
|
|
18
|
+
crm;
|
|
19
|
+
mailbox;
|
|
20
|
+
userAssigned;
|
|
21
|
+
};
|
|
22
|
+
exports.MailQueueEntitiesAssigned = MailQueueEntitiesAssigned;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], MailQueueEntitiesAssigned.prototype, "crm", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.Unique)(['mailbox']),
|
|
29
|
+
(0, typeorm_1.ManyToOne)(() => mailbox_entity_1.Mailbox, { nullable: true, onDelete: 'CASCADE' }),
|
|
30
|
+
__metadata("design:type", mailbox_entity_1.Mailbox)
|
|
31
|
+
], MailQueueEntitiesAssigned.prototype, "mailbox", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: 'SET NULL' }),
|
|
34
|
+
__metadata("design:type", user_entity_1.User)
|
|
35
|
+
], MailQueueEntitiesAssigned.prototype, "userAssigned", void 0);
|
|
36
|
+
exports.MailQueueEntitiesAssigned = MailQueueEntitiesAssigned = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)()
|
|
38
|
+
], MailQueueEntitiesAssigned);
|
|
39
|
+
//# sourceMappingURL=mail-queue-entities-assigned.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail-queue-entities-assigned.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-queue-entities-assigned.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAE5D,qDAA2C;AAC3C,mCAAiD;AACjD,sDAA4C;AAIrC,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,gCAAuB;IAEpE,GAAG,CAAqB;IAIxB,OAAO,CAAU;IAGjB,YAAY,CAAO;CACpB,CAAA;AAVY,8DAAyB;AAEpC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAClB;AAIxB;IAFC,IAAA,gBAAM,EAAC,CAAC,SAAS,CAAC,CAAC;IACnB,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzD,wBAAO;0DAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAClD,kBAAI;+DAAC;oCATR,yBAAyB;IADrC,IAAA,gBAAM,GAAE;GACI,yBAAyB,CAUrC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Mailbox } from './mailbox.entity';
|
|
2
|
+
import { BaseEntityOnlyEssential } from 'common';
|
|
3
|
+
import { User } from 'entities/user.entity';
|
|
4
|
+
export declare class MailQueueStatus extends BaseEntityOnlyEssential {
|
|
5
|
+
lastAssignedOrder: number;
|
|
6
|
+
lastAssignmentTimestamp: string;
|
|
7
|
+
mailbox: Mailbox;
|
|
8
|
+
lastAssignedUser: User;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.MailQueueStatus = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const mailbox_entity_1 = require("./mailbox.entity");
|
|
15
|
+
const common_1 = require("common");
|
|
16
|
+
const user_entity_1 = require("entities/user.entity");
|
|
17
|
+
let MailQueueStatus = class MailQueueStatus extends common_1.BaseEntityOnlyEssential {
|
|
18
|
+
lastAssignedOrder;
|
|
19
|
+
lastAssignmentTimestamp;
|
|
20
|
+
mailbox;
|
|
21
|
+
lastAssignedUser;
|
|
22
|
+
};
|
|
23
|
+
exports.MailQueueStatus = MailQueueStatus;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], MailQueueStatus.prototype, "lastAssignedOrder", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'timestamp' }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], MailQueueStatus.prototype, "lastAssignmentTimestamp", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Unique)(['mailbox']),
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => mailbox_entity_1.Mailbox, { nullable: true, onDelete: 'CASCADE' }),
|
|
35
|
+
__metadata("design:type", mailbox_entity_1.Mailbox)
|
|
36
|
+
], MailQueueStatus.prototype, "mailbox", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: 'SET NULL' }),
|
|
39
|
+
__metadata("design:type", user_entity_1.User)
|
|
40
|
+
], MailQueueStatus.prototype, "lastAssignedUser", void 0);
|
|
41
|
+
exports.MailQueueStatus = MailQueueStatus = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)()
|
|
43
|
+
], MailQueueStatus);
|
|
44
|
+
//# sourceMappingURL=mail-queue-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail-queue-status.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-queue-status.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAE5D,qDAA2C;AAC3C,mCAAiD;AACjD,sDAA4C;AAGrC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,gCAAuB;IAE1D,iBAAiB,CAAS;IAG1B,uBAAuB,CAAS;IAIhC,OAAO,CAAU;IAGjB,gBAAgB,CAAO;CACxB,CAAA;AAbY,0CAAe;AAE1B;IADC,IAAA,gBAAM,GAAE;;0DACiB;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;gEACE;AAIhC;IAFC,IAAA,gBAAM,EAAC,CAAC,SAAS,CAAC,CAAC;IACnB,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzD,wBAAO;gDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAC9C,kBAAI;yDAAC;0BAZZ,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAa3B"}
|
|
@@ -2,7 +2,8 @@ import { User } from "./user.entity";
|
|
|
2
2
|
export declare enum SpecialRoleType {
|
|
3
3
|
DEVELOPMENT_MANAGER = "development_manager",
|
|
4
4
|
RECRUITMENT_MANAGER = "recruitment_manager",
|
|
5
|
-
TRAINER = "trainer"
|
|
5
|
+
TRAINER = "trainer",
|
|
6
|
+
RECRUITER = "recruiter"
|
|
6
7
|
}
|
|
7
8
|
export declare class UserSpecialRole {
|
|
8
9
|
id: string;
|
|
@@ -17,6 +17,7 @@ var SpecialRoleType;
|
|
|
17
17
|
SpecialRoleType["DEVELOPMENT_MANAGER"] = "development_manager";
|
|
18
18
|
SpecialRoleType["RECRUITMENT_MANAGER"] = "recruitment_manager";
|
|
19
19
|
SpecialRoleType["TRAINER"] = "trainer";
|
|
20
|
+
SpecialRoleType["RECRUITER"] = "recruiter";
|
|
20
21
|
})(SpecialRoleType || (exports.SpecialRoleType = SpecialRoleType = {}));
|
|
21
22
|
let UserSpecialRole = class UserSpecialRole {
|
|
22
23
|
id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-special-role.entity.js","sourceRoot":"","sources":["../../src/entities/user-special-role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAAqC;AAErC,IAAY,
|
|
1
|
+
{"version":3,"file":"user-special-role.entity.js","sourceRoot":"","sources":["../../src/entities/user-special-role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAAqC;AAErC,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,8DAA2C,CAAA;IAC3C,8DAA2C,CAAA;IAC3C,sCAAmB,CAAA;IACnB,0CAAuB,CAAA;AACzB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAGM,IAAM,eAAe,GAArB,MAAM,eAAe;IAE1B,EAAE,CAAS;IAIX,IAAI,CAAO;IAGX,MAAM,CAAS;IAOf,QAAQ,CAAkB;IAI1B,UAAU,CAAO;IAGjB,YAAY,CAAS;IAGrB,UAAU,CAAO;IAGjB,QAAQ,CAAU;IAGlB,WAAW,CAAW;IAGtB,QAAQ,CAAsB;IAG9B,SAAS,CAAO;IAGhB,SAAS,CAAO;CACjB,CAAA;AA1CY,0CAAe;AAE1B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;2CACpB;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;6CAAC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;+CACb;AAOf;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,WAAW;KAClB,CAAC;;iDACwB;AAI1B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACrB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BACxB,kBAAI;mDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;qDACX;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAAC;8BACxD,IAAI;mDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;iDACR;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACpB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACZ;AAG9B;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC9B,IAAI;kDAAC;AAGhB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC9B,IAAI;kDAAC;0BAzCL,eAAe;IAD3B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,eAAe,CA0C3B"}
|