rez_core 4.0.120 → 4.0.121
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/config/config.module.js +3 -2
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/database.config.d.ts +1 -1
- package/dist/config/database.config.js +15 -12
- package/dist/config/database.config.js.map +1 -1
- package/dist/main.js +10 -17
- package/dist/main.js.map +1 -1
- package/dist/module/auth/auth.module.js +0 -1
- package/dist/module/auth/auth.module.js.map +1 -1
- package/dist/module/enterprise/enterprise.module.js +25 -7
- package/dist/module/enterprise/enterprise.module.js.map +1 -1
- package/dist/module/enterprise/entity/brand.entity.d.ts +0 -0
- package/dist/module/enterprise/entity/brand.entity.js +1 -0
- package/dist/module/enterprise/entity/brand.entity.js.map +1 -0
- package/dist/module/enterprise/entity/school.entity.d.ts +0 -0
- package/dist/module/enterprise/entity/school.entity.js +1 -0
- package/dist/module/enterprise/entity/school.entity.js.map +1 -0
- package/dist/module/enterprise/repository/brand.repository.d.ts +0 -0
- package/dist/module/enterprise/repository/brand.repository.js +1 -0
- package/dist/module/enterprise/repository/brand.repository.js.map +1 -0
- package/dist/module/enterprise/service/brand-profile.service.d.ts +4 -0
- package/dist/module/enterprise/service/brand-profile.service.js +25 -0
- package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
- package/dist/module/enterprise/service/brand.service.d.ts +4 -0
- package/dist/module/enterprise/service/brand.service.js +40 -1
- package/dist/module/enterprise/service/brand.service.js.map +1 -1
- package/dist/module/enterprise/service/organization.service.d.ts +6 -4
- package/dist/module/enterprise/service/organization.service.js +9 -5
- package/dist/module/enterprise/service/organization.service.js.map +1 -1
- package/dist/module/enterprise/service/school.service.d.ts +3 -0
- package/dist/module/enterprise/service/school.service.js +18 -0
- package/dist/module/enterprise/service/school.service.js.map +1 -0
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/dto/filter-request.dto.d.ts +0 -1
- package/dist/module/filter/service/filter-evaluator.service.js +0 -1
- package/dist/module/filter/service/filter-evaluator.service.js.map +1 -1
- package/dist/module/integration/entity/integration-config.entity.js +3 -3
- package/dist/module/integration/entity/integration-config.entity.js.map +1 -1
- package/dist/module/integration/entity/user-integration.entity.js +3 -3
- package/dist/module/integration/entity/user-integration.entity.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +3 -3
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/listmaster/repository/list-master-items.repository.js +1 -1
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +1 -2
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/mapper/dto/field-mapper.dto.d.ts +1 -0
- package/dist/module/mapper/dto/field-mapper.dto.js.map +1 -1
- package/dist/module/mapper/entity/field-mapper.entity.js +1 -1
- package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
- package/dist/module/meta/controller/media.controller.js +1 -1
- package/dist/module/meta/controller/media.controller.js.map +1 -1
- package/dist/module/meta/entity/brand-profile.entity.d.ts +3 -0
- package/dist/module/meta/entity/brand-profile.entity.js +18 -0
- package/dist/module/meta/entity/brand-profile.entity.js.map +1 -0
- package/dist/module/meta/entity/entity-master.entity.js +1 -1
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity/field-group.entity.d.ts +0 -0
- package/dist/module/meta/entity/field-group.entity.js +1 -0
- package/dist/module/meta/entity/field-group.entity.js.map +1 -0
- package/dist/module/meta/entity/school.entity.d.ts +8 -0
- package/dist/module/meta/entity/school.entity.js +44 -0
- package/dist/module/meta/entity/school.entity.js.map +1 -0
- package/dist/module/meta/entity/schoolAddress.entity.d.ts +9 -0
- package/dist/module/meta/entity/schoolAddress.entity.js +48 -0
- package/dist/module/meta/entity/schoolAddress.entity.js.map +1 -0
- package/dist/module/meta/entity/section-master.entity.d.ts +0 -0
- package/dist/module/meta/entity/section-master.entity.js +1 -0
- package/dist/module/meta/entity/section-master.entity.js.map +1 -0
- package/dist/module/meta/entity/user-app-mapping.entity.d.ts +0 -0
- package/dist/module/meta/entity/user-app-mapping.entity.js +1 -0
- package/dist/module/meta/entity/user-app-mapping.entity.js.map +1 -0
- package/dist/module/meta/entity.module.js +6 -0
- package/dist/module/meta/entity.module.js.map +1 -1
- package/dist/module/meta/service/attribute-master.service.js +1 -1
- package/dist/module/meta/service/attribute-master.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +1 -3
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/meta/service/entity-validation.service.js.map +1 -1
- package/dist/module/module/module.module.js.map +1 -1
- package/dist/module/module/repository/module-access.repository.js +1 -0
- package/dist/module/module/repository/module-access.repository.js.map +1 -1
- package/dist/module/module/service/module-access.service.js +1 -7
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/notification/service/email.service.js +5 -10
- package/dist/module/notification/service/email.service.js.map +1 -1
- package/dist/module/user/service/user-session.service.js.map +1 -1
- package/dist/module/user/service/user.service.d.ts +0 -4
- package/dist/module/user/service/user.service.js +0 -104
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/module/workflow/entity/comm-template.entity.js +1 -1
- package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
- package/dist/module/workflow/repository/activity-log.repository.d.ts +3 -2
- package/dist/module/workflow/repository/activity-log.repository.js +3 -2
- package/dist/module/workflow/repository/activity-log.repository.js.map +1 -1
- package/dist/module/workflow/repository/task.repository.js +0 -2
- package/dist/module/workflow/repository/task.repository.js.map +1 -1
- package/dist/resources/dev.properties.yaml +31 -0
- package/dist/resources/local.properties.yaml +27 -0
- package/dist/resources/uat.properties.yaml +31 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/docs/modules/integration.md +3 -3
- package/package.json +2 -1
- package/src/config/config.module.ts +3 -4
- package/src/config/database.config.ts +32 -8
- package/src/module/integration/entity/integration-config.entity.ts +3 -3
- package/src/module/integration/entity/user-integration.entity.ts +3 -3
- package/src/module/mapper/entity/field-mapper.entity.ts +1 -1
- package/src/module/meta/entity/entity-master.entity.ts +1 -1
- package/src/module/meta/service/attribute-master.service.ts +1 -1
- package/src/module/workflow/entity/comm-template.entity.ts +1 -1
- package/src/resources/dev.properties.yaml +4 -3
- package/dist/core.module.d.ts +0 -4
- package/dist/core.module.js +0 -79
- package/dist/core.module.js.map +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/dist/table.config.d.ts +0 -40
- package/dist/table.config.js +0 -128
- package/dist/table.config.js.map +0 -1
|
@@ -9,8 +9,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.DatabaseModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
-
const config_1 = require("@nestjs/config");
|
|
13
12
|
const database_config_1 = require("./database.config");
|
|
13
|
+
const config_1 = require("@nestjs/config");
|
|
14
14
|
let DatabaseModule = class DatabaseModule {
|
|
15
15
|
};
|
|
16
16
|
exports.DatabaseModule = DatabaseModule;
|
|
@@ -19,10 +19,11 @@ exports.DatabaseModule = DatabaseModule = __decorate([
|
|
|
19
19
|
(0, common_1.Module)({
|
|
20
20
|
imports: [
|
|
21
21
|
typeorm_1.TypeOrmModule.forRootAsync({
|
|
22
|
-
useClass: database_config_1.
|
|
22
|
+
useClass: database_config_1.PostgresConfiguration,
|
|
23
23
|
}),
|
|
24
24
|
config_1.ConfigModule.forRoot({ isGlobal: true }),
|
|
25
25
|
],
|
|
26
|
+
providers: [database_config_1.PostgresConfiguration],
|
|
26
27
|
exports: [typeorm_1.TypeOrmModule],
|
|
27
28
|
})
|
|
28
29
|
], DatabaseModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.module.js","sourceRoot":"","sources":["../../src/config/config.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAgD;AAChD,6CAAgD;
|
|
1
|
+
{"version":3,"file":"config.module.js","sourceRoot":"","sources":["../../src/config/config.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAgD;AAChD,6CAAgD;AAChD,uDAA0D;AAC1D,2CAA8C;AAavC,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAX1B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,YAAY,CAAC;gBACzB,QAAQ,EAAE,uCAAqB;aAChC,CAAC;YACF,qBAAY,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SACzC;QACD,SAAS,EAAE,CAAC,uCAAqB,CAAC;QAClC,OAAO,EAAE,CAAC,uBAAa,CAAC;KACzB,CAAC;GACW,cAAc,CAAG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConfigService } from '@nestjs/config';
|
|
2
2
|
import { TypeOrmModuleOptions, TypeOrmOptionsFactory } from '@nestjs/typeorm';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class PostgresConfiguration implements TypeOrmOptionsFactory {
|
|
4
4
|
private configService;
|
|
5
5
|
constructor(configService: ConfigService);
|
|
6
6
|
createTypeOrmOptions(): TypeOrmModuleOptions;
|
|
@@ -9,31 +9,34 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.PostgresConfiguration = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const config_1 = require("@nestjs/config");
|
|
15
|
-
let
|
|
15
|
+
let PostgresConfiguration = class PostgresConfiguration {
|
|
16
16
|
constructor(configService) {
|
|
17
17
|
this.configService = configService;
|
|
18
18
|
}
|
|
19
19
|
createTypeOrmOptions() {
|
|
20
20
|
return {
|
|
21
|
-
type: '
|
|
22
|
-
host: this.configService.get('DB_HOST') || '
|
|
23
|
-
port: parseInt(this.configService.get('DB_PORT') || '
|
|
24
|
-
username: this.configService.get('DB_USER') || '
|
|
25
|
-
password: this.configService.get('DB_PASS') || '
|
|
21
|
+
type: 'postgres',
|
|
22
|
+
host: this.configService.get('DB_HOST') || '127.0.0.1',
|
|
23
|
+
port: parseInt(this.configService.get('DB_PORT') || '5432', 10),
|
|
24
|
+
username: this.configService.get('DB_USER') || 'postgres',
|
|
25
|
+
password: this.configService.get('DB_PASS') || 'postgres',
|
|
26
26
|
database: this.configService.get('DB_NAME') || 'core',
|
|
27
|
+
schema: this.configService.get('DB_SCHEMA') || 'package',
|
|
27
28
|
entities: [__dirname + '/../module/**/*.entity.{ts,js}'],
|
|
28
|
-
synchronize:
|
|
29
|
+
synchronize: true,
|
|
29
30
|
autoLoadEntities: true,
|
|
30
|
-
|
|
31
|
+
extra: {
|
|
32
|
+
max: parseInt(this.configService.get('PG_POOL_MAX') || '5', 10),
|
|
33
|
+
},
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
};
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
37
|
+
exports.PostgresConfiguration = PostgresConfiguration;
|
|
38
|
+
exports.PostgresConfiguration = PostgresConfiguration = __decorate([
|
|
36
39
|
(0, common_1.Injectable)(),
|
|
37
40
|
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
38
|
-
],
|
|
41
|
+
], PostgresConfiguration);
|
|
39
42
|
//# sourceMappingURL=database.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.config.js","sourceRoot":"","sources":["../../src/config/database.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;
|
|
1
|
+
{"version":3,"file":"database.config.js","sourceRoot":"","sources":["../../src/config/database.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAwBxC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAEpD,oBAAoB;QAClB,OAAO;YACL,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,WAAW;YACtD,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,EAAE,CAAC;YAC/D,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,UAAU;YACzD,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,UAAU;YACzD,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,MAAM;YACrD,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,SAAS;YACxD,QAAQ,EAAE,CAAC,SAAS,GAAG,gCAAgC,CAAC;YACxD,WAAW,EAAE,IAAI;YACjB,gBAAgB,EAAE,IAAI;YAEtB,KAAK,EAAE;gBACL,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,GAAG,EAAE,EAAE,CAAC;aAChE;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AArBY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;qCAEwB,sBAAa;GADrC,qBAAqB,CAqBjC"}
|
package/dist/main.js
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const core_1 = require("@nestjs/core");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const dotenv_1 = require("dotenv");
|
|
7
|
-
(0, dotenv_1.config)();
|
|
4
|
+
const app_module_1 = require("./app.module");
|
|
5
|
+
const config_1 = require("@nestjs/config");
|
|
8
6
|
async function bootstrap() {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
database: process.env.DB_NAME || 'core',
|
|
17
|
-
autoLoadEntities: true,
|
|
18
|
-
synchronize: true,
|
|
19
|
-
}),
|
|
7
|
+
const app = await core_1.NestFactory.create(app_module_1.AppModule);
|
|
8
|
+
const config = app.get(config_1.ConfigService);
|
|
9
|
+
const port = config.get('PORT');
|
|
10
|
+
app.enableCors({
|
|
11
|
+
origin: 'http://localhost:3000',
|
|
12
|
+
methods: ['GET'],
|
|
13
|
+
credentials: true,
|
|
20
14
|
});
|
|
21
|
-
|
|
22
|
-
await app.listen(5001);
|
|
15
|
+
await app.listen(port ?? 5001);
|
|
23
16
|
}
|
|
24
17
|
bootstrap();
|
|
25
18
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,6CAAyC;AACzC,2CAA+C;AAE/C,KAAK,UAAU,SAAS;IACtB,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAC,sBAAS,CAAC,CAAC;IAChD,MAAM,MAAM,GAAkB,GAAG,CAAC,GAAG,CAAC,sBAAa,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAS,MAAM,CAAC,CAAC;IAkBxC,GAAG,CAAC,UAAU,CAAC;QACb,MAAM,EAAE,uBAAuB;QAC/B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC;IAEH,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,EAAE,CAAC"}
|
|
@@ -26,7 +26,6 @@ exports.AuthModule = AuthModule;
|
|
|
26
26
|
exports.AuthModule = AuthModule = __decorate([
|
|
27
27
|
(0, common_1.Module)({
|
|
28
28
|
imports: [
|
|
29
|
-
config_1.ConfigModule,
|
|
30
29
|
passport_1.PassportModule.register({ defaultStrategy: 'jwt' }),
|
|
31
30
|
jwt_1.JwtModule.registerAsync({
|
|
32
31
|
imports: [config_1.ConfigModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../src/module/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA6D;AAC7D,qCAAwC;AACxC,6CAAgD;AAChD,4DAAwD;AACxD,wDAAwD;AACxD,kDAAkD;AAElD,+CAAkD;AAClD,4EAAiE;AACjE,kEAA8D;AAC9D,oDAAiD;AACjD,0DAAsD;AACtD,kEAA8D;
|
|
1
|
+
{"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../src/module/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,2CAA6D;AAC7D,qCAAwC;AACxC,6CAAgD;AAChD,4DAAwD;AACxD,wDAAwD;AACxD,kDAAkD;AAElD,+CAAkD;AAClD,4EAAiE;AACjE,kEAA8D;AAC9D,oDAAiD;AACjD,0DAAsD;AACtD,kEAA8D;AAkCvD,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IA/BtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,yBAAc,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;YACnD,eAAS,CAAC,aAAa,CAAC;gBACtB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,KAAK,EAAE,aAA4B,EAAE,EAAE;oBACjD,MAAM,aAAa,GAAG,UAAU,CAC9B,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,GAAG,CACzC,CAAC;oBACF,MAAM,eAAe,GAAG,aAAa,GAAG,EAAE,GAAG,EAAE,CAAC;oBAEhD,OAAO;wBACL,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;wBACvC,WAAW,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE;qBAC5C,CAAC;gBACJ,CAAC;aACF,CAAC;YACF,uBAAa,CAAC,UAAU,CAAC,CAAC,iCAAW,CAAC,CAAC;SACxC;QACD,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE;YACT,4BAAc;YACd,0BAAW;YACX,wBAAY;YACZ,gCAAc;YACd,uBAAU;YACV,0BAAW;SACZ;QACD,OAAO,EAAE,CAAC,4BAAc,EAAE,wBAAY,EAAE,uBAAU,EAAE,0BAAW,CAAC;KACjE,CAAC;GACW,UAAU,CAAG"}
|
|
@@ -9,26 +9,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.EnterpriseModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
-
const
|
|
13
|
-
const organization_controller_1 = require("./controller/organization.controller");
|
|
14
|
-
const organization_app_mapping_entity_1 = require("./entity/organization-app-mapping.entity");
|
|
12
|
+
const organization_service_1 = require("./service/organization.service");
|
|
15
13
|
const organization_entity_1 = require("./entity/organization.entity");
|
|
14
|
+
const organization_controller_1 = require("./controller/organization.controller");
|
|
15
|
+
const user_module_1 = require("../user/user.module");
|
|
16
16
|
const organization_app_mapping_service_1 = require("./service/organization-app-mapping.service");
|
|
17
|
-
const
|
|
17
|
+
const organization_app_mapping_entity_1 = require("./entity/organization-app-mapping.entity");
|
|
18
18
|
const utils_module_1 = require("../../utils/utils.module");
|
|
19
|
-
const
|
|
19
|
+
const brand_service_1 = require("./service/brand.service");
|
|
20
20
|
const organization_repository_1 = require("./repository/organization.repository");
|
|
21
|
+
const school_service_1 = require("./service/school.service");
|
|
22
|
+
const entity_module_1 = require("../meta/entity.module");
|
|
21
23
|
const school_repository_1 = require("./repository/school.repository");
|
|
24
|
+
const brand_profile_service_1 = require("./service/brand-profile.service");
|
|
22
25
|
let EnterpriseModule = class EnterpriseModule {
|
|
23
26
|
};
|
|
24
27
|
exports.EnterpriseModule = EnterpriseModule;
|
|
25
28
|
exports.EnterpriseModule = EnterpriseModule = __decorate([
|
|
26
29
|
(0, common_1.Module)({
|
|
27
30
|
imports: [
|
|
28
|
-
typeorm_1.TypeOrmModule.forFeature([
|
|
31
|
+
typeorm_1.TypeOrmModule.forFeature([
|
|
32
|
+
organization_entity_1.OrganizationData,
|
|
33
|
+
organization_app_mapping_entity_1.OrganizationAppMapping,
|
|
34
|
+
]),
|
|
29
35
|
(0, common_1.forwardRef)(() => user_module_1.UserModule),
|
|
30
36
|
utils_module_1.UtilsModule,
|
|
31
|
-
entity_module_1.EntityModule
|
|
37
|
+
entity_module_1.EntityModule
|
|
32
38
|
],
|
|
33
39
|
controllers: [organization_controller_1.OrganizationController],
|
|
34
40
|
providers: [
|
|
@@ -36,6 +42,18 @@ exports.EnterpriseModule = EnterpriseModule = __decorate([
|
|
|
36
42
|
organization_app_mapping_service_1.OrganizationAppMappingService,
|
|
37
43
|
school_repository_1.SchoolRepository,
|
|
38
44
|
organization_repository_1.OrganizationRepository,
|
|
45
|
+
{
|
|
46
|
+
provide: 'BrandService',
|
|
47
|
+
useClass: brand_service_1.BrandService,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
provide: 'BrandProfileService',
|
|
51
|
+
useClass: brand_profile_service_1.BrandProfileService,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
provide: 'SchoolService',
|
|
55
|
+
useClass: school_service_1.SchoolService,
|
|
56
|
+
},
|
|
39
57
|
],
|
|
40
58
|
exports: [organization_service_1.OrganizationService, organization_repository_1.OrganizationRepository],
|
|
41
59
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enterprise.module.js","sourceRoot":"","sources":["../../../src/module/enterprise/enterprise.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"enterprise.module.js","sourceRoot":"","sources":["../../../src/module/enterprise/enterprise.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,yEAAqE;AACrE,sEAAgE;AAChE,kFAA8E;AAC9E,qDAAiD;AACjD,iGAA2F;AAC3F,8FAAkF;AAIlF,2DAAqD;AACrD,2DAAuD;AACvD,kFAA8E;AAC9E,6DAAyD;AACzD,yDAAqD;AACrD,sEAAkE;AAClE,2EAAsE;AAqC/D,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAG,CAAA;AAAnB,4CAAgB;2BAAhB,gBAAgB;IAlC5B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,sCAAgB;gBAChB,wDAAsB;aAGvB,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,0BAAW;YACX,4BAAY;SACb;QACD,WAAW,EAAE,CAAC,gDAAsB,CAAC;QACrC,SAAS,EAAE;YACT,0CAAmB;YACnB,gEAA6B;YAE7B,oCAAgB;YAChB,gDAAsB;YACtB;gBACE,OAAO,EAAE,cAAc;gBACvB,QAAQ,EAAE,4BAAY;aACvB;YACD;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,2CAAmB;aAC9B;YACD;gBACE,OAAO,EAAE,eAAe;gBACxB,QAAQ,EAAE,8BAAa;aACxB;SACF;QACD,OAAO,EAAE,CAAC,0CAAmB,EAAE,gDAAsB,CAAC;KACvD,CAAC;GACW,gBAAgB,CAAG"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=brand.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.entity.js","sourceRoot":"","sources":["../../../../src/module/enterprise/entity/brand.entity.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=school.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"school.entity.js","sourceRoot":"","sources":["../../../../src/module/enterprise/entity/school.entity.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=brand.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.repository.js","sourceRoot":"","sources":["../../../../src/module/enterprise/repository/brand.repository.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.BrandProfileService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
15
|
+
let BrandProfileService = class BrandProfileService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.BrandProfileService = BrandProfileService;
|
|
21
|
+
exports.BrandProfileService = BrandProfileService = __decorate([
|
|
22
|
+
(0, common_1.Injectable)(),
|
|
23
|
+
__metadata("design:paramtypes", [])
|
|
24
|
+
], BrandProfileService);
|
|
25
|
+
//# sourceMappingURL=brand-profile.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-profile.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand-profile.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoD;AAEpD,gGAAwF;AAGjF,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,+CAAiB;IACxD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;CACF,CAAA;AAJY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;;GACA,mBAAmB,CAI/B"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
2
|
export declare class BrandService extends EntityServiceImpl {
|
|
3
|
+
constructor();
|
|
4
|
+
getEntityData(entityType: string, id: number, loggedInUser: any): Promise<any>;
|
|
5
|
+
createEntity(body: any, userData: any): Promise<any>;
|
|
6
|
+
updateEntity(body: any, userData: any): Promise<any>;
|
|
3
7
|
}
|
|
@@ -5,14 +5,53 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.BrandService = void 0;
|
|
10
13
|
const common_1 = require("@nestjs/common");
|
|
11
14
|
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
12
15
|
let BrandService = class BrandService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
async getEntityData(entityType, id, loggedInUser) {
|
|
20
|
+
const brandResponse = await super.getEntityData(entityType, id, loggedInUser);
|
|
21
|
+
return brandResponse;
|
|
22
|
+
}
|
|
23
|
+
async createEntity(body, userData) {
|
|
24
|
+
const { entity_type, ...data } = body;
|
|
25
|
+
const brandData = await super.createEntity({
|
|
26
|
+
...data,
|
|
27
|
+
entity_type: 'ORG',
|
|
28
|
+
type: 'BRN',
|
|
29
|
+
parent_id: userData.organization_id,
|
|
30
|
+
}, userData);
|
|
31
|
+
const brandProfile = await super.createEntity({
|
|
32
|
+
...body,
|
|
33
|
+
parent_id: brandData.id,
|
|
34
|
+
organization_id: brandData.organization_id,
|
|
35
|
+
entity_type: 'BRNP',
|
|
36
|
+
}, userData);
|
|
37
|
+
return brandProfile;
|
|
38
|
+
}
|
|
39
|
+
async updateEntity(body, userData) {
|
|
40
|
+
const { id, entity_type, organization_id, ...newBody } = body;
|
|
41
|
+
const brandProfile = await super.updateEntity(body, userData);
|
|
42
|
+
await super.updateEntity({
|
|
43
|
+
...newBody,
|
|
44
|
+
id: brandProfile.parent_id,
|
|
45
|
+
parent_id: userData.organization_id,
|
|
46
|
+
entity_type: 'ORG',
|
|
47
|
+
type: 'BRN',
|
|
48
|
+
}, userData);
|
|
49
|
+
return brandProfile;
|
|
50
|
+
}
|
|
13
51
|
};
|
|
14
52
|
exports.BrandService = BrandService;
|
|
15
53
|
exports.BrandService = BrandService = __decorate([
|
|
16
|
-
(0, common_1.Injectable)()
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [])
|
|
17
56
|
], BrandService);
|
|
18
57
|
//# sourceMappingURL=brand.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brand.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/brand.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AAGjF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+CAAiB;IACjD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,YAAY;QAEZ,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,UAAU,EACV,EAAE,EACF,YAAY,CACb,CAAC;QAEF,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAS,EAAE,QAAQ;QACpC,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;QAEtC,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,YAAY,CACxC;YACE,GAAG,IAAI;YAEP,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,KAAK;YACX,SAAS,EAAE,QAAQ,CAAC,eAAe;SACpC,EACD,QAAQ,CACT,CAAC;QAIF,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,YAAY,CAC3C;YACE,GAAG,IAAI;YACP,SAAS,EAAE,SAAS,CAAC,EAAE;YACvB,eAAe,EAAE,SAAS,CAAC,eAAe;YAC1C,WAAW,EAAE,MAAM;SACpB,EACD,QAAQ,CACT,CAAC;QAEF,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAS,EAAE,QAAQ;QAEpC,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC;QAE9D,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAG9D,MAAM,KAAK,CAAC,YAAY,CACtB;YACE,GAAG,OAAO;YACV,EAAE,EAAE,YAAY,CAAC,SAAS;YAC1B,SAAS,EAAE,QAAQ,CAAC,eAAe;YACnC,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,KAAK;SACZ,EACD,QAAQ,CACT,CAAC;QAEF,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAA;AApEY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;;GACA,YAAY,CAoExB"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { ClockIDGenService } from 'src/utils/service/clockIDGenUtil.service';
|
|
2
1
|
import { EntityManager, Repository } from 'typeorm';
|
|
3
2
|
import { OrganizationData } from '../entity/organization.entity';
|
|
4
|
-
import {
|
|
3
|
+
import { ClockIDGenService } from 'src/utils/service/clockIDGenUtil.service';
|
|
4
|
+
import { UserService } from 'src/module/user/service/user.service';
|
|
5
5
|
import { SchoolRepository } from '../repository/school.repository';
|
|
6
|
+
import { WBSCodeGenService } from 'src/utils/service/wbsCodeGen.service';
|
|
6
7
|
export declare class OrganizationService {
|
|
7
8
|
private readonly organizationRepository;
|
|
9
|
+
private readonly schoolRepository;
|
|
8
10
|
private readonly idGen;
|
|
9
11
|
private readonly wbcCodeGenService;
|
|
10
|
-
private readonly
|
|
11
|
-
constructor(organizationRepository: Repository<OrganizationData>, idGen: ClockIDGenService, wbcCodeGenService: WBSCodeGenService,
|
|
12
|
+
private readonly userService;
|
|
13
|
+
constructor(organizationRepository: Repository<OrganizationData>, schoolRepository: SchoolRepository, idGen: ClockIDGenService, wbcCodeGenService: WBSCodeGenService, userService: UserService);
|
|
12
14
|
create(organizationDto: Partial<OrganizationData>, manager?: EntityManager): Promise<OrganizationData>;
|
|
13
15
|
findAll(manager?: EntityManager): Promise<OrganizationData[]>;
|
|
14
16
|
findOne(id: number, manager?: EntityManager): Promise<OrganizationData | null>;
|
|
@@ -15,17 +15,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.OrganizationService = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
|
-
const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
|
|
19
18
|
const typeorm_2 = require("typeorm");
|
|
20
19
|
const organization_entity_1 = require("../entity/organization.entity");
|
|
21
|
-
const
|
|
20
|
+
const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
|
|
21
|
+
const user_service_1 = require("../../user/service/user.service");
|
|
22
22
|
const school_repository_1 = require("../repository/school.repository");
|
|
23
|
+
const wbsCodeGen_service_1 = require("../../../utils/service/wbsCodeGen.service");
|
|
23
24
|
let OrganizationService = class OrganizationService {
|
|
24
|
-
constructor(organizationRepository, idGen, wbcCodeGenService,
|
|
25
|
+
constructor(organizationRepository, schoolRepository, idGen, wbcCodeGenService, userService) {
|
|
25
26
|
this.organizationRepository = organizationRepository;
|
|
27
|
+
this.schoolRepository = schoolRepository;
|
|
26
28
|
this.idGen = idGen;
|
|
27
29
|
this.wbcCodeGenService = wbcCodeGenService;
|
|
28
|
-
this.
|
|
30
|
+
this.userService = userService;
|
|
29
31
|
}
|
|
30
32
|
async create(organizationDto, manager) {
|
|
31
33
|
const repo = manager
|
|
@@ -113,9 +115,11 @@ exports.OrganizationService = OrganizationService;
|
|
|
113
115
|
exports.OrganizationService = OrganizationService = __decorate([
|
|
114
116
|
(0, common_1.Injectable)(),
|
|
115
117
|
__param(0, (0, typeorm_1.InjectRepository)(organization_entity_1.OrganizationData)),
|
|
118
|
+
__param(4, (0, common_1.Inject)('UserService')),
|
|
116
119
|
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
120
|
+
school_repository_1.SchoolRepository,
|
|
117
121
|
clockIDGenUtil_service_1.ClockIDGenService,
|
|
118
122
|
wbsCodeGen_service_1.WBSCodeGenService,
|
|
119
|
-
|
|
123
|
+
user_service_1.UserService])
|
|
120
124
|
], OrganizationService);
|
|
121
125
|
//# sourceMappingURL=organization.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/organization.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"organization.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/organization.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,6CAAmD;AACnD,qCAA4D;AAC5D,uEAAiE;AACjE,0FAA6E;AAC7E,kEAAmE;AAGnE,uEAAmE;AACnE,kFAAyE;AAGlE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAEmB,sBAAoD,EAEpD,gBAAkC,EAClC,KAAwB,EACxB,iBAAoC,EACb,WAAwB;QAL/C,2BAAsB,GAAtB,sBAAsB,CAA8B;QAEpD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,UAAK,GAAL,KAAK,CAAmB;QACxB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACb,gBAAW,GAAX,WAAW,CAAa;IAC/D,CAAC;IAEJ,KAAK,CAAC,MAAM,CACV,eAA0C,EAC1C,OAAuB;QAEvB,M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AmB;IAD/B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,sCAAgB,CAAC,CAAA;IAMlC,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCALmB,oBAAU;QAEhB,oCAAgB;QAC3B,0CAAiB;QACL,sCAAiB;QACA,0BAAW;GARvD,mBAAmB,CAwI/B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SchoolService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
12
|
+
let SchoolService = class SchoolService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
13
|
+
};
|
|
14
|
+
exports.SchoolService = SchoolService;
|
|
15
|
+
exports.SchoolService = SchoolService = __decorate([
|
|
16
|
+
(0, common_1.Injectable)()
|
|
17
|
+
], SchoolService);
|
|
18
|
+
//# sourceMappingURL=school.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"school.service.js","sourceRoot":"","sources":["../../../../src/module/enterprise/service/school.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AAGjF,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+CAAiB;CAAG,CAAA;AAA1C,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;GACA,aAAa,CAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.controller.js","sourceRoot":"","sources":["../../../../src/module/filter/controller/filter.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,8DAA0D;AAC1D,0EAAqE;AACrE,2DAAgE;AAGzD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACmB,aAA4B,EAE5B,kBAAsC;QAFtC,kBAAa,GAAb,aAAa,CAAe;QAE5B,uBAAkB,GAAlB,kBAAkB,CAAoB;IACtD,CAAC;IAIE,AAAN,KAAK,CAAC,WAAW,CACP,IAAS,EACY,OAAO,CAAC,EACR,OAAO,EAAE,EAC/B,GAA4B,EAC1B,WAAmC,EACvB,SAAkB,EACpB,OAAgB,EACjB,OAAgB;QAElC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAGvC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,gBAAgB,EAAE,GAAG,WAAW,CAAC;QAEhE,MAAM,EACJ,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,EACf,IAAI,EACJ,MAAM,GACP,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"filter.controller.js","sourceRoot":"","sources":["../../../../src/module/filter/controller/filter.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,8DAA0D;AAC1D,0EAAqE;AACrE,2DAAgE;AAGzD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACmB,aAA4B,EAE5B,kBAAsC;QAFtC,kBAAa,GAAb,aAAa,CAAe;QAE5B,uBAAkB,GAAlB,kBAAkB,CAAoB;IACtD,CAAC;IAIE,AAAN,KAAK,CAAC,WAAW,CACP,IAAS,EACY,OAAO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AAE,qBAAY,CAAC,CAAA;IAC3B,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;IACP,WAAA,IAAA,cAAK,EAAC,YAAY,CAAC,CAAA;IACnB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;IACjB,WAAA,IAAA,cAAK,EAAC,SAAS,CAAC,CAAA;;;;mDA+BlB;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACU,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;qDAE/B;AAIK;IAFL,IAAA,YAAG,EAAC,4BAA4B,CAAC;IACjC,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;;;;4DAIP;2BA/DU,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IAIhB,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;qCADG,8BAAa;QAER,yCAAkB;GAJ9C,gBAAgB,CAgE5B"}
|
|
@@ -19,7 +19,6 @@ let FilterEvaluatorService = class FilterEvaluatorService {
|
|
|
19
19
|
this.filterService = filterService;
|
|
20
20
|
}
|
|
21
21
|
async evaluateTriggerAttributes(oldEntity, newEntity, savedFilterCode) {
|
|
22
|
-
console.log('IN FILTER EVALUATOR SERVICE');
|
|
23
22
|
const triggerFilters = await this.dataSource.query(`SELECT *
|
|
24
23
|
FROM frm_saved_filter_detail
|
|
25
24
|
WHERE mapped_filter_code = ?`, [savedFilterCode]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-evaluator.service.js","sourceRoot":"","sources":["../../../../src/module/filter/service/filter-evaluator.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AAErC,qDAAiD;AAG1C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,UAAsB,EACtB,aAA4B;QAD5B,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IASJ,KAAK,CAAC,yBAAyB,CAC7B,SAAqC,EACrC,SAA8B,EAC9B,eAAuB;QAGvB,
|
|
1
|
+
{"version":3,"file":"filter-evaluator.service.js","sourceRoot":"","sources":["../../../../src/module/filter/service/filter-evaluator.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AAErC,qDAAiD;AAG1C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YACmB,UAAsB,EACtB,aAA4B;QAD5B,eAAU,GAAV,UAAU,CAAY;QACtB,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IASJ,KAAK,CAAC,yBAAyB,CAC7B,SAAqC,EACrC,SAA8B,EAC9B,eAAuB;QAGvB,MAAM,cAAc,GAAwB,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACrE;;oCAE8B,EAC9B,CAAC,eAAe,CAAC,CAClB,CAAC;QAGF,IAAI,CAAC,cAAc,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,QAAQ,GAAG,SAAS,IAAI,EAAE,CAAC;QAGjC,KAAK,MAAM,MAAM,IAAI,cAAc,EAAE,CAAC;YACpC,MAAM,IAAI,GAAG,MAAM,CAAC,gBAAgB,CAAC;YACrC,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC;YAE1C,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9B,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;YAG/B,IAAI,MAAM,KAAK,MAAM,IAAI,CAAC,CAAC,aAAa,IAAI,MAAM,IAAI,aAAa,CAAC,EAAE,CAAC;gBACrE,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QAGD,OAAO,KAAK,CAAC;IACf,CAAC;IASD,KAAK,CAAC,gBAAgB,CACpB,UAAkB,EAClB,kBAA0B,EAC1B,QAAgB,EAChB,YAAiB;QAEjB,IAAI,CAAC,kBAAkB;YAAE,OAAO,IAAI,CAAC;QAErC,MAAM,aAAa,GAAG;YACpB,WAAW,EAAE,UAAU;YACvB,eAAe,EAAE,kBAAkB;YACnC,WAAW,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE;YAC7B,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,YAAY,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE;SACjD,CAAC;QAET,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC;QAE1E,OAAO,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC,CAAC;IAC/C,CAAC;CACF,CAAA;AA/EY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAGoB,oBAAU;QACP,8BAAa;GAHpC,sBAAsB,CA+ElC"}
|
|
@@ -43,7 +43,7 @@ __decorate([
|
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], IntegrationConfig.prototype, "level_type", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ name: 'status', type: '
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'status', type: 'int', default: 1 }),
|
|
47
47
|
__metadata("design:type", Number)
|
|
48
48
|
], IntegrationConfig.prototype, "status", void 0);
|
|
49
49
|
__decorate([
|
|
@@ -61,14 +61,14 @@ __decorate([
|
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, typeorm_1.CreateDateColumn)({
|
|
63
63
|
name: 'created_at',
|
|
64
|
-
type: '
|
|
64
|
+
type: 'timestamp',
|
|
65
65
|
}),
|
|
66
66
|
__metadata("design:type", Date)
|
|
67
67
|
], IntegrationConfig.prototype, "created_at", void 0);
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, typeorm_1.UpdateDateColumn)({
|
|
70
70
|
name: 'updated_at',
|
|
71
|
-
type: '
|
|
71
|
+
type: 'timestamp',
|
|
72
72
|
}),
|
|
73
73
|
__metadata("design:type", Date)
|
|
74
74
|
], IntegrationConfig.prototype, "updated_at", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-config.entity.js","sourceRoot":"","sources":["../../../../src/module/integration/entity/integration-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAGV,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAuG7B,CAAA;AAvGY,8CAAiB;AAE5B;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6CACzC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mDAC1C;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DACzC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;+DAC1C;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;gEACzB;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACzB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qDAC1C;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"integration-config.entity.js","sourceRoot":"","sources":["../../../../src/module/integration/entity/integration-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAGV,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAuG7B,CAAA;AAvGY,8CAAiB;AAE5B;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;6CACzC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;mDAC1C;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;2DACzC;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,sBAAsB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;+DAC1C;AAG7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;gEACzB;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDACzB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qDAC1C;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACrC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACrC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDAC5C;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDA2D5C;AAMF;IAJC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,WAAW;KAClB,CAAC;8BACU,IAAI;qDAAC;AAMjB;IAJC,IAAA,0BAAgB,EAAC;QAChB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,WAAW;KAClB,CAAC;8BACU,IAAI;qDAAC;4BAtGN,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;GAC9B,iBAAiB,CAuG7B"}
|
|
@@ -40,7 +40,7 @@ __decorate([
|
|
|
40
40
|
__metadata("design:type", Object)
|
|
41
41
|
], UserIntegration.prototype, "external_user_data", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ name: 'status', type: '
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'status', type: 'int', default: 1 }),
|
|
44
44
|
__metadata("design:type", Number)
|
|
45
45
|
], UserIntegration.prototype, "status", void 0);
|
|
46
46
|
__decorate([
|
|
@@ -50,14 +50,14 @@ __decorate([
|
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, typeorm_1.CreateDateColumn)({
|
|
52
52
|
name: 'created_at',
|
|
53
|
-
type: '
|
|
53
|
+
type: 'timestamp',
|
|
54
54
|
}),
|
|
55
55
|
__metadata("design:type", Date)
|
|
56
56
|
], UserIntegration.prototype, "created_at", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, typeorm_1.UpdateDateColumn)({
|
|
59
59
|
name: 'updated_at',
|
|
60
|
-
type: '
|
|
60
|
+
type: 'timestamp',
|
|
61
61
|
}),
|
|
62
62
|
__metadata("design:type", Date)
|
|
63
63
|
], UserIntegration.prototype, "updated_at", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-integration.entity.js","sourceRoot":"","sources":["../../../../src/module/integration/entity/user-integration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAMV,IAAM,eAAe,GAArB,MAAM,eAAe;CAyD3B,CAAA;AAzDY,0CAAe;AAE1B;IADC,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;2CACzC;AAGX;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;gDACzB;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;8DACzB;AAQ9B;IANC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,IAAI;KACf,CAAC;;yDACuB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2DAoBnE;AAGF;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"user-integration.entity.js","sourceRoot":"","sources":["../../../../src/module/integration/entity/user-integration.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AAMV,IAAM,eAAe,GAArB,MAAM,eAAe;CAyD3B,CAAA;AAzDY,0CAAe;AA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AC7D,IAAA,eAAK,EAAC,CAAC,uBAAuB,CAAC,CAAC;IAChC,IAAA,eAAK,EAAC,CAAC,SAAS,CAAC,CAAC;GACN,eAAe,CAyD3B"}
|
|
@@ -237,9 +237,9 @@ let WrapperService = WrapperService_1 = class WrapperService {
|
|
|
237
237
|
if (payload.template_code) {
|
|
238
238
|
let templates = await this.datasource.query(`SELECT id FROM frm_wf_comm_template
|
|
239
239
|
WHERE code = ?
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
AND level_id = ?
|
|
241
|
+
AND level_type = ?
|
|
242
|
+
LIMIT 1`, [payload.template_code, levelId, levelType]);
|
|
243
243
|
if (templates && templates.length > 0) {
|
|
244
244
|
payload['templateId'] = templates[0].id;
|
|
245
245
|
}
|