easywork-common-lib 1.0.1185 → 1.0.1187

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 (41) hide show
  1. package/dist/entities/subscriptions/feature.d.ts +15 -0
  2. package/dist/entities/subscriptions/feature.js +64 -0
  3. package/dist/entities/subscriptions/feature.js.map +1 -0
  4. package/dist/entities/subscriptions/plan-feature.d.ts +8 -0
  5. package/dist/entities/subscriptions/plan-feature.js +44 -0
  6. package/dist/entities/subscriptions/plan-feature.js.map +1 -0
  7. package/dist/entities/tools/mail/mail-crm-queue-distribution.entity.d.ts +3 -3
  8. package/dist/entities/tools/mail/mail-crm-queue-distribution.entity.js +3 -3
  9. package/dist/entities/tools/mail/mail-crm-queue-distribution.entity.js.map +1 -1
  10. package/dist/entities/tools/mail/mail-crm-queue-entities-assigned.entity.d.ts +2 -2
  11. package/dist/entities/tools/mail/mail-crm-queue-entities-assigned.entity.js +3 -3
  12. package/dist/entities/tools/mail/mail-crm-queue-entities-assigned.entity.js.map +1 -1
  13. package/dist/entities/tools/mail/mail-crm-queue-status.entity.d.ts +2 -2
  14. package/dist/entities/tools/mail/mail-crm-queue-status.entity.js +3 -3
  15. package/dist/entities/tools/mail/mail-crm-queue-status.entity.js.map +1 -1
  16. package/dist/entities/tools/mail/mail-queue-distribution.d.ts +8 -0
  17. package/dist/entities/tools/mail/mail-queue-distribution.entity.d.ts +8 -0
  18. package/dist/entities/tools/mail/mail-queue-distribution.entity.js +38 -0
  19. package/dist/entities/tools/mail/mail-queue-distribution.entity.js.map +1 -0
  20. package/dist/entities/tools/mail/mail-queue-distribution.js +38 -0
  21. package/dist/entities/tools/mail/mail-queue-distribution.js.map +1 -0
  22. package/dist/entities/tools/mail/mail-queue-entities-assigned.d.ts +9 -0
  23. package/dist/entities/tools/mail/mail-queue-entities-assigned.entity.d.ts +9 -0
  24. package/dist/entities/tools/mail/mail-queue-entities-assigned.entity.js +39 -0
  25. package/dist/entities/tools/mail/mail-queue-entities-assigned.entity.js.map +1 -0
  26. package/dist/entities/tools/mail/mail-queue-entities-assigned.js +39 -0
  27. package/dist/entities/tools/mail/mail-queue-entities-assigned.js.map +1 -0
  28. package/dist/entities/tools/mail/mail-queue-status.d.ts +9 -0
  29. package/dist/entities/tools/mail/mail-queue-status.entity.d.ts +9 -0
  30. package/dist/entities/tools/mail/mail-queue-status.entity.js +44 -0
  31. package/dist/entities/tools/mail/mail-queue-status.entity.js.map +1 -0
  32. package/dist/entities/tools/mail/mail-queue-status.js +44 -0
  33. package/dist/entities/tools/mail/mail-queue-status.js.map +1 -0
  34. package/dist/entities/user-group.entity.d.ts +5 -0
  35. package/dist/entities/user-group.entity.js +31 -0
  36. package/dist/entities/user-group.entity.js.map +1 -0
  37. package/dist/grpc/drive/drive.proto +310 -310
  38. package/dist/grpc/drive/leads.proto +114 -114
  39. package/dist/modules/authorization/authorization.module.d.ts +2 -2
  40. package/dist/modules/authorization/services/resource-access-filter.service.js +21 -21
  41. package/package.json +54 -54
