rez_core 2.1.94 → 2.1.96
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/listmaster/repository/list-master-items.repository.d.ts +4 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js +11 -0
- package/dist/module/listmaster/repository/list-master-items.repository.js.map +1 -1
- package/dist/module/listmaster/service/list-master.service.js +3 -0
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/meta/repository/entity-table.repository.js +1 -0
- package/dist/module/meta/repository/entity-table.repository.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.js +2 -0
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/listmaster/repository/list-master-items.repository.ts +12 -0
- package/src/module/listmaster/service/list-master.service.ts +6 -0
- package/src/module/meta/repository/entity-table.repository.ts +2 -0
- package/src/module/meta/service/entity-table.service.ts +2 -1
- package/src/resources/dev.properties.yaml +15 -15
package/package.json
CHANGED
|
@@ -32,6 +32,18 @@ export class ListMasterItemsRepository {
|
|
|
32
32
|
return items.map((i) => ({ label: i.name, value: i.id }));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
async findOperatorsByType(type: string, organizationId?: number) {
|
|
36
|
+
const items = await this.repo.find({
|
|
37
|
+
where: {
|
|
38
|
+
listtype: type,
|
|
39
|
+
organization_id: organizationId,
|
|
40
|
+
status: 'ACTIVE',
|
|
41
|
+
},
|
|
42
|
+
order: { sortindex: 'ASC' },
|
|
43
|
+
});
|
|
44
|
+
return items.map((i) => ({ label: i.name, value: i.value }));
|
|
45
|
+
}
|
|
46
|
+
|
|
35
47
|
async findItemByCode(
|
|
36
48
|
code: string,
|
|
37
49
|
organizationId?: number,
|
|
@@ -58,6 +58,7 @@ export class ListMasterService {
|
|
|
58
58
|
loggedInUser?.organization_id,
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
+
console.log(config, 'config');
|
|
61
62
|
if (!config) throw new NotFoundException(`Type ${type} not found`);
|
|
62
63
|
|
|
63
64
|
switch (config.source) {
|
|
@@ -75,6 +76,11 @@ export class ListMasterService {
|
|
|
75
76
|
loggedInUser?.organization_id,
|
|
76
77
|
);
|
|
77
78
|
|
|
79
|
+
case 'operator':
|
|
80
|
+
return this.listItemsRepo.findOperatorsByType(
|
|
81
|
+
type,
|
|
82
|
+
loggedInUser?.organization_id,
|
|
83
|
+
);
|
|
78
84
|
case 'custom':
|
|
79
85
|
return this.fetchFromExternalSource(config.custom_source_id, params);
|
|
80
86
|
|
|
@@ -81,13 +81,14 @@ export class EntityTableService {
|
|
|
81
81
|
displayType: string,
|
|
82
82
|
loggedInUser: any,
|
|
83
83
|
) {
|
|
84
|
+
console.log(entityType, listType, displayType, loggedInUser);
|
|
84
85
|
let entityTable = await this.findByEntityTypeAndListTypeAndDisplayType(
|
|
85
86
|
entityType,
|
|
86
87
|
listType,
|
|
87
88
|
displayType,
|
|
88
89
|
loggedInUser?.organization_id,
|
|
89
90
|
);
|
|
90
|
-
|
|
91
|
+
console.log(entityTable, 'entityTable');
|
|
91
92
|
let entityTableDto = entityTable as EntityTableDto;
|
|
92
93
|
if (entityTable) {
|
|
93
94
|
entityTableDto.column_list =
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# DB_HOST: "13.234.25.234"
|
|
2
|
-
DB_HOST:
|
|
3
|
-
DB_PORT:
|
|
4
|
-
DB_USER:
|
|
5
|
-
DB_PASS:
|
|
6
|
-
DB_NAME:
|
|
7
|
-
MASTER_KEY:
|
|
8
|
-
MASTER_IV:
|
|
9
|
-
SECRET_KEY:
|
|
10
|
-
CLIENT_ID:
|
|
11
|
-
CLIENT_SECRET:
|
|
12
|
-
CALLBACK_URL:
|
|
13
|
-
OTP_EXPIRY:
|
|
14
|
-
OTP_LENGTH:
|
|
15
|
-
VERIFY_OTP:
|
|
16
|
-
DEFAULT_OTP:
|
|
2
|
+
DB_HOST: '13.234.25.234'
|
|
3
|
+
DB_PORT: '3306'
|
|
4
|
+
DB_USER: 'root'
|
|
5
|
+
DB_PASS: 'Rezolut@123'
|
|
6
|
+
DB_NAME: 'core'
|
|
7
|
+
MASTER_KEY: '0QZ2eRJv5oVILYnyBlC+FbSGVQiWKReh'
|
|
8
|
+
MASTER_IV: 'heuUQf5uPVtkotrFAOKUVw=='
|
|
9
|
+
SECRET_KEY: '1hard_to_guess_secret7890a'
|
|
10
|
+
CLIENT_ID: '324529881356-596sc8ksrb9lg01i7sktofqqqf0fv2ug.apps.googleusercontent.com'
|
|
11
|
+
CLIENT_SECRET: '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'
|
|
12
|
+
CALLBACK_URL: 'http://localhost:3000/auth/google/callback'
|
|
13
|
+
OTP_EXPIRY: '10'
|
|
14
|
+
OTP_LENGTH: '6'
|
|
15
|
+
VERIFY_OTP: 'false'
|
|
16
|
+
DEFAULT_OTP: '123456'
|
|
17
17
|
TOKEN_EXPIRY: 1
|
|
18
18
|
# AWS:
|
|
19
19
|
# S3:
|