rez_core 2.0.40 → 2.0.42

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": "2.0.40",
3
+ "version": "2.0.42",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -192,7 +192,6 @@ export class FilterService {
192
192
  throw new BadRequestException(`Saved filter not found for code: ${code}`);
193
193
  }
194
194
 
195
- console.log(savedFilter);
196
195
  return savedFilter;
197
196
  }
198
197
 
@@ -76,7 +76,6 @@ export class ListMasterService {
76
76
  if (!apiRegistry) return [];
77
77
 
78
78
  const url = `${apiRegistry.base_url}${apiRegistry.endpoint.replace(/{{(.*?)}}/g, (_, key) => params?.[key.trim()] || '')}`;
79
- console.log(url);
80
79
  const payload = this.injectDynamicParams(
81
80
  apiRegistry.request_payload_schema,
82
81
  params,
@@ -110,7 +110,6 @@ export class EntityController {
110
110
  @Req() req: Request & { user: any },
111
111
  ) {
112
112
  let loggedInUser = req.user.userData;
113
- console.log(loggedInUser," loggedInUser");
114
113
  // let loggedInUser = await this.entityService.getEntityData(
115
114
  // ENTITYTYPE_USER,
116
115
  // requestedUser.userId,
@@ -121,18 +120,14 @@ export class EntityController {
121
120
  );
122
121
  }
123
122
 
124
- console.log(entityType,"entityType");
125
123
  const entityMaster =
126
124
  await this.entityMasterService.getEntityData(entityType);
127
- console.log(entityMaster, "entityMaster");
128
125
  const entityService =
129
126
  await this.reflectionHelper.getBean<EntityServiceImpl>(
130
127
  entityMaster.entity_service,
131
128
  );
132
- console.log(entityService, "entityService");
133
129
  if (entityService) {
134
130
  let existingEntity = await entityService.getEntityData(entityType, id);
135
- console.log(existingEntity, "existingEntity");
136
131
  if (!existingEntity) {
137
132
  }
138
133
  // let mergeEntity = JsonUtil.merge(existingEntity, entityData);
@@ -24,7 +24,6 @@ export class MetaController {
24
24
  @Req() req: Request & { user: any },
25
25
  ) {
26
26
  const userId = req.user.userData?.id;
27
- console.log(userId);
28
27
  let entityTableDto =
29
28
  await this.entityTableService.getTableMetaDataForListing(
30
29
  entityType,
@@ -117,12 +117,10 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
117
117
  id: number,
118
118
  ): Promise<BaseEntity | null> {
119
119
  const entityData = await this.entityMasterService.getEntityData(entityType);
120
- console.log(entityData, 'entityData in getEntityData');
121
120
 
122
121
  const repoService = this.reflectionHelper.getRepoService(
123
122
  entityData.entity_data_class,
124
123
  );
125
- console.log(repoService, 'repoService in getEntityData');
126
124
  if (!repoService) {
127
125
  throw new Error(
128
126
  `Repository service not found for entityType: ${entityType}`,
@@ -14,7 +14,7 @@ export class ViewMasterService extends EntityServiceImpl {
14
14
  constructor(
15
15
  private readonly sectionMasterService: SectionMasterService,
16
16
  private readonly fieldGroupService: FieldGroupService,
17
- private readonly viewMasterRepoService: ViewMaterRespository
17
+ private readonly viewMasterRepoService: ViewMaterRespository,
18
18
  ) {
19
19
  super();
20
20
  }
@@ -56,7 +56,6 @@ export class ViewMasterService extends EntityServiceImpl {
56
56
  );
57
57
 
58
58
  const fieldGroups = step.fieldsGroup;
59
- console.log('fieldGroups', fieldGroups);
60
59
 
61
60
  for (var fieldGroup of fieldGroups) {
62
61
  let fieldsGroup = new FieldGroup();
@@ -73,7 +72,7 @@ export class ViewMasterService extends EntityServiceImpl {
73
72
  );
74
73
  }
75
74
  }
76
- }
75
+ }
77
76
  return savedEntity;
78
77
  }
79
78
 
@@ -85,18 +84,20 @@ export class ViewMasterService extends EntityServiceImpl {
85
84
  }
86
85
 
87
86
  async getEntityJson(entityType: string, type: string) {
87
+ const res = await this.viewMasterRepoService.getEntityJson(
88
+ entityType,
89
+ type,
90
+ );
88
91
 
89
- const res= await this.viewMasterRepoService.getEntityJson(entityType,type)
90
-
91
- if(type=="form"){
92
+ if (type == 'form') {
92
93
  return {
93
- formLayoutJson:res?.published_form_layout,
94
- formFieldJson:res?.published_form_fields
95
- }
96
- }else{
94
+ formLayoutJson: res?.published_form_layout,
95
+ formFieldJson: res?.published_form_fields,
96
+ };
97
+ } else {
97
98
  return {
98
- metaJson:res?.meta_json
99
- }
99
+ metaJson: res?.meta_json,
100
+ };
100
101
  }
101
102
  }
102
103
  }