rez_core 6.5.30 → 6.5.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "6.5.30",
3
+ "version": "6.5.32",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -145,7 +145,7 @@ export class EntityJSONService {
145
145
  id: a.id,
146
146
  name: a.name,
147
147
  data_type: a.data_type,
148
- flat_json_key: a.flat_json_key,
148
+ attribute_key: a.flat_json_key,
149
149
  source: 'main',
150
150
  })),
151
151
  );
@@ -156,7 +156,7 @@ export class EntityJSONService {
156
156
  id: a.id,
157
157
  name: a.name,
158
158
  data_type: a.data_type,
159
- flat_json_key: a.flat_json_key,
159
+ attribute_key: a.flat_json_key,
160
160
  source: 'related',
161
161
  })),
162
162
  );
@@ -167,7 +167,7 @@ export class EntityJSONService {
167
167
  id: l.id,
168
168
  name: l.name,
169
169
  data_type: l.data_type,
170
- flat_json_key: l.target_attribute_key, // attribute_key
170
+ attribute_key: l.target_attribute_key, // attribute_key
171
171
  source: 'linked',
172
172
  })),
173
173
  );
@@ -5,6 +5,7 @@ import { EntityTableDto } from '../dto/entity-table.dto';
5
5
  import { DISPLAY_LIST } from '../../../constant/global.constant';
6
6
  import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
7
7
  import { SavedFilterRepositoryService } from 'src/module/filter/repository/saved-filter.repository';
8
+ import { AttributeMasterService } from './attribute-master.service';
8
9
 
9
10
  @Injectable()
10
11
  export class EntityTableService {
@@ -19,6 +20,7 @@ export class EntityTableService {
19
20
 
20
21
  @Inject(forwardRef(() => SavedFilterRepositoryService))
21
22
  private readonly savedFilterRepoService: SavedFilterRepositoryService,
23
+ private readonly attributeMasterService:AttributeMasterService
22
24
  ) {}
23
25
 
24
26
  async getEntityData(mappedEntityType: string | null, loggedInUser) {
@@ -81,25 +83,10 @@ export class EntityTableService {
81
83
  displayType: string,
82
84
  loggedInUser: any,
83
85
  ) {
84
- // const entityTable = await this.findByEntityTypeAndListTypeAndDisplayType(
85
- // entityType,
86
- // listType,
87
- // displayType,
88
- // loggedInUser?.organization_id,
89
- // );
90
- // const entityTableDto = entityTable as EntityTableDto;
91
- let entityTableDto;
92
-
93
- // if (entityTable) {
94
- // entityTableDto.column_list = this.entityJSONService.getAttributesByMappedEntityType(
95
- // entityType,
96
- // loggedInUser,
97
- // );
98
- // await this.entityTableColumnRepository.findByParentIdAndParentType(
99
- // entityTable.id,
100
- // entityTable.entity_type,
101
- // loggedInUser.organization_id,
102
- // );
86
+ let entityTableDto: any = {};
87
+
88
+ entityTableDto.column_list = await this.attributeMasterService.getAttributes(entityType,loggedInUser)
89
+
103
90
  entityTableDto.operation_list = {
104
91
  text: await this.listMasterService.getDropdownOptions(
105
92
  'OPT',