@@ -0,0 +1,15 @@
1
+ import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
2
+ import { PlanFeature } from './plan-feature';
3
+ export declare enum FeatureType {
4
+ BOOLEAN = "boolean",
5
+ LIMIT = "limit",
6
+ TEXT = "text"
7
+ }
8
+ export declare class Feature extends BaseEntityOnlyEssential {
9
+ key: string;
10
+ name: string;
11
+ description: string;
12
+ category: string;
13
+ type: FeatureType;
14
+ planFeatures: PlanFeature[];
15
+ }
@@ -0,0 +1,64 @@
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.Feature = exports.FeatureType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const base_entity_1 = require("../../common/database/base.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const plan_feature_1 = require("./plan-feature");
17
+ var FeatureType;
18
+ (function (FeatureType) {
19
+ FeatureType["BOOLEAN"] = "boolean";
20
+ FeatureType["LIMIT"] = "limit";
21
+ FeatureType["TEXT"] = "text";
22
+ })(FeatureType || (exports.FeatureType = FeatureType = {}));
23
+ let Feature = class Feature extends base_entity_1.BaseEntityOnlyEssential {
24
+ key;
25
+ name;
26
+ description;
27
+ category;
28
+ type;
29
+ planFeatures;
30
+ };
31
+ exports.Feature = Feature;
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ description: 'Nombre único y programático de la característica', example: 'PRO_POLICY_READER' }),
34
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true, nullable: false }),
35
+ __metadata("design:type", String)
36
+ ], Feature.prototype, "key", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiProperty)({ description: 'Nombre de la característica para mostrar al usuario', example: 'Lector de Pólizas Pro' }),
39
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
40
+ __metadata("design:type", String)
41
+ ], Feature.prototype, "name", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({ description: 'Descripción detallada de lo que hace la característica', example: 'Permite analizar y extraer datos de pólizas en formato PDF.' }),
44
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], Feature.prototype, "description", void 0);
47
+ __decorate([
48
+ (0, swagger_1.ApiProperty)({ description: 'Categoría para agrupar en la UI', example: 'Reportes' }),
49
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
50
+ __metadata("design:type", String)
51
+ ], Feature.prototype, "category", void 0);
52
+ __decorate([
53
+ (0, swagger_1.ApiProperty)({ description: 'El tipo de valor que esta característica almacena', enum: FeatureType, example: FeatureType.BOOLEAN }),
54
+ (0, typeorm_1.Column)({ type: 'enum', enum: FeatureType, nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], Feature.prototype, "type", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.OneToMany)(() => plan_feature_1.PlanFeature, planFeature => planFeature.feature),
59
+ __metadata("design:type", Array)
60
+ ], Feature.prototype, "planFeatures", void 0);
61
+ exports.Feature = Feature = __decorate([
62
+ (0, typeorm_1.Entity)('features')
63
+ ], Feature);
64
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../src/entities/subscriptions/feature.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AACpD,mEAA4E;AAC5E,6CAA8C;AAC9C,iDAA6C;AAE7C,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;IACf,4BAAa,CAAA;AACf,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAGM,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qCAAuB;IAGlD,GAAG,CAAS;IAIZ,IAAI,CAAS;IAIb,WAAW,CAAS;IAIpB,QAAQ,CAAS;IAIjB,IAAI,CAAc;IAGlB,YAAY,CAAgB;CAC7B,CAAA;AAvBY,0BAAO;AAGlB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kDAAkD,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC9G,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oCAC5D;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qDAAqD,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACrH,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qCAC7C;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wDAAwD,EAAE,OAAO,EAAE,6DAA6D,EAAE,CAAC;IAC9J,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACrB;AAIpB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACpF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACxC;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mDAAmD,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC;IAClI,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qCAC3C;AAGlB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;;6CACrC;kBAtBjB,OAAO;IADnB,IAAA,gBAAM,EAAC,UAAU,CAAC;GACN,OAAO,CAuBnB"}
@@ -0,0 +1,8 @@
1
+ import { Plan } from './plan.entity';
2
+ import { Feature } from './feature';
3
+ export declare class PlanFeature {
4
+ id: string;
5
+ value: string;
6
+ plan: Plan;
7
+ feature: Feature;
8
+ }
@@ -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.PlanFeature = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const plan_entity_1 = require("./plan.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const feature_1 = require("./feature");
17
+ let PlanFeature = class PlanFeature {
18
+ id;
19
+ value;
20
+ plan;
21
+ feature;
22
+ };
23
+ exports.PlanFeature = PlanFeature;
24
+ __decorate([
25
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
26
+ __metadata("design:type", String)
27
+ ], PlanFeature.prototype, "id", void 0);
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({ description: 'Valor de la característica para este plan. Puede ser "true", "100", "ilimitado", etc.', example: 'true' }),
30
+ (0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
31
+ __metadata("design:type", String)
32
+ ], PlanFeature.prototype, "value", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.ManyToOne)(() => plan_entity_1.Plan, plan => plan.planFeatures, { onDelete: 'CASCADE' }),
35
+ __metadata("design:type", plan_entity_1.Plan)
36
+ ], PlanFeature.prototype, "plan", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(() => feature_1.Feature, feature => feature.planFeatures, { onDelete: 'CASCADE', eager: true }),
39
+ __metadata("design:type", feature_1.Feature)
40
+ ], PlanFeature.prototype, "feature", void 0);
41
+ exports.PlanFeature = PlanFeature = __decorate([
42
+ (0, typeorm_1.Entity)('plan_features')
43
+ ], PlanFeature);
44
+ //# sourceMappingURL=plan-feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan-feature.js","sourceRoot":"","sources":["../../../src/entities/subscriptions/plan-feature.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAC5E,+CAAqC;AACrC,6CAA8C;AAC9C,uCAAoC;AAG7B,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEtB,EAAE,CAAS;IAIX,KAAK,CAAS;IAGd,IAAI,CAAO;IAGX,OAAO,CAAU;CAClB,CAAA;AAbY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uCACpB;AAIX;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uFAAuF,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACtI,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CAC5C;AAGd;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACpE,kBAAI;yCAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BACvF,iBAAO;4CAAC;sBAZN,WAAW;IADvB,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,WAAW,CAavB"}
@@ -1,6 +1,6 @@
1
- import { Mailbox } from "./mailbox.entity";
2
- import { BaseEntityOnlyEssential } from "../../../common/database/base.entity";
3
- import { User } from "entities/user.entity";
1
+ import { Mailbox } from './mailbox.entity';
2
+ import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
3
+ import { User } from '../../user.entity';
4
4
  export declare class MailCRMQueueDistribution extends BaseEntityOnlyEssential {
5
5
  orderInQueue: number;
6
6
  mailbox: Mailbox;
@@ -13,7 +13,7 @@ exports.MailCRMQueueDistribution = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const mailbox_entity_1 = require("./mailbox.entity");
15
15
  const base_entity_1 = require("../../../common/database/base.entity");
16
- const user_entity_1 = require("entities/user.entity");
16
+ const user_entity_1 = require("../../user.entity");
17
17
  let MailCRMQueueDistribution = class MailCRMQueueDistribution extends base_entity_1.BaseEntityOnlyEssential {
18
18
  orderInQueue;
19
19
  mailbox;
@@ -25,11 +25,11 @@ __decorate([
25
25
  __metadata("design:type", Number)
26
26
  ], MailCRMQueueDistribution.prototype, "orderInQueue", void 0);
27
27
  __decorate([
28
- (0, typeorm_1.ManyToOne)(() => mailbox_entity_1.Mailbox, { nullable: true, onDelete: "SET NULL" }),
28
+ (0, typeorm_1.ManyToOne)(() => mailbox_entity_1.Mailbox, { nullable: true, onDelete: 'SET NULL' }),
29
29
  __metadata("design:type", mailbox_entity_1.Mailbox)
30
30
  ], MailCRMQueueDistribution.prototype, "mailbox", void 0);
31
31
  __decorate([
32
- (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: "CASCADE" }),
32
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
33
33
  __metadata("design:type", user_entity_1.User)
34
34
  ], MailCRMQueueDistribution.prototype, "userInvited", void 0);
35
35
  exports.MailCRMQueueDistribution = MailCRMQueueDistribution = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"mail-crm-queue-distribution.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-crm-queue-distribution.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,qDAA2C;AAC3C,sEAA+E;AAC/E,sDAA4C;AAGrC,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,qCAAuB;IAEnE,YAAY,CAAS;IAGrB,OAAO,CAAU;IAGjB,WAAW,CAAO;CACnB,CAAA;AATY,4DAAwB;AAEnC;IADC,IAAA,gBAAM,GAAE;;8DACY;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAC1D,wBAAO;yDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACnD,kBAAI;6DAAC;mCARP,wBAAwB;IADpC,IAAA,gBAAM,GAAE;GACI,wBAAwB,CASpC"}
