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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.0.66",
3
+ "version": "2.0.67",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -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> = {},