rez_core 2.0.66 → 2.0.67
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/meta/service/entity-service-impl.service.d.ts +1 -0
- package/dist/module/meta/service/entity-service-impl.service.js +8 -0
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/meta/service/entity-service-impl.service.ts +17 -0
package/package.json
CHANGED
|
@@ -132,6 +132,23 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
132
132
|
return await repoService.findOne({ where: { id: id } });
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
async getEntityDataAll(
|
|
136
|
+
entityType: string,
|
|
137
|
+
type: {},
|
|
138
|
+
): Promise<BaseEntity[] | null> {
|
|
139
|
+
const entityData = await this.entityMasterService.getEntityData(entityType);
|
|
140
|
+
|
|
141
|
+
const repoService = this.reflectionHelper.getRepoService(
|
|
142
|
+
entityData.entity_data_class,
|
|
143
|
+
);
|
|
144
|
+
if (!repoService) {
|
|
145
|
+
throw new Error(
|
|
146
|
+
`Repository service not found for entityType: ${entityType}`,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
return await repoService.find({ where: type });
|
|
150
|
+
}
|
|
151
|
+
|
|
135
152
|
async getEntityList(
|
|
136
153
|
entityType: string,
|
|
137
154
|
filters: Record<string, any> = {},
|