1
+ {"version":3,"file":"mail-crm-queue-distribution.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-crm-queue-distribution.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,qDAA2C;AAC3C,sEAA+E;AAC/E,mDAAyC;AAGlC,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,qCAAuB;IAEnE,YAAY,CAAS;IAGrB,OAAO,CAAU;IAGjB,WAAW,CAAO;CACnB,CAAA;AATY,4DAAwB;AAEnC;IADC,IAAA,gBAAM,GAAE;;8DACY;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAC1D,wBAAO;yDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACnD,kBAAI;6DAAC;mCARP,wBAAwB;IADpC,IAAA,gBAAM,GAAE;GACI,wBAAwB,CASpC"}
@@ -1,6 +1,6 @@
1
1
  import { Mailbox } from './mailbox.entity';
2
- import { BaseEntityOnlyEssential } from 'common';
3
- import { User } from 'entities/user.entity';
2
+ import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
3
+ import { User } from '../../user.entity';
4
4
  import { MailMessageCRMLink } from './mail.entity';
5
5
  export declare class MailCRMQueueEntitiesAssigned extends BaseEntityOnlyEssential {
6
6
  crm: MailMessageCRMLink;
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MailCRMQueueEntitiesAssigned = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
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 MailCRMQueueEntitiesAssigned = class MailCRMQueueEntitiesAssigned extends common_1.BaseEntityOnlyEssential {
15
+ const base_entity_1 = require("../../../common/database/base.entity");
16
+ const user_entity_1 = require("../../user.entity");
17
+ let MailCRMQueueEntitiesAssigned = class MailCRMQueueEntitiesAssigned extends base_entity_1.BaseEntityOnlyEssential {
18
18
  crm;
19
19
  mailbox;
20
20
  userAssigned;
@@ -1 +1 @@
1
- {"version":3,"file":"mail-crm-queue-entities-assigned.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-crm-queue-entities-assigned.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAE5D,qDAA2C;AAC3C,mCAAiD;AACjD,sDAA4C;AAIrC,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,gCAAuB;IAEvE,GAAG,CAAqB;IAIxB,OAAO,CAAU;IAGjB,YAAY,CAAO;CACpB,CAAA;AAVY,oEAA4B;AAEvC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAClB;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;6DAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAClD,kBAAI;kEAAC;uCATR,4BAA4B;IADxC,IAAA,gBAAM,GAAE;GACI,4BAA4B,CAUxC"}
1
+ {"version":3,"file":"mail-crm-queue-entities-assigned.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-crm-queue-entities-assigned.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAE5D,qDAA2C;AAC3C,sEAA+E;AAC/E,mDAAyC;AAIlC,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,qCAAuB;IAEvE,GAAG,CAAqB;IAIxB,OAAO,CAAU;IAGjB,YAAY,CAAO;CACpB,CAAA;AAVY,oEAA4B;AAEvC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAClB;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;6DAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAClD,kBAAI;kEAAC;uCATR,4BAA4B;IADxC,IAAA,gBAAM,GAAE;GACI,4BAA4B,CAUxC"}
@@ -1,6 +1,6 @@
1
1
  import { Mailbox } from './mailbox.entity';
2
- import { BaseEntityOnlyEssential } from 'common';
3
- import { User } from 'entities/user.entity';
2
+ import { User } from '../../user.entity';
3
+ import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
4
4
  export declare class MailCRMQueueStatus extends BaseEntityOnlyEssential {
5
5
  lastAssignedOrder?: number;
6
6
  lastAssignmentTimestamp?: string;
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MailCRMQueueStatus = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
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 MailCRMQueueStatus = class MailCRMQueueStatus extends common_1.BaseEntityOnlyEssential {
15
+ const user_entity_1 = require("../../user.entity");
16
+ const base_entity_1 = require("../../../common/database/base.entity");
17
+ let MailCRMQueueStatus = class MailCRMQueueStatus extends base_entity_1.BaseEntityOnlyEssential {
18
18
  lastAssignedOrder;
19
19
  lastAssignmentTimestamp;
20
20
  mailbox;
@@ -1 +1 @@
1
- {"version":3,"file":"mail-crm-queue-status.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-crm-queue-status.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAE5D,qDAA2C;AAC3C,mCAAiD;AACjD,sDAA4C;AAGrC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,gCAAuB;IAE7D,iBAAiB,CAAU;IAG3B,uBAAuB,CAAU;IAIjC,OAAO,CAAU;IAGjB,gBAAgB,CAAQ;CACzB,CAAA;AAbY,gDAAkB;AAE7B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACA;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACb;AAIjC;IAFC,IAAA,gBAAM,EAAC,CAAC,SAAS,CAAC,CAAC;IACnB,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,wBAAO;mDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAC7C,kBAAI;4DAAC;6BAZb,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAa9B"}
1
+ {"version":3,"file":"mail-crm-queue-status.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-crm-queue-status.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAE5D,qDAA2C;AAC3C,mDAAyC;AACzC,sEAA+E;AAGxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,qCAAuB;IAE7D,iBAAiB,CAAU;IAG3B,uBAAuB,CAAU;IAIjC,OAAO,CAAU;IAGjB,gBAAgB,CAAQ;CACzB,CAAA;AAbY,gDAAkB;AAE7B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACA;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACb;AAIjC;IAFC,IAAA,gBAAM,EAAC,CAAC,SAAS,CAAC,CAAC;IACnB,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,wBAAO;mDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAC7C,kBAAI;4DAAC;6BAZb,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAa9B"}
@@ -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,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.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-queue-distribution.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-queue-distribution.entity.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,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,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.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-queue-entities-assigned.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-queue-entities-assigned.entity.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,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,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.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-queue-status.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-queue-status.entity.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"}
@@ -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"}
@@ -0,0 +1,5 @@
1
+ import { EntityBase } from '../common/database/base.entity';
2
+ import { Role } from './role.entity';
3
+ export declare class UserGroupNewRelation extends EntityBase {
4
+ role: Role;
5
+ }