@finos/legend-server-depot
Advanced tools
Comparing version 6.0.62 to 6.0.63
@@ -19,3 +19,5 @@ /** | ||
import type { DepotServerClient } from './DepotServerClient.js'; | ||
import type { PlainObject } from '@finos/legend-shared'; | ||
export declare const retrieveProjectEntitiesWithDependencies: (project: StoreProjectData, versionId: string, depotServerClient: DepotServerClient) => Promise<Entity[]>; | ||
export declare const retrieveProjectEntitiesWithClassifier: (project: StoreProjectData, versionId: string, classifier: string, depotServerClient: DepotServerClient) => Promise<[PlainObject<Entity>[], PlainObject<Entity>[]]>; | ||
//# sourceMappingURL=DepotEntityHelper.d.ts.map |
@@ -26,2 +26,9 @@ /** | ||
}; | ||
export const retrieveProjectEntitiesWithClassifier = async (project, versionId, classifier, depotServerClient) => { | ||
const [entities, dependencyEntities] = await Promise.all([ | ||
depotServerClient.getEntities(project, versionId, classifier), | ||
depotServerClient.getDependencyEntities(project.groupId, project.artifactId, versionId, false, false, classifier), | ||
]); | ||
return [entities, dependencyEntities]; | ||
}; | ||
//# sourceMappingURL=DepotEntityHelper.js.map |
{ | ||
"name": "@finos/legend-server-depot", | ||
"version": "6.0.62", | ||
"version": "6.0.63", | ||
"description": "Legend Depot server client", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@finos/legend-dev-utils": "2.1.24", | ||
"@finos/legend-dev-utils": "2.1.25", | ||
"@jest/globals": "29.7.0", | ||
@@ -50,0 +50,0 @@ "cross-env": "7.0.3", |
@@ -39,1 +39,24 @@ /** | ||
}; | ||
export const retrieveProjectEntitiesWithClassifier = async ( | ||
project: StoreProjectData, | ||
versionId: string, | ||
classifier: string, | ||
depotServerClient: DepotServerClient, | ||
): Promise<[PlainObject<Entity>[], PlainObject<Entity>[]]> => { | ||
const [entities, dependencyEntities]: [ | ||
PlainObject<Entity>[], | ||
PlainObject<Entity>[], | ||
] = await Promise.all([ | ||
depotServerClient.getEntities(project, versionId, classifier), | ||
depotServerClient.getDependencyEntities( | ||
project.groupId, | ||
project.artifactId, | ||
versionId, | ||
false, | ||
false, | ||
classifier, | ||
), | ||
]); | ||
return [entities, dependencyEntities]; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
129209
2183