rez_core 2.0.39 → 2.0.41

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.39",
3
+ "version": "2.0.41",
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,
@@ -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,
@@ -174,7 +174,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
174
174
  entityData.modified_date = new Date();
175
175
  if (loggedInUser) {
176
176
  entityData.modified_by = loggedInUser.id;
177
- if (!entityData.organization_id && entityData.parent_type !== 'ORGP')
177
+ if (!entityData.organization_id && entityData.entity_type !== 'ORG')
178
178
  entityData.organization_id = loggedInUser.organization_id;
179
179
  if (!entityData.enterprise_id)
180
180
  entityData.enterprise_id = loggedInUser.enterprise_id;
@@ -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
  }