rez_core 2.2.22 → 2.2.24
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/module/notification/notification.module.js +6 -3
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/workflow/controller/stage-group.controller.js +2 -2
- package/dist/module/workflow/controller/stage-group.controller.js.map +1 -1
- package/dist/module/workflow/controller/stage.controller.js +4 -4
- package/dist/module/workflow/controller/stage.controller.js.map +1 -1
- package/dist/module/workflow/repository/stage-group.repository.d.ts +1 -1
- package/dist/module/workflow/repository/stage-group.repository.js +2 -3
- package/dist/module/workflow/repository/stage-group.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage.repository.d.ts +1 -1
- package/dist/module/workflow/repository/stage.repository.js +3 -4
- package/dist/module/workflow/repository/stage.repository.js.map +1 -1
- package/dist/module/workflow/service/stage-group.service.d.ts +1 -1
- package/dist/module/workflow/service/stage-group.service.js +2 -2
- package/dist/module/workflow/service/stage-group.service.js.map +1 -1
- package/dist/module/workflow/service/stage.service.d.ts +2 -2
- package/dist/module/workflow/service/stage.service.js +5 -5
- package/dist/module/workflow/service/stage.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/notification/notification.module.ts +6 -3
- package/src/module/workflow/controller/stage-group.controller.ts +2 -3
- package/src/module/workflow/controller/stage.controller.ts +4 -6
- package/src/module/workflow/repository/stage-group.repository.ts +2 -7
- package/src/module/workflow/repository/stage.repository.ts +3 -10
- package/src/module/workflow/service/stage-group.service.ts +2 -7
- package/src/module/workflow/service/stage.service.ts +5 -16
|
@@ -17,6 +17,7 @@ const mailer_1 = require("@nestjs-modules/mailer");
|
|
|
17
17
|
const handlebars_adapter_1 = require("@nestjs-modules/mailer/dist/adapters/handlebars.adapter");
|
|
18
18
|
const email_service_1 = require("./service/email.service");
|
|
19
19
|
const path_1 = require("path");
|
|
20
|
+
const config_1 = require("@nestjs/config");
|
|
20
21
|
let NotificationModule = class NotificationModule {
|
|
21
22
|
};
|
|
22
23
|
exports.NotificationModule = NotificationModule;
|
|
@@ -25,14 +26,16 @@ exports.NotificationModule = NotificationModule = __decorate([
|
|
|
25
26
|
imports: [
|
|
26
27
|
typeorm_1.TypeOrmModule.forFeature([otp_entity_1.Otp]),
|
|
27
28
|
mailer_1.MailerModule.forRootAsync({
|
|
28
|
-
|
|
29
|
+
imports: [config_1.ConfigModule],
|
|
30
|
+
inject: [config_1.ConfigService],
|
|
31
|
+
useFactory: (configService) => ({
|
|
29
32
|
transport: {
|
|
30
33
|
host: 'smtp.gmail.com',
|
|
31
34
|
port: 465,
|
|
32
35
|
secure: true,
|
|
33
36
|
auth: {
|
|
34
|
-
user:
|
|
35
|
-
pass:
|
|
37
|
+
user: configService.get('EMAIL_USER'),
|
|
38
|
+
pass: configService.get('EMAIL_PASSWORD'),
|
|
36
39
|
},
|
|
37
40
|
},
|
|
38
41
|
defaults: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;
|
|
1
|
+
{"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;AAC5B,2CAA6D;AAmCtD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAjC9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,gBAAG,CAAC,CAAC;YAC/B,qBAAY,CAAC,YAAY,CAAC;gBACxB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC;oBAC7C,SAAS,EAAE;wBACT,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,GAAG;wBACT,MAAM,EAAE,IAAI;wBACZ,IAAI,EAAE;4BACJ,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;4BACrC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC;yBAC1C;qBACF;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,GAAG;qBACnD;oBACD,QAAQ,EAAE;wBACR,GAAG,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC;wBAC7C,OAAO,EAAE,IAAI,sCAAiB,EAAE;wBAChC,OAAO,EAAE;4BACP,MAAM,EAAE,IAAI;yBACb;qBACF;iBACF,CAAC;aACH,CAAC;SACH;QACD,SAAS,EAAE,CAAC,wBAAU,EAAE,8BAAa,EAAE,4BAAY,CAAC;QACpD,OAAO,EAAE,CAAC,wBAAU,EAAE,4BAAY,CAAC;QACnC,WAAW,EAAE,CAAC,8BAAa,CAAC;KAC7B,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -21,8 +21,8 @@ let StageGroupController = class StageGroupController {
|
|
|
21
21
|
this.stageGroupService = stageGroupService;
|
|
22
22
|
}
|
|
23
23
|
async getAllStageGroup(req, body) {
|
|
24
|
-
const {
|
|
25
|
-
return this.stageGroupService.getAllStageGroup(body.workflow_id,
|
|
24
|
+
const { organization_id } = req.user.userData;
|
|
25
|
+
return this.stageGroupService.getAllStageGroup(body.workflow_id, organization_id);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
exports.StageGroupController = StageGroupController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage-group.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/stage-group.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2DAAgE;AAChE,wEAAmE;AAI5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAGE,AAAN,KAAK,CAAC,gBAAgB,CACb,GAA4B,EAC3B,IAA6B;QAErC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"stage-group.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/stage-group.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2DAAgE;AAChE,wEAAmE;AAI5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAGE,AAAN,KAAK,CAAC,gBAAgB,CACb,GAA4B,EAC3B,IAA6B;QAErC,MAAM,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAC5C,IAAI,CAAC,WAAW,EAChB,eAAe,CAChB,CAAC;IACJ,CAAC;CACF,CAAA;AAjBY,oDAAoB;AAOzB;IADL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IAEvB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;4DAOR;+BAhBU,oBAAoB;IAFhC,IAAA,mBAAU,EAAC,cAAc,CAAC;IAC1B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCACQ,uCAAiB;GAH5C,oBAAoB,CAiBhC"}
|
|
@@ -21,12 +21,12 @@ let StageController = class StageController {
|
|
|
21
21
|
this.stageGroupService = stageGroupService;
|
|
22
22
|
}
|
|
23
23
|
async getAllStage(req, body) {
|
|
24
|
-
const {
|
|
25
|
-
return this.stageGroupService.getAllStage(body.stage_group_id,
|
|
24
|
+
const { organization_id } = req.user.userData;
|
|
25
|
+
return this.stageGroupService.getAllStage(body.stage_group_id, organization_id);
|
|
26
26
|
}
|
|
27
27
|
async getStagesWithGroupName(workflow_id, req) {
|
|
28
|
-
const {
|
|
29
|
-
return this.stageGroupService.getStagesWithGroupName(workflow_id,
|
|
28
|
+
const { organization_id } = req.user.userData;
|
|
29
|
+
return this.stageGroupService.getStagesWithGroupName(workflow_id, organization_id);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
exports.StageController = StageController;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/stage.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2DAAgE;AAChE,4DAAwD;AAKjD,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,iBAA+B;QAA/B,sBAAiB,GAAjB,iBAAiB,CAAc;IAC/C,CAAC;IAGE,AAAN,KAAK,CAAC,WAAW,CACR,GAA4B,EAC3B,IAAgC;QAExC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"stage.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/stage.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2DAAgE;AAChE,4DAAwD;AAKjD,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,iBAA+B;QAA/B,sBAAiB,GAAjB,iBAAiB,CAAc;IAC/C,CAAC;IAGE,AAAN,KAAK,CAAC,WAAW,CACR,GAA4B,EAC3B,IAAgC;QAExC,MAAM,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACvC,IAAI,CAAC,cAAc,EACnB,eAAe,CAChB,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,sBAAsB,CACL,WAAmB,EACjC,GAA4B;QAEnC,MAAM,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAClD,WAAW,EACX,eAAe,CAChB,CAAC;IACJ,CAAC;CACF,CAAA;AA9BY,0CAAe;AAOpB;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IAElB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;kDAOR;AAIK;IAFL,IAAA,aAAI,EAAC,yBAAyB,CAAC;IAC/B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;6DAOP;0BA7BU,eAAe;IAF3B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;qCACa,4BAAY;GAHvC,eAAe,CA8B3B"}
|
|
@@ -3,5 +3,5 @@ import { Repository } from 'typeorm';
|
|
|
3
3
|
export declare class StageGroupRepository {
|
|
4
4
|
private readonly stageGroupRepository;
|
|
5
5
|
constructor(stageGroupRepository: Repository<StageGroup>);
|
|
6
|
-
getAllStageGroup(workflow_id: number,
|
|
6
|
+
getAllStageGroup(workflow_id: number, organization_id: number): Promise<StageGroup[]>;
|
|
7
7
|
}
|
|
@@ -21,15 +21,14 @@ let StageGroupRepository = class StageGroupRepository {
|
|
|
21
21
|
constructor(stageGroupRepository) {
|
|
22
22
|
this.stageGroupRepository = stageGroupRepository;
|
|
23
23
|
}
|
|
24
|
-
async getAllStageGroup(workflow_id,
|
|
24
|
+
async getAllStageGroup(workflow_id, organization_id) {
|
|
25
25
|
if (!workflow_id) {
|
|
26
26
|
throw new common_1.BadRequestException('workflow_id is required');
|
|
27
27
|
}
|
|
28
28
|
const result = await this.stageGroupRepository.find({
|
|
29
29
|
where: {
|
|
30
30
|
workflow_id,
|
|
31
|
-
|
|
32
|
-
level_type,
|
|
31
|
+
organization_id,
|
|
33
32
|
},
|
|
34
33
|
order: {
|
|
35
34
|
sequence: 'ASC',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage-group.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage-group.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,qEAA0D;AAC1D,6CAAmD;AACnD,qCAAqC;AAG9B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA4C;QAA5C,yBAAoB,GAApB,oBAAoB,CAAwB;IAC5D,CAAC;IAEJ,KAAK,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"stage-group.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage-group.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,qEAA0D;AAC1D,6CAAmD;AACnD,qCAAqC;AAG9B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA4C;QAA5C,yBAAoB,GAApB,oBAAoB,CAAwB;IAC5D,CAAC;IAEJ,KAAK,CAAC,gBAAgB,CAAC,WAAmB,EAAE,eAAuB;QACjE,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,4BAAmB,CAAC,yBAAyB,CAAC,CAAC;QAC3D,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;YAClD,KAAK,EAAE;gBACL,WAAW;gBACX,eAAe;aAChB;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE,KAAK;aAChB;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,0BAAiB,CACzB,iDAAiD,CAClD,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AA7BY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,+BAAU,CAAC,CAAA;qCACU,oBAAU;GAHxC,oBAAoB,CA6BhC"}
|
|
@@ -3,5 +3,5 @@ import { Stage } from '../entity/stage.entity';
|
|
|
3
3
|
export declare class StageRepository {
|
|
4
4
|
private readonly stageRepository;
|
|
5
5
|
constructor(stageRepository: Repository<Stage>);
|
|
6
|
-
getAllStage(stage_group_id: number,
|
|
6
|
+
getAllStage(stage_group_id: number, organization_id: number): Promise<Stage[]>;
|
|
7
7
|
}
|
|
@@ -21,22 +21,21 @@ let StageRepository = class StageRepository {
|
|
|
21
21
|
constructor(stageRepository) {
|
|
22
22
|
this.stageRepository = stageRepository;
|
|
23
23
|
}
|
|
24
|
-
async getAllStage(stage_group_id,
|
|
24
|
+
async getAllStage(stage_group_id, organization_id) {
|
|
25
25
|
if (!stage_group_id) {
|
|
26
26
|
throw new common_1.BadRequestException('stage_group_id is required');
|
|
27
27
|
}
|
|
28
28
|
const result = await this.stageRepository.find({
|
|
29
29
|
where: {
|
|
30
30
|
stage_group_id,
|
|
31
|
-
|
|
32
|
-
level_type,
|
|
31
|
+
organization_id,
|
|
33
32
|
},
|
|
34
33
|
order: {
|
|
35
34
|
sequence: 'ASC',
|
|
36
35
|
},
|
|
37
36
|
});
|
|
38
37
|
if (!result || result.length === 0) {
|
|
39
|
-
|
|
38
|
+
return [];
|
|
40
39
|
}
|
|
41
40
|
return result;
|
|
42
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AAExB,6CAAmD;AACnD,qCAAqC;AACrC,yDAA+C;AAGxC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,eAAkC;QAAlC,oBAAe,GAAf,eAAe,CAAmB;IAClD,CAAC;IAEJ,KAAK,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"stage.repository.js","sourceRoot":"","sources":["../../../../src/module/workflow/repository/stage.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKwB;AAExB,6CAAmD;AACnD,qCAAqC;AACrC,yDAA+C;AAGxC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,eAAkC;QAAlC,oBAAe,GAAf,eAAe,CAAmB;IAClD,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,cAAsB,EAAE,eAAuB;QAC/D,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,4BAAmB,CAAC,4BAA4B,CAAC,CAAC;QAC9D,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7C,KAAK,EAAE;gBACL,cAAc;gBACd,eAAe;aAChB;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE,KAAK;aAChB;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AA3BY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,oBAAK,CAAC,CAAA;qCACU,oBAAU;GAHnC,eAAe,CA2B3B"}
|
|
@@ -9,7 +9,7 @@ export declare class StageGroupService extends EntityServiceImpl {
|
|
|
9
9
|
private readonly stageService;
|
|
10
10
|
private readonly dataSource;
|
|
11
11
|
constructor(stageGroupRepository: StageGroupRepository, stageService: StageService, dataSource: DataSource);
|
|
12
|
-
getAllStageGroup(workflow_id: number,
|
|
12
|
+
getAllStageGroup(workflow_id: number, organization_id: number): Promise<import("../entity/stage-group.entity").StageGroup[]>;
|
|
13
13
|
updateEntity(entityData: BaseEntity, loggedInUser: UserData): Promise<any>;
|
|
14
14
|
getEntityData(entityType: string, id: number, loggedInUser?: UserData): Promise<BaseEntity | null>;
|
|
15
15
|
deleteEntity(entityType: string, id: number, loggedInUser: UserData): Promise<any>;
|
|
@@ -25,8 +25,8 @@ let StageGroupService = class StageGroupService extends entity_service_impl_serv
|
|
|
25
25
|
this.stageService = stageService;
|
|
26
26
|
this.dataSource = dataSource;
|
|
27
27
|
}
|
|
28
|
-
async getAllStageGroup(workflow_id,
|
|
29
|
-
return await this.stageGroupRepository.getAllStageGroup(workflow_id,
|
|
28
|
+
async getAllStageGroup(workflow_id, organization_id) {
|
|
29
|
+
return await this.stageGroupRepository.getAllStageGroup(workflow_id, organization_id);
|
|
30
30
|
}
|
|
31
31
|
async updateEntity(entityData, loggedInUser) {
|
|
32
32
|
return await super.updateEntity(entityData, loggedInUser);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage-group.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage-group.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,gGAAwF;AACxF,iFAA4E;AAG5E,mDAA+C;AAC/C,qCAAqC;AAG9B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YACmB,oBAA0C,EAE1C,YAA0B,EAC1B,UAAsB;QAEvC,KAAK,EAAE,CAAC;QALS,yBAAoB,GAApB,oBAAoB,CAAsB;QAE1C,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAY;IAGzC,CAAC;IACD,KAAK,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"stage-group.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage-group.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,gGAAwF;AACxF,iFAA4E;AAG5E,mDAA+C;AAC/C,qCAAqC;AAG9B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YACmB,oBAA0C,EAE1C,YAA0B,EAC1B,UAAsB;QAEvC,KAAK,EAAE,CAAC;QALS,yBAAoB,GAApB,oBAAoB,CAAsB;QAE1C,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAY;IAGzC,CAAC;IACD,KAAK,CAAC,gBAAgB,CAAC,WAAmB,EAAE,eAAuB;QACjE,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CACrD,WAAW,EACX,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB;QAEtB,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,YAAuB;QAEvB,OAAO,MAAM,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAkB,EAClB,EAAU,EACV,YAAsB;QAEtB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAC7C,wFAAwF,EACxF,CAAC,EAAE,EAAE,YAAY,CAAC,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CACrD,CAAC;QAEF,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3B,KAAK,MAAM,KAAK,IAAI,WAAW,EAAE,CAAC;gBAChC,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;YACtE,CAAC;QACH,CAAC;QAED,MAAM,gBAAgB,GAAG,MAAM,KAAK,CAAC,YAAY,CAC/C,UAAU,EACV,EAAE,EACF,YAAY,CACb,CAAC;QAEF,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF,CAAA;AAvDY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;qCADgB,6CAAoB;QAE5B,4BAAY;QACd,oBAAU;GAL9B,iBAAiB,CAuD7B"}
|
|
@@ -11,9 +11,9 @@ export declare class StageService extends EntityServiceImpl {
|
|
|
11
11
|
private readonly dataSource;
|
|
12
12
|
private readonly actionService;
|
|
13
13
|
constructor(stageRepository: StageRepository, stageGroupRepository: StageGroupRepository, dataSource: DataSource, actionService: ActionService);
|
|
14
|
-
getAllStage(stage_group_id: number,
|
|
14
|
+
getAllStage(stage_group_id: number, organization_id: number): Promise<import("../entity/stage.entity").Stage[]>;
|
|
15
15
|
updateEntity(entityData: BaseEntity, loggedInUser: UserData): Promise<any>;
|
|
16
16
|
getEntityData(entityType: string, id: number, loggedInUser?: UserData): Promise<BaseEntity | null>;
|
|
17
17
|
deleteEntity(entityType: string, id: number, loggedInUser: UserData): Promise<any>;
|
|
18
|
-
getStagesWithGroupName(workflow_id: number,
|
|
18
|
+
getStagesWithGroupName(workflow_id: number, organization_id: number): Promise<any>;
|
|
19
19
|
}
|
|
@@ -27,8 +27,8 @@ let StageService = class StageService extends entity_service_impl_service_1.Enti
|
|
|
27
27
|
this.dataSource = dataSource;
|
|
28
28
|
this.actionService = actionService;
|
|
29
29
|
}
|
|
30
|
-
async getAllStage(stage_group_id,
|
|
31
|
-
return await this.stageRepository.getAllStage(stage_group_id,
|
|
30
|
+
async getAllStage(stage_group_id, organization_id) {
|
|
31
|
+
return await this.stageRepository.getAllStage(stage_group_id, organization_id);
|
|
32
32
|
}
|
|
33
33
|
async updateEntity(entityData, loggedInUser) {
|
|
34
34
|
return await super.updateEntity(entityData, loggedInUser);
|
|
@@ -46,17 +46,17 @@ let StageService = class StageService extends entity_service_impl_service_1.Enti
|
|
|
46
46
|
const deleteStage = await super.deleteEntity(entityType, id, loggedInUser);
|
|
47
47
|
return deleteStage;
|
|
48
48
|
}
|
|
49
|
-
async getStagesWithGroupName(workflow_id,
|
|
49
|
+
async getStagesWithGroupName(workflow_id, organization_id) {
|
|
50
50
|
if (!workflow_id) {
|
|
51
51
|
throw new common_1.BadRequestException('workflow_id is required');
|
|
52
52
|
}
|
|
53
|
-
const stageGroups = await this.stageGroupRepository.getAllStageGroup(workflow_id,
|
|
53
|
+
const stageGroups = await this.stageGroupRepository.getAllStageGroup(workflow_id, organization_id);
|
|
54
54
|
const stageGroupIds = stageGroups.map((group) => group.id);
|
|
55
55
|
const groupNameMap = new Map(stageGroups.map((group) => [Number(group.id), group.name]));
|
|
56
56
|
const allStages = [];
|
|
57
57
|
for (const groupId of stageGroupIds) {
|
|
58
58
|
try {
|
|
59
|
-
const stages = await this.stageRepository.getAllStage(groupId,
|
|
59
|
+
const stages = await this.stageRepository.getAllStage(groupId, organization_id);
|
|
60
60
|
allStages.push(...stages);
|
|
61
61
|
}
|
|
62
62
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qDAAiD;AACjD,2CAKwB;AACxB,gGAAwF;AAGxF,qEAAiE;AACjE,qCAAqC;AACrC,iFAA4E;AAGrE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+CAAiB;IACjD,YACmB,eAAgC,EAChC,oBAA0C,EAC1C,UAAsB,EAEtB,aAA4B;QAE7C,KAAK,EAAE,CAAC;QANS,oBAAe,GAAf,eAAe,CAAiB;QAChC,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,eAAU,GAAV,UAAU,CAAY;QAEtB,kBAAa,GAAb,aAAa,CAAe;IAG/C,CAAC;IACD,KAAK,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"stage.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,qDAAiD;AACjD,2CAKwB;AACxB,gGAAwF;AAGxF,qEAAiE;AACjE,qCAAqC;AACrC,iFAA4E;AAGrE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+CAAiB;IACjD,YACmB,eAAgC,EAChC,oBAA0C,EAC1C,UAAsB,EAEtB,aAA4B;QAE7C,KAAK,EAAE,CAAC;QANS,oBAAe,GAAf,eAAe,CAAiB;QAChC,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,eAAU,GAAV,UAAU,CAAY;QAEtB,kBAAa,GAAb,aAAa,CAAe;IAG/C,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,cAAsB,EAAE,eAAuB;QAC/D,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,CAC3C,cAAc,EACd,eAAe,CAChB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB;QAEtB,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,YAAuB;QAEvB,OAAO,MAAM,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;IACjE,CAAC;IAED,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