@servicelabsco/nestjs-utility-services 1.2.73 → 1.2.74

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.
@@ -0,0 +1,5 @@
1
+ import { MigrationUtility } from '../common/libraries/migration.utility';
2
+ export declare class AddContextAndParentIdSysCommentsTable1711025672618 extends MigrationUtility {
3
+ constructor();
4
+ process(): void;
5
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddContextAndParentIdSysCommentsTable1711025672618 = void 0;
4
+ const migration_utility_1 = require("../common/libraries/migration.utility");
5
+ class AddContextAndParentIdSysCommentsTable1711025672618 extends migration_utility_1.MigrationUtility {
6
+ constructor() {
7
+ super('sys_comments');
8
+ this.process();
9
+ }
10
+ process() {
11
+ this.json('context');
12
+ this.foreign({ name: 'parent_id', foreignTable: 'sys_comments' });
13
+ this.boolean('is_conversation', false);
14
+ }
15
+ }
16
+ exports.AddContextAndParentIdSysCommentsTable1711025672618 = AddContextAndParentIdSysCommentsTable1711025672618;
17
+ //# sourceMappingURL=1711025672618-AddContextAndParentIdSysCommentsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1711025672618-AddContextAndParentIdSysCommentsTable.js","sourceRoot":"","sources":["../../src/migrations/1711025672618-AddContextAndParentIdSysCommentsTable.ts"],"names":[],"mappings":";;;AAAA,6EAAyE;AAEzE,MAAa,kDAAmD,SAAQ,oCAAgB;IACpF;QACI,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC,CAAC;QAClE,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;IAC3C,CAAC;CACJ;AAXD,gHAWC"}
@@ -2,6 +2,9 @@ import { PermissionEntity } from './entities/permission.entity';
2
2
  import { UserPermissionEntity } from './entities/user.permission.entity';
3
3
  import { UserRoleEntity } from './entities/user.role.entity';
4
4
  declare const es6Classes: {
5
+ controllers: any[];
5
6
  entities: (typeof PermissionEntity | typeof UserPermissionEntity | typeof UserRoleEntity)[];
7
+ libraries: any[];
8
+ services: any[];
6
9
  };
7
10
  export default es6Classes;
@@ -5,7 +5,10 @@ const role_entity_1 = require("./entities/role.entity");
5
5
  const user_permission_entity_1 = require("./entities/user.permission.entity");
6
6
  const user_role_entity_1 = require("./entities/user.role.entity");
7
7
  const es6Classes = {
8
+ controllers: [],
8
9
  entities: [permission_entity_1.PermissionEntity, role_entity_1.RoleEntity, user_permission_entity_1.UserPermissionEntity, user_role_entity_1.UserRoleEntity],
10
+ libraries: [],
11
+ services: [],
9
12
  };
10
13
  exports.default = es6Classes;
11
14
  //# sourceMappingURL=es6.classes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/security/es6.classes.ts"],"names":[],"mappings":";;AAAA,oEAAgE;AAChE,wDAAoD;AACpD,8EAAyE;AACzE,kEAA6D;AAE7D,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,oCAAgB,EAAE,wBAAU,EAAE,6CAAoB,EAAE,iCAAc,CAAC;CACjF,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/security/es6.classes.ts"],"names":[],"mappings":";;AAAA,oEAAgE;AAChE,wDAAoD;AACpD,8EAAyE;AACzE,kEAA6D;AAE7D,MAAM,UAAU,GAAG;IACf,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,oCAAgB,EAAE,wBAAU,EAAE,6CAAoB,EAAE,iCAAc,CAAC;IAC9E,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;CACf,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -3,4 +3,7 @@ export declare class AddCommentDto {
3
3
  comments: string;
4
4
  type_id?: number;
5
5
  is_system_generated?: boolean;
6
+ context?: any;
7
+ parent_id?: number;
8
+ is_conversation?: boolean;
6
9
  }
@@ -38,4 +38,21 @@ __decorate([
38
38
  (0, class_validator_1.IsOptional)(),
39
39
  __metadata("design:type", Boolean)
40
40
  ], AddCommentDto.prototype, "is_system_generated", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ __metadata("design:type", Object)
45
+ ], AddCommentDto.prototype, "context", void 0);
46
+ __decorate([
47
+ (0, class_transformer_1.Expose)(),
48
+ (0, class_validator_1.IsOptional)(),
49
+ (0, class_validator_1.IsNumber)(),
50
+ __metadata("design:type", Number)
51
+ ], AddCommentDto.prototype, "parent_id", void 0);
52
+ __decorate([
53
+ (0, class_transformer_1.Expose)(),
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_validator_1.IsBoolean)(),
56
+ __metadata("design:type", Boolean)
57
+ ], AddCommentDto.prototype, "is_conversation", void 0);
41
58
  //# sourceMappingURL=add.comment.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add.comment.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/add.comment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA8E;AAE9E,MAAa,aAAa;CAmBzB;AAnBD,sCAmBC;AAfG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACD;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+CACI;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACI;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACiB"}
1
+ {"version":3,"file":"add.comment.dto.js","sourceRoot":"","sources":["../../../src/system/dtos/add.comment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAA8F;AAE9F,MAAa,aAAa;CAiCzB;AAjCD,sCAiCC;AA7BG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACD;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+CACI;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACI;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACiB;AAI9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8CACC;AAKd;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAKnB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACa"}
@@ -4,8 +4,12 @@ export declare class CommentEntity extends CommonEntity {
4
4
  source_type: string;
5
5
  source_id: number;
6
6
  type_id: number;
7
+ parent_id: number;
7
8
  comments: string;
8
9
  is_system_generated: boolean;
10
+ context: any;
11
+ is_conversation: boolean;
9
12
  attributes: any;
10
13
  type: LookupValueEntity;
14
+ parent: CommentEntity;
11
15
  }
@@ -32,6 +32,10 @@ __decorate([
32
32
  (0, typeorm_1.Column)(),
33
33
  __metadata("design:type", Number)
34
34
  ], CommentEntity.prototype, "type_id", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)(),
37
+ __metadata("design:type", Number)
38
+ ], CommentEntity.prototype, "parent_id", void 0);
35
39
  __decorate([
36
40
  (0, typeorm_1.Column)(),
37
41
  (0, class_validator_1.IsNotEmpty)(),
@@ -41,6 +45,14 @@ __decorate([
41
45
  (0, typeorm_1.Column)(),
42
46
  __metadata("design:type", Boolean)
43
47
  ], CommentEntity.prototype, "is_system_generated", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)('json'),
50
+ __metadata("design:type", Object)
51
+ ], CommentEntity.prototype, "context", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)(),
54
+ __metadata("design:type", Boolean)
55
+ ], CommentEntity.prototype, "is_conversation", void 0);
44
56
  __decorate([
45
57
  (0, typeorm_1.Column)('json'),
46
58
  __metadata("design:type", Object)
@@ -50,6 +62,11 @@ __decorate([
50
62
  (0, typeorm_1.JoinColumn)({ name: 'type_id' }),
51
63
  __metadata("design:type", lookup_value_entity_1.LookupValueEntity)
52
64
  ], CommentEntity.prototype, "type", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.ManyToOne)(() => CommentEntity),
67
+ (0, typeorm_1.JoinColumn)({ name: 'parent_id' }),
68
+ __metadata("design:type", CommentEntity)
69
+ ], CommentEntity.prototype, "parent", void 0);
53
70
  exports.CommentEntity = CommentEntity = __decorate([
54
71
  (0, typeorm_1.Entity)('sys_comments')
55
72
  ], CommentEntity);
@@ -1 +1 @@
1
- {"version":3,"file":"comment.entity.js","sourceRoot":"","sources":["../../../src/system/entities/comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qCAAgE;AAChE,wEAAoE;AACpE,+DAA0D;AASnD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;CAwB9C,CAAA;AAxBY,sCAAa;AAGtB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;kDACO;AAKpB;IAHC,IAAA,gBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACO;AAGlB;IADC,IAAA,gBAAM,GAAE;;8CACO;AAIhB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+CACI;AAGjB;IADC,IAAA,gBAAM,GAAE;;0DACoB;AAEb;IAAf,IAAA,gBAAM,EAAC,MAAM,CAAC;;iDAAiB;AAGqC;IAApE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,uCAAiB;2CAAC;wBAvBpF,aAAa;IADzB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,aAAa,CAwBzB"}
1
+ {"version":3,"file":"comment.entity.js","sourceRoot":"","sources":["../../../src/system/entities/comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qCAAgE;AAChE,wEAAoE;AACpE,+DAA0D;AASnD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,4BAAY;CAoC9C,CAAA;AApCY,sCAAa;AAGtB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;kDACO;AAKpB;IAHC,IAAA,gBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACO;AAGlB;IADC,IAAA,gBAAM,GAAE;;8CACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;gDACS;AAIlB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;+CACI;AAGjB;IADC,IAAA,gBAAM,GAAE;;0DACoB;AAG7B;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;8CACF;AAGb;IADC,IAAA,gBAAM,GAAE;;sDACgB;AAGzB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;;iDACC;AAGqD;IAApE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,uCAAiB;2CAAC;AAE1B;IAAlE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAAS,aAAa;6CAAC;wBAnChF,aAAa;IADzB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,aAAa,CAoCzB"}
@@ -25,6 +25,9 @@ let CommentService = class CommentService {
25
25
  record.is_system_generated = body.is_system_generated || false;
26
26
  }
27
27
  record.comments = body.comments;
28
+ record.context = body.context;
29
+ record.parent_id = body.parent_id;
30
+ record.is_conversation = body.is_conversation;
28
31
  return record.save();
29
32
  }
30
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"comment.service.js","sourceRoot":"","sources":["../../../src/system/services/comment.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAE5C,+DAA2D;AASpD,IAAM,cAAc,GAApB,MAAM,cAAc;IAQvB,KAAK,CAAC,WAAW,CAAC,KAAmF;QACjG,OAAO,8BAAa,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,IAAI,GAAG,EAAE,CAAC,CAAC;IAClG,CAAC;IASD,KAAK,CAAC,UAAU,CAAC,IAAmB,EAAE,MAAwB;QAC1D,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO;QAE3B,IAAI,MAAM,GAAG,IAAI,8BAAa,EAAE,CAAC;QAEjC,IAAI,IAAI,CAAC,EAAE;YAAE,MAAM,GAAG,MAAM,8BAAa,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAEzD,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC;YACd,MAAM,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;YACxC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;YAEpC,MAAM,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAA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,GAAG,IAAI,CAAC,SAAS,CAAC;QAClC,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;QAE9C,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC;CACJ,CAAA;AAxCY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;GACA,cAAc,CAwC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/nestjs-utility-services",
3
- "version": "1.2.73",
3
+ "version": "1.2.74",
4
4
  "description": "NestJS generic packages to support development",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",